function n9(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const s=Object.getOwnPropertyDescriptor(r,i);s&&Object.defineProperty(e,i,s.get?s:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const l of s.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function n(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(i){if(i.ep)return;i.ep=!0;const s=n(i);fetch(i.href,s)}})();var Af=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function tt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var jv={exports:{}},xc={};/**
 * @license React
 * react-jsx-runtime.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var yC;function r9(){if(yC)return xc;yC=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,i,s){var l=null;if(s!==void 0&&(l=""+s),i.key!==void 0&&(l=""+i.key),"key"in i){s={};for(var u in i)u!=="key"&&(s[u]=i[u])}else s=i;return i=s.ref,{$$typeof:e,type:r,key:l,ref:i!==void 0?i:null,props:s}}return xc.Fragment=t,xc.jsx=n,xc.jsxs=n,xc}var bC;function a9(){return bC||(bC=1,jv.exports=r9()),jv.exports}var g=a9(),Tv={exports:{}},Sc={},Cv={exports:{}},Ev={};/**
 * @license React
 * scheduler.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var xC;function i9(){return xC||(xC=1,(function(e){function t(L,V){var F=L.length;L.push(V);e:for(;0<F;){var ie=F-1>>>1,ue=L[ie];if(0<i(ue,V))L[ie]=V,L[F]=ue,F=ie;else break e}}function n(L){return L.length===0?null:L[0]}function r(L){if(L.length===0)return null;var V=L[0],F=L.pop();if(F!==V){L[0]=F;e:for(var ie=0,ue=L.length,z=ue>>>1;ie<z;){var G=2*(ie+1)-1,te=L[G],le=G+1,fe=L[le];if(0>i(te,F))le<ue&&0>i(fe,te)?(L[ie]=fe,L[le]=F,ie=le):(L[ie]=te,L[G]=F,ie=G);else if(le<ue&&0>i(fe,F))L[ie]=fe,L[le]=F,ie=le;else break e}}return V}function i(L,V){var F=L.sortIndex-V.sortIndex;return F!==0?F:L.id-V.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var l=Date,u=l.now();e.unstable_now=function(){return l.now()-u}}var d=[],f=[],p=1,m=null,v=3,b=!1,A=!1,S=!1,w=!1,O=typeof setTimeout=="function"?setTimeout:null,_=typeof clearTimeout=="function"?clearTimeout:null,T=typeof setImmediate<"u"?setImmediate:null;function M(L){for(var V=n(f);V!==null;){if(V.callback===null)r(f);else if(V.startTime<=L)r(f),V.sortIndex=V.expirationTime,t(d,V);else break;V=n(f)}}function j(L){if(S=!1,M(L),!A)if(n(d)!==null)A=!0,P||(P=!0,H());else{var V=n(f);V!==null&&Z(j,V.startTime-L)}}var P=!1,N=-1,D=5,k=-1;function U(){return w?!0:!(e.unstable_now()-k<D)}function $(){if(w=!1,P){var L=e.unstable_now();k=L;var V=!0;try{e:{A=!1,S&&(S=!1,_(N),N=-1),b=!0;var F=v;try{t:{for(M(L),m=n(d);m!==null&&!(m.expirationTime>L&&U());){var ie=m.callback;if(typeof ie=="function"){m.callback=null,v=m.priorityLevel;var ue=ie(m.expirationTime<=L);if(L=e.unstable_now(),typeof ue=="function"){m.callback=ue,M(L),V=!0;break t}m===n(d)&&r(d),M(L)}else r(d);m=n(d)}if(m!==null)V=!0;else{var z=n(f);z!==null&&Z(j,z.startTime-L),V=!1}}break e}finally{m=null,v=F,b=!1}V=void 0}}finally{V?H():P=!1}}}var H;if(typeof T=="function")H=function(){T($)};else if(typeof MessageChannel<"u"){var X=new MessageChannel,J=X.port2;X.port1.onmessage=$,H=function(){J.postMessage(null)}}else H=function(){O($,0)};function Z(L,V){N=O(function(){L(e.unstable_now())},V)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(L){L.callback=null},e.unstable_forceFrameRate=function(L){0>L||125<L?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):D=0<L?Math.floor(1e3/L):5},e.unstable_getCurrentPriorityLevel=function(){return v},e.unstable_next=function(L){switch(v){case 1:case 2:case 3:var V=3;break;default:V=v}var F=v;v=V;try{return L()}finally{v=F}},e.unstable_requestPaint=function(){w=!0},e.unstable_runWithPriority=function(L,V){switch(L){case 1:case 2:case 3:case 4:case 5:break;default:L=3}var F=v;v=L;try{return V()}finally{v=F}},e.unstable_scheduleCallback=function(L,V,F){var ie=e.unstable_now();switch(typeof F=="object"&&F!==null?(F=F.delay,F=typeof F=="number"&&0<F?ie+F:ie):F=ie,L){case 1:var ue=-1;break;case 2:ue=250;break;case 5:ue=1073741823;break;case 4:ue=1e4;break;default:ue=5e3}return ue=F+ue,L={id:p++,callback:V,priorityLevel:L,startTime:F,expirationTime:ue,sortIndex:-1},F>ie?(L.sortIndex=F,t(f,L),n(d)===null&&L===n(f)&&(S?(_(N),N=-1):S=!0,Z(j,F-ie))):(L.sortIndex=ue,t(d,L),A||b||(A=!0,P||(P=!0,H()))),L},e.unstable_shouldYield=U,e.unstable_wrapCallback=function(L){var V=v;return function(){var F=v;v=V;try{return L.apply(this,arguments)}finally{v=F}}}})(Ev)),Ev}var SC;function o9(){return SC||(SC=1,Cv.exports=i9()),Cv.exports}var _v={exports:{}},Pe={};/**
 * @license React
 * react.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var wC;function s9(){if(wC)return Pe;wC=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),l=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),m=Symbol.for("react.activity"),v=Symbol.iterator;function b(z){return z===null||typeof z!="object"?null:(z=v&&z[v]||z["@@iterator"],typeof z=="function"?z:null)}var A={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},S=Object.assign,w={};function O(z,G,te){this.props=z,this.context=G,this.refs=w,this.updater=te||A}O.prototype.isReactComponent={},O.prototype.setState=function(z,G){if(typeof z!="object"&&typeof z!="function"&&z!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,z,G,"setState")},O.prototype.forceUpdate=function(z){this.updater.enqueueForceUpdate(this,z,"forceUpdate")};function _(){}_.prototype=O.prototype;function T(z,G,te){this.props=z,this.context=G,this.refs=w,this.updater=te||A}var M=T.prototype=new _;M.constructor=T,S(M,O.prototype),M.isPureReactComponent=!0;var j=Array.isArray;function P(){}var N={H:null,A:null,T:null,S:null},D=Object.prototype.hasOwnProperty;function k(z,G,te){var le=te.ref;return{$$typeof:e,type:z,key:G,ref:le!==void 0?le:null,props:te}}function U(z,G){return k(z.type,G,z.props)}function $(z){return typeof z=="object"&&z!==null&&z.$$typeof===e}function H(z){var G={"=":"=0",":":"=2"};return"$"+z.replace(/[=:]/g,function(te){return G[te]})}var X=/\/+/g;function J(z,G){return typeof z=="object"&&z!==null&&z.key!=null?H(""+z.key):G.toString(36)}function Z(z){switch(z.status){case"fulfilled":return z.value;case"rejected":throw z.reason;default:switch(typeof z.status=="string"?z.then(P,P):(z.status="pending",z.then(function(G){z.status==="pending"&&(z.status="fulfilled",z.value=G)},function(G){z.status==="pending"&&(z.status="rejected",z.reason=G)})),z.status){case"fulfilled":return z.value;case"rejected":throw z.reason}}throw z}function L(z,G,te,le,fe){var Se=typeof z;(Se==="undefined"||Se==="boolean")&&(z=null);var ye=!1;if(z===null)ye=!0;else switch(Se){case"bigint":case"string":case"number":ye=!0;break;case"object":switch(z.$$typeof){case e:case t:ye=!0;break;case p:return ye=z._init,L(ye(z._payload),G,te,le,fe)}}if(ye)return fe=fe(z),ye=le===""?"."+J(z,0):le,j(fe)?(te="",ye!=null&&(te=ye.replace(X,"$&/")+"/"),L(fe,G,te,"",function(we){return we})):fe!=null&&($(fe)&&(fe=U(fe,te+(fe.key==null||z&&z.key===fe.key?"":(""+fe.key).replace(X,"$&/")+"/")+ye)),G.push(fe)),1;ye=0;var Ve=le===""?".":le+":";if(j(z))for(var ce=0;ce<z.length;ce++)le=z[ce],Se=Ve+J(le,ce),ye+=L(le,G,te,Se,fe);else if(ce=b(z),typeof ce=="function")for(z=ce.call(z),ce=0;!(le=z.next()).done;)le=le.value,Se=Ve+J(le,ce++),ye+=L(le,G,te,Se,fe);else if(Se==="object"){if(typeof z.then=="function")return L(Z(z),G,te,le,fe);throw G=String(z),Error("Objects are not valid as a React child (found: "+(G==="[object Object]"?"object with keys {"+Object.keys(z).join(", ")+"}":G)+"). If you meant to render a collection of children, use an array instead.")}return ye}function V(z,G,te){if(z==null)return z;var le=[],fe=0;return L(z,le,"","",function(Se){return G.call(te,Se,fe++)}),le}function F(z){if(z._status===-1){var G=z._result;G=G(),G.then(function(te){(z._status===0||z._status===-1)&&(z._status=1,z._result=te)},function(te){(z._status===0||z._status===-1)&&(z._status=2,z._result=te)}),z._status===-1&&(z._status=0,z._result=G)}if(z._status===1)return z._result.default;throw z._result}var ie=typeof reportError=="function"?reportError:function(z){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var G=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof z=="object"&&z!==null&&typeof z.message=="string"?String(z.message):String(z),error:z});if(!window.dispatchEvent(G))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",z);return}console.error(z)},ue={map:V,forEach:function(z,G,te){V(z,function(){G.apply(this,arguments)},te)},count:function(z){var G=0;return V(z,function(){G++}),G},toArray:function(z){return V(z,function(G){return G})||[]},only:function(z){if(!$(z))throw Error("React.Children.only expected to receive a single React element child.");return z}};return Pe.Activity=m,Pe.Children=ue,Pe.Component=O,Pe.Fragment=n,Pe.Profiler=i,Pe.PureComponent=T,Pe.StrictMode=r,Pe.Suspense=d,Pe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=N,Pe.__COMPILER_RUNTIME={__proto__:null,c:function(z){return N.H.useMemoCache(z)}},Pe.cache=function(z){return function(){return z.apply(null,arguments)}},Pe.cacheSignal=function(){return null},Pe.cloneElement=function(z,G,te){if(z==null)throw Error("The argument must be a React element, but you passed "+z+".");var le=S({},z.props),fe=z.key;if(G!=null)for(Se in G.key!==void 0&&(fe=""+G.key),G)!D.call(G,Se)||Se==="key"||Se==="__self"||Se==="__source"||Se==="ref"&&G.ref===void 0||(le[Se]=G[Se]);var Se=arguments.length-2;if(Se===1)le.children=te;else if(1<Se){for(var ye=Array(Se),Ve=0;Ve<Se;Ve++)ye[Ve]=arguments[Ve+2];le.children=ye}return k(z.type,fe,le)},Pe.createContext=function(z){return z={$$typeof:l,_currentValue:z,_currentValue2:z,_threadCount:0,Provider:null,Consumer:null},z.Provider=z,z.Consumer={$$typeof:s,_context:z},z},Pe.createElement=function(z,G,te){var le,fe={},Se=null;if(G!=null)for(le in G.key!==void 0&&(Se=""+G.key),G)D.call(G,le)&&le!=="key"&&le!=="__self"&&le!=="__source"&&(fe[le]=G[le]);var ye=arguments.length-2;if(ye===1)fe.children=te;else if(1<ye){for(var Ve=Array(ye),ce=0;ce<ye;ce++)Ve[ce]=arguments[ce+2];fe.children=Ve}if(z&&z.defaultProps)for(le in ye=z.defaultProps,ye)fe[le]===void 0&&(fe[le]=ye[le]);return k(z,Se,fe)},Pe.createRef=function(){return{current:null}},Pe.forwardRef=function(z){return{$$typeof:u,render:z}},Pe.isValidElement=$,Pe.lazy=function(z){return{$$typeof:p,_payload:{_status:-1,_result:z},_init:F}},Pe.memo=function(z,G){return{$$typeof:f,type:z,compare:G===void 0?null:G}},Pe.startTransition=function(z){var G=N.T,te={};N.T=te;try{var le=z(),fe=N.S;fe!==null&&fe(te,le),typeof le=="object"&&le!==null&&typeof le.then=="function"&&le.then(P,ie)}catch(Se){ie(Se)}finally{G!==null&&te.types!==null&&(G.types=te.types),N.T=G}},Pe.unstable_useCacheRefresh=function(){return N.H.useCacheRefresh()},Pe.use=function(z){return N.H.use(z)},Pe.useActionState=function(z,G,te){return N.H.useActionState(z,G,te)},Pe.useCallback=function(z,G){return N.H.useCallback(z,G)},Pe.useContext=function(z){return N.H.useContext(z)},Pe.useDebugValue=function(){},Pe.useDeferredValue=function(z,G){return N.H.useDeferredValue(z,G)},Pe.useEffect=function(z,G){return N.H.useEffect(z,G)},Pe.useEffectEvent=function(z){return N.H.useEffectEvent(z)},Pe.useId=function(){return N.H.useId()},Pe.useImperativeHandle=function(z,G,te){return N.H.useImperativeHandle(z,G,te)},Pe.useInsertionEffect=function(z,G){return N.H.useInsertionEffect(z,G)},Pe.useLayoutEffect=function(z,G){return N.H.useLayoutEffect(z,G)},Pe.useMemo=function(z,G){return N.H.useMemo(z,G)},Pe.useOptimistic=function(z,G){return N.H.useOptimistic(z,G)},Pe.useReducer=function(z,G,te){return N.H.useReducer(z,G,te)},Pe.useRef=function(z){return N.H.useRef(z)},Pe.useState=function(z){return N.H.useState(z)},Pe.useSyncExternalStore=function(z,G,te){return N.H.useSyncExternalStore(z,G,te)},Pe.useTransition=function(){return N.H.useTransition()},Pe.version="19.2.1",Pe}var AC;function fp(){return AC||(AC=1,_v.exports=s9()),_v.exports}var Pv={exports:{}},cn={};/**
 * @license React
 * react-dom.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var OC;function l9(){if(OC)return cn;OC=1;var e=fp();function t(d){var f="https://react.dev/errors/"+d;if(1<arguments.length){f+="?args[]="+encodeURIComponent(arguments[1]);for(var p=2;p<arguments.length;p++)f+="&args[]="+encodeURIComponent(arguments[p])}return"Minified React error #"+d+"; visit "+f+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var r={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},i=Symbol.for("react.portal");function s(d,f,p){var m=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:i,key:m==null?null:""+m,children:d,containerInfo:f,implementation:p}}var l=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function u(d,f){if(d==="font")return"";if(typeof f=="string")return f==="use-credentials"?f:""}return cn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,cn.createPortal=function(d,f){var p=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!f||f.nodeType!==1&&f.nodeType!==9&&f.nodeType!==11)throw Error(t(299));return s(d,f,null,p)},cn.flushSync=function(d){var f=l.T,p=r.p;try{if(l.T=null,r.p=2,d)return d()}finally{l.T=f,r.p=p,r.d.f()}},cn.preconnect=function(d,f){typeof d=="string"&&(f?(f=f.crossOrigin,f=typeof f=="string"?f==="use-credentials"?f:"":void 0):f=null,r.d.C(d,f))},cn.prefetchDNS=function(d){typeof d=="string"&&r.d.D(d)},cn.preinit=function(d,f){if(typeof d=="string"&&f&&typeof f.as=="string"){var p=f.as,m=u(p,f.crossOrigin),v=typeof f.integrity=="string"?f.integrity:void 0,b=typeof f.fetchPriority=="string"?f.fetchPriority:void 0;p==="style"?r.d.S(d,typeof f.precedence=="string"?f.precedence:void 0,{crossOrigin:m,integrity:v,fetchPriority:b}):p==="script"&&r.d.X(d,{crossOrigin:m,integrity:v,fetchPriority:b,nonce:typeof f.nonce=="string"?f.nonce:void 0})}},cn.preinitModule=function(d,f){if(typeof d=="string")if(typeof f=="object"&&f!==null){if(f.as==null||f.as==="script"){var p=u(f.as,f.crossOrigin);r.d.M(d,{crossOrigin:p,integrity:typeof f.integrity=="string"?f.integrity:void 0,nonce:typeof f.nonce=="string"?f.nonce:void 0})}}else f==null&&r.d.M(d)},cn.preload=function(d,f){if(typeof d=="string"&&typeof f=="object"&&f!==null&&typeof f.as=="string"){var p=f.as,m=u(p,f.crossOrigin);r.d.L(d,p,{crossOrigin:m,integrity:typeof f.integrity=="string"?f.integrity:void 0,nonce:typeof f.nonce=="string"?f.nonce:void 0,type:typeof f.type=="string"?f.type:void 0,fetchPriority:typeof f.fetchPriority=="string"?f.fetchPriority:void 0,referrerPolicy:typeof f.referrerPolicy=="string"?f.referrerPolicy:void 0,imageSrcSet:typeof f.imageSrcSet=="string"?f.imageSrcSet:void 0,imageSizes:typeof f.imageSizes=="string"?f.imageSizes:void 0,media:typeof f.media=="string"?f.media:void 0})}},cn.preloadModule=function(d,f){if(typeof d=="string")if(f){var p=u(f.as,f.crossOrigin);r.d.m(d,{as:typeof f.as=="string"&&f.as!=="script"?f.as:void 0,crossOrigin:p,integrity:typeof f.integrity=="string"?f.integrity:void 0})}else r.d.m(d)},cn.requestFormReset=function(d){r.d.r(d)},cn.unstable_batchedUpdates=function(d,f){return d(f)},cn.useFormState=function(d,f,p){return l.H.useFormState(d,f,p)},cn.useFormStatus=function(){return l.H.useHostTransitionStatus()},cn.version="19.2.1",cn}var jC;function p3(){if(jC)return Pv.exports;jC=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Pv.exports=l9(),Pv.exports}/**
 * @license React
 * react-dom-client.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var TC;function c9(){if(TC)return Sc;TC=1;var e=o9(),t=fp(),n=p3();function r(a){var o="https://react.dev/errors/"+a;if(1<arguments.length){o+="?args[]="+encodeURIComponent(arguments[1]);for(var c=2;c<arguments.length;c++)o+="&args[]="+encodeURIComponent(arguments[c])}return"Minified React error #"+a+"; visit "+o+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(a){return!(!a||a.nodeType!==1&&a.nodeType!==9&&a.nodeType!==11)}function s(a){var o=a,c=a;if(a.alternate)for(;o.return;)o=o.return;else{a=o;do o=a,(o.flags&4098)!==0&&(c=o.return),a=o.return;while(a)}return o.tag===3?c:null}function l(a){if(a.tag===13){var o=a.memoizedState;if(o===null&&(a=a.alternate,a!==null&&(o=a.memoizedState)),o!==null)return o.dehydrated}return null}function u(a){if(a.tag===31){var o=a.memoizedState;if(o===null&&(a=a.alternate,a!==null&&(o=a.memoizedState)),o!==null)return o.dehydrated}return null}function d(a){if(s(a)!==a)throw Error(r(188))}function f(a){var o=a.alternate;if(!o){if(o=s(a),o===null)throw Error(r(188));return o!==a?null:a}for(var c=a,h=o;;){var y=c.return;if(y===null)break;var x=y.alternate;if(x===null){if(h=y.return,h!==null){c=h;continue}break}if(y.child===x.child){for(x=y.child;x;){if(x===c)return d(y),a;if(x===h)return d(y),o;x=x.sibling}throw Error(r(188))}if(c.return!==h.return)c=y,h=x;else{for(var E=!1,R=y.child;R;){if(R===c){E=!0,c=y,h=x;break}if(R===h){E=!0,h=y,c=x;break}R=R.sibling}if(!E){for(R=x.child;R;){if(R===c){E=!0,c=x,h=y;break}if(R===h){E=!0,h=x,c=y;break}R=R.sibling}if(!E)throw Error(r(189))}}if(c.alternate!==h)throw Error(r(190))}if(c.tag!==3)throw Error(r(188));return c.stateNode.current===c?a:o}function p(a){var o=a.tag;if(o===5||o===26||o===27||o===6)return a;for(a=a.child;a!==null;){if(o=p(a),o!==null)return o;a=a.sibling}return null}var m=Object.assign,v=Symbol.for("react.element"),b=Symbol.for("react.transitional.element"),A=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),w=Symbol.for("react.strict_mode"),O=Symbol.for("react.profiler"),_=Symbol.for("react.consumer"),T=Symbol.for("react.context"),M=Symbol.for("react.forward_ref"),j=Symbol.for("react.suspense"),P=Symbol.for("react.suspense_list"),N=Symbol.for("react.memo"),D=Symbol.for("react.lazy"),k=Symbol.for("react.activity"),U=Symbol.for("react.memo_cache_sentinel"),$=Symbol.iterator;function H(a){return a===null||typeof a!="object"?null:(a=$&&a[$]||a["@@iterator"],typeof a=="function"?a:null)}var X=Symbol.for("react.client.reference");function J(a){if(a==null)return null;if(typeof a=="function")return a.$$typeof===X?null:a.displayName||a.name||null;if(typeof a=="string")return a;switch(a){case S:return"Fragment";case O:return"Profiler";case w:return"StrictMode";case j:return"Suspense";case P:return"SuspenseList";case k:return"Activity"}if(typeof a=="object")switch(a.$$typeof){case A:return"Portal";case T:return a.displayName||"Context";case _:return(a._context.displayName||"Context")+".Consumer";case M:var o=a.render;return a=a.displayName,a||(a=o.displayName||o.name||"",a=a!==""?"ForwardRef("+a+")":"ForwardRef"),a;case N:return o=a.displayName||null,o!==null?o:J(a.type)||"Memo";case D:o=a._payload,a=a._init;try{return J(a(o))}catch{}}return null}var Z=Array.isArray,L=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,V=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,F={pending:!1,data:null,method:null,action:null},ie=[],ue=-1;function z(a){return{current:a}}function G(a){0>ue||(a.current=ie[ue],ie[ue]=null,ue--)}function te(a,o){ue++,ie[ue]=a.current,a.current=o}var le=z(null),fe=z(null),Se=z(null),ye=z(null);function Ve(a,o){switch(te(Se,o),te(fe,a),te(le,null),o.nodeType){case 9:case 11:a=(a=o.documentElement)&&(a=a.namespaceURI)?qT(a):0;break;default:if(a=o.tagName,o=o.namespaceURI)o=qT(o),a=VT(o,a);else switch(a){case"svg":a=1;break;case"math":a=2;break;default:a=0}}G(le),te(le,a)}function ce(){G(le),G(fe),G(Se)}function we(a){a.memoizedState!==null&&te(ye,a);var o=le.current,c=VT(o,a.type);o!==c&&(te(fe,a),te(le,c))}function Ce(a){fe.current===a&&(G(le),G(fe)),ye.current===a&&(G(ye),gc._currentValue=F)}var se,ht;function Re(a){if(se===void 0)try{throw Error()}catch(c){var o=c.stack.trim().match(/\n( *(at )?)/);se=o&&o[1]||"",ht=-1<c.stack.indexOf(`
    at`)?" (<anonymous>)":-1<c.stack.indexOf("@")?"@unknown:0:0":""}return`
`+se+a+ht}var xt=!1;function St(a,o){if(!a||xt)return"";xt=!0;var c=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var h={DetermineComponentFrameRoot:function(){try{if(o){var oe=function(){throw Error()};if(Object.defineProperty(oe.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(oe,[])}catch(ee){var Q=ee}Reflect.construct(a,[],oe)}else{try{oe.call()}catch(ee){Q=ee}a.call(oe.prototype)}}else{try{throw Error()}catch(ee){Q=ee}(oe=a())&&typeof oe.catch=="function"&&oe.catch(function(){})}}catch(ee){if(ee&&Q&&typeof ee.stack=="string")return[ee.stack,Q.stack]}return[null,null]}};h.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var y=Object.getOwnPropertyDescriptor(h.DetermineComponentFrameRoot,"name");y&&y.configurable&&Object.defineProperty(h.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var x=h.DetermineComponentFrameRoot(),E=x[0],R=x[1];if(E&&R){var I=E.split(`
`),W=R.split(`
`);for(y=h=0;h<I.length&&!I[h].includes("DetermineComponentFrameRoot");)h++;for(;y<W.length&&!W[y].includes("DetermineComponentFrameRoot");)y++;if(h===I.length||y===W.length)for(h=I.length-1,y=W.length-1;1<=h&&0<=y&&I[h]!==W[y];)y--;for(;1<=h&&0<=y;h--,y--)if(I[h]!==W[y]){if(h!==1||y!==1)do if(h--,y--,0>y||I[h]!==W[y]){var ne=`
`+I[h].replace(" at new "," at ");return a.displayName&&ne.includes("<anonymous>")&&(ne=ne.replace("<anonymous>",a.displayName)),ne}while(1<=h&&0<=y);break}}}finally{xt=!1,Error.prepareStackTrace=c}return(c=a?a.displayName||a.name:"")?Re(c):""}function sn(a,o){switch(a.tag){case 26:case 27:case 5:return Re(a.type);case 16:return Re("Lazy");case 13:return a.child!==o&&o!==null?Re("Suspense Fallback"):Re("Suspense");case 19:return Re("SuspenseList");case 0:case 15:return St(a.type,!1);case 11:return St(a.type.render,!1);case 1:return St(a.type,!0);case 31:return Re("Activity");default:return""}}function yr(a){try{var o="",c=null;do o+=sn(a,c),c=a,a=a.return;while(a);return o}catch(h){return`
Error generating stack: `+h.message+`
`+h.stack}}var Mr=Object.prototype.hasOwnProperty,Da=e.unstable_scheduleCallback,br=e.unstable_cancelCallback,Yr=e.unstable_shouldYield,Cl=e.unstable_requestPaint,ln=e.unstable_now,ad=e.unstable_getCurrentPriorityLevel,b2=e.unstable_ImmediatePriority,x2=e.unstable_UserBlockingPriority,id=e.unstable_NormalPriority,z$=e.unstable_LowPriority,S2=e.unstable_IdlePriority,$$=e.log,B$=e.unstable_setDisableYieldValue,El=null,En=null;function Ra(a){if(typeof $$=="function"&&B$(a),En&&typeof En.setStrictMode=="function")try{En.setStrictMode(El,a)}catch{}}var _n=Math.clz32?Math.clz32:V$,I$=Math.log,q$=Math.LN2;function V$(a){return a>>>=0,a===0?32:31-(I$(a)/q$|0)|0}var od=256,sd=262144,ld=4194304;function ji(a){var o=a&42;if(o!==0)return o;switch(a&-a){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return a&261888;case 262144:case 524288:case 1048576:case 2097152:return a&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return a&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return a}}function cd(a,o,c){var h=a.pendingLanes;if(h===0)return 0;var y=0,x=a.suspendedLanes,E=a.pingedLanes;a=a.warmLanes;var R=h&134217727;return R!==0?(h=R&~x,h!==0?y=ji(h):(E&=R,E!==0?y=ji(E):c||(c=R&~a,c!==0&&(y=ji(c))))):(R=h&~x,R!==0?y=ji(R):E!==0?y=ji(E):c||(c=h&~a,c!==0&&(y=ji(c)))),y===0?0:o!==0&&o!==y&&(o&x)===0&&(x=y&-y,c=o&-o,x>=c||x===32&&(c&4194048)!==0)?o:y}function _l(a,o){return(a.pendingLanes&~(a.suspendedLanes&~a.pingedLanes)&o)===0}function U$(a,o){switch(a){case 1:case 2:case 4:case 8:case 64:return o+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return o+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function w2(){var a=ld;return ld<<=1,(ld&62914560)===0&&(ld=4194304),a}function hm(a){for(var o=[],c=0;31>c;c++)o.push(a);return o}function Pl(a,o){a.pendingLanes|=o,o!==268435456&&(a.suspendedLanes=0,a.pingedLanes=0,a.warmLanes=0)}function H$(a,o,c,h,y,x){var E=a.pendingLanes;a.pendingLanes=c,a.suspendedLanes=0,a.pingedLanes=0,a.warmLanes=0,a.expiredLanes&=c,a.entangledLanes&=c,a.errorRecoveryDisabledLanes&=c,a.shellSuspendCounter=0;var R=a.entanglements,I=a.expirationTimes,W=a.hiddenUpdates;for(c=E&~c;0<c;){var ne=31-_n(c),oe=1<<ne;R[ne]=0,I[ne]=-1;var Q=W[ne];if(Q!==null)for(W[ne]=null,ne=0;ne<Q.length;ne++){var ee=Q[ne];ee!==null&&(ee.lane&=-536870913)}c&=~oe}h!==0&&A2(a,h,0),x!==0&&y===0&&a.tag!==0&&(a.suspendedLanes|=x&~(E&~o))}function A2(a,o,c){a.pendingLanes|=o,a.suspendedLanes&=~o;var h=31-_n(o);a.entangledLanes|=o,a.entanglements[h]=a.entanglements[h]|1073741824|c&261930}function O2(a,o){var c=a.entangledLanes|=o;for(a=a.entanglements;c;){var h=31-_n(c),y=1<<h;y&o|a[h]&o&&(a[h]|=o),c&=~y}}function j2(a,o){var c=o&-o;return c=(c&42)!==0?1:pm(c),(c&(a.suspendedLanes|o))!==0?0:c}function pm(a){switch(a){case 2:a=1;break;case 8:a=4;break;case 32:a=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:a=128;break;case 268435456:a=134217728;break;default:a=0}return a}function mm(a){return a&=-a,2<a?8<a?(a&134217727)!==0?32:268435456:8:2}function T2(){var a=V.p;return a!==0?a:(a=window.event,a===void 0?32:dC(a.type))}function C2(a,o){var c=V.p;try{return V.p=a,o()}finally{V.p=c}}var ka=Math.random().toString(36).slice(2),Jt="__reactFiber$"+ka,yn="__reactProps$"+ka,Eo="__reactContainer$"+ka,gm="__reactEvents$"+ka,F$="__reactListeners$"+ka,G$="__reactHandles$"+ka,E2="__reactResources$"+ka,Nl="__reactMarker$"+ka;function vm(a){delete a[Jt],delete a[yn],delete a[gm],delete a[F$],delete a[G$]}function _o(a){var o=a[Jt];if(o)return o;for(var c=a.parentNode;c;){if(o=c[Eo]||c[Jt]){if(c=o.alternate,o.child!==null||c!==null&&c.child!==null)for(a=YT(a);a!==null;){if(c=a[Jt])return c;a=YT(a)}return o}a=c,c=a.parentNode}return null}function Po(a){if(a=a[Jt]||a[Eo]){var o=a.tag;if(o===5||o===6||o===13||o===31||o===26||o===27||o===3)return a}return null}function Ml(a){var o=a.tag;if(o===5||o===26||o===27||o===6)return a.stateNode;throw Error(r(33))}function No(a){var o=a[E2];return o||(o=a[E2]={hoistableStyles:new Map,hoistableScripts:new Map}),o}function Xt(a){a[Nl]=!0}var _2=new Set,P2={};function Ti(a,o){Mo(a,o),Mo(a+"Capture",o)}function Mo(a,o){for(P2[a]=o,a=0;a<o.length;a++)_2.add(o[a])}var K$=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),N2={},M2={};function X$(a){return Mr.call(M2,a)?!0:Mr.call(N2,a)?!1:K$.test(a)?M2[a]=!0:(N2[a]=!0,!1)}function ud(a,o,c){if(X$(o))if(c===null)a.removeAttribute(o);else{switch(typeof c){case"undefined":case"function":case"symbol":a.removeAttribute(o);return;case"boolean":var h=o.toLowerCase().slice(0,5);if(h!=="data-"&&h!=="aria-"){a.removeAttribute(o);return}}a.setAttribute(o,""+c)}}function dd(a,o,c){if(c===null)a.removeAttribute(o);else{switch(typeof c){case"undefined":case"function":case"symbol":case"boolean":a.removeAttribute(o);return}a.setAttribute(o,""+c)}}function Wr(a,o,c,h){if(h===null)a.removeAttribute(c);else{switch(typeof h){case"undefined":case"function":case"symbol":case"boolean":a.removeAttribute(c);return}a.setAttributeNS(o,c,""+h)}}function Fn(a){switch(typeof a){case"bigint":case"boolean":case"number":case"string":case"undefined":return a;case"object":return a;default:return""}}function D2(a){var o=a.type;return(a=a.nodeName)&&a.toLowerCase()==="input"&&(o==="checkbox"||o==="radio")}function Y$(a,o,c){var h=Object.getOwnPropertyDescriptor(a.constructor.prototype,o);if(!a.hasOwnProperty(o)&&typeof h<"u"&&typeof h.get=="function"&&typeof h.set=="function"){var y=h.get,x=h.set;return Object.defineProperty(a,o,{configurable:!0,get:function(){return y.call(this)},set:function(E){c=""+E,x.call(this,E)}}),Object.defineProperty(a,o,{enumerable:h.enumerable}),{getValue:function(){return c},setValue:function(E){c=""+E},stopTracking:function(){a._valueTracker=null,delete a[o]}}}}function ym(a){if(!a._valueTracker){var o=D2(a)?"checked":"value";a._valueTracker=Y$(a,o,""+a[o])}}function R2(a){if(!a)return!1;var o=a._valueTracker;if(!o)return!0;var c=o.getValue(),h="";return a&&(h=D2(a)?a.checked?"true":"false":a.value),a=h,a!==c?(o.setValue(a),!0):!1}function fd(a){if(a=a||(typeof document<"u"?document:void 0),typeof a>"u")return null;try{return a.activeElement||a.body}catch{return a.body}}var W$=/[\n"\\]/g;function Gn(a){return a.replace(W$,function(o){return"\\"+o.charCodeAt(0).toString(16)+" "})}function bm(a,o,c,h,y,x,E,R){a.name="",E!=null&&typeof E!="function"&&typeof E!="symbol"&&typeof E!="boolean"?a.type=E:a.removeAttribute("type"),o!=null?E==="number"?(o===0&&a.value===""||a.value!=o)&&(a.value=""+Fn(o)):a.value!==""+Fn(o)&&(a.value=""+Fn(o)):E!=="submit"&&E!=="reset"||a.removeAttribute("value"),o!=null?xm(a,E,Fn(o)):c!=null?xm(a,E,Fn(c)):h!=null&&a.removeAttribute("value"),y==null&&x!=null&&(a.defaultChecked=!!x),y!=null&&(a.checked=y&&typeof y!="function"&&typeof y!="symbol"),R!=null&&typeof R!="function"&&typeof R!="symbol"&&typeof R!="boolean"?a.name=""+Fn(R):a.removeAttribute("name")}function k2(a,o,c,h,y,x,E,R){if(x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"&&(a.type=x),o!=null||c!=null){if(!(x!=="submit"&&x!=="reset"||o!=null)){ym(a);return}c=c!=null?""+Fn(c):"",o=o!=null?""+Fn(o):c,R||o===a.value||(a.value=o),a.defaultValue=o}h=h??y,h=typeof h!="function"&&typeof h!="symbol"&&!!h,a.checked=R?a.checked:!!h,a.defaultChecked=!!h,E!=null&&typeof E!="function"&&typeof E!="symbol"&&typeof E!="boolean"&&(a.name=E),ym(a)}function xm(a,o,c){o==="number"&&fd(a.ownerDocument)===a||a.defaultValue===""+c||(a.defaultValue=""+c)}function Do(a,o,c,h){if(a=a.options,o){o={};for(var y=0;y<c.length;y++)o["$"+c[y]]=!0;for(c=0;c<a.length;c++)y=o.hasOwnProperty("$"+a[c].value),a[c].selected!==y&&(a[c].selected=y),y&&h&&(a[c].defaultSelected=!0)}else{for(c=""+Fn(c),o=null,y=0;y<a.length;y++){if(a[y].value===c){a[y].selected=!0,h&&(a[y].defaultSelected=!0);return}o!==null||a[y].disabled||(o=a[y])}o!==null&&(o.selected=!0)}}function L2(a,o,c){if(o!=null&&(o=""+Fn(o),o!==a.value&&(a.value=o),c==null)){a.defaultValue!==o&&(a.defaultValue=o);return}a.defaultValue=c!=null?""+Fn(c):""}function z2(a,o,c,h){if(o==null){if(h!=null){if(c!=null)throw Error(r(92));if(Z(h)){if(1<h.length)throw Error(r(93));h=h[0]}c=h}c==null&&(c=""),o=c}c=Fn(o),a.defaultValue=c,h=a.textContent,h===c&&h!==""&&h!==null&&(a.value=h),ym(a)}function Ro(a,o){if(o){var c=a.firstChild;if(c&&c===a.lastChild&&c.nodeType===3){c.nodeValue=o;return}}a.textContent=o}var Z$=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function $2(a,o,c){var h=o.indexOf("--")===0;c==null||typeof c=="boolean"||c===""?h?a.setProperty(o,""):o==="float"?a.cssFloat="":a[o]="":h?a.setProperty(o,c):typeof c!="number"||c===0||Z$.has(o)?o==="float"?a.cssFloat=c:a[o]=(""+c).trim():a[o]=c+"px"}function B2(a,o,c){if(o!=null&&typeof o!="object")throw Error(r(62));if(a=a.style,c!=null){for(var h in c)!c.hasOwnProperty(h)||o!=null&&o.hasOwnProperty(h)||(h.indexOf("--")===0?a.setProperty(h,""):h==="float"?a.cssFloat="":a[h]="");for(var y in o)h=o[y],o.hasOwnProperty(y)&&c[y]!==h&&$2(a,y,h)}else for(var x in o)o.hasOwnProperty(x)&&$2(a,x,o[x])}function Sm(a){if(a.indexOf("-")===-1)return!1;switch(a){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Q$=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),J$=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function hd(a){return J$.test(""+a)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":a}function Zr(){}var wm=null;function Am(a){return a=a.target||a.srcElement||window,a.correspondingUseElement&&(a=a.correspondingUseElement),a.nodeType===3?a.parentNode:a}var ko=null,Lo=null;function I2(a){var o=Po(a);if(o&&(a=o.stateNode)){var c=a[yn]||null;e:switch(a=o.stateNode,o.type){case"input":if(bm(a,c.value,c.defaultValue,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name),o=c.name,c.type==="radio"&&o!=null){for(c=a;c.parentNode;)c=c.parentNode;for(c=c.querySelectorAll('input[name="'+Gn(""+o)+'"][type="radio"]'),o=0;o<c.length;o++){var h=c[o];if(h!==a&&h.form===a.form){var y=h[yn]||null;if(!y)throw Error(r(90));bm(h,y.value,y.defaultValue,y.defaultValue,y.checked,y.defaultChecked,y.type,y.name)}}for(o=0;o<c.length;o++)h=c[o],h.form===a.form&&R2(h)}break e;case"textarea":L2(a,c.value,c.defaultValue);break e;case"select":o=c.value,o!=null&&Do(a,!!c.multiple,o,!1)}}}var Om=!1;function q2(a,o,c){if(Om)return a(o,c);Om=!0;try{var h=a(o);return h}finally{if(Om=!1,(ko!==null||Lo!==null)&&(ef(),ko&&(o=ko,a=Lo,Lo=ko=null,I2(o),a)))for(o=0;o<a.length;o++)I2(a[o])}}function Dl(a,o){var c=a.stateNode;if(c===null)return null;var h=c[yn]||null;if(h===null)return null;c=h[o];e:switch(o){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(h=!h.disabled)||(a=a.type,h=!(a==="button"||a==="input"||a==="select"||a==="textarea")),a=!h;break e;default:a=!1}if(a)return null;if(c&&typeof c!="function")throw Error(r(231,o,typeof c));return c}var Qr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),jm=!1;if(Qr)try{var Rl={};Object.defineProperty(Rl,"passive",{get:function(){jm=!0}}),window.addEventListener("test",Rl,Rl),window.removeEventListener("test",Rl,Rl)}catch{jm=!1}var La=null,Tm=null,pd=null;function V2(){if(pd)return pd;var a,o=Tm,c=o.length,h,y="value"in La?La.value:La.textContent,x=y.length;for(a=0;a<c&&o[a]===y[a];a++);var E=c-a;for(h=1;h<=E&&o[c-h]===y[x-h];h++);return pd=y.slice(a,1<h?1-h:void 0)}function md(a){var o=a.keyCode;return"charCode"in a?(a=a.charCode,a===0&&o===13&&(a=13)):a=o,a===10&&(a=13),32<=a||a===13?a:0}function gd(){return!0}function U2(){return!1}function bn(a){function o(c,h,y,x,E){this._reactName=c,this._targetInst=y,this.type=h,this.nativeEvent=x,this.target=E,this.currentTarget=null;for(var R in a)a.hasOwnProperty(R)&&(c=a[R],this[R]=c?c(x):x[R]);return this.isDefaultPrevented=(x.defaultPrevented!=null?x.defaultPrevented:x.returnValue===!1)?gd:U2,this.isPropagationStopped=U2,this}return m(o.prototype,{preventDefault:function(){this.defaultPrevented=!0;var c=this.nativeEvent;c&&(c.preventDefault?c.preventDefault():typeof c.returnValue!="unknown"&&(c.returnValue=!1),this.isDefaultPrevented=gd)},stopPropagation:function(){var c=this.nativeEvent;c&&(c.stopPropagation?c.stopPropagation():typeof c.cancelBubble!="unknown"&&(c.cancelBubble=!0),this.isPropagationStopped=gd)},persist:function(){},isPersistent:gd}),o}var Ci={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(a){return a.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},vd=bn(Ci),kl=m({},Ci,{view:0,detail:0}),eB=bn(kl),Cm,Em,Ll,yd=m({},kl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Pm,button:0,buttons:0,relatedTarget:function(a){return a.relatedTarget===void 0?a.fromElement===a.srcElement?a.toElement:a.fromElement:a.relatedTarget},movementX:function(a){return"movementX"in a?a.movementX:(a!==Ll&&(Ll&&a.type==="mousemove"?(Cm=a.screenX-Ll.screenX,Em=a.screenY-Ll.screenY):Em=Cm=0,Ll=a),Cm)},movementY:function(a){return"movementY"in a?a.movementY:Em}}),H2=bn(yd),tB=m({},yd,{dataTransfer:0}),nB=bn(tB),rB=m({},kl,{relatedTarget:0}),_m=bn(rB),aB=m({},Ci,{animationName:0,elapsedTime:0,pseudoElement:0}),iB=bn(aB),oB=m({},Ci,{clipboardData:function(a){return"clipboardData"in a?a.clipboardData:window.clipboardData}}),sB=bn(oB),lB=m({},Ci,{data:0}),F2=bn(lB),cB={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},uB={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},dB={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function fB(a){var o=this.nativeEvent;return o.getModifierState?o.getModifierState(a):(a=dB[a])?!!o[a]:!1}function Pm(){return fB}var hB=m({},kl,{key:function(a){if(a.key){var o=cB[a.key]||a.key;if(o!=="Unidentified")return o}return a.type==="keypress"?(a=md(a),a===13?"Enter":String.fromCharCode(a)):a.type==="keydown"||a.type==="keyup"?uB[a.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Pm,charCode:function(a){return a.type==="keypress"?md(a):0},keyCode:function(a){return a.type==="keydown"||a.type==="keyup"?a.keyCode:0},which:function(a){return a.type==="keypress"?md(a):a.type==="keydown"||a.type==="keyup"?a.keyCode:0}}),pB=bn(hB),mB=m({},yd,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),G2=bn(mB),gB=m({},kl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Pm}),vB=bn(gB),yB=m({},Ci,{propertyName:0,elapsedTime:0,pseudoElement:0}),bB=bn(yB),xB=m({},yd,{deltaX:function(a){return"deltaX"in a?a.deltaX:"wheelDeltaX"in a?-a.wheelDeltaX:0},deltaY:function(a){return"deltaY"in a?a.deltaY:"wheelDeltaY"in a?-a.wheelDeltaY:"wheelDelta"in a?-a.wheelDelta:0},deltaZ:0,deltaMode:0}),SB=bn(xB),wB=m({},Ci,{newState:0,oldState:0}),AB=bn(wB),OB=[9,13,27,32],Nm=Qr&&"CompositionEvent"in window,zl=null;Qr&&"documentMode"in document&&(zl=document.documentMode);var jB=Qr&&"TextEvent"in window&&!zl,K2=Qr&&(!Nm||zl&&8<zl&&11>=zl),X2=" ",Y2=!1;function W2(a,o){switch(a){case"keyup":return OB.indexOf(o.keyCode)!==-1;case"keydown":return o.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Z2(a){return a=a.detail,typeof a=="object"&&"data"in a?a.data:null}var zo=!1;function TB(a,o){switch(a){case"compositionend":return Z2(o);case"keypress":return o.which!==32?null:(Y2=!0,X2);case"textInput":return a=o.data,a===X2&&Y2?null:a;default:return null}}function CB(a,o){if(zo)return a==="compositionend"||!Nm&&W2(a,o)?(a=V2(),pd=Tm=La=null,zo=!1,a):null;switch(a){case"paste":return null;case"keypress":if(!(o.ctrlKey||o.altKey||o.metaKey)||o.ctrlKey&&o.altKey){if(o.char&&1<o.char.length)return o.char;if(o.which)return String.fromCharCode(o.which)}return null;case"compositionend":return K2&&o.locale!=="ko"?null:o.data;default:return null}}var EB={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Q2(a){var o=a&&a.nodeName&&a.nodeName.toLowerCase();return o==="input"?!!EB[a.type]:o==="textarea"}function J2(a,o,c,h){ko?Lo?Lo.push(h):Lo=[h]:ko=h,o=lf(o,"onChange"),0<o.length&&(c=new vd("onChange","change",null,c,h),a.push({event:c,listeners:o}))}var $l=null,Bl=null;function _B(a){kT(a,0)}function bd(a){var o=Ml(a);if(R2(o))return a}function eO(a,o){if(a==="change")return o}var tO=!1;if(Qr){var Mm;if(Qr){var Dm="oninput"in document;if(!Dm){var nO=document.createElement("div");nO.setAttribute("oninput","return;"),Dm=typeof nO.oninput=="function"}Mm=Dm}else Mm=!1;tO=Mm&&(!document.documentMode||9<document.documentMode)}function rO(){$l&&($l.detachEvent("onpropertychange",aO),Bl=$l=null)}function aO(a){if(a.propertyName==="value"&&bd(Bl)){var o=[];J2(o,Bl,a,Am(a)),q2(_B,o)}}function PB(a,o,c){a==="focusin"?(rO(),$l=o,Bl=c,$l.attachEvent("onpropertychange",aO)):a==="focusout"&&rO()}function NB(a){if(a==="selectionchange"||a==="keyup"||a==="keydown")return bd(Bl)}function MB(a,o){if(a==="click")return bd(o)}function DB(a,o){if(a==="input"||a==="change")return bd(o)}function RB(a,o){return a===o&&(a!==0||1/a===1/o)||a!==a&&o!==o}var Pn=typeof Object.is=="function"?Object.is:RB;function Il(a,o){if(Pn(a,o))return!0;if(typeof a!="object"||a===null||typeof o!="object"||o===null)return!1;var c=Object.keys(a),h=Object.keys(o);if(c.length!==h.length)return!1;for(h=0;h<c.length;h++){var y=c[h];if(!Mr.call(o,y)||!Pn(a[y],o[y]))return!1}return!0}function iO(a){for(;a&&a.firstChild;)a=a.firstChild;return a}function oO(a,o){var c=iO(a);a=0;for(var h;c;){if(c.nodeType===3){if(h=a+c.textContent.length,a<=o&&h>=o)return{node:c,offset:o-a};a=h}e:{for(;c;){if(c.nextSibling){c=c.nextSibling;break e}c=c.parentNode}c=void 0}c=iO(c)}}function sO(a,o){return a&&o?a===o?!0:a&&a.nodeType===3?!1:o&&o.nodeType===3?sO(a,o.parentNode):"contains"in a?a.contains(o):a.compareDocumentPosition?!!(a.compareDocumentPosition(o)&16):!1:!1}function lO(a){a=a!=null&&a.ownerDocument!=null&&a.ownerDocument.defaultView!=null?a.ownerDocument.defaultView:window;for(var o=fd(a.document);o instanceof a.HTMLIFrameElement;){try{var c=typeof o.contentWindow.location.href=="string"}catch{c=!1}if(c)a=o.contentWindow;else break;o=fd(a.document)}return o}function Rm(a){var o=a&&a.nodeName&&a.nodeName.toLowerCase();return o&&(o==="input"&&(a.type==="text"||a.type==="search"||a.type==="tel"||a.type==="url"||a.type==="password")||o==="textarea"||a.contentEditable==="true")}var kB=Qr&&"documentMode"in document&&11>=document.documentMode,$o=null,km=null,ql=null,Lm=!1;function cO(a,o,c){var h=c.window===c?c.document:c.nodeType===9?c:c.ownerDocument;Lm||$o==null||$o!==fd(h)||(h=$o,"selectionStart"in h&&Rm(h)?h={start:h.selectionStart,end:h.selectionEnd}:(h=(h.ownerDocument&&h.ownerDocument.defaultView||window).getSelection(),h={anchorNode:h.anchorNode,anchorOffset:h.anchorOffset,focusNode:h.focusNode,focusOffset:h.focusOffset}),ql&&Il(ql,h)||(ql=h,h=lf(km,"onSelect"),0<h.length&&(o=new vd("onSelect","select",null,o,c),a.push({event:o,listeners:h}),o.target=$o)))}function Ei(a,o){var c={};return c[a.toLowerCase()]=o.toLowerCase(),c["Webkit"+a]="webkit"+o,c["Moz"+a]="moz"+o,c}var Bo={animationend:Ei("Animation","AnimationEnd"),animationiteration:Ei("Animation","AnimationIteration"),animationstart:Ei("Animation","AnimationStart"),transitionrun:Ei("Transition","TransitionRun"),transitionstart:Ei("Transition","TransitionStart"),transitioncancel:Ei("Transition","TransitionCancel"),transitionend:Ei("Transition","TransitionEnd")},zm={},uO={};Qr&&(uO=document.createElement("div").style,"AnimationEvent"in window||(delete Bo.animationend.animation,delete Bo.animationiteration.animation,delete Bo.animationstart.animation),"TransitionEvent"in window||delete Bo.transitionend.transition);function _i(a){if(zm[a])return zm[a];if(!Bo[a])return a;var o=Bo[a],c;for(c in o)if(o.hasOwnProperty(c)&&c in uO)return zm[a]=o[c];return a}var dO=_i("animationend"),fO=_i("animationiteration"),hO=_i("animationstart"),LB=_i("transitionrun"),zB=_i("transitionstart"),$B=_i("transitioncancel"),pO=_i("transitionend"),mO=new Map,$m="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");$m.push("scrollEnd");function xr(a,o){mO.set(a,o),Ti(o,[a])}var xd=typeof reportError=="function"?reportError:function(a){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var o=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof a=="object"&&a!==null&&typeof a.message=="string"?String(a.message):String(a),error:a});if(!window.dispatchEvent(o))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",a);return}console.error(a)},Kn=[],Io=0,Bm=0;function Sd(){for(var a=Io,o=Bm=Io=0;o<a;){var c=Kn[o];Kn[o++]=null;var h=Kn[o];Kn[o++]=null;var y=Kn[o];Kn[o++]=null;var x=Kn[o];if(Kn[o++]=null,h!==null&&y!==null){var E=h.pending;E===null?y.next=y:(y.next=E.next,E.next=y),h.pending=y}x!==0&&gO(c,y,x)}}function wd(a,o,c,h){Kn[Io++]=a,Kn[Io++]=o,Kn[Io++]=c,Kn[Io++]=h,Bm|=h,a.lanes|=h,a=a.alternate,a!==null&&(a.lanes|=h)}function Im(a,o,c,h){return wd(a,o,c,h),Ad(a)}function Pi(a,o){return wd(a,null,null,o),Ad(a)}function gO(a,o,c){a.lanes|=c;var h=a.alternate;h!==null&&(h.lanes|=c);for(var y=!1,x=a.return;x!==null;)x.childLanes|=c,h=x.alternate,h!==null&&(h.childLanes|=c),x.tag===22&&(a=x.stateNode,a===null||a._visibility&1||(y=!0)),a=x,x=x.return;return a.tag===3?(x=a.stateNode,y&&o!==null&&(y=31-_n(c),a=x.hiddenUpdates,h=a[y],h===null?a[y]=[o]:h.push(o),o.lane=c|536870912),x):null}function Ad(a){if(50<cc)throw cc=0,Yg=null,Error(r(185));for(var o=a.return;o!==null;)a=o,o=a.return;return a.tag===3?a.stateNode:null}var qo={};function BB(a,o,c,h){this.tag=a,this.key=c,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=o,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=h,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Nn(a,o,c,h){return new BB(a,o,c,h)}function qm(a){return a=a.prototype,!(!a||!a.isReactComponent)}function Jr(a,o){var c=a.alternate;return c===null?(c=Nn(a.tag,o,a.key,a.mode),c.elementType=a.elementType,c.type=a.type,c.stateNode=a.stateNode,c.alternate=a,a.alternate=c):(c.pendingProps=o,c.type=a.type,c.flags=0,c.subtreeFlags=0,c.deletions=null),c.flags=a.flags&65011712,c.childLanes=a.childLanes,c.lanes=a.lanes,c.child=a.child,c.memoizedProps=a.memoizedProps,c.memoizedState=a.memoizedState,c.updateQueue=a.updateQueue,o=a.dependencies,c.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext},c.sibling=a.sibling,c.index=a.index,c.ref=a.ref,c.refCleanup=a.refCleanup,c}function vO(a,o){a.flags&=65011714;var c=a.alternate;return c===null?(a.childLanes=0,a.lanes=o,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=c.childLanes,a.lanes=c.lanes,a.child=c.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=c.memoizedProps,a.memoizedState=c.memoizedState,a.updateQueue=c.updateQueue,a.type=c.type,o=c.dependencies,a.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext}),a}function Od(a,o,c,h,y,x){var E=0;if(h=a,typeof a=="function")qm(a)&&(E=1);else if(typeof a=="string")E=HI(a,c,le.current)?26:a==="html"||a==="head"||a==="body"?27:5;else e:switch(a){case k:return a=Nn(31,c,o,y),a.elementType=k,a.lanes=x,a;case S:return Ni(c.children,y,x,o);case w:E=8,y|=24;break;case O:return a=Nn(12,c,o,y|2),a.elementType=O,a.lanes=x,a;case j:return a=Nn(13,c,o,y),a.elementType=j,a.lanes=x,a;case P:return a=Nn(19,c,o,y),a.elementType=P,a.lanes=x,a;default:if(typeof a=="object"&&a!==null)switch(a.$$typeof){case T:E=10;break e;case _:E=9;break e;case M:E=11;break e;case N:E=14;break e;case D:E=16,h=null;break e}E=29,c=Error(r(130,a===null?"null":typeof a,"")),h=null}return o=Nn(E,c,o,y),o.elementType=a,o.type=h,o.lanes=x,o}function Ni(a,o,c,h){return a=Nn(7,a,h,o),a.lanes=c,a}function Vm(a,o,c){return a=Nn(6,a,null,o),a.lanes=c,a}function yO(a){var o=Nn(18,null,null,0);return o.stateNode=a,o}function Um(a,o,c){return o=Nn(4,a.children!==null?a.children:[],a.key,o),o.lanes=c,o.stateNode={containerInfo:a.containerInfo,pendingChildren:null,implementation:a.implementation},o}var bO=new WeakMap;function Xn(a,o){if(typeof a=="object"&&a!==null){var c=bO.get(a);return c!==void 0?c:(o={value:a,source:o,stack:yr(o)},bO.set(a,o),o)}return{value:a,source:o,stack:yr(o)}}var Vo=[],Uo=0,jd=null,Vl=0,Yn=[],Wn=0,za=null,Dr=1,Rr="";function ea(a,o){Vo[Uo++]=Vl,Vo[Uo++]=jd,jd=a,Vl=o}function xO(a,o,c){Yn[Wn++]=Dr,Yn[Wn++]=Rr,Yn[Wn++]=za,za=a;var h=Dr;a=Rr;var y=32-_n(h)-1;h&=~(1<<y),c+=1;var x=32-_n(o)+y;if(30<x){var E=y-y%5;x=(h&(1<<E)-1).toString(32),h>>=E,y-=E,Dr=1<<32-_n(o)+y|c<<y|h,Rr=x+a}else Dr=1<<x|c<<y|h,Rr=a}function Hm(a){a.return!==null&&(ea(a,1),xO(a,1,0))}function Fm(a){for(;a===jd;)jd=Vo[--Uo],Vo[Uo]=null,Vl=Vo[--Uo],Vo[Uo]=null;for(;a===za;)za=Yn[--Wn],Yn[Wn]=null,Rr=Yn[--Wn],Yn[Wn]=null,Dr=Yn[--Wn],Yn[Wn]=null}function SO(a,o){Yn[Wn++]=Dr,Yn[Wn++]=Rr,Yn[Wn++]=za,Dr=o.id,Rr=o.overflow,za=a}var en=null,pt=null,qe=!1,$a=null,Zn=!1,Gm=Error(r(519));function Ba(a){var o=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Ul(Xn(o,a)),Gm}function wO(a){var o=a.stateNode,c=a.type,h=a.memoizedProps;switch(o[Jt]=a,o[yn]=h,c){case"dialog":$e("cancel",o),$e("close",o);break;case"iframe":case"object":case"embed":$e("load",o);break;case"video":case"audio":for(c=0;c<dc.length;c++)$e(dc[c],o);break;case"source":$e("error",o);break;case"img":case"image":case"link":$e("error",o),$e("load",o);break;case"details":$e("toggle",o);break;case"input":$e("invalid",o),k2(o,h.value,h.defaultValue,h.checked,h.defaultChecked,h.type,h.name,!0);break;case"select":$e("invalid",o);break;case"textarea":$e("invalid",o),z2(o,h.value,h.defaultValue,h.children)}c=h.children,typeof c!="string"&&typeof c!="number"&&typeof c!="bigint"||o.textContent===""+c||h.suppressHydrationWarning===!0||BT(o.textContent,c)?(h.popover!=null&&($e("beforetoggle",o),$e("toggle",o)),h.onScroll!=null&&$e("scroll",o),h.onScrollEnd!=null&&$e("scrollend",o),h.onClick!=null&&(o.onclick=Zr),o=!0):o=!1,o||Ba(a,!0)}function AO(a){for(en=a.return;en;)switch(en.tag){case 5:case 31:case 13:Zn=!1;return;case 27:case 3:Zn=!0;return;default:en=en.return}}function Ho(a){if(a!==en)return!1;if(!qe)return AO(a),qe=!0,!1;var o=a.tag,c;if((c=o!==3&&o!==27)&&((c=o===5)&&(c=a.type,c=!(c!=="form"&&c!=="button")||uv(a.type,a.memoizedProps)),c=!c),c&&pt&&Ba(a),AO(a),o===13){if(a=a.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(r(317));pt=XT(a)}else if(o===31){if(a=a.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(r(317));pt=XT(a)}else o===27?(o=pt,Ja(a.type)?(a=mv,mv=null,pt=a):pt=o):pt=en?Jn(a.stateNode.nextSibling):null;return!0}function Mi(){pt=en=null,qe=!1}function Km(){var a=$a;return a!==null&&(An===null?An=a:An.push.apply(An,a),$a=null),a}function Ul(a){$a===null?$a=[a]:$a.push(a)}var Xm=z(null),Di=null,ta=null;function Ia(a,o,c){te(Xm,o._currentValue),o._currentValue=c}function na(a){a._currentValue=Xm.current,G(Xm)}function Ym(a,o,c){for(;a!==null;){var h=a.alternate;if((a.childLanes&o)!==o?(a.childLanes|=o,h!==null&&(h.childLanes|=o)):h!==null&&(h.childLanes&o)!==o&&(h.childLanes|=o),a===c)break;a=a.return}}function Wm(a,o,c,h){var y=a.child;for(y!==null&&(y.return=a);y!==null;){var x=y.dependencies;if(x!==null){var E=y.child;x=x.firstContext;e:for(;x!==null;){var R=x;x=y;for(var I=0;I<o.length;I++)if(R.context===o[I]){x.lanes|=c,R=x.alternate,R!==null&&(R.lanes|=c),Ym(x.return,c,a),h||(E=null);break e}x=R.next}}else if(y.tag===18){if(E=y.return,E===null)throw Error(r(341));E.lanes|=c,x=E.alternate,x!==null&&(x.lanes|=c),Ym(E,c,a),E=null}else E=y.child;if(E!==null)E.return=y;else for(E=y;E!==null;){if(E===a){E=null;break}if(y=E.sibling,y!==null){y.return=E.return,E=y;break}E=E.return}y=E}}function Fo(a,o,c,h){a=null;for(var y=o,x=!1;y!==null;){if(!x){if((y.flags&524288)!==0)x=!0;else if((y.flags&262144)!==0)break}if(y.tag===10){var E=y.alternate;if(E===null)throw Error(r(387));if(E=E.memoizedProps,E!==null){var R=y.type;Pn(y.pendingProps.value,E.value)||(a!==null?a.push(R):a=[R])}}else if(y===ye.current){if(E=y.alternate,E===null)throw Error(r(387));E.memoizedState.memoizedState!==y.memoizedState.memoizedState&&(a!==null?a.push(gc):a=[gc])}y=y.return}a!==null&&Wm(o,a,c,h),o.flags|=262144}function Td(a){for(a=a.firstContext;a!==null;){if(!Pn(a.context._currentValue,a.memoizedValue))return!0;a=a.next}return!1}function Ri(a){Di=a,ta=null,a=a.dependencies,a!==null&&(a.firstContext=null)}function tn(a){return OO(Di,a)}function Cd(a,o){return Di===null&&Ri(a),OO(a,o)}function OO(a,o){var c=o._currentValue;if(o={context:o,memoizedValue:c,next:null},ta===null){if(a===null)throw Error(r(308));ta=o,a.dependencies={lanes:0,firstContext:o},a.flags|=524288}else ta=ta.next=o;return c}var IB=typeof AbortController<"u"?AbortController:function(){var a=[],o=this.signal={aborted:!1,addEventListener:function(c,h){a.push(h)}};this.abort=function(){o.aborted=!0,a.forEach(function(c){return c()})}},qB=e.unstable_scheduleCallback,VB=e.unstable_NormalPriority,Mt={$$typeof:T,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Zm(){return{controller:new IB,data:new Map,refCount:0}}function Hl(a){a.refCount--,a.refCount===0&&qB(VB,function(){a.controller.abort()})}var Fl=null,Qm=0,Go=0,Ko=null;function UB(a,o){if(Fl===null){var c=Fl=[];Qm=0,Go=tv(),Ko={status:"pending",value:void 0,then:function(h){c.push(h)}}}return Qm++,o.then(jO,jO),o}function jO(){if(--Qm===0&&Fl!==null){Ko!==null&&(Ko.status="fulfilled");var a=Fl;Fl=null,Go=0,Ko=null;for(var o=0;o<a.length;o++)(0,a[o])()}}function HB(a,o){var c=[],h={status:"pending",value:null,reason:null,then:function(y){c.push(y)}};return a.then(function(){h.status="fulfilled",h.value=o;for(var y=0;y<c.length;y++)(0,c[y])(o)},function(y){for(h.status="rejected",h.reason=y,y=0;y<c.length;y++)(0,c[y])(void 0)}),h}var TO=L.S;L.S=function(a,o){cT=ln(),typeof o=="object"&&o!==null&&typeof o.then=="function"&&UB(a,o),TO!==null&&TO(a,o)};var ki=z(null);function Jm(){var a=ki.current;return a!==null?a:lt.pooledCache}function Ed(a,o){o===null?te(ki,ki.current):te(ki,o.pool)}function CO(){var a=Jm();return a===null?null:{parent:Mt._currentValue,pool:a}}var Xo=Error(r(460)),eg=Error(r(474)),_d=Error(r(542)),Pd={then:function(){}};function EO(a){return a=a.status,a==="fulfilled"||a==="rejected"}function _O(a,o,c){switch(c=a[c],c===void 0?a.push(o):c!==o&&(o.then(Zr,Zr),o=c),o.status){case"fulfilled":return o.value;case"rejected":throw a=o.reason,NO(a),a;default:if(typeof o.status=="string")o.then(Zr,Zr);else{if(a=lt,a!==null&&100<a.shellSuspendCounter)throw Error(r(482));a=o,a.status="pending",a.then(function(h){if(o.status==="pending"){var y=o;y.status="fulfilled",y.value=h}},function(h){if(o.status==="pending"){var y=o;y.status="rejected",y.reason=h}})}switch(o.status){case"fulfilled":return o.value;case"rejected":throw a=o.reason,NO(a),a}throw zi=o,Xo}}function Li(a){try{var o=a._init;return o(a._payload)}catch(c){throw c!==null&&typeof c=="object"&&typeof c.then=="function"?(zi=c,Xo):c}}var zi=null;function PO(){if(zi===null)throw Error(r(459));var a=zi;return zi=null,a}function NO(a){if(a===Xo||a===_d)throw Error(r(483))}var Yo=null,Gl=0;function Nd(a){var o=Gl;return Gl+=1,Yo===null&&(Yo=[]),_O(Yo,a,o)}function Kl(a,o){o=o.props.ref,a.ref=o!==void 0?o:null}function Md(a,o){throw o.$$typeof===v?Error(r(525)):(a=Object.prototype.toString.call(o),Error(r(31,a==="[object Object]"?"object with keys {"+Object.keys(o).join(", ")+"}":a)))}function MO(a){function o(K,q){if(a){var Y=K.deletions;Y===null?(K.deletions=[q],K.flags|=16):Y.push(q)}}function c(K,q){if(!a)return null;for(;q!==null;)o(K,q),q=q.sibling;return null}function h(K){for(var q=new Map;K!==null;)K.key!==null?q.set(K.key,K):q.set(K.index,K),K=K.sibling;return q}function y(K,q){return K=Jr(K,q),K.index=0,K.sibling=null,K}function x(K,q,Y){return K.index=Y,a?(Y=K.alternate,Y!==null?(Y=Y.index,Y<q?(K.flags|=67108866,q):Y):(K.flags|=67108866,q)):(K.flags|=1048576,q)}function E(K){return a&&K.alternate===null&&(K.flags|=67108866),K}function R(K,q,Y,ae){return q===null||q.tag!==6?(q=Vm(Y,K.mode,ae),q.return=K,q):(q=y(q,Y),q.return=K,q)}function I(K,q,Y,ae){var xe=Y.type;return xe===S?ne(K,q,Y.props.children,ae,Y.key):q!==null&&(q.elementType===xe||typeof xe=="object"&&xe!==null&&xe.$$typeof===D&&Li(xe)===q.type)?(q=y(q,Y.props),Kl(q,Y),q.return=K,q):(q=Od(Y.type,Y.key,Y.props,null,K.mode,ae),Kl(q,Y),q.return=K,q)}function W(K,q,Y,ae){return q===null||q.tag!==4||q.stateNode.containerInfo!==Y.containerInfo||q.stateNode.implementation!==Y.implementation?(q=Um(Y,K.mode,ae),q.return=K,q):(q=y(q,Y.children||[]),q.return=K,q)}function ne(K,q,Y,ae,xe){return q===null||q.tag!==7?(q=Ni(Y,K.mode,ae,xe),q.return=K,q):(q=y(q,Y),q.return=K,q)}function oe(K,q,Y){if(typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint")return q=Vm(""+q,K.mode,Y),q.return=K,q;if(typeof q=="object"&&q!==null){switch(q.$$typeof){case b:return Y=Od(q.type,q.key,q.props,null,K.mode,Y),Kl(Y,q),Y.return=K,Y;case A:return q=Um(q,K.mode,Y),q.return=K,q;case D:return q=Li(q),oe(K,q,Y)}if(Z(q)||H(q))return q=Ni(q,K.mode,Y,null),q.return=K,q;if(typeof q.then=="function")return oe(K,Nd(q),Y);if(q.$$typeof===T)return oe(K,Cd(K,q),Y);Md(K,q)}return null}function Q(K,q,Y,ae){var xe=q!==null?q.key:null;if(typeof Y=="string"&&Y!==""||typeof Y=="number"||typeof Y=="bigint")return xe!==null?null:R(K,q,""+Y,ae);if(typeof Y=="object"&&Y!==null){switch(Y.$$typeof){case b:return Y.key===xe?I(K,q,Y,ae):null;case A:return Y.key===xe?W(K,q,Y,ae):null;case D:return Y=Li(Y),Q(K,q,Y,ae)}if(Z(Y)||H(Y))return xe!==null?null:ne(K,q,Y,ae,null);if(typeof Y.then=="function")return Q(K,q,Nd(Y),ae);if(Y.$$typeof===T)return Q(K,q,Cd(K,Y),ae);Md(K,Y)}return null}function ee(K,q,Y,ae,xe){if(typeof ae=="string"&&ae!==""||typeof ae=="number"||typeof ae=="bigint")return K=K.get(Y)||null,R(q,K,""+ae,xe);if(typeof ae=="object"&&ae!==null){switch(ae.$$typeof){case b:return K=K.get(ae.key===null?Y:ae.key)||null,I(q,K,ae,xe);case A:return K=K.get(ae.key===null?Y:ae.key)||null,W(q,K,ae,xe);case D:return ae=Li(ae),ee(K,q,Y,ae,xe)}if(Z(ae)||H(ae))return K=K.get(Y)||null,ne(q,K,ae,xe,null);if(typeof ae.then=="function")return ee(K,q,Y,Nd(ae),xe);if(ae.$$typeof===T)return ee(K,q,Y,Cd(q,ae),xe);Md(q,ae)}return null}function pe(K,q,Y,ae){for(var xe=null,Ue=null,ve=q,ke=q=0,Ie=null;ve!==null&&ke<Y.length;ke++){ve.index>ke?(Ie=ve,ve=null):Ie=ve.sibling;var He=Q(K,ve,Y[ke],ae);if(He===null){ve===null&&(ve=Ie);break}a&&ve&&He.alternate===null&&o(K,ve),q=x(He,q,ke),Ue===null?xe=He:Ue.sibling=He,Ue=He,ve=Ie}if(ke===Y.length)return c(K,ve),qe&&ea(K,ke),xe;if(ve===null){for(;ke<Y.length;ke++)ve=oe(K,Y[ke],ae),ve!==null&&(q=x(ve,q,ke),Ue===null?xe=ve:Ue.sibling=ve,Ue=ve);return qe&&ea(K,ke),xe}for(ve=h(ve);ke<Y.length;ke++)Ie=ee(ve,K,ke,Y[ke],ae),Ie!==null&&(a&&Ie.alternate!==null&&ve.delete(Ie.key===null?ke:Ie.key),q=x(Ie,q,ke),Ue===null?xe=Ie:Ue.sibling=Ie,Ue=Ie);return a&&ve.forEach(function(ai){return o(K,ai)}),qe&&ea(K,ke),xe}function je(K,q,Y,ae){if(Y==null)throw Error(r(151));for(var xe=null,Ue=null,ve=q,ke=q=0,Ie=null,He=Y.next();ve!==null&&!He.done;ke++,He=Y.next()){ve.index>ke?(Ie=ve,ve=null):Ie=ve.sibling;var ai=Q(K,ve,He.value,ae);if(ai===null){ve===null&&(ve=Ie);break}a&&ve&&ai.alternate===null&&o(K,ve),q=x(ai,q,ke),Ue===null?xe=ai:Ue.sibling=ai,Ue=ai,ve=Ie}if(He.done)return c(K,ve),qe&&ea(K,ke),xe;if(ve===null){for(;!He.done;ke++,He=Y.next())He=oe(K,He.value,ae),He!==null&&(q=x(He,q,ke),Ue===null?xe=He:Ue.sibling=He,Ue=He);return qe&&ea(K,ke),xe}for(ve=h(ve);!He.done;ke++,He=Y.next())He=ee(ve,K,ke,He.value,ae),He!==null&&(a&&He.alternate!==null&&ve.delete(He.key===null?ke:He.key),q=x(He,q,ke),Ue===null?xe=He:Ue.sibling=He,Ue=He);return a&&ve.forEach(function(t9){return o(K,t9)}),qe&&ea(K,ke),xe}function ot(K,q,Y,ae){if(typeof Y=="object"&&Y!==null&&Y.type===S&&Y.key===null&&(Y=Y.props.children),typeof Y=="object"&&Y!==null){switch(Y.$$typeof){case b:e:{for(var xe=Y.key;q!==null;){if(q.key===xe){if(xe=Y.type,xe===S){if(q.tag===7){c(K,q.sibling),ae=y(q,Y.props.children),ae.return=K,K=ae;break e}}else if(q.elementType===xe||typeof xe=="object"&&xe!==null&&xe.$$typeof===D&&Li(xe)===q.type){c(K,q.sibling),ae=y(q,Y.props),Kl(ae,Y),ae.return=K,K=ae;break e}c(K,q);break}else o(K,q);q=q.sibling}Y.type===S?(ae=Ni(Y.props.children,K.mode,ae,Y.key),ae.return=K,K=ae):(ae=Od(Y.type,Y.key,Y.props,null,K.mode,ae),Kl(ae,Y),ae.return=K,K=ae)}return E(K);case A:e:{for(xe=Y.key;q!==null;){if(q.key===xe)if(q.tag===4&&q.stateNode.containerInfo===Y.containerInfo&&q.stateNode.implementation===Y.implementation){c(K,q.sibling),ae=y(q,Y.children||[]),ae.return=K,K=ae;break e}else{c(K,q);break}else o(K,q);q=q.sibling}ae=Um(Y,K.mode,ae),ae.return=K,K=ae}return E(K);case D:return Y=Li(Y),ot(K,q,Y,ae)}if(Z(Y))return pe(K,q,Y,ae);if(H(Y)){if(xe=H(Y),typeof xe!="function")throw Error(r(150));return Y=xe.call(Y),je(K,q,Y,ae)}if(typeof Y.then=="function")return ot(K,q,Nd(Y),ae);if(Y.$$typeof===T)return ot(K,q,Cd(K,Y),ae);Md(K,Y)}return typeof Y=="string"&&Y!==""||typeof Y=="number"||typeof Y=="bigint"?(Y=""+Y,q!==null&&q.tag===6?(c(K,q.sibling),ae=y(q,Y),ae.return=K,K=ae):(c(K,q),ae=Vm(Y,K.mode,ae),ae.return=K,K=ae),E(K)):c(K,q)}return function(K,q,Y,ae){try{Gl=0;var xe=ot(K,q,Y,ae);return Yo=null,xe}catch(ve){if(ve===Xo||ve===_d)throw ve;var Ue=Nn(29,ve,null,K.mode);return Ue.lanes=ae,Ue.return=K,Ue}finally{}}}var $i=MO(!0),DO=MO(!1),qa=!1;function tg(a){a.updateQueue={baseState:a.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function ng(a,o){a=a.updateQueue,o.updateQueue===a&&(o.updateQueue={baseState:a.baseState,firstBaseUpdate:a.firstBaseUpdate,lastBaseUpdate:a.lastBaseUpdate,shared:a.shared,callbacks:null})}function Va(a){return{lane:a,tag:0,payload:null,callback:null,next:null}}function Ua(a,o,c){var h=a.updateQueue;if(h===null)return null;if(h=h.shared,(Ye&2)!==0){var y=h.pending;return y===null?o.next=o:(o.next=y.next,y.next=o),h.pending=o,o=Ad(a),gO(a,null,c),o}return wd(a,h,o,c),Ad(a)}function Xl(a,o,c){if(o=o.updateQueue,o!==null&&(o=o.shared,(c&4194048)!==0)){var h=o.lanes;h&=a.pendingLanes,c|=h,o.lanes=c,O2(a,c)}}function rg(a,o){var c=a.updateQueue,h=a.alternate;if(h!==null&&(h=h.updateQueue,c===h)){var y=null,x=null;if(c=c.firstBaseUpdate,c!==null){do{var E={lane:c.lane,tag:c.tag,payload:c.payload,callback:null,next:null};x===null?y=x=E:x=x.next=E,c=c.next}while(c!==null);x===null?y=x=o:x=x.next=o}else y=x=o;c={baseState:h.baseState,firstBaseUpdate:y,lastBaseUpdate:x,shared:h.shared,callbacks:h.callbacks},a.updateQueue=c;return}a=c.lastBaseUpdate,a===null?c.firstBaseUpdate=o:a.next=o,c.lastBaseUpdate=o}var ag=!1;function Yl(){if(ag){var a=Ko;if(a!==null)throw a}}function Wl(a,o,c,h){ag=!1;var y=a.updateQueue;qa=!1;var x=y.firstBaseUpdate,E=y.lastBaseUpdate,R=y.shared.pending;if(R!==null){y.shared.pending=null;var I=R,W=I.next;I.next=null,E===null?x=W:E.next=W,E=I;var ne=a.alternate;ne!==null&&(ne=ne.updateQueue,R=ne.lastBaseUpdate,R!==E&&(R===null?ne.firstBaseUpdate=W:R.next=W,ne.lastBaseUpdate=I))}if(x!==null){var oe=y.baseState;E=0,ne=W=I=null,R=x;do{var Q=R.lane&-536870913,ee=Q!==R.lane;if(ee?(Be&Q)===Q:(h&Q)===Q){Q!==0&&Q===Go&&(ag=!0),ne!==null&&(ne=ne.next={lane:0,tag:R.tag,payload:R.payload,callback:null,next:null});e:{var pe=a,je=R;Q=o;var ot=c;switch(je.tag){case 1:if(pe=je.payload,typeof pe=="function"){oe=pe.call(ot,oe,Q);break e}oe=pe;break e;case 3:pe.flags=pe.flags&-65537|128;case 0:if(pe=je.payload,Q=typeof pe=="function"?pe.call(ot,oe,Q):pe,Q==null)break e;oe=m({},oe,Q);break e;case 2:qa=!0}}Q=R.callback,Q!==null&&(a.flags|=64,ee&&(a.flags|=8192),ee=y.callbacks,ee===null?y.callbacks=[Q]:ee.push(Q))}else ee={lane:Q,tag:R.tag,payload:R.payload,callback:R.callback,next:null},ne===null?(W=ne=ee,I=oe):ne=ne.next=ee,E|=Q;if(R=R.next,R===null){if(R=y.shared.pending,R===null)break;ee=R,R=ee.next,ee.next=null,y.lastBaseUpdate=ee,y.shared.pending=null}}while(!0);ne===null&&(I=oe),y.baseState=I,y.firstBaseUpdate=W,y.lastBaseUpdate=ne,x===null&&(y.shared.lanes=0),Xa|=E,a.lanes=E,a.memoizedState=oe}}function RO(a,o){if(typeof a!="function")throw Error(r(191,a));a.call(o)}function kO(a,o){var c=a.callbacks;if(c!==null)for(a.callbacks=null,a=0;a<c.length;a++)RO(c[a],o)}var Wo=z(null),Dd=z(0);function LO(a,o){a=da,te(Dd,a),te(Wo,o),da=a|o.baseLanes}function ig(){te(Dd,da),te(Wo,Wo.current)}function og(){da=Dd.current,G(Wo),G(Dd)}var Mn=z(null),Qn=null;function Ha(a){var o=a.alternate;te(Et,Et.current&1),te(Mn,a),Qn===null&&(o===null||Wo.current!==null||o.memoizedState!==null)&&(Qn=a)}function sg(a){te(Et,Et.current),te(Mn,a),Qn===null&&(Qn=a)}function zO(a){a.tag===22?(te(Et,Et.current),te(Mn,a),Qn===null&&(Qn=a)):Fa()}function Fa(){te(Et,Et.current),te(Mn,Mn.current)}function Dn(a){G(Mn),Qn===a&&(Qn=null),G(Et)}var Et=z(0);function Rd(a){for(var o=a;o!==null;){if(o.tag===13){var c=o.memoizedState;if(c!==null&&(c=c.dehydrated,c===null||hv(c)||pv(c)))return o}else if(o.tag===19&&(o.memoizedProps.revealOrder==="forwards"||o.memoizedProps.revealOrder==="backwards"||o.memoizedProps.revealOrder==="unstable_legacy-backwards"||o.memoizedProps.revealOrder==="together")){if((o.flags&128)!==0)return o}else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===a)break;for(;o.sibling===null;){if(o.return===null||o.return===a)return null;o=o.return}o.sibling.return=o.return,o=o.sibling}return null}var ra=0,De=null,at=null,Dt=null,kd=!1,Zo=!1,Bi=!1,Ld=0,Zl=0,Qo=null,FB=0;function Ot(){throw Error(r(321))}function lg(a,o){if(o===null)return!1;for(var c=0;c<o.length&&c<a.length;c++)if(!Pn(a[c],o[c]))return!1;return!0}function cg(a,o,c,h,y,x){return ra=x,De=o,o.memoizedState=null,o.updateQueue=null,o.lanes=0,L.H=a===null||a.memoizedState===null?xj:Og,Bi=!1,x=c(h,y),Bi=!1,Zo&&(x=BO(o,c,h,y)),$O(a),x}function $O(a){L.H=ec;var o=at!==null&&at.next!==null;if(ra=0,Dt=at=De=null,kd=!1,Zl=0,Qo=null,o)throw Error(r(300));a===null||Rt||(a=a.dependencies,a!==null&&Td(a)&&(Rt=!0))}function BO(a,o,c,h){De=a;var y=0;do{if(Zo&&(Qo=null),Zl=0,Zo=!1,25<=y)throw Error(r(301));if(y+=1,Dt=at=null,a.updateQueue!=null){var x=a.updateQueue;x.lastEffect=null,x.events=null,x.stores=null,x.memoCache!=null&&(x.memoCache.index=0)}L.H=Sj,x=o(c,h)}while(Zo);return x}function GB(){var a=L.H,o=a.useState()[0];return o=typeof o.then=="function"?Ql(o):o,a=a.useState()[0],(at!==null?at.memoizedState:null)!==a&&(De.flags|=1024),o}function ug(){var a=Ld!==0;return Ld=0,a}function dg(a,o,c){o.updateQueue=a.updateQueue,o.flags&=-2053,a.lanes&=~c}function fg(a){if(kd){for(a=a.memoizedState;a!==null;){var o=a.queue;o!==null&&(o.pending=null),a=a.next}kd=!1}ra=0,Dt=at=De=null,Zo=!1,Zl=Ld=0,Qo=null}function hn(){var a={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Dt===null?De.memoizedState=Dt=a:Dt=Dt.next=a,Dt}function _t(){if(at===null){var a=De.alternate;a=a!==null?a.memoizedState:null}else a=at.next;var o=Dt===null?De.memoizedState:Dt.next;if(o!==null)Dt=o,at=a;else{if(a===null)throw De.alternate===null?Error(r(467)):Error(r(310));at=a,a={memoizedState:at.memoizedState,baseState:at.baseState,baseQueue:at.baseQueue,queue:at.queue,next:null},Dt===null?De.memoizedState=Dt=a:Dt=Dt.next=a}return Dt}function zd(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ql(a){var o=Zl;return Zl+=1,Qo===null&&(Qo=[]),a=_O(Qo,a,o),o=De,(Dt===null?o.memoizedState:Dt.next)===null&&(o=o.alternate,L.H=o===null||o.memoizedState===null?xj:Og),a}function $d(a){if(a!==null&&typeof a=="object"){if(typeof a.then=="function")return Ql(a);if(a.$$typeof===T)return tn(a)}throw Error(r(438,String(a)))}function hg(a){var o=null,c=De.updateQueue;if(c!==null&&(o=c.memoCache),o==null){var h=De.alternate;h!==null&&(h=h.updateQueue,h!==null&&(h=h.memoCache,h!=null&&(o={data:h.data.map(function(y){return y.slice()}),index:0})))}if(o==null&&(o={data:[],index:0}),c===null&&(c=zd(),De.updateQueue=c),c.memoCache=o,c=o.data[o.index],c===void 0)for(c=o.data[o.index]=Array(a),h=0;h<a;h++)c[h]=U;return o.index++,c}function aa(a,o){return typeof o=="function"?o(a):o}function Bd(a){var o=_t();return pg(o,at,a)}function pg(a,o,c){var h=a.queue;if(h===null)throw Error(r(311));h.lastRenderedReducer=c;var y=a.baseQueue,x=h.pending;if(x!==null){if(y!==null){var E=y.next;y.next=x.next,x.next=E}o.baseQueue=y=x,h.pending=null}if(x=a.baseState,y===null)a.memoizedState=x;else{o=y.next;var R=E=null,I=null,W=o,ne=!1;do{var oe=W.lane&-536870913;if(oe!==W.lane?(Be&oe)===oe:(ra&oe)===oe){var Q=W.revertLane;if(Q===0)I!==null&&(I=I.next={lane:0,revertLane:0,gesture:null,action:W.action,hasEagerState:W.hasEagerState,eagerState:W.eagerState,next:null}),oe===Go&&(ne=!0);else if((ra&Q)===Q){W=W.next,Q===Go&&(ne=!0);continue}else oe={lane:0,revertLane:W.revertLane,gesture:null,action:W.action,hasEagerState:W.hasEagerState,eagerState:W.eagerState,next:null},I===null?(R=I=oe,E=x):I=I.next=oe,De.lanes|=Q,Xa|=Q;oe=W.action,Bi&&c(x,oe),x=W.hasEagerState?W.eagerState:c(x,oe)}else Q={lane:oe,revertLane:W.revertLane,gesture:W.gesture,action:W.action,hasEagerState:W.hasEagerState,eagerState:W.eagerState,next:null},I===null?(R=I=Q,E=x):I=I.next=Q,De.lanes|=oe,Xa|=oe;W=W.next}while(W!==null&&W!==o);if(I===null?E=x:I.next=R,!Pn(x,a.memoizedState)&&(Rt=!0,ne&&(c=Ko,c!==null)))throw c;a.memoizedState=x,a.baseState=E,a.baseQueue=I,h.lastRenderedState=x}return y===null&&(h.lanes=0),[a.memoizedState,h.dispatch]}function mg(a){var o=_t(),c=o.queue;if(c===null)throw Error(r(311));c.lastRenderedReducer=a;var h=c.dispatch,y=c.pending,x=o.memoizedState;if(y!==null){c.pending=null;var E=y=y.next;do x=a(x,E.action),E=E.next;while(E!==y);Pn(x,o.memoizedState)||(Rt=!0),o.memoizedState=x,o.baseQueue===null&&(o.baseState=x),c.lastRenderedState=x}return[x,h]}function IO(a,o,c){var h=De,y=_t(),x=qe;if(x){if(c===void 0)throw Error(r(407));c=c()}else c=o();var E=!Pn((at||y).memoizedState,c);if(E&&(y.memoizedState=c,Rt=!0),y=y.queue,yg(UO.bind(null,h,y,a),[a]),y.getSnapshot!==o||E||Dt!==null&&Dt.memoizedState.tag&1){if(h.flags|=2048,Jo(9,{destroy:void 0},VO.bind(null,h,y,c,o),null),lt===null)throw Error(r(349));x||(ra&127)!==0||qO(h,o,c)}return c}function qO(a,o,c){a.flags|=16384,a={getSnapshot:o,value:c},o=De.updateQueue,o===null?(o=zd(),De.updateQueue=o,o.stores=[a]):(c=o.stores,c===null?o.stores=[a]:c.push(a))}function VO(a,o,c,h){o.value=c,o.getSnapshot=h,HO(o)&&FO(a)}function UO(a,o,c){return c(function(){HO(o)&&FO(a)})}function HO(a){var o=a.getSnapshot;a=a.value;try{var c=o();return!Pn(a,c)}catch{return!0}}function FO(a){var o=Pi(a,2);o!==null&&On(o,a,2)}function gg(a){var o=hn();if(typeof a=="function"){var c=a;if(a=c(),Bi){Ra(!0);try{c()}finally{Ra(!1)}}}return o.memoizedState=o.baseState=a,o.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:aa,lastRenderedState:a},o}function GO(a,o,c,h){return a.baseState=c,pg(a,at,typeof h=="function"?h:aa)}function KB(a,o,c,h,y){if(Vd(a))throw Error(r(485));if(a=o.action,a!==null){var x={payload:y,action:a,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(E){x.listeners.push(E)}};L.T!==null?c(!0):x.isTransition=!1,h(x),c=o.pending,c===null?(x.next=o.pending=x,KO(o,x)):(x.next=c.next,o.pending=c.next=x)}}function KO(a,o){var c=o.action,h=o.payload,y=a.state;if(o.isTransition){var x=L.T,E={};L.T=E;try{var R=c(y,h),I=L.S;I!==null&&I(E,R),XO(a,o,R)}catch(W){vg(a,o,W)}finally{x!==null&&E.types!==null&&(x.types=E.types),L.T=x}}else try{x=c(y,h),XO(a,o,x)}catch(W){vg(a,o,W)}}function XO(a,o,c){c!==null&&typeof c=="object"&&typeof c.then=="function"?c.then(function(h){YO(a,o,h)},function(h){return vg(a,o,h)}):YO(a,o,c)}function YO(a,o,c){o.status="fulfilled",o.value=c,WO(o),a.state=c,o=a.pending,o!==null&&(c=o.next,c===o?a.pending=null:(c=c.next,o.next=c,KO(a,c)))}function vg(a,o,c){var h=a.pending;if(a.pending=null,h!==null){h=h.next;do o.status="rejected",o.reason=c,WO(o),o=o.next;while(o!==h)}a.action=null}function WO(a){a=a.listeners;for(var o=0;o<a.length;o++)(0,a[o])()}function ZO(a,o){return o}function QO(a,o){if(qe){var c=lt.formState;if(c!==null){e:{var h=De;if(qe){if(pt){t:{for(var y=pt,x=Zn;y.nodeType!==8;){if(!x){y=null;break t}if(y=Jn(y.nextSibling),y===null){y=null;break t}}x=y.data,y=x==="F!"||x==="F"?y:null}if(y){pt=Jn(y.nextSibling),h=y.data==="F!";break e}}Ba(h)}h=!1}h&&(o=c[0])}}return c=hn(),c.memoizedState=c.baseState=o,h={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ZO,lastRenderedState:o},c.queue=h,c=vj.bind(null,De,h),h.dispatch=c,h=gg(!1),x=Ag.bind(null,De,!1,h.queue),h=hn(),y={state:o,dispatch:null,action:a,pending:null},h.queue=y,c=KB.bind(null,De,y,x,c),y.dispatch=c,h.memoizedState=a,[o,c,!1]}function JO(a){var o=_t();return ej(o,at,a)}function ej(a,o,c){if(o=pg(a,o,ZO)[0],a=Bd(aa)[0],typeof o=="object"&&o!==null&&typeof o.then=="function")try{var h=Ql(o)}catch(E){throw E===Xo?_d:E}else h=o;o=_t();var y=o.queue,x=y.dispatch;return c!==o.memoizedState&&(De.flags|=2048,Jo(9,{destroy:void 0},XB.bind(null,y,c),null)),[h,x,a]}function XB(a,o){a.action=o}function tj(a){var o=_t(),c=at;if(c!==null)return ej(o,c,a);_t(),o=o.memoizedState,c=_t();var h=c.queue.dispatch;return c.memoizedState=a,[o,h,!1]}function Jo(a,o,c,h){return a={tag:a,create:c,deps:h,inst:o,next:null},o=De.updateQueue,o===null&&(o=zd(),De.updateQueue=o),c=o.lastEffect,c===null?o.lastEffect=a.next=a:(h=c.next,c.next=a,a.next=h,o.lastEffect=a),a}function nj(){return _t().memoizedState}function Id(a,o,c,h){var y=hn();De.flags|=a,y.memoizedState=Jo(1|o,{destroy:void 0},c,h===void 0?null:h)}function qd(a,o,c,h){var y=_t();h=h===void 0?null:h;var x=y.memoizedState.inst;at!==null&&h!==null&&lg(h,at.memoizedState.deps)?y.memoizedState=Jo(o,x,c,h):(De.flags|=a,y.memoizedState=Jo(1|o,x,c,h))}function rj(a,o){Id(8390656,8,a,o)}function yg(a,o){qd(2048,8,a,o)}function YB(a){De.flags|=4;var o=De.updateQueue;if(o===null)o=zd(),De.updateQueue=o,o.events=[a];else{var c=o.events;c===null?o.events=[a]:c.push(a)}}function aj(a){var o=_t().memoizedState;return YB({ref:o,nextImpl:a}),function(){if((Ye&2)!==0)throw Error(r(440));return o.impl.apply(void 0,arguments)}}function ij(a,o){return qd(4,2,a,o)}function oj(a,o){return qd(4,4,a,o)}function sj(a,o){if(typeof o=="function"){a=a();var c=o(a);return function(){typeof c=="function"?c():o(null)}}if(o!=null)return a=a(),o.current=a,function(){o.current=null}}function lj(a,o,c){c=c!=null?c.concat([a]):null,qd(4,4,sj.bind(null,o,a),c)}function bg(){}function cj(a,o){var c=_t();o=o===void 0?null:o;var h=c.memoizedState;return o!==null&&lg(o,h[1])?h[0]:(c.memoizedState=[a,o],a)}function uj(a,o){var c=_t();o=o===void 0?null:o;var h=c.memoizedState;if(o!==null&&lg(o,h[1]))return h[0];if(h=a(),Bi){Ra(!0);try{a()}finally{Ra(!1)}}return c.memoizedState=[h,o],h}function xg(a,o,c){return c===void 0||(ra&1073741824)!==0&&(Be&261930)===0?a.memoizedState=o:(a.memoizedState=c,a=dT(),De.lanes|=a,Xa|=a,c)}function dj(a,o,c,h){return Pn(c,o)?c:Wo.current!==null?(a=xg(a,c,h),Pn(a,o)||(Rt=!0),a):(ra&42)===0||(ra&1073741824)!==0&&(Be&261930)===0?(Rt=!0,a.memoizedState=c):(a=dT(),De.lanes|=a,Xa|=a,o)}function fj(a,o,c,h,y){var x=V.p;V.p=x!==0&&8>x?x:8;var E=L.T,R={};L.T=R,Ag(a,!1,o,c);try{var I=y(),W=L.S;if(W!==null&&W(R,I),I!==null&&typeof I=="object"&&typeof I.then=="function"){var ne=HB(I,h);Jl(a,o,ne,Ln(a))}else Jl(a,o,h,Ln(a))}catch(oe){Jl(a,o,{then:function(){},status:"rejected",reason:oe},Ln())}finally{V.p=x,E!==null&&R.types!==null&&(E.types=R.types),L.T=E}}function WB(){}function Sg(a,o,c,h){if(a.tag!==5)throw Error(r(476));var y=hj(a).queue;fj(a,y,o,F,c===null?WB:function(){return pj(a),c(h)})}function hj(a){var o=a.memoizedState;if(o!==null)return o;o={memoizedState:F,baseState:F,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:aa,lastRenderedState:F},next:null};var c={};return o.next={memoizedState:c,baseState:c,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:aa,lastRenderedState:c},next:null},a.memoizedState=o,a=a.alternate,a!==null&&(a.memoizedState=o),o}function pj(a){var o=hj(a);o.next===null&&(o=a.alternate.memoizedState),Jl(a,o.next.queue,{},Ln())}function wg(){return tn(gc)}function mj(){return _t().memoizedState}function gj(){return _t().memoizedState}function ZB(a){for(var o=a.return;o!==null;){switch(o.tag){case 24:case 3:var c=Ln();a=Va(c);var h=Ua(o,a,c);h!==null&&(On(h,o,c),Xl(h,o,c)),o={cache:Zm()},a.payload=o;return}o=o.return}}function QB(a,o,c){var h=Ln();c={lane:h,revertLane:0,gesture:null,action:c,hasEagerState:!1,eagerState:null,next:null},Vd(a)?yj(o,c):(c=Im(a,o,c,h),c!==null&&(On(c,a,h),bj(c,o,h)))}function vj(a,o,c){var h=Ln();Jl(a,o,c,h)}function Jl(a,o,c,h){var y={lane:h,revertLane:0,gesture:null,action:c,hasEagerState:!1,eagerState:null,next:null};if(Vd(a))yj(o,y);else{var x=a.alternate;if(a.lanes===0&&(x===null||x.lanes===0)&&(x=o.lastRenderedReducer,x!==null))try{var E=o.lastRenderedState,R=x(E,c);if(y.hasEagerState=!0,y.eagerState=R,Pn(R,E))return wd(a,o,y,0),lt===null&&Sd(),!1}catch{}finally{}if(c=Im(a,o,y,h),c!==null)return On(c,a,h),bj(c,o,h),!0}return!1}function Ag(a,o,c,h){if(h={lane:2,revertLane:tv(),gesture:null,action:h,hasEagerState:!1,eagerState:null,next:null},Vd(a)){if(o)throw Error(r(479))}else o=Im(a,c,h,2),o!==null&&On(o,a,2)}function Vd(a){var o=a.alternate;return a===De||o!==null&&o===De}function yj(a,o){Zo=kd=!0;var c=a.pending;c===null?o.next=o:(o.next=c.next,c.next=o),a.pending=o}function bj(a,o,c){if((c&4194048)!==0){var h=o.lanes;h&=a.pendingLanes,c|=h,o.lanes=c,O2(a,c)}}var ec={readContext:tn,use:$d,useCallback:Ot,useContext:Ot,useEffect:Ot,useImperativeHandle:Ot,useLayoutEffect:Ot,useInsertionEffect:Ot,useMemo:Ot,useReducer:Ot,useRef:Ot,useState:Ot,useDebugValue:Ot,useDeferredValue:Ot,useTransition:Ot,useSyncExternalStore:Ot,useId:Ot,useHostTransitionStatus:Ot,useFormState:Ot,useActionState:Ot,useOptimistic:Ot,useMemoCache:Ot,useCacheRefresh:Ot};ec.useEffectEvent=Ot;var xj={readContext:tn,use:$d,useCallback:function(a,o){return hn().memoizedState=[a,o===void 0?null:o],a},useContext:tn,useEffect:rj,useImperativeHandle:function(a,o,c){c=c!=null?c.concat([a]):null,Id(4194308,4,sj.bind(null,o,a),c)},useLayoutEffect:function(a,o){return Id(4194308,4,a,o)},useInsertionEffect:function(a,o){Id(4,2,a,o)},useMemo:function(a,o){var c=hn();o=o===void 0?null:o;var h=a();if(Bi){Ra(!0);try{a()}finally{Ra(!1)}}return c.memoizedState=[h,o],h},useReducer:function(a,o,c){var h=hn();if(c!==void 0){var y=c(o);if(Bi){Ra(!0);try{c(o)}finally{Ra(!1)}}}else y=o;return h.memoizedState=h.baseState=y,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:a,lastRenderedState:y},h.queue=a,a=a.dispatch=QB.bind(null,De,a),[h.memoizedState,a]},useRef:function(a){var o=hn();return a={current:a},o.memoizedState=a},useState:function(a){a=gg(a);var o=a.queue,c=vj.bind(null,De,o);return o.dispatch=c,[a.memoizedState,c]},useDebugValue:bg,useDeferredValue:function(a,o){var c=hn();return xg(c,a,o)},useTransition:function(){var a=gg(!1);return a=fj.bind(null,De,a.queue,!0,!1),hn().memoizedState=a,[!1,a]},useSyncExternalStore:function(a,o,c){var h=De,y=hn();if(qe){if(c===void 0)throw Error(r(407));c=c()}else{if(c=o(),lt===null)throw Error(r(349));(Be&127)!==0||qO(h,o,c)}y.memoizedState=c;var x={value:c,getSnapshot:o};return y.queue=x,rj(UO.bind(null,h,x,a),[a]),h.flags|=2048,Jo(9,{destroy:void 0},VO.bind(null,h,x,c,o),null),c},useId:function(){var a=hn(),o=lt.identifierPrefix;if(qe){var c=Rr,h=Dr;c=(h&~(1<<32-_n(h)-1)).toString(32)+c,o="_"+o+"R_"+c,c=Ld++,0<c&&(o+="H"+c.toString(32)),o+="_"}else c=FB++,o="_"+o+"r_"+c.toString(32)+"_";return a.memoizedState=o},useHostTransitionStatus:wg,useFormState:QO,useActionState:QO,useOptimistic:function(a){var o=hn();o.memoizedState=o.baseState=a;var c={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return o.queue=c,o=Ag.bind(null,De,!0,c),c.dispatch=o,[a,o]},useMemoCache:hg,useCacheRefresh:function(){return hn().memoizedState=ZB.bind(null,De)},useEffectEvent:function(a){var o=hn(),c={impl:a};return o.memoizedState=c,function(){if((Ye&2)!==0)throw Error(r(440));return c.impl.apply(void 0,arguments)}}},Og={readContext:tn,use:$d,useCallback:cj,useContext:tn,useEffect:yg,useImperativeHandle:lj,useInsertionEffect:ij,useLayoutEffect:oj,useMemo:uj,useReducer:Bd,useRef:nj,useState:function(){return Bd(aa)},useDebugValue:bg,useDeferredValue:function(a,o){var c=_t();return dj(c,at.memoizedState,a,o)},useTransition:function(){var a=Bd(aa)[0],o=_t().memoizedState;return[typeof a=="boolean"?a:Ql(a),o]},useSyncExternalStore:IO,useId:mj,useHostTransitionStatus:wg,useFormState:JO,useActionState:JO,useOptimistic:function(a,o){var c=_t();return GO(c,at,a,o)},useMemoCache:hg,useCacheRefresh:gj};Og.useEffectEvent=aj;var Sj={readContext:tn,use:$d,useCallback:cj,useContext:tn,useEffect:yg,useImperativeHandle:lj,useInsertionEffect:ij,useLayoutEffect:oj,useMemo:uj,useReducer:mg,useRef:nj,useState:function(){return mg(aa)},useDebugValue:bg,useDeferredValue:function(a,o){var c=_t();return at===null?xg(c,a,o):dj(c,at.memoizedState,a,o)},useTransition:function(){var a=mg(aa)[0],o=_t().memoizedState;return[typeof a=="boolean"?a:Ql(a),o]},useSyncExternalStore:IO,useId:mj,useHostTransitionStatus:wg,useFormState:tj,useActionState:tj,useOptimistic:function(a,o){var c=_t();return at!==null?GO(c,at,a,o):(c.baseState=a,[a,c.queue.dispatch])},useMemoCache:hg,useCacheRefresh:gj};Sj.useEffectEvent=aj;function jg(a,o,c,h){o=a.memoizedState,c=c(h,o),c=c==null?o:m({},o,c),a.memoizedState=c,a.lanes===0&&(a.updateQueue.baseState=c)}var Tg={enqueueSetState:function(a,o,c){a=a._reactInternals;var h=Ln(),y=Va(h);y.payload=o,c!=null&&(y.callback=c),o=Ua(a,y,h),o!==null&&(On(o,a,h),Xl(o,a,h))},enqueueReplaceState:function(a,o,c){a=a._reactInternals;var h=Ln(),y=Va(h);y.tag=1,y.payload=o,c!=null&&(y.callback=c),o=Ua(a,y,h),o!==null&&(On(o,a,h),Xl(o,a,h))},enqueueForceUpdate:function(a,o){a=a._reactInternals;var c=Ln(),h=Va(c);h.tag=2,o!=null&&(h.callback=o),o=Ua(a,h,c),o!==null&&(On(o,a,c),Xl(o,a,c))}};function wj(a,o,c,h,y,x,E){return a=a.stateNode,typeof a.shouldComponentUpdate=="function"?a.shouldComponentUpdate(h,x,E):o.prototype&&o.prototype.isPureReactComponent?!Il(c,h)||!Il(y,x):!0}function Aj(a,o,c,h){a=o.state,typeof o.componentWillReceiveProps=="function"&&o.componentWillReceiveProps(c,h),typeof o.UNSAFE_componentWillReceiveProps=="function"&&o.UNSAFE_componentWillReceiveProps(c,h),o.state!==a&&Tg.enqueueReplaceState(o,o.state,null)}function Ii(a,o){var c=o;if("ref"in o){c={};for(var h in o)h!=="ref"&&(c[h]=o[h])}if(a=a.defaultProps){c===o&&(c=m({},c));for(var y in a)c[y]===void 0&&(c[y]=a[y])}return c}function Oj(a){xd(a)}function jj(a){console.error(a)}function Tj(a){xd(a)}function Ud(a,o){try{var c=a.onUncaughtError;c(o.value,{componentStack:o.stack})}catch(h){setTimeout(function(){throw h})}}function Cj(a,o,c){try{var h=a.onCaughtError;h(c.value,{componentStack:c.stack,errorBoundary:o.tag===1?o.stateNode:null})}catch(y){setTimeout(function(){throw y})}}function Cg(a,o,c){return c=Va(c),c.tag=3,c.payload={element:null},c.callback=function(){Ud(a,o)},c}function Ej(a){return a=Va(a),a.tag=3,a}function _j(a,o,c,h){var y=c.type.getDerivedStateFromError;if(typeof y=="function"){var x=h.value;a.payload=function(){return y(x)},a.callback=function(){Cj(o,c,h)}}var E=c.stateNode;E!==null&&typeof E.componentDidCatch=="function"&&(a.callback=function(){Cj(o,c,h),typeof y!="function"&&(Ya===null?Ya=new Set([this]):Ya.add(this));var R=h.stack;this.componentDidCatch(h.value,{componentStack:R!==null?R:""})})}function JB(a,o,c,h,y){if(c.flags|=32768,h!==null&&typeof h=="object"&&typeof h.then=="function"){if(o=c.alternate,o!==null&&Fo(o,c,y,!0),c=Mn.current,c!==null){switch(c.tag){case 31:case 13:return Qn===null?tf():c.alternate===null&&jt===0&&(jt=3),c.flags&=-257,c.flags|=65536,c.lanes=y,h===Pd?c.flags|=16384:(o=c.updateQueue,o===null?c.updateQueue=new Set([h]):o.add(h),Qg(a,h,y)),!1;case 22:return c.flags|=65536,h===Pd?c.flags|=16384:(o=c.updateQueue,o===null?(o={transitions:null,markerInstances:null,retryQueue:new Set([h])},c.updateQueue=o):(c=o.retryQueue,c===null?o.retryQueue=new Set([h]):c.add(h)),Qg(a,h,y)),!1}throw Error(r(435,c.tag))}return Qg(a,h,y),tf(),!1}if(qe)return o=Mn.current,o!==null?((o.flags&65536)===0&&(o.flags|=256),o.flags|=65536,o.lanes=y,h!==Gm&&(a=Error(r(422),{cause:h}),Ul(Xn(a,c)))):(h!==Gm&&(o=Error(r(423),{cause:h}),Ul(Xn(o,c))),a=a.current.alternate,a.flags|=65536,y&=-y,a.lanes|=y,h=Xn(h,c),y=Cg(a.stateNode,h,y),rg(a,y),jt!==4&&(jt=2)),!1;var x=Error(r(520),{cause:h});if(x=Xn(x,c),lc===null?lc=[x]:lc.push(x),jt!==4&&(jt=2),o===null)return!0;h=Xn(h,c),c=o;do{switch(c.tag){case 3:return c.flags|=65536,a=y&-y,c.lanes|=a,a=Cg(c.stateNode,h,a),rg(c,a),!1;case 1:if(o=c.type,x=c.stateNode,(c.flags&128)===0&&(typeof o.getDerivedStateFromError=="function"||x!==null&&typeof x.componentDidCatch=="function"&&(Ya===null||!Ya.has(x))))return c.flags|=65536,y&=-y,c.lanes|=y,y=Ej(y),_j(y,a,c,h),rg(c,y),!1}c=c.return}while(c!==null);return!1}var Eg=Error(r(461)),Rt=!1;function nn(a,o,c,h){o.child=a===null?DO(o,null,c,h):$i(o,a.child,c,h)}function Pj(a,o,c,h,y){c=c.render;var x=o.ref;if("ref"in h){var E={};for(var R in h)R!=="ref"&&(E[R]=h[R])}else E=h;return Ri(o),h=cg(a,o,c,E,x,y),R=ug(),a!==null&&!Rt?(dg(a,o,y),ia(a,o,y)):(qe&&R&&Hm(o),o.flags|=1,nn(a,o,h,y),o.child)}function Nj(a,o,c,h,y){if(a===null){var x=c.type;return typeof x=="function"&&!qm(x)&&x.defaultProps===void 0&&c.compare===null?(o.tag=15,o.type=x,Mj(a,o,x,h,y)):(a=Od(c.type,null,h,o,o.mode,y),a.ref=o.ref,a.return=o,o.child=a)}if(x=a.child,!Lg(a,y)){var E=x.memoizedProps;if(c=c.compare,c=c!==null?c:Il,c(E,h)&&a.ref===o.ref)return ia(a,o,y)}return o.flags|=1,a=Jr(x,h),a.ref=o.ref,a.return=o,o.child=a}function Mj(a,o,c,h,y){if(a!==null){var x=a.memoizedProps;if(Il(x,h)&&a.ref===o.ref)if(Rt=!1,o.pendingProps=h=x,Lg(a,y))(a.flags&131072)!==0&&(Rt=!0);else return o.lanes=a.lanes,ia(a,o,y)}return _g(a,o,c,h,y)}function Dj(a,o,c,h){var y=h.children,x=a!==null?a.memoizedState:null;if(a===null&&o.stateNode===null&&(o.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),h.mode==="hidden"){if((o.flags&128)!==0){if(x=x!==null?x.baseLanes|c:c,a!==null){for(h=o.child=a.child,y=0;h!==null;)y=y|h.lanes|h.childLanes,h=h.sibling;h=y&~x}else h=0,o.child=null;return Rj(a,o,x,c,h)}if((c&536870912)!==0)o.memoizedState={baseLanes:0,cachePool:null},a!==null&&Ed(o,x!==null?x.cachePool:null),x!==null?LO(o,x):ig(),zO(o);else return h=o.lanes=536870912,Rj(a,o,x!==null?x.baseLanes|c:c,c,h)}else x!==null?(Ed(o,x.cachePool),LO(o,x),Fa(),o.memoizedState=null):(a!==null&&Ed(o,null),ig(),Fa());return nn(a,o,y,c),o.child}function tc(a,o){return a!==null&&a.tag===22||o.stateNode!==null||(o.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),o.sibling}function Rj(a,o,c,h,y){var x=Jm();return x=x===null?null:{parent:Mt._currentValue,pool:x},o.memoizedState={baseLanes:c,cachePool:x},a!==null&&Ed(o,null),ig(),zO(o),a!==null&&Fo(a,o,h,!0),o.childLanes=y,null}function Hd(a,o){return o=Gd({mode:o.mode,children:o.children},a.mode),o.ref=a.ref,a.child=o,o.return=a,o}function kj(a,o,c){return $i(o,a.child,null,c),a=Hd(o,o.pendingProps),a.flags|=2,Dn(o),o.memoizedState=null,a}function eI(a,o,c){var h=o.pendingProps,y=(o.flags&128)!==0;if(o.flags&=-129,a===null){if(qe){if(h.mode==="hidden")return a=Hd(o,h),o.lanes=536870912,tc(null,a);if(sg(o),(a=pt)?(a=KT(a,Zn),a=a!==null&&a.data==="&"?a:null,a!==null&&(o.memoizedState={dehydrated:a,treeContext:za!==null?{id:Dr,overflow:Rr}:null,retryLane:536870912,hydrationErrors:null},c=yO(a),c.return=o,o.child=c,en=o,pt=null)):a=null,a===null)throw Ba(o);return o.lanes=536870912,null}return Hd(o,h)}var x=a.memoizedState;if(x!==null){var E=x.dehydrated;if(sg(o),y)if(o.flags&256)o.flags&=-257,o=kj(a,o,c);else if(o.memoizedState!==null)o.child=a.child,o.flags|=128,o=null;else throw Error(r(558));else if(Rt||Fo(a,o,c,!1),y=(c&a.childLanes)!==0,Rt||y){if(h=lt,h!==null&&(E=j2(h,c),E!==0&&E!==x.retryLane))throw x.retryLane=E,Pi(a,E),On(h,a,E),Eg;tf(),o=kj(a,o,c)}else a=x.treeContext,pt=Jn(E.nextSibling),en=o,qe=!0,$a=null,Zn=!1,a!==null&&SO(o,a),o=Hd(o,h),o.flags|=4096;return o}return a=Jr(a.child,{mode:h.mode,children:h.children}),a.ref=o.ref,o.child=a,a.return=o,a}function Fd(a,o){var c=o.ref;if(c===null)a!==null&&a.ref!==null&&(o.flags|=4194816);else{if(typeof c!="function"&&typeof c!="object")throw Error(r(284));(a===null||a.ref!==c)&&(o.flags|=4194816)}}function _g(a,o,c,h,y){return Ri(o),c=cg(a,o,c,h,void 0,y),h=ug(),a!==null&&!Rt?(dg(a,o,y),ia(a,o,y)):(qe&&h&&Hm(o),o.flags|=1,nn(a,o,c,y),o.child)}function Lj(a,o,c,h,y,x){return Ri(o),o.updateQueue=null,c=BO(o,h,c,y),$O(a),h=ug(),a!==null&&!Rt?(dg(a,o,x),ia(a,o,x)):(qe&&h&&Hm(o),o.flags|=1,nn(a,o,c,x),o.child)}function zj(a,o,c,h,y){if(Ri(o),o.stateNode===null){var x=qo,E=c.contextType;typeof E=="object"&&E!==null&&(x=tn(E)),x=new c(h,x),o.memoizedState=x.state!==null&&x.state!==void 0?x.state:null,x.updater=Tg,o.stateNode=x,x._reactInternals=o,x=o.stateNode,x.props=h,x.state=o.memoizedState,x.refs={},tg(o),E=c.contextType,x.context=typeof E=="object"&&E!==null?tn(E):qo,x.state=o.memoizedState,E=c.getDerivedStateFromProps,typeof E=="function"&&(jg(o,c,E,h),x.state=o.memoizedState),typeof c.getDerivedStateFromProps=="function"||typeof x.getSnapshotBeforeUpdate=="function"||typeof x.UNSAFE_componentWillMount!="function"&&typeof x.componentWillMount!="function"||(E=x.state,typeof x.componentWillMount=="function"&&x.componentWillMount(),typeof x.UNSAFE_componentWillMount=="function"&&x.UNSAFE_componentWillMount(),E!==x.state&&Tg.enqueueReplaceState(x,x.state,null),Wl(o,h,x,y),Yl(),x.state=o.memoizedState),typeof x.componentDidMount=="function"&&(o.flags|=4194308),h=!0}else if(a===null){x=o.stateNode;var R=o.memoizedProps,I=Ii(c,R);x.props=I;var W=x.context,ne=c.contextType;E=qo,typeof ne=="object"&&ne!==null&&(E=tn(ne));var oe=c.getDerivedStateFromProps;ne=typeof oe=="function"||typeof x.getSnapshotBeforeUpdate=="function",R=o.pendingProps!==R,ne||typeof x.UNSAFE_componentWillReceiveProps!="function"&&typeof x.componentWillReceiveProps!="function"||(R||W!==E)&&Aj(o,x,h,E),qa=!1;var Q=o.memoizedState;x.state=Q,Wl(o,h,x,y),Yl(),W=o.memoizedState,R||Q!==W||qa?(typeof oe=="function"&&(jg(o,c,oe,h),W=o.memoizedState),(I=qa||wj(o,c,I,h,Q,W,E))?(ne||typeof x.UNSAFE_componentWillMount!="function"&&typeof x.componentWillMount!="function"||(typeof x.componentWillMount=="function"&&x.componentWillMount(),typeof x.UNSAFE_componentWillMount=="function"&&x.UNSAFE_componentWillMount()),typeof x.componentDidMount=="function"&&(o.flags|=4194308)):(typeof x.componentDidMount=="function"&&(o.flags|=4194308),o.memoizedProps=h,o.memoizedState=W),x.props=h,x.state=W,x.context=E,h=I):(typeof x.componentDidMount=="function"&&(o.flags|=4194308),h=!1)}else{x=o.stateNode,ng(a,o),E=o.memoizedProps,ne=Ii(c,E),x.props=ne,oe=o.pendingProps,Q=x.context,W=c.contextType,I=qo,typeof W=="object"&&W!==null&&(I=tn(W)),R=c.getDerivedStateFromProps,(W=typeof R=="function"||typeof x.getSnapshotBeforeUpdate=="function")||typeof x.UNSAFE_componentWillReceiveProps!="function"&&typeof x.componentWillReceiveProps!="function"||(E!==oe||Q!==I)&&Aj(o,x,h,I),qa=!1,Q=o.memoizedState,x.state=Q,Wl(o,h,x,y),Yl();var ee=o.memoizedState;E!==oe||Q!==ee||qa||a!==null&&a.dependencies!==null&&Td(a.dependencies)?(typeof R=="function"&&(jg(o,c,R,h),ee=o.memoizedState),(ne=qa||wj(o,c,ne,h,Q,ee,I)||a!==null&&a.dependencies!==null&&Td(a.dependencies))?(W||typeof x.UNSAFE_componentWillUpdate!="function"&&typeof x.componentWillUpdate!="function"||(typeof x.componentWillUpdate=="function"&&x.componentWillUpdate(h,ee,I),typeof x.UNSAFE_componentWillUpdate=="function"&&x.UNSAFE_componentWillUpdate(h,ee,I)),typeof x.componentDidUpdate=="function"&&(o.flags|=4),typeof x.getSnapshotBeforeUpdate=="function"&&(o.flags|=1024)):(typeof x.componentDidUpdate!="function"||E===a.memoizedProps&&Q===a.memoizedState||(o.flags|=4),typeof x.getSnapshotBeforeUpdate!="function"||E===a.memoizedProps&&Q===a.memoizedState||(o.flags|=1024),o.memoizedProps=h,o.memoizedState=ee),x.props=h,x.state=ee,x.context=I,h=ne):(typeof x.componentDidUpdate!="function"||E===a.memoizedProps&&Q===a.memoizedState||(o.flags|=4),typeof x.getSnapshotBeforeUpdate!="function"||E===a.memoizedProps&&Q===a.memoizedState||(o.flags|=1024),h=!1)}return x=h,Fd(a,o),h=(o.flags&128)!==0,x||h?(x=o.stateNode,c=h&&typeof c.getDerivedStateFromError!="function"?null:x.render(),o.flags|=1,a!==null&&h?(o.child=$i(o,a.child,null,y),o.child=$i(o,null,c,y)):nn(a,o,c,y),o.memoizedState=x.state,a=o.child):a=ia(a,o,y),a}function $j(a,o,c,h){return Mi(),o.flags|=256,nn(a,o,c,h),o.child}var Pg={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Ng(a){return{baseLanes:a,cachePool:CO()}}function Mg(a,o,c){return a=a!==null?a.childLanes&~c:0,o&&(a|=kn),a}function Bj(a,o,c){var h=o.pendingProps,y=!1,x=(o.flags&128)!==0,E;if((E=x)||(E=a!==null&&a.memoizedState===null?!1:(Et.current&2)!==0),E&&(y=!0,o.flags&=-129),E=(o.flags&32)!==0,o.flags&=-33,a===null){if(qe){if(y?Ha(o):Fa(),(a=pt)?(a=KT(a,Zn),a=a!==null&&a.data!=="&"?a:null,a!==null&&(o.memoizedState={dehydrated:a,treeContext:za!==null?{id:Dr,overflow:Rr}:null,retryLane:536870912,hydrationErrors:null},c=yO(a),c.return=o,o.child=c,en=o,pt=null)):a=null,a===null)throw Ba(o);return pv(a)?o.lanes=32:o.lanes=536870912,null}var R=h.children;return h=h.fallback,y?(Fa(),y=o.mode,R=Gd({mode:"hidden",children:R},y),h=Ni(h,y,c,null),R.return=o,h.return=o,R.sibling=h,o.child=R,h=o.child,h.memoizedState=Ng(c),h.childLanes=Mg(a,E,c),o.memoizedState=Pg,tc(null,h)):(Ha(o),Dg(o,R))}var I=a.memoizedState;if(I!==null&&(R=I.dehydrated,R!==null)){if(x)o.flags&256?(Ha(o),o.flags&=-257,o=Rg(a,o,c)):o.memoizedState!==null?(Fa(),o.child=a.child,o.flags|=128,o=null):(Fa(),R=h.fallback,y=o.mode,h=Gd({mode:"visible",children:h.children},y),R=Ni(R,y,c,null),R.flags|=2,h.return=o,R.return=o,h.sibling=R,o.child=h,$i(o,a.child,null,c),h=o.child,h.memoizedState=Ng(c),h.childLanes=Mg(a,E,c),o.memoizedState=Pg,o=tc(null,h));else if(Ha(o),pv(R)){if(E=R.nextSibling&&R.nextSibling.dataset,E)var W=E.dgst;E=W,h=Error(r(419)),h.stack="",h.digest=E,Ul({value:h,source:null,stack:null}),o=Rg(a,o,c)}else if(Rt||Fo(a,o,c,!1),E=(c&a.childLanes)!==0,Rt||E){if(E=lt,E!==null&&(h=j2(E,c),h!==0&&h!==I.retryLane))throw I.retryLane=h,Pi(a,h),On(E,a,h),Eg;hv(R)||tf(),o=Rg(a,o,c)}else hv(R)?(o.flags|=192,o.child=a.child,o=null):(a=I.treeContext,pt=Jn(R.nextSibling),en=o,qe=!0,$a=null,Zn=!1,a!==null&&SO(o,a),o=Dg(o,h.children),o.flags|=4096);return o}return y?(Fa(),R=h.fallback,y=o.mode,I=a.child,W=I.sibling,h=Jr(I,{mode:"hidden",children:h.children}),h.subtreeFlags=I.subtreeFlags&65011712,W!==null?R=Jr(W,R):(R=Ni(R,y,c,null),R.flags|=2),R.return=o,h.return=o,h.sibling=R,o.child=h,tc(null,h),h=o.child,R=a.child.memoizedState,R===null?R=Ng(c):(y=R.cachePool,y!==null?(I=Mt._currentValue,y=y.parent!==I?{parent:I,pool:I}:y):y=CO(),R={baseLanes:R.baseLanes|c,cachePool:y}),h.memoizedState=R,h.childLanes=Mg(a,E,c),o.memoizedState=Pg,tc(a.child,h)):(Ha(o),c=a.child,a=c.sibling,c=Jr(c,{mode:"visible",children:h.children}),c.return=o,c.sibling=null,a!==null&&(E=o.deletions,E===null?(o.deletions=[a],o.flags|=16):E.push(a)),o.child=c,o.memoizedState=null,c)}function Dg(a,o){return o=Gd({mode:"visible",children:o},a.mode),o.return=a,a.child=o}function Gd(a,o){return a=Nn(22,a,null,o),a.lanes=0,a}function Rg(a,o,c){return $i(o,a.child,null,c),a=Dg(o,o.pendingProps.children),a.flags|=2,o.memoizedState=null,a}function Ij(a,o,c){a.lanes|=o;var h=a.alternate;h!==null&&(h.lanes|=o),Ym(a.return,o,c)}function kg(a,o,c,h,y,x){var E=a.memoizedState;E===null?a.memoizedState={isBackwards:o,rendering:null,renderingStartTime:0,last:h,tail:c,tailMode:y,treeForkCount:x}:(E.isBackwards=o,E.rendering=null,E.renderingStartTime=0,E.last=h,E.tail=c,E.tailMode=y,E.treeForkCount=x)}function qj(a,o,c){var h=o.pendingProps,y=h.revealOrder,x=h.tail;h=h.children;var E=Et.current,R=(E&2)!==0;if(R?(E=E&1|2,o.flags|=128):E&=1,te(Et,E),nn(a,o,h,c),h=qe?Vl:0,!R&&a!==null&&(a.flags&128)!==0)e:for(a=o.child;a!==null;){if(a.tag===13)a.memoizedState!==null&&Ij(a,c,o);else if(a.tag===19)Ij(a,c,o);else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===o)break e;for(;a.sibling===null;){if(a.return===null||a.return===o)break e;a=a.return}a.sibling.return=a.return,a=a.sibling}switch(y){case"forwards":for(c=o.child,y=null;c!==null;)a=c.alternate,a!==null&&Rd(a)===null&&(y=c),c=c.sibling;c=y,c===null?(y=o.child,o.child=null):(y=c.sibling,c.sibling=null),kg(o,!1,y,c,x,h);break;case"backwards":case"unstable_legacy-backwards":for(c=null,y=o.child,o.child=null;y!==null;){if(a=y.alternate,a!==null&&Rd(a)===null){o.child=y;break}a=y.sibling,y.sibling=c,c=y,y=a}kg(o,!0,c,null,x,h);break;case"together":kg(o,!1,null,null,void 0,h);break;default:o.memoizedState=null}return o.child}function ia(a,o,c){if(a!==null&&(o.dependencies=a.dependencies),Xa|=o.lanes,(c&o.childLanes)===0)if(a!==null){if(Fo(a,o,c,!1),(c&o.childLanes)===0)return null}else return null;if(a!==null&&o.child!==a.child)throw Error(r(153));if(o.child!==null){for(a=o.child,c=Jr(a,a.pendingProps),o.child=c,c.return=o;a.sibling!==null;)a=a.sibling,c=c.sibling=Jr(a,a.pendingProps),c.return=o;c.sibling=null}return o.child}function Lg(a,o){return(a.lanes&o)!==0?!0:(a=a.dependencies,!!(a!==null&&Td(a)))}function tI(a,o,c){switch(o.tag){case 3:Ve(o,o.stateNode.containerInfo),Ia(o,Mt,a.memoizedState.cache),Mi();break;case 27:case 5:we(o);break;case 4:Ve(o,o.stateNode.containerInfo);break;case 10:Ia(o,o.type,o.memoizedProps.value);break;case 31:if(o.memoizedState!==null)return o.flags|=128,sg(o),null;break;case 13:var h=o.memoizedState;if(h!==null)return h.dehydrated!==null?(Ha(o),o.flags|=128,null):(c&o.child.childLanes)!==0?Bj(a,o,c):(Ha(o),a=ia(a,o,c),a!==null?a.sibling:null);Ha(o);break;case 19:var y=(a.flags&128)!==0;if(h=(c&o.childLanes)!==0,h||(Fo(a,o,c,!1),h=(c&o.childLanes)!==0),y){if(h)return qj(a,o,c);o.flags|=128}if(y=o.memoizedState,y!==null&&(y.rendering=null,y.tail=null,y.lastEffect=null),te(Et,Et.current),h)break;return null;case 22:return o.lanes=0,Dj(a,o,c,o.pendingProps);case 24:Ia(o,Mt,a.memoizedState.cache)}return ia(a,o,c)}function Vj(a,o,c){if(a!==null)if(a.memoizedProps!==o.pendingProps)Rt=!0;else{if(!Lg(a,c)&&(o.flags&128)===0)return Rt=!1,tI(a,o,c);Rt=(a.flags&131072)!==0}else Rt=!1,qe&&(o.flags&1048576)!==0&&xO(o,Vl,o.index);switch(o.lanes=0,o.tag){case 16:e:{var h=o.pendingProps;if(a=Li(o.elementType),o.type=a,typeof a=="function")qm(a)?(h=Ii(a,h),o.tag=1,o=zj(null,o,a,h,c)):(o.tag=0,o=_g(null,o,a,h,c));else{if(a!=null){var y=a.$$typeof;if(y===M){o.tag=11,o=Pj(null,o,a,h,c);break e}else if(y===N){o.tag=14,o=Nj(null,o,a,h,c);break e}}throw o=J(a)||a,Error(r(306,o,""))}}return o;case 0:return _g(a,o,o.type,o.pendingProps,c);case 1:return h=o.type,y=Ii(h,o.pendingProps),zj(a,o,h,y,c);case 3:e:{if(Ve(o,o.stateNode.containerInfo),a===null)throw Error(r(387));h=o.pendingProps;var x=o.memoizedState;y=x.element,ng(a,o),Wl(o,h,null,c);var E=o.memoizedState;if(h=E.cache,Ia(o,Mt,h),h!==x.cache&&Wm(o,[Mt],c,!0),Yl(),h=E.element,x.isDehydrated)if(x={element:h,isDehydrated:!1,cache:E.cache},o.updateQueue.baseState=x,o.memoizedState=x,o.flags&256){o=$j(a,o,h,c);break e}else if(h!==y){y=Xn(Error(r(424)),o),Ul(y),o=$j(a,o,h,c);break e}else{switch(a=o.stateNode.containerInfo,a.nodeType){case 9:a=a.body;break;default:a=a.nodeName==="HTML"?a.ownerDocument.body:a}for(pt=Jn(a.firstChild),en=o,qe=!0,$a=null,Zn=!0,c=DO(o,null,h,c),o.child=c;c;)c.flags=c.flags&-3|4096,c=c.sibling}else{if(Mi(),h===y){o=ia(a,o,c);break e}nn(a,o,h,c)}o=o.child}return o;case 26:return Fd(a,o),a===null?(c=JT(o.type,null,o.pendingProps,null))?o.memoizedState=c:qe||(c=o.type,a=o.pendingProps,h=cf(Se.current).createElement(c),h[Jt]=o,h[yn]=a,rn(h,c,a),Xt(h),o.stateNode=h):o.memoizedState=JT(o.type,a.memoizedProps,o.pendingProps,a.memoizedState),null;case 27:return we(o),a===null&&qe&&(h=o.stateNode=WT(o.type,o.pendingProps,Se.current),en=o,Zn=!0,y=pt,Ja(o.type)?(mv=y,pt=Jn(h.firstChild)):pt=y),nn(a,o,o.pendingProps.children,c),Fd(a,o),a===null&&(o.flags|=4194304),o.child;case 5:return a===null&&qe&&((y=h=pt)&&(h=NI(h,o.type,o.pendingProps,Zn),h!==null?(o.stateNode=h,en=o,pt=Jn(h.firstChild),Zn=!1,y=!0):y=!1),y||Ba(o)),we(o),y=o.type,x=o.pendingProps,E=a!==null?a.memoizedProps:null,h=x.children,uv(y,x)?h=null:E!==null&&uv(y,E)&&(o.flags|=32),o.memoizedState!==null&&(y=cg(a,o,GB,null,null,c),gc._currentValue=y),Fd(a,o),nn(a,o,h,c),o.child;case 6:return a===null&&qe&&((a=c=pt)&&(c=MI(c,o.pendingProps,Zn),c!==null?(o.stateNode=c,en=o,pt=null,a=!0):a=!1),a||Ba(o)),null;case 13:return Bj(a,o,c);case 4:return Ve(o,o.stateNode.containerInfo),h=o.pendingProps,a===null?o.child=$i(o,null,h,c):nn(a,o,h,c),o.child;case 11:return Pj(a,o,o.type,o.pendingProps,c);case 7:return nn(a,o,o.pendingProps,c),o.child;case 8:return nn(a,o,o.pendingProps.children,c),o.child;case 12:return nn(a,o,o.pendingProps.children,c),o.child;case 10:return h=o.pendingProps,Ia(o,o.type,h.value),nn(a,o,h.children,c),o.child;case 9:return y=o.type._context,h=o.pendingProps.children,Ri(o),y=tn(y),h=h(y),o.flags|=1,nn(a,o,h,c),o.child;case 14:return Nj(a,o,o.type,o.pendingProps,c);case 15:return Mj(a,o,o.type,o.pendingProps,c);case 19:return qj(a,o,c);case 31:return eI(a,o,c);case 22:return Dj(a,o,c,o.pendingProps);case 24:return Ri(o),h=tn(Mt),a===null?(y=Jm(),y===null&&(y=lt,x=Zm(),y.pooledCache=x,x.refCount++,x!==null&&(y.pooledCacheLanes|=c),y=x),o.memoizedState={parent:h,cache:y},tg(o),Ia(o,Mt,y)):((a.lanes&c)!==0&&(ng(a,o),Wl(o,null,null,c),Yl()),y=a.memoizedState,x=o.memoizedState,y.parent!==h?(y={parent:h,cache:h},o.memoizedState=y,o.lanes===0&&(o.memoizedState=o.updateQueue.baseState=y),Ia(o,Mt,h)):(h=x.cache,Ia(o,Mt,h),h!==y.cache&&Wm(o,[Mt],c,!0))),nn(a,o,o.pendingProps.children,c),o.child;case 29:throw o.pendingProps}throw Error(r(156,o.tag))}function oa(a){a.flags|=4}function zg(a,o,c,h,y){if((o=(a.mode&32)!==0)&&(o=!1),o){if(a.flags|=16777216,(y&335544128)===y)if(a.stateNode.complete)a.flags|=8192;else if(mT())a.flags|=8192;else throw zi=Pd,eg}else a.flags&=-16777217}function Uj(a,o){if(o.type!=="stylesheet"||(o.state.loading&4)!==0)a.flags&=-16777217;else if(a.flags|=16777216,!aC(o))if(mT())a.flags|=8192;else throw zi=Pd,eg}function Kd(a,o){o!==null&&(a.flags|=4),a.flags&16384&&(o=a.tag!==22?w2():536870912,a.lanes|=o,rs|=o)}function nc(a,o){if(!qe)switch(a.tailMode){case"hidden":o=a.tail;for(var c=null;o!==null;)o.alternate!==null&&(c=o),o=o.sibling;c===null?a.tail=null:c.sibling=null;break;case"collapsed":c=a.tail;for(var h=null;c!==null;)c.alternate!==null&&(h=c),c=c.sibling;h===null?o||a.tail===null?a.tail=null:a.tail.sibling=null:h.sibling=null}}function mt(a){var o=a.alternate!==null&&a.alternate.child===a.child,c=0,h=0;if(o)for(var y=a.child;y!==null;)c|=y.lanes|y.childLanes,h|=y.subtreeFlags&65011712,h|=y.flags&65011712,y.return=a,y=y.sibling;else for(y=a.child;y!==null;)c|=y.lanes|y.childLanes,h|=y.subtreeFlags,h|=y.flags,y.return=a,y=y.sibling;return a.subtreeFlags|=h,a.childLanes=c,o}function nI(a,o,c){var h=o.pendingProps;switch(Fm(o),o.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return mt(o),null;case 1:return mt(o),null;case 3:return c=o.stateNode,h=null,a!==null&&(h=a.memoizedState.cache),o.memoizedState.cache!==h&&(o.flags|=2048),na(Mt),ce(),c.pendingContext&&(c.context=c.pendingContext,c.pendingContext=null),(a===null||a.child===null)&&(Ho(o)?oa(o):a===null||a.memoizedState.isDehydrated&&(o.flags&256)===0||(o.flags|=1024,Km())),mt(o),null;case 26:var y=o.type,x=o.memoizedState;return a===null?(oa(o),x!==null?(mt(o),Uj(o,x)):(mt(o),zg(o,y,null,h,c))):x?x!==a.memoizedState?(oa(o),mt(o),Uj(o,x)):(mt(o),o.flags&=-16777217):(a=a.memoizedProps,a!==h&&oa(o),mt(o),zg(o,y,a,h,c)),null;case 27:if(Ce(o),c=Se.current,y=o.type,a!==null&&o.stateNode!=null)a.memoizedProps!==h&&oa(o);else{if(!h){if(o.stateNode===null)throw Error(r(166));return mt(o),null}a=le.current,Ho(o)?wO(o):(a=WT(y,h,c),o.stateNode=a,oa(o))}return mt(o),null;case 5:if(Ce(o),y=o.type,a!==null&&o.stateNode!=null)a.memoizedProps!==h&&oa(o);else{if(!h){if(o.stateNode===null)throw Error(r(166));return mt(o),null}if(x=le.current,Ho(o))wO(o);else{var E=cf(Se.current);switch(x){case 1:x=E.createElementNS("http://www.w3.org/2000/svg",y);break;case 2:x=E.createElementNS("http://www.w3.org/1998/Math/MathML",y);break;default:switch(y){case"svg":x=E.createElementNS("http://www.w3.org/2000/svg",y);break;case"math":x=E.createElementNS("http://www.w3.org/1998/Math/MathML",y);break;case"script":x=E.createElement("div"),x.innerHTML="<script><\/script>",x=x.removeChild(x.firstChild);break;case"select":x=typeof h.is=="string"?E.createElement("select",{is:h.is}):E.createElement("select"),h.multiple?x.multiple=!0:h.size&&(x.size=h.size);break;default:x=typeof h.is=="string"?E.createElement(y,{is:h.is}):E.createElement(y)}}x[Jt]=o,x[yn]=h;e:for(E=o.child;E!==null;){if(E.tag===5||E.tag===6)x.appendChild(E.stateNode);else if(E.tag!==4&&E.tag!==27&&E.child!==null){E.child.return=E,E=E.child;continue}if(E===o)break e;for(;E.sibling===null;){if(E.return===null||E.return===o)break e;E=E.return}E.sibling.return=E.return,E=E.sibling}o.stateNode=x;e:switch(rn(x,y,h),y){case"button":case"input":case"select":case"textarea":h=!!h.autoFocus;break e;case"img":h=!0;break e;default:h=!1}h&&oa(o)}}return mt(o),zg(o,o.type,a===null?null:a.memoizedProps,o.pendingProps,c),null;case 6:if(a&&o.stateNode!=null)a.memoizedProps!==h&&oa(o);else{if(typeof h!="string"&&o.stateNode===null)throw Error(r(166));if(a=Se.current,Ho(o)){if(a=o.stateNode,c=o.memoizedProps,h=null,y=en,y!==null)switch(y.tag){case 27:case 5:h=y.memoizedProps}a[Jt]=o,a=!!(a.nodeValue===c||h!==null&&h.suppressHydrationWarning===!0||BT(a.nodeValue,c)),a||Ba(o,!0)}else a=cf(a).createTextNode(h),a[Jt]=o,o.stateNode=a}return mt(o),null;case 31:if(c=o.memoizedState,a===null||a.memoizedState!==null){if(h=Ho(o),c!==null){if(a===null){if(!h)throw Error(r(318));if(a=o.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(r(557));a[Jt]=o}else Mi(),(o.flags&128)===0&&(o.memoizedState=null),o.flags|=4;mt(o),a=!1}else c=Km(),a!==null&&a.memoizedState!==null&&(a.memoizedState.hydrationErrors=c),a=!0;if(!a)return o.flags&256?(Dn(o),o):(Dn(o),null);if((o.flags&128)!==0)throw Error(r(558))}return mt(o),null;case 13:if(h=o.memoizedState,a===null||a.memoizedState!==null&&a.memoizedState.dehydrated!==null){if(y=Ho(o),h!==null&&h.dehydrated!==null){if(a===null){if(!y)throw Error(r(318));if(y=o.memoizedState,y=y!==null?y.dehydrated:null,!y)throw Error(r(317));y[Jt]=o}else Mi(),(o.flags&128)===0&&(o.memoizedState=null),o.flags|=4;mt(o),y=!1}else y=Km(),a!==null&&a.memoizedState!==null&&(a.memoizedState.hydrationErrors=y),y=!0;if(!y)return o.flags&256?(Dn(o),o):(Dn(o),null)}return Dn(o),(o.flags&128)!==0?(o.lanes=c,o):(c=h!==null,a=a!==null&&a.memoizedState!==null,c&&(h=o.child,y=null,h.alternate!==null&&h.alternate.memoizedState!==null&&h.alternate.memoizedState.cachePool!==null&&(y=h.alternate.memoizedState.cachePool.pool),x=null,h.memoizedState!==null&&h.memoizedState.cachePool!==null&&(x=h.memoizedState.cachePool.pool),x!==y&&(h.flags|=2048)),c!==a&&c&&(o.child.flags|=8192),Kd(o,o.updateQueue),mt(o),null);case 4:return ce(),a===null&&iv(o.stateNode.containerInfo),mt(o),null;case 10:return na(o.type),mt(o),null;case 19:if(G(Et),h=o.memoizedState,h===null)return mt(o),null;if(y=(o.flags&128)!==0,x=h.rendering,x===null)if(y)nc(h,!1);else{if(jt!==0||a!==null&&(a.flags&128)!==0)for(a=o.child;a!==null;){if(x=Rd(a),x!==null){for(o.flags|=128,nc(h,!1),a=x.updateQueue,o.updateQueue=a,Kd(o,a),o.subtreeFlags=0,a=c,c=o.child;c!==null;)vO(c,a),c=c.sibling;return te(Et,Et.current&1|2),qe&&ea(o,h.treeForkCount),o.child}a=a.sibling}h.tail!==null&&ln()>Qd&&(o.flags|=128,y=!0,nc(h,!1),o.lanes=4194304)}else{if(!y)if(a=Rd(x),a!==null){if(o.flags|=128,y=!0,a=a.updateQueue,o.updateQueue=a,Kd(o,a),nc(h,!0),h.tail===null&&h.tailMode==="hidden"&&!x.alternate&&!qe)return mt(o),null}else 2*ln()-h.renderingStartTime>Qd&&c!==536870912&&(o.flags|=128,y=!0,nc(h,!1),o.lanes=4194304);h.isBackwards?(x.sibling=o.child,o.child=x):(a=h.last,a!==null?a.sibling=x:o.child=x,h.last=x)}return h.tail!==null?(a=h.tail,h.rendering=a,h.tail=a.sibling,h.renderingStartTime=ln(),a.sibling=null,c=Et.current,te(Et,y?c&1|2:c&1),qe&&ea(o,h.treeForkCount),a):(mt(o),null);case 22:case 23:return Dn(o),og(),h=o.memoizedState!==null,a!==null?a.memoizedState!==null!==h&&(o.flags|=8192):h&&(o.flags|=8192),h?(c&536870912)!==0&&(o.flags&128)===0&&(mt(o),o.subtreeFlags&6&&(o.flags|=8192)):mt(o),c=o.updateQueue,c!==null&&Kd(o,c.retryQueue),c=null,a!==null&&a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(c=a.memoizedState.cachePool.pool),h=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(h=o.memoizedState.cachePool.pool),h!==c&&(o.flags|=2048),a!==null&&G(ki),null;case 24:return c=null,a!==null&&(c=a.memoizedState.cache),o.memoizedState.cache!==c&&(o.flags|=2048),na(Mt),mt(o),null;case 25:return null;case 30:return null}throw Error(r(156,o.tag))}function rI(a,o){switch(Fm(o),o.tag){case 1:return a=o.flags,a&65536?(o.flags=a&-65537|128,o):null;case 3:return na(Mt),ce(),a=o.flags,(a&65536)!==0&&(a&128)===0?(o.flags=a&-65537|128,o):null;case 26:case 27:case 5:return Ce(o),null;case 31:if(o.memoizedState!==null){if(Dn(o),o.alternate===null)throw Error(r(340));Mi()}return a=o.flags,a&65536?(o.flags=a&-65537|128,o):null;case 13:if(Dn(o),a=o.memoizedState,a!==null&&a.dehydrated!==null){if(o.alternate===null)throw Error(r(340));Mi()}return a=o.flags,a&65536?(o.flags=a&-65537|128,o):null;case 19:return G(Et),null;case 4:return ce(),null;case 10:return na(o.type),null;case 22:case 23:return Dn(o),og(),a!==null&&G(ki),a=o.flags,a&65536?(o.flags=a&-65537|128,o):null;case 24:return na(Mt),null;case 25:return null;default:return null}}function Hj(a,o){switch(Fm(o),o.tag){case 3:na(Mt),ce();break;case 26:case 27:case 5:Ce(o);break;case 4:ce();break;case 31:o.memoizedState!==null&&Dn(o);break;case 13:Dn(o);break;case 19:G(Et);break;case 10:na(o.type);break;case 22:case 23:Dn(o),og(),a!==null&&G(ki);break;case 24:na(Mt)}}function rc(a,o){try{var c=o.updateQueue,h=c!==null?c.lastEffect:null;if(h!==null){var y=h.next;c=y;do{if((c.tag&a)===a){h=void 0;var x=c.create,E=c.inst;h=x(),E.destroy=h}c=c.next}while(c!==y)}}catch(R){rt(o,o.return,R)}}function Ga(a,o,c){try{var h=o.updateQueue,y=h!==null?h.lastEffect:null;if(y!==null){var x=y.next;h=x;do{if((h.tag&a)===a){var E=h.inst,R=E.destroy;if(R!==void 0){E.destroy=void 0,y=o;var I=c,W=R;try{W()}catch(ne){rt(y,I,ne)}}}h=h.next}while(h!==x)}}catch(ne){rt(o,o.return,ne)}}function Fj(a){var o=a.updateQueue;if(o!==null){var c=a.stateNode;try{kO(o,c)}catch(h){rt(a,a.return,h)}}}function Gj(a,o,c){c.props=Ii(a.type,a.memoizedProps),c.state=a.memoizedState;try{c.componentWillUnmount()}catch(h){rt(a,o,h)}}function ac(a,o){try{var c=a.ref;if(c!==null){switch(a.tag){case 26:case 27:case 5:var h=a.stateNode;break;case 30:h=a.stateNode;break;default:h=a.stateNode}typeof c=="function"?a.refCleanup=c(h):c.current=h}}catch(y){rt(a,o,y)}}function kr(a,o){var c=a.ref,h=a.refCleanup;if(c!==null)if(typeof h=="function")try{h()}catch(y){rt(a,o,y)}finally{a.refCleanup=null,a=a.alternate,a!=null&&(a.refCleanup=null)}else if(typeof c=="function")try{c(null)}catch(y){rt(a,o,y)}else c.current=null}function Kj(a){var o=a.type,c=a.memoizedProps,h=a.stateNode;try{e:switch(o){case"button":case"input":case"select":case"textarea":c.autoFocus&&h.focus();break e;case"img":c.src?h.src=c.src:c.srcSet&&(h.srcset=c.srcSet)}}catch(y){rt(a,a.return,y)}}function $g(a,o,c){try{var h=a.stateNode;jI(h,a.type,c,o),h[yn]=o}catch(y){rt(a,a.return,y)}}function Xj(a){return a.tag===5||a.tag===3||a.tag===26||a.tag===27&&Ja(a.type)||a.tag===4}function Bg(a){e:for(;;){for(;a.sibling===null;){if(a.return===null||Xj(a.return))return null;a=a.return}for(a.sibling.return=a.return,a=a.sibling;a.tag!==5&&a.tag!==6&&a.tag!==18;){if(a.tag===27&&Ja(a.type)||a.flags&2||a.child===null||a.tag===4)continue e;a.child.return=a,a=a.child}if(!(a.flags&2))return a.stateNode}}function Ig(a,o,c){var h=a.tag;if(h===5||h===6)a=a.stateNode,o?(c.nodeType===9?c.body:c.nodeName==="HTML"?c.ownerDocument.body:c).insertBefore(a,o):(o=c.nodeType===9?c.body:c.nodeName==="HTML"?c.ownerDocument.body:c,o.appendChild(a),c=c._reactRootContainer,c!=null||o.onclick!==null||(o.onclick=Zr));else if(h!==4&&(h===27&&Ja(a.type)&&(c=a.stateNode,o=null),a=a.child,a!==null))for(Ig(a,o,c),a=a.sibling;a!==null;)Ig(a,o,c),a=a.sibling}function Xd(a,o,c){var h=a.tag;if(h===5||h===6)a=a.stateNode,o?c.insertBefore(a,o):c.appendChild(a);else if(h!==4&&(h===27&&Ja(a.type)&&(c=a.stateNode),a=a.child,a!==null))for(Xd(a,o,c),a=a.sibling;a!==null;)Xd(a,o,c),a=a.sibling}function Yj(a){var o=a.stateNode,c=a.memoizedProps;try{for(var h=a.type,y=o.attributes;y.length;)o.removeAttributeNode(y[0]);rn(o,h,c),o[Jt]=a,o[yn]=c}catch(x){rt(a,a.return,x)}}var sa=!1,kt=!1,qg=!1,Wj=typeof WeakSet=="function"?WeakSet:Set,Yt=null;function aI(a,o){if(a=a.containerInfo,lv=gf,a=lO(a),Rm(a)){if("selectionStart"in a)var c={start:a.selectionStart,end:a.selectionEnd};else e:{c=(c=a.ownerDocument)&&c.defaultView||window;var h=c.getSelection&&c.getSelection();if(h&&h.rangeCount!==0){c=h.anchorNode;var y=h.anchorOffset,x=h.focusNode;h=h.focusOffset;try{c.nodeType,x.nodeType}catch{c=null;break e}var E=0,R=-1,I=-1,W=0,ne=0,oe=a,Q=null;t:for(;;){for(var ee;oe!==c||y!==0&&oe.nodeType!==3||(R=E+y),oe!==x||h!==0&&oe.nodeType!==3||(I=E+h),oe.nodeType===3&&(E+=oe.nodeValue.length),(ee=oe.firstChild)!==null;)Q=oe,oe=ee;for(;;){if(oe===a)break t;if(Q===c&&++W===y&&(R=E),Q===x&&++ne===h&&(I=E),(ee=oe.nextSibling)!==null)break;oe=Q,Q=oe.parentNode}oe=ee}c=R===-1||I===-1?null:{start:R,end:I}}else c=null}c=c||{start:0,end:0}}else c=null;for(cv={focusedElem:a,selectionRange:c},gf=!1,Yt=o;Yt!==null;)if(o=Yt,a=o.child,(o.subtreeFlags&1028)!==0&&a!==null)a.return=o,Yt=a;else for(;Yt!==null;){switch(o=Yt,x=o.alternate,a=o.flags,o.tag){case 0:if((a&4)!==0&&(a=o.updateQueue,a=a!==null?a.events:null,a!==null))for(c=0;c<a.length;c++)y=a[c],y.ref.impl=y.nextImpl;break;case 11:case 15:break;case 1:if((a&1024)!==0&&x!==null){a=void 0,c=o,y=x.memoizedProps,x=x.memoizedState,h=c.stateNode;try{var pe=Ii(c.type,y);a=h.getSnapshotBeforeUpdate(pe,x),h.__reactInternalSnapshotBeforeUpdate=a}catch(je){rt(c,c.return,je)}}break;case 3:if((a&1024)!==0){if(a=o.stateNode.containerInfo,c=a.nodeType,c===9)fv(a);else if(c===1)switch(a.nodeName){case"HEAD":case"HTML":case"BODY":fv(a);break;default:a.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((a&1024)!==0)throw Error(r(163))}if(a=o.sibling,a!==null){a.return=o.return,Yt=a;break}Yt=o.return}}function Zj(a,o,c){var h=c.flags;switch(c.tag){case 0:case 11:case 15:ca(a,c),h&4&&rc(5,c);break;case 1:if(ca(a,c),h&4)if(a=c.stateNode,o===null)try{a.componentDidMount()}catch(E){rt(c,c.return,E)}else{var y=Ii(c.type,o.memoizedProps);o=o.memoizedState;try{a.componentDidUpdate(y,o,a.__reactInternalSnapshotBeforeUpdate)}catch(E){rt(c,c.return,E)}}h&64&&Fj(c),h&512&&ac(c,c.return);break;case 3:if(ca(a,c),h&64&&(a=c.updateQueue,a!==null)){if(o=null,c.child!==null)switch(c.child.tag){case 27:case 5:o=c.child.stateNode;break;case 1:o=c.child.stateNode}try{kO(a,o)}catch(E){rt(c,c.return,E)}}break;case 27:o===null&&h&4&&Yj(c);case 26:case 5:ca(a,c),o===null&&h&4&&Kj(c),h&512&&ac(c,c.return);break;case 12:ca(a,c);break;case 31:ca(a,c),h&4&&eT(a,c);break;case 13:ca(a,c),h&4&&tT(a,c),h&64&&(a=c.memoizedState,a!==null&&(a=a.dehydrated,a!==null&&(c=hI.bind(null,c),DI(a,c))));break;case 22:if(h=c.memoizedState!==null||sa,!h){o=o!==null&&o.memoizedState!==null||kt,y=sa;var x=kt;sa=h,(kt=o)&&!x?ua(a,c,(c.subtreeFlags&8772)!==0):ca(a,c),sa=y,kt=x}break;case 30:break;default:ca(a,c)}}function Qj(a){var o=a.alternate;o!==null&&(a.alternate=null,Qj(o)),a.child=null,a.deletions=null,a.sibling=null,a.tag===5&&(o=a.stateNode,o!==null&&vm(o)),a.stateNode=null,a.return=null,a.dependencies=null,a.memoizedProps=null,a.memoizedState=null,a.pendingProps=null,a.stateNode=null,a.updateQueue=null}var vt=null,xn=!1;function la(a,o,c){for(c=c.child;c!==null;)Jj(a,o,c),c=c.sibling}function Jj(a,o,c){if(En&&typeof En.onCommitFiberUnmount=="function")try{En.onCommitFiberUnmount(El,c)}catch{}switch(c.tag){case 26:kt||kr(c,o),la(a,o,c),c.memoizedState?c.memoizedState.count--:c.stateNode&&(c=c.stateNode,c.parentNode.removeChild(c));break;case 27:kt||kr(c,o);var h=vt,y=xn;Ja(c.type)&&(vt=c.stateNode,xn=!1),la(a,o,c),hc(c.stateNode),vt=h,xn=y;break;case 5:kt||kr(c,o);case 6:if(h=vt,y=xn,vt=null,la(a,o,c),vt=h,xn=y,vt!==null)if(xn)try{(vt.nodeType===9?vt.body:vt.nodeName==="HTML"?vt.ownerDocument.body:vt).removeChild(c.stateNode)}catch(x){rt(c,o,x)}else try{vt.removeChild(c.stateNode)}catch(x){rt(c,o,x)}break;case 18:vt!==null&&(xn?(a=vt,FT(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,c.stateNode),ds(a)):FT(vt,c.stateNode));break;case 4:h=vt,y=xn,vt=c.stateNode.containerInfo,xn=!0,la(a,o,c),vt=h,xn=y;break;case 0:case 11:case 14:case 15:Ga(2,c,o),kt||Ga(4,c,o),la(a,o,c);break;case 1:kt||(kr(c,o),h=c.stateNode,typeof h.componentWillUnmount=="function"&&Gj(c,o,h)),la(a,o,c);break;case 21:la(a,o,c);break;case 22:kt=(h=kt)||c.memoizedState!==null,la(a,o,c),kt=h;break;default:la(a,o,c)}}function eT(a,o){if(o.memoizedState===null&&(a=o.alternate,a!==null&&(a=a.memoizedState,a!==null))){a=a.dehydrated;try{ds(a)}catch(c){rt(o,o.return,c)}}}function tT(a,o){if(o.memoizedState===null&&(a=o.alternate,a!==null&&(a=a.memoizedState,a!==null&&(a=a.dehydrated,a!==null))))try{ds(a)}catch(c){rt(o,o.return,c)}}function iI(a){switch(a.tag){case 31:case 13:case 19:var o=a.stateNode;return o===null&&(o=a.stateNode=new Wj),o;case 22:return a=a.stateNode,o=a._retryCache,o===null&&(o=a._retryCache=new Wj),o;default:throw Error(r(435,a.tag))}}function Yd(a,o){var c=iI(a);o.forEach(function(h){if(!c.has(h)){c.add(h);var y=pI.bind(null,a,h);h.then(y,y)}})}function Sn(a,o){var c=o.deletions;if(c!==null)for(var h=0;h<c.length;h++){var y=c[h],x=a,E=o,R=E;e:for(;R!==null;){switch(R.tag){case 27:if(Ja(R.type)){vt=R.stateNode,xn=!1;break e}break;case 5:vt=R.stateNode,xn=!1;break e;case 3:case 4:vt=R.stateNode.containerInfo,xn=!0;break e}R=R.return}if(vt===null)throw Error(r(160));Jj(x,E,y),vt=null,xn=!1,x=y.alternate,x!==null&&(x.return=null),y.return=null}if(o.subtreeFlags&13886)for(o=o.child;o!==null;)nT(o,a),o=o.sibling}var Sr=null;function nT(a,o){var c=a.alternate,h=a.flags;switch(a.tag){case 0:case 11:case 14:case 15:Sn(o,a),wn(a),h&4&&(Ga(3,a,a.return),rc(3,a),Ga(5,a,a.return));break;case 1:Sn(o,a),wn(a),h&512&&(kt||c===null||kr(c,c.return)),h&64&&sa&&(a=a.updateQueue,a!==null&&(h=a.callbacks,h!==null&&(c=a.shared.hiddenCallbacks,a.shared.hiddenCallbacks=c===null?h:c.concat(h))));break;case 26:var y=Sr;if(Sn(o,a),wn(a),h&512&&(kt||c===null||kr(c,c.return)),h&4){var x=c!==null?c.memoizedState:null;if(h=a.memoizedState,c===null)if(h===null)if(a.stateNode===null){e:{h=a.type,c=a.memoizedProps,y=y.ownerDocument||y;t:switch(h){case"title":x=y.getElementsByTagName("title")[0],(!x||x[Nl]||x[Jt]||x.namespaceURI==="http://www.w3.org/2000/svg"||x.hasAttribute("itemprop"))&&(x=y.createElement(h),y.head.insertBefore(x,y.querySelector("head > title"))),rn(x,h,c),x[Jt]=a,Xt(x),h=x;break e;case"link":var E=nC("link","href",y).get(h+(c.href||""));if(E){for(var R=0;R<E.length;R++)if(x=E[R],x.getAttribute("href")===(c.href==null||c.href===""?null:c.href)&&x.getAttribute("rel")===(c.rel==null?null:c.rel)&&x.getAttribute("title")===(c.title==null?null:c.title)&&x.getAttribute("crossorigin")===(c.crossOrigin==null?null:c.crossOrigin)){E.splice(R,1);break t}}x=y.createElement(h),rn(x,h,c),y.head.appendChild(x);break;case"meta":if(E=nC("meta","content",y).get(h+(c.content||""))){for(R=0;R<E.length;R++)if(x=E[R],x.getAttribute("content")===(c.content==null?null:""+c.content)&&x.getAttribute("name")===(c.name==null?null:c.name)&&x.getAttribute("property")===(c.property==null?null:c.property)&&x.getAttribute("http-equiv")===(c.httpEquiv==null?null:c.httpEquiv)&&x.getAttribute("charset")===(c.charSet==null?null:c.charSet)){E.splice(R,1);break t}}x=y.createElement(h),rn(x,h,c),y.head.appendChild(x);break;default:throw Error(r(468,h))}x[Jt]=a,Xt(x),h=x}a.stateNode=h}else rC(y,a.type,a.stateNode);else a.stateNode=tC(y,h,a.memoizedProps);else x!==h?(x===null?c.stateNode!==null&&(c=c.stateNode,c.parentNode.removeChild(c)):x.count--,h===null?rC(y,a.type,a.stateNode):tC(y,h,a.memoizedProps)):h===null&&a.stateNode!==null&&$g(a,a.memoizedProps,c.memoizedProps)}break;case 27:Sn(o,a),wn(a),h&512&&(kt||c===null||kr(c,c.return)),c!==null&&h&4&&$g(a,a.memoizedProps,c.memoizedProps);break;case 5:if(Sn(o,a),wn(a),h&512&&(kt||c===null||kr(c,c.return)),a.flags&32){y=a.stateNode;try{Ro(y,"")}catch(pe){rt(a,a.return,pe)}}h&4&&a.stateNode!=null&&(y=a.memoizedProps,$g(a,y,c!==null?c.memoizedProps:y)),h&1024&&(qg=!0);break;case 6:if(Sn(o,a),wn(a),h&4){if(a.stateNode===null)throw Error(r(162));h=a.memoizedProps,c=a.stateNode;try{c.nodeValue=h}catch(pe){rt(a,a.return,pe)}}break;case 3:if(ff=null,y=Sr,Sr=uf(o.containerInfo),Sn(o,a),Sr=y,wn(a),h&4&&c!==null&&c.memoizedState.isDehydrated)try{ds(o.containerInfo)}catch(pe){rt(a,a.return,pe)}qg&&(qg=!1,rT(a));break;case 4:h=Sr,Sr=uf(a.stateNode.containerInfo),Sn(o,a),wn(a),Sr=h;break;case 12:Sn(o,a),wn(a);break;case 31:Sn(o,a),wn(a),h&4&&(h=a.updateQueue,h!==null&&(a.updateQueue=null,Yd(a,h)));break;case 13:Sn(o,a),wn(a),a.child.flags&8192&&a.memoizedState!==null!=(c!==null&&c.memoizedState!==null)&&(Zd=ln()),h&4&&(h=a.updateQueue,h!==null&&(a.updateQueue=null,Yd(a,h)));break;case 22:y=a.memoizedState!==null;var I=c!==null&&c.memoizedState!==null,W=sa,ne=kt;if(sa=W||y,kt=ne||I,Sn(o,a),kt=ne,sa=W,wn(a),h&8192)e:for(o=a.stateNode,o._visibility=y?o._visibility&-2:o._visibility|1,y&&(c===null||I||sa||kt||qi(a)),c=null,o=a;;){if(o.tag===5||o.tag===26){if(c===null){I=c=o;try{if(x=I.stateNode,y)E=x.style,typeof E.setProperty=="function"?E.setProperty("display","none","important"):E.display="none";else{R=I.stateNode;var oe=I.memoizedProps.style,Q=oe!=null&&oe.hasOwnProperty("display")?oe.display:null;R.style.display=Q==null||typeof Q=="boolean"?"":(""+Q).trim()}}catch(pe){rt(I,I.return,pe)}}}else if(o.tag===6){if(c===null){I=o;try{I.stateNode.nodeValue=y?"":I.memoizedProps}catch(pe){rt(I,I.return,pe)}}}else if(o.tag===18){if(c===null){I=o;try{var ee=I.stateNode;y?GT(ee,!0):GT(I.stateNode,!1)}catch(pe){rt(I,I.return,pe)}}}else if((o.tag!==22&&o.tag!==23||o.memoizedState===null||o===a)&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===a)break e;for(;o.sibling===null;){if(o.return===null||o.return===a)break e;c===o&&(c=null),o=o.return}c===o&&(c=null),o.sibling.return=o.return,o=o.sibling}h&4&&(h=a.updateQueue,h!==null&&(c=h.retryQueue,c!==null&&(h.retryQueue=null,Yd(a,c))));break;case 19:Sn(o,a),wn(a),h&4&&(h=a.updateQueue,h!==null&&(a.updateQueue=null,Yd(a,h)));break;case 30:break;case 21:break;default:Sn(o,a),wn(a)}}function wn(a){var o=a.flags;if(o&2){try{for(var c,h=a.return;h!==null;){if(Xj(h)){c=h;break}h=h.return}if(c==null)throw Error(r(160));switch(c.tag){case 27:var y=c.stateNode,x=Bg(a);Xd(a,x,y);break;case 5:var E=c.stateNode;c.flags&32&&(Ro(E,""),c.flags&=-33);var R=Bg(a);Xd(a,R,E);break;case 3:case 4:var I=c.stateNode.containerInfo,W=Bg(a);Ig(a,W,I);break;default:throw Error(r(161))}}catch(ne){rt(a,a.return,ne)}a.flags&=-3}o&4096&&(a.flags&=-4097)}function rT(a){if(a.subtreeFlags&1024)for(a=a.child;a!==null;){var o=a;rT(o),o.tag===5&&o.flags&1024&&o.stateNode.reset(),a=a.sibling}}function ca(a,o){if(o.subtreeFlags&8772)for(o=o.child;o!==null;)Zj(a,o.alternate,o),o=o.sibling}function qi(a){for(a=a.child;a!==null;){var o=a;switch(o.tag){case 0:case 11:case 14:case 15:Ga(4,o,o.return),qi(o);break;case 1:kr(o,o.return);var c=o.stateNode;typeof c.componentWillUnmount=="function"&&Gj(o,o.return,c),qi(o);break;case 27:hc(o.stateNode);case 26:case 5:kr(o,o.return),qi(o);break;case 22:o.memoizedState===null&&qi(o);break;case 30:qi(o);break;default:qi(o)}a=a.sibling}}function ua(a,o,c){for(c=c&&(o.subtreeFlags&8772)!==0,o=o.child;o!==null;){var h=o.alternate,y=a,x=o,E=x.flags;switch(x.tag){case 0:case 11:case 15:ua(y,x,c),rc(4,x);break;case 1:if(ua(y,x,c),h=x,y=h.stateNode,typeof y.componentDidMount=="function")try{y.componentDidMount()}catch(W){rt(h,h.return,W)}if(h=x,y=h.updateQueue,y!==null){var R=h.stateNode;try{var I=y.shared.hiddenCallbacks;if(I!==null)for(y.shared.hiddenCallbacks=null,y=0;y<I.length;y++)RO(I[y],R)}catch(W){rt(h,h.return,W)}}c&&E&64&&Fj(x),ac(x,x.return);break;case 27:Yj(x);case 26:case 5:ua(y,x,c),c&&h===null&&E&4&&Kj(x),ac(x,x.return);break;case 12:ua(y,x,c);break;case 31:ua(y,x,c),c&&E&4&&eT(y,x);break;case 13:ua(y,x,c),c&&E&4&&tT(y,x);break;case 22:x.memoizedState===null&&ua(y,x,c),ac(x,x.return);break;case 30:break;default:ua(y,x,c)}o=o.sibling}}function Vg(a,o){var c=null;a!==null&&a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(c=a.memoizedState.cachePool.pool),a=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(a=o.memoizedState.cachePool.pool),a!==c&&(a!=null&&a.refCount++,c!=null&&Hl(c))}function Ug(a,o){a=null,o.alternate!==null&&(a=o.alternate.memoizedState.cache),o=o.memoizedState.cache,o!==a&&(o.refCount++,a!=null&&Hl(a))}function wr(a,o,c,h){if(o.subtreeFlags&10256)for(o=o.child;o!==null;)aT(a,o,c,h),o=o.sibling}function aT(a,o,c,h){var y=o.flags;switch(o.tag){case 0:case 11:case 15:wr(a,o,c,h),y&2048&&rc(9,o);break;case 1:wr(a,o,c,h);break;case 3:wr(a,o,c,h),y&2048&&(a=null,o.alternate!==null&&(a=o.alternate.memoizedState.cache),o=o.memoizedState.cache,o!==a&&(o.refCount++,a!=null&&Hl(a)));break;case 12:if(y&2048){wr(a,o,c,h),a=o.stateNode;try{var x=o.memoizedProps,E=x.id,R=x.onPostCommit;typeof R=="function"&&R(E,o.alternate===null?"mount":"update",a.passiveEffectDuration,-0)}catch(I){rt(o,o.return,I)}}else wr(a,o,c,h);break;case 31:wr(a,o,c,h);break;case 13:wr(a,o,c,h);break;case 23:break;case 22:x=o.stateNode,E=o.alternate,o.memoizedState!==null?x._visibility&2?wr(a,o,c,h):ic(a,o):x._visibility&2?wr(a,o,c,h):(x._visibility|=2,es(a,o,c,h,(o.subtreeFlags&10256)!==0||!1)),y&2048&&Vg(E,o);break;case 24:wr(a,o,c,h),y&2048&&Ug(o.alternate,o);break;default:wr(a,o,c,h)}}function es(a,o,c,h,y){for(y=y&&((o.subtreeFlags&10256)!==0||!1),o=o.child;o!==null;){var x=a,E=o,R=c,I=h,W=E.flags;switch(E.tag){case 0:case 11:case 15:es(x,E,R,I,y),rc(8,E);break;case 23:break;case 22:var ne=E.stateNode;E.memoizedState!==null?ne._visibility&2?es(x,E,R,I,y):ic(x,E):(ne._visibility|=2,es(x,E,R,I,y)),y&&W&2048&&Vg(E.alternate,E);break;case 24:es(x,E,R,I,y),y&&W&2048&&Ug(E.alternate,E);break;default:es(x,E,R,I,y)}o=o.sibling}}function ic(a,o){if(o.subtreeFlags&10256)for(o=o.child;o!==null;){var c=a,h=o,y=h.flags;switch(h.tag){case 22:ic(c,h),y&2048&&Vg(h.alternate,h);break;case 24:ic(c,h),y&2048&&Ug(h.alternate,h);break;default:ic(c,h)}o=o.sibling}}var oc=8192;function ts(a,o,c){if(a.subtreeFlags&oc)for(a=a.child;a!==null;)iT(a,o,c),a=a.sibling}function iT(a,o,c){switch(a.tag){case 26:ts(a,o,c),a.flags&oc&&a.memoizedState!==null&&FI(c,Sr,a.memoizedState,a.memoizedProps);break;case 5:ts(a,o,c);break;case 3:case 4:var h=Sr;Sr=uf(a.stateNode.containerInfo),ts(a,o,c),Sr=h;break;case 22:a.memoizedState===null&&(h=a.alternate,h!==null&&h.memoizedState!==null?(h=oc,oc=16777216,ts(a,o,c),oc=h):ts(a,o,c));break;default:ts(a,o,c)}}function oT(a){var o=a.alternate;if(o!==null&&(a=o.child,a!==null)){o.child=null;do o=a.sibling,a.sibling=null,a=o;while(a!==null)}}function sc(a){var o=a.deletions;if((a.flags&16)!==0){if(o!==null)for(var c=0;c<o.length;c++){var h=o[c];Yt=h,lT(h,a)}oT(a)}if(a.subtreeFlags&10256)for(a=a.child;a!==null;)sT(a),a=a.sibling}function sT(a){switch(a.tag){case 0:case 11:case 15:sc(a),a.flags&2048&&Ga(9,a,a.return);break;case 3:sc(a);break;case 12:sc(a);break;case 22:var o=a.stateNode;a.memoizedState!==null&&o._visibility&2&&(a.return===null||a.return.tag!==13)?(o._visibility&=-3,Wd(a)):sc(a);break;default:sc(a)}}function Wd(a){var o=a.deletions;if((a.flags&16)!==0){if(o!==null)for(var c=0;c<o.length;c++){var h=o[c];Yt=h,lT(h,a)}oT(a)}for(a=a.child;a!==null;){switch(o=a,o.tag){case 0:case 11:case 15:Ga(8,o,o.return),Wd(o);break;case 22:c=o.stateNode,c._visibility&2&&(c._visibility&=-3,Wd(o));break;default:Wd(o)}a=a.sibling}}function lT(a,o){for(;Yt!==null;){var c=Yt;switch(c.tag){case 0:case 11:case 15:Ga(8,c,o);break;case 23:case 22:if(c.memoizedState!==null&&c.memoizedState.cachePool!==null){var h=c.memoizedState.cachePool.pool;h!=null&&h.refCount++}break;case 24:Hl(c.memoizedState.cache)}if(h=c.child,h!==null)h.return=c,Yt=h;else e:for(c=a;Yt!==null;){h=Yt;var y=h.sibling,x=h.return;if(Qj(h),h===c){Yt=null;break e}if(y!==null){y.return=x,Yt=y;break e}Yt=x}}}var oI={getCacheForType:function(a){var o=tn(Mt),c=o.data.get(a);return c===void 0&&(c=a(),o.data.set(a,c)),c},cacheSignal:function(){return tn(Mt).controller.signal}},sI=typeof WeakMap=="function"?WeakMap:Map,Ye=0,lt=null,ze=null,Be=0,nt=0,Rn=null,Ka=!1,ns=!1,Hg=!1,da=0,jt=0,Xa=0,Vi=0,Fg=0,kn=0,rs=0,lc=null,An=null,Gg=!1,Zd=0,cT=0,Qd=1/0,Jd=null,Ya=null,It=0,Wa=null,as=null,fa=0,Kg=0,Xg=null,uT=null,cc=0,Yg=null;function Ln(){return(Ye&2)!==0&&Be!==0?Be&-Be:L.T!==null?tv():T2()}function dT(){if(kn===0)if((Be&536870912)===0||qe){var a=sd;sd<<=1,(sd&3932160)===0&&(sd=262144),kn=a}else kn=536870912;return a=Mn.current,a!==null&&(a.flags|=32),kn}function On(a,o,c){(a===lt&&(nt===2||nt===9)||a.cancelPendingCommit!==null)&&(is(a,0),Za(a,Be,kn,!1)),Pl(a,c),((Ye&2)===0||a!==lt)&&(a===lt&&((Ye&2)===0&&(Vi|=c),jt===4&&Za(a,Be,kn,!1)),Lr(a))}function fT(a,o,c){if((Ye&6)!==0)throw Error(r(327));var h=!c&&(o&127)===0&&(o&a.expiredLanes)===0||_l(a,o),y=h?uI(a,o):Zg(a,o,!0),x=h;do{if(y===0){ns&&!h&&Za(a,o,0,!1);break}else{if(c=a.current.alternate,x&&!lI(c)){y=Zg(a,o,!1),x=!1;continue}if(y===2){if(x=o,a.errorRecoveryDisabledLanes&x)var E=0;else E=a.pendingLanes&-536870913,E=E!==0?E:E&536870912?536870912:0;if(E!==0){o=E;e:{var R=a;y=lc;var I=R.current.memoizedState.isDehydrated;if(I&&(is(R,E).flags|=256),E=Zg(R,E,!1),E!==2){if(Hg&&!I){R.errorRecoveryDisabledLanes|=x,Vi|=x,y=4;break e}x=An,An=y,x!==null&&(An===null?An=x:An.push.apply(An,x))}y=E}if(x=!1,y!==2)continue}}if(y===1){is(a,0),Za(a,o,0,!0);break}e:{switch(h=a,x=y,x){case 0:case 1:throw Error(r(345));case 4:if((o&4194048)!==o)break;case 6:Za(h,o,kn,!Ka);break e;case 2:An=null;break;case 3:case 5:break;default:throw Error(r(329))}if((o&62914560)===o&&(y=Zd+300-ln(),10<y)){if(Za(h,o,kn,!Ka),cd(h,0,!0)!==0)break e;fa=o,h.timeoutHandle=UT(hT.bind(null,h,c,An,Jd,Gg,o,kn,Vi,rs,Ka,x,"Throttled",-0,0),y);break e}hT(h,c,An,Jd,Gg,o,kn,Vi,rs,Ka,x,null,-0,0)}}break}while(!0);Lr(a)}function hT(a,o,c,h,y,x,E,R,I,W,ne,oe,Q,ee){if(a.timeoutHandle=-1,oe=o.subtreeFlags,oe&8192||(oe&16785408)===16785408){oe={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Zr},iT(o,x,oe);var pe=(x&62914560)===x?Zd-ln():(x&4194048)===x?cT-ln():0;if(pe=GI(oe,pe),pe!==null){fa=x,a.cancelPendingCommit=pe(ST.bind(null,a,o,x,c,h,y,E,R,I,ne,oe,null,Q,ee)),Za(a,x,E,!W);return}}ST(a,o,x,c,h,y,E,R,I)}function lI(a){for(var o=a;;){var c=o.tag;if((c===0||c===11||c===15)&&o.flags&16384&&(c=o.updateQueue,c!==null&&(c=c.stores,c!==null)))for(var h=0;h<c.length;h++){var y=c[h],x=y.getSnapshot;y=y.value;try{if(!Pn(x(),y))return!1}catch{return!1}}if(c=o.child,o.subtreeFlags&16384&&c!==null)c.return=o,o=c;else{if(o===a)break;for(;o.sibling===null;){if(o.return===null||o.return===a)return!0;o=o.return}o.sibling.return=o.return,o=o.sibling}}return!0}function Za(a,o,c,h){o&=~Fg,o&=~Vi,a.suspendedLanes|=o,a.pingedLanes&=~o,h&&(a.warmLanes|=o),h=a.expirationTimes;for(var y=o;0<y;){var x=31-_n(y),E=1<<x;h[x]=-1,y&=~E}c!==0&&A2(a,c,o)}function ef(){return(Ye&6)===0?(uc(0),!1):!0}function Wg(){if(ze!==null){if(nt===0)var a=ze.return;else a=ze,ta=Di=null,fg(a),Yo=null,Gl=0,a=ze;for(;a!==null;)Hj(a.alternate,a),a=a.return;ze=null}}function is(a,o){var c=a.timeoutHandle;c!==-1&&(a.timeoutHandle=-1,EI(c)),c=a.cancelPendingCommit,c!==null&&(a.cancelPendingCommit=null,c()),fa=0,Wg(),lt=a,ze=c=Jr(a.current,null),Be=o,nt=0,Rn=null,Ka=!1,ns=_l(a,o),Hg=!1,rs=kn=Fg=Vi=Xa=jt=0,An=lc=null,Gg=!1,(o&8)!==0&&(o|=o&32);var h=a.entangledLanes;if(h!==0)for(a=a.entanglements,h&=o;0<h;){var y=31-_n(h),x=1<<y;o|=a[y],h&=~x}return da=o,Sd(),c}function pT(a,o){De=null,L.H=ec,o===Xo||o===_d?(o=PO(),nt=3):o===eg?(o=PO(),nt=4):nt=o===Eg?8:o!==null&&typeof o=="object"&&typeof o.then=="function"?6:1,Rn=o,ze===null&&(jt=1,Ud(a,Xn(o,a.current)))}function mT(){var a=Mn.current;return a===null?!0:(Be&4194048)===Be?Qn===null:(Be&62914560)===Be||(Be&536870912)!==0?a===Qn:!1}function gT(){var a=L.H;return L.H=ec,a===null?ec:a}function vT(){var a=L.A;return L.A=oI,a}function tf(){jt=4,Ka||(Be&4194048)!==Be&&Mn.current!==null||(ns=!0),(Xa&134217727)===0&&(Vi&134217727)===0||lt===null||Za(lt,Be,kn,!1)}function Zg(a,o,c){var h=Ye;Ye|=2;var y=gT(),x=vT();(lt!==a||Be!==o)&&(Jd=null,is(a,o)),o=!1;var E=jt;e:do try{if(nt!==0&&ze!==null){var R=ze,I=Rn;switch(nt){case 8:Wg(),E=6;break e;case 3:case 2:case 9:case 6:Mn.current===null&&(o=!0);var W=nt;if(nt=0,Rn=null,os(a,R,I,W),c&&ns){E=0;break e}break;default:W=nt,nt=0,Rn=null,os(a,R,I,W)}}cI(),E=jt;break}catch(ne){pT(a,ne)}while(!0);return o&&a.shellSuspendCounter++,ta=Di=null,Ye=h,L.H=y,L.A=x,ze===null&&(lt=null,Be=0,Sd()),E}function cI(){for(;ze!==null;)yT(ze)}function uI(a,o){var c=Ye;Ye|=2;var h=gT(),y=vT();lt!==a||Be!==o?(Jd=null,Qd=ln()+500,is(a,o)):ns=_l(a,o);e:do try{if(nt!==0&&ze!==null){o=ze;var x=Rn;t:switch(nt){case 1:nt=0,Rn=null,os(a,o,x,1);break;case 2:case 9:if(EO(x)){nt=0,Rn=null,bT(o);break}o=function(){nt!==2&&nt!==9||lt!==a||(nt=7),Lr(a)},x.then(o,o);break e;case 3:nt=7;break e;case 4:nt=5;break e;case 7:EO(x)?(nt=0,Rn=null,bT(o)):(nt=0,Rn=null,os(a,o,x,7));break;case 5:var E=null;switch(ze.tag){case 26:E=ze.memoizedState;case 5:case 27:var R=ze;if(E?aC(E):R.stateNode.complete){nt=0,Rn=null;var I=R.sibling;if(I!==null)ze=I;else{var W=R.return;W!==null?(ze=W,nf(W)):ze=null}break t}}nt=0,Rn=null,os(a,o,x,5);break;case 6:nt=0,Rn=null,os(a,o,x,6);break;case 8:Wg(),jt=6;break e;default:throw Error(r(462))}}dI();break}catch(ne){pT(a,ne)}while(!0);return ta=Di=null,L.H=h,L.A=y,Ye=c,ze!==null?0:(lt=null,Be=0,Sd(),jt)}function dI(){for(;ze!==null&&!Yr();)yT(ze)}function yT(a){var o=Vj(a.alternate,a,da);a.memoizedProps=a.pendingProps,o===null?nf(a):ze=o}function bT(a){var o=a,c=o.alternate;switch(o.tag){case 15:case 0:o=Lj(c,o,o.pendingProps,o.type,void 0,Be);break;case 11:o=Lj(c,o,o.pendingProps,o.type.render,o.ref,Be);break;case 5:fg(o);default:Hj(c,o),o=ze=vO(o,da),o=Vj(c,o,da)}a.memoizedProps=a.pendingProps,o===null?nf(a):ze=o}function os(a,o,c,h){ta=Di=null,fg(o),Yo=null,Gl=0;var y=o.return;try{if(JB(a,y,o,c,Be)){jt=1,Ud(a,Xn(c,a.current)),ze=null;return}}catch(x){if(y!==null)throw ze=y,x;jt=1,Ud(a,Xn(c,a.current)),ze=null;return}o.flags&32768?(qe||h===1?a=!0:ns||(Be&536870912)!==0?a=!1:(Ka=a=!0,(h===2||h===9||h===3||h===6)&&(h=Mn.current,h!==null&&h.tag===13&&(h.flags|=16384))),xT(o,a)):nf(o)}function nf(a){var o=a;do{if((o.flags&32768)!==0){xT(o,Ka);return}a=o.return;var c=nI(o.alternate,o,da);if(c!==null){ze=c;return}if(o=o.sibling,o!==null){ze=o;return}ze=o=a}while(o!==null);jt===0&&(jt=5)}function xT(a,o){do{var c=rI(a.alternate,a);if(c!==null){c.flags&=32767,ze=c;return}if(c=a.return,c!==null&&(c.flags|=32768,c.subtreeFlags=0,c.deletions=null),!o&&(a=a.sibling,a!==null)){ze=a;return}ze=a=c}while(a!==null);jt=6,ze=null}function ST(a,o,c,h,y,x,E,R,I){a.cancelPendingCommit=null;do rf();while(It!==0);if((Ye&6)!==0)throw Error(r(327));if(o!==null){if(o===a.current)throw Error(r(177));if(x=o.lanes|o.childLanes,x|=Bm,H$(a,c,x,E,R,I),a===lt&&(ze=lt=null,Be=0),as=o,Wa=a,fa=c,Kg=x,Xg=y,uT=h,(o.subtreeFlags&10256)!==0||(o.flags&10256)!==0?(a.callbackNode=null,a.callbackPriority=0,mI(id,function(){return TT(),null})):(a.callbackNode=null,a.callbackPriority=0),h=(o.flags&13878)!==0,(o.subtreeFlags&13878)!==0||h){h=L.T,L.T=null,y=V.p,V.p=2,E=Ye,Ye|=4;try{aI(a,o,c)}finally{Ye=E,V.p=y,L.T=h}}It=1,wT(),AT(),OT()}}function wT(){if(It===1){It=0;var a=Wa,o=as,c=(o.flags&13878)!==0;if((o.subtreeFlags&13878)!==0||c){c=L.T,L.T=null;var h=V.p;V.p=2;var y=Ye;Ye|=4;try{nT(o,a);var x=cv,E=lO(a.containerInfo),R=x.focusedElem,I=x.selectionRange;if(E!==R&&R&&R.ownerDocument&&sO(R.ownerDocument.documentElement,R)){if(I!==null&&Rm(R)){var W=I.start,ne=I.end;if(ne===void 0&&(ne=W),"selectionStart"in R)R.selectionStart=W,R.selectionEnd=Math.min(ne,R.value.length);else{var oe=R.ownerDocument||document,Q=oe&&oe.defaultView||window;if(Q.getSelection){var ee=Q.getSelection(),pe=R.textContent.length,je=Math.min(I.start,pe),ot=I.end===void 0?je:Math.min(I.end,pe);!ee.extend&&je>ot&&(E=ot,ot=je,je=E);var K=oO(R,je),q=oO(R,ot);if(K&&q&&(ee.rangeCount!==1||ee.anchorNode!==K.node||ee.anchorOffset!==K.offset||ee.focusNode!==q.node||ee.focusOffset!==q.offset)){var Y=oe.createRange();Y.setStart(K.node,K.offset),ee.removeAllRanges(),je>ot?(ee.addRange(Y),ee.extend(q.node,q.offset)):(Y.setEnd(q.node,q.offset),ee.addRange(Y))}}}}for(oe=[],ee=R;ee=ee.parentNode;)ee.nodeType===1&&oe.push({element:ee,left:ee.scrollLeft,top:ee.scrollTop});for(typeof R.focus=="function"&&R.focus(),R=0;R<oe.length;R++){var ae=oe[R];ae.element.scrollLeft=ae.left,ae.element.scrollTop=ae.top}}gf=!!lv,cv=lv=null}finally{Ye=y,V.p=h,L.T=c}}a.current=o,It=2}}function AT(){if(It===2){It=0;var a=Wa,o=as,c=(o.flags&8772)!==0;if((o.subtreeFlags&8772)!==0||c){c=L.T,L.T=null;var h=V.p;V.p=2;var y=Ye;Ye|=4;try{Zj(a,o.alternate,o)}finally{Ye=y,V.p=h,L.T=c}}It=3}}function OT(){if(It===4||It===3){It=0,Cl();var a=Wa,o=as,c=fa,h=uT;(o.subtreeFlags&10256)!==0||(o.flags&10256)!==0?It=5:(It=0,as=Wa=null,jT(a,a.pendingLanes));var y=a.pendingLanes;if(y===0&&(Ya=null),mm(c),o=o.stateNode,En&&typeof En.onCommitFiberRoot=="function")try{En.onCommitFiberRoot(El,o,void 0,(o.current.flags&128)===128)}catch{}if(h!==null){o=L.T,y=V.p,V.p=2,L.T=null;try{for(var x=a.onRecoverableError,E=0;E<h.length;E++){var R=h[E];x(R.value,{componentStack:R.stack})}}finally{L.T=o,V.p=y}}(fa&3)!==0&&rf(),Lr(a),y=a.pendingLanes,(c&261930)!==0&&(y&42)!==0?a===Yg?cc++:(cc=0,Yg=a):cc=0,uc(0)}}function jT(a,o){(a.pooledCacheLanes&=o)===0&&(o=a.pooledCache,o!=null&&(a.pooledCache=null,Hl(o)))}function rf(){return wT(),AT(),OT(),TT()}function TT(){if(It!==5)return!1;var a=Wa,o=Kg;Kg=0;var c=mm(fa),h=L.T,y=V.p;try{V.p=32>c?32:c,L.T=null,c=Xg,Xg=null;var x=Wa,E=fa;if(It=0,as=Wa=null,fa=0,(Ye&6)!==0)throw Error(r(331));var R=Ye;if(Ye|=4,sT(x.current),aT(x,x.current,E,c),Ye=R,uc(0,!1),En&&typeof En.onPostCommitFiberRoot=="function")try{En.onPostCommitFiberRoot(El,x)}catch{}return!0}finally{V.p=y,L.T=h,jT(a,o)}}function CT(a,o,c){o=Xn(c,o),o=Cg(a.stateNode,o,2),a=Ua(a,o,2),a!==null&&(Pl(a,2),Lr(a))}function rt(a,o,c){if(a.tag===3)CT(a,a,c);else for(;o!==null;){if(o.tag===3){CT(o,a,c);break}else if(o.tag===1){var h=o.stateNode;if(typeof o.type.getDerivedStateFromError=="function"||typeof h.componentDidCatch=="function"&&(Ya===null||!Ya.has(h))){a=Xn(c,a),c=Ej(2),h=Ua(o,c,2),h!==null&&(_j(c,h,o,a),Pl(h,2),Lr(h));break}}o=o.return}}function Qg(a,o,c){var h=a.pingCache;if(h===null){h=a.pingCache=new sI;var y=new Set;h.set(o,y)}else y=h.get(o),y===void 0&&(y=new Set,h.set(o,y));y.has(c)||(Hg=!0,y.add(c),a=fI.bind(null,a,o,c),o.then(a,a))}function fI(a,o,c){var h=a.pingCache;h!==null&&h.delete(o),a.pingedLanes|=a.suspendedLanes&c,a.warmLanes&=~c,lt===a&&(Be&c)===c&&(jt===4||jt===3&&(Be&62914560)===Be&&300>ln()-Zd?(Ye&2)===0&&is(a,0):Fg|=c,rs===Be&&(rs=0)),Lr(a)}function ET(a,o){o===0&&(o=w2()),a=Pi(a,o),a!==null&&(Pl(a,o),Lr(a))}function hI(a){var o=a.memoizedState,c=0;o!==null&&(c=o.retryLane),ET(a,c)}function pI(a,o){var c=0;switch(a.tag){case 31:case 13:var h=a.stateNode,y=a.memoizedState;y!==null&&(c=y.retryLane);break;case 19:h=a.stateNode;break;case 22:h=a.stateNode._retryCache;break;default:throw Error(r(314))}h!==null&&h.delete(o),ET(a,c)}function mI(a,o){return Da(a,o)}var af=null,ss=null,Jg=!1,of=!1,ev=!1,Qa=0;function Lr(a){a!==ss&&a.next===null&&(ss===null?af=ss=a:ss=ss.next=a),of=!0,Jg||(Jg=!0,vI())}function uc(a,o){if(!ev&&of){ev=!0;do for(var c=!1,h=af;h!==null;){if(a!==0){var y=h.pendingLanes;if(y===0)var x=0;else{var E=h.suspendedLanes,R=h.pingedLanes;x=(1<<31-_n(42|a)+1)-1,x&=y&~(E&~R),x=x&201326741?x&201326741|1:x?x|2:0}x!==0&&(c=!0,MT(h,x))}else x=Be,x=cd(h,h===lt?x:0,h.cancelPendingCommit!==null||h.timeoutHandle!==-1),(x&3)===0||_l(h,x)||(c=!0,MT(h,x));h=h.next}while(c);ev=!1}}function gI(){_T()}function _T(){of=Jg=!1;var a=0;Qa!==0&&CI()&&(a=Qa);for(var o=ln(),c=null,h=af;h!==null;){var y=h.next,x=PT(h,o);x===0?(h.next=null,c===null?af=y:c.next=y,y===null&&(ss=c)):(c=h,(a!==0||(x&3)!==0)&&(of=!0)),h=y}It!==0&&It!==5||uc(a),Qa!==0&&(Qa=0)}function PT(a,o){for(var c=a.suspendedLanes,h=a.pingedLanes,y=a.expirationTimes,x=a.pendingLanes&-62914561;0<x;){var E=31-_n(x),R=1<<E,I=y[E];I===-1?((R&c)===0||(R&h)!==0)&&(y[E]=U$(R,o)):I<=o&&(a.expiredLanes|=R),x&=~R}if(o=lt,c=Be,c=cd(a,a===o?c:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),h=a.callbackNode,c===0||a===o&&(nt===2||nt===9)||a.cancelPendingCommit!==null)return h!==null&&h!==null&&br(h),a.callbackNode=null,a.callbackPriority=0;if((c&3)===0||_l(a,c)){if(o=c&-c,o===a.callbackPriority)return o;switch(h!==null&&br(h),mm(c)){case 2:case 8:c=x2;break;case 32:c=id;break;case 268435456:c=S2;break;default:c=id}return h=NT.bind(null,a),c=Da(c,h),a.callbackPriority=o,a.callbackNode=c,o}return h!==null&&h!==null&&br(h),a.callbackPriority=2,a.callbackNode=null,2}function NT(a,o){if(It!==0&&It!==5)return a.callbackNode=null,a.callbackPriority=0,null;var c=a.callbackNode;if(rf()&&a.callbackNode!==c)return null;var h=Be;return h=cd(a,a===lt?h:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),h===0?null:(fT(a,h,o),PT(a,ln()),a.callbackNode!=null&&a.callbackNode===c?NT.bind(null,a):null)}function MT(a,o){if(rf())return null;fT(a,o,!0)}function vI(){_I(function(){(Ye&6)!==0?Da(b2,gI):_T()})}function tv(){if(Qa===0){var a=Go;a===0&&(a=od,od<<=1,(od&261888)===0&&(od=256)),Qa=a}return Qa}function DT(a){return a==null||typeof a=="symbol"||typeof a=="boolean"?null:typeof a=="function"?a:hd(""+a)}function RT(a,o){var c=o.ownerDocument.createElement("input");return c.name=o.name,c.value=o.value,a.id&&c.setAttribute("form",a.id),o.parentNode.insertBefore(c,o),a=new FormData(a),c.parentNode.removeChild(c),a}function yI(a,o,c,h,y){if(o==="submit"&&c&&c.stateNode===y){var x=DT((y[yn]||null).action),E=h.submitter;E&&(o=(o=E[yn]||null)?DT(o.formAction):E.getAttribute("formAction"),o!==null&&(x=o,E=null));var R=new vd("action","action",null,h,y);a.push({event:R,listeners:[{instance:null,listener:function(){if(h.defaultPrevented){if(Qa!==0){var I=E?RT(y,E):new FormData(y);Sg(c,{pending:!0,data:I,method:y.method,action:x},null,I)}}else typeof x=="function"&&(R.preventDefault(),I=E?RT(y,E):new FormData(y),Sg(c,{pending:!0,data:I,method:y.method,action:x},x,I))},currentTarget:y}]})}}for(var nv=0;nv<$m.length;nv++){var rv=$m[nv],bI=rv.toLowerCase(),xI=rv[0].toUpperCase()+rv.slice(1);xr(bI,"on"+xI)}xr(dO,"onAnimationEnd"),xr(fO,"onAnimationIteration"),xr(hO,"onAnimationStart"),xr("dblclick","onDoubleClick"),xr("focusin","onFocus"),xr("focusout","onBlur"),xr(LB,"onTransitionRun"),xr(zB,"onTransitionStart"),xr($B,"onTransitionCancel"),xr(pO,"onTransitionEnd"),Mo("onMouseEnter",["mouseout","mouseover"]),Mo("onMouseLeave",["mouseout","mouseover"]),Mo("onPointerEnter",["pointerout","pointerover"]),Mo("onPointerLeave",["pointerout","pointerover"]),Ti("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ti("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ti("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ti("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ti("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ti("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var dc="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),SI=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(dc));function kT(a,o){o=(o&4)!==0;for(var c=0;c<a.length;c++){var h=a[c],y=h.event;h=h.listeners;e:{var x=void 0;if(o)for(var E=h.length-1;0<=E;E--){var R=h[E],I=R.instance,W=R.currentTarget;if(R=R.listener,I!==x&&y.isPropagationStopped())break e;x=R,y.currentTarget=W;try{x(y)}catch(ne){xd(ne)}y.currentTarget=null,x=I}else for(E=0;E<h.length;E++){if(R=h[E],I=R.instance,W=R.currentTarget,R=R.listener,I!==x&&y.isPropagationStopped())break e;x=R,y.currentTarget=W;try{x(y)}catch(ne){xd(ne)}y.currentTarget=null,x=I}}}}function $e(a,o){var c=o[gm];c===void 0&&(c=o[gm]=new Set);var h=a+"__bubble";c.has(h)||(LT(o,a,2,!1),c.add(h))}function av(a,o,c){var h=0;o&&(h|=4),LT(c,a,h,o)}var sf="_reactListening"+Math.random().toString(36).slice(2);function iv(a){if(!a[sf]){a[sf]=!0,_2.forEach(function(c){c!=="selectionchange"&&(SI.has(c)||av(c,!1,a),av(c,!0,a))});var o=a.nodeType===9?a:a.ownerDocument;o===null||o[sf]||(o[sf]=!0,av("selectionchange",!1,o))}}function LT(a,o,c,h){switch(dC(o)){case 2:var y=YI;break;case 8:y=WI;break;default:y=xv}c=y.bind(null,o,c,a),y=void 0,!jm||o!=="touchstart"&&o!=="touchmove"&&o!=="wheel"||(y=!0),h?y!==void 0?a.addEventListener(o,c,{capture:!0,passive:y}):a.addEventListener(o,c,!0):y!==void 0?a.addEventListener(o,c,{passive:y}):a.addEventListener(o,c,!1)}function ov(a,o,c,h,y){var x=h;if((o&1)===0&&(o&2)===0&&h!==null)e:for(;;){if(h===null)return;var E=h.tag;if(E===3||E===4){var R=h.stateNode.containerInfo;if(R===y)break;if(E===4)for(E=h.return;E!==null;){var I=E.tag;if((I===3||I===4)&&E.stateNode.containerInfo===y)return;E=E.return}for(;R!==null;){if(E=_o(R),E===null)return;if(I=E.tag,I===5||I===6||I===26||I===27){h=x=E;continue e}R=R.parentNode}}h=h.return}q2(function(){var W=x,ne=Am(c),oe=[];e:{var Q=mO.get(a);if(Q!==void 0){var ee=vd,pe=a;switch(a){case"keypress":if(md(c)===0)break e;case"keydown":case"keyup":ee=pB;break;case"focusin":pe="focus",ee=_m;break;case"focusout":pe="blur",ee=_m;break;case"beforeblur":case"afterblur":ee=_m;break;case"click":if(c.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":ee=H2;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ee=nB;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ee=vB;break;case dO:case fO:case hO:ee=iB;break;case pO:ee=bB;break;case"scroll":case"scrollend":ee=eB;break;case"wheel":ee=SB;break;case"copy":case"cut":case"paste":ee=sB;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ee=G2;break;case"toggle":case"beforetoggle":ee=AB}var je=(o&4)!==0,ot=!je&&(a==="scroll"||a==="scrollend"),K=je?Q!==null?Q+"Capture":null:Q;je=[];for(var q=W,Y;q!==null;){var ae=q;if(Y=ae.stateNode,ae=ae.tag,ae!==5&&ae!==26&&ae!==27||Y===null||K===null||(ae=Dl(q,K),ae!=null&&je.push(fc(q,ae,Y))),ot)break;q=q.return}0<je.length&&(Q=new ee(Q,pe,null,c,ne),oe.push({event:Q,listeners:je}))}}if((o&7)===0){e:{if(Q=a==="mouseover"||a==="pointerover",ee=a==="mouseout"||a==="pointerout",Q&&c!==wm&&(pe=c.relatedTarget||c.fromElement)&&(_o(pe)||pe[Eo]))break e;if((ee||Q)&&(Q=ne.window===ne?ne:(Q=ne.ownerDocument)?Q.defaultView||Q.parentWindow:window,ee?(pe=c.relatedTarget||c.toElement,ee=W,pe=pe?_o(pe):null,pe!==null&&(ot=s(pe),je=pe.tag,pe!==ot||je!==5&&je!==27&&je!==6)&&(pe=null)):(ee=null,pe=W),ee!==pe)){if(je=H2,ae="onMouseLeave",K="onMouseEnter",q="mouse",(a==="pointerout"||a==="pointerover")&&(je=G2,ae="onPointerLeave",K="onPointerEnter",q="pointer"),ot=ee==null?Q:Ml(ee),Y=pe==null?Q:Ml(pe),Q=new je(ae,q+"leave",ee,c,ne),Q.target=ot,Q.relatedTarget=Y,ae=null,_o(ne)===W&&(je=new je(K,q+"enter",pe,c,ne),je.target=Y,je.relatedTarget=ot,ae=je),ot=ae,ee&&pe)t:{for(je=wI,K=ee,q=pe,Y=0,ae=K;ae;ae=je(ae))Y++;ae=0;for(var xe=q;xe;xe=je(xe))ae++;for(;0<Y-ae;)K=je(K),Y--;for(;0<ae-Y;)q=je(q),ae--;for(;Y--;){if(K===q||q!==null&&K===q.alternate){je=K;break t}K=je(K),q=je(q)}je=null}else je=null;ee!==null&&zT(oe,Q,ee,je,!1),pe!==null&&ot!==null&&zT(oe,ot,pe,je,!0)}}e:{if(Q=W?Ml(W):window,ee=Q.nodeName&&Q.nodeName.toLowerCase(),ee==="select"||ee==="input"&&Q.type==="file")var Ue=eO;else if(Q2(Q))if(tO)Ue=DB;else{Ue=NB;var ve=PB}else ee=Q.nodeName,!ee||ee.toLowerCase()!=="input"||Q.type!=="checkbox"&&Q.type!=="radio"?W&&Sm(W.elementType)&&(Ue=eO):Ue=MB;if(Ue&&(Ue=Ue(a,W))){J2(oe,Ue,c,ne);break e}ve&&ve(a,Q,W),a==="focusout"&&W&&Q.type==="number"&&W.memoizedProps.value!=null&&xm(Q,"number",Q.value)}switch(ve=W?Ml(W):window,a){case"focusin":(Q2(ve)||ve.contentEditable==="true")&&($o=ve,km=W,ql=null);break;case"focusout":ql=km=$o=null;break;case"mousedown":Lm=!0;break;case"contextmenu":case"mouseup":case"dragend":Lm=!1,cO(oe,c,ne);break;case"selectionchange":if(kB)break;case"keydown":case"keyup":cO(oe,c,ne)}var ke;if(Nm)e:{switch(a){case"compositionstart":var Ie="onCompositionStart";break e;case"compositionend":Ie="onCompositionEnd";break e;case"compositionupdate":Ie="onCompositionUpdate";break e}Ie=void 0}else zo?W2(a,c)&&(Ie="onCompositionEnd"):a==="keydown"&&c.keyCode===229&&(Ie="onCompositionStart");Ie&&(K2&&c.locale!=="ko"&&(zo||Ie!=="onCompositionStart"?Ie==="onCompositionEnd"&&zo&&(ke=V2()):(La=ne,Tm="value"in La?La.value:La.textContent,zo=!0)),ve=lf(W,Ie),0<ve.length&&(Ie=new F2(Ie,a,null,c,ne),oe.push({event:Ie,listeners:ve}),ke?Ie.data=ke:(ke=Z2(c),ke!==null&&(Ie.data=ke)))),(ke=jB?TB(a,c):CB(a,c))&&(Ie=lf(W,"onBeforeInput"),0<Ie.length&&(ve=new F2("onBeforeInput","beforeinput",null,c,ne),oe.push({event:ve,listeners:Ie}),ve.data=ke)),yI(oe,a,W,c,ne)}kT(oe,o)})}function fc(a,o,c){return{instance:a,listener:o,currentTarget:c}}function lf(a,o){for(var c=o+"Capture",h=[];a!==null;){var y=a,x=y.stateNode;if(y=y.tag,y!==5&&y!==26&&y!==27||x===null||(y=Dl(a,c),y!=null&&h.unshift(fc(a,y,x)),y=Dl(a,o),y!=null&&h.push(fc(a,y,x))),a.tag===3)return h;a=a.return}return[]}function wI(a){if(a===null)return null;do a=a.return;while(a&&a.tag!==5&&a.tag!==27);return a||null}function zT(a,o,c,h,y){for(var x=o._reactName,E=[];c!==null&&c!==h;){var R=c,I=R.alternate,W=R.stateNode;if(R=R.tag,I!==null&&I===h)break;R!==5&&R!==26&&R!==27||W===null||(I=W,y?(W=Dl(c,x),W!=null&&E.unshift(fc(c,W,I))):y||(W=Dl(c,x),W!=null&&E.push(fc(c,W,I)))),c=c.return}E.length!==0&&a.push({event:o,listeners:E})}var AI=/\r\n?/g,OI=/\u0000|\uFFFD/g;function $T(a){return(typeof a=="string"?a:""+a).replace(AI,`
`).replace(OI,"")}function BT(a,o){return o=$T(o),$T(a)===o}function it(a,o,c,h,y,x){switch(c){case"children":typeof h=="string"?o==="body"||o==="textarea"&&h===""||Ro(a,h):(typeof h=="number"||typeof h=="bigint")&&o!=="body"&&Ro(a,""+h);break;case"className":dd(a,"class",h);break;case"tabIndex":dd(a,"tabindex",h);break;case"dir":case"role":case"viewBox":case"width":case"height":dd(a,c,h);break;case"style":B2(a,h,x);break;case"data":if(o!=="object"){dd(a,"data",h);break}case"src":case"href":if(h===""&&(o!=="a"||c!=="href")){a.removeAttribute(c);break}if(h==null||typeof h=="function"||typeof h=="symbol"||typeof h=="boolean"){a.removeAttribute(c);break}h=hd(""+h),a.setAttribute(c,h);break;case"action":case"formAction":if(typeof h=="function"){a.setAttribute(c,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof x=="function"&&(c==="formAction"?(o!=="input"&&it(a,o,"name",y.name,y,null),it(a,o,"formEncType",y.formEncType,y,null),it(a,o,"formMethod",y.formMethod,y,null),it(a,o,"formTarget",y.formTarget,y,null)):(it(a,o,"encType",y.encType,y,null),it(a,o,"method",y.method,y,null),it(a,o,"target",y.target,y,null)));if(h==null||typeof h=="symbol"||typeof h=="boolean"){a.removeAttribute(c);break}h=hd(""+h),a.setAttribute(c,h);break;case"onClick":h!=null&&(a.onclick=Zr);break;case"onScroll":h!=null&&$e("scroll",a);break;case"onScrollEnd":h!=null&&$e("scrollend",a);break;case"dangerouslySetInnerHTML":if(h!=null){if(typeof h!="object"||!("__html"in h))throw Error(r(61));if(c=h.__html,c!=null){if(y.children!=null)throw Error(r(60));a.innerHTML=c}}break;case"multiple":a.multiple=h&&typeof h!="function"&&typeof h!="symbol";break;case"muted":a.muted=h&&typeof h!="function"&&typeof h!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(h==null||typeof h=="function"||typeof h=="boolean"||typeof h=="symbol"){a.removeAttribute("xlink:href");break}c=hd(""+h),a.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",c);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":h!=null&&typeof h!="function"&&typeof h!="symbol"?a.setAttribute(c,""+h):a.removeAttribute(c);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":h&&typeof h!="function"&&typeof h!="symbol"?a.setAttribute(c,""):a.removeAttribute(c);break;case"capture":case"download":h===!0?a.setAttribute(c,""):h!==!1&&h!=null&&typeof h!="function"&&typeof h!="symbol"?a.setAttribute(c,h):a.removeAttribute(c);break;case"cols":case"rows":case"size":case"span":h!=null&&typeof h!="function"&&typeof h!="symbol"&&!isNaN(h)&&1<=h?a.setAttribute(c,h):a.removeAttribute(c);break;case"rowSpan":case"start":h==null||typeof h=="function"||typeof h=="symbol"||isNaN(h)?a.removeAttribute(c):a.setAttribute(c,h);break;case"popover":$e("beforetoggle",a),$e("toggle",a),ud(a,"popover",h);break;case"xlinkActuate":Wr(a,"http://www.w3.org/1999/xlink","xlink:actuate",h);break;case"xlinkArcrole":Wr(a,"http://www.w3.org/1999/xlink","xlink:arcrole",h);break;case"xlinkRole":Wr(a,"http://www.w3.org/1999/xlink","xlink:role",h);break;case"xlinkShow":Wr(a,"http://www.w3.org/1999/xlink","xlink:show",h);break;case"xlinkTitle":Wr(a,"http://www.w3.org/1999/xlink","xlink:title",h);break;case"xlinkType":Wr(a,"http://www.w3.org/1999/xlink","xlink:type",h);break;case"xmlBase":Wr(a,"http://www.w3.org/XML/1998/namespace","xml:base",h);break;case"xmlLang":Wr(a,"http://www.w3.org/XML/1998/namespace","xml:lang",h);break;case"xmlSpace":Wr(a,"http://www.w3.org/XML/1998/namespace","xml:space",h);break;case"is":ud(a,"is",h);break;case"innerText":case"textContent":break;default:(!(2<c.length)||c[0]!=="o"&&c[0]!=="O"||c[1]!=="n"&&c[1]!=="N")&&(c=Q$.get(c)||c,ud(a,c,h))}}function sv(a,o,c,h,y,x){switch(c){case"style":B2(a,h,x);break;case"dangerouslySetInnerHTML":if(h!=null){if(typeof h!="object"||!("__html"in h))throw Error(r(61));if(c=h.__html,c!=null){if(y.children!=null)throw Error(r(60));a.innerHTML=c}}break;case"children":typeof h=="string"?Ro(a,h):(typeof h=="number"||typeof h=="bigint")&&Ro(a,""+h);break;case"onScroll":h!=null&&$e("scroll",a);break;case"onScrollEnd":h!=null&&$e("scrollend",a);break;case"onClick":h!=null&&(a.onclick=Zr);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!P2.hasOwnProperty(c))e:{if(c[0]==="o"&&c[1]==="n"&&(y=c.endsWith("Capture"),o=c.slice(2,y?c.length-7:void 0),x=a[yn]||null,x=x!=null?x[c]:null,typeof x=="function"&&a.removeEventListener(o,x,y),typeof h=="function")){typeof x!="function"&&x!==null&&(c in a?a[c]=null:a.hasAttribute(c)&&a.removeAttribute(c)),a.addEventListener(o,h,y);break e}c in a?a[c]=h:h===!0?a.setAttribute(c,""):ud(a,c,h)}}}function rn(a,o,c){switch(o){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":$e("error",a),$e("load",a);var h=!1,y=!1,x;for(x in c)if(c.hasOwnProperty(x)){var E=c[x];if(E!=null)switch(x){case"src":h=!0;break;case"srcSet":y=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,o));default:it(a,o,x,E,c,null)}}y&&it(a,o,"srcSet",c.srcSet,c,null),h&&it(a,o,"src",c.src,c,null);return;case"input":$e("invalid",a);var R=x=E=y=null,I=null,W=null;for(h in c)if(c.hasOwnProperty(h)){var ne=c[h];if(ne!=null)switch(h){case"name":y=ne;break;case"type":E=ne;break;case"checked":I=ne;break;case"defaultChecked":W=ne;break;case"value":x=ne;break;case"defaultValue":R=ne;break;case"children":case"dangerouslySetInnerHTML":if(ne!=null)throw Error(r(137,o));break;default:it(a,o,h,ne,c,null)}}k2(a,x,R,I,W,E,y,!1);return;case"select":$e("invalid",a),h=E=x=null;for(y in c)if(c.hasOwnProperty(y)&&(R=c[y],R!=null))switch(y){case"value":x=R;break;case"defaultValue":E=R;break;case"multiple":h=R;default:it(a,o,y,R,c,null)}o=x,c=E,a.multiple=!!h,o!=null?Do(a,!!h,o,!1):c!=null&&Do(a,!!h,c,!0);return;case"textarea":$e("invalid",a),x=y=h=null;for(E in c)if(c.hasOwnProperty(E)&&(R=c[E],R!=null))switch(E){case"value":h=R;break;case"defaultValue":y=R;break;case"children":x=R;break;case"dangerouslySetInnerHTML":if(R!=null)throw Error(r(91));break;default:it(a,o,E,R,c,null)}z2(a,h,y,x);return;case"option":for(I in c)if(c.hasOwnProperty(I)&&(h=c[I],h!=null))switch(I){case"selected":a.selected=h&&typeof h!="function"&&typeof h!="symbol";break;default:it(a,o,I,h,c,null)}return;case"dialog":$e("beforetoggle",a),$e("toggle",a),$e("cancel",a),$e("close",a);break;case"iframe":case"object":$e("load",a);break;case"video":case"audio":for(h=0;h<dc.length;h++)$e(dc[h],a);break;case"image":$e("error",a),$e("load",a);break;case"details":$e("toggle",a);break;case"embed":case"source":case"link":$e("error",a),$e("load",a);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(W in c)if(c.hasOwnProperty(W)&&(h=c[W],h!=null))switch(W){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,o));default:it(a,o,W,h,c,null)}return;default:if(Sm(o)){for(ne in c)c.hasOwnProperty(ne)&&(h=c[ne],h!==void 0&&sv(a,o,ne,h,c,void 0));return}}for(R in c)c.hasOwnProperty(R)&&(h=c[R],h!=null&&it(a,o,R,h,c,null))}function jI(a,o,c,h){switch(o){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var y=null,x=null,E=null,R=null,I=null,W=null,ne=null;for(ee in c){var oe=c[ee];if(c.hasOwnProperty(ee)&&oe!=null)switch(ee){case"checked":break;case"value":break;case"defaultValue":I=oe;default:h.hasOwnProperty(ee)||it(a,o,ee,null,h,oe)}}for(var Q in h){var ee=h[Q];if(oe=c[Q],h.hasOwnProperty(Q)&&(ee!=null||oe!=null))switch(Q){case"type":x=ee;break;case"name":y=ee;break;case"checked":W=ee;break;case"defaultChecked":ne=ee;break;case"value":E=ee;break;case"defaultValue":R=ee;break;case"children":case"dangerouslySetInnerHTML":if(ee!=null)throw Error(r(137,o));break;default:ee!==oe&&it(a,o,Q,ee,h,oe)}}bm(a,E,R,I,W,ne,x,y);return;case"select":ee=E=R=Q=null;for(x in c)if(I=c[x],c.hasOwnProperty(x)&&I!=null)switch(x){case"value":break;case"multiple":ee=I;default:h.hasOwnProperty(x)||it(a,o,x,null,h,I)}for(y in h)if(x=h[y],I=c[y],h.hasOwnProperty(y)&&(x!=null||I!=null))switch(y){case"value":Q=x;break;case"defaultValue":R=x;break;case"multiple":E=x;default:x!==I&&it(a,o,y,x,h,I)}o=R,c=E,h=ee,Q!=null?Do(a,!!c,Q,!1):!!h!=!!c&&(o!=null?Do(a,!!c,o,!0):Do(a,!!c,c?[]:"",!1));return;case"textarea":ee=Q=null;for(R in c)if(y=c[R],c.hasOwnProperty(R)&&y!=null&&!h.hasOwnProperty(R))switch(R){case"value":break;case"children":break;default:it(a,o,R,null,h,y)}for(E in h)if(y=h[E],x=c[E],h.hasOwnProperty(E)&&(y!=null||x!=null))switch(E){case"value":Q=y;break;case"defaultValue":ee=y;break;case"children":break;case"dangerouslySetInnerHTML":if(y!=null)throw Error(r(91));break;default:y!==x&&it(a,o,E,y,h,x)}L2(a,Q,ee);return;case"option":for(var pe in c)if(Q=c[pe],c.hasOwnProperty(pe)&&Q!=null&&!h.hasOwnProperty(pe))switch(pe){case"selected":a.selected=!1;break;default:it(a,o,pe,null,h,Q)}for(I in h)if(Q=h[I],ee=c[I],h.hasOwnProperty(I)&&Q!==ee&&(Q!=null||ee!=null))switch(I){case"selected":a.selected=Q&&typeof Q!="function"&&typeof Q!="symbol";break;default:it(a,o,I,Q,h,ee)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var je in c)Q=c[je],c.hasOwnProperty(je)&&Q!=null&&!h.hasOwnProperty(je)&&it(a,o,je,null,h,Q);for(W in h)if(Q=h[W],ee=c[W],h.hasOwnProperty(W)&&Q!==ee&&(Q!=null||ee!=null))switch(W){case"children":case"dangerouslySetInnerHTML":if(Q!=null)throw Error(r(137,o));break;default:it(a,o,W,Q,h,ee)}return;default:if(Sm(o)){for(var ot in c)Q=c[ot],c.hasOwnProperty(ot)&&Q!==void 0&&!h.hasOwnProperty(ot)&&sv(a,o,ot,void 0,h,Q);for(ne in h)Q=h[ne],ee=c[ne],!h.hasOwnProperty(ne)||Q===ee||Q===void 0&&ee===void 0||sv(a,o,ne,Q,h,ee);return}}for(var K in c)Q=c[K],c.hasOwnProperty(K)&&Q!=null&&!h.hasOwnProperty(K)&&it(a,o,K,null,h,Q);for(oe in h)Q=h[oe],ee=c[oe],!h.hasOwnProperty(oe)||Q===ee||Q==null&&ee==null||it(a,o,oe,Q,h,ee)}function IT(a){switch(a){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function TI(){if(typeof performance.getEntriesByType=="function"){for(var a=0,o=0,c=performance.getEntriesByType("resource"),h=0;h<c.length;h++){var y=c[h],x=y.transferSize,E=y.initiatorType,R=y.duration;if(x&&R&&IT(E)){for(E=0,R=y.responseEnd,h+=1;h<c.length;h++){var I=c[h],W=I.startTime;if(W>R)break;var ne=I.transferSize,oe=I.initiatorType;ne&&IT(oe)&&(I=I.responseEnd,E+=ne*(I<R?1:(R-W)/(I-W)))}if(--h,o+=8*(x+E)/(y.duration/1e3),a++,10<a)break}}if(0<a)return o/a/1e6}return navigator.connection&&(a=navigator.connection.downlink,typeof a=="number")?a:5}var lv=null,cv=null;function cf(a){return a.nodeType===9?a:a.ownerDocument}function qT(a){switch(a){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function VT(a,o){if(a===0)switch(o){case"svg":return 1;case"math":return 2;default:return 0}return a===1&&o==="foreignObject"?0:a}function uv(a,o){return a==="textarea"||a==="noscript"||typeof o.children=="string"||typeof o.children=="number"||typeof o.children=="bigint"||typeof o.dangerouslySetInnerHTML=="object"&&o.dangerouslySetInnerHTML!==null&&o.dangerouslySetInnerHTML.__html!=null}var dv=null;function CI(){var a=window.event;return a&&a.type==="popstate"?a===dv?!1:(dv=a,!0):(dv=null,!1)}var UT=typeof setTimeout=="function"?setTimeout:void 0,EI=typeof clearTimeout=="function"?clearTimeout:void 0,HT=typeof Promise=="function"?Promise:void 0,_I=typeof queueMicrotask=="function"?queueMicrotask:typeof HT<"u"?function(a){return HT.resolve(null).then(a).catch(PI)}:UT;function PI(a){setTimeout(function(){throw a})}function Ja(a){return a==="head"}function FT(a,o){var c=o,h=0;do{var y=c.nextSibling;if(a.removeChild(c),y&&y.nodeType===8)if(c=y.data,c==="/$"||c==="/&"){if(h===0){a.removeChild(y),ds(o);return}h--}else if(c==="$"||c==="$?"||c==="$~"||c==="$!"||c==="&")h++;else if(c==="html")hc(a.ownerDocument.documentElement);else if(c==="head"){c=a.ownerDocument.head,hc(c);for(var x=c.firstChild;x;){var E=x.nextSibling,R=x.nodeName;x[Nl]||R==="SCRIPT"||R==="STYLE"||R==="LINK"&&x.rel.toLowerCase()==="stylesheet"||c.removeChild(x),x=E}}else c==="body"&&hc(a.ownerDocument.body);c=y}while(c);ds(o)}function GT(a,o){var c=a;a=0;do{var h=c.nextSibling;if(c.nodeType===1?o?(c._stashedDisplay=c.style.display,c.style.display="none"):(c.style.display=c._stashedDisplay||"",c.getAttribute("style")===""&&c.removeAttribute("style")):c.nodeType===3&&(o?(c._stashedText=c.nodeValue,c.nodeValue=""):c.nodeValue=c._stashedText||""),h&&h.nodeType===8)if(c=h.data,c==="/$"){if(a===0)break;a--}else c!=="$"&&c!=="$?"&&c!=="$~"&&c!=="$!"||a++;c=h}while(c)}function fv(a){var o=a.firstChild;for(o&&o.nodeType===10&&(o=o.nextSibling);o;){var c=o;switch(o=o.nextSibling,c.nodeName){case"HTML":case"HEAD":case"BODY":fv(c),vm(c);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(c.rel.toLowerCase()==="stylesheet")continue}a.removeChild(c)}}function NI(a,o,c,h){for(;a.nodeType===1;){var y=c;if(a.nodeName.toLowerCase()!==o.toLowerCase()){if(!h&&(a.nodeName!=="INPUT"||a.type!=="hidden"))break}else if(h){if(!a[Nl])switch(o){case"meta":if(!a.hasAttribute("itemprop"))break;return a;case"link":if(x=a.getAttribute("rel"),x==="stylesheet"&&a.hasAttribute("data-precedence"))break;if(x!==y.rel||a.getAttribute("href")!==(y.href==null||y.href===""?null:y.href)||a.getAttribute("crossorigin")!==(y.crossOrigin==null?null:y.crossOrigin)||a.getAttribute("title")!==(y.title==null?null:y.title))break;return a;case"style":if(a.hasAttribute("data-precedence"))break;return a;case"script":if(x=a.getAttribute("src"),(x!==(y.src==null?null:y.src)||a.getAttribute("type")!==(y.type==null?null:y.type)||a.getAttribute("crossorigin")!==(y.crossOrigin==null?null:y.crossOrigin))&&x&&a.hasAttribute("async")&&!a.hasAttribute("itemprop"))break;return a;default:return a}}else if(o==="input"&&a.type==="hidden"){var x=y.name==null?null:""+y.name;if(y.type==="hidden"&&a.getAttribute("name")===x)return a}else return a;if(a=Jn(a.nextSibling),a===null)break}return null}function MI(a,o,c){if(o==="")return null;for(;a.nodeType!==3;)if((a.nodeType!==1||a.nodeName!=="INPUT"||a.type!=="hidden")&&!c||(a=Jn(a.nextSibling),a===null))return null;return a}function KT(a,o){for(;a.nodeType!==8;)if((a.nodeType!==1||a.nodeName!=="INPUT"||a.type!=="hidden")&&!o||(a=Jn(a.nextSibling),a===null))return null;return a}function hv(a){return a.data==="$?"||a.data==="$~"}function pv(a){return a.data==="$!"||a.data==="$?"&&a.ownerDocument.readyState!=="loading"}function DI(a,o){var c=a.ownerDocument;if(a.data==="$~")a._reactRetry=o;else if(a.data!=="$?"||c.readyState!=="loading")o();else{var h=function(){o(),c.removeEventListener("DOMContentLoaded",h)};c.addEventListener("DOMContentLoaded",h),a._reactRetry=h}}function Jn(a){for(;a!=null;a=a.nextSibling){var o=a.nodeType;if(o===1||o===3)break;if(o===8){if(o=a.data,o==="$"||o==="$!"||o==="$?"||o==="$~"||o==="&"||o==="F!"||o==="F")break;if(o==="/$"||o==="/&")return null}}return a}var mv=null;function XT(a){a=a.nextSibling;for(var o=0;a;){if(a.nodeType===8){var c=a.data;if(c==="/$"||c==="/&"){if(o===0)return Jn(a.nextSibling);o--}else c!=="$"&&c!=="$!"&&c!=="$?"&&c!=="$~"&&c!=="&"||o++}a=a.nextSibling}return null}function YT(a){a=a.previousSibling;for(var o=0;a;){if(a.nodeType===8){var c=a.data;if(c==="$"||c==="$!"||c==="$?"||c==="$~"||c==="&"){if(o===0)return a;o--}else c!=="/$"&&c!=="/&"||o++}a=a.previousSibling}return null}function WT(a,o,c){switch(o=cf(c),a){case"html":if(a=o.documentElement,!a)throw Error(r(452));return a;case"head":if(a=o.head,!a)throw Error(r(453));return a;case"body":if(a=o.body,!a)throw Error(r(454));return a;default:throw Error(r(451))}}function hc(a){for(var o=a.attributes;o.length;)a.removeAttributeNode(o[0]);vm(a)}var er=new Map,ZT=new Set;function uf(a){return typeof a.getRootNode=="function"?a.getRootNode():a.nodeType===9?a:a.ownerDocument}var ha=V.d;V.d={f:RI,r:kI,D:LI,C:zI,L:$I,m:BI,X:qI,S:II,M:VI};function RI(){var a=ha.f(),o=ef();return a||o}function kI(a){var o=Po(a);o!==null&&o.tag===5&&o.type==="form"?pj(o):ha.r(a)}var ls=typeof document>"u"?null:document;function QT(a,o,c){var h=ls;if(h&&typeof o=="string"&&o){var y=Gn(o);y='link[rel="'+a+'"][href="'+y+'"]',typeof c=="string"&&(y+='[crossorigin="'+c+'"]'),ZT.has(y)||(ZT.add(y),a={rel:a,crossOrigin:c,href:o},h.querySelector(y)===null&&(o=h.createElement("link"),rn(o,"link",a),Xt(o),h.head.appendChild(o)))}}function LI(a){ha.D(a),QT("dns-prefetch",a,null)}function zI(a,o){ha.C(a,o),QT("preconnect",a,o)}function $I(a,o,c){ha.L(a,o,c);var h=ls;if(h&&a&&o){var y='link[rel="preload"][as="'+Gn(o)+'"]';o==="image"&&c&&c.imageSrcSet?(y+='[imagesrcset="'+Gn(c.imageSrcSet)+'"]',typeof c.imageSizes=="string"&&(y+='[imagesizes="'+Gn(c.imageSizes)+'"]')):y+='[href="'+Gn(a)+'"]';var x=y;switch(o){case"style":x=cs(a);break;case"script":x=us(a)}er.has(x)||(a=m({rel:"preload",href:o==="image"&&c&&c.imageSrcSet?void 0:a,as:o},c),er.set(x,a),h.querySelector(y)!==null||o==="style"&&h.querySelector(pc(x))||o==="script"&&h.querySelector(mc(x))||(o=h.createElement("link"),rn(o,"link",a),Xt(o),h.head.appendChild(o)))}}function BI(a,o){ha.m(a,o);var c=ls;if(c&&a){var h=o&&typeof o.as=="string"?o.as:"script",y='link[rel="modulepreload"][as="'+Gn(h)+'"][href="'+Gn(a)+'"]',x=y;switch(h){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":x=us(a)}if(!er.has(x)&&(a=m({rel:"modulepreload",href:a},o),er.set(x,a),c.querySelector(y)===null)){switch(h){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(c.querySelector(mc(x)))return}h=c.createElement("link"),rn(h,"link",a),Xt(h),c.head.appendChild(h)}}}function II(a,o,c){ha.S(a,o,c);var h=ls;if(h&&a){var y=No(h).hoistableStyles,x=cs(a);o=o||"default";var E=y.get(x);if(!E){var R={loading:0,preload:null};if(E=h.querySelector(pc(x)))R.loading=5;else{a=m({rel:"stylesheet",href:a,"data-precedence":o},c),(c=er.get(x))&&gv(a,c);var I=E=h.createElement("link");Xt(I),rn(I,"link",a),I._p=new Promise(function(W,ne){I.onload=W,I.onerror=ne}),I.addEventListener("load",function(){R.loading|=1}),I.addEventListener("error",function(){R.loading|=2}),R.loading|=4,df(E,o,h)}E={type:"stylesheet",instance:E,count:1,state:R},y.set(x,E)}}}function qI(a,o){ha.X(a,o);var c=ls;if(c&&a){var h=No(c).hoistableScripts,y=us(a),x=h.get(y);x||(x=c.querySelector(mc(y)),x||(a=m({src:a,async:!0},o),(o=er.get(y))&&vv(a,o),x=c.createElement("script"),Xt(x),rn(x,"link",a),c.head.appendChild(x)),x={type:"script",instance:x,count:1,state:null},h.set(y,x))}}function VI(a,o){ha.M(a,o);var c=ls;if(c&&a){var h=No(c).hoistableScripts,y=us(a),x=h.get(y);x||(x=c.querySelector(mc(y)),x||(a=m({src:a,async:!0,type:"module"},o),(o=er.get(y))&&vv(a,o),x=c.createElement("script"),Xt(x),rn(x,"link",a),c.head.appendChild(x)),x={type:"script",instance:x,count:1,state:null},h.set(y,x))}}function JT(a,o,c,h){var y=(y=Se.current)?uf(y):null;if(!y)throw Error(r(446));switch(a){case"meta":case"title":return null;case"style":return typeof c.precedence=="string"&&typeof c.href=="string"?(o=cs(c.href),c=No(y).hoistableStyles,h=c.get(o),h||(h={type:"style",instance:null,count:0,state:null},c.set(o,h)),h):{type:"void",instance:null,count:0,state:null};case"link":if(c.rel==="stylesheet"&&typeof c.href=="string"&&typeof c.precedence=="string"){a=cs(c.href);var x=No(y).hoistableStyles,E=x.get(a);if(E||(y=y.ownerDocument||y,E={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},x.set(a,E),(x=y.querySelector(pc(a)))&&!x._p&&(E.instance=x,E.state.loading=5),er.has(a)||(c={rel:"preload",as:"style",href:c.href,crossOrigin:c.crossOrigin,integrity:c.integrity,media:c.media,hrefLang:c.hrefLang,referrerPolicy:c.referrerPolicy},er.set(a,c),x||UI(y,a,c,E.state))),o&&h===null)throw Error(r(528,""));return E}if(o&&h!==null)throw Error(r(529,""));return null;case"script":return o=c.async,c=c.src,typeof c=="string"&&o&&typeof o!="function"&&typeof o!="symbol"?(o=us(c),c=No(y).hoistableScripts,h=c.get(o),h||(h={type:"script",instance:null,count:0,state:null},c.set(o,h)),h):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,a))}}function cs(a){return'href="'+Gn(a)+'"'}function pc(a){return'link[rel="stylesheet"]['+a+"]"}function eC(a){return m({},a,{"data-precedence":a.precedence,precedence:null})}function UI(a,o,c,h){a.querySelector('link[rel="preload"][as="style"]['+o+"]")?h.loading=1:(o=a.createElement("link"),h.preload=o,o.addEventListener("load",function(){return h.loading|=1}),o.addEventListener("error",function(){return h.loading|=2}),rn(o,"link",c),Xt(o),a.head.appendChild(o))}function us(a){return'[src="'+Gn(a)+'"]'}function mc(a){return"script[async]"+a}function tC(a,o,c){if(o.count++,o.instance===null)switch(o.type){case"style":var h=a.querySelector('style[data-href~="'+Gn(c.href)+'"]');if(h)return o.instance=h,Xt(h),h;var y=m({},c,{"data-href":c.href,"data-precedence":c.precedence,href:null,precedence:null});return h=(a.ownerDocument||a).createElement("style"),Xt(h),rn(h,"style",y),df(h,c.precedence,a),o.instance=h;case"stylesheet":y=cs(c.href);var x=a.querySelector(pc(y));if(x)return o.state.loading|=4,o.instance=x,Xt(x),x;h=eC(c),(y=er.get(y))&&gv(h,y),x=(a.ownerDocument||a).createElement("link"),Xt(x);var E=x;return E._p=new Promise(function(R,I){E.onload=R,E.onerror=I}),rn(x,"link",h),o.state.loading|=4,df(x,c.precedence,a),o.instance=x;case"script":return x=us(c.src),(y=a.querySelector(mc(x)))?(o.instance=y,Xt(y),y):(h=c,(y=er.get(x))&&(h=m({},c),vv(h,y)),a=a.ownerDocument||a,y=a.createElement("script"),Xt(y),rn(y,"link",h),a.head.appendChild(y),o.instance=y);case"void":return null;default:throw Error(r(443,o.type))}else o.type==="stylesheet"&&(o.state.loading&4)===0&&(h=o.instance,o.state.loading|=4,df(h,c.precedence,a));return o.instance}function df(a,o,c){for(var h=c.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),y=h.length?h[h.length-1]:null,x=y,E=0;E<h.length;E++){var R=h[E];if(R.dataset.precedence===o)x=R;else if(x!==y)break}x?x.parentNode.insertBefore(a,x.nextSibling):(o=c.nodeType===9?c.head:c,o.insertBefore(a,o.firstChild))}function gv(a,o){a.crossOrigin==null&&(a.crossOrigin=o.crossOrigin),a.referrerPolicy==null&&(a.referrerPolicy=o.referrerPolicy),a.title==null&&(a.title=o.title)}function vv(a,o){a.crossOrigin==null&&(a.crossOrigin=o.crossOrigin),a.referrerPolicy==null&&(a.referrerPolicy=o.referrerPolicy),a.integrity==null&&(a.integrity=o.integrity)}var ff=null;function nC(a,o,c){if(ff===null){var h=new Map,y=ff=new Map;y.set(c,h)}else y=ff,h=y.get(c),h||(h=new Map,y.set(c,h));if(h.has(a))return h;for(h.set(a,null),c=c.getElementsByTagName(a),y=0;y<c.length;y++){var x=c[y];if(!(x[Nl]||x[Jt]||a==="link"&&x.getAttribute("rel")==="stylesheet")&&x.namespaceURI!=="http://www.w3.org/2000/svg"){var E=x.getAttribute(o)||"";E=a+E;var R=h.get(E);R?R.push(x):h.set(E,[x])}}return h}function rC(a,o,c){a=a.ownerDocument||a,a.head.insertBefore(c,o==="title"?a.querySelector("head > title"):null)}function HI(a,o,c){if(c===1||o.itemProp!=null)return!1;switch(a){case"meta":case"title":return!0;case"style":if(typeof o.precedence!="string"||typeof o.href!="string"||o.href==="")break;return!0;case"link":if(typeof o.rel!="string"||typeof o.href!="string"||o.href===""||o.onLoad||o.onError)break;switch(o.rel){case"stylesheet":return a=o.disabled,typeof o.precedence=="string"&&a==null;default:return!0}case"script":if(o.async&&typeof o.async!="function"&&typeof o.async!="symbol"&&!o.onLoad&&!o.onError&&o.src&&typeof o.src=="string")return!0}return!1}function aC(a){return!(a.type==="stylesheet"&&(a.state.loading&3)===0)}function FI(a,o,c,h){if(c.type==="stylesheet"&&(typeof h.media!="string"||matchMedia(h.media).matches!==!1)&&(c.state.loading&4)===0){if(c.instance===null){var y=cs(h.href),x=o.querySelector(pc(y));if(x){o=x._p,o!==null&&typeof o=="object"&&typeof o.then=="function"&&(a.count++,a=hf.bind(a),o.then(a,a)),c.state.loading|=4,c.instance=x,Xt(x);return}x=o.ownerDocument||o,h=eC(h),(y=er.get(y))&&gv(h,y),x=x.createElement("link"),Xt(x);var E=x;E._p=new Promise(function(R,I){E.onload=R,E.onerror=I}),rn(x,"link",h),c.instance=x}a.stylesheets===null&&(a.stylesheets=new Map),a.stylesheets.set(c,o),(o=c.state.preload)&&(c.state.loading&3)===0&&(a.count++,c=hf.bind(a),o.addEventListener("load",c),o.addEventListener("error",c))}}var yv=0;function GI(a,o){return a.stylesheets&&a.count===0&&mf(a,a.stylesheets),0<a.count||0<a.imgCount?function(c){var h=setTimeout(function(){if(a.stylesheets&&mf(a,a.stylesheets),a.unsuspend){var x=a.unsuspend;a.unsuspend=null,x()}},6e4+o);0<a.imgBytes&&yv===0&&(yv=62500*TI());var y=setTimeout(function(){if(a.waitingForImages=!1,a.count===0&&(a.stylesheets&&mf(a,a.stylesheets),a.unsuspend)){var x=a.unsuspend;a.unsuspend=null,x()}},(a.imgBytes>yv?50:800)+o);return a.unsuspend=c,function(){a.unsuspend=null,clearTimeout(h),clearTimeout(y)}}:null}function hf(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)mf(this,this.stylesheets);else if(this.unsuspend){var a=this.unsuspend;this.unsuspend=null,a()}}}var pf=null;function mf(a,o){a.stylesheets=null,a.unsuspend!==null&&(a.count++,pf=new Map,o.forEach(KI,a),pf=null,hf.call(a))}function KI(a,o){if(!(o.state.loading&4)){var c=pf.get(a);if(c)var h=c.get(null);else{c=new Map,pf.set(a,c);for(var y=a.querySelectorAll("link[data-precedence],style[data-precedence]"),x=0;x<y.length;x++){var E=y[x];(E.nodeName==="LINK"||E.getAttribute("media")!=="not all")&&(c.set(E.dataset.precedence,E),h=E)}h&&c.set(null,h)}y=o.instance,E=y.getAttribute("data-precedence"),x=c.get(E)||h,x===h&&c.set(null,y),c.set(E,y),this.count++,h=hf.bind(this),y.addEventListener("load",h),y.addEventListener("error",h),x?x.parentNode.insertBefore(y,x.nextSibling):(a=a.nodeType===9?a.head:a,a.insertBefore(y,a.firstChild)),o.state.loading|=4}}var gc={$$typeof:T,Provider:null,Consumer:null,_currentValue:F,_currentValue2:F,_threadCount:0};function XI(a,o,c,h,y,x,E,R,I){this.tag=1,this.containerInfo=a,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=hm(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=hm(0),this.hiddenUpdates=hm(null),this.identifierPrefix=h,this.onUncaughtError=y,this.onCaughtError=x,this.onRecoverableError=E,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=I,this.incompleteTransitions=new Map}function iC(a,o,c,h,y,x,E,R,I,W,ne,oe){return a=new XI(a,o,c,E,I,W,ne,oe,R),o=1,x===!0&&(o|=24),x=Nn(3,null,null,o),a.current=x,x.stateNode=a,o=Zm(),o.refCount++,a.pooledCache=o,o.refCount++,x.memoizedState={element:h,isDehydrated:c,cache:o},tg(x),a}function oC(a){return a?(a=qo,a):qo}function sC(a,o,c,h,y,x){y=oC(y),h.context===null?h.context=y:h.pendingContext=y,h=Va(o),h.payload={element:c},x=x===void 0?null:x,x!==null&&(h.callback=x),c=Ua(a,h,o),c!==null&&(On(c,a,o),Xl(c,a,o))}function lC(a,o){if(a=a.memoizedState,a!==null&&a.dehydrated!==null){var c=a.retryLane;a.retryLane=c!==0&&c<o?c:o}}function bv(a,o){lC(a,o),(a=a.alternate)&&lC(a,o)}function cC(a){if(a.tag===13||a.tag===31){var o=Pi(a,67108864);o!==null&&On(o,a,67108864),bv(a,67108864)}}function uC(a){if(a.tag===13||a.tag===31){var o=Ln();o=pm(o);var c=Pi(a,o);c!==null&&On(c,a,o),bv(a,o)}}var gf=!0;function YI(a,o,c,h){var y=L.T;L.T=null;var x=V.p;try{V.p=2,xv(a,o,c,h)}finally{V.p=x,L.T=y}}function WI(a,o,c,h){var y=L.T;L.T=null;var x=V.p;try{V.p=8,xv(a,o,c,h)}finally{V.p=x,L.T=y}}function xv(a,o,c,h){if(gf){var y=Sv(h);if(y===null)ov(a,o,h,vf,c),fC(a,h);else if(QI(y,a,o,c,h))h.stopPropagation();else if(fC(a,h),o&4&&-1<ZI.indexOf(a)){for(;y!==null;){var x=Po(y);if(x!==null)switch(x.tag){case 3:if(x=x.stateNode,x.current.memoizedState.isDehydrated){var E=ji(x.pendingLanes);if(E!==0){var R=x;for(R.pendingLanes|=2,R.entangledLanes|=2;E;){var I=1<<31-_n(E);R.entanglements[1]|=I,E&=~I}Lr(x),(Ye&6)===0&&(Qd=ln()+500,uc(0))}}break;case 31:case 13:R=Pi(x,2),R!==null&&On(R,x,2),ef(),bv(x,2)}if(x=Sv(h),x===null&&ov(a,o,h,vf,c),x===y)break;y=x}y!==null&&h.stopPropagation()}else ov(a,o,h,null,c)}}function Sv(a){return a=Am(a),wv(a)}var vf=null;function wv(a){if(vf=null,a=_o(a),a!==null){var o=s(a);if(o===null)a=null;else{var c=o.tag;if(c===13){if(a=l(o),a!==null)return a;a=null}else if(c===31){if(a=u(o),a!==null)return a;a=null}else if(c===3){if(o.stateNode.current.memoizedState.isDehydrated)return o.tag===3?o.stateNode.containerInfo:null;a=null}else o!==a&&(a=null)}}return vf=a,null}function dC(a){switch(a){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(ad()){case b2:return 2;case x2:return 8;case id:case z$:return 32;case S2:return 268435456;default:return 32}default:return 32}}var Av=!1,ei=null,ti=null,ni=null,vc=new Map,yc=new Map,ri=[],ZI="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function fC(a,o){switch(a){case"focusin":case"focusout":ei=null;break;case"dragenter":case"dragleave":ti=null;break;case"mouseover":case"mouseout":ni=null;break;case"pointerover":case"pointerout":vc.delete(o.pointerId);break;case"gotpointercapture":case"lostpointercapture":yc.delete(o.pointerId)}}function bc(a,o,c,h,y,x){return a===null||a.nativeEvent!==x?(a={blockedOn:o,domEventName:c,eventSystemFlags:h,nativeEvent:x,targetContainers:[y]},o!==null&&(o=Po(o),o!==null&&cC(o)),a):(a.eventSystemFlags|=h,o=a.targetContainers,y!==null&&o.indexOf(y)===-1&&o.push(y),a)}function QI(a,o,c,h,y){switch(o){case"focusin":return ei=bc(ei,a,o,c,h,y),!0;case"dragenter":return ti=bc(ti,a,o,c,h,y),!0;case"mouseover":return ni=bc(ni,a,o,c,h,y),!0;case"pointerover":var x=y.pointerId;return vc.set(x,bc(vc.get(x)||null,a,o,c,h,y)),!0;case"gotpointercapture":return x=y.pointerId,yc.set(x,bc(yc.get(x)||null,a,o,c,h,y)),!0}return!1}function hC(a){var o=_o(a.target);if(o!==null){var c=s(o);if(c!==null){if(o=c.tag,o===13){if(o=l(c),o!==null){a.blockedOn=o,C2(a.priority,function(){uC(c)});return}}else if(o===31){if(o=u(c),o!==null){a.blockedOn=o,C2(a.priority,function(){uC(c)});return}}else if(o===3&&c.stateNode.current.memoizedState.isDehydrated){a.blockedOn=c.tag===3?c.stateNode.containerInfo:null;return}}}a.blockedOn=null}function yf(a){if(a.blockedOn!==null)return!1;for(var o=a.targetContainers;0<o.length;){var c=Sv(a.nativeEvent);if(c===null){c=a.nativeEvent;var h=new c.constructor(c.type,c);wm=h,c.target.dispatchEvent(h),wm=null}else return o=Po(c),o!==null&&cC(o),a.blockedOn=c,!1;o.shift()}return!0}function pC(a,o,c){yf(a)&&c.delete(o)}function JI(){Av=!1,ei!==null&&yf(ei)&&(ei=null),ti!==null&&yf(ti)&&(ti=null),ni!==null&&yf(ni)&&(ni=null),vc.forEach(pC),yc.forEach(pC)}function bf(a,o){a.blockedOn===o&&(a.blockedOn=null,Av||(Av=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,JI)))}var xf=null;function mC(a){xf!==a&&(xf=a,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){xf===a&&(xf=null);for(var o=0;o<a.length;o+=3){var c=a[o],h=a[o+1],y=a[o+2];if(typeof h!="function"){if(wv(h||c)===null)continue;break}var x=Po(c);x!==null&&(a.splice(o,3),o-=3,Sg(x,{pending:!0,data:y,method:c.method,action:h},h,y))}}))}function ds(a){function o(I){return bf(I,a)}ei!==null&&bf(ei,a),ti!==null&&bf(ti,a),ni!==null&&bf(ni,a),vc.forEach(o),yc.forEach(o);for(var c=0;c<ri.length;c++){var h=ri[c];h.blockedOn===a&&(h.blockedOn=null)}for(;0<ri.length&&(c=ri[0],c.blockedOn===null);)hC(c),c.blockedOn===null&&ri.shift();if(c=(a.ownerDocument||a).$$reactFormReplay,c!=null)for(h=0;h<c.length;h+=3){var y=c[h],x=c[h+1],E=y[yn]||null;if(typeof x=="function")E||mC(c);else if(E){var R=null;if(x&&x.hasAttribute("formAction")){if(y=x,E=x[yn]||null)R=E.formAction;else if(wv(y)!==null)continue}else R=E.action;typeof R=="function"?c[h+1]=R:(c.splice(h,3),h-=3),mC(c)}}}function gC(){function a(x){x.canIntercept&&x.info==="react-transition"&&x.intercept({handler:function(){return new Promise(function(E){return y=E})},focusReset:"manual",scroll:"manual"})}function o(){y!==null&&(y(),y=null),h||setTimeout(c,20)}function c(){if(!h&&!navigation.transition){var x=navigation.currentEntry;x&&x.url!=null&&navigation.navigate(x.url,{state:x.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var h=!1,y=null;return navigation.addEventListener("navigate",a),navigation.addEventListener("navigatesuccess",o),navigation.addEventListener("navigateerror",o),setTimeout(c,100),function(){h=!0,navigation.removeEventListener("navigate",a),navigation.removeEventListener("navigatesuccess",o),navigation.removeEventListener("navigateerror",o),y!==null&&(y(),y=null)}}}function Ov(a){this._internalRoot=a}Sf.prototype.render=Ov.prototype.render=function(a){var o=this._internalRoot;if(o===null)throw Error(r(409));var c=o.current,h=Ln();sC(c,h,a,o,null,null)},Sf.prototype.unmount=Ov.prototype.unmount=function(){var a=this._internalRoot;if(a!==null){this._internalRoot=null;var o=a.containerInfo;sC(a.current,2,null,a,null,null),ef(),o[Eo]=null}};function Sf(a){this._internalRoot=a}Sf.prototype.unstable_scheduleHydration=function(a){if(a){var o=T2();a={blockedOn:null,target:a,priority:o};for(var c=0;c<ri.length&&o!==0&&o<ri[c].priority;c++);ri.splice(c,0,a),c===0&&hC(a)}};var vC=t.version;if(vC!=="19.2.1")throw Error(r(527,vC,"19.2.1"));V.findDOMNode=function(a){var o=a._reactInternals;if(o===void 0)throw typeof a.render=="function"?Error(r(188)):(a=Object.keys(a).join(","),Error(r(268,a)));return a=f(o),a=a!==null?p(a):null,a=a===null?null:a.stateNode,a};var e9={bundleType:0,version:"19.2.1",rendererPackageName:"react-dom",currentDispatcherRef:L,reconcilerVersion:"19.2.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var wf=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!wf.isDisabled&&wf.supportsFiber)try{El=wf.inject(e9),En=wf}catch{}}return Sc.createRoot=function(a,o){if(!i(a))throw Error(r(299));var c=!1,h="",y=Oj,x=jj,E=Tj;return o!=null&&(o.unstable_strictMode===!0&&(c=!0),o.identifierPrefix!==void 0&&(h=o.identifierPrefix),o.onUncaughtError!==void 0&&(y=o.onUncaughtError),o.onCaughtError!==void 0&&(x=o.onCaughtError),o.onRecoverableError!==void 0&&(E=o.onRecoverableError)),o=iC(a,1,!1,null,null,c,h,null,y,x,E,gC),a[Eo]=o.current,iv(a),new Ov(o)},Sc.hydrateRoot=function(a,o,c){if(!i(a))throw Error(r(299));var h=!1,y="",x=Oj,E=jj,R=Tj,I=null;return c!=null&&(c.unstable_strictMode===!0&&(h=!0),c.identifierPrefix!==void 0&&(y=c.identifierPrefix),c.onUncaughtError!==void 0&&(x=c.onUncaughtError),c.onCaughtError!==void 0&&(E=c.onCaughtError),c.onRecoverableError!==void 0&&(R=c.onRecoverableError),c.formState!==void 0&&(I=c.formState)),o=iC(a,1,!0,o,c??null,h,y,I,x,E,R,gC),o.context=oC(null),c=o.current,h=Ln(),h=pm(h),y=Va(h),y.callback=null,Ua(c,y,h),c=h,o.current.lanes=c,Pl(o,c),Lr(o),a[Eo]=o.current,iv(a),new Sf(o)},Sc.version="19.2.1",Sc}var CC;function u9(){if(CC)return Tv.exports;CC=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Tv.exports=c9(),Tv.exports}var d9=u9();function f9(e,t){if(e instanceof RegExp)return{keys:!1,pattern:e};var n,r,i,s,l=[],u="",d=e.split("/");for(d[0]||d.shift();i=d.shift();)n=i[0],n==="*"?(l.push(n),u+=i[1]==="?"?"(?:/(.*))?":"/(.*)"):n===":"?(r=i.indexOf("?",1),s=i.indexOf(".",1),l.push(i.substring(1,~r?r:~s?s:i.length)),u+=~r&&!~s?"(?:/([^/]+?))?":"/([^/]+?)",~s&&(u+=(~r?"?":"")+"\\"+i.substring(s))):u+="/"+i;return{keys:l,pattern:new RegExp("^"+u+(t?"(?=$|/)":"/?$"),"i")}}var C=fp();const B=tt(C),fw=n9({__proto__:null,default:B},[C]);var Nv={exports:{}},Mv={};/**
 * @license React
 * use-sync-external-store-shim.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var EC;function h9(){if(EC)return Mv;EC=1;var e=fp();function t(m,v){return m===v&&(m!==0||1/m===1/v)||m!==m&&v!==v}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,i=e.useEffect,s=e.useLayoutEffect,l=e.useDebugValue;function u(m,v){var b=v(),A=r({inst:{value:b,getSnapshot:v}}),S=A[0].inst,w=A[1];return s(function(){S.value=b,S.getSnapshot=v,d(S)&&w({inst:S})},[m,b,v]),i(function(){return d(S)&&w({inst:S}),m(function(){d(S)&&w({inst:S})})},[m]),l(b),b}function d(m){var v=m.getSnapshot;m=m.value;try{var b=v();return!n(m,b)}catch{return!0}}function f(m,v){return v()}var p=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?f:u;return Mv.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:p,Mv}var _C;function p9(){return _C||(_C=1,Nv.exports=h9()),Nv.exports}var m9=p9();const g9=fw.useInsertionEffect,v9=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",y9=v9?C.useLayoutEffect:C.useEffect,b9=g9||y9,m3=e=>{const t=C.useRef([e,(...n)=>t[0](...n)]).current;return b9(()=>{t[0]=e}),t[1]},x9="popstate",hw="pushState",pw="replaceState",S9="hashchange",PC=[x9,hw,pw,S9],w9=e=>{for(const t of PC)addEventListener(t,e);return()=>{for(const t of PC)removeEventListener(t,e)}},g3=(e,t)=>m9.useSyncExternalStore(w9,e,t),A9=()=>location.search,O9=({ssrSearch:e=""}={})=>g3(A9,()=>e),NC=()=>location.pathname,j9=({ssrPath:e}={})=>g3(NC,e?()=>e:NC),T9=(e,{replace:t=!1,state:n=null}={})=>history[t?pw:hw](n,"",e),C9=(e={})=>[j9(e),T9],MC=Symbol.for("wouter_v3");if(typeof history<"u"&&typeof window[MC]>"u"){for(const e of[hw,pw]){const t=history[e];history[e]=function(){const n=t.apply(this,arguments),r=new Event(e);return r.arguments=arguments,dispatchEvent(r),n}}Object.defineProperty(window,MC,{value:!0})}const E9=(e,t)=>t.toLowerCase().indexOf(e.toLowerCase())?"~"+t:t.slice(e.length)||"/",v3=(e="")=>e==="/"?"":e,_9=(e,t)=>e[0]==="~"?e.slice(1):v3(t)+e,P9=(e="",t)=>E9(l1(v3(e)),l1(t)),N9=e=>e[0]==="?"?e.slice(1):e,l1=e=>{try{return decodeURI(e)}catch{return e}},M9=e=>l1(N9(e)),y3={hook:C9,searchHook:O9,parser:f9,base:"",ssrPath:void 0,ssrSearch:void 0,ssrContext:void 0,hrefs:e=>e},b3=C.createContext(y3),bo=()=>C.useContext(b3),x3={},S3=C.createContext(x3),D9=()=>C.useContext(S3),hp=e=>{const[t,n]=e.hook(e);return[P9(e.base,t),m3((r,i)=>n(_9(r,e.base),i))]},Gt=()=>hp(bo()),R9=()=>{const e=bo();return M9(e.searchHook(e))},mw=(e,t,n,r)=>{const{pattern:i,keys:s}=t instanceof RegExp?{keys:!1,pattern:t}:e(t||"*",r),l=i.exec(n)||[],[u,...d]=l;return u!==void 0?[!0,(()=>{const f=s!==!1?Object.fromEntries(s.map((m,v)=>[m,d[v]])):l.groups;let p={...d};return f&&Object.assign(p,f),p})(),...r?[u]:[]]:[!1,null]},k9=e=>mw(bo().parser,e,Gt()[0]),L9=({children:e,...t})=>{const n=bo(),r=t.hook?y3:n;let i=r;const[s,l]=t.ssrPath?.split("?")??[];l&&(t.ssrSearch=l,t.ssrPath=s),t.hrefs=t.hrefs??t.hook?.hrefs;let u=C.useRef({}),d=u.current,f=d;for(let p in r){const m=p==="base"?r[p]+(t[p]||""):t[p]||r[p];d===f&&m!==f[p]&&(u.current=f={...f}),f[p]=m,(m!==r[p]||m!==i[p])&&(i=f)}return C.createElement(b3.Provider,{value:i,children:e})},DC=({children:e,component:t},n)=>t?C.createElement(t,{params:n}):typeof e=="function"?e(n):e,z9=e=>{let t=C.useRef(x3);const n=t.current;return t.current=Object.keys(e).length!==Object.keys(n).length||Object.entries(e).some(([r,i])=>i!==n[r])?e:n},Lt=({path:e,nest:t,match:n,...r})=>{const i=bo(),[s]=hp(i),[l,u,d]=n??mw(i.parser,e,s,t),f=z9({...D9(),...u});if(!l)return null;const p=d?C.createElement(L9,{base:d},DC(r,f)):DC(r,f);return C.createElement(S3.Provider,{value:f,children:p})},Ps=C.forwardRef((e,t)=>{const n=bo(),[r,i]=hp(n),{to:s="",href:l=s,onClick:u,asChild:d,children:f,className:p,replace:m,state:v,...b}=e,A=m3(w=>{w.ctrlKey||w.metaKey||w.altKey||w.shiftKey||w.button!==0||(u?.(w),w.defaultPrevented||(w.preventDefault(),i(l,e)))}),S=n.hrefs(l[0]==="~"?l.slice(1):n.base+l,n);return d&&C.isValidElement(f)?C.cloneElement(f,{onClick:A,href:S}):C.createElement("a",{...b,onClick:A,href:S,className:p?.call?p(r===l):p,children:f,ref:t})}),c1=e=>Array.isArray(e)?e.flatMap(t=>c1(t&&t.type===C.Fragment?t.props.children:t)):[e],$9=({children:e,location:t})=>{const n=bo(),[r]=hp(n);typeof window<"u"&&(window.__WOUTER_ROUTES__||(window.__WOUTER_ROUTES__=[]),c1(e).forEach(s=>{if(C.isValidElement(s)&&s.props.path){const l=s.props.path;window.__WOUTER_ROUTES__.includes(l)||window.__WOUTER_ROUTES__.push(l)}}));for(const i of c1(e)){let s=0;if(C.isValidElement(i)&&(s=mw(n.parser,i.props.path,t||r,i.props.nest))[0])return C.cloneElement(i,{match:s})}return null};/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const B9=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),w3=(...e)=>e.filter((t,n,r)=>!!t&&r.indexOf(t)===n).join(" ");/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */var I9={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"};/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const q9=C.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i="",children:s,iconNode:l,...u},d)=>C.createElement("svg",{ref:d,...I9,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:w3("lucide",i),...u},[...l.map(([f,p])=>C.createElement(f,p)),...Array.isArray(s)?s:[s]]));/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Oe=(e,t)=>{const n=C.forwardRef(({className:r,...i},s)=>C.createElement(q9,{ref:s,iconNode:t,className:w3(`lucide-${B9(e)}`,r),...i}));return n.displayName=`${e}`,n};/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const mr=Oe("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const A3=Oe("Banknote",[["rect",{width:"20",height:"12",x:"2",y:"6",rx:"2",key:"9lu3g6"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"M6 12h.01M18 12h.01",key:"113zkx"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const V9=Oe("BellRing",[["path",{d:"M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9",key:"1qo2s2"}],["path",{d:"M10.3 21a1.94 1.94 0 0 0 3.4 0",key:"qgo35s"}],["path",{d:"M4 2C2.8 3.7 2 5.7 2 8",key:"tap9e0"}],["path",{d:"M22 8c0-2.3-.8-4.3-2-6",key:"5bb3ad"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const gw=Oe("Bike",[["circle",{cx:"18.5",cy:"17.5",r:"3.5",key:"15x4ox"}],["circle",{cx:"5.5",cy:"17.5",r:"3.5",key:"1noe27"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["path",{d:"M12 17.5V14l-3-3 4-3 2 3h2",key:"1npguv"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const U9=Oe("Calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const u1=Oe("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const O3=Oe("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const pp=Oe("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const H9=Oe("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const F9=Oe("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const G9=Oe("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const xo=Oe("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const K9=Oe("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const d1=Oe("CreditCard",[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const j3=Oe("DollarSign",[["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",key:"1b0p4s"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const X9=Oe("Filter",[["polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3",key:"1yg77f"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Y9=Oe("Heart",[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const T3=Oe("House",[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"1d0kgt"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const C3=Oe("LayoutGrid",[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const E3=Oe("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const _3=Oe("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const vw=Oe("LogOut",[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const fr=Oe("MapPin",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const W9=Oe("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const yw=Oe("MessageCircle",[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",key:"vv11sd"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const P3=Oe("Minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const N3=Oe("Navigation",[["polygon",{points:"3 11 22 2 13 21 11 13 3 11",key:"1ltx0t"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const bw=Oe("Package",[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["path",{d:"m3.3 7 7.703 4.734a2 2 0 0 0 1.994 0L20.7 7",key:"yx3hmr"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const ih=Oe("Pen",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Zc=Oe("Phone",[["path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",key:"foiqr5"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const bi=Oe("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const M3=Oe("Power",[["path",{d:"M12 2v10",key:"mnfbl"}],["path",{d:"M18.4 6.6a9 9 0 1 1-12.77.04",key:"obofu9"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const D3=Oe("Printer",[["path",{d:"M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2",key:"143wyd"}],["path",{d:"M6 9V3a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v6",key:"1itne7"}],["rect",{x:"6",y:"14",width:"12",height:"8",rx:"1",key:"1ue0tg"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const xw=Oe("QrCode",[["rect",{width:"5",height:"5",x:"3",y:"3",rx:"1",key:"1tu5fj"}],["rect",{width:"5",height:"5",x:"16",y:"3",rx:"1",key:"1v8r4q"}],["rect",{width:"5",height:"5",x:"3",y:"16",rx:"1",key:"1x03jg"}],["path",{d:"M21 16h-3a2 2 0 0 0-2 2v3",key:"177gqh"}],["path",{d:"M21 21v.01",key:"ents32"}],["path",{d:"M12 7v3a2 2 0 0 1-2 2H7",key:"8crl2c"}],["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M12 3h.01",key:"n36tog"}],["path",{d:"M12 16v.01",key:"133mhm"}],["path",{d:"M16 12h1",key:"1slzba"}],["path",{d:"M21 12v.01",key:"1lwtk9"}],["path",{d:"M12 21v-1",key:"1880an"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Iu=Oe("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Z9=Oe("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const R3=Oe("Share2",[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Q9=Oe("ShieldCheck",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const hi=Oe("ShoppingBag",[["path",{d:"M6 2 3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4Z",key:"hou9p0"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M16 10a4 4 0 0 1-8 0",key:"1ltviw"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const J9=Oe("ShoppingCart",[["circle",{cx:"8",cy:"21",r:"1",key:"jimo8o"}],["circle",{cx:"19",cy:"21",r:"1",key:"13723u"}],["path",{d:"M2.05 2.05h2l2.66 12.42a2 2 0 0 0 2 1.58h9.78a2 2 0 0 0 1.95-1.57l1.65-7.43H5.12",key:"9zh506"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const qu=Oe("Star",[["polygon",{points:"12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2",key:"8f66p6"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const eq=Oe("Store",[["path",{d:"m2 7 4.41-4.41A2 2 0 0 1 7.83 2h8.34a2 2 0 0 1 1.42.59L22 7",key:"ztvudi"}],["path",{d:"M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8",key:"1b2hhj"}],["path",{d:"M15 22v-4a2 2 0 0 0-2-2h-2a2 2 0 0 0-2 2v4",key:"2ebpfo"}],["path",{d:"M2 7h20",key:"1fcdvo"}],["path",{d:"M22 7v3a2 2 0 0 1-2 2a2.7 2.7 0 0 1-1.59-.63.7.7 0 0 0-.82 0A2.7 2.7 0 0 1 16 12a2.7 2.7 0 0 1-1.59-.63.7.7 0 0 0-.82 0A2.7 2.7 0 0 1 12 12a2.7 2.7 0 0 1-1.59-.63.7.7 0 0 0-.82 0A2.7 2.7 0 0 1 8 12a2.7 2.7 0 0 1-1.59-.63.7.7 0 0 0-.82 0A2.7 2.7 0 0 1 4 12a2 2 0 0 1-2-2V7",key:"6c3vgh"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const tq=Oe("Ticket",[["path",{d:"M2 9a3 3 0 0 1 0 6v2a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-2a3 3 0 0 1 0-6V7a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2Z",key:"qn84l0"}],["path",{d:"M13 5v2",key:"dyzc3o"}],["path",{d:"M13 17v2",key:"1ont0d"}],["path",{d:"M13 11v2",key:"1wjjxi"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const mp=Oe("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const nq=Oe("TrendingUp",[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Ls=Oe("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const rq=Oe("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const k3=Oe("UtensilsCrossed",[["path",{d:"m16 2-2.3 2.3a3 3 0 0 0 0 4.2l1.8 1.8a3 3 0 0 0 4.2 0L22 8",key:"n7qcjb"}],["path",{d:"M15 15 3.3 3.3a4.2 4.2 0 0 0 0 6l7.3 7.3c.7.7 2 .7 2.8 0L15 15Zm0 0 7 7",key:"d0u48b"}],["path",{d:"m2.1 21.8 6.4-6.3",key:"yn04lh"}],["path",{d:"m19 5-7 7",key:"194lzd"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const L3=Oe("Utensils",[["path",{d:"M3 2v7c0 1.1.9 2 2 2h4a2 2 0 0 0 2-2V2",key:"cjf0a3"}],["path",{d:"M7 2v20",key:"1473qp"}],["path",{d:"M21 15V2a5 5 0 0 0-5 5v6c0 1.1.9 2 2 2h3Zm0 0v7",key:"j28e5"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const aq=Oe("Volume2",[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["path",{d:"M16 9a5 5 0 0 1 0 6",key:"1q6k2b"}],["path",{d:"M19.364 18.364a9 9 0 0 0 0-12.728",key:"ijwkga"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const iq=Oe("VolumeX",[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["line",{x1:"22",x2:"16",y1:"9",y2:"15",key:"1ewh16"}],["line",{x1:"16",x2:"22",y1:"9",y2:"15",key:"5ykzw1"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const oq=Oe("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function z3(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=z3(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Me(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=z3(e))&&(r&&(r+=" "),r+=t);return r}const Sw="-",sq=e=>{const t=cq(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:l=>{const u=l.split(Sw);return u[0]===""&&u.length!==1&&u.shift(),$3(u,t)||lq(l)},getConflictingClassGroupIds:(l,u)=>{const d=n[l]||[];return u&&r[l]?[...d,...r[l]]:d}}},$3=(e,t)=>{if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),i=r?$3(e.slice(1),r):void 0;if(i)return i;if(t.validators.length===0)return;const s=e.join(Sw);return t.validators.find(({validator:l})=>l(s))?.classGroupId},RC=/^\[(.+)\]$/,lq=e=>{if(RC.test(e)){const t=RC.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},cq=e=>{const{theme:t,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(const i in n)f1(n[i],r,i,t);return r},f1=(e,t,n,r)=>{e.forEach(i=>{if(typeof i=="string"){const s=i===""?t:kC(t,i);s.classGroupId=n;return}if(typeof i=="function"){if(uq(i)){f1(i(r),t,n,r);return}t.validators.push({validator:i,classGroupId:n});return}Object.entries(i).forEach(([s,l])=>{f1(l,kC(t,s),n,r)})})},kC=(e,t)=>{let n=e;return t.split(Sw).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},uq=e=>e.isThemeGetter,dq=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const i=(s,l)=>{n.set(s,l),t++,t>e&&(t=0,r=n,n=new Map)};return{get(s){let l=n.get(s);if(l!==void 0)return l;if((l=r.get(s))!==void 0)return i(s,l),l},set(s,l){n.has(s)?n.set(s,l):i(s,l)}}},h1="!",p1=":",fq=p1.length,hq=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=i=>{const s=[];let l=0,u=0,d=0,f;for(let A=0;A<i.length;A++){let S=i[A];if(l===0&&u===0){if(S===p1){s.push(i.slice(d,A)),d=A+fq;continue}if(S==="/"){f=A;continue}}S==="["?l++:S==="]"?l--:S==="("?u++:S===")"&&u--}const p=s.length===0?i:i.substring(d),m=pq(p),v=m!==p,b=f&&f>d?f-d:void 0;return{modifiers:s,hasImportantModifier:v,baseClassName:m,maybePostfixModifierPosition:b}};if(t){const i=t+p1,s=r;r=l=>l.startsWith(i)?s(l.substring(i.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:l,maybePostfixModifierPosition:void 0}}if(n){const i=r;r=s=>n({className:s,parseClassName:i})}return r},pq=e=>e.endsWith(h1)?e.substring(0,e.length-1):e.startsWith(h1)?e.substring(1):e,mq=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(r=>[r,!0]));return r=>{if(r.length<=1)return r;const i=[];let s=[];return r.forEach(l=>{l[0]==="["||t[l]?(i.push(...s.sort(),l),s=[]):s.push(l)}),i.push(...s.sort()),i}},gq=e=>({cache:dq(e.cacheSize),parseClassName:hq(e),sortModifiers:mq(e),...sq(e)}),vq=/\s+/,yq=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:s}=t,l=[],u=e.trim().split(vq);let d="";for(let f=u.length-1;f>=0;f-=1){const p=u[f],{isExternal:m,modifiers:v,hasImportantModifier:b,baseClassName:A,maybePostfixModifierPosition:S}=n(p);if(m){d=p+(d.length>0?" "+d:d);continue}let w=!!S,O=r(w?A.substring(0,S):A);if(!O){if(!w){d=p+(d.length>0?" "+d:d);continue}if(O=r(A),!O){d=p+(d.length>0?" "+d:d);continue}w=!1}const _=s(v).join(":"),T=b?_+h1:_,M=T+O;if(l.includes(M))continue;l.push(M);const j=i(O,w);for(let P=0;P<j.length;++P){const N=j[P];l.push(T+N)}d=p+(d.length>0?" "+d:d)}return d};function bq(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=B3(t))&&(r&&(r+=" "),r+=n);return r}const B3=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=B3(e[r]))&&(n&&(n+=" "),n+=t);return n};function xq(e,...t){let n,r,i,s=l;function l(d){const f=t.reduce((p,m)=>m(p),e());return n=gq(f),r=n.cache.get,i=n.cache.set,s=u,u(d)}function u(d){const f=r(d);if(f)return f;const p=yq(d,n);return i(d,p),p}return function(){return s(bq.apply(null,arguments))}}const qt=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},I3=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,q3=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Sq=/^\d+\/\d+$/,wq=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Aq=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Oq=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,jq=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Tq=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,fs=e=>Sq.test(e),Le=e=>!!e&&!Number.isNaN(Number(e)),ii=e=>!!e&&Number.isInteger(Number(e)),Dv=e=>e.endsWith("%")&&Le(e.slice(0,-1)),pa=e=>wq.test(e),Cq=()=>!0,Eq=e=>Aq.test(e)&&!Oq.test(e),V3=()=>!1,_q=e=>jq.test(e),Pq=e=>Tq.test(e),Nq=e=>!me(e)&&!ge(e),Mq=e=>hl(e,F3,V3),me=e=>I3.test(e),Ui=e=>hl(e,G3,Eq),Rv=e=>hl(e,zq,Le),LC=e=>hl(e,U3,V3),Dq=e=>hl(e,H3,Pq),Of=e=>hl(e,K3,_q),ge=e=>q3.test(e),wc=e=>pl(e,G3),Rq=e=>pl(e,$q),zC=e=>pl(e,U3),kq=e=>pl(e,F3),Lq=e=>pl(e,H3),jf=e=>pl(e,K3,!0),hl=(e,t,n)=>{const r=I3.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},pl=(e,t,n=!1)=>{const r=q3.exec(e);return r?r[1]?t(r[1]):n:!1},U3=e=>e==="position"||e==="percentage",H3=e=>e==="image"||e==="url",F3=e=>e==="length"||e==="size"||e==="bg-size",G3=e=>e==="length",zq=e=>e==="number",$q=e=>e==="family-name",K3=e=>e==="shadow",Bq=()=>{const e=qt("color"),t=qt("font"),n=qt("text"),r=qt("font-weight"),i=qt("tracking"),s=qt("leading"),l=qt("breakpoint"),u=qt("container"),d=qt("spacing"),f=qt("radius"),p=qt("shadow"),m=qt("inset-shadow"),v=qt("text-shadow"),b=qt("drop-shadow"),A=qt("blur"),S=qt("perspective"),w=qt("aspect"),O=qt("ease"),_=qt("animate"),T=()=>["auto","avoid","all","avoid-page","page","left","right","column"],M=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],j=()=>[...M(),ge,me],P=()=>["auto","hidden","clip","visible","scroll"],N=()=>["auto","contain","none"],D=()=>[ge,me,d],k=()=>[fs,"full","auto",...D()],U=()=>[ii,"none","subgrid",ge,me],$=()=>["auto",{span:["full",ii,ge,me]},ii,ge,me],H=()=>[ii,"auto",ge,me],X=()=>["auto","min","max","fr",ge,me],J=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],Z=()=>["start","end","center","stretch","center-safe","end-safe"],L=()=>["auto",...D()],V=()=>[fs,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...D()],F=()=>[e,ge,me],ie=()=>[...M(),zC,LC,{position:[ge,me]}],ue=()=>["no-repeat",{repeat:["","x","y","space","round"]}],z=()=>["auto","cover","contain",kq,Mq,{size:[ge,me]}],G=()=>[Dv,wc,Ui],te=()=>["","none","full",f,ge,me],le=()=>["",Le,wc,Ui],fe=()=>["solid","dashed","dotted","double"],Se=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ye=()=>[Le,Dv,zC,LC],Ve=()=>["","none",A,ge,me],ce=()=>["none",Le,ge,me],we=()=>["none",Le,ge,me],Ce=()=>[Le,ge,me],se=()=>[fs,"full",...D()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[pa],breakpoint:[pa],color:[Cq],container:[pa],"drop-shadow":[pa],ease:["in","out","in-out"],font:[Nq],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[pa],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[pa],shadow:[pa],spacing:["px",Le],text:[pa],"text-shadow":[pa],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",fs,me,ge,w]}],container:["container"],columns:[{columns:[Le,me,ge,u]}],"break-after":[{"break-after":T()}],"break-before":[{"break-before":T()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:j()}],overflow:[{overflow:P()}],"overflow-x":[{"overflow-x":P()}],"overflow-y":[{"overflow-y":P()}],overscroll:[{overscroll:N()}],"overscroll-x":[{"overscroll-x":N()}],"overscroll-y":[{"overscroll-y":N()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:k()}],"inset-x":[{"inset-x":k()}],"inset-y":[{"inset-y":k()}],start:[{start:k()}],end:[{end:k()}],top:[{top:k()}],right:[{right:k()}],bottom:[{bottom:k()}],left:[{left:k()}],visibility:["visible","invisible","collapse"],z:[{z:[ii,"auto",ge,me]}],basis:[{basis:[fs,"full","auto",u,...D()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Le,fs,"auto","initial","none",me]}],grow:[{grow:["",Le,ge,me]}],shrink:[{shrink:["",Le,ge,me]}],order:[{order:[ii,"first","last","none",ge,me]}],"grid-cols":[{"grid-cols":U()}],"col-start-end":[{col:$()}],"col-start":[{"col-start":H()}],"col-end":[{"col-end":H()}],"grid-rows":[{"grid-rows":U()}],"row-start-end":[{row:$()}],"row-start":[{"row-start":H()}],"row-end":[{"row-end":H()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":X()}],"auto-rows":[{"auto-rows":X()}],gap:[{gap:D()}],"gap-x":[{"gap-x":D()}],"gap-y":[{"gap-y":D()}],"justify-content":[{justify:[...J(),"normal"]}],"justify-items":[{"justify-items":[...Z(),"normal"]}],"justify-self":[{"justify-self":["auto",...Z()]}],"align-content":[{content:["normal",...J()]}],"align-items":[{items:[...Z(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...Z(),{baseline:["","last"]}]}],"place-content":[{"place-content":J()}],"place-items":[{"place-items":[...Z(),"baseline"]}],"place-self":[{"place-self":["auto",...Z()]}],p:[{p:D()}],px:[{px:D()}],py:[{py:D()}],ps:[{ps:D()}],pe:[{pe:D()}],pt:[{pt:D()}],pr:[{pr:D()}],pb:[{pb:D()}],pl:[{pl:D()}],m:[{m:L()}],mx:[{mx:L()}],my:[{my:L()}],ms:[{ms:L()}],me:[{me:L()}],mt:[{mt:L()}],mr:[{mr:L()}],mb:[{mb:L()}],ml:[{ml:L()}],"space-x":[{"space-x":D()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":D()}],"space-y-reverse":["space-y-reverse"],size:[{size:V()}],w:[{w:[u,"screen",...V()]}],"min-w":[{"min-w":[u,"screen","none",...V()]}],"max-w":[{"max-w":[u,"screen","none","prose",{screen:[l]},...V()]}],h:[{h:["screen","lh",...V()]}],"min-h":[{"min-h":["screen","lh","none",...V()]}],"max-h":[{"max-h":["screen","lh",...V()]}],"font-size":[{text:["base",n,wc,Ui]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,ge,Rv]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Dv,me]}],"font-family":[{font:[Rq,me,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[i,ge,me]}],"line-clamp":[{"line-clamp":[Le,"none",ge,Rv]}],leading:[{leading:[s,...D()]}],"list-image":[{"list-image":["none",ge,me]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ge,me]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:F()}],"text-color":[{text:F()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...fe(),"wavy"]}],"text-decoration-thickness":[{decoration:[Le,"from-font","auto",ge,Ui]}],"text-decoration-color":[{decoration:F()}],"underline-offset":[{"underline-offset":[Le,"auto",ge,me]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:D()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ge,me]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ge,me]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:ie()}],"bg-repeat":[{bg:ue()}],"bg-size":[{bg:z()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},ii,ge,me],radial:["",ge,me],conic:[ii,ge,me]},Lq,Dq]}],"bg-color":[{bg:F()}],"gradient-from-pos":[{from:G()}],"gradient-via-pos":[{via:G()}],"gradient-to-pos":[{to:G()}],"gradient-from":[{from:F()}],"gradient-via":[{via:F()}],"gradient-to":[{to:F()}],rounded:[{rounded:te()}],"rounded-s":[{"rounded-s":te()}],"rounded-e":[{"rounded-e":te()}],"rounded-t":[{"rounded-t":te()}],"rounded-r":[{"rounded-r":te()}],"rounded-b":[{"rounded-b":te()}],"rounded-l":[{"rounded-l":te()}],"rounded-ss":[{"rounded-ss":te()}],"rounded-se":[{"rounded-se":te()}],"rounded-ee":[{"rounded-ee":te()}],"rounded-es":[{"rounded-es":te()}],"rounded-tl":[{"rounded-tl":te()}],"rounded-tr":[{"rounded-tr":te()}],"rounded-br":[{"rounded-br":te()}],"rounded-bl":[{"rounded-bl":te()}],"border-w":[{border:le()}],"border-w-x":[{"border-x":le()}],"border-w-y":[{"border-y":le()}],"border-w-s":[{"border-s":le()}],"border-w-e":[{"border-e":le()}],"border-w-t":[{"border-t":le()}],"border-w-r":[{"border-r":le()}],"border-w-b":[{"border-b":le()}],"border-w-l":[{"border-l":le()}],"divide-x":[{"divide-x":le()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":le()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...fe(),"hidden","none"]}],"divide-style":[{divide:[...fe(),"hidden","none"]}],"border-color":[{border:F()}],"border-color-x":[{"border-x":F()}],"border-color-y":[{"border-y":F()}],"border-color-s":[{"border-s":F()}],"border-color-e":[{"border-e":F()}],"border-color-t":[{"border-t":F()}],"border-color-r":[{"border-r":F()}],"border-color-b":[{"border-b":F()}],"border-color-l":[{"border-l":F()}],"divide-color":[{divide:F()}],"outline-style":[{outline:[...fe(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Le,ge,me]}],"outline-w":[{outline:["",Le,wc,Ui]}],"outline-color":[{outline:F()}],shadow:[{shadow:["","none",p,jf,Of]}],"shadow-color":[{shadow:F()}],"inset-shadow":[{"inset-shadow":["none",m,jf,Of]}],"inset-shadow-color":[{"inset-shadow":F()}],"ring-w":[{ring:le()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:F()}],"ring-offset-w":[{"ring-offset":[Le,Ui]}],"ring-offset-color":[{"ring-offset":F()}],"inset-ring-w":[{"inset-ring":le()}],"inset-ring-color":[{"inset-ring":F()}],"text-shadow":[{"text-shadow":["none",v,jf,Of]}],"text-shadow-color":[{"text-shadow":F()}],opacity:[{opacity:[Le,ge,me]}],"mix-blend":[{"mix-blend":[...Se(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Se()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Le]}],"mask-image-linear-from-pos":[{"mask-linear-from":ye()}],"mask-image-linear-to-pos":[{"mask-linear-to":ye()}],"mask-image-linear-from-color":[{"mask-linear-from":F()}],"mask-image-linear-to-color":[{"mask-linear-to":F()}],"mask-image-t-from-pos":[{"mask-t-from":ye()}],"mask-image-t-to-pos":[{"mask-t-to":ye()}],"mask-image-t-from-color":[{"mask-t-from":F()}],"mask-image-t-to-color":[{"mask-t-to":F()}],"mask-image-r-from-pos":[{"mask-r-from":ye()}],"mask-image-r-to-pos":[{"mask-r-to":ye()}],"mask-image-r-from-color":[{"mask-r-from":F()}],"mask-image-r-to-color":[{"mask-r-to":F()}],"mask-image-b-from-pos":[{"mask-b-from":ye()}],"mask-image-b-to-pos":[{"mask-b-to":ye()}],"mask-image-b-from-color":[{"mask-b-from":F()}],"mask-image-b-to-color":[{"mask-b-to":F()}],"mask-image-l-from-pos":[{"mask-l-from":ye()}],"mask-image-l-to-pos":[{"mask-l-to":ye()}],"mask-image-l-from-color":[{"mask-l-from":F()}],"mask-image-l-to-color":[{"mask-l-to":F()}],"mask-image-x-from-pos":[{"mask-x-from":ye()}],"mask-image-x-to-pos":[{"mask-x-to":ye()}],"mask-image-x-from-color":[{"mask-x-from":F()}],"mask-image-x-to-color":[{"mask-x-to":F()}],"mask-image-y-from-pos":[{"mask-y-from":ye()}],"mask-image-y-to-pos":[{"mask-y-to":ye()}],"mask-image-y-from-color":[{"mask-y-from":F()}],"mask-image-y-to-color":[{"mask-y-to":F()}],"mask-image-radial":[{"mask-radial":[ge,me]}],"mask-image-radial-from-pos":[{"mask-radial-from":ye()}],"mask-image-radial-to-pos":[{"mask-radial-to":ye()}],"mask-image-radial-from-color":[{"mask-radial-from":F()}],"mask-image-radial-to-color":[{"mask-radial-to":F()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":M()}],"mask-image-conic-pos":[{"mask-conic":[Le]}],"mask-image-conic-from-pos":[{"mask-conic-from":ye()}],"mask-image-conic-to-pos":[{"mask-conic-to":ye()}],"mask-image-conic-from-color":[{"mask-conic-from":F()}],"mask-image-conic-to-color":[{"mask-conic-to":F()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:ie()}],"mask-repeat":[{mask:ue()}],"mask-size":[{mask:z()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ge,me]}],filter:[{filter:["","none",ge,me]}],blur:[{blur:Ve()}],brightness:[{brightness:[Le,ge,me]}],contrast:[{contrast:[Le,ge,me]}],"drop-shadow":[{"drop-shadow":["","none",b,jf,Of]}],"drop-shadow-color":[{"drop-shadow":F()}],grayscale:[{grayscale:["",Le,ge,me]}],"hue-rotate":[{"hue-rotate":[Le,ge,me]}],invert:[{invert:["",Le,ge,me]}],saturate:[{saturate:[Le,ge,me]}],sepia:[{sepia:["",Le,ge,me]}],"backdrop-filter":[{"backdrop-filter":["","none",ge,me]}],"backdrop-blur":[{"backdrop-blur":Ve()}],"backdrop-brightness":[{"backdrop-brightness":[Le,ge,me]}],"backdrop-contrast":[{"backdrop-contrast":[Le,ge,me]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Le,ge,me]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Le,ge,me]}],"backdrop-invert":[{"backdrop-invert":["",Le,ge,me]}],"backdrop-opacity":[{"backdrop-opacity":[Le,ge,me]}],"backdrop-saturate":[{"backdrop-saturate":[Le,ge,me]}],"backdrop-sepia":[{"backdrop-sepia":["",Le,ge,me]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":D()}],"border-spacing-x":[{"border-spacing-x":D()}],"border-spacing-y":[{"border-spacing-y":D()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ge,me]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Le,"initial",ge,me]}],ease:[{ease:["linear","initial",O,ge,me]}],delay:[{delay:[Le,ge,me]}],animate:[{animate:["none",_,ge,me]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[S,ge,me]}],"perspective-origin":[{"perspective-origin":j()}],rotate:[{rotate:ce()}],"rotate-x":[{"rotate-x":ce()}],"rotate-y":[{"rotate-y":ce()}],"rotate-z":[{"rotate-z":ce()}],scale:[{scale:we()}],"scale-x":[{"scale-x":we()}],"scale-y":[{"scale-y":we()}],"scale-z":[{"scale-z":we()}],"scale-3d":["scale-3d"],skew:[{skew:Ce()}],"skew-x":[{"skew-x":Ce()}],"skew-y":[{"skew-y":Ce()}],transform:[{transform:[ge,me,"","none","gpu","cpu"]}],"transform-origin":[{origin:j()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:se()}],"translate-x":[{"translate-x":se()}],"translate-y":[{"translate-y":se()}],"translate-z":[{"translate-z":se()}],"translate-none":["translate-none"],accent:[{accent:F()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:F()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ge,me]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":D()}],"scroll-mx":[{"scroll-mx":D()}],"scroll-my":[{"scroll-my":D()}],"scroll-ms":[{"scroll-ms":D()}],"scroll-me":[{"scroll-me":D()}],"scroll-mt":[{"scroll-mt":D()}],"scroll-mr":[{"scroll-mr":D()}],"scroll-mb":[{"scroll-mb":D()}],"scroll-ml":[{"scroll-ml":D()}],"scroll-p":[{"scroll-p":D()}],"scroll-px":[{"scroll-px":D()}],"scroll-py":[{"scroll-py":D()}],"scroll-ps":[{"scroll-ps":D()}],"scroll-pe":[{"scroll-pe":D()}],"scroll-pt":[{"scroll-pt":D()}],"scroll-pr":[{"scroll-pr":D()}],"scroll-pb":[{"scroll-pb":D()}],"scroll-pl":[{"scroll-pl":D()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ge,me]}],fill:[{fill:["none",...F()]}],"stroke-w":[{stroke:[Le,wc,Ui,Rv]}],stroke:[{stroke:["none",...F()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},Iq=xq(Bq);function We(...e){return Iq(Me(e))}function So({children:e,showBottomNav:t=!0}){const[n]=Gt(),r=[{icon:T3,label:"Início",path:"/"},{icon:W9,label:"Cardápio",path:"/menu"},{icon:hi,label:"Carrinho",path:"/cart"},{icon:Ls,label:"Perfil",path:"/profile"},{icon:Q9,label:"Admin",path:"/admin/login"}];return g.jsxs("div",{"data-loc":"client/src/components/MobileLayout.tsx:22",className:"min-h-screen bg-background flex flex-col max-w-md mx-auto shadow-2xl overflow-hidden relative border-x border-border/50",children:[g.jsx("div",{"data-loc":"client/src/components/MobileLayout.tsx:23",className:"flex-1 overflow-y-auto pb-20 scrollbar-hide",children:e}),t&&g.jsx("nav",{"data-loc":"client/src/components/MobileLayout.tsx:28",className:"fixed bottom-0 left-0 right-0 bg-background/80 backdrop-blur-md border-t border-border/40 pb-safe pt-2 px-6 z-50 max-w-md mx-auto",children:g.jsx("div",{"data-loc":"client/src/components/MobileLayout.tsx:29",className:"flex justify-between items-center h-16",children:r.map(i=>{const s=n===i.path||i.path==="/admin/login"&&n.startsWith("/admin");return g.jsx(Ps,{"data-loc":"client/src/components/MobileLayout.tsx:33",href:i.path,children:g.jsxs("div",{"data-loc":"client/src/components/MobileLayout.tsx:34",className:We("flex flex-col items-center justify-center w-14 h-full transition-all duration-300 cursor-pointer relative",s?"text-primary -translate-y-1":"text-muted-foreground hover:text-primary/70"),children:[g.jsx(i.icon,{"data-loc":"client/src/components/MobileLayout.tsx:38",size:22,strokeWidth:s?2.5:2,className:We("mb-1 transition-transform",s&&"scale-110")}),g.jsx("span",{"data-loc":"client/src/components/MobileLayout.tsx:43",className:"text-[9px] font-medium tracking-wide",children:i.label}),s&&g.jsx("span",{"data-loc":"client/src/components/MobileLayout.tsx:45",className:"absolute -bottom-1 w-1 h-1 bg-primary rounded-full"})]})},i.path)})})})]})}function qq({slides:e,onCTAClick:t}){const[n,r]=C.useState(0),[i,s]=C.useState(!0);C.useEffect(()=>{if(!i||e.length===0)return;const p=setInterval(()=>{r(m=>(m+1)%e.length)},5e3);return()=>clearInterval(p)},[i,e.length]);const l=p=>{r(p%e.length),s(!1),setTimeout(()=>s(!0),1e4)},u=()=>{l(n+1)},d=()=>{l(n-1+e.length)};if(e.length===0)return null;const f=e[n];return g.jsx("section",{"data-loc":"client/src/components/RotatingBanner.tsx:51",className:"px-6 mb-8",children:g.jsxs("div",{"data-loc":"client/src/components/RotatingBanner.tsx:52",className:"relative h-48 rounded-3xl overflow-hidden shadow-lg group",children:[g.jsx("img",{"data-loc":"client/src/components/RotatingBanner.tsx:54",src:f.image,alt:f.title,className:"w-full h-full object-cover transition-transform duration-700 group-hover:scale-105"}),g.jsxs("div",{"data-loc":"client/src/components/RotatingBanner.tsx:61",className:"absolute inset-0 bg-gradient-to-t from-black/80 via-black/20 to-transparent flex flex-col justify-end p-6",children:[g.jsx("div",{"data-loc":"client/src/components/RotatingBanner.tsx:62",className:"mb-2 inline-block bg-orange-500 text-white px-3 py-1 rounded-full text-xs font-bold w-fit",children:"🔥 Promoção"}),g.jsx("h2",{"data-loc":"client/src/components/RotatingBanner.tsx:65",className:"text-white text-2xl font-bold leading-tight mb-1",children:f.title}),g.jsx("p",{"data-loc":"client/src/components/RotatingBanner.tsx:68",className:"text-white/90 text-sm font-medium mb-3",children:f.subtitle}),g.jsxs("div",{"data-loc":"client/src/components/RotatingBanner.tsx:71",className:"flex items-center justify-between",children:[g.jsx("p",{"data-loc":"client/src/components/RotatingBanner.tsx:72",className:"text-white/90 text-sm font-medium",children:f.price}),g.jsx("button",{"data-loc":"client/src/components/RotatingBanner.tsx:73",onClick:()=>t?.(f.id),className:"rounded-full bg-white text-black hover:bg-white/90 h-8 px-4 text-xs font-bold transition-all active:scale-95",children:f.cta})]})]}),e.length>1&&g.jsxs(g.Fragment,{children:[g.jsx("button",{"data-loc":"client/src/components/RotatingBanner.tsx:85",onClick:d,className:"absolute left-4 top-1/2 -translate-y-1/2 w-10 h-10 rounded-full bg-white/20 hover:bg-white/40 flex items-center justify-center transition-all backdrop-blur-sm","aria-label":"Slide anterior",children:g.jsx(O3,{"data-loc":"client/src/components/RotatingBanner.tsx:90",size:20,className:"text-white"})}),g.jsx("button",{"data-loc":"client/src/components/RotatingBanner.tsx:92",onClick:u,className:"absolute right-4 top-1/2 -translate-y-1/2 w-10 h-10 rounded-full bg-white/20 hover:bg-white/40 flex items-center justify-center transition-all backdrop-blur-sm","aria-label":"Próximo slide",children:g.jsx(pp,{"data-loc":"client/src/components/RotatingBanner.tsx:97",size:20,className:"text-white"})})]}),e.length>1&&g.jsx("div",{"data-loc":"client/src/components/RotatingBanner.tsx:104",className:"absolute bottom-4 left-1/2 -translate-x-1/2 flex gap-2",children:e.map((p,m)=>g.jsx("button",{"data-loc":"client/src/components/RotatingBanner.tsx:106",onClick:()=>l(m),className:`w-2 h-2 rounded-full transition-all ${m===n?"bg-white w-6":"bg-white/50 hover:bg-white/75"}`,"aria-label":`Ir para slide ${m+1}`},m))})]})})}function et(e,t,{checkForDefaultPrevented:n=!0}={}){return function(i){if(e?.(i),n===!1||!i.defaultPrevented)return t?.(i)}}function $C(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function X3(...e){return t=>{let n=!1;const r=e.map(i=>{const s=$C(i,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let i=0;i<r.length;i++){const s=r[i];typeof s=="function"?s():$C(e[i],null)}}}}function At(...e){return C.useCallback(X3(...e),e)}function Vq(e,t){const n=C.createContext(t),r=s=>{const{children:l,...u}=s,d=C.useMemo(()=>u,Object.values(u));return g.jsx(n.Provider,{value:d,children:l})};r.displayName=e+"Provider";function i(s){const l=C.useContext(n);if(l)return l;if(t!==void 0)return t;throw new Error(`\`${s}\` must be used within \`${e}\``)}return[r,i]}function Ea(e,t=[]){let n=[];function r(s,l){const u=C.createContext(l),d=n.length;n=[...n,l];const f=m=>{const{scope:v,children:b,...A}=m,S=v?.[e]?.[d]||u,w=C.useMemo(()=>A,Object.values(A));return g.jsx(S.Provider,{value:w,children:b})};f.displayName=s+"Provider";function p(m,v){const b=v?.[e]?.[d]||u,A=C.useContext(b);if(A)return A;if(l!==void 0)return l;throw new Error(`\`${m}\` must be used within \`${s}\``)}return[f,p]}const i=()=>{const s=n.map(l=>C.createContext(l));return function(u){const d=u?.[e]||s;return C.useMemo(()=>({[`__scope${e}`]:{...u,[e]:d}}),[u,d])}};return i.scopeName=e,[r,Uq(i,...t)]}function Uq(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(s){const l=r.reduce((u,{useScope:d,scopeName:f})=>{const m=d(s)[`__scope${f}`];return{...u,...m}},{});return C.useMemo(()=>({[`__scope${t.scopeName}`]:l}),[l])}};return n.scopeName=t.scopeName,n}var uo=globalThis?.document?C.useLayoutEffect:()=>{},Hq=fw[" useId ".trim().toString()]||(()=>{}),Fq=0;function $c(e){const[t,n]=C.useState(Hq());return uo(()=>{n(r=>r??String(Fq++))},[e]),e||(t?`radix-${t}`:"")}var Gq=fw[" useInsertionEffect ".trim().toString()]||uo;function ml({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[i,s,l]=Kq({defaultProp:t,onChange:n}),u=e!==void 0,d=u?e:i;{const p=C.useRef(e!==void 0);C.useEffect(()=>{const m=p.current;m!==u&&console.warn(`${r} is changing from ${m?"controlled":"uncontrolled"} to ${u?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),p.current=u},[u,r])}const f=C.useCallback(p=>{if(u){const m=Xq(p)?p(e):p;m!==e&&l.current?.(m)}else s(p)},[u,e,s,l]);return[d,f]}function Kq({defaultProp:e,onChange:t}){const[n,r]=C.useState(e),i=C.useRef(n),s=C.useRef(t);return Gq(()=>{s.current=t},[t]),C.useEffect(()=>{i.current!==n&&(s.current?.(n),i.current=n)},[n,i]),[n,r,s]}function Xq(e){return typeof e=="function"}var Y3=p3();const Yq=tt(Y3);function Qc(e){const t=Wq(e),n=C.forwardRef((r,i)=>{const{children:s,...l}=r,u=C.Children.toArray(s),d=u.find(Qq);if(d){const f=d.props.children,p=u.map(m=>m===d?C.Children.count(f)>1?C.Children.only(null):C.isValidElement(f)?f.props.children:null:m);return g.jsx(t,{...l,ref:i,children:C.isValidElement(f)?C.cloneElement(f,void 0,p):null})}return g.jsx(t,{...l,ref:i,children:s})});return n.displayName=`${e}.Slot`,n}var W3=Qc("Slot");function Wq(e){const t=C.forwardRef((n,r)=>{const{children:i,...s}=n;if(C.isValidElement(i)){const l=e7(i),u=Jq(s,i.props);return i.type!==C.Fragment&&(u.ref=r?X3(r,l):l),C.cloneElement(i,u)}return C.Children.count(i)>1?C.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Zq=Symbol("radix.slottable");function Qq(e){return C.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Zq}function Jq(e,t){const n={...t};for(const r in t){const i=e[r],s=t[r];/^on[A-Z]/.test(r)?i&&s?n[r]=(...u)=>{const d=s(...u);return i(...u),d}:i&&(n[r]=i):r==="style"?n[r]={...i,...s}:r==="className"&&(n[r]=[i,s].filter(Boolean).join(" "))}return{...e,...n}}function e7(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var t7=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ze=t7.reduce((e,t)=>{const n=Qc(`Primitive.${t}`),r=C.forwardRef((i,s)=>{const{asChild:l,...u}=i,d=l?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),g.jsx(d,{...u,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function n7(e,t){e&&Y3.flushSync(()=>e.dispatchEvent(t))}function qn(e){const t=C.useRef(e);return C.useEffect(()=>{t.current=e}),C.useMemo(()=>(...n)=>t.current?.(...n),[])}function r7(e,t=globalThis?.document){const n=qn(e);C.useEffect(()=>{const r=i=>{i.key==="Escape"&&n(i)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var a7="DismissableLayer",m1="dismissableLayer.update",i7="dismissableLayer.pointerDownOutside",o7="dismissableLayer.focusOutside",BC,Z3=C.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Q3=C.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:s,onInteractOutside:l,onDismiss:u,...d}=e,f=C.useContext(Z3),[p,m]=C.useState(null),v=p?.ownerDocument??globalThis?.document,[,b]=C.useState({}),A=At(t,N=>m(N)),S=Array.from(f.layers),[w]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),O=S.indexOf(w),_=p?S.indexOf(p):-1,T=f.layersWithOutsidePointerEventsDisabled.size>0,M=_>=O,j=c7(N=>{const D=N.target,k=[...f.branches].some(U=>U.contains(D));!M||k||(i?.(N),l?.(N),N.defaultPrevented||u?.())},v),P=u7(N=>{const D=N.target;[...f.branches].some(U=>U.contains(D))||(s?.(N),l?.(N),N.defaultPrevented||u?.())},v);return r7(N=>{_===f.layers.size-1&&(r?.(N),!N.defaultPrevented&&u&&(N.preventDefault(),u()))},v),C.useEffect(()=>{if(p)return n&&(f.layersWithOutsidePointerEventsDisabled.size===0&&(BC=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(p)),f.layers.add(p),IC(),()=>{n&&f.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=BC)}},[p,v,n,f]),C.useEffect(()=>()=>{p&&(f.layers.delete(p),f.layersWithOutsidePointerEventsDisabled.delete(p),IC())},[p,f]),C.useEffect(()=>{const N=()=>b({});return document.addEventListener(m1,N),()=>document.removeEventListener(m1,N)},[]),g.jsx(Ze.div,{...d,ref:A,style:{pointerEvents:T?M?"auto":"none":void 0,...e.style},onFocusCapture:et(e.onFocusCapture,P.onFocusCapture),onBlurCapture:et(e.onBlurCapture,P.onBlurCapture),onPointerDownCapture:et(e.onPointerDownCapture,j.onPointerDownCapture)})});Q3.displayName=a7;var s7="DismissableLayerBranch",l7=C.forwardRef((e,t)=>{const n=C.useContext(Z3),r=C.useRef(null),i=At(t,r);return C.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),g.jsx(Ze.div,{...e,ref:i})});l7.displayName=s7;function c7(e,t=globalThis?.document){const n=qn(e),r=C.useRef(!1),i=C.useRef(()=>{});return C.useEffect(()=>{const s=u=>{if(u.target&&!r.current){let d=function(){J3(i7,n,f,{discrete:!0})};const f={originalEvent:u};u.pointerType==="touch"?(t.removeEventListener("click",i.current),i.current=d,t.addEventListener("click",i.current,{once:!0})):d()}else t.removeEventListener("click",i.current);r.current=!1},l=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(l),t.removeEventListener("pointerdown",s),t.removeEventListener("click",i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function u7(e,t=globalThis?.document){const n=qn(e),r=C.useRef(!1);return C.useEffect(()=>{const i=s=>{s.target&&!r.current&&J3(o7,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",i),()=>t.removeEventListener("focusin",i)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function IC(){const e=new CustomEvent(m1);document.dispatchEvent(e)}function J3(e,t,n,{discrete:r}){const i=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?n7(i,s):i.dispatchEvent(s)}var kv="focusScope.autoFocusOnMount",Lv="focusScope.autoFocusOnUnmount",qC={bubbles:!1,cancelable:!0},d7="FocusScope",e4=C.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:s,...l}=e,[u,d]=C.useState(null),f=qn(i),p=qn(s),m=C.useRef(null),v=At(t,S=>d(S)),b=C.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;C.useEffect(()=>{if(r){let S=function(T){if(b.paused||!u)return;const M=T.target;u.contains(M)?m.current=M:li(m.current,{select:!0})},w=function(T){if(b.paused||!u)return;const M=T.relatedTarget;M!==null&&(u.contains(M)||li(m.current,{select:!0}))},O=function(T){if(document.activeElement===document.body)for(const j of T)j.removedNodes.length>0&&li(u)};document.addEventListener("focusin",S),document.addEventListener("focusout",w);const _=new MutationObserver(O);return u&&_.observe(u,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",S),document.removeEventListener("focusout",w),_.disconnect()}}},[r,u,b.paused]),C.useEffect(()=>{if(u){UC.add(b);const S=document.activeElement;if(!u.contains(S)){const O=new CustomEvent(kv,qC);u.addEventListener(kv,f),u.dispatchEvent(O),O.defaultPrevented||(f7(v7(t4(u)),{select:!0}),document.activeElement===S&&li(u))}return()=>{u.removeEventListener(kv,f),setTimeout(()=>{const O=new CustomEvent(Lv,qC);u.addEventListener(Lv,p),u.dispatchEvent(O),O.defaultPrevented||li(S??document.body,{select:!0}),u.removeEventListener(Lv,p),UC.remove(b)},0)}}},[u,f,p,b]);const A=C.useCallback(S=>{if(!n&&!r||b.paused)return;const w=S.key==="Tab"&&!S.altKey&&!S.ctrlKey&&!S.metaKey,O=document.activeElement;if(w&&O){const _=S.currentTarget,[T,M]=h7(_);T&&M?!S.shiftKey&&O===M?(S.preventDefault(),n&&li(T,{select:!0})):S.shiftKey&&O===T&&(S.preventDefault(),n&&li(M,{select:!0})):O===_&&S.preventDefault()}},[n,r,b.paused]);return g.jsx(Ze.div,{tabIndex:-1,...l,ref:v,onKeyDown:A})});e4.displayName=d7;function f7(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(li(r,{select:t}),document.activeElement!==n)return}function h7(e){const t=t4(e),n=VC(t,e),r=VC(t.reverse(),e);return[n,r]}function t4(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const i=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||i?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function VC(e,t){for(const n of e)if(!p7(n,{upTo:t}))return n}function p7(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function m7(e){return e instanceof HTMLInputElement&&"select"in e}function li(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&m7(e)&&t&&e.select()}}var UC=g7();function g7(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=HC(e,t),e.unshift(t)},remove(t){e=HC(e,t),e[0]?.resume()}}}function HC(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function v7(e){return e.filter(t=>t.tagName!=="A")}var y7="Portal",n4=C.forwardRef((e,t)=>{const{container:n,...r}=e,[i,s]=C.useState(!1);uo(()=>s(!0),[]);const l=n||i&&globalThis?.document?.body;return l?Yq.createPortal(g.jsx(Ze.div,{...r,ref:t}),l):null});n4.displayName=y7;function b7(e,t){return C.useReducer((n,r)=>t[n][r]??n,e)}var _r=e=>{const{present:t,children:n}=e,r=x7(t),i=typeof n=="function"?n({present:r.isPresent}):C.Children.only(n),s=At(r.ref,S7(i));return typeof n=="function"||r.isPresent?C.cloneElement(i,{ref:s}):null};_r.displayName="Presence";function x7(e){const[t,n]=C.useState(),r=C.useRef(null),i=C.useRef(e),s=C.useRef("none"),l=e?"mounted":"unmounted",[u,d]=b7(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return C.useEffect(()=>{const f=Tf(r.current);s.current=u==="mounted"?f:"none"},[u]),uo(()=>{const f=r.current,p=i.current;if(p!==e){const v=s.current,b=Tf(f);e?d("MOUNT"):b==="none"||f?.display==="none"?d("UNMOUNT"):d(p&&v!==b?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,d]),uo(()=>{if(t){let f;const p=t.ownerDocument.defaultView??window,m=b=>{const S=Tf(r.current).includes(CSS.escape(b.animationName));if(b.target===t&&S&&(d("ANIMATION_END"),!i.current)){const w=t.style.animationFillMode;t.style.animationFillMode="forwards",f=p.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=w)})}},v=b=>{b.target===t&&(s.current=Tf(r.current))};return t.addEventListener("animationstart",v),t.addEventListener("animationcancel",m),t.addEventListener("animationend",m),()=>{p.clearTimeout(f),t.removeEventListener("animationstart",v),t.removeEventListener("animationcancel",m),t.removeEventListener("animationend",m)}}else d("ANIMATION_END")},[t,d]),{isPresent:["mounted","unmountSuspended"].includes(u),ref:C.useCallback(f=>{r.current=f?getComputedStyle(f):null,n(f)},[])}}function Tf(e){return e?.animationName||"none"}function S7(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var zv=0;function w7(){C.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??FC()),document.body.insertAdjacentElement("beforeend",e[1]??FC()),zv++,()=>{zv===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),zv--}},[])}function FC(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var zr=function(){return zr=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},zr.apply(this,arguments)};function r4(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function A7(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,s;r<i;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))}var Zf="right-scroll-bar-position",Qf="width-before-scroll-bar",O7="with-scroll-bars-hidden",j7="--removed-body-scroll-bar-size";function $v(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function T7(e,t){var n=C.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var i=n.value;i!==r&&(n.value=r,n.callback(r,i))}}}})[0];return n.callback=t,n.facade}var C7=typeof window<"u"?C.useLayoutEffect:C.useEffect,GC=new WeakMap;function E7(e,t){var n=T7(null,function(r){return e.forEach(function(i){return $v(i,r)})});return C7(function(){var r=GC.get(n);if(r){var i=new Set(r),s=new Set(e),l=n.current;i.forEach(function(u){s.has(u)||$v(u,null)}),s.forEach(function(u){i.has(u)||$v(u,l)})}GC.set(n,e)},[e]),n}function _7(e){return e}function P7(e,t){t===void 0&&(t=_7);var n=[],r=!1,i={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(s){var l=t(s,r);return n.push(l),function(){n=n.filter(function(u){return u!==l})}},assignSyncMedium:function(s){for(r=!0;n.length;){var l=n;n=[],l.forEach(s)}n={push:function(u){return s(u)},filter:function(){return n}}},assignMedium:function(s){r=!0;var l=[];if(n.length){var u=n;n=[],u.forEach(s),l=n}var d=function(){var p=l;l=[],p.forEach(s)},f=function(){return Promise.resolve().then(d)};f(),n={push:function(p){l.push(p),f()},filter:function(p){return l=l.filter(p),n}}}};return i}function N7(e){e===void 0&&(e={});var t=P7(null);return t.options=zr({async:!0,ssr:!1},e),t}var a4=function(e){var t=e.sideCar,n=r4(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return C.createElement(r,zr({},n))};a4.isSideCarExport=!0;function M7(e,t){return e.useMedium(t),a4}var i4=N7(),Bv=function(){},gp=C.forwardRef(function(e,t){var n=C.useRef(null),r=C.useState({onScrollCapture:Bv,onWheelCapture:Bv,onTouchMoveCapture:Bv}),i=r[0],s=r[1],l=e.forwardProps,u=e.children,d=e.className,f=e.removeScrollBar,p=e.enabled,m=e.shards,v=e.sideCar,b=e.noRelative,A=e.noIsolation,S=e.inert,w=e.allowPinchZoom,O=e.as,_=O===void 0?"div":O,T=e.gapMode,M=r4(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),j=v,P=E7([n,t]),N=zr(zr({},M),i);return C.createElement(C.Fragment,null,p&&C.createElement(j,{sideCar:i4,removeScrollBar:f,shards:m,noRelative:b,noIsolation:A,inert:S,setCallbacks:s,allowPinchZoom:!!w,lockRef:n,gapMode:T}),l?C.cloneElement(C.Children.only(u),zr(zr({},N),{ref:P})):C.createElement(_,zr({},N,{className:d,ref:P}),u))});gp.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};gp.classNames={fullWidth:Qf,zeroRight:Zf};var D7=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function R7(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=D7();return t&&e.setAttribute("nonce",t),e}function k7(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function L7(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var z7=function(){var e=0,t=null;return{add:function(n){e==0&&(t=R7())&&(k7(t,n),L7(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},$7=function(){var e=z7();return function(t,n){C.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},o4=function(){var e=$7(),t=function(n){var r=n.styles,i=n.dynamic;return e(r,i),null};return t},B7={left:0,top:0,right:0,gap:0},Iv=function(e){return parseInt(e||"",10)||0},I7=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],i=t[e==="padding"?"paddingRight":"marginRight"];return[Iv(n),Iv(r),Iv(i)]},q7=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return B7;var t=I7(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},V7=o4(),Ns="data-scroll-locked",U7=function(e,t,n,r){var i=e.left,s=e.top,l=e.right,u=e.gap;return n===void 0&&(n="margin"),`
  .`.concat(O7,` {
   overflow: hidden `).concat(r,`;
   padding-right: `).concat(u,"px ").concat(r,`;
  }
  body[`).concat(Ns,`] {
    overflow: hidden `).concat(r,`;
    overscroll-behavior: contain;
    `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
    padding-left: `.concat(i,`px;
    padding-top: `).concat(s,`px;
    padding-right: `).concat(l,`px;
    margin-left:0;
    margin-top:0;
    margin-right: `).concat(u,"px ").concat(r,`;
    `),n==="padding"&&"padding-right: ".concat(u,"px ").concat(r,";")].filter(Boolean).join(""),`
  }
  
  .`).concat(Zf,` {
    right: `).concat(u,"px ").concat(r,`;
  }
  
  .`).concat(Qf,` {
    margin-right: `).concat(u,"px ").concat(r,`;
  }
  
  .`).concat(Zf," .").concat(Zf,` {
    right: 0 `).concat(r,`;
  }
  
  .`).concat(Qf," .").concat(Qf,` {
    margin-right: 0 `).concat(r,`;
  }
  
  body[`).concat(Ns,`] {
    `).concat(j7,": ").concat(u,`px;
  }
`)},KC=function(){var e=parseInt(document.body.getAttribute(Ns)||"0",10);return isFinite(e)?e:0},H7=function(){C.useEffect(function(){return document.body.setAttribute(Ns,(KC()+1).toString()),function(){var e=KC()-1;e<=0?document.body.removeAttribute(Ns):document.body.setAttribute(Ns,e.toString())}},[])},F7=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?"margin":r;H7();var s=C.useMemo(function(){return q7(i)},[i]);return C.createElement(V7,{styles:U7(s,!t,i,n?"":"!important")})},g1=!1;if(typeof window<"u")try{var Cf=Object.defineProperty({},"passive",{get:function(){return g1=!0,!0}});window.addEventListener("test",Cf,Cf),window.removeEventListener("test",Cf,Cf)}catch{g1=!1}var hs=g1?{passive:!1}:!1,G7=function(e){return e.tagName==="TEXTAREA"},s4=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!G7(e)&&n[t]==="visible")},K7=function(e){return s4(e,"overflowY")},X7=function(e){return s4(e,"overflowX")},XC=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var i=l4(e,r);if(i){var s=c4(e,r),l=s[1],u=s[2];if(l>u)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Y7=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},W7=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},l4=function(e,t){return e==="v"?K7(t):X7(t)},c4=function(e,t){return e==="v"?Y7(t):W7(t)},Z7=function(e,t){return e==="h"&&t==="rtl"?-1:1},Q7=function(e,t,n,r,i){var s=Z7(e,window.getComputedStyle(t).direction),l=s*r,u=n.target,d=t.contains(u),f=!1,p=l>0,m=0,v=0;do{if(!u)break;var b=c4(e,u),A=b[0],S=b[1],w=b[2],O=S-w-s*A;(A||O)&&l4(e,u)&&(m+=O,v+=A);var _=u.parentNode;u=_&&_.nodeType===Node.DOCUMENT_FRAGMENT_NODE?_.host:_}while(!d&&u!==document.body||d&&(t.contains(u)||t===u));return(p&&Math.abs(m)<1||!p&&Math.abs(v)<1)&&(f=!0),f},Ef=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},YC=function(e){return[e.deltaX,e.deltaY]},WC=function(e){return e&&"current"in e?e.current:e},J7=function(e,t){return e[0]===t[0]&&e[1]===t[1]},eV=function(e){return`
  .block-interactivity-`.concat(e,` {pointer-events: none;}
  .allow-interactivity-`).concat(e,` {pointer-events: all;}
`)},tV=0,ps=[];function nV(e){var t=C.useRef([]),n=C.useRef([0,0]),r=C.useRef(),i=C.useState(tV++)[0],s=C.useState(o4)[0],l=C.useRef(e);C.useEffect(function(){l.current=e},[e]),C.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var S=A7([e.lockRef.current],(e.shards||[]).map(WC),!0).filter(Boolean);return S.forEach(function(w){return w.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),S.forEach(function(w){return w.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var u=C.useCallback(function(S,w){if("touches"in S&&S.touches.length===2||S.type==="wheel"&&S.ctrlKey)return!l.current.allowPinchZoom;var O=Ef(S),_=n.current,T="deltaX"in S?S.deltaX:_[0]-O[0],M="deltaY"in S?S.deltaY:_[1]-O[1],j,P=S.target,N=Math.abs(T)>Math.abs(M)?"h":"v";if("touches"in S&&N==="h"&&P.type==="range")return!1;var D=XC(N,P);if(!D)return!0;if(D?j=N:(j=N==="v"?"h":"v",D=XC(N,P)),!D)return!1;if(!r.current&&"changedTouches"in S&&(T||M)&&(r.current=j),!j)return!0;var k=r.current||j;return Q7(k,w,S,k==="h"?T:M)},[]),d=C.useCallback(function(S){var w=S;if(!(!ps.length||ps[ps.length-1]!==s)){var O="deltaY"in w?YC(w):Ef(w),_=t.current.filter(function(j){return j.name===w.type&&(j.target===w.target||w.target===j.shadowParent)&&J7(j.delta,O)})[0];if(_&&_.should){w.cancelable&&w.preventDefault();return}if(!_){var T=(l.current.shards||[]).map(WC).filter(Boolean).filter(function(j){return j.contains(w.target)}),M=T.length>0?u(w,T[0]):!l.current.noIsolation;M&&w.cancelable&&w.preventDefault()}}},[]),f=C.useCallback(function(S,w,O,_){var T={name:S,delta:w,target:O,should:_,shadowParent:rV(O)};t.current.push(T),setTimeout(function(){t.current=t.current.filter(function(M){return M!==T})},1)},[]),p=C.useCallback(function(S){n.current=Ef(S),r.current=void 0},[]),m=C.useCallback(function(S){f(S.type,YC(S),S.target,u(S,e.lockRef.current))},[]),v=C.useCallback(function(S){f(S.type,Ef(S),S.target,u(S,e.lockRef.current))},[]);C.useEffect(function(){return ps.push(s),e.setCallbacks({onScrollCapture:m,onWheelCapture:m,onTouchMoveCapture:v}),document.addEventListener("wheel",d,hs),document.addEventListener("touchmove",d,hs),document.addEventListener("touchstart",p,hs),function(){ps=ps.filter(function(S){return S!==s}),document.removeEventListener("wheel",d,hs),document.removeEventListener("touchmove",d,hs),document.removeEventListener("touchstart",p,hs)}},[]);var b=e.removeScrollBar,A=e.inert;return C.createElement(C.Fragment,null,A?C.createElement(s,{styles:eV(i)}):null,b?C.createElement(F7,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function rV(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const aV=M7(i4,nV);var u4=C.forwardRef(function(e,t){return C.createElement(gp,zr({},e,{ref:t,sideCar:aV}))});u4.classNames=gp.classNames;var iV=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},ms=new WeakMap,_f=new WeakMap,Pf={},qv=0,d4=function(e){return e&&(e.host||d4(e.parentNode))},oV=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=d4(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},sV=function(e,t,n,r){var i=oV(t,Array.isArray(e)?e:[e]);Pf[n]||(Pf[n]=new WeakMap);var s=Pf[n],l=[],u=new Set,d=new Set(i),f=function(m){!m||u.has(m)||(u.add(m),f(m.parentNode))};i.forEach(f);var p=function(m){!m||d.has(m)||Array.prototype.forEach.call(m.children,function(v){if(u.has(v))p(v);else try{var b=v.getAttribute(r),A=b!==null&&b!=="false",S=(ms.get(v)||0)+1,w=(s.get(v)||0)+1;ms.set(v,S),s.set(v,w),l.push(v),S===1&&A&&_f.set(v,!0),w===1&&v.setAttribute(n,"true"),A||v.setAttribute(r,"true")}catch(O){console.error("aria-hidden: cannot operate on ",v,O)}})};return p(t),u.clear(),qv++,function(){l.forEach(function(m){var v=ms.get(m)-1,b=s.get(m)-1;ms.set(m,v),s.set(m,b),v||(_f.has(m)||m.removeAttribute(r),_f.delete(m)),b||m.removeAttribute(n)}),qv--,qv||(ms=new WeakMap,ms=new WeakMap,_f=new WeakMap,Pf={})}},lV=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),i=iV(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live], script"))),sV(r,i,n,"aria-hidden")):function(){return null}},vp="Dialog",[f4]=Ea(vp),[cV,Pr]=f4(vp),h4=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:i,onOpenChange:s,modal:l=!0}=e,u=C.useRef(null),d=C.useRef(null),[f,p]=ml({prop:r,defaultProp:i??!1,onChange:s,caller:vp});return g.jsx(cV,{scope:t,triggerRef:u,contentRef:d,contentId:$c(),titleId:$c(),descriptionId:$c(),open:f,onOpenChange:p,onOpenToggle:C.useCallback(()=>p(m=>!m),[p]),modal:l,children:n})};h4.displayName=vp;var p4="DialogTrigger",uV=C.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=Pr(p4,n),s=At(t,i.triggerRef);return g.jsx(Ze.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":Ow(i.open),...r,ref:s,onClick:et(e.onClick,i.onOpenToggle)})});uV.displayName=p4;var ww="DialogPortal",[dV,m4]=f4(ww,{forceMount:void 0}),g4=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:i}=e,s=Pr(ww,t);return g.jsx(dV,{scope:t,forceMount:n,children:C.Children.map(r,l=>g.jsx(_r,{present:n||s.open,children:g.jsx(n4,{asChild:!0,container:i,children:l})}))})};g4.displayName=ww;var oh="DialogOverlay",v4=C.forwardRef((e,t)=>{const n=m4(oh,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,s=Pr(oh,e.__scopeDialog);return s.modal?g.jsx(_r,{present:r||s.open,children:g.jsx(hV,{...i,ref:t})}):null});v4.displayName=oh;var fV=Qc("DialogOverlay.RemoveScroll"),hV=C.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=Pr(oh,n);return g.jsx(u4,{as:fV,allowPinchZoom:!0,shards:[i.contentRef],children:g.jsx(Ze.div,{"data-state":Ow(i.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),fo="DialogContent",y4=C.forwardRef((e,t)=>{const n=m4(fo,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,s=Pr(fo,e.__scopeDialog);return g.jsx(_r,{present:r||s.open,children:s.modal?g.jsx(pV,{...i,ref:t}):g.jsx(mV,{...i,ref:t})})});y4.displayName=fo;var pV=C.forwardRef((e,t)=>{const n=Pr(fo,e.__scopeDialog),r=C.useRef(null),i=At(t,n.contentRef,r);return C.useEffect(()=>{const s=r.current;if(s)return lV(s)},[]),g.jsx(b4,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:et(e.onCloseAutoFocus,s=>{s.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:et(e.onPointerDownOutside,s=>{const l=s.detail.originalEvent,u=l.button===0&&l.ctrlKey===!0;(l.button===2||u)&&s.preventDefault()}),onFocusOutside:et(e.onFocusOutside,s=>s.preventDefault())})}),mV=C.forwardRef((e,t)=>{const n=Pr(fo,e.__scopeDialog),r=C.useRef(!1),i=C.useRef(!1);return g.jsx(b4,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{e.onCloseAutoFocus?.(s),s.defaultPrevented||(r.current||n.triggerRef.current?.focus(),s.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:s=>{e.onInteractOutside?.(s),s.defaultPrevented||(r.current=!0,s.detail.originalEvent.type==="pointerdown"&&(i.current=!0));const l=s.target;n.triggerRef.current?.contains(l)&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&i.current&&s.preventDefault()}})}),b4=C.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:s,...l}=e,u=Pr(fo,n),d=C.useRef(null),f=At(t,d);return w7(),g.jsxs(g.Fragment,{children:[g.jsx(e4,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:s,children:g.jsx(Q3,{role:"dialog",id:u.contentId,"aria-describedby":u.descriptionId,"aria-labelledby":u.titleId,"data-state":Ow(u.open),...l,ref:f,onDismiss:()=>u.onOpenChange(!1)})}),g.jsxs(g.Fragment,{children:[g.jsx(vV,{titleId:u.titleId}),g.jsx(bV,{contentRef:d,descriptionId:u.descriptionId})]})]})}),Aw="DialogTitle",x4=C.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=Pr(Aw,n);return g.jsx(Ze.h2,{id:i.titleId,...r,ref:t})});x4.displayName=Aw;var S4="DialogDescription",gV=C.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=Pr(S4,n);return g.jsx(Ze.p,{id:i.descriptionId,...r,ref:t})});gV.displayName=S4;var w4="DialogClose",A4=C.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=Pr(w4,n);return g.jsx(Ze.button,{type:"button",...r,ref:t,onClick:et(e.onClick,()=>i.onOpenChange(!1))})});A4.displayName=w4;function Ow(e){return e?"open":"closed"}var O4="DialogTitleWarning",[the,j4]=Vq(O4,{contentName:fo,titleName:Aw,docsSlug:"dialog"}),vV=({titleId:e})=>{const t=j4(O4),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.

If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.

For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return C.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},yV="DialogDescriptionWarning",bV=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${j4(yV).contentName}}.`;return C.useEffect(()=>{const i=e.current?.getAttribute("aria-describedby");t&&i&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},xV=h4,SV=g4,wV=v4,AV=y4,OV=x4,jV=A4;const T4=C.createContext({isComposing:()=>!1,setComposing:()=>{},justEndedComposing:()=>!1,markCompositionEnd:()=>{}}),jw=()=>C.useContext(T4);function v1({...e}){const t=C.useRef(!1),n=C.useRef(!1),r=C.useRef(null),i=C.useMemo(()=>({isComposing:()=>t.current,setComposing:s=>{t.current=s},justEndedComposing:()=>n.current,markCompositionEnd:()=>{n.current=!0,r.current&&clearTimeout(r.current),r.current=setTimeout(()=>{n.current=!1},150)}}),[]);return g.jsx(T4.Provider,{"data-loc":"client/src/components/ui/dialog.tsx:50",value:i,children:g.jsx(xV,{"data-loc":"client/src/components/ui/dialog.tsx:51","data-slot":"dialog",...e})})}function TV({...e}){return g.jsx(SV,{"data-loc":"client/src/components/ui/dialog.tsx:65","data-slot":"dialog-portal",...e})}function C4({className:e,...t}){return g.jsx(wV,{"data-loc":"client/src/components/ui/dialog.tsx:79","data-slot":"dialog-overlay",className:We("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",e),...t})}C4.displayName="DialogOverlay";function y1({className:e,children:t,showCloseButton:n=!0,onEscapeKeyDown:r,...i}){const{isComposing:s}=jw(),l=C.useCallback(u=>{if(u.isComposing||s()){u.preventDefault();return}r?.(u)},[s,r]);return g.jsxs(TV,{"data-loc":"client/src/components/ui/dialog.tsx:122","data-slot":"dialog-portal",children:[g.jsx(C4,{"data-loc":"client/src/components/ui/dialog.tsx:123"}),g.jsxs(AV,{"data-loc":"client/src/components/ui/dialog.tsx:124","data-slot":"dialog-content",className:We("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",e),onEscapeKeyDown:l,...i,children:[t,n&&g.jsxs(jV,{"data-loc":"client/src/components/ui/dialog.tsx:135","data-slot":"dialog-close",className:"ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",children:[g.jsx(oq,{"data-loc":"client/src/components/ui/dialog.tsx:139"}),g.jsx("span",{"data-loc":"client/src/components/ui/dialog.tsx:140",className:"sr-only",children:"Close"})]})]})]})}function b1({className:e,...t}){return g.jsx("div",{"data-loc":"client/src/components/ui/dialog.tsx:150","data-slot":"dialog-header",className:We("flex flex-col gap-2 text-center sm:text-left",e),...t})}function x1({className:e,...t}){return g.jsx(OV,{"data-loc":"client/src/components/ui/dialog.tsx:176","data-slot":"dialog-title",className:We("text-lg leading-none font-semibold",e),...t})}function Dc(e){const t=C.useRef(e);t.current=e;const n=C.useRef(null);return n.current||(n.current=function(...r){return t.current.apply(this,r)}),n.current}function E4(e={}){const{onKeyDown:t,onCompositionStart:n,onCompositionEnd:r}=e,i=C.useRef(!1),s=C.useRef(null),l=C.useRef(null),u=Dc(m=>{s.current&&(clearTimeout(s.current),s.current=null),l.current&&(clearTimeout(l.current),l.current=null),i.current=!0,n?.(m)}),d=Dc(m=>{s.current=setTimeout(()=>{l.current=setTimeout(()=>{i.current=!1})}),r?.(m)}),f=Dc(m=>{if(i.current&&(m.key==="Escape"||m.key==="Enter"&&!m.shiftKey)){m.stopPropagation();return}t?.(m)}),p=Dc(()=>i.current);return{onCompositionStart:u,onCompositionEnd:d,onKeyDown:f,isComposing:p}}function Fe({className:e,type:t,onKeyDown:n,onCompositionStart:r,onCompositionEnd:i,...s}){const l=jw(),{onCompositionStart:u,onCompositionEnd:d,onKeyDown:f}=E4({onKeyDown:p=>{const m=p.nativeEvent.isComposing||l.justEndedComposing();p.key==="Enter"&&m||n?.(p)},onCompositionStart:p=>{l.setComposing(!0),r?.(p)},onCompositionEnd:p=>{l.markCompositionEnd(),setTimeout(()=>{l.setComposing(!1)},100),i?.(p)}});return g.jsx("input",{"data-loc":"client/src/components/ui/input.tsx:53",type:t,"data-slot":"input",className:We("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",e),onCompositionStart:u,onCompositionEnd:d,onKeyDown:f,...s})}const Tw=[{id:"cachorro-quente",name:"🌭 Cachorro-Quente",image:"/images/category-burger.jpg"},{id:"xis",name:"🍔 Xis",image:"/images/category-burger.jpg"},{id:"combos",name:"Combos",image:"/images/category-combo.jpg"},{id:"drinks",name:"Bebidas",image:"/images/category-drinks.jpg"}],Vu=[{id:"1",name:"Cachorro-Quente Especial",description:"Cachorro-quente tradicional com molho especial da casa, cebola e mostarda.",price:19,image:"/images/cachorro-quente.jpg",category:"cachorro-quente",rating:4.7,popular:!0},{id:"2",name:"Cachorro-Quente Bacon",description:"Cachorro-quente com bacon crocante, queijo derretido e molho especial.",price:22,image:"/images/cachorro-quente.jpg",category:"cachorro-quente",rating:4.8},{id:"3",name:"Cachorro-Quente Frango",description:"Cachorro-quente com frango desfiado, queijo e molho especial.",price:22,image:"/images/cachorro-quente.jpg",category:"cachorro-quente",rating:4.6},{id:"4",name:"Cachorro-Quente Calabresa",description:"Cachorro-quente com calabresa grelhada, cebola roxa e molho especial.",price:20,image:"/images/cachorro-quente.jpg",category:"cachorro-quente",rating:4.7},{id:"5",name:"Cachorro-Quente Duplo",description:"Dois cachorros-quentes com bacon, queijo e molho especial.",price:22,image:"/images/cachorro-quente.jpg",category:"cachorro-quente",rating:4.8},{id:"6",name:"Cachorro-Quente Filé",description:"Cachorro-quente com filé mignon, queijo suíço e molho especial.",price:27,image:"/images/cachorro-quente.jpg",category:"cachorro-quente",rating:4.9,popular:!0},{id:"7",name:"Cachorro-Quente Filé com Bacon",description:"Cachorro-quente com filé mignon, bacon crocante, queijo e molho especial.",price:30,image:"/images/cachorro-quente.jpg",category:"cachorro-quente",rating:4.9},{id:"8",name:"Cachorro-Quente Frango com Bacon",description:"Cachorro-quente com frango, bacon crocante, queijo e molho especial.",price:25,image:"/images/cachorro-quente.jpg",category:"cachorro-quente",rating:4.7},{id:"9",name:"Xis Especial",description:"Xis com hamburguer, queijo, alface, tomate e molho especial.",price:22,image:"/images/xis.jpg",category:"xis",rating:4.7,popular:!0},{id:"10",name:"Xis Calabresa",description:"Xis com calabresa grelhada, queijo, alface e tomate.",price:22,image:"/images/xis.jpg",category:"xis",rating:4.6},{id:"11",name:"Xis Frango",description:"Xis com frango desfiado, queijo, alface, tomate e molho especial.",price:23,image:"/images/xis.jpg",category:"xis",rating:4.7},{id:"12",name:"Xis Bacon",description:"Xis com bacon crocante, queijo, alface, tomate e molho especial.",price:27,image:"/images/xis.jpg",category:"xis",rating:4.8},{id:"13",name:"Xis Filé",description:"Xis com filé mignon grelhado, queijo, alface, tomate e molho especial.",price:30,image:"/images/xis.jpg",category:"xis",rating:4.9,popular:!0},{id:"14",name:"Xis Filé com Bacon",description:"Xis com filé mignon, bacon crocante, queijo, alface, tomate e molho especial.",price:33,image:"/images/xis.jpg",category:"xis",rating:4.9},{id:"15",name:"Xis Coração",description:"Xis com coração de frango grelhado, queijo, alface e tomate.",price:27,image:"/images/xis.jpg",category:"xis",rating:4.7},{id:"16",name:"Xis Frango com Bacon",description:"Xis com frango desfiado, bacon crocante, queijo, alface e tomate.",price:27,image:"/images/xis.jpg",category:"xis",rating:4.8},{id:"17",name:"Xis Duplo",description:"Xis com dois hamburgues, queijo em dobro, alface, tomate e molho especial.",price:30,image:"/images/xis.jpg",category:"xis",rating:4.8},{id:"18",name:"Combo Cachorro-Quente + Bebida",description:"Cachorro-quente especial + refrigerante 350ml.",price:24.9,image:"/images/category-combo.jpg",category:"combos",rating:4.8,popular:!0},{id:"19",name:"Combo Xis + Bebida",description:"Xis especial + refrigerante 350ml.",price:27.9,image:"/images/category-combo.jpg",category:"combos",rating:4.9,popular:!0},{id:"20",name:"Combo Duplo",description:"2 cachorros-quentes + 2 refrigerantes 350ml.",price:44.9,image:"/images/category-combo.jpg",category:"combos",rating:4.9},{id:"21",name:"Combo Trio",description:"2 xis especiais + 2 refrigerantes + porção de fritas.",price:54.9,image:"/images/category-combo.jpg",category:"combos",rating:4.9},{id:"22",name:"Coca-Cola Gelada",description:"Lata 350ml com gelo e limão opcional.",price:6.9,image:"/images/category-drinks.jpg",category:"drinks",rating:5},{id:"23",name:"Refrigerante 2L",description:"Refrigerante 2 litros para compartilhar.",price:12,image:"/images/category-drinks.jpg",category:"drinks",rating:4.9}];function CV(){const[e,t]=C.useState(""),[,n]=Gt(),[r,i]=C.useState([]),[s,l]=C.useState([]);C.useEffect(()=>{const f=()=>{const p=localStorage.getItem("dogmelina_products");i(p?JSON.parse(p):Vu);const m=localStorage.getItem("dogmelina_categories");l(m?JSON.parse(m):Tw)};return f(),window.addEventListener("storage",f),()=>window.removeEventListener("storage",f)},[]);const u=[{id:"1",title:"Double Bacon Master",subtitle:"Xis com duplo bacon crocante e queijo derretido",price:"A partir de R$ 38,90",image:"/images/hero-burger.jpg",cta:"Pedir Agora"},{id:"2",title:"Combo Especial",subtitle:"Cachorro-quente + Bebida + Fritas",price:"A partir de R$ 24,90",image:"/images/category-combo.jpg",cta:"Pedir Agora"}],d=r.filter(f=>f.name.toLowerCase().includes(e.toLowerCase()));return g.jsxs(So,{"data-loc":"client/src/pages/Home.tsx:57",children:[g.jsxs("header",{"data-loc":"client/src/pages/Home.tsx:59",className:"px-6 pt-8 pb-6 bg-white sticky top-0 z-20 shadow-sm",children:[g.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:60",className:"flex justify-between items-center mb-6",children:[g.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:61",className:"flex items-center gap-3",children:[g.jsx("div",{"data-loc":"client/src/pages/Home.tsx:62",className:"w-12 h-12 bg-primary rounded-2xl flex items-center justify-center shadow-lg shadow-primary/20",children:g.jsx("img",{"data-loc":"client/src/pages/Home.tsx:63",src:"/images/logo.png",alt:"Logo",className:"w-8 h-8 object-contain brightness-0 invert"})}),g.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:65",children:[g.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:66",className:"flex items-center gap-1 text-primary font-black text-xs uppercase tracking-widest",children:[g.jsx(fr,{"data-loc":"client/src/pages/Home.tsx:67",size:12})," Sua Localização"]}),g.jsx("h1",{"data-loc":"client/src/pages/Home.tsx:69",className:"text-xl font-black text-foreground",children:"Dog Melina"})]})]}),g.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:72",className:"flex gap-2",children:[g.jsx("button",{"data-loc":"client/src/pages/Home.tsx:73",onClick:()=>n("/admin/login"),className:"w-10 h-10 rounded-xl bg-secondary/50 flex items-center justify-center hover:bg-primary hover:text-white transition-all",children:g.jsx(_3,{"data-loc":"client/src/pages/Home.tsx:74",size:18})}),g.jsxs("button",{"data-loc":"client/src/pages/Home.tsx:76",className:"w-10 h-10 rounded-xl bg-primary/10 text-primary flex items-center justify-center relative",children:[g.jsx(hi,{"data-loc":"client/src/pages/Home.tsx:77",size:18}),g.jsx("span",{"data-loc":"client/src/pages/Home.tsx:78",className:"absolute -top-1 -right-1 w-4 h-4 bg-primary text-white text-[10px] font-black rounded-full flex items-center justify-center border-2 border-white",children:"2"})]})]})]}),g.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:83",className:"relative",children:[g.jsx(Iu,{"data-loc":"client/src/pages/Home.tsx:84",className:"absolute inset-y-0 left-4 flex items-center h-full w-5 text-muted-foreground"}),g.jsx(Fe,{"data-loc":"client/src/pages/Home.tsx:85",placeholder:"O que você quer comer hoje?",className:"pl-12 bg-secondary/30 border-none h-14 rounded-2xl text-base font-medium focus-visible:ring-2 focus-visible:ring-primary/30",value:e,onChange:f=>t(f.target.value)})]})]}),g.jsx("div",{"data-loc":"client/src/pages/Home.tsx:95",className:"px-6 mt-4",children:g.jsx(qq,{"data-loc":"client/src/pages/Home.tsx:96",slides:u,onCTAClick:()=>n("/menu")})}),g.jsxs("section",{"data-loc":"client/src/pages/Home.tsx:100",className:"mt-8",children:[g.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:101",className:"flex items-center justify-between px-6 mb-4",children:[g.jsx("h3",{"data-loc":"client/src/pages/Home.tsx:102",className:"text-xl font-black text-foreground",children:"Categorias"}),g.jsxs(Ps,{"data-loc":"client/src/pages/Home.tsx:103",href:"/menu",className:"text-primary text-sm font-black flex items-center gap-1",children:["Ver tudo ",g.jsx(pp,{"data-loc":"client/src/pages/Home.tsx:104",size:16})]})]}),g.jsx("div",{"data-loc":"client/src/pages/Home.tsx:107",className:"flex overflow-x-auto px-6 gap-4 pb-4 no-scrollbar snap-x",children:s.map(f=>g.jsx(Ps,{"data-loc":"client/src/pages/Home.tsx:109",href:`/menu?category=${f.slug||f.id}`,children:g.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:110",className:"flex flex-col items-center gap-3 min-w-[90px] snap-start cursor-pointer group",children:[g.jsx("div",{"data-loc":"client/src/pages/Home.tsx:111",className:"w-20 h-20 rounded-[28px] bg-white shadow-md border-2 border-transparent group-hover:border-primary group-hover:shadow-primary/10 transition-all overflow-hidden p-1",children:g.jsx("img",{"data-loc":"client/src/pages/Home.tsx:112",src:f.image||"/images/category-burger.jpg",alt:f.name,className:"w-full h-full object-cover rounded-[22px]"})}),g.jsx("span",{"data-loc":"client/src/pages/Home.tsx:114",className:"text-xs font-black text-muted-foreground group-hover:text-primary uppercase tracking-tighter",children:f.name})]})},f.id))})]}),g.jsxs("section",{"data-loc":"client/src/pages/Home.tsx:122",className:"px-6 mt-8 pb-24",children:[g.jsx("div",{"data-loc":"client/src/pages/Home.tsx:123",className:"flex items-center justify-between mb-6",children:g.jsx("h3",{"data-loc":"client/src/pages/Home.tsx:124",className:"text-xl font-black text-foreground",children:"Mais Pedidos 🔥"})}),g.jsx("div",{"data-loc":"client/src/pages/Home.tsx:126",className:"grid grid-cols-2 gap-4",children:d.slice(0,10).map(f=>g.jsx(Ps,{"data-loc":"client/src/pages/Home.tsx:128",href:`/product/${f.id}`,children:g.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:129",className:"bg-white rounded-[32px] p-3 shadow-sm border border-border/40 hover:shadow-xl hover:shadow-primary/5 transition-all cursor-pointer flex flex-col h-full group",children:[g.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:130",className:"w-full aspect-square rounded-[24px] overflow-hidden bg-secondary/30 relative mb-3",children:[g.jsx("img",{"data-loc":"client/src/pages/Home.tsx:131",src:f.image,alt:f.name,className:"w-full h-full object-cover group-hover:scale-110 transition-transform duration-500"}),g.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:132",className:"absolute top-2 right-2 bg-white/90 backdrop-blur-sm px-2 py-1 rounded-xl flex items-center gap-1 shadow-sm",children:[g.jsx(qu,{"data-loc":"client/src/pages/Home.tsx:133",size:12,className:"fill-primary text-primary"}),g.jsx("span",{"data-loc":"client/src/pages/Home.tsx:134",className:"text-[10px] font-black",children:"4.9"})]})]}),g.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:138",className:"flex-1 flex flex-col px-1",children:[g.jsx("h4",{"data-loc":"client/src/pages/Home.tsx:139",className:"font-black text-sm text-foreground line-clamp-1 mb-1",children:f.name}),g.jsx("p",{"data-loc":"client/src/pages/Home.tsx:140",className:"text-[10px] text-muted-foreground line-clamp-2 mb-3 leading-tight flex-1",children:f.description}),g.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:144",className:"flex items-center justify-between mt-auto",children:[g.jsxs("span",{"data-loc":"client/src/pages/Home.tsx:145",className:"font-black text-primary text-base",children:["R$ ",f.price.toFixed(2)]}),g.jsx("div",{"data-loc":"client/src/pages/Home.tsx:148",className:"w-9 h-9 rounded-xl bg-primary text-white flex items-center justify-center shadow-lg shadow-primary/20 group-hover:scale-110 transition-transform",children:g.jsx(bi,{"data-loc":"client/src/pages/Home.tsx:149",size:20,strokeWidth:3})})]})]})]})},f.id))})]})]})}function EV(){const e=R9(),n=new URLSearchParams(e).get("category"),[r,i]=C.useState(""),[s,l]=C.useState(n||"all"),[u,d]=C.useState([]),[f,p]=C.useState([]);C.useEffect(()=>{const v=()=>{const b=localStorage.getItem("dogmelina_products");d(b?JSON.parse(b):Vu);const A=localStorage.getItem("dogmelina_categories");p(A?JSON.parse(A):Tw)};return v(),window.addEventListener("storage",v),()=>window.removeEventListener("storage",v)},[]),C.useEffect(()=>{n&&l(n)},[n]);const m=u.filter(v=>{const b=v.name.toLowerCase().includes(r.toLowerCase()),A=s==="all"||v.category===s;return b&&A});return g.jsxs(So,{"data-loc":"client/src/pages/Menu.tsx:47",children:[g.jsxs("header",{"data-loc":"client/src/pages/Menu.tsx:48",className:"px-6 pt-8 pb-6 bg-white sticky top-0 z-20 shadow-sm",children:[g.jsx("h1",{"data-loc":"client/src/pages/Menu.tsx:49",className:"text-3xl font-black text-foreground mb-6",children:"Cardápio 😋"}),g.jsxs("div",{"data-loc":"client/src/pages/Menu.tsx:51",className:"relative mb-6",children:[g.jsx(Iu,{"data-loc":"client/src/pages/Menu.tsx:52",className:"absolute inset-y-0 left-4 flex items-center h-full w-5 text-muted-foreground"}),g.jsx(Fe,{"data-loc":"client/src/pages/Menu.tsx:53",placeholder:"Buscar no cardápio...",className:"pl-12 bg-secondary/30 border-none h-14 rounded-2xl text-base font-medium",value:r,onChange:v=>i(v.target.value)})]}),g.jsxs("div",{"data-loc":"client/src/pages/Menu.tsx:61",className:"flex overflow-x-auto gap-3 pb-2 no-scrollbar snap-x",children:[g.jsx("button",{"data-loc":"client/src/pages/Menu.tsx:62",onClick:()=>l("all"),className:`px-6 py-3 rounded-2xl text-sm font-black whitespace-nowrap transition-all snap-start ${s==="all"?"bg-primary text-white shadow-lg shadow-primary/20 scale-105":"bg-secondary/50 text-muted-foreground hover:bg-secondary"}`,children:"Todos"}),f.map(v=>g.jsx("button",{"data-loc":"client/src/pages/Menu.tsx:73",onClick:()=>l(v.slug||v.id),className:`px-6 py-3 rounded-2xl text-sm font-black whitespace-nowrap transition-all snap-start ${s===(v.slug||v.id)?"bg-primary text-white shadow-lg shadow-primary/20 scale-105":"bg-secondary/50 text-muted-foreground hover:bg-secondary"}`,children:v.name},v.id))]})]}),g.jsx("div",{"data-loc":"client/src/pages/Menu.tsx:88",className:"px-6 pt-6 pb-24 grid grid-cols-2 gap-4",children:m.length===0?g.jsxs("div",{"data-loc":"client/src/pages/Menu.tsx:90",className:"col-span-2 text-center py-20 opacity-30",children:[g.jsx(X9,{"data-loc":"client/src/pages/Menu.tsx:91",size:64,className:"mx-auto mb-4"}),g.jsx("p",{"data-loc":"client/src/pages/Menu.tsx:92",className:"font-bold",children:"Nenhum produto encontrado"})]}):m.map(v=>g.jsx(Ps,{"data-loc":"client/src/pages/Menu.tsx:96",href:`/product/${v.id}`,children:g.jsxs("div",{"data-loc":"client/src/pages/Menu.tsx:97",className:"bg-white rounded-[32px] p-3 shadow-sm border border-border/40 hover:shadow-xl transition-all cursor-pointer flex flex-col h-full group",children:[g.jsxs("div",{"data-loc":"client/src/pages/Menu.tsx:98",className:"w-full aspect-square rounded-[24px] overflow-hidden bg-secondary/30 relative mb-3",children:[g.jsx("img",{"data-loc":"client/src/pages/Menu.tsx:99",src:v.image,alt:v.name,className:"w-full h-full object-cover group-hover:scale-110 transition-transform duration-500"}),g.jsxs("div",{"data-loc":"client/src/pages/Menu.tsx:100",className:"absolute top-2 right-2 bg-white/90 backdrop-blur-sm px-2 py-1 rounded-xl flex items-center gap-1 shadow-sm",children:[g.jsx(qu,{"data-loc":"client/src/pages/Menu.tsx:101",size:12,className:"fill-primary text-primary"}),g.jsx("span",{"data-loc":"client/src/pages/Menu.tsx:102",className:"text-[10px] font-black",children:"4.9"})]})]}),g.jsxs("div",{"data-loc":"client/src/pages/Menu.tsx:106",className:"flex-1 flex flex-col px-1",children:[g.jsx("h4",{"data-loc":"client/src/pages/Menu.tsx:107",className:"font-black text-sm text-foreground line-clamp-1 mb-1",children:v.name}),g.jsx("p",{"data-loc":"client/src/pages/Menu.tsx:108",className:"text-[10px] text-muted-foreground line-clamp-2 mb-3 leading-tight flex-1",children:v.description}),g.jsxs("div",{"data-loc":"client/src/pages/Menu.tsx:112",className:"flex items-center justify-between mt-auto",children:[g.jsxs("span",{"data-loc":"client/src/pages/Menu.tsx:113",className:"font-black text-primary text-base",children:["R$ ",v.price.toFixed(2)]}),g.jsx("div",{"data-loc":"client/src/pages/Menu.tsx:116",className:"w-9 h-9 rounded-xl bg-primary text-white flex items-center justify-center shadow-lg shadow-primary/20 group-hover:scale-110 transition-transform",children:g.jsx(bi,{"data-loc":"client/src/pages/Menu.tsx:117",size:20,strokeWidth:3})})]})]})]})},v.id))})]})}const ZC=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,QC=Me,_4=(e,t)=>n=>{var r;if(t?.variants==null)return QC(e,n?.class,n?.className);const{variants:i,defaultVariants:s}=t,l=Object.keys(i).map(f=>{const p=n?.[f],m=s?.[f];if(p===null)return null;const v=ZC(p)||ZC(m);return i[f][v]}),u=n&&Object.entries(n).reduce((f,p)=>{let[m,v]=p;return v===void 0||(f[m]=v),f},{}),d=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((f,p)=>{let{class:m,className:v,...b}=p;return Object.entries(b).every(A=>{let[S,w]=A;return Array.isArray(w)?w.includes({...s,...u}[S]):{...s,...u}[S]===w})?[...f,m,v]:f},[]);return QC(e,l,d,n?.class,n?.className)},_V=_4("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-transparent shadow-xs hover:bg-accent dark:bg-transparent dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});function be({className:e,variant:t,size:n,asChild:r=!1,...i}){const s=r?W3:"button";return g.jsx(s,{"data-loc":"client/src/components/ui/button.tsx:52","data-slot":"button",className:We(_V({variant:t,size:n,className:e})),...i})}function Cw(e){const t=C.useRef({value:e,previous:e});return C.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}function Ew(e){const[t,n]=C.useState(void 0);return uo(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const s=i[0];let l,u;if("borderBoxSize"in s){const d=s.borderBoxSize,f=Array.isArray(d)?d[0]:d;l=f.inlineSize,u=f.blockSize}else l=e.offsetWidth,u=e.offsetHeight;n({width:l,height:u})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var yp="Checkbox",[PV]=Ea(yp),[NV,_w]=PV(yp);function MV(e){const{__scopeCheckbox:t,checked:n,children:r,defaultChecked:i,disabled:s,form:l,name:u,onCheckedChange:d,required:f,value:p="on",internal_do_not_use_render:m}=e,[v,b]=ml({prop:n,defaultProp:i??!1,onChange:d,caller:yp}),[A,S]=C.useState(null),[w,O]=C.useState(null),_=C.useRef(!1),T=A?!!l||!!A.closest("form"):!0,M={checked:v,disabled:s,setChecked:b,control:A,setControl:S,name:u,form:l,value:p,hasConsumerStoppedPropagationRef:_,required:f,defaultChecked:pi(i)?!1:i,isFormControl:T,bubbleInput:w,setBubbleInput:O};return g.jsx(NV,{scope:t,...M,children:DV(m)?m(M):r})}var P4="CheckboxTrigger",N4=C.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:n,...r},i)=>{const{control:s,value:l,disabled:u,checked:d,required:f,setControl:p,setChecked:m,hasConsumerStoppedPropagationRef:v,isFormControl:b,bubbleInput:A}=_w(P4,e),S=At(i,p),w=C.useRef(d);return C.useEffect(()=>{const O=s?.form;if(O){const _=()=>m(w.current);return O.addEventListener("reset",_),()=>O.removeEventListener("reset",_)}},[s,m]),g.jsx(Ze.button,{type:"button",role:"checkbox","aria-checked":pi(d)?"mixed":d,"aria-required":f,"data-state":z4(d),"data-disabled":u?"":void 0,disabled:u,value:l,...r,ref:S,onKeyDown:et(t,O=>{O.key==="Enter"&&O.preventDefault()}),onClick:et(n,O=>{m(_=>pi(_)?!0:!_),A&&b&&(v.current=O.isPropagationStopped(),v.current||O.stopPropagation())})})});N4.displayName=P4;var M4=C.forwardRef((e,t)=>{const{__scopeCheckbox:n,name:r,checked:i,defaultChecked:s,required:l,disabled:u,value:d,onCheckedChange:f,form:p,...m}=e;return g.jsx(MV,{__scopeCheckbox:n,checked:i,defaultChecked:s,disabled:u,required:l,onCheckedChange:f,name:r,form:p,value:d,internal_do_not_use_render:({isFormControl:v})=>g.jsxs(g.Fragment,{children:[g.jsx(N4,{...m,ref:t,__scopeCheckbox:n}),v&&g.jsx(L4,{__scopeCheckbox:n})]})})});M4.displayName=yp;var D4="CheckboxIndicator",R4=C.forwardRef((e,t)=>{const{__scopeCheckbox:n,forceMount:r,...i}=e,s=_w(D4,n);return g.jsx(_r,{present:r||pi(s.checked)||s.checked===!0,children:g.jsx(Ze.span,{"data-state":z4(s.checked),"data-disabled":s.disabled?"":void 0,...i,ref:t,style:{pointerEvents:"none",...e.style}})})});R4.displayName=D4;var k4="CheckboxBubbleInput",L4=C.forwardRef(({__scopeCheckbox:e,...t},n)=>{const{control:r,hasConsumerStoppedPropagationRef:i,checked:s,defaultChecked:l,required:u,disabled:d,name:f,value:p,form:m,bubbleInput:v,setBubbleInput:b}=_w(k4,e),A=At(n,b),S=Cw(s),w=Ew(r);C.useEffect(()=>{const _=v;if(!_)return;const T=window.HTMLInputElement.prototype,j=Object.getOwnPropertyDescriptor(T,"checked").set,P=!i.current;if(S!==s&&j){const N=new Event("click",{bubbles:P});_.indeterminate=pi(s),j.call(_,pi(s)?!1:s),_.dispatchEvent(N)}},[v,S,s,i]);const O=C.useRef(pi(s)?!1:s);return g.jsx(Ze.input,{type:"checkbox","aria-hidden":!0,defaultChecked:l??O.current,required:u,disabled:d,name:f,value:p,form:m,...t,tabIndex:-1,ref:A,style:{...t.style,...w,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});L4.displayName=k4;function DV(e){return typeof e=="function"}function pi(e){return e==="indeterminate"}function z4(e){return pi(e)?"indeterminate":e?"checked":"unchecked"}function RV({className:e,...t}){return g.jsx(M4,{"data-loc":"client/src/components/ui/checkbox.tsx:12","data-slot":"checkbox",className:We("peer border-input dark:bg-input/30 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-primary data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",e),...t,children:g.jsx(R4,{"data-loc":"client/src/components/ui/checkbox.tsx:20","data-slot":"checkbox-indicator",className:"flex items-center justify-center text-current transition-none",children:g.jsx(u1,{"data-loc":"client/src/components/ui/checkbox.tsx:24",className:"size-3.5"})})})}var kV="Label",$4=C.forwardRef((e,t)=>g.jsx(Ze.label,{...e,ref:t,onMouseDown:n=>{n.target.closest("button, input, select, textarea")||(e.onMouseDown?.(n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));$4.displayName=kV;var LV=$4;function Nt({className:e,...t}){return g.jsx(LV,{"data-loc":"client/src/components/ui/label.tsx:11","data-slot":"label",className:We("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",e),...t})}function zV(e){const t=e+"CollectionProvider",[n,r]=Ea(t),[i,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),l=S=>{const{scope:w,children:O}=S,_=B.useRef(null),T=B.useRef(new Map).current;return g.jsx(i,{scope:w,itemMap:T,collectionRef:_,children:O})};l.displayName=t;const u=e+"CollectionSlot",d=Qc(u),f=B.forwardRef((S,w)=>{const{scope:O,children:_}=S,T=s(u,O),M=At(w,T.collectionRef);return g.jsx(d,{ref:M,children:_})});f.displayName=u;const p=e+"CollectionItemSlot",m="data-radix-collection-item",v=Qc(p),b=B.forwardRef((S,w)=>{const{scope:O,children:_,...T}=S,M=B.useRef(null),j=At(w,M),P=s(p,O);return B.useEffect(()=>(P.itemMap.set(M,{ref:M,...T}),()=>void P.itemMap.delete(M))),g.jsx(v,{[m]:"",ref:j,children:_})});b.displayName=p;function A(S){const w=s(e+"CollectionConsumer",S);return B.useCallback(()=>{const _=w.collectionRef.current;if(!_)return[];const T=Array.from(_.querySelectorAll(`[${m}]`));return Array.from(w.itemMap.values()).sort((P,N)=>T.indexOf(P.ref.current)-T.indexOf(N.ref.current))},[w.collectionRef,w.itemMap])}return[{Provider:l,Slot:f,ItemSlot:b},A,r]}var $V=C.createContext(void 0);function bp(e){const t=C.useContext($V);return e||t||"ltr"}var Vv="rovingFocusGroup.onEntryFocus",BV={bubbles:!1,cancelable:!0},Uu="RovingFocusGroup",[S1,B4,IV]=zV(Uu),[qV,xp]=Ea(Uu,[IV]),[VV,UV]=qV(Uu),I4=C.forwardRef((e,t)=>g.jsx(S1.Provider,{scope:e.__scopeRovingFocusGroup,children:g.jsx(S1.Slot,{scope:e.__scopeRovingFocusGroup,children:g.jsx(HV,{...e,ref:t})})}));I4.displayName=Uu;var HV=C.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:i=!1,dir:s,currentTabStopId:l,defaultCurrentTabStopId:u,onCurrentTabStopIdChange:d,onEntryFocus:f,preventScrollOnEntryFocus:p=!1,...m}=e,v=C.useRef(null),b=At(t,v),A=bp(s),[S,w]=ml({prop:l,defaultProp:u??null,onChange:d,caller:Uu}),[O,_]=C.useState(!1),T=qn(f),M=B4(n),j=C.useRef(!1),[P,N]=C.useState(0);return C.useEffect(()=>{const D=v.current;if(D)return D.addEventListener(Vv,T),()=>D.removeEventListener(Vv,T)},[T]),g.jsx(VV,{scope:n,orientation:r,dir:A,loop:i,currentTabStopId:S,onItemFocus:C.useCallback(D=>w(D),[w]),onItemShiftTab:C.useCallback(()=>_(!0),[]),onFocusableItemAdd:C.useCallback(()=>N(D=>D+1),[]),onFocusableItemRemove:C.useCallback(()=>N(D=>D-1),[]),children:g.jsx(Ze.div,{tabIndex:O||P===0?-1:0,"data-orientation":r,...m,ref:b,style:{outline:"none",...e.style},onMouseDown:et(e.onMouseDown,()=>{j.current=!0}),onFocus:et(e.onFocus,D=>{const k=!j.current;if(D.target===D.currentTarget&&k&&!O){const U=new CustomEvent(Vv,BV);if(D.currentTarget.dispatchEvent(U),!U.defaultPrevented){const $=M().filter(L=>L.focusable),H=$.find(L=>L.active),X=$.find(L=>L.id===S),Z=[H,X,...$].filter(Boolean).map(L=>L.ref.current);U4(Z,p)}}j.current=!1}),onBlur:et(e.onBlur,()=>_(!1))})})}),q4="RovingFocusGroupItem",V4=C.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:i=!1,tabStopId:s,children:l,...u}=e,d=$c(),f=s||d,p=UV(q4,n),m=p.currentTabStopId===f,v=B4(n),{onFocusableItemAdd:b,onFocusableItemRemove:A,currentTabStopId:S}=p;return C.useEffect(()=>{if(r)return b(),()=>A()},[r,b,A]),g.jsx(S1.ItemSlot,{scope:n,id:f,focusable:r,active:i,children:g.jsx(Ze.span,{tabIndex:m?0:-1,"data-orientation":p.orientation,...u,ref:t,onMouseDown:et(e.onMouseDown,w=>{r?p.onItemFocus(f):w.preventDefault()}),onFocus:et(e.onFocus,()=>p.onItemFocus(f)),onKeyDown:et(e.onKeyDown,w=>{if(w.key==="Tab"&&w.shiftKey){p.onItemShiftTab();return}if(w.target!==w.currentTarget)return;const O=KV(w,p.orientation,p.dir);if(O!==void 0){if(w.metaKey||w.ctrlKey||w.altKey||w.shiftKey)return;w.preventDefault();let T=v().filter(M=>M.focusable).map(M=>M.ref.current);if(O==="last")T.reverse();else if(O==="prev"||O==="next"){O==="prev"&&T.reverse();const M=T.indexOf(w.currentTarget);T=p.loop?XV(T,M+1):T.slice(M+1)}setTimeout(()=>U4(T))}}),children:typeof l=="function"?l({isCurrentTabStop:m,hasTabStop:S!=null}):l})})});V4.displayName=q4;var FV={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function GV(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function KV(e,t,n){const r=GV(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return FV[r]}function U4(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function XV(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var H4=I4,F4=V4,Pw="Radio",[YV,G4]=Ea(Pw),[WV,ZV]=YV(Pw),K4=C.forwardRef((e,t)=>{const{__scopeRadio:n,name:r,checked:i=!1,required:s,disabled:l,value:u="on",onCheck:d,form:f,...p}=e,[m,v]=C.useState(null),b=At(t,w=>v(w)),A=C.useRef(!1),S=m?f||!!m.closest("form"):!0;return g.jsxs(WV,{scope:n,checked:i,disabled:l,children:[g.jsx(Ze.button,{type:"button",role:"radio","aria-checked":i,"data-state":Z4(i),"data-disabled":l?"":void 0,disabled:l,value:u,...p,ref:b,onClick:et(e.onClick,w=>{i||d?.(),S&&(A.current=w.isPropagationStopped(),A.current||w.stopPropagation())})}),S&&g.jsx(W4,{control:m,bubbles:!A.current,name:r,value:u,checked:i,required:s,disabled:l,form:f,style:{transform:"translateX(-100%)"}})]})});K4.displayName=Pw;var X4="RadioIndicator",Y4=C.forwardRef((e,t)=>{const{__scopeRadio:n,forceMount:r,...i}=e,s=ZV(X4,n);return g.jsx(_r,{present:r||s.checked,children:g.jsx(Ze.span,{"data-state":Z4(s.checked),"data-disabled":s.disabled?"":void 0,...i,ref:t})})});Y4.displayName=X4;var QV="RadioBubbleInput",W4=C.forwardRef(({__scopeRadio:e,control:t,checked:n,bubbles:r=!0,...i},s)=>{const l=C.useRef(null),u=At(l,s),d=Cw(n),f=Ew(t);return C.useEffect(()=>{const p=l.current;if(!p)return;const m=window.HTMLInputElement.prototype,b=Object.getOwnPropertyDescriptor(m,"checked").set;if(d!==n&&b){const A=new Event("click",{bubbles:r});b.call(p,n),p.dispatchEvent(A)}},[d,n,r]),g.jsx(Ze.input,{type:"radio","aria-hidden":!0,defaultChecked:n,...i,tabIndex:-1,ref:u,style:{...i.style,...f,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});W4.displayName=QV;function Z4(e){return e?"checked":"unchecked"}var JV=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Sp="RadioGroup",[eU]=Ea(Sp,[xp,G4]),Q4=xp(),J4=G4(),[tU,nU]=eU(Sp),e5=C.forwardRef((e,t)=>{const{__scopeRadioGroup:n,name:r,defaultValue:i,value:s,required:l=!1,disabled:u=!1,orientation:d,dir:f,loop:p=!0,onValueChange:m,...v}=e,b=Q4(n),A=bp(f),[S,w]=ml({prop:s,defaultProp:i??null,onChange:m,caller:Sp});return g.jsx(tU,{scope:n,name:r,required:l,disabled:u,value:S,onValueChange:w,children:g.jsx(H4,{asChild:!0,...b,orientation:d,dir:A,loop:p,children:g.jsx(Ze.div,{role:"radiogroup","aria-required":l,"aria-orientation":d,"data-disabled":u?"":void 0,dir:A,...v,ref:t})})})});e5.displayName=Sp;var t5="RadioGroupItem",n5=C.forwardRef((e,t)=>{const{__scopeRadioGroup:n,disabled:r,...i}=e,s=nU(t5,n),l=s.disabled||r,u=Q4(n),d=J4(n),f=C.useRef(null),p=At(t,f),m=s.value===i.value,v=C.useRef(!1);return C.useEffect(()=>{const b=S=>{JV.includes(S.key)&&(v.current=!0)},A=()=>v.current=!1;return document.addEventListener("keydown",b),document.addEventListener("keyup",A),()=>{document.removeEventListener("keydown",b),document.removeEventListener("keyup",A)}},[]),g.jsx(F4,{asChild:!0,...u,focusable:!l,active:m,children:g.jsx(K4,{disabled:l,required:s.required,checked:m,...d,...i,name:s.name,ref:p,onCheck:()=>s.onValueChange(i.value),onKeyDown:et(b=>{b.key==="Enter"&&b.preventDefault()}),onFocus:et(i.onFocus,()=>{v.current&&f.current?.click()})})})});n5.displayName=t5;var rU="RadioGroupIndicator",r5=C.forwardRef((e,t)=>{const{__scopeRadioGroup:n,...r}=e,i=J4(n);return g.jsx(Y4,{...i,...r,ref:t})});r5.displayName=rU;var aU=e5,iU=n5,oU=r5;function a5({className:e,...t}){return g.jsx(aU,{"data-loc":"client/src/components/ui/radio-group.tsx:12","data-slot":"radio-group",className:We("grid gap-3",e),...t})}function i5({className:e,...t}){return g.jsx(iU,{"data-loc":"client/src/components/ui/radio-group.tsx:25","data-slot":"radio-group-item",className:We("border-input text-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 aspect-square size-4 shrink-0 rounded-full border shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",e),...t,children:g.jsx(oU,{"data-loc":"client/src/components/ui/radio-group.tsx:33","data-slot":"radio-group-indicator",className:"relative flex items-center justify-center",children:g.jsx(G9,{"data-loc":"client/src/components/ui/radio-group.tsx:37",className:"fill-primary absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2"})})})}function sU({className:e,onKeyDown:t,onCompositionStart:n,onCompositionEnd:r,...i}){const s=jw(),{onCompositionStart:l,onCompositionEnd:u,onKeyDown:d}=E4({onKeyDown:f=>{const p=f.nativeEvent.isComposing||s.justEndedComposing();f.key==="Enter"&&!f.shiftKey&&p||t?.(f)},onCompositionStart:f=>{s.setComposing(!0),n?.(f)},onCompositionEnd:f=>{s.markCompositionEnd(),setTimeout(()=>{s.setComposing(!1)},100),r?.(f)}});return g.jsx("textarea",{"data-loc":"client/src/components/ui/textarea.tsx:53","data-slot":"textarea",className:We("border-input placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 flex field-sizing-content min-h-16 w-full rounded-md border bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),onCompositionStart:l,onCompositionEnd:u,onKeyDown:d,...i})}function lU(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}Array(12).fill(0);let w1=1;class cU{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{const n=this.subscribers.indexOf(t);this.subscribers.splice(n,1)}),this.publish=t=>{this.subscribers.forEach(n=>n(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var n;const{message:r,...i}=t,s=typeof t?.id=="number"||((n=t.id)==null?void 0:n.length)>0?t.id:w1++,l=this.toasts.find(d=>d.id===s),u=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(s)&&this.dismissedToasts.delete(s),l?this.toasts=this.toasts.map(d=>d.id===s?(this.publish({...d,...t,id:s,title:r}),{...d,...t,id:s,dismissible:u,title:r}):d):this.addToast({title:r,...i,dismissible:u,id:s}),s},this.dismiss=t=>(t?(this.dismissedToasts.add(t),requestAnimationFrame(()=>this.subscribers.forEach(n=>n({id:t,dismiss:!0})))):this.toasts.forEach(n=>{this.subscribers.forEach(r=>r({id:n.id,dismiss:!0}))}),t),this.message=(t,n)=>this.create({...n,message:t}),this.error=(t,n)=>this.create({...n,message:t,type:"error"}),this.success=(t,n)=>this.create({...n,type:"success",message:t}),this.info=(t,n)=>this.create({...n,type:"info",message:t}),this.warning=(t,n)=>this.create({...n,type:"warning",message:t}),this.loading=(t,n)=>this.create({...n,type:"loading",message:t}),this.promise=(t,n)=>{if(!n)return;let r;n.loading!==void 0&&(r=this.create({...n,promise:t,type:"loading",message:n.loading,description:typeof n.description!="function"?n.description:void 0}));const i=Promise.resolve(t instanceof Function?t():t);let s=r!==void 0,l;const u=i.then(async f=>{if(l=["resolve",f],B.isValidElement(f))s=!1,this.create({id:r,type:"default",message:f});else if(dU(f)&&!f.ok){s=!1;const m=typeof n.error=="function"?await n.error(`HTTP error! status: ${f.status}`):n.error,v=typeof n.description=="function"?await n.description(`HTTP error! status: ${f.status}`):n.description,A=typeof m=="object"&&!B.isValidElement(m)?m:{message:m};this.create({id:r,type:"error",description:v,...A})}else if(f instanceof Error){s=!1;const m=typeof n.error=="function"?await n.error(f):n.error,v=typeof n.description=="function"?await n.description(f):n.description,A=typeof m=="object"&&!B.isValidElement(m)?m:{message:m};this.create({id:r,type:"error",description:v,...A})}else if(n.success!==void 0){s=!1;const m=typeof n.success=="function"?await n.success(f):n.success,v=typeof n.description=="function"?await n.description(f):n.description,A=typeof m=="object"&&!B.isValidElement(m)?m:{message:m};this.create({id:r,type:"success",description:v,...A})}}).catch(async f=>{if(l=["reject",f],n.error!==void 0){s=!1;const p=typeof n.error=="function"?await n.error(f):n.error,m=typeof n.description=="function"?await n.description(f):n.description,b=typeof p=="object"&&!B.isValidElement(p)?p:{message:p};this.create({id:r,type:"error",description:m,...b})}}).finally(()=>{s&&(this.dismiss(r),r=void 0),n.finally==null||n.finally.call(n)}),d=()=>new Promise((f,p)=>u.then(()=>l[0]==="reject"?p(l[1]):f(l[1])).catch(p));return typeof r!="string"&&typeof r!="number"?{unwrap:d}:Object.assign(r,{unwrap:d})},this.custom=(t,n)=>{const r=n?.id||w1++;return this.create({jsx:t(r),id:r,...n}),r},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const or=new cU,uU=(e,t)=>{const n=t?.id||w1++;return or.addToast({title:e,...t,id:n}),n},dU=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",fU=uU,hU=()=>or.toasts,pU=()=>or.getActiveToasts(),Ge=Object.assign(fU,{success:or.success,info:or.info,warning:or.warning,error:or.error,custom:or.custom,message:or.message,promise:or.promise,dismiss:or.dismiss,loading:or.loading},{getHistory:hU,getToasts:pU});lU("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function mU(){const[,e]=k9("/product/:id"),[,t]=Gt(),n=Vu.find(b=>b.id===e?.id),[r,i]=C.useState(1),[s,l]=C.useState([]),[u,d]=C.useState("ao-ponto");if(!n)return g.jsx("div",{"data-loc":"client/src/pages/ProductDetail.tsx:21",children:"Produto não encontrado"});const f=[{id:"bacon",name:"Bacon Extra",price:4},{id:"cheese",name:"Queijo Extra",price:3.5},{id:"sauce",name:"Molho Especial",price:2}],p=b=>{l(A=>A.includes(b)?A.filter(S=>S!==b):[...A,b])},m=(n.price+s.reduce((b,A)=>{const S=f.find(w=>w.id===A);return b+(S?.price||0)},0))*r,v=()=>{const b=localStorage.getItem("dogmelina_cart"),A=b?JSON.parse(b):[],S={...n,quantity:r,extras:s.map(w=>f.find(O=>O.id===w)?.name),totalPrice:m};A.push(S),localStorage.setItem("dogmelina_cart",JSON.stringify(A)),Ge.success(`Adicionado ao carrinho: ${r}x ${n.name}`),setTimeout(()=>t("/cart"),500)};return g.jsxs("div",{"data-loc":"client/src/pages/ProductDetail.tsx:63",className:"min-h-screen bg-background pb-24 max-w-md mx-auto relative shadow-2xl",children:[g.jsxs("div",{"data-loc":"client/src/pages/ProductDetail.tsx:65",className:"relative h-72 w-full",children:[g.jsx("img",{"data-loc":"client/src/pages/ProductDetail.tsx:66",src:n.image,alt:n.name,className:"w-full h-full object-cover"}),g.jsxs("div",{"data-loc":"client/src/pages/ProductDetail.tsx:67",className:"absolute top-0 left-0 right-0 p-6 flex justify-between items-start bg-gradient-to-b from-black/60 to-transparent",children:[g.jsx("button",{"data-loc":"client/src/pages/ProductDetail.tsx:68",onClick:()=>window.history.back(),className:"w-10 h-10 rounded-full bg-white/20 backdrop-blur-md flex items-center justify-center text-white hover:bg-white/30 transition-colors",children:g.jsx(mr,{"data-loc":"client/src/pages/ProductDetail.tsx:72",size:20})}),g.jsxs("div",{"data-loc":"client/src/pages/ProductDetail.tsx:74",className:"flex gap-3",children:[g.jsx("button",{"data-loc":"client/src/pages/ProductDetail.tsx:75",className:"w-10 h-10 rounded-full bg-white/20 backdrop-blur-md flex items-center justify-center text-white hover:bg-white/30 transition-colors",children:g.jsx(Y9,{"data-loc":"client/src/pages/ProductDetail.tsx:76",size:20})}),g.jsx("button",{"data-loc":"client/src/pages/ProductDetail.tsx:78",className:"w-10 h-10 rounded-full bg-white/20 backdrop-blur-md flex items-center justify-center text-white hover:bg-white/30 transition-colors",children:g.jsx(R3,{"data-loc":"client/src/pages/ProductDetail.tsx:79",size:20})})]})]})]}),g.jsx("div",{"data-loc":"client/src/pages/ProductDetail.tsx:86",className:"px-6 -mt-8 relative z-10",children:g.jsxs("div",{"data-loc":"client/src/pages/ProductDetail.tsx:87",className:"bg-card rounded-3xl p-6 shadow-lg border border-border/50",children:[g.jsxs("div",{"data-loc":"client/src/pages/ProductDetail.tsx:88",className:"flex justify-between items-start mb-2",children:[g.jsx("h1",{"data-loc":"client/src/pages/ProductDetail.tsx:89",className:"text-2xl font-bold text-foreground w-3/4 leading-tight",children:n.name}),g.jsx("div",{"data-loc":"client/src/pages/ProductDetail.tsx:90",className:"flex flex-col items-end",children:g.jsx("span",{"data-loc":"client/src/pages/ProductDetail.tsx:91",className:"text-xl font-bold text-primary",children:new Intl.NumberFormat("pt-BR",{style:"currency",currency:"BRL"}).format(n.price)})})]}),g.jsxs("div",{"data-loc":"client/src/pages/ProductDetail.tsx:97",className:"flex items-center gap-4 mb-4 text-sm text-muted-foreground",children:[g.jsxs("div",{"data-loc":"client/src/pages/ProductDetail.tsx:98",className:"flex items-center gap-1",children:[g.jsx(xo,{"data-loc":"client/src/pages/ProductDetail.tsx:99",size:14}),g.jsx("span",{"data-loc":"client/src/pages/ProductDetail.tsx:100",children:"20-30 min"})]}),g.jsxs("div",{"data-loc":"client/src/pages/ProductDetail.tsx:102",className:"flex items-center gap-1",children:[g.jsx(qu,{"data-loc":"client/src/pages/ProductDetail.tsx:103",size:14,className:"fill-yellow-400 text-yellow-400"}),g.jsxs("span",{"data-loc":"client/src/pages/ProductDetail.tsx:104",children:[n.rating," (120+)"]})]})]}),g.jsx("p",{"data-loc":"client/src/pages/ProductDetail.tsx:108",className:"text-muted-foreground leading-relaxed text-sm mb-6",children:n.description}),n.category==="burgers"&&g.jsxs("div",{"data-loc":"client/src/pages/ProductDetail.tsx:114",className:"mb-6",children:[g.jsx("h3",{"data-loc":"client/src/pages/ProductDetail.tsx:115",className:"font-bold text-foreground mb-3",children:"Ponto da Carne"}),g.jsx(a5,{"data-loc":"client/src/pages/ProductDetail.tsx:116",value:u,onValueChange:d,className:"flex flex-col gap-3",children:["mal-passado","ao-ponto","bem-passado"].map(b=>g.jsxs("div",{"data-loc":"client/src/pages/ProductDetail.tsx:118",className:"flex items-center space-x-2 border border-border rounded-xl p-3 has-[[data-state=checked]]:border-primary has-[[data-state=checked]]:bg-primary/5 transition-all",children:[g.jsx(i5,{"data-loc":"client/src/pages/ProductDetail.tsx:119",value:b,id:b}),g.jsx(Nt,{"data-loc":"client/src/pages/ProductDetail.tsx:120",htmlFor:b,className:"flex-1 cursor-pointer capitalize font-medium",children:b.replace("-"," ")})]},b))})]}),g.jsxs("div",{"data-loc":"client/src/pages/ProductDetail.tsx:130",className:"mb-6",children:[g.jsx("h3",{"data-loc":"client/src/pages/ProductDetail.tsx:131",className:"font-bold text-foreground mb-3",children:"Adicionais"}),g.jsx("div",{"data-loc":"client/src/pages/ProductDetail.tsx:132",className:"flex flex-col gap-3",children:f.map(b=>g.jsxs("div",{"data-loc":"client/src/pages/ProductDetail.tsx:134",className:"flex items-center justify-between border border-border rounded-xl p-3",children:[g.jsxs("div",{"data-loc":"client/src/pages/ProductDetail.tsx:135",className:"flex items-center gap-3",children:[g.jsx(RV,{"data-loc":"client/src/pages/ProductDetail.tsx:136",id:b.id,checked:s.includes(b.id),onCheckedChange:()=>p(b.id)}),g.jsx(Nt,{"data-loc":"client/src/pages/ProductDetail.tsx:141",htmlFor:b.id,className:"font-medium cursor-pointer",children:b.name})]}),g.jsxs("span",{"data-loc":"client/src/pages/ProductDetail.tsx:143",className:"text-sm font-semibold text-primary",children:["+ ",new Intl.NumberFormat("pt-BR",{style:"currency",currency:"BRL"}).format(b.price)]})]},b.id))})]}),g.jsxs("div",{"data-loc":"client/src/pages/ProductDetail.tsx:152",className:"mb-6",children:[g.jsx("h3",{"data-loc":"client/src/pages/ProductDetail.tsx:153",className:"font-bold text-foreground mb-3",children:"Observações"}),g.jsx(sU,{"data-loc":"client/src/pages/ProductDetail.tsx:154",placeholder:"Ex: Tirar a cebola, caprichar no molho...",className:"resize-none bg-secondary/30 border-border focus:ring-primary"})]})]})}),g.jsx("div",{"data-loc":"client/src/pages/ProductDetail.tsx:163",className:"fixed bottom-0 left-0 right-0 bg-white border-t border-border p-4 pb-safe z-50 max-w-md mx-auto",children:g.jsxs("div",{"data-loc":"client/src/pages/ProductDetail.tsx:164",className:"flex items-center gap-4",children:[g.jsxs("div",{"data-loc":"client/src/pages/ProductDetail.tsx:165",className:"flex items-center gap-3 bg-secondary rounded-xl px-3 py-2 h-12",children:[g.jsx("button",{"data-loc":"client/src/pages/ProductDetail.tsx:166",onClick:()=>i(Math.max(1,r-1)),className:"w-8 h-8 rounded-lg bg-white flex items-center justify-center text-foreground shadow-sm active:scale-95 transition-transform",disabled:r<=1,children:g.jsx(P3,{"data-loc":"client/src/pages/ProductDetail.tsx:171",size:16})}),g.jsx("span",{"data-loc":"client/src/pages/ProductDetail.tsx:173",className:"font-bold w-4 text-center",children:r}),g.jsx("button",{"data-loc":"client/src/pages/ProductDetail.tsx:174",onClick:()=>i(r+1),className:"w-8 h-8 rounded-lg bg-primary text-white flex items-center justify-center shadow-sm active:scale-95 transition-transform",children:g.jsx(bi,{"data-loc":"client/src/pages/ProductDetail.tsx:178",size:16})})]}),g.jsxs(be,{"data-loc":"client/src/pages/ProductDetail.tsx:182",className:"flex-1 h-12 rounded-xl text-base font-bold shadow-lg shadow-primary/20",onClick:v,children:[g.jsx("span",{"data-loc":"client/src/pages/ProductDetail.tsx:186",className:"mr-auto",children:"Adicionar"}),g.jsx("span",{"data-loc":"client/src/pages/ProductDetail.tsx:187",children:new Intl.NumberFormat("pt-BR",{style:"currency",currency:"BRL"}).format(m)})]})]})})]})}var gU="Separator",JC="horizontal",vU=["horizontal","vertical"],o5=C.forwardRef((e,t)=>{const{decorative:n,orientation:r=JC,...i}=e,s=yU(r)?r:JC,u=n?{role:"none"}:{"aria-orientation":s==="vertical"?s:void 0,role:"separator"};return g.jsx(Ze.div,{"data-orientation":s,...u,...i,ref:t})});o5.displayName=gU;function yU(e){return vU.includes(e)}var bU=o5;function s5({className:e,orientation:t="horizontal",decorative:n=!0,...r}){return g.jsx(bU,{"data-loc":"client/src/components/ui/separator.tsx:13","data-slot":"separator",decorative:n,orientation:t,className:We("bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",e),...r})}function xU(){const[,e]=Gt(),[t,n]=C.useState(()=>{const u=localStorage.getItem("dogmelina_cart");return u?JSON.parse(u):[]});C.useEffect(()=>{localStorage.setItem("dogmelina_cart",JSON.stringify(t))},[t]);const r=t.reduce((u,d)=>u+d.price*d.quantity,0),i=t.length>0?5:0,s=r+i,l=u=>{const d=[...t];d.splice(u,1),n(d)};return g.jsx(So,{"data-loc":"client/src/pages/Cart.tsx:33",showBottomNav:!1,children:g.jsxs("div",{"data-loc":"client/src/pages/Cart.tsx:34",className:"bg-background min-h-screen flex flex-col",children:[g.jsxs("header",{"data-loc":"client/src/pages/Cart.tsx:36",className:"px-6 py-4 flex items-center gap-4 sticky top-0 bg-background/80 backdrop-blur-md z-10 border-b border-border/50",children:[g.jsx(Ps,{"data-loc":"client/src/pages/Cart.tsx:37",href:"/",children:g.jsx("button",{"data-loc":"client/src/pages/Cart.tsx:38",className:"w-10 h-10 rounded-full bg-secondary flex items-center justify-center hover:bg-secondary/80 transition-colors",children:g.jsx(mr,{"data-loc":"client/src/pages/Cart.tsx:39",size:20})})}),g.jsx("h1",{"data-loc":"client/src/pages/Cart.tsx:42",className:"text-xl font-bold",children:"Seu Carrinho"})]}),g.jsx("div",{"data-loc":"client/src/pages/Cart.tsx:45",className:"flex-1 px-6 py-6",children:t.length===0?g.jsxs("div",{"data-loc":"client/src/pages/Cart.tsx:47",className:"flex flex-col items-center justify-center py-20 text-center",children:[g.jsx("div",{"data-loc":"client/src/pages/Cart.tsx:48",className:"w-20 h-20 rounded-full bg-secondary flex items-center justify-center text-muted-foreground mb-4",children:g.jsx(hi,{"data-loc":"client/src/pages/Cart.tsx:49",size:40})}),g.jsx("h2",{"data-loc":"client/src/pages/Cart.tsx:51",className:"text-xl font-bold mb-2",children:"Seu carrinho está vazio"}),g.jsx("p",{"data-loc":"client/src/pages/Cart.tsx:52",className:"text-muted-foreground mb-8",children:"Que tal adicionar alguns lanches deliciosos?"}),g.jsx(be,{"data-loc":"client/src/pages/Cart.tsx:53",onClick:()=>e("/menu"),className:"rounded-xl px-8",children:"Ver Cardápio"})]}):g.jsxs(g.Fragment,{children:[g.jsxs("div",{"data-loc":"client/src/pages/Cart.tsx:60",className:"bg-primary/5 border border-primary/20 rounded-2xl p-4 mb-6 flex items-center justify-between cursor-pointer hover:bg-primary/10 transition-colors",children:[g.jsxs("div",{"data-loc":"client/src/pages/Cart.tsx:61",className:"flex items-center gap-3",children:[g.jsx("div",{"data-loc":"client/src/pages/Cart.tsx:62",className:"w-10 h-10 rounded-full bg-primary/20 flex items-center justify-center text-primary",children:g.jsx(fr,{"data-loc":"client/src/pages/Cart.tsx:63",size:20})}),g.jsxs("div",{"data-loc":"client/src/pages/Cart.tsx:65",children:[g.jsx("p",{"data-loc":"client/src/pages/Cart.tsx:66",className:"text-xs text-muted-foreground font-medium",children:"Entregar em"}),g.jsx("p",{"data-loc":"client/src/pages/Cart.tsx:67",className:"text-sm font-bold text-foreground",children:"Casa (Rua das Flores, 123)"})]})]}),g.jsx(pp,{"data-loc":"client/src/pages/Cart.tsx:70",size:16,className:"text-muted-foreground"})]}),g.jsx("div",{"data-loc":"client/src/pages/Cart.tsx:74",className:"flex flex-col gap-4 mb-8",children:t.map((u,d)=>g.jsxs("div",{"data-loc":"client/src/pages/Cart.tsx:76",className:"flex gap-4 bg-card p-3 rounded-2xl border border-border shadow-sm",children:[g.jsx("div",{"data-loc":"client/src/pages/Cart.tsx:77",className:"w-20 h-20 rounded-xl bg-secondary overflow-hidden flex-shrink-0",children:g.jsx("img",{"data-loc":"client/src/pages/Cart.tsx:78",src:u.image,alt:u.name,className:"w-full h-full object-cover"})}),g.jsxs("div",{"data-loc":"client/src/pages/Cart.tsx:80",className:"flex-1 flex flex-col justify-between",children:[g.jsxs("div",{"data-loc":"client/src/pages/Cart.tsx:81",className:"flex justify-between items-start",children:[g.jsxs("div",{"data-loc":"client/src/pages/Cart.tsx:82",children:[g.jsx("h4",{"data-loc":"client/src/pages/Cart.tsx:83",className:"font-bold text-sm line-clamp-1",children:u.name}),u.extras&&u.extras.length>0&&g.jsxs("p",{"data-loc":"client/src/pages/Cart.tsx:85",className:"text-xs text-muted-foreground mt-1",children:["+ ",u.extras.join(", ")]})]}),g.jsx("button",{"data-loc":"client/src/pages/Cart.tsx:90",onClick:()=>l(d),className:"text-muted-foreground hover:text-destructive transition-colors p-1",children:g.jsx(mp,{"data-loc":"client/src/pages/Cart.tsx:94",size:16})})]}),g.jsxs("div",{"data-loc":"client/src/pages/Cart.tsx:97",className:"flex justify-between items-end mt-2",children:[g.jsxs("span",{"data-loc":"client/src/pages/Cart.tsx:98",className:"text-xs font-bold bg-secondary px-2 py-1 rounded-md text-muted-foreground",children:[u.quantity,"x"]}),g.jsx("span",{"data-loc":"client/src/pages/Cart.tsx:101",className:"font-bold text-primary",children:new Intl.NumberFormat("pt-BR",{style:"currency",currency:"BRL"}).format(u.price*u.quantity)})]})]})]},`${u.id}-${d}`))}),g.jsxs("div",{"data-loc":"client/src/pages/Cart.tsx:111",className:"bg-card rounded-2xl p-6 border border-border shadow-sm mb-24",children:[g.jsx("h3",{"data-loc":"client/src/pages/Cart.tsx:112",className:"font-bold mb-4",children:"Resumo do Pedido"}),g.jsxs("div",{"data-loc":"client/src/pages/Cart.tsx:113",className:"space-y-3 text-sm",children:[g.jsxs("div",{"data-loc":"client/src/pages/Cart.tsx:114",className:"flex justify-between text-muted-foreground",children:[g.jsx("span",{"data-loc":"client/src/pages/Cart.tsx:115",children:"Subtotal"}),g.jsx("span",{"data-loc":"client/src/pages/Cart.tsx:116",children:new Intl.NumberFormat("pt-BR",{style:"currency",currency:"BRL"}).format(r)})]}),g.jsxs("div",{"data-loc":"client/src/pages/Cart.tsx:118",className:"flex justify-between text-muted-foreground",children:[g.jsx("span",{"data-loc":"client/src/pages/Cart.tsx:119",children:"Taxa de entrega"}),g.jsx("span",{"data-loc":"client/src/pages/Cart.tsx:120",children:new Intl.NumberFormat("pt-BR",{style:"currency",currency:"BRL"}).format(i)})]}),g.jsx(s5,{"data-loc":"client/src/pages/Cart.tsx:122",className:"my-2"}),g.jsxs("div",{"data-loc":"client/src/pages/Cart.tsx:123",className:"flex justify-between font-bold text-lg text-foreground",children:[g.jsx("span",{"data-loc":"client/src/pages/Cart.tsx:124",children:"Total"}),g.jsx("span",{"data-loc":"client/src/pages/Cart.tsx:125",children:new Intl.NumberFormat("pt-BR",{style:"currency",currency:"BRL"}).format(s)})]})]})]})]})}),t.length>0&&g.jsx("div",{"data-loc":"client/src/pages/Cart.tsx:135",className:"fixed bottom-0 left-0 right-0 bg-white border-t border-border p-4 pb-safe z-50 max-w-md mx-auto",children:g.jsx(be,{"data-loc":"client/src/pages/Cart.tsx:136",className:"w-full h-14 rounded-xl text-lg font-bold shadow-lg shadow-primary/20",onClick:()=>e("/checkout"),children:"Finalizar Pedido"})})]})})}const Uv=[{name:"Centro",fee:5},{name:"Vila Nova",fee:7},{name:"Jardim América",fee:8},{name:"Industrial",fee:10},{name:"Santa Marta",fee:6}];function SU(){const[,e]=Gt(),[t,n]=C.useState(!1),[r,i]=C.useState(!1),[s,l]=C.useState(""),[u,d]=C.useState(""),[f,p]=C.useState(""),[m,v]=C.useState("pix"),[b,A]=C.useState({street:"",number:"",neighborhood:Uv[0].name,complement:""}),[S,w]=C.useState(()=>{const P=localStorage.getItem("dogmelina_cart");return P?JSON.parse(P):[]}),O=S.reduce((P,N)=>P+N.price*N.quantity,0),_=Uv.find(P=>P.name===b.neighborhood)?.fee||0,T=O+_,M=()=>{if(!navigator.geolocation){Ge.error("GPS não suportado");return}i(!0),navigator.geolocation.getCurrentPosition(P=>{setTimeout(()=>{A({...b,street:"Rua Detectada via GPS",number:"S/N"}),i(!1),Ge.success("Localização aproximada obtida!")},1e3)},()=>{i(!1),Ge.error("Não foi possível obter localização via GPS")})},j=async()=>{if(!s||!u||!b.street||!b.number){Ge.error("Por favor, preencha todos os campos obrigatórios");return}n(!0);const P=localStorage.getItem("dogmelina_settings"),N=P?JSON.parse(P):{whatsapp:"5511999999999"},D=S.map(X=>`*${X.quantity}x ${X.name}* (R$ ${X.price.toFixed(2)})`).join(`
`),k=`*NOVO PEDIDO - DOG MELINA*

*Cliente:* ${s}
*Telefone:* ${u}

*Endereço:* ${b.street}, ${b.number}
*Bairro:* ${b.neighborhood}
${b.complement?`*Comp:* ${b.complement}
`:""}
*Itens:*
${D}

*Pagamento:* ${m.toUpperCase()}
*Subtotal:* R$ ${O.toFixed(2)}
*Taxa:* R$ ${_.toFixed(2)}
*TOTAL: R$ ${T.toFixed(2)}*

${f?`*Obs:* ${f}`:""}`,U={id:`DM-${Math.floor(1e3+Math.random()*9e3)}`,customerName:s,customerPhone:u,address:`${b.street}, ${b.number} - ${b.neighborhood}`,items:S,total:T,status:"novo",paymentMethod:m,createdAt:new Date().toISOString()},$=JSON.parse(localStorage.getItem("dogmelina_admin_orders")||"[]");localStorage.setItem("dogmelina_admin_orders",JSON.stringify([U,...$])),localStorage.removeItem("dogmelina_cart");const H=`https://wa.me/${N.whatsapp}?text=${encodeURIComponent(k)}`;window.open(H,"_blank"),setTimeout(()=>{e(`/order-confirmation?id=${U.id}`)},1e3)};return g.jsx(So,{"data-loc":"client/src/pages/Checkout.tsx:130",showBottomNav:!1,children:g.jsxs("div",{"data-loc":"client/src/pages/Checkout.tsx:131",className:"bg-background min-h-screen flex flex-col",children:[g.jsxs("header",{"data-loc":"client/src/pages/Checkout.tsx:132",className:"px-6 py-4 flex items-center gap-4 sticky top-0 bg-background/80 backdrop-blur-md z-10 border-b border-border/50",children:[g.jsx("button",{"data-loc":"client/src/pages/Checkout.tsx:133",onClick:()=>window.history.back(),className:"w-10 h-10 rounded-full bg-secondary flex items-center justify-center",children:g.jsx(mr,{"data-loc":"client/src/pages/Checkout.tsx:133",size:20})}),g.jsx("h1",{"data-loc":"client/src/pages/Checkout.tsx:134",className:"text-xl font-bold",children:"Finalizar Pedido"})]}),g.jsxs("div",{"data-loc":"client/src/pages/Checkout.tsx:137",className:"flex-1 px-6 py-6 pb-32",children:[g.jsxs("section",{"data-loc":"client/src/pages/Checkout.tsx:139",className:"mb-8 space-y-4",children:[g.jsxs("div",{"data-loc":"client/src/pages/Checkout.tsx:140",className:"flex items-center gap-2 mb-2",children:[g.jsx(Ls,{"data-loc":"client/src/pages/Checkout.tsx:141",size:20,className:"text-primary"}),g.jsx("h3",{"data-loc":"client/src/pages/Checkout.tsx:142",className:"font-bold text-lg",children:"Seus Dados"})]}),g.jsxs("div",{"data-loc":"client/src/pages/Checkout.tsx:144",className:"grid gap-4",children:[g.jsxs("div",{"data-loc":"client/src/pages/Checkout.tsx:145",children:[g.jsx(Nt,{"data-loc":"client/src/pages/Checkout.tsx:146",className:"text-xs font-bold mb-1 block",children:"Nome Completo *"}),g.jsx(Fe,{"data-loc":"client/src/pages/Checkout.tsx:147",value:s,onChange:P=>l(P.target.value),placeholder:"Como te chamamos?",className:"h-12 rounded-xl bg-secondary/30"})]}),g.jsxs("div",{"data-loc":"client/src/pages/Checkout.tsx:149",children:[g.jsx(Nt,{"data-loc":"client/src/pages/Checkout.tsx:150",className:"text-xs font-bold mb-1 block",children:"WhatsApp *"}),g.jsx(Fe,{"data-loc":"client/src/pages/Checkout.tsx:151",value:u,onChange:P=>d(P.target.value),placeholder:"(00) 00000-0000",className:"h-12 rounded-xl bg-secondary/30"})]})]})]}),g.jsxs("section",{"data-loc":"client/src/pages/Checkout.tsx:157",className:"mb-8 space-y-4",children:[g.jsxs("div",{"data-loc":"client/src/pages/Checkout.tsx:158",className:"flex items-center justify-between mb-2",children:[g.jsxs("div",{"data-loc":"client/src/pages/Checkout.tsx:159",className:"flex items-center gap-2",children:[g.jsx(fr,{"data-loc":"client/src/pages/Checkout.tsx:160",size:20,className:"text-primary"}),g.jsx("h3",{"data-loc":"client/src/pages/Checkout.tsx:161",className:"font-bold text-lg",children:"Endereço de Entrega"})]}),g.jsxs(be,{"data-loc":"client/src/pages/Checkout.tsx:163",variant:"ghost",size:"sm",onClick:M,className:"text-primary text-xs gap-1",disabled:r,children:[r?g.jsx(E3,{"data-loc":"client/src/pages/Checkout.tsx:164",size:14,className:"animate-spin"}):g.jsx(N3,{"data-loc":"client/src/pages/Checkout.tsx:164",size:14}),"GPS"]})]}),g.jsxs("div",{"data-loc":"client/src/pages/Checkout.tsx:169",className:"grid grid-cols-4 gap-4",children:[g.jsxs("div",{"data-loc":"client/src/pages/Checkout.tsx:170",className:"col-span-3",children:[g.jsx(Nt,{"data-loc":"client/src/pages/Checkout.tsx:171",className:"text-xs font-bold mb-1 block",children:"Rua *"}),g.jsx(Fe,{"data-loc":"client/src/pages/Checkout.tsx:172",value:b.street,onChange:P=>A({...b,street:P.target.value}),placeholder:"Nome da rua",className:"h-12 rounded-xl bg-secondary/30"})]}),g.jsxs("div",{"data-loc":"client/src/pages/Checkout.tsx:174",className:"col-span-1",children:[g.jsx(Nt,{"data-loc":"client/src/pages/Checkout.tsx:175",className:"text-xs font-bold mb-1 block",children:"Nº *"}),g.jsx(Fe,{"data-loc":"client/src/pages/Checkout.tsx:176",value:b.number,onChange:P=>A({...b,number:P.target.value}),placeholder:"123",className:"h-12 rounded-xl bg-secondary/30"})]}),g.jsxs("div",{"data-loc":"client/src/pages/Checkout.tsx:178",className:"col-span-2",children:[g.jsx(Nt,{"data-loc":"client/src/pages/Checkout.tsx:179",className:"text-xs font-bold mb-1 block",children:"Bairro *"}),g.jsx("select",{"data-loc":"client/src/pages/Checkout.tsx:180",value:b.neighborhood,onChange:P=>A({...b,neighborhood:P.target.value}),className:"w-full h-12 rounded-xl bg-secondary/30 border border-border px-3 text-sm",children:Uv.map(P=>g.jsxs("option",{"data-loc":"client/src/pages/Checkout.tsx:185",value:P.name,children:[P.name," (R$ ",P.fee.toFixed(2),")"]},P.name))})]}),g.jsxs("div",{"data-loc":"client/src/pages/Checkout.tsx:188",className:"col-span-2",children:[g.jsx(Nt,{"data-loc":"client/src/pages/Checkout.tsx:189",className:"text-xs font-bold mb-1 block",children:"Complemento"}),g.jsx(Fe,{"data-loc":"client/src/pages/Checkout.tsx:190",value:b.complement,onChange:P=>A({...b,complement:P.target.value}),placeholder:"Apto, Bloco...",className:"h-12 rounded-xl bg-secondary/30"})]})]})]}),g.jsxs("section",{"data-loc":"client/src/pages/Checkout.tsx:196",className:"mb-8",children:[g.jsx("h3",{"data-loc":"client/src/pages/Checkout.tsx:197",className:"font-bold text-lg mb-4",children:"Forma de Pagamento"}),g.jsx(a5,{"data-loc":"client/src/pages/Checkout.tsx:198",value:m,onValueChange:P=>v(P),className:"grid gap-3",children:["pix","dinheiro","cartao"].map(P=>g.jsxs("div",{"data-loc":"client/src/pages/Checkout.tsx:200",className:"flex items-center gap-3 border border-border rounded-xl p-4 has-[[data-state=checked]]:border-primary has-[[data-state=checked]]:bg-primary/5 transition-all cursor-pointer",children:[g.jsx(i5,{"data-loc":"client/src/pages/Checkout.tsx:201",value:P,id:P}),g.jsx(Nt,{"data-loc":"client/src/pages/Checkout.tsx:202",htmlFor:P,className:"flex-1 cursor-pointer font-bold capitalize",children:P})]},P))})]}),g.jsxs("section",{"data-loc":"client/src/pages/Checkout.tsx:209",className:"bg-card rounded-2xl p-6 border border-border shadow-sm",children:[g.jsx("h3",{"data-loc":"client/src/pages/Checkout.tsx:210",className:"font-bold mb-4",children:"Resumo"}),g.jsxs("div",{"data-loc":"client/src/pages/Checkout.tsx:211",className:"space-y-2 text-sm",children:[g.jsxs("div",{"data-loc":"client/src/pages/Checkout.tsx:212",className:"flex justify-between text-muted-foreground",children:[g.jsx("span",{"data-loc":"client/src/pages/Checkout.tsx:212",children:"Subtotal"}),g.jsxs("span",{"data-loc":"client/src/pages/Checkout.tsx:212",children:["R$ ",O.toFixed(2)]})]}),g.jsxs("div",{"data-loc":"client/src/pages/Checkout.tsx:213",className:"flex justify-between text-muted-foreground",children:[g.jsxs("span",{"data-loc":"client/src/pages/Checkout.tsx:213",children:["Taxa (",b.neighborhood,")"]}),g.jsxs("span",{"data-loc":"client/src/pages/Checkout.tsx:213",children:["R$ ",_.toFixed(2)]})]}),g.jsx(s5,{"data-loc":"client/src/pages/Checkout.tsx:214",className:"my-2"}),g.jsxs("div",{"data-loc":"client/src/pages/Checkout.tsx:215",className:"flex justify-between font-bold text-lg",children:[g.jsx("span",{"data-loc":"client/src/pages/Checkout.tsx:215",children:"Total"}),g.jsxs("span",{"data-loc":"client/src/pages/Checkout.tsx:215",className:"text-primary",children:["R$ ",T.toFixed(2)]})]})]})]})]}),g.jsx("div",{"data-loc":"client/src/pages/Checkout.tsx:220",className:"fixed bottom-0 left-0 right-0 bg-white border-t border-border p-4 pb-safe z-50 max-w-md mx-auto",children:g.jsx(be,{"data-loc":"client/src/pages/Checkout.tsx:221",className:"w-full h-14 rounded-xl text-lg font-bold shadow-lg",onClick:j,disabled:t,children:t?"Enviando...":"Enviar Pedido no WhatsApp"})})]})})}const wU=_4("inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function hr({className:e,variant:t,asChild:n=!1,...r}){const i=n?W3:"span";return g.jsx(i,{"data-loc":"client/src/components/ui/badge.tsx:38","data-slot":"badge",className:We(wU({variant:t}),e),...r})}function AU(){const e=Date.now().toString();return`00020126580014br.gov.bcb.pix0136${Math.random().toString(36).substring(2,15).padEnd(36,"0")}5204000053039865802BR5913BURGER${e.slice(-4)}6009SAO PAULO62410503***63047D91`}function OU(){return"data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 200 200%22%3E%3Crect fill=%22white%22 width=%22200%22 height=%22200%22/%3E%3Crect fill=%22black%22 x=%2220%22 y=%2220%22 width=%2260%22 height=%2260%22/%3E%3Crect fill=%22black%22 x=%22120%22 y=%2220%22 width=%2260%22 height=%2260%22/%3E%3Crect fill=%22black%22 x=%2220%22 y=%22120%22 width=%2260%22 height=%2260%22/%3E%3Crect fill=%22black%22 x=%2250%22 y=%2250%22 width=%2220%22 height=%2220%22/%3E%3Crect fill=%22black%22 x=%22130%22 y=%2250%22 width=%2220%22 height=%2220%22/%3E%3Crect fill=%22black%22 x=%2250%22 y=%22130%22 width=%2220%22 height=%2220%22/%3E%3C/svg%3E"}function eE(e,t){const n=e.items.map(i=>`• ${i.quantity}x ${i.name} - R$ ${i.price.toFixed(2)}`).join(`
`);let r=`Olá! 👋

Seu pedido foi recebido! 🍔

*Número do Pedido:* #${e.id}

*Itens:*
${n}

*Subtotal:* R$ ${(e.total-5).toFixed(2)}
*Taxa de Entrega:* R$ 5,00
*Total:* R$ ${e.total.toFixed(2)}

*Endereço de Entrega:*
${e.address}

`;return e.paymentMethod==="pix"&&t?r+=`*Forma de Pagamento:* PIX
*Código PIX:* \`${t.substring(0,20)}...\`

`:e.paymentMethod==="dinheiro"?r+=`*Forma de Pagamento:* DINHEIRO
Pagamento na entrega

`:e.paymentMethod==="cartao"&&(r+=`*Forma de Pagamento:* CARTÃO
Pagamento na entrega

`),r+=`Tempo estimado: 30-40 minutos ⏱️

Obrigado por pedir com a gente! 🙏`,r}function jU(e,t){const n=encodeURIComponent(t);return`https://wa.me/${e.replace(/\D/g,"")}?text=${n}`}function TU(e){const t=`ORD-${Date.now()}-${Math.random().toString(36).substring(2,9).toUpperCase()}`,n=new Date;return n.setMinutes(n.getMinutes()+15),{orderId:t,pixCode:AU(),pixQrCode:OU(),amount:e,expiresAt:n}}function CU(e){const t=new Date,n=e.getTime()-t.getTime();if(n<=0)return"Expirado";const r=Math.floor(n/6e4),i=Math.floor(n%6e4/1e3);return`${r}:${i.toString().padStart(2,"0")}`}function EU(){Gt();const e=new URLSearchParams(window.location.search),t=e.get("method")||"pix";decodeURIComponent(e.get("name")||"Cliente");const n=decodeURIComponent(e.get("phone")||""),[r,i]=C.useState(TU(43.9)),[s,l]=C.useState(!1),[u,d]=C.useState("15:00"),[f,p]=C.useState(!1),m={id:r.orderId,items:[{name:"Double Bacon Master",quantity:1,price:38.9},{name:"Coca-Cola Gelada",quantity:2,price:6.9}],total:43.9,address:"Rua das Flores, 123 - Apto 45, São Paulo, SP",paymentMethod:t};C.useEffect(()=>{const S=setInterval(()=>{d(CU(r.expiresAt))},1e3);return()=>clearInterval(S)},[r.expiresAt]);const v=()=>{navigator.clipboard.writeText(r.pixCode),l(!0),Ge.success("Código Pix copiado!"),setTimeout(()=>l(!1),2e3)},b=()=>{const S=eE(m,r.pixCode),w=jU(n,S);window.open(w,"_blank")},A=async()=>{const S=eE(m,r.pixCode);if(navigator.share)try{await navigator.share({title:"Meu Pedido - Burger Delivery",text:S})}catch{console.log("Compartilhamento cancelado")}else v(),Ge.success("Compartilhe manualmente via WhatsApp ou e-mail")};return g.jsx(So,{"data-loc":"client/src/pages/OrderConfirmation.tsx:92",showBottomNav:!1,children:g.jsxs("div",{"data-loc":"client/src/pages/OrderConfirmation.tsx:93",className:"bg-background min-h-screen flex flex-col pb-8",children:[g.jsxs("div",{"data-loc":"client/src/pages/OrderConfirmation.tsx:95",className:"px-6 py-8 text-center",children:[g.jsx("div",{"data-loc":"client/src/pages/OrderConfirmation.tsx:96",className:"w-16 h-16 rounded-full bg-accent/20 flex items-center justify-center mx-auto mb-4",children:g.jsx(u1,{"data-loc":"client/src/pages/OrderConfirmation.tsx:97",className:"w-8 h-8 text-accent",strokeWidth:3})}),g.jsx("h1",{"data-loc":"client/src/pages/OrderConfirmation.tsx:99",className:"text-2xl font-bold text-foreground mb-2",children:"Pedido Confirmado! 🎉"}),g.jsx("p",{"data-loc":"client/src/pages/OrderConfirmation.tsx:100",className:"text-muted-foreground",children:"Seu pedido foi recebido com sucesso"}),g.jsxs(hr,{"data-loc":"client/src/pages/OrderConfirmation.tsx:101",className:"mt-4 bg-primary/20 text-primary border-none",children:["#",r.orderId]})]}),g.jsxs("div",{"data-loc":"client/src/pages/OrderConfirmation.tsx:106",className:"px-6 space-y-6",children:[t==="pix"&&g.jsxs("section",{"data-loc":"client/src/pages/OrderConfirmation.tsx:109",className:"bg-card rounded-2xl p-6 border border-border shadow-sm",children:[g.jsxs("div",{"data-loc":"client/src/pages/OrderConfirmation.tsx:110",className:"flex items-center justify-between mb-4",children:[g.jsx("h3",{"data-loc":"client/src/pages/OrderConfirmation.tsx:111",className:"font-bold text-lg",children:"Pagamento via PIX"}),g.jsxs(hr,{"data-loc":"client/src/pages/OrderConfirmation.tsx:112",className:"bg-yellow-100 text-yellow-800 border-none text-xs",children:["⏱️ ",u]})]}),g.jsx("p",{"data-loc":"client/src/pages/OrderConfirmation.tsx:117",className:"text-sm text-muted-foreground mb-4",children:"Escaneie o QR Code ou copie o código abaixo para fazer o pagamento."}),g.jsxs("button",{"data-loc":"client/src/pages/OrderConfirmation.tsx:122",onClick:()=>p(!f),className:"w-full mb-4 p-4 border-2 border-dashed border-border rounded-xl hover:border-primary/50 transition-colors flex items-center justify-center gap-2 text-primary font-medium",children:[g.jsx(xw,{"data-loc":"client/src/pages/OrderConfirmation.tsx:126",size:20}),f?"Ocultar QR Code":"Mostrar QR Code"]}),f&&g.jsx("div",{"data-loc":"client/src/pages/OrderConfirmation.tsx:131",className:"flex justify-center mb-4 p-4 bg-secondary/30 rounded-xl",children:g.jsx("img",{"data-loc":"client/src/pages/OrderConfirmation.tsx:132",src:r.pixQrCode,alt:"QR Code Pix",className:"w-40 h-40"})}),g.jsxs("div",{"data-loc":"client/src/pages/OrderConfirmation.tsx:141",className:"bg-secondary/30 rounded-xl p-4 mb-4",children:[g.jsx("p",{"data-loc":"client/src/pages/OrderConfirmation.tsx:142",className:"text-xs text-muted-foreground font-medium mb-2",children:"Código PIX (Cópia e Cola)"}),g.jsxs("div",{"data-loc":"client/src/pages/OrderConfirmation.tsx:143",className:"flex items-center gap-2",children:[g.jsxs("code",{"data-loc":"client/src/pages/OrderConfirmation.tsx:144",className:"flex-1 text-xs font-mono break-all text-foreground",children:[r.pixCode.substring(0,50),"..."]}),g.jsx("button",{"data-loc":"client/src/pages/OrderConfirmation.tsx:147",onClick:v,className:"flex-shrink-0 w-10 h-10 rounded-lg bg-primary text-white flex items-center justify-center hover:bg-primary/90 transition-colors",children:s?g.jsx(u1,{"data-loc":"client/src/pages/OrderConfirmation.tsx:151",size:16}):g.jsx(K9,{"data-loc":"client/src/pages/OrderConfirmation.tsx:151",size:16})})]})]}),g.jsxs("p",{"data-loc":"client/src/pages/OrderConfirmation.tsx:156",className:"text-xs text-muted-foreground text-center",children:["O código expira em ",u]})]}),t==="dinheiro"&&g.jsxs("section",{"data-loc":"client/src/pages/OrderConfirmation.tsx:164",className:"bg-yellow-50 border border-yellow-200 rounded-2xl p-6",children:[g.jsx("h3",{"data-loc":"client/src/pages/OrderConfirmation.tsx:165",className:"font-bold text-lg text-yellow-900 mb-2",children:"Pagamento em Dinheiro"}),g.jsxs("p",{"data-loc":"client/src/pages/OrderConfirmation.tsx:166",className:"text-sm text-yellow-800",children:["Você pagará o valor de ",g.jsx("span",{"data-loc":"client/src/pages/OrderConfirmation.tsx:167",className:"font-bold",children:"R$ 43,90"})," ao receber o pedido."]})]}),t==="cartao"&&g.jsxs("section",{"data-loc":"client/src/pages/OrderConfirmation.tsx:173",className:"bg-blue-50 border border-blue-200 rounded-2xl p-6",children:[g.jsx("h3",{"data-loc":"client/src/pages/OrderConfirmation.tsx:174",className:"font-bold text-lg text-blue-900 mb-2",children:"Pagamento com Cartão"}),g.jsxs("p",{"data-loc":"client/src/pages/OrderConfirmation.tsx:175",className:"text-sm text-blue-800",children:["Você pagará o valor de ",g.jsx("span",{"data-loc":"client/src/pages/OrderConfirmation.tsx:176",className:"font-bold",children:"R$ 43,90"})," com cartão na entrega."]})]}),g.jsxs("section",{"data-loc":"client/src/pages/OrderConfirmation.tsx:182",className:"bg-card rounded-2xl p-6 border border-border shadow-sm",children:[g.jsx("h3",{"data-loc":"client/src/pages/OrderConfirmation.tsx:183",className:"font-bold text-lg mb-4",children:"Detalhes do Pedido"}),g.jsxs("div",{"data-loc":"client/src/pages/OrderConfirmation.tsx:185",className:"space-y-3 mb-4",children:[g.jsxs("div",{"data-loc":"client/src/pages/OrderConfirmation.tsx:186",className:"flex items-center gap-3",children:[g.jsx(xo,{"data-loc":"client/src/pages/OrderConfirmation.tsx:187",size:18,className:"text-primary"}),g.jsxs("div",{"data-loc":"client/src/pages/OrderConfirmation.tsx:188",children:[g.jsx("p",{"data-loc":"client/src/pages/OrderConfirmation.tsx:189",className:"text-xs text-muted-foreground",children:"Tempo de entrega"}),g.jsx("p",{"data-loc":"client/src/pages/OrderConfirmation.tsx:190",className:"font-bold",children:"30-40 minutos"})]})]}),g.jsxs("div",{"data-loc":"client/src/pages/OrderConfirmation.tsx:193",className:"flex items-center gap-3",children:[g.jsx(T3,{"data-loc":"client/src/pages/OrderConfirmation.tsx:194",size:18,className:"text-primary"}),g.jsxs("div",{"data-loc":"client/src/pages/OrderConfirmation.tsx:195",children:[g.jsx("p",{"data-loc":"client/src/pages/OrderConfirmation.tsx:196",className:"text-xs text-muted-foreground",children:"Endereço"}),g.jsx("p",{"data-loc":"client/src/pages/OrderConfirmation.tsx:197",className:"font-bold text-sm",children:"Rua das Flores, 123 - Apto 45"})]})]})]}),g.jsxs("div",{"data-loc":"client/src/pages/OrderConfirmation.tsx:202",className:"bg-secondary/30 rounded-xl p-3 text-sm",children:[g.jsxs("p",{"data-loc":"client/src/pages/OrderConfirmation.tsx:203",className:"text-muted-foreground mb-2",children:["Subtotal: ",g.jsx("span",{"data-loc":"client/src/pages/OrderConfirmation.tsx:203",className:"font-bold text-foreground",children:"R$ 38,90"})]}),g.jsxs("p",{"data-loc":"client/src/pages/OrderConfirmation.tsx:204",className:"text-muted-foreground",children:["Taxa de entrega: ",g.jsx("span",{"data-loc":"client/src/pages/OrderConfirmation.tsx:204",className:"font-bold text-foreground",children:"R$ 5,00"})]}),g.jsxs("p",{"data-loc":"client/src/pages/OrderConfirmation.tsx:205",className:"text-muted-foreground mt-2 pt-2 border-t border-border",children:["Total: ",g.jsx("span",{"data-loc":"client/src/pages/OrderConfirmation.tsx:206",className:"font-bold text-primary text-base",children:"R$ 43,90"})]})]})]}),g.jsxs("div",{"data-loc":"client/src/pages/OrderConfirmation.tsx:212",className:"space-y-3",children:[g.jsxs(be,{"data-loc":"client/src/pages/OrderConfirmation.tsx:213",className:"w-full h-12 rounded-xl font-bold flex items-center justify-center gap-2 bg-primary hover:bg-primary/90 text-white",onClick:()=>window.location.href="/order-tracking",children:[g.jsx(gw,{"data-loc":"client/src/pages/OrderConfirmation.tsx:217",size:18}),"Rastrear Pedido em Tempo Real"]}),g.jsxs(be,{"data-loc":"client/src/pages/OrderConfirmation.tsx:221",className:"w-full h-12 rounded-xl font-bold flex items-center justify-center gap-2 bg-green-600 hover:bg-green-700 text-white",onClick:b,children:[g.jsx(yw,{"data-loc":"client/src/pages/OrderConfirmation.tsx:225",size:18}),"Compartilhar no WhatsApp"]}),g.jsxs(be,{"data-loc":"client/src/pages/OrderConfirmation.tsx:229",variant:"outline",className:"w-full h-12 rounded-xl font-bold flex items-center justify-center gap-2",onClick:A,children:[g.jsx(R3,{"data-loc":"client/src/pages/OrderConfirmation.tsx:234",size:18}),"Compartilhar Pedido"]}),g.jsx(be,{"data-loc":"client/src/pages/OrderConfirmation.tsx:238",variant:"outline",className:"w-full h-12 rounded-xl font-bold",onClick:()=>window.location.href="/",children:"Voltar ao Início"})]})]})]})})}const _U=void 0,PU="https://forge.butterfly-effect.dev",NU=`${PU}/v1/maps/proxy`;function MU(){return new Promise(e=>{const t=document.createElement("script");t.src=`${NU}/maps/api/js?key=${_U}&v=weekly&libraries=marker,places,geocoding,geometry`,t.async=!0,t.crossOrigin="anonymous",t.onload=()=>{e(null),t.remove()},t.onerror=()=>{console.error("Failed to load Google Maps script")},document.head.appendChild(t)})}function DU({className:e,initialCenter:t={lat:37.7749,lng:-122.4194},initialZoom:n=12,onMapReady:r}){const i=C.useRef(null),s=C.useRef(null),l=Dc(async()=>{if(await MU(),!i.current){console.error("Map container not found");return}s.current=new window.google.maps.Map(i.current,{zoom:n,center:t,mapTypeControl:!0,fullscreenControl:!0,zoomControl:!0,streetViewControl:!0,mapId:"DEMO_MAP_ID"}),r&&r(s.current)});return C.useEffect(()=>{l()},[l]),g.jsx("div",{"data-loc":"client/src/components/Map.tsx:153",ref:i,className:We("w-full h-[500px]",e)})}const oi={lat:-23.5505,lng:-46.6333},Nf={lat:-23.5615,lng:-46.6553};function RU(){const[,e]=Gt(),[t,n]=C.useState("preparando"),[r,i]=C.useState(oi),s=C.useRef(null),l=C.useRef(null);C.useEffect(()=>{if(t==="preparando"){const d=setTimeout(()=>n("caminho"),5e3);return()=>clearTimeout(d)}if(t==="caminho"){let d=0;const f=100,p=setInterval(()=>{d++;const m=oi.lat+(Nf.lat-oi.lat)*(d/f),v=oi.lng+(Nf.lng-oi.lng)*(d/f);i({lat:m,lng:v}),d>=f&&(clearInterval(p),n("entregue"),Ge.success("Seu pedido chegou!"))},1e3);return()=>clearInterval(p)}},[t]);const u=d=>{s.current=d,new google.maps.marker.AdvancedMarkerElement({map:d,position:oi,title:"Dog Melina"}),new google.maps.marker.AdvancedMarkerElement({map:d,position:Nf,title:"Você"}),l.current=new google.maps.marker.AdvancedMarkerElement({map:d,position:r,title:"Entregador"});const f=new google.maps.LatLngBounds;f.extend(oi),f.extend(Nf),d.fitBounds(f)};return C.useEffect(()=>{l.current&&(l.current.position=r)},[r]),g.jsx(So,{"data-loc":"client/src/pages/OrderTracking.tsx:98",showBottomNav:!1,children:g.jsxs("div",{"data-loc":"client/src/pages/OrderTracking.tsx:99",className:"flex flex-col h-screen bg-background",children:[g.jsxs("div",{"data-loc":"client/src/pages/OrderTracking.tsx:101",className:"px-6 py-4 flex items-center gap-4 bg-background border-b border-border sticky top-0 z-20",children:[g.jsx("button",{"data-loc":"client/src/pages/OrderTracking.tsx:102",onClick:()=>window.history.back(),className:"w-10 h-10 rounded-full bg-secondary flex items-center justify-center",children:g.jsx(O3,{"data-loc":"client/src/pages/OrderTracking.tsx:106",size:20})}),g.jsxs("div",{"data-loc":"client/src/pages/OrderTracking.tsx:108",children:[g.jsx("h1",{"data-loc":"client/src/pages/OrderTracking.tsx:109",className:"text-lg font-bold",children:"Rastrear Pedido"}),g.jsx("p",{"data-loc":"client/src/pages/OrderTracking.tsx:110",className:"text-xs text-muted-foreground",children:"Pedido #DM-9823"})]})]}),g.jsxs("div",{"data-loc":"client/src/pages/OrderTracking.tsx:115",className:"flex-1 relative",children:[g.jsx(DU,{"data-loc":"client/src/pages/OrderTracking.tsx:116",className:"w-full h-full",onMapReady:u,initialCenter:oi,initialZoom:14}),g.jsx("div",{"data-loc":"client/src/pages/OrderTracking.tsx:124",className:"absolute top-4 left-4 right-4",children:g.jsxs("div",{"data-loc":"client/src/pages/OrderTracking.tsx:125",className:"bg-white/90 backdrop-blur-md p-4 rounded-2xl shadow-lg border border-white/20",children:[g.jsxs("div",{"data-loc":"client/src/pages/OrderTracking.tsx:126",className:"flex items-center justify-between mb-3",children:[g.jsx(hr,{"data-loc":"client/src/pages/OrderTracking.tsx:127",className:Mf("border-none px-3 py-1",t==="preparando"?"bg-yellow-100 text-yellow-700":t==="caminho"?"bg-blue-100 text-blue-700":"bg-green-100 text-green-700"),children:t==="preparando"?"Preparando seu pedido":t==="caminho"?"Pedido a caminho":"Pedido entregue"}),g.jsx("span",{"data-loc":"client/src/pages/OrderTracking.tsx:137",className:"text-sm font-bold text-primary",children:"15-20 min"})]}),g.jsxs("div",{"data-loc":"client/src/pages/OrderTracking.tsx:140",className:"flex justify-between relative px-2",children:[g.jsx("div",{"data-loc":"client/src/pages/OrderTracking.tsx:141",className:"absolute top-1/2 left-0 right-0 h-0.5 bg-muted -translate-y-1/2 z-0"}),g.jsx("div",{"data-loc":"client/src/pages/OrderTracking.tsx:142",className:Mf("w-8 h-8 rounded-full flex items-center justify-center z-10 border-2",t!=="preparando"?"bg-primary border-primary text-white":"bg-white border-primary text-primary"),children:g.jsx(eq,{"data-loc":"client/src/pages/OrderTracking.tsx:143",size:16})}),g.jsx("div",{"data-loc":"client/src/pages/OrderTracking.tsx:145",className:Mf("w-8 h-8 rounded-full flex items-center justify-center z-10 border-2",t==="entregue"?"bg-primary border-primary text-white":t==="caminho"?"bg-white border-primary text-primary":"bg-white border-muted text-muted"),children:g.jsx(gw,{"data-loc":"client/src/pages/OrderTracking.tsx:146",size:16})}),g.jsx("div",{"data-loc":"client/src/pages/OrderTracking.tsx:148",className:Mf("w-8 h-8 rounded-full flex items-center justify-center z-10 border-2",t==="entregue"?"bg-primary border-primary text-white":"bg-white border-muted text-muted"),children:g.jsx(F9,{"data-loc":"client/src/pages/OrderTracking.tsx:149",size:16})})]})]})})]}),g.jsxs("div",{"data-loc":"client/src/pages/OrderTracking.tsx:157",className:"bg-card rounded-t-[32px] p-6 shadow-[0_-8px_30px_rgb(0,0,0,0.04)] border-t border-border",children:[g.jsxs("div",{"data-loc":"client/src/pages/OrderTracking.tsx:158",className:"flex items-center justify-between mb-6",children:[g.jsxs("div",{"data-loc":"client/src/pages/OrderTracking.tsx:159",className:"flex items-center gap-4",children:[g.jsx("div",{"data-loc":"client/src/pages/OrderTracking.tsx:160",className:"w-14 h-14 rounded-2xl bg-secondary overflow-hidden border-2 border-white shadow-sm",children:g.jsx("img",{"data-loc":"client/src/pages/OrderTracking.tsx:161",src:"https://api.dicebear.com/7.x/avataaars/svg?seed=Carlos",alt:"Entregador"})}),g.jsxs("div",{"data-loc":"client/src/pages/OrderTracking.tsx:163",children:[g.jsx("h3",{"data-loc":"client/src/pages/OrderTracking.tsx:164",className:"font-bold text-lg",children:"Carlos Silva"}),g.jsxs("div",{"data-loc":"client/src/pages/OrderTracking.tsx:165",className:"flex items-center gap-1 text-xs text-muted-foreground",children:[g.jsx(qu,{"data-loc":"client/src/pages/OrderTracking.tsx:166",size:12,className:"fill-primary text-primary"}),g.jsx("span",{"data-loc":"client/src/pages/OrderTracking.tsx:167",className:"font-bold text-foreground",children:"4.9"}),g.jsx("span",{"data-loc":"client/src/pages/OrderTracking.tsx:168",children:"• Honda CG 160 (ABC-1234)"})]})]})]}),g.jsxs("div",{"data-loc":"client/src/pages/OrderTracking.tsx:172",className:"flex gap-2",children:[g.jsx("button",{"data-loc":"client/src/pages/OrderTracking.tsx:173",className:"w-12 h-12 rounded-xl bg-primary/10 text-primary flex items-center justify-center hover:bg-primary hover:text-white transition-colors",children:g.jsx(Zc,{"data-loc":"client/src/pages/OrderTracking.tsx:174",size:20})}),g.jsx("button",{"data-loc":"client/src/pages/OrderTracking.tsx:176",className:"w-12 h-12 rounded-xl bg-primary/10 text-primary flex items-center justify-center hover:bg-primary hover:text-white transition-colors",children:g.jsx(yw,{"data-loc":"client/src/pages/OrderTracking.tsx:177",size:20})})]})]}),g.jsxs("div",{"data-loc":"client/src/pages/OrderTracking.tsx:182",className:"space-y-4",children:[g.jsxs("div",{"data-loc":"client/src/pages/OrderTracking.tsx:183",className:"flex items-start gap-3",children:[g.jsx("div",{"data-loc":"client/src/pages/OrderTracking.tsx:184",className:"w-8 h-8 rounded-full bg-secondary flex items-center justify-center flex-shrink-0",children:g.jsx(fr,{"data-loc":"client/src/pages/OrderTracking.tsx:185",size:16,className:"text-primary"})}),g.jsxs("div",{"data-loc":"client/src/pages/OrderTracking.tsx:187",children:[g.jsx("p",{"data-loc":"client/src/pages/OrderTracking.tsx:188",className:"text-xs text-muted-foreground",children:"Endereço de Entrega"}),g.jsx("p",{"data-loc":"client/src/pages/OrderTracking.tsx:189",className:"text-sm font-medium",children:"Rua das Flores, 123 - Apto 45, São Paulo"})]})]}),g.jsxs("div",{"data-loc":"client/src/pages/OrderTracking.tsx:192",className:"flex items-start gap-3",children:[g.jsx("div",{"data-loc":"client/src/pages/OrderTracking.tsx:193",className:"w-8 h-8 rounded-full bg-secondary flex items-center justify-center flex-shrink-0",children:g.jsx(xo,{"data-loc":"client/src/pages/OrderTracking.tsx:194",size:16,className:"text-primary"})}),g.jsxs("div",{"data-loc":"client/src/pages/OrderTracking.tsx:196",children:[g.jsx("p",{"data-loc":"client/src/pages/OrderTracking.tsx:197",className:"text-xs text-muted-foreground",children:"Previsão de Entrega"}),g.jsx("p",{"data-loc":"client/src/pages/OrderTracking.tsx:198",className:"text-sm font-medium",children:"Hoje, entre 20:45 e 21:00"})]})]})]}),g.jsx(be,{"data-loc":"client/src/pages/OrderTracking.tsx:203",className:"w-full h-12 rounded-xl font-bold mt-6",onClick:()=>e("/"),children:"Voltar para a Loja"})]})]})})}function Mf(...e){return e.filter(Boolean).join(" ")}var wp="Tabs",[kU]=Ea(wp,[xp]),l5=xp(),[LU,Nw]=kU(wp),c5=C.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,onValueChange:i,defaultValue:s,orientation:l="horizontal",dir:u,activationMode:d="automatic",...f}=e,p=bp(u),[m,v]=ml({prop:r,onChange:i,defaultProp:s??"",caller:wp});return g.jsx(LU,{scope:n,baseId:$c(),value:m,onValueChange:v,orientation:l,dir:p,activationMode:d,children:g.jsx(Ze.div,{dir:p,"data-orientation":l,...f,ref:t})})});c5.displayName=wp;var u5="TabsList",d5=C.forwardRef((e,t)=>{const{__scopeTabs:n,loop:r=!0,...i}=e,s=Nw(u5,n),l=l5(n);return g.jsx(H4,{asChild:!0,...l,orientation:s.orientation,dir:s.dir,loop:r,children:g.jsx(Ze.div,{role:"tablist","aria-orientation":s.orientation,...i,ref:t})})});d5.displayName=u5;var f5="TabsTrigger",h5=C.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,disabled:i=!1,...s}=e,l=Nw(f5,n),u=l5(n),d=g5(l.baseId,r),f=v5(l.baseId,r),p=r===l.value;return g.jsx(F4,{asChild:!0,...u,focusable:!i,active:p,children:g.jsx(Ze.button,{type:"button",role:"tab","aria-selected":p,"aria-controls":f,"data-state":p?"active":"inactive","data-disabled":i?"":void 0,disabled:i,id:d,...s,ref:t,onMouseDown:et(e.onMouseDown,m=>{!i&&m.button===0&&m.ctrlKey===!1?l.onValueChange(r):m.preventDefault()}),onKeyDown:et(e.onKeyDown,m=>{[" ","Enter"].includes(m.key)&&l.onValueChange(r)}),onFocus:et(e.onFocus,()=>{const m=l.activationMode!=="manual";!p&&!i&&m&&l.onValueChange(r)})})})});h5.displayName=f5;var p5="TabsContent",m5=C.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,forceMount:i,children:s,...l}=e,u=Nw(p5,n),d=g5(u.baseId,r),f=v5(u.baseId,r),p=r===u.value,m=C.useRef(p);return C.useEffect(()=>{const v=requestAnimationFrame(()=>m.current=!1);return()=>cancelAnimationFrame(v)},[]),g.jsx(_r,{present:i||p,children:({present:v})=>g.jsx(Ze.div,{"data-state":p?"active":"inactive","data-orientation":u.orientation,role:"tabpanel","aria-labelledby":d,hidden:!v,id:f,tabIndex:0,...l,ref:t,style:{...e.style,animationDuration:m.current?"0s":void 0},children:v&&s})})});m5.displayName=p5;function g5(e,t){return`${e}-trigger-${t}`}function v5(e,t){return`${e}-content-${t}`}var zU=c5,$U=d5,BU=h5,IU=m5;function y5({className:e,...t}){return g.jsx(zU,{"data-loc":"client/src/components/ui/tabs.tsx:11","data-slot":"tabs",className:We("flex flex-col gap-2",e),...t})}function b5({className:e,...t}){return g.jsx($U,{"data-loc":"client/src/components/ui/tabs.tsx:24","data-slot":"tabs-list",className:We("bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg p-[3px]",e),...t})}function Qi({className:e,...t}){return g.jsx(BU,{"data-loc":"client/src/components/ui/tabs.tsx:40","data-slot":"tabs-trigger",className:We("data-[state=active]:bg-background dark:data-[state=active]:text-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 text-foreground dark:text-muted-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...t})}function Jf({className:e,...t}){return g.jsx(IU,{"data-loc":"client/src/components/ui/tabs.tsx:56","data-slot":"tabs-content",className:We("flex-1 outline-none",e),...t})}const si={id:"user-123",name:"João Silva",email:"joao.silva@email.com",phone:"(11) 98765-4321",avatar:"https://api.dicebear.com/7.x/avataaars/svg?seed=Felix",joinedAt:new Date("2023-06-15")},qU=[{id:"addr-1",label:"Casa",street:"Rua das Flores",number:"123",complement:"Apto 45",neighborhood:"Vila Mariana",city:"São Paulo",state:"SP",zipCode:"01234-567",isDefault:!0},{id:"addr-2",label:"Trabalho",street:"Avenida Paulista",number:"1000",complement:"Sala 1200",neighborhood:"Bela Vista",city:"São Paulo",state:"SP",zipCode:"01311-100",isDefault:!1},{id:"addr-3",label:"Casa da Mãe",street:"Rua das Acácias",number:"456",neighborhood:"Pinheiros",city:"São Paulo",state:"SP",zipCode:"05429-000",isDefault:!1}],VU=[{id:"ORD-20240115-ABC123",items:[{name:"Double Bacon Master",quantity:1,price:38.9},{name:"Coca-Cola Gelada",quantity:2,price:6.9}],total:51.7,status:"entregue",createdAt:new Date("2024-01-15T19:30:00"),deliveredAt:new Date("2024-01-15T20:05:00"),address:"Rua das Flores, 123 - Apto 45"},{id:"ORD-20240112-XYZ789",items:[{name:"Classic Cheese",quantity:2,price:28.9},{name:"Smash Salad",quantity:1,price:24.9},{name:"Batata Média",quantity:1,price:12}],total:94.6,status:"entregue",createdAt:new Date("2024-01-12T18:45:00"),deliveredAt:new Date("2024-01-12T19:20:00"),address:"Avenida Paulista, 1000 - Sala 1200"},{id:"ORD-20240110-DEF456",items:[{name:"Combo Família",quantity:1,price:129.9}],total:134.9,status:"entregue",createdAt:new Date("2024-01-10T20:00:00"),deliveredAt:new Date("2024-01-10T20:35:00"),address:"Rua das Flores, 123 - Apto 45"},{id:"ORD-20240108-GHI012",items:[{name:"Double Bacon Master",quantity:1,price:38.9},{name:"Batata Grande",quantity:1,price:15},{name:"Suco Natural",quantity:2,price:8.5}],total:70.9,status:"cancelado",createdAt:new Date("2024-01-08T19:15:00"),address:"Rua das Acácias, 456"},{id:"ORD-20240105-JKL345",items:[{name:"Classic Cheese",quantity:1,price:28.9},{name:"Coca-Cola Gelada",quantity:1,price:6.9}],total:35.8,status:"entregue",createdAt:new Date("2024-01-05T18:30:00"),deliveredAt:new Date("2024-01-05T19:00:00"),address:"Rua das Flores, 123 - Apto 45"}];function UU(e){const t=e.complement?` - ${e.complement}`:"";return`${e.street}, ${e.number}${t}, ${e.neighborhood}`}function HU(e){return{entregue:"Entregue",cancelado:"Cancelado","em-preparo":"Em Preparo","saiu-entrega":"Saiu para Entrega"}[e]}function FU(e){return{entregue:"bg-green-100 text-green-800",cancelado:"bg-red-100 text-red-800","em-preparo":"bg-blue-100 text-blue-800","saiu-entrega":"bg-orange-100 text-orange-800"}[e]}function GU(){const[e,t]=C.useState("dados"),[n,r]=C.useState(!1),[i,s]=C.useState(!1),[l,u]=C.useState(si),[d,f]=C.useState(()=>{const T=localStorage.getItem("dogmelina_addresses");return T?JSON.parse(T):qU}),[p,m]=C.useState(null),[v,b]=C.useState(!1);C.useEffect(()=>{localStorage.setItem("dogmelina_addresses",JSON.stringify(d))},[d]);const A=()=>{Ge.success("Perfil atualizado com sucesso!"),r(!1)},S=T=>{m({...T}),s(!0)},w=()=>{if(p.id)f(d.map(T=>T.id===p.id?p:T));else{const T={...p,id:Date.now().toString()};f([...d,T])}Ge.success("Endereço salvo com sucesso!"),s(!1)},O=()=>{if(!navigator.geolocation){Ge.error("Geolocalização não é suportada pelo seu navegador");return}b(!0),navigator.geolocation.getCurrentPosition(async T=>{const{latitude:M,longitude:j}=T.coords;try{setTimeout(()=>{m({...p,street:"Rua Detectada Automaticamente",number:"S/N",neighborhood:"Bairro Atual",city:"São Paulo",state:"SP",zipCode:"01001-000"}),b(!1),Ge.success("Localização detectada!")},1500)}catch{b(!1),Ge.error("Erro ao obter endereço")}},()=>{b(!1),Ge.error("Não foi possível obter sua localização")})},_=new Date(si.joinedAt).toLocaleDateString("pt-BR",{year:"numeric",month:"long",day:"numeric"});return g.jsxs(So,{"data-loc":"client/src/pages/Profile.tsx:114",children:[g.jsxs("div",{"data-loc":"client/src/pages/Profile.tsx:115",className:"bg-background min-h-screen pb-8",children:[g.jsxs("header",{"data-loc":"client/src/pages/Profile.tsx:117",className:"px-6 py-4 flex items-center gap-4 sticky top-0 bg-background/80 backdrop-blur-md z-10 border-b border-border/50",children:[g.jsx("button",{"data-loc":"client/src/pages/Profile.tsx:118",onClick:()=>window.history.back(),className:"w-10 h-10 rounded-full bg-secondary flex items-center justify-center hover:bg-secondary/80 transition-colors",children:g.jsx(mr,{"data-loc":"client/src/pages/Profile.tsx:122",size:20})}),g.jsx("h1",{"data-loc":"client/src/pages/Profile.tsx:124",className:"text-xl font-bold",children:"Meu Perfil"})]}),g.jsx("div",{"data-loc":"client/src/pages/Profile.tsx:128",className:"px-6 py-6",children:g.jsxs("div",{"data-loc":"client/src/pages/Profile.tsx:129",className:"bg-gradient-to-br from-primary/10 to-accent/10 rounded-2xl p-6 border border-border/50 flex items-center gap-4",children:[g.jsx("div",{"data-loc":"client/src/pages/Profile.tsx:130",className:"w-16 h-16 rounded-full bg-white shadow-md overflow-hidden flex-shrink-0 border-2 border-primary",children:g.jsx("img",{"data-loc":"client/src/pages/Profile.tsx:131",src:si.avatar,alt:si.name,className:"w-full h-full"})}),g.jsxs("div",{"data-loc":"client/src/pages/Profile.tsx:133",className:"flex-1",children:[g.jsx("h2",{"data-loc":"client/src/pages/Profile.tsx:134",className:"text-xl font-bold text-foreground",children:si.name}),g.jsxs("p",{"data-loc":"client/src/pages/Profile.tsx:135",className:"text-sm text-muted-foreground",children:["Membro desde ",_]}),g.jsxs("div",{"data-loc":"client/src/pages/Profile.tsx:136",className:"flex items-center gap-2 mt-2",children:[g.jsx(qu,{"data-loc":"client/src/pages/Profile.tsx:137",size:14,className:"fill-yellow-400 text-yellow-400"}),g.jsx("span",{"data-loc":"client/src/pages/Profile.tsx:138",className:"text-xs font-bold",children:"4.8 • 15 pedidos"})]})]}),g.jsx("button",{"data-loc":"client/src/pages/Profile.tsx:141",onClick:()=>r(!0),className:"w-10 h-10 rounded-full bg-primary text-white flex items-center justify-center hover:bg-primary/90 transition-colors",children:g.jsx(ih,{"data-loc":"client/src/pages/Profile.tsx:145",size:16})})]})}),g.jsx("div",{"data-loc":"client/src/pages/Profile.tsx:151",className:"px-6",children:g.jsxs(y5,{"data-loc":"client/src/pages/Profile.tsx:152",value:e,onValueChange:t,className:"w-full",children:[g.jsxs(b5,{"data-loc":"client/src/pages/Profile.tsx:153",className:"grid w-full grid-cols-3 bg-secondary/30 rounded-xl p-1",children:[g.jsxs(Qi,{"data-loc":"client/src/pages/Profile.tsx:154",value:"dados",className:"rounded-lg data-[state=active]:bg-white",children:[g.jsx(Ls,{"data-loc":"client/src/pages/Profile.tsx:155",size:16,className:"mr-2"}),g.jsx("span",{"data-loc":"client/src/pages/Profile.tsx:156",className:"hidden sm:inline",children:"Dados"})]}),g.jsxs(Qi,{"data-loc":"client/src/pages/Profile.tsx:158",value:"pedidos",className:"rounded-lg data-[state=active]:bg-white",children:[g.jsx(xo,{"data-loc":"client/src/pages/Profile.tsx:159",size:16,className:"mr-2"}),g.jsx("span",{"data-loc":"client/src/pages/Profile.tsx:160",className:"hidden sm:inline",children:"Pedidos"})]}),g.jsxs(Qi,{"data-loc":"client/src/pages/Profile.tsx:162",value:"enderecos",className:"rounded-lg data-[state=active]:bg-white",children:[g.jsx(fr,{"data-loc":"client/src/pages/Profile.tsx:163",size:16,className:"mr-2"}),g.jsx("span",{"data-loc":"client/src/pages/Profile.tsx:164",className:"hidden sm:inline",children:"Endereços"})]})]}),g.jsxs(Jf,{"data-loc":"client/src/pages/Profile.tsx:169",value:"dados",className:"mt-6 space-y-4",children:[g.jsxs("div",{"data-loc":"client/src/pages/Profile.tsx:170",className:"bg-card rounded-2xl p-6 border border-border shadow-sm space-y-4",children:[g.jsxs("div",{"data-loc":"client/src/pages/Profile.tsx:171",children:[g.jsx("p",{"data-loc":"client/src/pages/Profile.tsx:172",className:"text-xs text-muted-foreground font-medium mb-1",children:"Nome Completo"}),g.jsx("p",{"data-loc":"client/src/pages/Profile.tsx:173",className:"font-bold text-foreground",children:si.name})]}),g.jsxs("div",{"data-loc":"client/src/pages/Profile.tsx:175",className:"border-t border-border pt-4",children:[g.jsx("p",{"data-loc":"client/src/pages/Profile.tsx:176",className:"text-xs text-muted-foreground font-medium mb-1",children:"Email"}),g.jsx("p",{"data-loc":"client/src/pages/Profile.tsx:177",className:"font-bold text-foreground",children:si.email})]}),g.jsxs("div",{"data-loc":"client/src/pages/Profile.tsx:179",className:"border-t border-border pt-4",children:[g.jsx("p",{"data-loc":"client/src/pages/Profile.tsx:180",className:"text-xs text-muted-foreground font-medium mb-1",children:"Telefone"}),g.jsx("p",{"data-loc":"client/src/pages/Profile.tsx:181",className:"font-bold text-foreground",children:si.phone})]})]}),g.jsx("div",{"data-loc":"client/src/pages/Profile.tsx:185",className:"space-y-3",children:g.jsxs(be,{"data-loc":"client/src/pages/Profile.tsx:186",variant:"outline",className:"w-full h-12 rounded-xl font-bold text-destructive hover:text-destructive",children:[g.jsx(vw,{"data-loc":"client/src/pages/Profile.tsx:187",size:16,className:"mr-2"}),"Sair da Conta"]})})]}),g.jsx(Jf,{"data-loc":"client/src/pages/Profile.tsx:194",value:"pedidos",className:"mt-6 space-y-4",children:VU.map(T=>g.jsxs("div",{"data-loc":"client/src/pages/Profile.tsx:196",className:"bg-card rounded-2xl p-4 border border-border shadow-sm hover:shadow-md transition-shadow cursor-pointer",children:[g.jsxs("div",{"data-loc":"client/src/pages/Profile.tsx:197",className:"flex items-start justify-between mb-3",children:[g.jsxs("div",{"data-loc":"client/src/pages/Profile.tsx:198",children:[g.jsx("p",{"data-loc":"client/src/pages/Profile.tsx:199",className:"text-xs text-muted-foreground font-medium",children:"Pedido"}),g.jsx("p",{"data-loc":"client/src/pages/Profile.tsx:200",className:"font-bold text-foreground",children:T.id})]}),g.jsx(hr,{"data-loc":"client/src/pages/Profile.tsx:202",className:`${FU(T.status)} border-none text-xs font-bold`,children:HU(T.status)})]}),g.jsxs("div",{"data-loc":"client/src/pages/Profile.tsx:206",className:"flex items-center justify-between",children:[g.jsxs("p",{"data-loc":"client/src/pages/Profile.tsx:207",className:"text-sm font-bold text-primary",children:["R$ ",T.total.toFixed(2)]}),g.jsx(pp,{"data-loc":"client/src/pages/Profile.tsx:208",size:20,className:"text-muted-foreground"})]})]},T.id))}),g.jsxs(Jf,{"data-loc":"client/src/pages/Profile.tsx:215",value:"enderecos",className:"mt-6 space-y-4",children:[d.map(T=>g.jsxs("div",{"data-loc":"client/src/pages/Profile.tsx:217",className:`rounded-2xl p-4 border-2 transition-all ${T.isDefault?"bg-primary/5 border-primary":"bg-card border-border shadow-sm"}`,children:[g.jsxs("div",{"data-loc":"client/src/pages/Profile.tsx:218",className:"flex items-start justify-between mb-3",children:[g.jsxs("div",{"data-loc":"client/src/pages/Profile.tsx:219",className:"flex items-center gap-2",children:[g.jsx(fr,{"data-loc":"client/src/pages/Profile.tsx:220",size:18,className:T.isDefault?"text-primary":"text-muted-foreground"}),g.jsx("p",{"data-loc":"client/src/pages/Profile.tsx:221",className:"font-bold text-foreground",children:T.label})]}),g.jsx("button",{"data-loc":"client/src/pages/Profile.tsx:223",onClick:()=>S(T),className:"w-8 h-8 rounded-lg bg-secondary hover:bg-secondary/80 transition-colors flex items-center justify-center",children:g.jsx(ih,{"data-loc":"client/src/pages/Profile.tsx:227",size:14})})]}),g.jsx("p",{"data-loc":"client/src/pages/Profile.tsx:230",className:"text-sm text-muted-foreground leading-relaxed",children:UU(T)})]},T.id)),g.jsxs(be,{"data-loc":"client/src/pages/Profile.tsx:236",variant:"outline",className:"w-full h-12 rounded-xl font-bold flex items-center justify-center gap-2",onClick:()=>{m({label:"Novo Endereço",street:"",number:"",neighborhood:"",city:"",state:"",zipCode:"",isDefault:!1}),s(!0)},children:[g.jsx(bi,{"data-loc":"client/src/pages/Profile.tsx:244",size:18}),"Adicionar Novo Endereço"]})]})]})})]}),g.jsx(v1,{"data-loc":"client/src/pages/Profile.tsx:253",open:n,onOpenChange:r,children:g.jsxs(y1,{"data-loc":"client/src/pages/Profile.tsx:254",className:"max-w-md rounded-2xl",children:[g.jsx(b1,{"data-loc":"client/src/pages/Profile.tsx:255",children:g.jsx(x1,{"data-loc":"client/src/pages/Profile.tsx:255",children:"Editar Perfil"})}),g.jsxs("div",{"data-loc":"client/src/pages/Profile.tsx:256",className:"space-y-4 py-4",children:[g.jsxs("div",{"data-loc":"client/src/pages/Profile.tsx:257",children:[g.jsx(Nt,{"data-loc":"client/src/pages/Profile.tsx:258",className:"text-sm font-medium mb-2 block",children:"Nome Completo"}),g.jsx(Fe,{"data-loc":"client/src/pages/Profile.tsx:259",value:l.name,onChange:T=>u({...l,name:T.target.value}),className:"bg-secondary/30 border-border"})]}),g.jsxs("div",{"data-loc":"client/src/pages/Profile.tsx:261",className:"flex gap-3 pt-4",children:[g.jsx(be,{"data-loc":"client/src/pages/Profile.tsx:262",variant:"outline",className:"flex-1 h-10 rounded-lg",onClick:()=>r(!1),children:"Cancelar"}),g.jsx(be,{"data-loc":"client/src/pages/Profile.tsx:263",className:"flex-1 h-10 rounded-lg",onClick:A,children:"Salvar"})]})]})]})}),g.jsx(v1,{"data-loc":"client/src/pages/Profile.tsx:270",open:i,onOpenChange:s,children:g.jsxs(y1,{"data-loc":"client/src/pages/Profile.tsx:271",className:"max-w-md rounded-2xl overflow-y-auto max-h-[90vh]",children:[g.jsx(b1,{"data-loc":"client/src/pages/Profile.tsx:272",children:g.jsx(x1,{"data-loc":"client/src/pages/Profile.tsx:273",children:p?.id?"Editar Endereço":"Novo Endereço"})}),g.jsxs("div",{"data-loc":"client/src/pages/Profile.tsx:276",className:"space-y-4 py-4",children:[g.jsxs(be,{"data-loc":"client/src/pages/Profile.tsx:277",variant:"secondary",className:"w-full h-10 rounded-lg flex items-center justify-center gap-2 bg-primary/10 text-primary hover:bg-primary/20 border-none",onClick:O,disabled:v,children:[v?g.jsx(E3,{"data-loc":"client/src/pages/Profile.tsx:283",size:18,className:"animate-spin"}):g.jsx(N3,{"data-loc":"client/src/pages/Profile.tsx:283",size:18}),v?"Detectando...":"Usar Localização Atual"]}),g.jsxs("div",{"data-loc":"client/src/pages/Profile.tsx:287",className:"grid grid-cols-2 gap-4",children:[g.jsxs("div",{"data-loc":"client/src/pages/Profile.tsx:288",className:"col-span-2",children:[g.jsx(Nt,{"data-loc":"client/src/pages/Profile.tsx:289",className:"text-sm font-medium mb-1 block",children:"Identificação (Ex: Casa, Trabalho)"}),g.jsx(Fe,{"data-loc":"client/src/pages/Profile.tsx:290",value:p?.label,onChange:T=>m({...p,label:T.target.value}),className:"bg-secondary/30 border-border"})]}),g.jsxs("div",{"data-loc":"client/src/pages/Profile.tsx:292",className:"col-span-2",children:[g.jsx(Nt,{"data-loc":"client/src/pages/Profile.tsx:293",className:"text-sm font-medium mb-1 block",children:"Rua"}),g.jsx(Fe,{"data-loc":"client/src/pages/Profile.tsx:294",value:p?.street,onChange:T=>m({...p,street:T.target.value}),className:"bg-secondary/30 border-border"})]}),g.jsxs("div",{"data-loc":"client/src/pages/Profile.tsx:296",children:[g.jsx(Nt,{"data-loc":"client/src/pages/Profile.tsx:297",className:"text-sm font-medium mb-1 block",children:"Número"}),g.jsx(Fe,{"data-loc":"client/src/pages/Profile.tsx:298",value:p?.number,onChange:T=>m({...p,number:T.target.value}),className:"bg-secondary/30 border-border"})]}),g.jsxs("div",{"data-loc":"client/src/pages/Profile.tsx:300",children:[g.jsx(Nt,{"data-loc":"client/src/pages/Profile.tsx:301",className:"text-sm font-medium mb-1 block",children:"Bairro"}),g.jsx(Fe,{"data-loc":"client/src/pages/Profile.tsx:302",value:p?.neighborhood,onChange:T=>m({...p,neighborhood:T.target.value}),className:"bg-secondary/30 border-border"})]}),g.jsxs("div",{"data-loc":"client/src/pages/Profile.tsx:304",children:[g.jsx(Nt,{"data-loc":"client/src/pages/Profile.tsx:305",className:"text-sm font-medium mb-1 block",children:"Cidade"}),g.jsx(Fe,{"data-loc":"client/src/pages/Profile.tsx:306",value:p?.city,onChange:T=>m({...p,city:T.target.value}),className:"bg-secondary/30 border-border"})]}),g.jsxs("div",{"data-loc":"client/src/pages/Profile.tsx:308",children:[g.jsx(Nt,{"data-loc":"client/src/pages/Profile.tsx:309",className:"text-sm font-medium mb-1 block",children:"CEP"}),g.jsx(Fe,{"data-loc":"client/src/pages/Profile.tsx:310",value:p?.zipCode,onChange:T=>m({...p,zipCode:T.target.value}),className:"bg-secondary/30 border-border"})]})]}),g.jsxs("div",{"data-loc":"client/src/pages/Profile.tsx:314",className:"flex gap-3 pt-4",children:[g.jsx(be,{"data-loc":"client/src/pages/Profile.tsx:315",variant:"outline",className:"flex-1 h-10 rounded-lg",onClick:()=>s(!1),children:"Cancelar"}),g.jsx(be,{"data-loc":"client/src/pages/Profile.tsx:316",className:"flex-1 h-10 rounded-lg",onClick:w,children:"Salvar Endereço"})]})]})]})})]})}const x5=C.createContext(void 0);function KU({children:e}){const[t,n]=C.useState(!1),[r,i]=C.useState(!0),[s,l]=C.useState(!1),u=p=>p==="2412"?(n(!0),!0):!1,d=()=>{n(!1)},f=()=>{i(!r)};return g.jsx(x5.Provider,{"data-loc":"client/src/contexts/AdminContext.tsx:37",value:{isAuthenticated:t,isStoreOpen:r,autoprint:s,login:u,logout:d,toggleStore:f,setAutoprint:l},children:e})}function Fr(){const e=C.useContext(x5);if(!e)throw new Error("useAdmin must be used within AdminProvider");return e}function XU(){const[e,t]=C.useState(""),[n,r]=C.useState(!1),{login:i}=Fr(),[,s]=Gt(),l=async()=>{if(!e.trim()){Ge.error("Digite a senha");return}r(!0),await new Promise(d=>setTimeout(d,500)),i(e)?(Ge.success("Login realizado com sucesso!"),s("/admin/dashboard")):(Ge.error("Senha incorreta"),t("")),r(!1)},u=d=>{d.key==="Enter"&&l()};return g.jsx("div",{"data-loc":"client/src/pages/AdminLogin.tsx:41",className:"min-h-screen bg-gradient-to-br from-primary/10 to-accent/10 flex items-center justify-center p-4",children:g.jsx("div",{"data-loc":"client/src/pages/AdminLogin.tsx:42",className:"w-full max-w-md",children:g.jsxs("div",{"data-loc":"client/src/pages/AdminLogin.tsx:43",className:"bg-white rounded-3xl shadow-2xl p-8 border border-border",children:[g.jsxs("div",{"data-loc":"client/src/pages/AdminLogin.tsx:45",className:"text-center mb-8",children:[g.jsx("div",{"data-loc":"client/src/pages/AdminLogin.tsx:46",className:"w-20 h-20 rounded-full bg-primary/20 flex items-center justify-center mx-auto mb-4",children:g.jsx(_3,{"data-loc":"client/src/pages/AdminLogin.tsx:47",className:"w-10 h-10 text-primary"})}),g.jsx("h1",{"data-loc":"client/src/pages/AdminLogin.tsx:49",className:"text-3xl font-bold text-foreground mb-2",children:"Admin"}),g.jsx("p",{"data-loc":"client/src/pages/AdminLogin.tsx:50",className:"text-muted-foreground",children:"Painel de Administração"})]}),g.jsxs("div",{"data-loc":"client/src/pages/AdminLogin.tsx:54",className:"space-y-4",children:[g.jsxs("div",{"data-loc":"client/src/pages/AdminLogin.tsx:55",children:[g.jsx("label",{"data-loc":"client/src/pages/AdminLogin.tsx:56",htmlFor:"password",className:"text-sm font-medium text-foreground mb-2 block",children:"Senha de Acesso"}),g.jsx(Fe,{"data-loc":"client/src/pages/AdminLogin.tsx:59",id:"password",type:"password",placeholder:"Digite a senha",value:e,onChange:d=>t(d.target.value),onKeyPress:u,className:"bg-secondary/30 border-border h-12 text-lg",disabled:n})]}),g.jsx(be,{"data-loc":"client/src/pages/AdminLogin.tsx:71",className:"w-full h-12 rounded-xl text-base font-bold",onClick:l,disabled:n,children:n?"Verificando...":"Acessar Painel"})]}),g.jsx("div",{"data-loc":"client/src/pages/AdminLogin.tsx:81",className:"mt-8 p-4 bg-secondary/30 rounded-xl text-center",children:g.jsx("p",{"data-loc":"client/src/pages/AdminLogin.tsx:82",className:"text-xs text-muted-foreground",children:"Painel exclusivo para administradores"})})]})})})}const YU=C.forwardRef(({order:e,settings:t},n)=>g.jsxs("div",{"data-loc":"client/src/components/ThermalReceipt.tsx:10",ref:n,className:"print-only",style:{width:"88mm",padding:"5mm",fontFamily:"monospace",fontSize:"12px",color:"#000",backgroundColor:"#fff"},children:[g.jsxs("div",{"data-loc":"client/src/components/ThermalReceipt.tsx:12",style:{textAlign:"center",marginBottom:"10px"},children:[g.jsx("img",{"data-loc":"client/src/components/ThermalReceipt.tsx:13",src:"/images/logo.png",alt:"Logo",style:{width:"40mm",marginBottom:"5px"}}),g.jsx("h2",{"data-loc":"client/src/components/ThermalReceipt.tsx:14",style:{margin:"5px 0",fontSize:"18px",fontWeight:"bold"},children:"DOG MELINA"}),g.jsx("p",{"data-loc":"client/src/components/ThermalReceipt.tsx:15",style:{margin:"2px 0"},children:t.address||"Rua Principal, 123"}),g.jsxs("p",{"data-loc":"client/src/components/ThermalReceipt.tsx:16",style:{margin:"2px 0"},children:["WhatsApp: ",t.whatsapp]}),g.jsx("div",{"data-loc":"client/src/components/ThermalReceipt.tsx:17",style:{borderBottom:"1px dashed #000",margin:"10px 0"}})]}),g.jsxs("div",{"data-loc":"client/src/components/ThermalReceipt.tsx:21",style:{marginBottom:"10px"},children:[g.jsxs("p",{"data-loc":"client/src/components/ThermalReceipt.tsx:22",style:{margin:"2px 0",fontWeight:"bold"},children:["PEDIDO: ",e.id]}),g.jsxs("p",{"data-loc":"client/src/components/ThermalReceipt.tsx:23",style:{margin:"2px 0"},children:["DATA: ",new Date(e.createdAt).toLocaleString("pt-BR")]}),e.senha&&g.jsxs("p",{"data-loc":"client/src/components/ThermalReceipt.tsx:24",style:{margin:"5px 0",fontSize:"20px",fontWeight:"bold",textAlign:"center"},children:["SENHA: ",e.senha]}),g.jsx("div",{"data-loc":"client/src/components/ThermalReceipt.tsx:25",style:{borderBottom:"1px dashed #000",margin:"10px 0"}})]}),g.jsxs("div",{"data-loc":"client/src/components/ThermalReceipt.tsx:29",style:{marginBottom:"10px"},children:[g.jsxs("p",{"data-loc":"client/src/components/ThermalReceipt.tsx:30",style:{margin:"2px 0",fontWeight:"bold"},children:["CLIENTE: ",e.customerName]}),g.jsxs("p",{"data-loc":"client/src/components/ThermalReceipt.tsx:31",style:{margin:"2px 0"},children:["TEL: ",e.customerPhone]}),g.jsxs("p",{"data-loc":"client/src/components/ThermalReceipt.tsx:32",style:{margin:"2px 0"},children:["END: ",e.address]}),g.jsx("div",{"data-loc":"client/src/components/ThermalReceipt.tsx:33",style:{borderBottom:"1px dashed #000",margin:"10px 0"}})]}),g.jsxs("div",{"data-loc":"client/src/components/ThermalReceipt.tsx:37",style:{marginBottom:"10px"},children:[g.jsxs("table",{"data-loc":"client/src/components/ThermalReceipt.tsx:38",style:{width:"100%",borderCollapse:"collapse"},children:[g.jsx("thead",{"data-loc":"client/src/components/ThermalReceipt.tsx:39",children:g.jsxs("tr",{"data-loc":"client/src/components/ThermalReceipt.tsx:40",style:{borderBottom:"1px solid #000"},children:[g.jsx("th",{"data-loc":"client/src/components/ThermalReceipt.tsx:41",style:{textAlign:"left",padding:"2px 0"},children:"QTD"}),g.jsx("th",{"data-loc":"client/src/components/ThermalReceipt.tsx:42",style:{textAlign:"left",padding:"2px 0"},children:"ITEM"}),g.jsx("th",{"data-loc":"client/src/components/ThermalReceipt.tsx:43",style:{textAlign:"right",padding:"2px 0"},children:"TOTAL"})]})}),g.jsx("tbody",{"data-loc":"client/src/components/ThermalReceipt.tsx:46",children:e.items.map((r,i)=>g.jsxs("tr",{"data-loc":"client/src/components/ThermalReceipt.tsx:48",children:[g.jsxs("td",{"data-loc":"client/src/components/ThermalReceipt.tsx:49",style:{verticalAlign:"top",padding:"2px 0"},children:[r.quantity,"x"]}),g.jsxs("td",{"data-loc":"client/src/components/ThermalReceipt.tsx:50",style:{padding:"2px 0"},children:[r.name,r.addons?.map(s=>g.jsxs("div",{"data-loc":"client/src/components/ThermalReceipt.tsx:52",style:{fontSize:"10px"},children:["+ ",s.name]},s.name))]}),g.jsxs("td",{"data-loc":"client/src/components/ThermalReceipt.tsx:54",style:{textAlign:"right",verticalAlign:"top",padding:"2px 0"},children:["R$ ",(r.price*r.quantity).toFixed(2)]})]},i))})]}),g.jsx("div",{"data-loc":"client/src/components/ThermalReceipt.tsx:59",style:{borderBottom:"1px dashed #000",margin:"10px 0"}})]}),g.jsxs("div",{"data-loc":"client/src/components/ThermalReceipt.tsx:63",style:{textAlign:"right",marginBottom:"10px"},children:[g.jsxs("p",{"data-loc":"client/src/components/ThermalReceipt.tsx:64",style:{margin:"2px 0"},children:["SUBTOTAL: R$ ",(e.total-(e.deliveryFee||0)).toFixed(2)]}),g.jsxs("p",{"data-loc":"client/src/components/ThermalReceipt.tsx:65",style:{margin:"2px 0"},children:["TAXA ENTREGA: R$ ",(e.deliveryFee||0).toFixed(2)]}),g.jsxs("p",{"data-loc":"client/src/components/ThermalReceipt.tsx:66",style:{margin:"5px 0",fontSize:"16px",fontWeight:"bold"},children:["TOTAL: R$ ",e.total.toFixed(2)]}),g.jsxs("p",{"data-loc":"client/src/components/ThermalReceipt.tsx:67",style:{margin:"2px 0",fontWeight:"bold"},children:["PAGAMENTO: ",e.paymentMethod.toUpperCase()]})]}),g.jsxs("div",{"data-loc":"client/src/components/ThermalReceipt.tsx:71",style:{textAlign:"center",marginTop:"20px",fontSize:"10px"},children:[g.jsx("p",{"data-loc":"client/src/components/ThermalReceipt.tsx:72",children:"Obrigado pela preferência!"}),g.jsx("p",{"data-loc":"client/src/components/ThermalReceipt.tsx:73",children:"www.dogmelina.com.br"}),g.jsx("p",{"data-loc":"client/src/components/ThermalReceipt.tsx:74",style:{marginTop:"10px"},children:"* Documento sem valor fiscal *"})]}),g.jsx("style",{"data-loc":"client/src/components/ThermalReceipt.tsx:77",children:`
        @media print {
          body * { visibility: hidden; }
          .print-only, .print-only * { visibility: visible; }
          .print-only { position: absolute; left: 0; top: 0; }
        }
      `})]}));function WU(){const{isAuthenticated:e,logout:t,isStoreOpen:n,toggleStore:r}=Fr(),[,i]=Gt(),[s,l]=C.useState([]),[u,d]=C.useState(!1),f=C.useRef(null),p=C.useRef(null),[m,v]=C.useState(null),b=JSON.parse(localStorage.getItem("dogmelina_settings")||'{"whatsapp":"5511999999999","address":"Rua Principal, 123"}');if(C.useEffect(()=>{const M=()=>{const P=localStorage.getItem("dogmelina_admin_orders");P&&l(JSON.parse(P))};M();const j=setInterval(M,3e3);return()=>clearInterval(j)},[]),C.useEffect(()=>(f.current=new Audio("/sounds/notification.mp3"),f.current.loop=!0,()=>{f.current?.pause()}),[]),C.useEffect(()=>{s.some(j=>j.status==="novo")&&!u&&n?f.current?.play().catch(()=>{}):f.current?.pause()},[s,u,n]),!e)return i("/admin/login"),null;const A=(M,j)=>{const P=s.map(N=>N.id===M?{...N,status:j}:N);l(P),localStorage.setItem("dogmelina_admin_orders",JSON.stringify(P)),Ge.success(`Pedido atualizado para ${j}`)},S=M=>{v(M),setTimeout(()=>{window.print()},500)},w=s.filter(M=>M.status==="novo").length,O=s.filter(M=>M.status==="preparando").length,_=s.filter(M=>M.status==="pronto").length,T=[{label:"PDV Balcão",icon:hi,path:"/admin/pdv",color:"text-orange-600 bg-orange-50"},{label:"Produtos",icon:k3,path:"/admin/products",color:"text-blue-600 bg-blue-50"},{label:"Categorias",icon:C3,path:"/admin/categories",color:"text-purple-600 bg-purple-50"},{label:"Taxas Entrega",icon:fr,path:"/admin/delivery-fees",color:"text-green-600 bg-green-50"},{label:"Clientes",icon:rq,path:"/admin/customers",color:"text-pink-600 bg-pink-50"},{label:"Configurações",icon:Z9,path:"/admin/settings",color:"text-gray-600 bg-gray-50"}];return g.jsxs("div",{"data-loc":"client/src/pages/AdminDashboard.tsx:96",className:"min-h-screen bg-background text-foreground pb-20",children:[g.jsx("div",{"data-loc":"client/src/pages/AdminDashboard.tsx:98",className:"hidden",children:m&&g.jsx(YU,{"data-loc":"client/src/pages/AdminDashboard.tsx:99",ref:p,order:m,settings:b})}),g.jsx("header",{"data-loc":"client/src/pages/AdminDashboard.tsx:102",className:"bg-white border-b border-border sticky top-0 z-50 shadow-sm",children:g.jsxs("div",{"data-loc":"client/src/pages/AdminDashboard.tsx:103",className:"max-w-7xl mx-auto px-6 py-4 flex items-center justify-between",children:[g.jsxs("div",{"data-loc":"client/src/pages/AdminDashboard.tsx:104",className:"flex items-center gap-3",children:[g.jsx("div",{"data-loc":"client/src/pages/AdminDashboard.tsx:105",className:"w-10 h-10 bg-primary rounded-xl flex items-center justify-center text-white font-black",children:"DM"}),g.jsx("h1",{"data-loc":"client/src/pages/AdminDashboard.tsx:106",className:"text-xl font-black hidden sm:block",children:"DOG MELINA ADMIN"})]}),g.jsxs("div",{"data-loc":"client/src/pages/AdminDashboard.tsx:109",className:"flex items-center gap-2",children:[g.jsx(be,{"data-loc":"client/src/pages/AdminDashboard.tsx:110",variant:"outline",size:"sm",onClick:()=>d(!u),className:We("rounded-lg",w>0&&!u&&"animate-pulse border-primary text-primary"),children:u?g.jsx(iq,{"data-loc":"client/src/pages/AdminDashboard.tsx:111",size:18}):g.jsx(aq,{"data-loc":"client/src/pages/AdminDashboard.tsx:111",size:18})}),g.jsxs("div",{"data-loc":"client/src/pages/AdminDashboard.tsx:113",className:We("flex items-center gap-2 px-3 py-1.5 rounded-lg border text-xs font-bold",n?"bg-green-50 border-green-200 text-green-700":"bg-red-50 border-red-200 text-red-700"),children:[g.jsx(M3,{"data-loc":"client/src/pages/AdminDashboard.tsx:114",size:14})," ",n?"LOJA ABERTA":"LOJA FECHADA"]}),g.jsx(be,{"data-loc":"client/src/pages/AdminDashboard.tsx:116",variant:"ghost",size:"icon",onClick:t,className:"text-destructive",children:g.jsx(vw,{"data-loc":"client/src/pages/AdminDashboard.tsx:116",size:20})})]})]})}),g.jsxs("div",{"data-loc":"client/src/pages/AdminDashboard.tsx:121",className:"max-w-7xl mx-auto px-6 py-8",children:[g.jsx("div",{"data-loc":"client/src/pages/AdminDashboard.tsx:123",className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-6 gap-4 mb-8",children:T.map(M=>g.jsxs("button",{"data-loc":"client/src/pages/AdminDashboard.tsx:125",onClick:()=>i(M.path),className:"flex flex-col items-center justify-center p-4 rounded-2xl bg-white border border-border hover:border-primary hover:shadow-md transition-all group",children:[g.jsx("div",{"data-loc":"client/src/pages/AdminDashboard.tsx:130",className:We("w-12 h-12 rounded-xl flex items-center justify-center mb-2 transition-transform group-hover:scale-110",M.color),children:g.jsx(M.icon,{"data-loc":"client/src/pages/AdminDashboard.tsx:131",size:24})}),g.jsx("span",{"data-loc":"client/src/pages/AdminDashboard.tsx:133",className:"text-xs font-bold text-muted-foreground group-hover:text-primary",children:M.label})]},M.path))}),w>0&&g.jsxs("div",{"data-loc":"client/src/pages/AdminDashboard.tsx:139",className:"mb-8 bg-primary/10 border border-primary/20 rounded-2xl p-4 flex items-center justify-between animate-pulse",children:[g.jsxs("div",{"data-loc":"client/src/pages/AdminDashboard.tsx:140",className:"flex items-center gap-4",children:[g.jsx(H9,{"data-loc":"client/src/pages/AdminDashboard.tsx:141",className:"text-primary",size:24}),g.jsxs("h3",{"data-loc":"client/src/pages/AdminDashboard.tsx:142",className:"font-black",children:["VOCÊ TEM ",w," NOVO(S) PEDIDO(S)!"]})]}),g.jsx(hr,{"data-loc":"client/src/pages/AdminDashboard.tsx:144",className:"bg-primary text-white",children:"ALERTA SONORO ATIVO"})]}),g.jsxs(y5,{"data-loc":"client/src/pages/AdminDashboard.tsx:148",defaultValue:"novo",className:"w-full",children:[g.jsxs(b5,{"data-loc":"client/src/pages/AdminDashboard.tsx:149",className:"grid w-full grid-cols-4 bg-secondary/50 rounded-xl p-1 mb-6",children:[g.jsxs(Qi,{"data-loc":"client/src/pages/AdminDashboard.tsx:150",value:"novo",className:"rounded-lg font-bold",children:["Novos (",w,")"]}),g.jsxs(Qi,{"data-loc":"client/src/pages/AdminDashboard.tsx:151",value:"preparando",className:"rounded-lg font-bold",children:["Preparo (",O,")"]}),g.jsxs(Qi,{"data-loc":"client/src/pages/AdminDashboard.tsx:152",value:"pronto",className:"rounded-lg font-bold",children:["Prontos (",_,")"]}),g.jsx(Qi,{"data-loc":"client/src/pages/AdminDashboard.tsx:153",value:"todos",className:"rounded-lg font-bold",children:"Todos"})]}),["novo","preparando","pronto","todos"].map(M=>g.jsx(Jf,{"data-loc":"client/src/pages/AdminDashboard.tsx:157",value:M,className:"space-y-4",children:s.filter(j=>M==="todos"?!0:j.status===M).length===0?g.jsxs("div",{"data-loc":"client/src/pages/AdminDashboard.tsx:159",className:"text-center py-20 bg-white rounded-3xl border border-dashed border-border",children:[g.jsx(bw,{"data-loc":"client/src/pages/AdminDashboard.tsx:160",size:48,className:"mx-auto text-muted-foreground/20 mb-4"}),g.jsx("p",{"data-loc":"client/src/pages/AdminDashboard.tsx:161",className:"text-muted-foreground font-medium",children:"Nenhum pedido encontrado"})]}):s.filter(j=>M==="todos"?!0:j.status===M).map(j=>g.jsx(ZU,{"data-loc":"client/src/pages/AdminDashboard.tsx:165",order:j,onAccept:()=>A(j.id,"preparando"),onPrint:()=>S(j),onStatusChange:P=>A(j.id,P)},j.id))},M))]})]})]})}function ZU({order:e,onAccept:t,onPrint:n,onStatusChange:r}){return g.jsxs("div",{"data-loc":"client/src/pages/AdminDashboard.tsx:184",className:We("bg-white rounded-3xl p-6 border border-border shadow-sm",e.status==="novo"&&"border-primary ring-2 ring-primary/5"),children:[g.jsxs("div",{"data-loc":"client/src/pages/AdminDashboard.tsx:185",className:"flex justify-between items-start mb-4",children:[g.jsxs("div",{"data-loc":"client/src/pages/AdminDashboard.tsx:186",children:[g.jsxs("div",{"data-loc":"client/src/pages/AdminDashboard.tsx:187",className:"flex items-center gap-2",children:[g.jsx("span",{"data-loc":"client/src/pages/AdminDashboard.tsx:188",className:"text-xl font-black text-primary",children:e.id}),e.senha&&g.jsxs(hr,{"data-loc":"client/src/pages/AdminDashboard.tsx:189",className:"bg-orange-500 font-black",children:["SENHA ",e.senha]})]}),g.jsx("p",{"data-loc":"client/src/pages/AdminDashboard.tsx:191",className:"font-black text-lg mt-1",children:e.customerName}),g.jsxs("p",{"data-loc":"client/src/pages/AdminDashboard.tsx:192",className:"text-xs text-muted-foreground flex items-center gap-1 mt-1",children:[g.jsx(fr,{"data-loc":"client/src/pages/AdminDashboard.tsx:192",size:12})," ",e.address]})]}),g.jsx(hr,{"data-loc":"client/src/pages/AdminDashboard.tsx:194",className:We("font-bold px-3 py-1 rounded-full",e.status==="novo"?"bg-blue-100 text-blue-700":e.status==="preparando"?"bg-yellow-100 text-yellow-700":"bg-green-100 text-green-700"),children:e.status.toUpperCase()})]}),g.jsx("div",{"data-loc":"client/src/pages/AdminDashboard.tsx:202",className:"space-y-2 mb-6 py-4 border-y border-border/50",children:e.items.map((i,s)=>g.jsxs("div",{"data-loc":"client/src/pages/AdminDashboard.tsx:204",className:"flex justify-between text-sm font-medium",children:[g.jsxs("span",{"data-loc":"client/src/pages/AdminDashboard.tsx:205",children:[i.quantity,"x ",i.name]}),g.jsxs("span",{"data-loc":"client/src/pages/AdminDashboard.tsx:206",children:["R$ ",(i.price*i.quantity).toFixed(2)]})]},s))}),g.jsxs("div",{"data-loc":"client/src/pages/AdminDashboard.tsx:211",className:"flex justify-between items-end mb-6",children:[g.jsxs("div",{"data-loc":"client/src/pages/AdminDashboard.tsx:212",children:[g.jsx("p",{"data-loc":"client/src/pages/AdminDashboard.tsx:213",className:"text-xs text-muted-foreground font-bold uppercase",children:"Total do Pedido"}),g.jsxs("p",{"data-loc":"client/src/pages/AdminDashboard.tsx:214",className:"text-3xl font-black text-primary",children:["R$ ",e.total.toFixed(2)]})]}),g.jsxs("div",{"data-loc":"client/src/pages/AdminDashboard.tsx:216",className:"text-right",children:[g.jsx("p",{"data-loc":"client/src/pages/AdminDashboard.tsx:217",className:"text-xs text-muted-foreground font-bold uppercase",children:"Pagamento"}),g.jsx("p",{"data-loc":"client/src/pages/AdminDashboard.tsx:218",className:"font-black text-foreground",children:e.paymentMethod.toUpperCase()})]})]}),g.jsx("div",{"data-loc":"client/src/pages/AdminDashboard.tsx:222",className:"flex gap-3",children:e.status==="novo"?g.jsx(be,{"data-loc":"client/src/pages/AdminDashboard.tsx:224",onClick:t,className:"flex-1 h-14 rounded-2xl bg-green-600 hover:bg-green-700 font-black text-lg shadow-lg shadow-green-100",children:"ACEITAR PEDIDO"}):g.jsxs("div",{"data-loc":"client/src/pages/AdminDashboard.tsx:228",className:"flex-1 flex gap-2",children:[g.jsxs(be,{"data-loc":"client/src/pages/AdminDashboard.tsx:229",variant:"outline",onClick:n,className:"flex-1 h-14 rounded-2xl border-border font-bold gap-2",children:[g.jsx(D3,{"data-loc":"client/src/pages/AdminDashboard.tsx:230",size:20})," IMPRIMIR 88MM"]}),g.jsxs("select",{"data-loc":"client/src/pages/AdminDashboard.tsx:232",value:e.status,onChange:i=>r(i.target.value),className:"flex-1 h-14 rounded-2xl border border-border bg-secondary/20 px-4 font-black text-sm outline-none focus:border-primary",children:[g.jsx("option",{"data-loc":"client/src/pages/AdminDashboard.tsx:237",value:"preparando",children:"PREPARANDO"}),g.jsx("option",{"data-loc":"client/src/pages/AdminDashboard.tsx:238",value:"pronto",children:"PRONTO / RETIRADA"}),g.jsx("option",{"data-loc":"client/src/pages/AdminDashboard.tsx:239",value:"entregue",children:"ENTREGUE"}),g.jsx("option",{"data-loc":"client/src/pages/AdminDashboard.tsx:240",value:"cancelado",children:"CANCELADO"})]})]})})]})}function gi({className:e,...t}){return g.jsx("div",{"data-loc":"client/src/components/ui/card.tsx:7","data-slot":"card",className:We("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",e),...t})}function QU(){const{isAuthenticated:e}=Fr(),[,t]=Gt(),[n,r]=C.useState(""),[i]=C.useState(()=>{const A=localStorage.getItem("dogmelina_categories");return A?JSON.parse(A):[{id:1,name:"Cachorro-quente",slug:"cachorro-quente"},{id:2,name:"Xis",slug:"xis"},{id:3,name:"Combos",slug:"combos"},{id:4,name:"Bebidas",slug:"drinks"}]}),[s,l]=C.useState(()=>{const A=localStorage.getItem("dogmelina_products");return A?JSON.parse(A):[]}),[u,d]=C.useState(!1),[f,p]=C.useState({name:"",description:"",price:"",category:i[0]?.slug||"",image:"/images/products/default.png"});if(C.useEffect(()=>{localStorage.setItem("dogmelina_products",JSON.stringify(s))},[s]),!e)return t("/admin/login"),null;const m=()=>{!f.name||!f.price||(l([...s,{...f,id:Date.now(),price:parseFloat(f.price)}]),p({name:"",description:"",price:"",category:i[0]?.slug||"",image:"/images/products/default.png"}),d(!1),Ge.success("Produto adicionado!"))},v=A=>{confirm("Excluir este produto?")&&(l(s.filter(S=>S.id!==A)),Ge.error("Produto removido"))},b=s.filter(A=>A.name.toLowerCase().includes(n.toLowerCase())||A.category.toLowerCase().includes(n.toLowerCase()));return g.jsxs("div",{"data-loc":"client/src/pages/AdminProducts.tsx:70",className:"min-h-screen bg-background",children:[g.jsxs("header",{"data-loc":"client/src/pages/AdminProducts.tsx:71",className:"bg-white border-b border-border sticky top-0 z-50 px-6 py-4 flex items-center justify-between",children:[g.jsxs("div",{"data-loc":"client/src/pages/AdminProducts.tsx:72",className:"flex items-center gap-4",children:[g.jsx(be,{"data-loc":"client/src/pages/AdminProducts.tsx:73",variant:"ghost",size:"icon",onClick:()=>t("/admin/dashboard"),children:g.jsx(mr,{"data-loc":"client/src/pages/AdminProducts.tsx:73",size:20})}),g.jsxs("h1",{"data-loc":"client/src/pages/AdminProducts.tsx:74",className:"text-xl font-bold flex items-center gap-2",children:[g.jsx(k3,{"data-loc":"client/src/pages/AdminProducts.tsx:74",size:20,className:"text-primary"})," Produtos"]})]}),g.jsxs(be,{"data-loc":"client/src/pages/AdminProducts.tsx:76",onClick:()=>d(!0),className:"rounded-xl",children:[g.jsx(bi,{"data-loc":"client/src/pages/AdminProducts.tsx:76",size:20,className:"mr-2"})," Novo Produto"]})]}),g.jsxs("div",{"data-loc":"client/src/pages/AdminProducts.tsx:79",className:"max-w-5xl mx-auto p-6",children:[u&&g.jsxs(gi,{"data-loc":"client/src/pages/AdminProducts.tsx:81",className:"p-6 rounded-3xl border-primary/20 shadow-xl mb-8 animate-in zoom-in-95 duration-200",children:[g.jsx("h2",{"data-loc":"client/src/pages/AdminProducts.tsx:82",className:"font-black text-xl mb-6",children:"Cadastrar Novo Produto"}),g.jsxs("div",{"data-loc":"client/src/pages/AdminProducts.tsx:83",className:"grid grid-cols-1 md:grid-cols-2 gap-6 mb-6",children:[g.jsxs("div",{"data-loc":"client/src/pages/AdminProducts.tsx:84",className:"space-y-4",children:[g.jsxs("div",{"data-loc":"client/src/pages/AdminProducts.tsx:85",children:[g.jsx("label",{"data-loc":"client/src/pages/AdminProducts.tsx:86",className:"text-xs font-bold mb-1 block",children:"Nome do Produto *"}),g.jsx(Fe,{"data-loc":"client/src/pages/AdminProducts.tsx:87",value:f.name,onChange:A=>p({...f,name:A.target.value}),placeholder:"Ex: Xis Bacon Especial",className:"h-12 rounded-xl"})]}),g.jsxs("div",{"data-loc":"client/src/pages/AdminProducts.tsx:89",children:[g.jsx("label",{"data-loc":"client/src/pages/AdminProducts.tsx:90",className:"text-xs font-bold mb-1 block",children:"Descrição"}),g.jsx(Fe,{"data-loc":"client/src/pages/AdminProducts.tsx:91",value:f.description,onChange:A=>p({...f,description:A.target.value}),placeholder:"Ingredientes...",className:"h-12 rounded-xl"})]})]}),g.jsxs("div",{"data-loc":"client/src/pages/AdminProducts.tsx:94",className:"space-y-4",children:[g.jsxs("div",{"data-loc":"client/src/pages/AdminProducts.tsx:95",className:"grid grid-cols-2 gap-4",children:[g.jsxs("div",{"data-loc":"client/src/pages/AdminProducts.tsx:96",children:[g.jsx("label",{"data-loc":"client/src/pages/AdminProducts.tsx:97",className:"text-xs font-bold mb-1 block",children:"Preço (R$) *"}),g.jsx(Fe,{"data-loc":"client/src/pages/AdminProducts.tsx:98",type:"number",value:f.price,onChange:A=>p({...f,price:A.target.value}),placeholder:"0.00",className:"h-12 rounded-xl"})]}),g.jsxs("div",{"data-loc":"client/src/pages/AdminProducts.tsx:100",children:[g.jsx("label",{"data-loc":"client/src/pages/AdminProducts.tsx:101",className:"text-xs font-bold mb-1 block",children:"Categoria"}),g.jsx("select",{"data-loc":"client/src/pages/AdminProducts.tsx:102",value:f.category,onChange:A=>p({...f,category:A.target.value}),className:"w-full h-12 rounded-xl border border-border bg-background px-3 text-sm",children:i.map(A=>g.jsx("option",{"data-loc":"client/src/pages/AdminProducts.tsx:107",value:A.slug,children:A.name},A.id))})]})]}),g.jsxs("div",{"data-loc":"client/src/pages/AdminProducts.tsx:111",children:[g.jsx("label",{"data-loc":"client/src/pages/AdminProducts.tsx:112",className:"text-xs font-bold mb-1 block",children:"URL da Imagem"}),g.jsx(Fe,{"data-loc":"client/src/pages/AdminProducts.tsx:113",value:f.image,onChange:A=>p({...f,image:A.target.value}),placeholder:"/images/products/...",className:"h-12 rounded-xl"})]})]})]}),g.jsxs("div",{"data-loc":"client/src/pages/AdminProducts.tsx:117",className:"flex gap-3",children:[g.jsx(be,{"data-loc":"client/src/pages/AdminProducts.tsx:118",variant:"outline",onClick:()=>d(!1),className:"flex-1 h-12 rounded-xl",children:"Cancelar"}),g.jsx(be,{"data-loc":"client/src/pages/AdminProducts.tsx:119",onClick:m,className:"flex-1 h-12 rounded-xl",children:"Salvar Produto"})]})]}),g.jsxs("div",{"data-loc":"client/src/pages/AdminProducts.tsx:124",className:"relative mb-8",children:[g.jsx(Iu,{"data-loc":"client/src/pages/AdminProducts.tsx:125",className:"absolute left-4 top-1/2 -translate-y-1/2 text-muted-foreground",size:20}),g.jsx(Fe,{"data-loc":"client/src/pages/AdminProducts.tsx:126",placeholder:"Buscar por nome ou categoria...",value:n,onChange:A=>r(A.target.value),className:"h-14 rounded-2xl pl-12 bg-white border-border shadow-sm"})]}),g.jsx("div",{"data-loc":"client/src/pages/AdminProducts.tsx:134",className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:b.map(A=>g.jsxs(gi,{"data-loc":"client/src/pages/AdminProducts.tsx:136",className:"p-4 rounded-3xl border-border shadow-sm flex gap-4 items-center",children:[g.jsx("div",{"data-loc":"client/src/pages/AdminProducts.tsx:137",className:"w-20 h-20 rounded-2xl overflow-hidden bg-secondary/20 shrink-0",children:g.jsx("img",{"data-loc":"client/src/pages/AdminProducts.tsx:138",src:A.image,alt:A.name,className:"w-full h-full object-cover",onError:S=>S.target.src="https://placehold.co/200x200?text=Lanche"})}),g.jsxs("div",{"data-loc":"client/src/pages/AdminProducts.tsx:140",className:"flex-1 min-w-0",children:[g.jsxs("div",{"data-loc":"client/src/pages/AdminProducts.tsx:141",className:"flex items-center gap-2 mb-1",children:[g.jsx(hr,{"data-loc":"client/src/pages/AdminProducts.tsx:142",variant:"outline",className:"text-[10px] uppercase font-bold",children:A.category}),g.jsxs("p",{"data-loc":"client/src/pages/AdminProducts.tsx:143",className:"text-primary font-black",children:["R$ ",A.price.toFixed(2)]})]}),g.jsx("h3",{"data-loc":"client/src/pages/AdminProducts.tsx:145",className:"font-bold text-lg truncate",children:A.name}),g.jsx("p",{"data-loc":"client/src/pages/AdminProducts.tsx:146",className:"text-xs text-muted-foreground truncate",children:A.description||"Sem descrição"})]}),g.jsxs("div",{"data-loc":"client/src/pages/AdminProducts.tsx:148",className:"flex flex-col gap-1",children:[g.jsx(be,{"data-loc":"client/src/pages/AdminProducts.tsx:149",variant:"ghost",size:"icon",className:"text-muted-foreground",children:g.jsx(ih,{"data-loc":"client/src/pages/AdminProducts.tsx:149",size:18})}),g.jsx(be,{"data-loc":"client/src/pages/AdminProducts.tsx:150",variant:"ghost",size:"icon",onClick:()=>v(A.id),className:"text-destructive",children:g.jsx(mp,{"data-loc":"client/src/pages/AdminProducts.tsx:150",size:18})})]})]},A.id))})]})]})}function JU(e,[t,n]){return Math.min(n,Math.max(t,e))}function eH(e,t){return C.useReducer((n,r)=>t[n][r]??n,e)}var Mw="ScrollArea",[S5]=Ea(Mw),[tH,gr]=S5(Mw),w5=C.forwardRef((e,t)=>{const{__scopeScrollArea:n,type:r="hover",dir:i,scrollHideDelay:s=600,...l}=e,[u,d]=C.useState(null),[f,p]=C.useState(null),[m,v]=C.useState(null),[b,A]=C.useState(null),[S,w]=C.useState(null),[O,_]=C.useState(0),[T,M]=C.useState(0),[j,P]=C.useState(!1),[N,D]=C.useState(!1),k=At(t,$=>d($)),U=bp(i);return g.jsx(tH,{scope:n,type:r,dir:U,scrollHideDelay:s,scrollArea:u,viewport:f,onViewportChange:p,content:m,onContentChange:v,scrollbarX:b,onScrollbarXChange:A,scrollbarXEnabled:j,onScrollbarXEnabledChange:P,scrollbarY:S,onScrollbarYChange:w,scrollbarYEnabled:N,onScrollbarYEnabledChange:D,onCornerWidthChange:_,onCornerHeightChange:M,children:g.jsx(Ze.div,{dir:U,...l,ref:k,style:{position:"relative","--radix-scroll-area-corner-width":O+"px","--radix-scroll-area-corner-height":T+"px",...e.style}})})});w5.displayName=Mw;var A5="ScrollAreaViewport",O5=C.forwardRef((e,t)=>{const{__scopeScrollArea:n,children:r,nonce:i,...s}=e,l=gr(A5,n),u=C.useRef(null),d=At(t,u,l.onViewportChange);return g.jsxs(g.Fragment,{children:[g.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:i}),g.jsx(Ze.div,{"data-radix-scroll-area-viewport":"",...s,ref:d,style:{overflowX:l.scrollbarXEnabled?"scroll":"hidden",overflowY:l.scrollbarYEnabled?"scroll":"hidden",...e.style},children:g.jsx("div",{ref:l.onContentChange,style:{minWidth:"100%",display:"table"},children:r})})]})});O5.displayName=A5;var Gr="ScrollAreaScrollbar",j5=C.forwardRef((e,t)=>{const{forceMount:n,...r}=e,i=gr(Gr,e.__scopeScrollArea),{onScrollbarXEnabledChange:s,onScrollbarYEnabledChange:l}=i,u=e.orientation==="horizontal";return C.useEffect(()=>(u?s(!0):l(!0),()=>{u?s(!1):l(!1)}),[u,s,l]),i.type==="hover"?g.jsx(nH,{...r,ref:t,forceMount:n}):i.type==="scroll"?g.jsx(rH,{...r,ref:t,forceMount:n}):i.type==="auto"?g.jsx(T5,{...r,ref:t,forceMount:n}):i.type==="always"?g.jsx(Dw,{...r,ref:t}):null});j5.displayName=Gr;var nH=C.forwardRef((e,t)=>{const{forceMount:n,...r}=e,i=gr(Gr,e.__scopeScrollArea),[s,l]=C.useState(!1);return C.useEffect(()=>{const u=i.scrollArea;let d=0;if(u){const f=()=>{window.clearTimeout(d),l(!0)},p=()=>{d=window.setTimeout(()=>l(!1),i.scrollHideDelay)};return u.addEventListener("pointerenter",f),u.addEventListener("pointerleave",p),()=>{window.clearTimeout(d),u.removeEventListener("pointerenter",f),u.removeEventListener("pointerleave",p)}}},[i.scrollArea,i.scrollHideDelay]),g.jsx(_r,{present:n||s,children:g.jsx(T5,{"data-state":s?"visible":"hidden",...r,ref:t})})}),rH=C.forwardRef((e,t)=>{const{forceMount:n,...r}=e,i=gr(Gr,e.__scopeScrollArea),s=e.orientation==="horizontal",l=Op(()=>d("SCROLL_END"),100),[u,d]=eH("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return C.useEffect(()=>{if(u==="idle"){const f=window.setTimeout(()=>d("HIDE"),i.scrollHideDelay);return()=>window.clearTimeout(f)}},[u,i.scrollHideDelay,d]),C.useEffect(()=>{const f=i.viewport,p=s?"scrollLeft":"scrollTop";if(f){let m=f[p];const v=()=>{const b=f[p];m!==b&&(d("SCROLL"),l()),m=b};return f.addEventListener("scroll",v),()=>f.removeEventListener("scroll",v)}},[i.viewport,s,d,l]),g.jsx(_r,{present:n||u!=="hidden",children:g.jsx(Dw,{"data-state":u==="hidden"?"hidden":"visible",...r,ref:t,onPointerEnter:et(e.onPointerEnter,()=>d("POINTER_ENTER")),onPointerLeave:et(e.onPointerLeave,()=>d("POINTER_LEAVE"))})})}),T5=C.forwardRef((e,t)=>{const n=gr(Gr,e.__scopeScrollArea),{forceMount:r,...i}=e,[s,l]=C.useState(!1),u=e.orientation==="horizontal",d=Op(()=>{if(n.viewport){const f=n.viewport.offsetWidth<n.viewport.scrollWidth,p=n.viewport.offsetHeight<n.viewport.scrollHeight;l(u?f:p)}},10);return zs(n.viewport,d),zs(n.content,d),g.jsx(_r,{present:r||s,children:g.jsx(Dw,{"data-state":s?"visible":"hidden",...i,ref:t})})}),Dw=C.forwardRef((e,t)=>{const{orientation:n="vertical",...r}=e,i=gr(Gr,e.__scopeScrollArea),s=C.useRef(null),l=C.useRef(0),[u,d]=C.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),f=N5(u.viewport,u.content),p={...r,sizes:u,onSizesChange:d,hasThumb:f>0&&f<1,onThumbChange:v=>s.current=v,onThumbPointerUp:()=>l.current=0,onThumbPointerDown:v=>l.current=v};function m(v,b){return cH(v,l.current,u,b)}return n==="horizontal"?g.jsx(aH,{...p,ref:t,onThumbPositionChange:()=>{if(i.viewport&&s.current){const v=i.viewport.scrollLeft,b=tE(v,u,i.dir);s.current.style.transform=`translate3d(${b}px, 0, 0)`}},onWheelScroll:v=>{i.viewport&&(i.viewport.scrollLeft=v)},onDragScroll:v=>{i.viewport&&(i.viewport.scrollLeft=m(v,i.dir))}}):n==="vertical"?g.jsx(iH,{...p,ref:t,onThumbPositionChange:()=>{if(i.viewport&&s.current){const v=i.viewport.scrollTop,b=tE(v,u);s.current.style.transform=`translate3d(0, ${b}px, 0)`}},onWheelScroll:v=>{i.viewport&&(i.viewport.scrollTop=v)},onDragScroll:v=>{i.viewport&&(i.viewport.scrollTop=m(v))}}):null}),aH=C.forwardRef((e,t)=>{const{sizes:n,onSizesChange:r,...i}=e,s=gr(Gr,e.__scopeScrollArea),[l,u]=C.useState(),d=C.useRef(null),f=At(t,d,s.onScrollbarXChange);return C.useEffect(()=>{d.current&&u(getComputedStyle(d.current))},[d]),g.jsx(E5,{"data-orientation":"horizontal",...i,ref:f,sizes:n,style:{bottom:0,left:s.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:s.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":Ap(n)+"px",...e.style},onThumbPointerDown:p=>e.onThumbPointerDown(p.x),onDragScroll:p=>e.onDragScroll(p.x),onWheelScroll:(p,m)=>{if(s.viewport){const v=s.viewport.scrollLeft+p.deltaX;e.onWheelScroll(v),D5(v,m)&&p.preventDefault()}},onResize:()=>{d.current&&s.viewport&&l&&r({content:s.viewport.scrollWidth,viewport:s.viewport.offsetWidth,scrollbar:{size:d.current.clientWidth,paddingStart:lh(l.paddingLeft),paddingEnd:lh(l.paddingRight)}})}})}),iH=C.forwardRef((e,t)=>{const{sizes:n,onSizesChange:r,...i}=e,s=gr(Gr,e.__scopeScrollArea),[l,u]=C.useState(),d=C.useRef(null),f=At(t,d,s.onScrollbarYChange);return C.useEffect(()=>{d.current&&u(getComputedStyle(d.current))},[d]),g.jsx(E5,{"data-orientation":"vertical",...i,ref:f,sizes:n,style:{top:0,right:s.dir==="ltr"?0:void 0,left:s.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":Ap(n)+"px",...e.style},onThumbPointerDown:p=>e.onThumbPointerDown(p.y),onDragScroll:p=>e.onDragScroll(p.y),onWheelScroll:(p,m)=>{if(s.viewport){const v=s.viewport.scrollTop+p.deltaY;e.onWheelScroll(v),D5(v,m)&&p.preventDefault()}},onResize:()=>{d.current&&s.viewport&&l&&r({content:s.viewport.scrollHeight,viewport:s.viewport.offsetHeight,scrollbar:{size:d.current.clientHeight,paddingStart:lh(l.paddingTop),paddingEnd:lh(l.paddingBottom)}})}})}),[oH,C5]=S5(Gr),E5=C.forwardRef((e,t)=>{const{__scopeScrollArea:n,sizes:r,hasThumb:i,onThumbChange:s,onThumbPointerUp:l,onThumbPointerDown:u,onThumbPositionChange:d,onDragScroll:f,onWheelScroll:p,onResize:m,...v}=e,b=gr(Gr,n),[A,S]=C.useState(null),w=At(t,k=>S(k)),O=C.useRef(null),_=C.useRef(""),T=b.viewport,M=r.content-r.viewport,j=qn(p),P=qn(d),N=Op(m,10);function D(k){if(O.current){const U=k.clientX-O.current.left,$=k.clientY-O.current.top;f({x:U,y:$})}}return C.useEffect(()=>{const k=U=>{const $=U.target;A?.contains($)&&j(U,M)};return document.addEventListener("wheel",k,{passive:!1}),()=>document.removeEventListener("wheel",k,{passive:!1})},[T,A,M,j]),C.useEffect(P,[r,P]),zs(A,N),zs(b.content,N),g.jsx(oH,{scope:n,scrollbar:A,hasThumb:i,onThumbChange:qn(s),onThumbPointerUp:qn(l),onThumbPositionChange:P,onThumbPointerDown:qn(u),children:g.jsx(Ze.div,{...v,ref:w,style:{position:"absolute",...v.style},onPointerDown:et(e.onPointerDown,k=>{k.button===0&&(k.target.setPointerCapture(k.pointerId),O.current=A.getBoundingClientRect(),_.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",b.viewport&&(b.viewport.style.scrollBehavior="auto"),D(k))}),onPointerMove:et(e.onPointerMove,D),onPointerUp:et(e.onPointerUp,k=>{const U=k.target;U.hasPointerCapture(k.pointerId)&&U.releasePointerCapture(k.pointerId),document.body.style.webkitUserSelect=_.current,b.viewport&&(b.viewport.style.scrollBehavior=""),O.current=null})})})}),sh="ScrollAreaThumb",_5=C.forwardRef((e,t)=>{const{forceMount:n,...r}=e,i=C5(sh,e.__scopeScrollArea);return g.jsx(_r,{present:n||i.hasThumb,children:g.jsx(sH,{ref:t,...r})})}),sH=C.forwardRef((e,t)=>{const{__scopeScrollArea:n,style:r,...i}=e,s=gr(sh,n),l=C5(sh,n),{onThumbPositionChange:u}=l,d=At(t,m=>l.onThumbChange(m)),f=C.useRef(void 0),p=Op(()=>{f.current&&(f.current(),f.current=void 0)},100);return C.useEffect(()=>{const m=s.viewport;if(m){const v=()=>{if(p(),!f.current){const b=uH(m,u);f.current=b,u()}};return u(),m.addEventListener("scroll",v),()=>m.removeEventListener("scroll",v)}},[s.viewport,p,u]),g.jsx(Ze.div,{"data-state":l.hasThumb?"visible":"hidden",...i,ref:d,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...r},onPointerDownCapture:et(e.onPointerDownCapture,m=>{const b=m.target.getBoundingClientRect(),A=m.clientX-b.left,S=m.clientY-b.top;l.onThumbPointerDown({x:A,y:S})}),onPointerUp:et(e.onPointerUp,l.onThumbPointerUp)})});_5.displayName=sh;var Rw="ScrollAreaCorner",P5=C.forwardRef((e,t)=>{const n=gr(Rw,e.__scopeScrollArea),r=!!(n.scrollbarX&&n.scrollbarY);return n.type!=="scroll"&&r?g.jsx(lH,{...e,ref:t}):null});P5.displayName=Rw;var lH=C.forwardRef((e,t)=>{const{__scopeScrollArea:n,...r}=e,i=gr(Rw,n),[s,l]=C.useState(0),[u,d]=C.useState(0),f=!!(s&&u);return zs(i.scrollbarX,()=>{const p=i.scrollbarX?.offsetHeight||0;i.onCornerHeightChange(p),d(p)}),zs(i.scrollbarY,()=>{const p=i.scrollbarY?.offsetWidth||0;i.onCornerWidthChange(p),l(p)}),f?g.jsx(Ze.div,{...r,ref:t,style:{width:s,height:u,position:"absolute",right:i.dir==="ltr"?0:void 0,left:i.dir==="rtl"?0:void 0,bottom:0,...e.style}}):null});function lh(e){return e?parseInt(e,10):0}function N5(e,t){const n=e/t;return isNaN(n)?0:n}function Ap(e){const t=N5(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=(e.scrollbar.size-n)*t;return Math.max(r,18)}function cH(e,t,n,r="ltr"){const i=Ap(n),s=i/2,l=t||s,u=i-l,d=n.scrollbar.paddingStart+l,f=n.scrollbar.size-n.scrollbar.paddingEnd-u,p=n.content-n.viewport,m=r==="ltr"?[0,p]:[p*-1,0];return M5([d,f],m)(e)}function tE(e,t,n="ltr"){const r=Ap(t),i=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,s=t.scrollbar.size-i,l=t.content-t.viewport,u=s-r,d=n==="ltr"?[0,l]:[l*-1,0],f=JU(e,d);return M5([0,l],[0,u])(f)}function M5(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function D5(e,t){return e>0&&e<t}var uH=(e,t=()=>{})=>{let n={left:e.scrollLeft,top:e.scrollTop},r=0;return(function i(){const s={left:e.scrollLeft,top:e.scrollTop},l=n.left!==s.left,u=n.top!==s.top;(l||u)&&t(),n=s,r=window.requestAnimationFrame(i)})(),()=>window.cancelAnimationFrame(r)};function Op(e,t){const n=qn(e),r=C.useRef(0);return C.useEffect(()=>()=>window.clearTimeout(r.current),[]),C.useCallback(()=>{window.clearTimeout(r.current),r.current=window.setTimeout(n,t)},[n,t])}function zs(e,t){const n=qn(t);uo(()=>{let r=0;if(e){const i=new ResizeObserver(()=>{cancelAnimationFrame(r),r=window.requestAnimationFrame(n)});return i.observe(e),()=>{window.cancelAnimationFrame(r),i.unobserve(e)}}},[e,n])}var dH=w5,fH=O5,hH=P5;function nE({className:e,children:t,...n}){return g.jsxs(dH,{"data-loc":"client/src/components/ui/scroll-area.tsx:12","data-slot":"scroll-area",className:We("relative",e),...n,children:[g.jsx(fH,{"data-loc":"client/src/components/ui/scroll-area.tsx:17","data-slot":"scroll-area-viewport",className:"focus-visible:ring-ring/50 size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:outline-1",children:t}),g.jsx(pH,{"data-loc":"client/src/components/ui/scroll-area.tsx:23"}),g.jsx(hH,{"data-loc":"client/src/components/ui/scroll-area.tsx:24"})]})}function pH({className:e,orientation:t="vertical",...n}){return g.jsx(j5,{"data-loc":"client/src/components/ui/scroll-area.tsx:35","data-slot":"scroll-area-scrollbar",orientation:t,className:We("flex touch-none p-px transition-colors select-none",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent",e),...n,children:g.jsx(_5,{"data-loc":"client/src/components/ui/scroll-area.tsx:48","data-slot":"scroll-area-thumb",className:"bg-border relative flex-1 rounded-full"})})}function mH(){const{isAuthenticated:e}=Fr(),[,t]=Gt(),[n,r]=C.useState(""),[i,s]=C.useState([]),[l,u]=C.useState(""),[d,f]=C.useState(""),[p,m]=C.useState("dinheiro"),[v,b]=C.useState("balcao"),[A,S]=C.useState("1"),[w,O]=C.useState([]);if(C.useEffect(()=>{const N=localStorage.getItem("dogmelina_products");O(N?JSON.parse(N):Vu)},[]),!e)return t("/admin/login"),null;const _=w.filter(N=>N.name.toLowerCase().includes(n.toLowerCase())||N.category.toLowerCase().includes(n.toLowerCase())),T=N=>{const D=i.find(k=>k.id===N.id);s(D?i.map(k=>k.id===N.id?{...k,quantity:k.quantity+1}:k):[...i,{...N,quantity:1}])},M=N=>{i.find(k=>k.id===N).quantity>1?s(i.map(k=>k.id===N?{...k,quantity:k.quantity-1}:k)):s(i.filter(k=>k.id!==N))},j=i.reduce((N,D)=>N+D.price*D.quantity,0),P=()=>{if(i.length===0){Ge.error("Adicione itens ao pedido");return}const D=parseInt(localStorage.getItem("dogmelina_last_senha")||"0")+1,U=`${v==="balcao"?"B":v==="mesa"?"M":"T"}${D.toString().padStart(3,"0")}`;localStorage.setItem("dogmelina_last_senha",D.toString());const $={id:`PDV-${Math.floor(1e3+Math.random()*9e3)}`,customerName:v==="mesa"?`Mesa ${A}`:l||"Cliente Balcão",customerPhone:d,address:v==="balcao"?"Retirada no Balcão":v==="mesa"?`Mesa ${A}`:"Pedido via Telefone",items:i,total:j,status:"preparando",paymentMethod:p,type:v,senha:U,createdAt:new Date().toISOString()},H=JSON.parse(localStorage.getItem("dogmelina_admin_orders")||"[]");localStorage.setItem("dogmelina_admin_orders",JSON.stringify([$,...H])),Ge.success(`Pedido Finalizado! Senha: ${U}`),s([]),u(""),f(""),window.print()};return g.jsxs("div",{"data-loc":"client/src/pages/AdminPDV.tsx:113",className:"h-screen bg-background flex flex-col overflow-hidden",children:[g.jsxs("header",{"data-loc":"client/src/pages/AdminPDV.tsx:114",className:"bg-white border-b border-border px-6 py-4 flex items-center justify-between shrink-0",children:[g.jsxs("div",{"data-loc":"client/src/pages/AdminPDV.tsx:115",className:"flex items-center gap-4",children:[g.jsx(be,{"data-loc":"client/src/pages/AdminPDV.tsx:116",variant:"ghost",size:"icon",onClick:()=>t("/admin/dashboard"),className:"rounded-full",children:g.jsx(mr,{"data-loc":"client/src/pages/AdminPDV.tsx:117",size:20})}),g.jsxs("div",{"data-loc":"client/src/pages/AdminPDV.tsx:119",className:"flex items-center gap-2",children:[g.jsx(hi,{"data-loc":"client/src/pages/AdminPDV.tsx:120",className:"text-primary"}),g.jsx("h1",{"data-loc":"client/src/pages/AdminPDV.tsx:121",className:"text-xl font-bold",children:"PDV Profissional"})]})]}),g.jsxs("div",{"data-loc":"client/src/pages/AdminPDV.tsx:124",className:"flex gap-2",children:[g.jsxs(be,{"data-loc":"client/src/pages/AdminPDV.tsx:125",variant:v==="balcao"?"default":"outline",onClick:()=>b("balcao"),className:"rounded-xl gap-2",children:[g.jsx(tq,{"data-loc":"client/src/pages/AdminPDV.tsx:125",size:18})," Balcão"]}),g.jsxs(be,{"data-loc":"client/src/pages/AdminPDV.tsx:126",variant:v==="mesa"?"default":"outline",onClick:()=>b("mesa"),className:"rounded-xl gap-2",children:[g.jsx(L3,{"data-loc":"client/src/pages/AdminPDV.tsx:126",size:18})," Mesa"]}),g.jsxs(be,{"data-loc":"client/src/pages/AdminPDV.tsx:127",variant:v==="telefone"?"default":"outline",onClick:()=>b("telefone"),className:"rounded-xl gap-2",children:[g.jsx(Zc,{"data-loc":"client/src/pages/AdminPDV.tsx:127",size:18})," Telefone"]})]})]}),g.jsxs("div",{"data-loc":"client/src/pages/AdminPDV.tsx:131",className:"flex-1 flex overflow-hidden",children:[g.jsxs("div",{"data-loc":"client/src/pages/AdminPDV.tsx:132",className:"flex-1 flex flex-col p-6 border-r border-border bg-secondary/10",children:[g.jsxs("div",{"data-loc":"client/src/pages/AdminPDV.tsx:133",className:"relative mb-6",children:[g.jsx(Iu,{"data-loc":"client/src/pages/AdminPDV.tsx:134",className:"absolute left-4 top-1/2 -translate-y-1/2 text-muted-foreground",size:20}),g.jsx(Fe,{"data-loc":"client/src/pages/AdminPDV.tsx:135",placeholder:"Buscar produto...",className:"pl-12 h-14 rounded-2xl bg-white border-none shadow-sm",value:n,onChange:N=>r(N.target.value)})]}),g.jsx(nE,{"data-loc":"client/src/pages/AdminPDV.tsx:138",className:"flex-1",children:g.jsx("div",{"data-loc":"client/src/pages/AdminPDV.tsx:139",className:"grid grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-4 pb-6",children:_.map(N=>g.jsxs("button",{"data-loc":"client/src/pages/AdminPDV.tsx:141",onClick:()=>T(N),className:"bg-white p-4 rounded-2xl border border-border hover:border-primary hover:shadow-md transition-all text-left group",children:[g.jsx("div",{"data-loc":"client/src/pages/AdminPDV.tsx:142",className:"aspect-square rounded-xl overflow-hidden mb-3 bg-secondary/20",children:g.jsx("img",{"data-loc":"client/src/pages/AdminPDV.tsx:143",src:N.image,alt:N.name,className:"w-full h-full object-cover group-hover:scale-110 transition-transform"})}),g.jsx("h3",{"data-loc":"client/src/pages/AdminPDV.tsx:145",className:"font-bold text-sm line-clamp-1",children:N.name}),g.jsxs("p",{"data-loc":"client/src/pages/AdminPDV.tsx:146",className:"text-primary font-black mt-1",children:["R$ ",N.price.toFixed(2)]})]},N.id))})})]}),g.jsxs("div",{"data-loc":"client/src/pages/AdminPDV.tsx:153",className:"w-[400px] flex flex-col bg-white shrink-0",children:[g.jsx("div",{"data-loc":"client/src/pages/AdminPDV.tsx:154",className:"p-6 border-b border-border",children:g.jsxs("h2",{"data-loc":"client/src/pages/AdminPDV.tsx:155",className:"font-bold text-lg flex items-center gap-2",children:[g.jsx(hi,{"data-loc":"client/src/pages/AdminPDV.tsx:155",size:20})," Itens do Pedido"]})}),g.jsx(nE,{"data-loc":"client/src/pages/AdminPDV.tsx:158",className:"flex-1 p-6",children:i.length===0?g.jsxs("div",{"data-loc":"client/src/pages/AdminPDV.tsx:160",className:"h-full flex flex-col items-center justify-center text-muted-foreground opacity-30",children:[g.jsx(hi,{"data-loc":"client/src/pages/AdminPDV.tsx:161",size:64,className:"mb-4"}),g.jsx("p",{"data-loc":"client/src/pages/AdminPDV.tsx:162",children:"Carrinho vazio"})]}):g.jsx("div",{"data-loc":"client/src/pages/AdminPDV.tsx:165",className:"space-y-4",children:i.map(N=>g.jsxs("div",{"data-loc":"client/src/pages/AdminPDV.tsx:167",className:"flex items-center justify-between gap-4",children:[g.jsxs("div",{"data-loc":"client/src/pages/AdminPDV.tsx:168",className:"flex-1",children:[g.jsx("p",{"data-loc":"client/src/pages/AdminPDV.tsx:169",className:"font-bold text-sm",children:N.name}),g.jsxs("p",{"data-loc":"client/src/pages/AdminPDV.tsx:170",className:"text-xs text-primary font-bold",children:["R$ ",N.price.toFixed(2)]})]}),g.jsxs("div",{"data-loc":"client/src/pages/AdminPDV.tsx:172",className:"flex items-center gap-3 bg-secondary/30 rounded-lg p-1",children:[g.jsx("button",{"data-loc":"client/src/pages/AdminPDV.tsx:173",onClick:()=>M(N.id),className:"w-8 h-8 flex items-center justify-center hover:text-primary",children:g.jsx(P3,{"data-loc":"client/src/pages/AdminPDV.tsx:173",size:16})}),g.jsx("span",{"data-loc":"client/src/pages/AdminPDV.tsx:174",className:"font-bold text-sm w-4 text-center",children:N.quantity}),g.jsx("button",{"data-loc":"client/src/pages/AdminPDV.tsx:175",onClick:()=>T(N),className:"w-8 h-8 flex items-center justify-center hover:text-primary",children:g.jsx(bi,{"data-loc":"client/src/pages/AdminPDV.tsx:175",size:16})})]})]},N.id))})}),g.jsxs("div",{"data-loc":"client/src/pages/AdminPDV.tsx:183",className:"p-6 bg-secondary/10 border-t border-border space-y-4",children:[v==="mesa"?g.jsxs("div",{"data-loc":"client/src/pages/AdminPDV.tsx:185",children:[g.jsx("label",{"data-loc":"client/src/pages/AdminPDV.tsx:186",className:"text-xs font-bold mb-1 block",children:"Número da Mesa"}),g.jsx("select",{"data-loc":"client/src/pages/AdminPDV.tsx:187",value:A,onChange:N=>S(N.target.value),className:"w-full h-10 rounded-xl border border-border bg-white px-3 text-sm",children:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15].map(N=>g.jsxs("option",{"data-loc":"client/src/pages/AdminPDV.tsx:188",value:N,children:["Mesa ",N]},N))})]}):g.jsxs("div",{"data-loc":"client/src/pages/AdminPDV.tsx:192",className:"grid gap-3",children:[g.jsxs("div",{"data-loc":"client/src/pages/AdminPDV.tsx:193",className:"relative",children:[g.jsx(Ls,{"data-loc":"client/src/pages/AdminPDV.tsx:194",className:"absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground",size:16}),g.jsx(Fe,{"data-loc":"client/src/pages/AdminPDV.tsx:195",placeholder:"Nome do Cliente",value:l,onChange:N=>u(N.target.value),className:"pl-10 h-10 rounded-xl bg-white"})]}),v==="telefone"&&g.jsxs("div",{"data-loc":"client/src/pages/AdminPDV.tsx:198",className:"relative",children:[g.jsx(Zc,{"data-loc":"client/src/pages/AdminPDV.tsx:199",className:"absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground",size:16}),g.jsx(Fe,{"data-loc":"client/src/pages/AdminPDV.tsx:200",placeholder:"Telefone",value:d,onChange:N=>f(N.target.value),className:"pl-10 h-10 rounded-xl bg-white"})]})]}),g.jsx("div",{"data-loc":"client/src/pages/AdminPDV.tsx:206",className:"grid grid-cols-3 gap-2",children:[{id:"dinheiro",icon:A3},{id:"cartao",icon:d1},{id:"pix",icon:xw}].map(N=>g.jsxs("button",{"data-loc":"client/src/pages/AdminPDV.tsx:212",onClick:()=>m(N.id),className:We("flex flex-col items-center justify-center p-2 rounded-xl border transition-all",p===N.id?"bg-primary text-white border-primary":"bg-white border-border text-muted-foreground"),children:[g.jsx(N.icon,{"data-loc":"client/src/pages/AdminPDV.tsx:213",size:20}),g.jsx("span",{"data-loc":"client/src/pages/AdminPDV.tsx:214",className:"text-[10px] font-bold mt-1 uppercase",children:N.id})]},N.id))}),g.jsxs("div",{"data-loc":"client/src/pages/AdminPDV.tsx:219",className:"pt-4 border-t border-border/50",children:[g.jsxs("div",{"data-loc":"client/src/pages/AdminPDV.tsx:220",className:"flex justify-between items-center mb-4",children:[g.jsx("span",{"data-loc":"client/src/pages/AdminPDV.tsx:221",className:"font-bold text-muted-foreground",children:"Total"}),g.jsxs("span",{"data-loc":"client/src/pages/AdminPDV.tsx:222",className:"text-2xl font-black text-primary",children:["R$ ",j.toFixed(2)]})]}),g.jsx(be,{"data-loc":"client/src/pages/AdminPDV.tsx:224",className:"w-full h-14 rounded-2xl text-lg font-bold shadow-lg shadow-primary/20",onClick:P,disabled:i.length===0,children:"Finalizar e Imprimir"})]})]})]})]})]})}function gH(){const{isAuthenticated:e,isStoreOpen:t,toggleStore:n,autoprint:r,setAutoprint:i}=Fr(),[,s]=Gt(),[l,u]=C.useState(()=>{const p=localStorage.getItem("dogmelina_settings");return p?JSON.parse(p):{whatsapp:"5511999999999",openingTime:"18:00",closingTime:"23:59",deliveryFee:"5.00",minOrderValue:"20.00"}});if(!e)return s("/admin/login"),null;const d=()=>{i(!r),Ge.success(`Impressão automática ${r?"desativada":"ativada"}`)},f=()=>{localStorage.setItem("dogmelina_settings",JSON.stringify(l)),Ge.success("Configurações salvas com sucesso!")};return g.jsxs("div",{"data-loc":"client/src/pages/AdminSettings.tsx:43",className:"min-h-screen bg-background",children:[g.jsx("header",{"data-loc":"client/src/pages/AdminSettings.tsx:45",className:"bg-white border-b border-border sticky top-0 z-50 shadow-sm",children:g.jsxs("div",{"data-loc":"client/src/pages/AdminSettings.tsx:46",className:"max-w-2xl mx-auto px-6 py-4 flex items-center gap-4",children:[g.jsx("button",{"data-loc":"client/src/pages/AdminSettings.tsx:47",onClick:()=>s("/admin/dashboard"),className:"w-10 h-10 rounded-full bg-secondary flex items-center justify-center hover:bg-secondary/80 transition-colors",children:g.jsx(mr,{"data-loc":"client/src/pages/AdminSettings.tsx:51",size:20})}),g.jsxs("div",{"data-loc":"client/src/pages/AdminSettings.tsx:53",children:[g.jsx("h1",{"data-loc":"client/src/pages/AdminSettings.tsx:54",className:"text-2xl font-bold text-foreground",children:"Configurações"}),g.jsx("p",{"data-loc":"client/src/pages/AdminSettings.tsx:55",className:"text-sm text-muted-foreground",children:"Gerenciar loja e integrações"})]})]})}),g.jsx("div",{"data-loc":"client/src/pages/AdminSettings.tsx:60",className:"max-w-2xl mx-auto px-6 py-8 pb-24",children:g.jsxs("div",{"data-loc":"client/src/pages/AdminSettings.tsx:61",className:"space-y-6",children:[g.jsxs("section",{"data-loc":"client/src/pages/AdminSettings.tsx:63",className:"bg-card rounded-2xl p-6 border border-border shadow-sm",children:[g.jsxs("div",{"data-loc":"client/src/pages/AdminSettings.tsx:64",className:"flex items-center justify-between mb-6",children:[g.jsxs("div",{"data-loc":"client/src/pages/AdminSettings.tsx:65",className:"flex items-center gap-3",children:[g.jsx(M3,{"data-loc":"client/src/pages/AdminSettings.tsx:66",size:24,className:t?"text-green-600":"text-red-600"}),g.jsxs("div",{"data-loc":"client/src/pages/AdminSettings.tsx:67",children:[g.jsx("h2",{"data-loc":"client/src/pages/AdminSettings.tsx:68",className:"text-lg font-bold text-foreground",children:"Status da Loja"}),g.jsx("p",{"data-loc":"client/src/pages/AdminSettings.tsx:69",className:"text-sm text-muted-foreground",children:"Abrir ou fechar para novos pedidos"})]})]}),g.jsx(hr,{"data-loc":"client/src/pages/AdminSettings.tsx:72",className:t?"bg-green-100 text-green-800 border-none":"bg-red-100 text-red-800 border-none",children:t?"Aberta":"Fechada"})]}),g.jsx(be,{"data-loc":"client/src/pages/AdminSettings.tsx:77",className:"w-full rounded-xl h-12 font-bold",onClick:n,variant:t?"destructive":"default",children:t?"Fechar Loja":"Abrir Loja"})]}),g.jsxs("section",{"data-loc":"client/src/pages/AdminSettings.tsx:87",className:"bg-card rounded-2xl p-6 border border-border shadow-sm",children:[g.jsxs("div",{"data-loc":"client/src/pages/AdminSettings.tsx:88",className:"flex items-center gap-3 mb-6",children:[g.jsx(yw,{"data-loc":"client/src/pages/AdminSettings.tsx:89",size:24,className:"text-green-600"}),g.jsxs("div",{"data-loc":"client/src/pages/AdminSettings.tsx:90",children:[g.jsx("h2",{"data-loc":"client/src/pages/AdminSettings.tsx:91",className:"text-lg font-bold text-foreground",children:"WhatsApp da Loja"}),g.jsx("p",{"data-loc":"client/src/pages/AdminSettings.tsx:92",className:"text-sm text-muted-foreground",children:"Número que receberá os pedidos"})]})]}),g.jsx("div",{"data-loc":"client/src/pages/AdminSettings.tsx:96",className:"space-y-4",children:g.jsxs("div",{"data-loc":"client/src/pages/AdminSettings.tsx:97",children:[g.jsx(Nt,{"data-loc":"client/src/pages/AdminSettings.tsx:98",className:"text-sm font-medium mb-2 block",children:"Número do WhatsApp (com DDD)"}),g.jsx(Fe,{"data-loc":"client/src/pages/AdminSettings.tsx:99",placeholder:"Ex: 5511999999999",value:l.whatsapp,onChange:p=>u({...l,whatsapp:p.target.value}),className:"bg-secondary/30 border-border h-12 rounded-xl"}),g.jsx("p",{"data-loc":"client/src/pages/AdminSettings.tsx:105",className:"text-[10px] text-muted-foreground mt-2 px-1",children:"* Use o formato internacional: Código do País + DDD + Número (Ex: 5511999999999)"})]})})]}),g.jsxs("section",{"data-loc":"client/src/pages/AdminSettings.tsx:113",className:"bg-card rounded-2xl p-6 border border-border shadow-sm",children:[g.jsxs("div",{"data-loc":"client/src/pages/AdminSettings.tsx:114",className:"flex items-center gap-3 mb-6",children:[g.jsx(j3,{"data-loc":"client/src/pages/AdminSettings.tsx:115",size:24,className:"text-primary"}),g.jsxs("div",{"data-loc":"client/src/pages/AdminSettings.tsx:116",children:[g.jsx("h2",{"data-loc":"client/src/pages/AdminSettings.tsx:117",className:"text-lg font-bold text-foreground",children:"Valores e Taxas"}),g.jsx("p",{"data-loc":"client/src/pages/AdminSettings.tsx:118",className:"text-sm text-muted-foreground",children:"Configure taxas e valores mínimos"})]})]}),g.jsxs("div",{"data-loc":"client/src/pages/AdminSettings.tsx:122",className:"grid grid-cols-2 gap-4",children:[g.jsxs("div",{"data-loc":"client/src/pages/AdminSettings.tsx:123",children:[g.jsx(Nt,{"data-loc":"client/src/pages/AdminSettings.tsx:124",className:"text-sm font-medium mb-2 block",children:"Taxa de Entrega (R$)"}),g.jsx(Fe,{"data-loc":"client/src/pages/AdminSettings.tsx:125",type:"number",value:l.deliveryFee,onChange:p=>u({...l,deliveryFee:p.target.value}),className:"bg-secondary/30 border-border h-12 rounded-xl"})]}),g.jsxs("div",{"data-loc":"client/src/pages/AdminSettings.tsx:132",children:[g.jsx(Nt,{"data-loc":"client/src/pages/AdminSettings.tsx:133",className:"text-sm font-medium mb-2 block",children:"Pedido Mínimo (R$)"}),g.jsx(Fe,{"data-loc":"client/src/pages/AdminSettings.tsx:134",type:"number",value:l.minOrderValue,onChange:p=>u({...l,minOrderValue:p.target.value}),className:"bg-secondary/30 border-border h-12 rounded-xl"})]})]})]}),g.jsxs("section",{"data-loc":"client/src/pages/AdminSettings.tsx:145",className:"bg-card rounded-2xl p-6 border border-border shadow-sm",children:[g.jsxs("div",{"data-loc":"client/src/pages/AdminSettings.tsx:146",className:"flex items-center gap-3 mb-6",children:[g.jsx(xo,{"data-loc":"client/src/pages/AdminSettings.tsx:147",size:24,className:"text-primary"}),g.jsxs("div",{"data-loc":"client/src/pages/AdminSettings.tsx:148",children:[g.jsx("h2",{"data-loc":"client/src/pages/AdminSettings.tsx:149",className:"text-lg font-bold text-foreground",children:"Horário de Funcionamento"}),g.jsx("p",{"data-loc":"client/src/pages/AdminSettings.tsx:150",className:"text-sm text-muted-foreground",children:"Configure os horários de atendimento"})]})]}),g.jsxs("div",{"data-loc":"client/src/pages/AdminSettings.tsx:154",className:"grid grid-cols-2 gap-4",children:[g.jsxs("div",{"data-loc":"client/src/pages/AdminSettings.tsx:155",children:[g.jsx(Nt,{"data-loc":"client/src/pages/AdminSettings.tsx:156",className:"text-sm font-medium mb-2 block",children:"Abre às"}),g.jsx(Fe,{"data-loc":"client/src/pages/AdminSettings.tsx:157",type:"time",value:l.openingTime,onChange:p=>u({...l,openingTime:p.target.value}),className:"bg-secondary/30 border-border h-12 rounded-xl"})]}),g.jsxs("div",{"data-loc":"client/src/pages/AdminSettings.tsx:164",children:[g.jsx(Nt,{"data-loc":"client/src/pages/AdminSettings.tsx:165",className:"text-sm font-medium mb-2 block",children:"Fecha às"}),g.jsx(Fe,{"data-loc":"client/src/pages/AdminSettings.tsx:166",type:"time",value:l.closingTime,onChange:p=>u({...l,closingTime:p.target.value}),className:"bg-secondary/30 border-border h-12 rounded-xl"})]})]})]}),g.jsxs("section",{"data-loc":"client/src/pages/AdminSettings.tsx:177",className:"bg-card rounded-2xl p-6 border border-border shadow-sm",children:[g.jsxs("div",{"data-loc":"client/src/pages/AdminSettings.tsx:178",className:"flex items-center justify-between mb-6",children:[g.jsxs("div",{"data-loc":"client/src/pages/AdminSettings.tsx:179",className:"flex items-center gap-3",children:[g.jsx(D3,{"data-loc":"client/src/pages/AdminSettings.tsx:180",size:24,className:"text-primary"}),g.jsxs("div",{"data-loc":"client/src/pages/AdminSettings.tsx:181",children:[g.jsx("h2",{"data-loc":"client/src/pages/AdminSettings.tsx:182",className:"text-lg font-bold text-foreground",children:"Impressão Automática"}),g.jsx("p",{"data-loc":"client/src/pages/AdminSettings.tsx:183",className:"text-sm text-muted-foreground",children:"Imprimir pedidos automaticamente"})]})]}),g.jsx(hr,{"data-loc":"client/src/pages/AdminSettings.tsx:186",className:r?"bg-green-100 text-green-800 border-none":"bg-gray-100 text-gray-800 border-none",children:r?"Ativada":"Desativada"})]}),g.jsx(be,{"data-loc":"client/src/pages/AdminSettings.tsx:191",className:"w-full rounded-xl h-12 font-bold",onClick:d,variant:r?"destructive":"default",children:r?"Desativar Impressão Automática":"Ativar Impressão Automática"})]}),g.jsxs("div",{"data-loc":"client/src/pages/AdminSettings.tsx:201",className:"flex gap-3 sticky bottom-6 z-10",children:[g.jsx(be,{"data-loc":"client/src/pages/AdminSettings.tsx:202",variant:"outline",className:"flex-1 rounded-xl h-14 font-bold bg-white shadow-lg",onClick:()=>s("/admin/dashboard"),children:"Cancelar"}),g.jsx(be,{"data-loc":"client/src/pages/AdminSettings.tsx:209",className:"flex-1 rounded-xl h-14 font-bold shadow-lg",onClick:f,children:"Salvar Configurações"})]})]})})]})}var Hv,rE;function Cn(){if(rE)return Hv;rE=1;var e=Array.isArray;return Hv=e,Hv}var Fv,aE;function R5(){if(aE)return Fv;aE=1;var e=typeof Af=="object"&&Af&&Af.Object===Object&&Af;return Fv=e,Fv}var Gv,iE;function Kr(){if(iE)return Gv;iE=1;var e=R5(),t=typeof self=="object"&&self&&self.Object===Object&&self,n=e||t||Function("return this")();return Gv=n,Gv}var Kv,oE;function Hu(){if(oE)return Kv;oE=1;var e=Kr(),t=e.Symbol;return Kv=t,Kv}var Xv,sE;function vH(){if(sE)return Xv;sE=1;var e=Hu(),t=Object.prototype,n=t.hasOwnProperty,r=t.toString,i=e?e.toStringTag:void 0;function s(l){var u=n.call(l,i),d=l[i];try{l[i]=void 0;var f=!0}catch{}var p=r.call(l);return f&&(u?l[i]=d:delete l[i]),p}return Xv=s,Xv}var Yv,lE;function yH(){if(lE)return Yv;lE=1;var e=Object.prototype,t=e.toString;function n(r){return t.call(r)}return Yv=n,Yv}var Wv,cE;function _a(){if(cE)return Wv;cE=1;var e=Hu(),t=vH(),n=yH(),r="[object Null]",i="[object Undefined]",s=e?e.toStringTag:void 0;function l(u){return u==null?u===void 0?i:r:s&&s in Object(u)?t(u):n(u)}return Wv=l,Wv}var Zv,uE;function Pa(){if(uE)return Zv;uE=1;function e(t){return t!=null&&typeof t=="object"}return Zv=e,Zv}var Qv,dE;function gl(){if(dE)return Qv;dE=1;var e=_a(),t=Pa(),n="[object Symbol]";function r(i){return typeof i=="symbol"||t(i)&&e(i)==n}return Qv=r,Qv}var Jv,fE;function kw(){if(fE)return Jv;fE=1;var e=Cn(),t=gl(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;function i(s,l){if(e(s))return!1;var u=typeof s;return u=="number"||u=="symbol"||u=="boolean"||s==null||t(s)?!0:r.test(s)||!n.test(s)||l!=null&&s in Object(l)}return Jv=i,Jv}var ey,hE;function xi(){if(hE)return ey;hE=1;function e(t){var n=typeof t;return t!=null&&(n=="object"||n=="function")}return ey=e,ey}var ty,pE;function Lw(){if(pE)return ty;pE=1;var e=_a(),t=xi(),n="[object AsyncFunction]",r="[object Function]",i="[object GeneratorFunction]",s="[object Proxy]";function l(u){if(!t(u))return!1;var d=e(u);return d==r||d==i||d==n||d==s}return ty=l,ty}var ny,mE;function bH(){if(mE)return ny;mE=1;var e=Kr(),t=e["__core-js_shared__"];return ny=t,ny}var ry,gE;function xH(){if(gE)return ry;gE=1;var e=bH(),t=(function(){var r=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""})();function n(r){return!!t&&t in r}return ry=n,ry}var ay,vE;function k5(){if(vE)return ay;vE=1;var e=Function.prototype,t=e.toString;function n(r){if(r!=null){try{return t.call(r)}catch{}try{return r+""}catch{}}return""}return ay=n,ay}var iy,yE;function SH(){if(yE)return iy;yE=1;var e=Lw(),t=xH(),n=xi(),r=k5(),i=/[\\^$.*+?()[\]{}|]/g,s=/^\[object .+?Constructor\]$/,l=Function.prototype,u=Object.prototype,d=l.toString,f=u.hasOwnProperty,p=RegExp("^"+d.call(f).replace(i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function m(v){if(!n(v)||t(v))return!1;var b=e(v)?p:s;return b.test(r(v))}return iy=m,iy}var oy,bE;function wH(){if(bE)return oy;bE=1;function e(t,n){return t?.[n]}return oy=e,oy}var sy,xE;function wo(){if(xE)return sy;xE=1;var e=SH(),t=wH();function n(r,i){var s=t(r,i);return e(s)?s:void 0}return sy=n,sy}var ly,SE;function jp(){if(SE)return ly;SE=1;var e=wo(),t=e(Object,"create");return ly=t,ly}var cy,wE;function AH(){if(wE)return cy;wE=1;var e=jp();function t(){this.__data__=e?e(null):{},this.size=0}return cy=t,cy}var uy,AE;function OH(){if(AE)return uy;AE=1;function e(t){var n=this.has(t)&&delete this.__data__[t];return this.size-=n?1:0,n}return uy=e,uy}var dy,OE;function jH(){if(OE)return dy;OE=1;var e=jp(),t="__lodash_hash_undefined__",n=Object.prototype,r=n.hasOwnProperty;function i(s){var l=this.__data__;if(e){var u=l[s];return u===t?void 0:u}return r.call(l,s)?l[s]:void 0}return dy=i,dy}var fy,jE;function TH(){if(jE)return fy;jE=1;var e=jp(),t=Object.prototype,n=t.hasOwnProperty;function r(i){var s=this.__data__;return e?s[i]!==void 0:n.call(s,i)}return fy=r,fy}var hy,TE;function CH(){if(TE)return hy;TE=1;var e=jp(),t="__lodash_hash_undefined__";function n(r,i){var s=this.__data__;return this.size+=this.has(r)?0:1,s[r]=e&&i===void 0?t:i,this}return hy=n,hy}var py,CE;function EH(){if(CE)return py;CE=1;var e=AH(),t=OH(),n=jH(),r=TH(),i=CH();function s(l){var u=-1,d=l==null?0:l.length;for(this.clear();++u<d;){var f=l[u];this.set(f[0],f[1])}}return s.prototype.clear=e,s.prototype.delete=t,s.prototype.get=n,s.prototype.has=r,s.prototype.set=i,py=s,py}var my,EE;function _H(){if(EE)return my;EE=1;function e(){this.__data__=[],this.size=0}return my=e,my}var gy,_E;function zw(){if(_E)return gy;_E=1;function e(t,n){return t===n||t!==t&&n!==n}return gy=e,gy}var vy,PE;function Tp(){if(PE)return vy;PE=1;var e=zw();function t(n,r){for(var i=n.length;i--;)if(e(n[i][0],r))return i;return-1}return vy=t,vy}var yy,NE;function PH(){if(NE)return yy;NE=1;var e=Tp(),t=Array.prototype,n=t.splice;function r(i){var s=this.__data__,l=e(s,i);if(l<0)return!1;var u=s.length-1;return l==u?s.pop():n.call(s,l,1),--this.size,!0}return yy=r,yy}var by,ME;function NH(){if(ME)return by;ME=1;var e=Tp();function t(n){var r=this.__data__,i=e(r,n);return i<0?void 0:r[i][1]}return by=t,by}var xy,DE;function MH(){if(DE)return xy;DE=1;var e=Tp();function t(n){return e(this.__data__,n)>-1}return xy=t,xy}var Sy,RE;function DH(){if(RE)return Sy;RE=1;var e=Tp();function t(n,r){var i=this.__data__,s=e(i,n);return s<0?(++this.size,i.push([n,r])):i[s][1]=r,this}return Sy=t,Sy}var wy,kE;function Cp(){if(kE)return wy;kE=1;var e=_H(),t=PH(),n=NH(),r=MH(),i=DH();function s(l){var u=-1,d=l==null?0:l.length;for(this.clear();++u<d;){var f=l[u];this.set(f[0],f[1])}}return s.prototype.clear=e,s.prototype.delete=t,s.prototype.get=n,s.prototype.has=r,s.prototype.set=i,wy=s,wy}var Ay,LE;function $w(){if(LE)return Ay;LE=1;var e=wo(),t=Kr(),n=e(t,"Map");return Ay=n,Ay}var Oy,zE;function RH(){if(zE)return Oy;zE=1;var e=EH(),t=Cp(),n=$w();function r(){this.size=0,this.__data__={hash:new e,map:new(n||t),string:new e}}return Oy=r,Oy}var jy,$E;function kH(){if($E)return jy;$E=1;function e(t){var n=typeof t;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?t!=="__proto__":t===null}return jy=e,jy}var Ty,BE;function Ep(){if(BE)return Ty;BE=1;var e=kH();function t(n,r){var i=n.__data__;return e(r)?i[typeof r=="string"?"string":"hash"]:i.map}return Ty=t,Ty}var Cy,IE;function LH(){if(IE)return Cy;IE=1;var e=Ep();function t(n){var r=e(this,n).delete(n);return this.size-=r?1:0,r}return Cy=t,Cy}var Ey,qE;function zH(){if(qE)return Ey;qE=1;var e=Ep();function t(n){return e(this,n).get(n)}return Ey=t,Ey}var _y,VE;function $H(){if(VE)return _y;VE=1;var e=Ep();function t(n){return e(this,n).has(n)}return _y=t,_y}var Py,UE;function BH(){if(UE)return Py;UE=1;var e=Ep();function t(n,r){var i=e(this,n),s=i.size;return i.set(n,r),this.size+=i.size==s?0:1,this}return Py=t,Py}var Ny,HE;function Bw(){if(HE)return Ny;HE=1;var e=RH(),t=LH(),n=zH(),r=$H(),i=BH();function s(l){var u=-1,d=l==null?0:l.length;for(this.clear();++u<d;){var f=l[u];this.set(f[0],f[1])}}return s.prototype.clear=e,s.prototype.delete=t,s.prototype.get=n,s.prototype.has=r,s.prototype.set=i,Ny=s,Ny}var My,FE;function L5(){if(FE)return My;FE=1;var e=Bw(),t="Expected a function";function n(r,i){if(typeof r!="function"||i!=null&&typeof i!="function")throw new TypeError(t);var s=function(){var l=arguments,u=i?i.apply(this,l):l[0],d=s.cache;if(d.has(u))return d.get(u);var f=r.apply(this,l);return s.cache=d.set(u,f)||d,f};return s.cache=new(n.Cache||e),s}return n.Cache=e,My=n,My}var Dy,GE;function IH(){if(GE)return Dy;GE=1;var e=L5(),t=500;function n(r){var i=e(r,function(l){return s.size===t&&s.clear(),l}),s=i.cache;return i}return Dy=n,Dy}var Ry,KE;function qH(){if(KE)return Ry;KE=1;var e=IH(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,n=/\\(\\)?/g,r=e(function(i){var s=[];return i.charCodeAt(0)===46&&s.push(""),i.replace(t,function(l,u,d,f){s.push(d?f.replace(n,"$1"):u||l)}),s});return Ry=r,Ry}var ky,XE;function Iw(){if(XE)return ky;XE=1;function e(t,n){for(var r=-1,i=t==null?0:t.length,s=Array(i);++r<i;)s[r]=n(t[r],r,t);return s}return ky=e,ky}var Ly,YE;function VH(){if(YE)return Ly;YE=1;var e=Hu(),t=Iw(),n=Cn(),r=gl(),i=e?e.prototype:void 0,s=i?i.toString:void 0;function l(u){if(typeof u=="string")return u;if(n(u))return t(u,l)+"";if(r(u))return s?s.call(u):"";var d=u+"";return d=="0"&&1/u==-1/0?"-0":d}return Ly=l,Ly}var zy,WE;function z5(){if(WE)return zy;WE=1;var e=VH();function t(n){return n==null?"":e(n)}return zy=t,zy}var $y,ZE;function $5(){if(ZE)return $y;ZE=1;var e=Cn(),t=kw(),n=qH(),r=z5();function i(s,l){return e(s)?s:t(s,l)?[s]:n(r(s))}return $y=i,$y}var By,QE;function _p(){if(QE)return By;QE=1;var e=gl();function t(n){if(typeof n=="string"||e(n))return n;var r=n+"";return r=="0"&&1/n==-1/0?"-0":r}return By=t,By}var Iy,JE;function qw(){if(JE)return Iy;JE=1;var e=$5(),t=_p();function n(r,i){i=e(i,r);for(var s=0,l=i.length;r!=null&&s<l;)r=r[t(i[s++])];return s&&s==l?r:void 0}return Iy=n,Iy}var qy,e_;function B5(){if(e_)return qy;e_=1;var e=qw();function t(n,r,i){var s=n==null?void 0:e(n,r);return s===void 0?i:s}return qy=t,qy}var UH=B5();const Un=tt(UH);var Vy,t_;function HH(){if(t_)return Vy;t_=1;function e(t){return t==null}return Vy=e,Vy}var FH=HH();const Ne=tt(FH);var Uy,n_;function GH(){if(n_)return Uy;n_=1;var e=_a(),t=Cn(),n=Pa(),r="[object String]";function i(s){return typeof s=="string"||!t(s)&&n(s)&&e(s)==r}return Uy=i,Uy}var KH=GH();const ho=tt(KH);var XH=Lw();const _e=tt(XH);var YH=xi();const vl=tt(YH);var Hy={exports:{}},Qe={};/**
 * @license React
 * 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 r_;function WH(){if(r_)return Qe;r_=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),u=Symbol.for("react.server_context"),d=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),A;A=Symbol.for("react.module.reference");function S(w){if(typeof w=="object"&&w!==null){var O=w.$$typeof;switch(O){case e:switch(w=w.type,w){case n:case i:case r:case f:case p:return w;default:switch(w=w&&w.$$typeof,w){case u:case l:case d:case v:case m:case s:return w;default:return O}}case t:return O}}}return Qe.ContextConsumer=l,Qe.ContextProvider=s,Qe.Element=e,Qe.ForwardRef=d,Qe.Fragment=n,Qe.Lazy=v,Qe.Memo=m,Qe.Portal=t,Qe.Profiler=i,Qe.StrictMode=r,Qe.Suspense=f,Qe.SuspenseList=p,Qe.isAsyncMode=function(){return!1},Qe.isConcurrentMode=function(){return!1},Qe.isContextConsumer=function(w){return S(w)===l},Qe.isContextProvider=function(w){return S(w)===s},Qe.isElement=function(w){return typeof w=="object"&&w!==null&&w.$$typeof===e},Qe.isForwardRef=function(w){return S(w)===d},Qe.isFragment=function(w){return S(w)===n},Qe.isLazy=function(w){return S(w)===v},Qe.isMemo=function(w){return S(w)===m},Qe.isPortal=function(w){return S(w)===t},Qe.isProfiler=function(w){return S(w)===i},Qe.isStrictMode=function(w){return S(w)===r},Qe.isSuspense=function(w){return S(w)===f},Qe.isSuspenseList=function(w){return S(w)===p},Qe.isValidElementType=function(w){return typeof w=="string"||typeof w=="function"||w===n||w===i||w===r||w===f||w===p||w===b||typeof w=="object"&&w!==null&&(w.$$typeof===v||w.$$typeof===m||w.$$typeof===s||w.$$typeof===l||w.$$typeof===d||w.$$typeof===A||w.getModuleId!==void 0)},Qe.typeOf=S,Qe}var a_;function ZH(){return a_||(a_=1,Hy.exports=WH()),Hy.exports}var QH=ZH(),Fy,i_;function I5(){if(i_)return Fy;i_=1;var e=_a(),t=Pa(),n="[object Number]";function r(i){return typeof i=="number"||t(i)&&e(i)==n}return Fy=r,Fy}var Gy,o_;function JH(){if(o_)return Gy;o_=1;var e=I5();function t(n){return e(n)&&n!=+n}return Gy=t,Gy}var eF=JH();const Fu=tt(eF);var tF=I5();const nF=tt(tF);var pn=function(t){return t===0?0:t>0?1:-1},Ji=function(t){return ho(t)&&t.indexOf("%")===t.length-1},de=function(t){return nF(t)&&!Fu(t)},rF=function(t){return Ne(t)},Ft=function(t){return de(t)||ho(t)},aF=0,yl=function(t){var n=++aF;return"".concat(t||"").concat(n)},mn=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!de(t)&&!ho(t))return r;var s;if(Ji(t)){var l=t.indexOf("%");s=n*parseFloat(t.slice(0,l))/100}else s=+t;return Fu(s)&&(s=r),i&&s>n&&(s=n),s},di=function(t){if(!t)return null;var n=Object.keys(t);return n&&n.length?t[n[0]]:null},iF=function(t){if(!Array.isArray(t))return!1;for(var n=t.length,r={},i=0;i<n;i++)if(!r[t[i]])r[t[i]]=!0;else return!0;return!1},In=function(t,n){return de(t)&&de(n)?function(r){return t+r*(n-t)}:function(){return n}};function ch(e,t,n){return!e||!e.length?null:e.find(function(r){return r&&(typeof t=="function"?t(r):Un(r,t))===n})}var oF=function(t,n){return de(t)&&de(n)?t-n:ho(t)&&ho(n)?t.localeCompare(n):t instanceof Date&&n instanceof Date?t.getTime()-n.getTime():String(t).localeCompare(String(n))};function Ms(e,t){for(var n in e)if({}.hasOwnProperty.call(e,n)&&(!{}.hasOwnProperty.call(t,n)||e[n]!==t[n]))return!1;for(var r in t)if({}.hasOwnProperty.call(t,r)&&!{}.hasOwnProperty.call(e,r))return!1;return!0}function A1(e){"@babel/helpers - typeof";return A1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},A1(e)}var sF=["viewBox","children"],lF=["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"],s_=["points","pathLength"],Ky={svg:sF,polygon:s_,polyline:s_},Vw=["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"],uh=function(t,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var r=t;if(C.isValidElement(t)&&(r=t.props),!vl(r))return null;var i={};return Object.keys(r).forEach(function(s){Vw.includes(s)&&(i[s]=n||function(l){return r[s](r,l)})}),i},cF=function(t,n,r){return function(i){return t(n,r,i),null}},po=function(t,n,r){if(!vl(t)||A1(t)!=="object")return null;var i=null;return Object.keys(t).forEach(function(s){var l=t[s];Vw.includes(s)&&typeof l=="function"&&(i||(i={}),i[s]=cF(l,n,r))}),i},uF=["children"],dF=["children"];function l_(e,t){if(e==null)return{};var n=fF(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function fF(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function O1(e){"@babel/helpers - typeof";return O1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},O1(e)}var c_={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart",contextmenu:"onContextMenu",dblclick:"onDoubleClick"},xa=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},u_=null,Xy=null,Uw=function e(t){if(t===u_&&Array.isArray(Xy))return Xy;var n=[];return C.Children.forEach(t,function(r){Ne(r)||(QH.isFragment(r)?n=n.concat(e(r.props.children)):n.push(r))}),Xy=n,u_=t,n};function Hn(e,t){var n=[],r=[];return Array.isArray(t)?r=t.map(function(i){return xa(i)}):r=[xa(t)],Uw(e).forEach(function(i){var s=Un(i,"type.displayName")||Un(i,"type.name");r.indexOf(s)!==-1&&n.push(i)}),n}function Bn(e,t){var n=Hn(e,t);return n&&n[0]}var d_=function(t){if(!t||!t.props)return!1;var n=t.props,r=n.width,i=n.height;return!(!de(r)||r<=0||!de(i)||i<=0)},hF=["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"],pF=function(t){return t&&t.type&&ho(t.type)&&hF.indexOf(t.type)>=0},mF=function(t){return t&&O1(t)==="object"&&"clipDot"in t},gF=function(t,n,r,i){var s,l=(s=Ky?.[i])!==null&&s!==void 0?s:[];return n.startsWith("data-")||!_e(t)&&(i&&l.includes(n)||lF.includes(n))||r&&Vw.includes(n)},Ae=function(t,n,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var i=t;if(C.isValidElement(t)&&(i=t.props),!vl(i))return null;var s={};return Object.keys(i).forEach(function(l){var u;gF((u=i)===null||u===void 0?void 0:u[l],l,n,r)&&(s[l]=i[l])}),s},j1=function e(t,n){if(t===n)return!0;var r=C.Children.count(t);if(r!==C.Children.count(n))return!1;if(r===0)return!0;if(r===1)return f_(Array.isArray(t)?t[0]:t,Array.isArray(n)?n[0]:n);for(var i=0;i<r;i++){var s=t[i],l=n[i];if(Array.isArray(s)||Array.isArray(l)){if(!e(s,l))return!1}else if(!f_(s,l))return!1}return!0},f_=function(t,n){if(Ne(t)&&Ne(n))return!0;if(!Ne(t)&&!Ne(n)){var r=t.props||{},i=r.children,s=l_(r,uF),l=n.props||{},u=l.children,d=l_(l,dF);return i&&u?Ms(s,d)&&j1(i,u):!i&&!u?Ms(s,d):!1}return!1},h_=function(t,n){var r=[],i={};return Uw(t).forEach(function(s,l){if(pF(s))r.push(s);else if(s){var u=xa(s.type),d=n[u]||{},f=d.handler,p=d.once;if(f&&(!p||!i[u])){var m=f(s,u,l);r.push(m),i[u]=!0}}}),r},vF=function(t){var n=t&&t.type;return n&&c_[n]?c_[n]:null},yF=function(t,n){return Uw(n).indexOf(t)},bF=["children","width","height","viewBox","className","style","title","desc"];function T1(){return T1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},T1.apply(this,arguments)}function xF(e,t){if(e==null)return{};var n=SF(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function SF(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function C1(e){var t=e.children,n=e.width,r=e.height,i=e.viewBox,s=e.className,l=e.style,u=e.title,d=e.desc,f=xF(e,bF),p=i||{width:n,height:r,x:0,y:0},m=Me("recharts-surface",s);return B.createElement("svg",T1({},Ae(f,!0,"svg"),{className:m,width:n,height:r,style:l,viewBox:"".concat(p.x," ").concat(p.y," ").concat(p.width," ").concat(p.height)}),B.createElement("title",null,u),B.createElement("desc",null,d),t)}var wF=["children","className"];function E1(){return E1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},E1.apply(this,arguments)}function AF(e,t){if(e==null)return{};var n=OF(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function OF(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var Ke=B.forwardRef(function(e,t){var n=e.children,r=e.className,i=AF(e,wF),s=Me("recharts-layer",r);return B.createElement("g",E1({className:s},Ae(i,!0),{ref:t}),n)}),Er=function(t,n){for(var r=arguments.length,i=new Array(r>2?r-2:0),s=2;s<r;s++)i[s-2]=arguments[s]},Yy,p_;function jF(){if(p_)return Yy;p_=1;function e(t,n,r){var i=-1,s=t.length;n<0&&(n=-n>s?0:s+n),r=r>s?s:r,r<0&&(r+=s),s=n>r?0:r-n>>>0,n>>>=0;for(var l=Array(s);++i<s;)l[i]=t[i+n];return l}return Yy=e,Yy}var Wy,m_;function TF(){if(m_)return Wy;m_=1;var e=jF();function t(n,r,i){var s=n.length;return i=i===void 0?s:i,!r&&i>=s?n:e(n,r,i)}return Wy=t,Wy}var Zy,g_;function q5(){if(g_)return Zy;g_=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",n="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",i=t+n+r,s="\\ufe0e\\ufe0f",l="\\u200d",u=RegExp("["+l+e+i+s+"]");function d(f){return u.test(f)}return Zy=d,Zy}var Qy,v_;function CF(){if(v_)return Qy;v_=1;function e(t){return t.split("")}return Qy=e,Qy}var Jy,y_;function EF(){if(y_)return Jy;y_=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",n="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",i=t+n+r,s="\\ufe0e\\ufe0f",l="["+e+"]",u="["+i+"]",d="\\ud83c[\\udffb-\\udfff]",f="(?:"+u+"|"+d+")",p="[^"+e+"]",m="(?:\\ud83c[\\udde6-\\uddff]){2}",v="[\\ud800-\\udbff][\\udc00-\\udfff]",b="\\u200d",A=f+"?",S="["+s+"]?",w="(?:"+b+"(?:"+[p,m,v].join("|")+")"+S+A+")*",O=S+A+w,_="(?:"+[p+u+"?",u,m,v,l].join("|")+")",T=RegExp(d+"(?="+d+")|"+_+O,"g");function M(j){return j.match(T)||[]}return Jy=M,Jy}var eb,b_;function _F(){if(b_)return eb;b_=1;var e=CF(),t=q5(),n=EF();function r(i){return t(i)?n(i):e(i)}return eb=r,eb}var tb,x_;function PF(){if(x_)return tb;x_=1;var e=TF(),t=q5(),n=_F(),r=z5();function i(s){return function(l){l=r(l);var u=t(l)?n(l):void 0,d=u?u[0]:l.charAt(0),f=u?e(u,1).join(""):l.slice(1);return d[s]()+f}}return tb=i,tb}var nb,S_;function NF(){if(S_)return nb;S_=1;var e=PF(),t=e("toUpperCase");return nb=t,nb}var MF=NF();const Pp=tt(MF);function dt(e){return function(){return e}}const V5=Math.cos,dh=Math.sin,Nr=Math.sqrt,fh=Math.PI,Np=2*fh,_1=Math.PI,P1=2*_1,Xi=1e-6,DF=P1-Xi;function U5(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function RF(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return U5;const n=10**t;return function(r){this._+=r[0];for(let i=1,s=r.length;i<s;++i)this._+=Math.round(arguments[i]*n)/n+r[i]}}class kF{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?U5:RF(t)}moveTo(t,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,n){this._append`L${this._x1=+t},${this._y1=+n}`}quadraticCurveTo(t,n,r,i){this._append`Q${+t},${+n},${this._x1=+r},${this._y1=+i}`}bezierCurveTo(t,n,r,i,s,l){this._append`C${+t},${+n},${+r},${+i},${this._x1=+s},${this._y1=+l}`}arcTo(t,n,r,i,s){if(t=+t,n=+n,r=+r,i=+i,s=+s,s<0)throw new Error(`negative radius: ${s}`);let l=this._x1,u=this._y1,d=r-t,f=i-n,p=l-t,m=u-n,v=p*p+m*m;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(v>Xi)if(!(Math.abs(m*d-f*p)>Xi)||!s)this._append`L${this._x1=t},${this._y1=n}`;else{let b=r-l,A=i-u,S=d*d+f*f,w=b*b+A*A,O=Math.sqrt(S),_=Math.sqrt(v),T=s*Math.tan((_1-Math.acos((S+v-w)/(2*O*_)))/2),M=T/_,j=T/O;Math.abs(M-1)>Xi&&this._append`L${t+M*p},${n+M*m}`,this._append`A${s},${s},0,0,${+(m*b>p*A)},${this._x1=t+j*d},${this._y1=n+j*f}`}}arc(t,n,r,i,s,l){if(t=+t,n=+n,r=+r,l=!!l,r<0)throw new Error(`negative radius: ${r}`);let u=r*Math.cos(i),d=r*Math.sin(i),f=t+u,p=n+d,m=1^l,v=l?i-s:s-i;this._x1===null?this._append`M${f},${p}`:(Math.abs(this._x1-f)>Xi||Math.abs(this._y1-p)>Xi)&&this._append`L${f},${p}`,r&&(v<0&&(v=v%P1+P1),v>DF?this._append`A${r},${r},0,1,${m},${t-u},${n-d}A${r},${r},0,1,${m},${this._x1=f},${this._y1=p}`:v>Xi&&this._append`A${r},${r},0,${+(v>=_1)},${m},${this._x1=t+r*Math.cos(s)},${this._y1=n+r*Math.sin(s)}`)}rect(t,n,r,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+i}h${-r}Z`}toString(){return this._}}function Hw(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{const r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);t=r}return e},()=>new kF(t)}function Fw(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function H5(e){this._context=e}H5.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function Mp(e){return new H5(e)}function F5(e){return e[0]}function G5(e){return e[1]}function K5(e,t){var n=dt(!0),r=null,i=Mp,s=null,l=Hw(u);e=typeof e=="function"?e:e===void 0?F5:dt(e),t=typeof t=="function"?t:t===void 0?G5:dt(t);function u(d){var f,p=(d=Fw(d)).length,m,v=!1,b;for(r==null&&(s=i(b=l())),f=0;f<=p;++f)!(f<p&&n(m=d[f],f,d))===v&&((v=!v)?s.lineStart():s.lineEnd()),v&&s.point(+e(m,f,d),+t(m,f,d));if(b)return s=null,b+""||null}return u.x=function(d){return arguments.length?(e=typeof d=="function"?d:dt(+d),u):e},u.y=function(d){return arguments.length?(t=typeof d=="function"?d:dt(+d),u):t},u.defined=function(d){return arguments.length?(n=typeof d=="function"?d:dt(!!d),u):n},u.curve=function(d){return arguments.length?(i=d,r!=null&&(s=i(r)),u):i},u.context=function(d){return arguments.length?(d==null?r=s=null:s=i(r=d),u):r},u}function Df(e,t,n){var r=null,i=dt(!0),s=null,l=Mp,u=null,d=Hw(f);e=typeof e=="function"?e:e===void 0?F5:dt(+e),t=typeof t=="function"?t:dt(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?G5:dt(+n);function f(m){var v,b,A,S=(m=Fw(m)).length,w,O=!1,_,T=new Array(S),M=new Array(S);for(s==null&&(u=l(_=d())),v=0;v<=S;++v){if(!(v<S&&i(w=m[v],v,m))===O)if(O=!O)b=v,u.areaStart(),u.lineStart();else{for(u.lineEnd(),u.lineStart(),A=v-1;A>=b;--A)u.point(T[A],M[A]);u.lineEnd(),u.areaEnd()}O&&(T[v]=+e(w,v,m),M[v]=+t(w,v,m),u.point(r?+r(w,v,m):T[v],n?+n(w,v,m):M[v]))}if(_)return u=null,_+""||null}function p(){return K5().defined(i).curve(l).context(s)}return f.x=function(m){return arguments.length?(e=typeof m=="function"?m:dt(+m),r=null,f):e},f.x0=function(m){return arguments.length?(e=typeof m=="function"?m:dt(+m),f):e},f.x1=function(m){return arguments.length?(r=m==null?null:typeof m=="function"?m:dt(+m),f):r},f.y=function(m){return arguments.length?(t=typeof m=="function"?m:dt(+m),n=null,f):t},f.y0=function(m){return arguments.length?(t=typeof m=="function"?m:dt(+m),f):t},f.y1=function(m){return arguments.length?(n=m==null?null:typeof m=="function"?m:dt(+m),f):n},f.lineX0=f.lineY0=function(){return p().x(e).y(t)},f.lineY1=function(){return p().x(e).y(n)},f.lineX1=function(){return p().x(r).y(t)},f.defined=function(m){return arguments.length?(i=typeof m=="function"?m:dt(!!m),f):i},f.curve=function(m){return arguments.length?(l=m,s!=null&&(u=l(s)),f):l},f.context=function(m){return arguments.length?(m==null?s=u=null:u=l(s=m),f):s},f}class X5{constructor(t,n){this._context=t,this._x=n}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,n){switch(t=+t,n=+n,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,n,t,n):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+n)/2,t,this._y0,t,n);break}}this._x0=t,this._y0=n}}function LF(e){return new X5(e,!0)}function zF(e){return new X5(e,!1)}const Gw={draw(e,t){const n=Nr(t/fh);e.moveTo(n,0),e.arc(0,0,n,0,Np)}},$F={draw(e,t){const n=Nr(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},Y5=Nr(1/3),BF=Y5*2,IF={draw(e,t){const n=Nr(t/BF),r=n*Y5;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},qF={draw(e,t){const n=Nr(t),r=-n/2;e.rect(r,r,n,n)}},VF=.8908130915292852,W5=dh(fh/10)/dh(7*fh/10),UF=dh(Np/10)*W5,HF=-V5(Np/10)*W5,FF={draw(e,t){const n=Nr(t*VF),r=UF*n,i=HF*n;e.moveTo(0,-n),e.lineTo(r,i);for(let s=1;s<5;++s){const l=Np*s/5,u=V5(l),d=dh(l);e.lineTo(d*n,-u*n),e.lineTo(u*r-d*i,d*r+u*i)}e.closePath()}},rb=Nr(3),GF={draw(e,t){const n=-Nr(t/(rb*3));e.moveTo(0,n*2),e.lineTo(-rb*n,-n),e.lineTo(rb*n,-n),e.closePath()}},tr=-.5,nr=Nr(3)/2,N1=1/Nr(12),KF=(N1/2+1)*3,XF={draw(e,t){const n=Nr(t/KF),r=n/2,i=n*N1,s=r,l=n*N1+n,u=-s,d=l;e.moveTo(r,i),e.lineTo(s,l),e.lineTo(u,d),e.lineTo(tr*r-nr*i,nr*r+tr*i),e.lineTo(tr*s-nr*l,nr*s+tr*l),e.lineTo(tr*u-nr*d,nr*u+tr*d),e.lineTo(tr*r+nr*i,tr*i-nr*r),e.lineTo(tr*s+nr*l,tr*l-nr*s),e.lineTo(tr*u+nr*d,tr*d-nr*u),e.closePath()}};function YF(e,t){let n=null,r=Hw(i);e=typeof e=="function"?e:dt(e||Gw),t=typeof t=="function"?t:dt(t===void 0?64:+t);function i(){let s;if(n||(n=s=r()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),s)return n=null,s+""||null}return i.type=function(s){return arguments.length?(e=typeof s=="function"?s:dt(s),i):e},i.size=function(s){return arguments.length?(t=typeof s=="function"?s:dt(+s),i):t},i.context=function(s){return arguments.length?(n=s??null,i):n},i}function hh(){}function ph(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function Z5(e){this._context=e}Z5.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:ph(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:ph(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function WF(e){return new Z5(e)}function Q5(e){this._context=e}Q5.prototype={areaStart:hh,areaEnd:hh,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:ph(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function ZF(e){return new Q5(e)}function J5(e){this._context=e}J5.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:ph(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function QF(e){return new J5(e)}function e6(e){this._context=e}e6.prototype={areaStart:hh,areaEnd:hh,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function JF(e){return new e6(e)}function w_(e){return e<0?-1:1}function A_(e,t,n){var r=e._x1-e._x0,i=t-e._x1,s=(e._y1-e._y0)/(r||i<0&&-0),l=(n-e._y1)/(i||r<0&&-0),u=(s*i+l*r)/(r+i);return(w_(s)+w_(l))*Math.min(Math.abs(s),Math.abs(l),.5*Math.abs(u))||0}function O_(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function ab(e,t,n){var r=e._x0,i=e._y0,s=e._x1,l=e._y1,u=(s-r)/3;e._context.bezierCurveTo(r+u,i+u*t,s-u,l-u*n,s,l)}function mh(e){this._context=e}mh.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:ab(this,this._t0,O_(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,ab(this,O_(this,n=A_(this,e,t)),n);break;default:ab(this,this._t0,n=A_(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function t6(e){this._context=new n6(e)}(t6.prototype=Object.create(mh.prototype)).point=function(e,t){mh.prototype.point.call(this,t,e)};function n6(e){this._context=e}n6.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,i,s){this._context.bezierCurveTo(t,e,r,n,s,i)}};function eG(e){return new mh(e)}function tG(e){return new t6(e)}function r6(e){this._context=e}r6.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=j_(e),i=j_(t),s=0,l=1;l<n;++s,++l)this._context.bezierCurveTo(r[0][s],i[0][s],r[1][s],i[1][s],e[l],t[l]);(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function j_(e){var t,n=e.length-1,r,i=new Array(n),s=new Array(n),l=new Array(n);for(i[0]=0,s[0]=2,l[0]=e[0]+2*e[1],t=1;t<n-1;++t)i[t]=1,s[t]=4,l[t]=4*e[t]+2*e[t+1];for(i[n-1]=2,s[n-1]=7,l[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=i[t]/s[t-1],s[t]-=r,l[t]-=r*l[t-1];for(i[n-1]=l[n-1]/s[n-1],t=n-2;t>=0;--t)i[t]=(l[t]-i[t+1])/s[t];for(s[n-1]=(e[n]+i[n-1])/2,t=0;t<n-1;++t)s[t]=2*e[t+1]-i[t+1];return[i,s]}function nG(e){return new r6(e)}function Dp(e,t){this._context=e,this._t=t}Dp.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}}this._x=e,this._y=t}};function rG(e){return new Dp(e,.5)}function aG(e){return new Dp(e,0)}function iG(e){return new Dp(e,1)}function $s(e,t){if((l=e.length)>1)for(var n=1,r,i,s=e[t[0]],l,u=s.length;n<l;++n)for(i=s,s=e[t[n]],r=0;r<u;++r)s[r][1]+=s[r][0]=isNaN(i[r][1])?i[r][0]:i[r][1]}function M1(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function oG(e,t){return e[t]}function sG(e){const t=[];return t.key=e,t}function lG(){var e=dt([]),t=M1,n=$s,r=oG;function i(s){var l=Array.from(e.apply(this,arguments),sG),u,d=l.length,f=-1,p;for(const m of s)for(u=0,++f;u<d;++u)(l[u][f]=[0,+r(m,l[u].key,f,s)]).data=m;for(u=0,p=Fw(t(l));u<d;++u)l[p[u]].index=u;return n(l,p),l}return i.keys=function(s){return arguments.length?(e=typeof s=="function"?s:dt(Array.from(s)),i):e},i.value=function(s){return arguments.length?(r=typeof s=="function"?s:dt(+s),i):r},i.order=function(s){return arguments.length?(t=s==null?M1:typeof s=="function"?s:dt(Array.from(s)),i):t},i.offset=function(s){return arguments.length?(n=s??$s,i):n},i}function cG(e,t){if((r=e.length)>0){for(var n,r,i=0,s=e[0].length,l;i<s;++i){for(l=n=0;n<r;++n)l+=e[n][i][1]||0;if(l)for(n=0;n<r;++n)e[n][i][1]/=l}$s(e,t)}}function uG(e,t){if((i=e.length)>0){for(var n=0,r=e[t[0]],i,s=r.length;n<s;++n){for(var l=0,u=0;l<i;++l)u+=e[l][n][1]||0;r[n][1]+=r[n][0]=-u/2}$s(e,t)}}function dG(e,t){if(!(!((l=e.length)>0)||!((s=(i=e[t[0]]).length)>0))){for(var n=0,r=1,i,s,l;r<s;++r){for(var u=0,d=0,f=0;u<l;++u){for(var p=e[t[u]],m=p[r][1]||0,v=p[r-1][1]||0,b=(m-v)/2,A=0;A<u;++A){var S=e[t[A]],w=S[r][1]||0,O=S[r-1][1]||0;b+=w-O}d+=m,f+=b*m}i[r-1][1]+=i[r-1][0]=n,d&&(n-=f/d)}i[r-1][1]+=i[r-1][0]=n,$s(e,t)}}function Jc(e){"@babel/helpers - typeof";return Jc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Jc(e)}var fG=["type","size","sizeType"];function D1(){return D1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},D1.apply(this,arguments)}function T_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function C_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?T_(Object(n),!0).forEach(function(r){hG(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):T_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function hG(e,t,n){return t=pG(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pG(e){var t=mG(e,"string");return Jc(t)=="symbol"?t:t+""}function mG(e,t){if(Jc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Jc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function gG(e,t){if(e==null)return{};var n=vG(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function vG(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var a6={symbolCircle:Gw,symbolCross:$F,symbolDiamond:IF,symbolSquare:qF,symbolStar:FF,symbolTriangle:GF,symbolWye:XF},yG=Math.PI/180,bG=function(t){var n="symbol".concat(Pp(t));return a6[n]||Gw},xG=function(t,n,r){if(n==="area")return t;switch(r){case"cross":return 5*t*t/9;case"diamond":return .5*t*t/Math.sqrt(3);case"square":return t*t;case"star":{var i=18*yG;return 1.25*t*t*(Math.tan(i)-Math.tan(i*2)*Math.pow(Math.tan(i),2))}case"triangle":return Math.sqrt(3)*t*t/4;case"wye":return(21-10*Math.sqrt(3))*t*t/8;default:return Math.PI*t*t/4}},SG=function(t,n){a6["symbol".concat(Pp(t))]=n},Kw=function(t){var n=t.type,r=n===void 0?"circle":n,i=t.size,s=i===void 0?64:i,l=t.sizeType,u=l===void 0?"area":l,d=gG(t,fG),f=C_(C_({},d),{},{type:r,size:s,sizeType:u}),p=function(){var w=bG(r),O=YF().type(w).size(xG(s,u,r));return O()},m=f.className,v=f.cx,b=f.cy,A=Ae(f,!0);return v===+v&&b===+b&&s===+s?B.createElement("path",D1({},A,{className:Me("recharts-symbols",m),transform:"translate(".concat(v,", ").concat(b,")"),d:p()})):null};Kw.registerSymbol=SG;function Bs(e){"@babel/helpers - typeof";return Bs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Bs(e)}function R1(){return R1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},R1.apply(this,arguments)}function E_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function wG(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?E_(Object(n),!0).forEach(function(r){eu(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):E_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function AG(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function OG(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,o6(r.key),r)}}function jG(e,t,n){return t&&OG(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function TG(e,t,n){return t=gh(t),CG(e,i6()?Reflect.construct(t,n||[],gh(e).constructor):t.apply(e,n))}function CG(e,t){if(t&&(Bs(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return EG(e)}function EG(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function i6(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(i6=function(){return!!e})()}function gh(e){return gh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},gh(e)}function _G(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&k1(e,t)}function k1(e,t){return k1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},k1(e,t)}function eu(e,t,n){return t=o6(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o6(e){var t=PG(e,"string");return Bs(t)=="symbol"?t:t+""}function PG(e,t){if(Bs(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Bs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var rr=32,Xw=(function(e){function t(){return AG(this,t),TG(this,t,arguments)}return _G(t,e),jG(t,[{key:"renderIcon",value:function(r){var i=this.props.inactiveColor,s=rr/2,l=rr/6,u=rr/3,d=r.inactive?i:r.color;if(r.type==="plainline")return B.createElement("line",{strokeWidth:4,fill:"none",stroke:d,strokeDasharray:r.payload.strokeDasharray,x1:0,y1:s,x2:rr,y2:s,className:"recharts-legend-icon"});if(r.type==="line")return B.createElement("path",{strokeWidth:4,fill:"none",stroke:d,d:"M0,".concat(s,"h").concat(u,`
            A`).concat(l,",").concat(l,",0,1,1,").concat(2*u,",").concat(s,`
            H`).concat(rr,"M").concat(2*u,",").concat(s,`
            A`).concat(l,",").concat(l,",0,1,1,").concat(u,",").concat(s),className:"recharts-legend-icon"});if(r.type==="rect")return B.createElement("path",{stroke:"none",fill:d,d:"M0,".concat(rr/8,"h").concat(rr,"v").concat(rr*3/4,"h").concat(-rr,"z"),className:"recharts-legend-icon"});if(B.isValidElement(r.legendIcon)){var f=wG({},r);return delete f.legendIcon,B.cloneElement(r.legendIcon,f)}return B.createElement(Kw,{fill:d,cx:s,cy:s,size:rr,sizeType:"diameter",type:r.type})}},{key:"renderItems",value:function(){var r=this,i=this.props,s=i.payload,l=i.iconSize,u=i.layout,d=i.formatter,f=i.inactiveColor,p={x:0,y:0,width:rr,height:rr},m={display:u==="horizontal"?"inline-block":"block",marginRight:10},v={display:"inline-block",verticalAlign:"middle",marginRight:4};return s.map(function(b,A){var S=b.formatter||d,w=Me(eu(eu({"recharts-legend-item":!0},"legend-item-".concat(A),!0),"inactive",b.inactive));if(b.type==="none")return null;var O=_e(b.value)?null:b.value;Er(!_e(b.value),`The name property is also required when using a function for the dataKey of a chart's cartesian components. Ex: <Bar name="Name of my Data"/>`);var _=b.inactive?f:b.color;return B.createElement("li",R1({className:w,style:m,key:"legend-item-".concat(A)},po(r.props,b,A)),B.createElement(C1,{width:l,height:l,viewBox:p,style:v},r.renderIcon(b)),B.createElement("span",{className:"recharts-legend-item-text",style:{color:_}},S?S(O,b,A):O))})}},{key:"render",value:function(){var r=this.props,i=r.payload,s=r.layout,l=r.align;if(!i||!i.length)return null;var u={padding:0,margin:0,textAlign:s==="horizontal"?l:"left"};return B.createElement("ul",{className:"recharts-default-legend",style:u},this.renderItems())}}])})(C.PureComponent);eu(Xw,"displayName","Legend");eu(Xw,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var ib,__;function NG(){if(__)return ib;__=1;var e=Cp();function t(){this.__data__=new e,this.size=0}return ib=t,ib}var ob,P_;function MG(){if(P_)return ob;P_=1;function e(t){var n=this.__data__,r=n.delete(t);return this.size=n.size,r}return ob=e,ob}var sb,N_;function DG(){if(N_)return sb;N_=1;function e(t){return this.__data__.get(t)}return sb=e,sb}var lb,M_;function RG(){if(M_)return lb;M_=1;function e(t){return this.__data__.has(t)}return lb=e,lb}var cb,D_;function kG(){if(D_)return cb;D_=1;var e=Cp(),t=$w(),n=Bw(),r=200;function i(s,l){var u=this.__data__;if(u instanceof e){var d=u.__data__;if(!t||d.length<r-1)return d.push([s,l]),this.size=++u.size,this;u=this.__data__=new n(d)}return u.set(s,l),this.size=u.size,this}return cb=i,cb}var ub,R_;function s6(){if(R_)return ub;R_=1;var e=Cp(),t=NG(),n=MG(),r=DG(),i=RG(),s=kG();function l(u){var d=this.__data__=new e(u);this.size=d.size}return l.prototype.clear=t,l.prototype.delete=n,l.prototype.get=r,l.prototype.has=i,l.prototype.set=s,ub=l,ub}var db,k_;function LG(){if(k_)return db;k_=1;var e="__lodash_hash_undefined__";function t(n){return this.__data__.set(n,e),this}return db=t,db}var fb,L_;function zG(){if(L_)return fb;L_=1;function e(t){return this.__data__.has(t)}return fb=e,fb}var hb,z_;function l6(){if(z_)return hb;z_=1;var e=Bw(),t=LG(),n=zG();function r(i){var s=-1,l=i==null?0:i.length;for(this.__data__=new e;++s<l;)this.add(i[s])}return r.prototype.add=r.prototype.push=t,r.prototype.has=n,hb=r,hb}var pb,$_;function c6(){if($_)return pb;$_=1;function e(t,n){for(var r=-1,i=t==null?0:t.length;++r<i;)if(n(t[r],r,t))return!0;return!1}return pb=e,pb}var mb,B_;function u6(){if(B_)return mb;B_=1;function e(t,n){return t.has(n)}return mb=e,mb}var gb,I_;function d6(){if(I_)return gb;I_=1;var e=l6(),t=c6(),n=u6(),r=1,i=2;function s(l,u,d,f,p,m){var v=d&r,b=l.length,A=u.length;if(b!=A&&!(v&&A>b))return!1;var S=m.get(l),w=m.get(u);if(S&&w)return S==u&&w==l;var O=-1,_=!0,T=d&i?new e:void 0;for(m.set(l,u),m.set(u,l);++O<b;){var M=l[O],j=u[O];if(f)var P=v?f(j,M,O,u,l,m):f(M,j,O,l,u,m);if(P!==void 0){if(P)continue;_=!1;break}if(T){if(!t(u,function(N,D){if(!n(T,D)&&(M===N||p(M,N,d,f,m)))return T.push(D)})){_=!1;break}}else if(!(M===j||p(M,j,d,f,m))){_=!1;break}}return m.delete(l),m.delete(u),_}return gb=s,gb}var vb,q_;function $G(){if(q_)return vb;q_=1;var e=Kr(),t=e.Uint8Array;return vb=t,vb}var yb,V_;function BG(){if(V_)return yb;V_=1;function e(t){var n=-1,r=Array(t.size);return t.forEach(function(i,s){r[++n]=[s,i]}),r}return yb=e,yb}var bb,U_;function Yw(){if(U_)return bb;U_=1;function e(t){var n=-1,r=Array(t.size);return t.forEach(function(i){r[++n]=i}),r}return bb=e,bb}var xb,H_;function IG(){if(H_)return xb;H_=1;var e=Hu(),t=$G(),n=zw(),r=d6(),i=BG(),s=Yw(),l=1,u=2,d="[object Boolean]",f="[object Date]",p="[object Error]",m="[object Map]",v="[object Number]",b="[object RegExp]",A="[object Set]",S="[object String]",w="[object Symbol]",O="[object ArrayBuffer]",_="[object DataView]",T=e?e.prototype:void 0,M=T?T.valueOf:void 0;function j(P,N,D,k,U,$,H){switch(D){case _:if(P.byteLength!=N.byteLength||P.byteOffset!=N.byteOffset)return!1;P=P.buffer,N=N.buffer;case O:return!(P.byteLength!=N.byteLength||!$(new t(P),new t(N)));case d:case f:case v:return n(+P,+N);case p:return P.name==N.name&&P.message==N.message;case b:case S:return P==N+"";case m:var X=i;case A:var J=k&l;if(X||(X=s),P.size!=N.size&&!J)return!1;var Z=H.get(P);if(Z)return Z==N;k|=u,H.set(P,N);var L=r(X(P),X(N),k,U,$,H);return H.delete(P),L;case w:if(M)return M.call(P)==M.call(N)}return!1}return xb=j,xb}var Sb,F_;function f6(){if(F_)return Sb;F_=1;function e(t,n){for(var r=-1,i=n.length,s=t.length;++r<i;)t[s+r]=n[r];return t}return Sb=e,Sb}var wb,G_;function qG(){if(G_)return wb;G_=1;var e=f6(),t=Cn();function n(r,i,s){var l=i(r);return t(r)?l:e(l,s(r))}return wb=n,wb}var Ab,K_;function VG(){if(K_)return Ab;K_=1;function e(t,n){for(var r=-1,i=t==null?0:t.length,s=0,l=[];++r<i;){var u=t[r];n(u,r,t)&&(l[s++]=u)}return l}return Ab=e,Ab}var Ob,X_;function UG(){if(X_)return Ob;X_=1;function e(){return[]}return Ob=e,Ob}var jb,Y_;function HG(){if(Y_)return jb;Y_=1;var e=VG(),t=UG(),n=Object.prototype,r=n.propertyIsEnumerable,i=Object.getOwnPropertySymbols,s=i?function(l){return l==null?[]:(l=Object(l),e(i(l),function(u){return r.call(l,u)}))}:t;return jb=s,jb}var Tb,W_;function FG(){if(W_)return Tb;W_=1;function e(t,n){for(var r=-1,i=Array(t);++r<t;)i[r]=n(r);return i}return Tb=e,Tb}var Cb,Z_;function GG(){if(Z_)return Cb;Z_=1;var e=_a(),t=Pa(),n="[object Arguments]";function r(i){return t(i)&&e(i)==n}return Cb=r,Cb}var Eb,Q_;function Ww(){if(Q_)return Eb;Q_=1;var e=GG(),t=Pa(),n=Object.prototype,r=n.hasOwnProperty,i=n.propertyIsEnumerable,s=e((function(){return arguments})())?e:function(l){return t(l)&&r.call(l,"callee")&&!i.call(l,"callee")};return Eb=s,Eb}var Rc={exports:{}},_b,J_;function KG(){if(J_)return _b;J_=1;function e(){return!1}return _b=e,_b}Rc.exports;var eP;function h6(){return eP||(eP=1,(function(e,t){var n=Kr(),r=KG(),i=t&&!t.nodeType&&t,s=i&&!0&&e&&!e.nodeType&&e,l=s&&s.exports===i,u=l?n.Buffer:void 0,d=u?u.isBuffer:void 0,f=d||r;e.exports=f})(Rc,Rc.exports)),Rc.exports}var Pb,tP;function Zw(){if(tP)return Pb;tP=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function n(r,i){var s=typeof r;return i=i??e,!!i&&(s=="number"||s!="symbol"&&t.test(r))&&r>-1&&r%1==0&&r<i}return Pb=n,Pb}var Nb,nP;function Qw(){if(nP)return Nb;nP=1;var e=9007199254740991;function t(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=e}return Nb=t,Nb}var Mb,rP;function XG(){if(rP)return Mb;rP=1;var e=_a(),t=Qw(),n=Pa(),r="[object Arguments]",i="[object Array]",s="[object Boolean]",l="[object Date]",u="[object Error]",d="[object Function]",f="[object Map]",p="[object Number]",m="[object Object]",v="[object RegExp]",b="[object Set]",A="[object String]",S="[object WeakMap]",w="[object ArrayBuffer]",O="[object DataView]",_="[object Float32Array]",T="[object Float64Array]",M="[object Int8Array]",j="[object Int16Array]",P="[object Int32Array]",N="[object Uint8Array]",D="[object Uint8ClampedArray]",k="[object Uint16Array]",U="[object Uint32Array]",$={};$[_]=$[T]=$[M]=$[j]=$[P]=$[N]=$[D]=$[k]=$[U]=!0,$[r]=$[i]=$[w]=$[s]=$[O]=$[l]=$[u]=$[d]=$[f]=$[p]=$[m]=$[v]=$[b]=$[A]=$[S]=!1;function H(X){return n(X)&&t(X.length)&&!!$[e(X)]}return Mb=H,Mb}var Db,aP;function p6(){if(aP)return Db;aP=1;function e(t){return function(n){return t(n)}}return Db=e,Db}var kc={exports:{}};kc.exports;var iP;function YG(){return iP||(iP=1,(function(e,t){var n=R5(),r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,s=i&&i.exports===r,l=s&&n.process,u=(function(){try{var d=i&&i.require&&i.require("util").types;return d||l&&l.binding&&l.binding("util")}catch{}})();e.exports=u})(kc,kc.exports)),kc.exports}var Rb,oP;function m6(){if(oP)return Rb;oP=1;var e=XG(),t=p6(),n=YG(),r=n&&n.isTypedArray,i=r?t(r):e;return Rb=i,Rb}var kb,sP;function WG(){if(sP)return kb;sP=1;var e=FG(),t=Ww(),n=Cn(),r=h6(),i=Zw(),s=m6(),l=Object.prototype,u=l.hasOwnProperty;function d(f,p){var m=n(f),v=!m&&t(f),b=!m&&!v&&r(f),A=!m&&!v&&!b&&s(f),S=m||v||b||A,w=S?e(f.length,String):[],O=w.length;for(var _ in f)(p||u.call(f,_))&&!(S&&(_=="length"||b&&(_=="offset"||_=="parent")||A&&(_=="buffer"||_=="byteLength"||_=="byteOffset")||i(_,O)))&&w.push(_);return w}return kb=d,kb}var Lb,lP;function ZG(){if(lP)return Lb;lP=1;var e=Object.prototype;function t(n){var r=n&&n.constructor,i=typeof r=="function"&&r.prototype||e;return n===i}return Lb=t,Lb}var zb,cP;function g6(){if(cP)return zb;cP=1;function e(t,n){return function(r){return t(n(r))}}return zb=e,zb}var $b,uP;function QG(){if(uP)return $b;uP=1;var e=g6(),t=e(Object.keys,Object);return $b=t,$b}var Bb,dP;function JG(){if(dP)return Bb;dP=1;var e=ZG(),t=QG(),n=Object.prototype,r=n.hasOwnProperty;function i(s){if(!e(s))return t(s);var l=[];for(var u in Object(s))r.call(s,u)&&u!="constructor"&&l.push(u);return l}return Bb=i,Bb}var Ib,fP;function Gu(){if(fP)return Ib;fP=1;var e=Lw(),t=Qw();function n(r){return r!=null&&t(r.length)&&!e(r)}return Ib=n,Ib}var qb,hP;function Rp(){if(hP)return qb;hP=1;var e=WG(),t=JG(),n=Gu();function r(i){return n(i)?e(i):t(i)}return qb=r,qb}var Vb,pP;function eK(){if(pP)return Vb;pP=1;var e=qG(),t=HG(),n=Rp();function r(i){return e(i,n,t)}return Vb=r,Vb}var Ub,mP;function tK(){if(mP)return Ub;mP=1;var e=eK(),t=1,n=Object.prototype,r=n.hasOwnProperty;function i(s,l,u,d,f,p){var m=u&t,v=e(s),b=v.length,A=e(l),S=A.length;if(b!=S&&!m)return!1;for(var w=b;w--;){var O=v[w];if(!(m?O in l:r.call(l,O)))return!1}var _=p.get(s),T=p.get(l);if(_&&T)return _==l&&T==s;var M=!0;p.set(s,l),p.set(l,s);for(var j=m;++w<b;){O=v[w];var P=s[O],N=l[O];if(d)var D=m?d(N,P,O,l,s,p):d(P,N,O,s,l,p);if(!(D===void 0?P===N||f(P,N,u,d,p):D)){M=!1;break}j||(j=O=="constructor")}if(M&&!j){var k=s.constructor,U=l.constructor;k!=U&&"constructor"in s&&"constructor"in l&&!(typeof k=="function"&&k instanceof k&&typeof U=="function"&&U instanceof U)&&(M=!1)}return p.delete(s),p.delete(l),M}return Ub=i,Ub}var Hb,gP;function nK(){if(gP)return Hb;gP=1;var e=wo(),t=Kr(),n=e(t,"DataView");return Hb=n,Hb}var Fb,vP;function rK(){if(vP)return Fb;vP=1;var e=wo(),t=Kr(),n=e(t,"Promise");return Fb=n,Fb}var Gb,yP;function v6(){if(yP)return Gb;yP=1;var e=wo(),t=Kr(),n=e(t,"Set");return Gb=n,Gb}var Kb,bP;function aK(){if(bP)return Kb;bP=1;var e=wo(),t=Kr(),n=e(t,"WeakMap");return Kb=n,Kb}var Xb,xP;function iK(){if(xP)return Xb;xP=1;var e=nK(),t=$w(),n=rK(),r=v6(),i=aK(),s=_a(),l=k5(),u="[object Map]",d="[object Object]",f="[object Promise]",p="[object Set]",m="[object WeakMap]",v="[object DataView]",b=l(e),A=l(t),S=l(n),w=l(r),O=l(i),_=s;return(e&&_(new e(new ArrayBuffer(1)))!=v||t&&_(new t)!=u||n&&_(n.resolve())!=f||r&&_(new r)!=p||i&&_(new i)!=m)&&(_=function(T){var M=s(T),j=M==d?T.constructor:void 0,P=j?l(j):"";if(P)switch(P){case b:return v;case A:return u;case S:return f;case w:return p;case O:return m}return M}),Xb=_,Xb}var Yb,SP;function oK(){if(SP)return Yb;SP=1;var e=s6(),t=d6(),n=IG(),r=tK(),i=iK(),s=Cn(),l=h6(),u=m6(),d=1,f="[object Arguments]",p="[object Array]",m="[object Object]",v=Object.prototype,b=v.hasOwnProperty;function A(S,w,O,_,T,M){var j=s(S),P=s(w),N=j?p:i(S),D=P?p:i(w);N=N==f?m:N,D=D==f?m:D;var k=N==m,U=D==m,$=N==D;if($&&l(S)){if(!l(w))return!1;j=!0,k=!1}if($&&!k)return M||(M=new e),j||u(S)?t(S,w,O,_,T,M):n(S,w,N,O,_,T,M);if(!(O&d)){var H=k&&b.call(S,"__wrapped__"),X=U&&b.call(w,"__wrapped__");if(H||X){var J=H?S.value():S,Z=X?w.value():w;return M||(M=new e),T(J,Z,O,_,M)}}return $?(M||(M=new e),r(S,w,O,_,T,M)):!1}return Yb=A,Yb}var Wb,wP;function Jw(){if(wP)return Wb;wP=1;var e=oK(),t=Pa();function n(r,i,s,l,u){return r===i?!0:r==null||i==null||!t(r)&&!t(i)?r!==r&&i!==i:e(r,i,s,l,n,u)}return Wb=n,Wb}var Zb,AP;function sK(){if(AP)return Zb;AP=1;var e=s6(),t=Jw(),n=1,r=2;function i(s,l,u,d){var f=u.length,p=f,m=!d;if(s==null)return!p;for(s=Object(s);f--;){var v=u[f];if(m&&v[2]?v[1]!==s[v[0]]:!(v[0]in s))return!1}for(;++f<p;){v=u[f];var b=v[0],A=s[b],S=v[1];if(m&&v[2]){if(A===void 0&&!(b in s))return!1}else{var w=new e;if(d)var O=d(A,S,b,s,l,w);if(!(O===void 0?t(S,A,n|r,d,w):O))return!1}}return!0}return Zb=i,Zb}var Qb,OP;function y6(){if(OP)return Qb;OP=1;var e=xi();function t(n){return n===n&&!e(n)}return Qb=t,Qb}var Jb,jP;function lK(){if(jP)return Jb;jP=1;var e=y6(),t=Rp();function n(r){for(var i=t(r),s=i.length;s--;){var l=i[s],u=r[l];i[s]=[l,u,e(u)]}return i}return Jb=n,Jb}var ex,TP;function b6(){if(TP)return ex;TP=1;function e(t,n){return function(r){return r==null?!1:r[t]===n&&(n!==void 0||t in Object(r))}}return ex=e,ex}var tx,CP;function cK(){if(CP)return tx;CP=1;var e=sK(),t=lK(),n=b6();function r(i){var s=t(i);return s.length==1&&s[0][2]?n(s[0][0],s[0][1]):function(l){return l===i||e(l,i,s)}}return tx=r,tx}var nx,EP;function uK(){if(EP)return nx;EP=1;function e(t,n){return t!=null&&n in Object(t)}return nx=e,nx}var rx,_P;function dK(){if(_P)return rx;_P=1;var e=$5(),t=Ww(),n=Cn(),r=Zw(),i=Qw(),s=_p();function l(u,d,f){d=e(d,u);for(var p=-1,m=d.length,v=!1;++p<m;){var b=s(d[p]);if(!(v=u!=null&&f(u,b)))break;u=u[b]}return v||++p!=m?v:(m=u==null?0:u.length,!!m&&i(m)&&r(b,m)&&(n(u)||t(u)))}return rx=l,rx}var ax,PP;function fK(){if(PP)return ax;PP=1;var e=uK(),t=dK();function n(r,i){return r!=null&&t(r,i,e)}return ax=n,ax}var ix,NP;function hK(){if(NP)return ix;NP=1;var e=Jw(),t=B5(),n=fK(),r=kw(),i=y6(),s=b6(),l=_p(),u=1,d=2;function f(p,m){return r(p)&&i(m)?s(l(p),m):function(v){var b=t(v,p);return b===void 0&&b===m?n(v,p):e(m,b,u|d)}}return ix=f,ix}var ox,MP;function bl(){if(MP)return ox;MP=1;function e(t){return t}return ox=e,ox}var sx,DP;function pK(){if(DP)return sx;DP=1;function e(t){return function(n){return n?.[t]}}return sx=e,sx}var lx,RP;function mK(){if(RP)return lx;RP=1;var e=qw();function t(n){return function(r){return e(r,n)}}return lx=t,lx}var cx,kP;function gK(){if(kP)return cx;kP=1;var e=pK(),t=mK(),n=kw(),r=_p();function i(s){return n(s)?e(r(s)):t(s)}return cx=i,cx}var ux,LP;function Xr(){if(LP)return ux;LP=1;var e=cK(),t=hK(),n=bl(),r=Cn(),i=gK();function s(l){return typeof l=="function"?l:l==null?n:typeof l=="object"?r(l)?t(l[0],l[1]):e(l):i(l)}return ux=s,ux}var dx,zP;function x6(){if(zP)return dx;zP=1;function e(t,n,r,i){for(var s=t.length,l=r+(i?1:-1);i?l--:++l<s;)if(n(t[l],l,t))return l;return-1}return dx=e,dx}var fx,$P;function vK(){if($P)return fx;$P=1;function e(t){return t!==t}return fx=e,fx}var hx,BP;function yK(){if(BP)return hx;BP=1;function e(t,n,r){for(var i=r-1,s=t.length;++i<s;)if(t[i]===n)return i;return-1}return hx=e,hx}var px,IP;function bK(){if(IP)return px;IP=1;var e=x6(),t=vK(),n=yK();function r(i,s,l){return s===s?n(i,s,l):e(i,t,l)}return px=r,px}var mx,qP;function xK(){if(qP)return mx;qP=1;var e=bK();function t(n,r){var i=n==null?0:n.length;return!!i&&e(n,r,0)>-1}return mx=t,mx}var gx,VP;function SK(){if(VP)return gx;VP=1;function e(t,n,r){for(var i=-1,s=t==null?0:t.length;++i<s;)if(r(n,t[i]))return!0;return!1}return gx=e,gx}var vx,UP;function wK(){if(UP)return vx;UP=1;function e(){}return vx=e,vx}var yx,HP;function AK(){if(HP)return yx;HP=1;var e=v6(),t=wK(),n=Yw(),r=1/0,i=e&&1/n(new e([,-0]))[1]==r?function(s){return new e(s)}:t;return yx=i,yx}var bx,FP;function OK(){if(FP)return bx;FP=1;var e=l6(),t=xK(),n=SK(),r=u6(),i=AK(),s=Yw(),l=200;function u(d,f,p){var m=-1,v=t,b=d.length,A=!0,S=[],w=S;if(p)A=!1,v=n;else if(b>=l){var O=f?null:i(d);if(O)return s(O);A=!1,v=r,w=new e}else w=f?[]:S;e:for(;++m<b;){var _=d[m],T=f?f(_):_;if(_=p||_!==0?_:0,A&&T===T){for(var M=w.length;M--;)if(w[M]===T)continue e;f&&w.push(T),S.push(_)}else v(w,T,p)||(w!==S&&w.push(T),S.push(_))}return S}return bx=u,bx}var xx,GP;function jK(){if(GP)return xx;GP=1;var e=Xr(),t=OK();function n(r,i){return r&&r.length?t(r,e(i,2)):[]}return xx=n,xx}var TK=jK();const KP=tt(TK);function S6(e,t,n){return t===!0?KP(e,n):_e(t)?KP(e,t):e}function Is(e){"@babel/helpers - typeof";return Is=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Is(e)}var CK=["ref"];function XP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ma(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?XP(Object(n),!0).forEach(function(r){kp(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):XP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function EK(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function YP(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,A6(r.key),r)}}function _K(e,t,n){return t&&YP(e.prototype,t),n&&YP(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function PK(e,t,n){return t=vh(t),NK(e,w6()?Reflect.construct(t,n||[],vh(e).constructor):t.apply(e,n))}function NK(e,t){if(t&&(Is(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return MK(e)}function MK(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function w6(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(w6=function(){return!!e})()}function vh(e){return vh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},vh(e)}function DK(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&L1(e,t)}function L1(e,t){return L1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},L1(e,t)}function kp(e,t,n){return t=A6(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function A6(e){var t=RK(e,"string");return Is(t)=="symbol"?t:t+""}function RK(e,t){if(Is(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Is(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function kK(e,t){if(e==null)return{};var n=LK(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function LK(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function zK(e){return e.value}function $K(e,t){if(B.isValidElement(e))return B.cloneElement(e,t);if(typeof e=="function")return B.createElement(e,t);t.ref;var n=kK(t,CK);return B.createElement(Xw,n)}var WP=1,io=(function(e){function t(){var n;EK(this,t);for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];return n=PK(this,t,[].concat(i)),kp(n,"lastBoundingBox",{width:-1,height:-1}),n}return DK(t,e),_K(t,[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();return r.height=this.wrapperNode.offsetHeight,r.width=this.wrapperNode.offsetWidth,r}return null}},{key:"updateBBox",value:function(){var r=this.props.onBBoxUpdate,i=this.getBBox();i?(Math.abs(i.width-this.lastBoundingBox.width)>WP||Math.abs(i.height-this.lastBoundingBox.height)>WP)&&(this.lastBoundingBox.width=i.width,this.lastBoundingBox.height=i.height,r&&r(i)):(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,r&&r(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?ma({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(r){var i=this.props,s=i.layout,l=i.align,u=i.verticalAlign,d=i.margin,f=i.chartWidth,p=i.chartHeight,m,v;if(!r||(r.left===void 0||r.left===null)&&(r.right===void 0||r.right===null))if(l==="center"&&s==="vertical"){var b=this.getBBoxSnapshot();m={left:((f||0)-b.width)/2}}else m=l==="right"?{right:d&&d.right||0}:{left:d&&d.left||0};if(!r||(r.top===void 0||r.top===null)&&(r.bottom===void 0||r.bottom===null))if(u==="middle"){var A=this.getBBoxSnapshot();v={top:((p||0)-A.height)/2}}else v=u==="bottom"?{bottom:d&&d.bottom||0}:{top:d&&d.top||0};return ma(ma({},m),v)}},{key:"render",value:function(){var r=this,i=this.props,s=i.content,l=i.width,u=i.height,d=i.wrapperStyle,f=i.payloadUniqBy,p=i.payload,m=ma(ma({position:"absolute",width:l||"auto",height:u||"auto"},this.getDefaultPosition(d)),d);return B.createElement("div",{className:"recharts-legend-wrapper",style:m,ref:function(b){r.wrapperNode=b}},$K(s,ma(ma({},this.props),{},{payload:S6(p,f,zK)})))}}],[{key:"getWithHeight",value:function(r,i){var s=ma(ma({},this.defaultProps),r.props),l=s.layout;return l==="vertical"&&de(r.props.height)?{height:r.props.height}:l==="horizontal"?{width:r.props.width||i}:null}}])})(C.PureComponent);kp(io,"displayName","Legend");kp(io,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var Sx,ZP;function BK(){if(ZP)return Sx;ZP=1;var e=Hu(),t=Ww(),n=Cn(),r=e?e.isConcatSpreadable:void 0;function i(s){return n(s)||t(s)||!!(r&&s&&s[r])}return Sx=i,Sx}var wx,QP;function O6(){if(QP)return wx;QP=1;var e=f6(),t=BK();function n(r,i,s,l,u){var d=-1,f=r.length;for(s||(s=t),u||(u=[]);++d<f;){var p=r[d];i>0&&s(p)?i>1?n(p,i-1,s,l,u):e(u,p):l||(u[u.length]=p)}return u}return wx=n,wx}var Ax,JP;function IK(){if(JP)return Ax;JP=1;function e(t){return function(n,r,i){for(var s=-1,l=Object(n),u=i(n),d=u.length;d--;){var f=u[t?d:++s];if(r(l[f],f,l)===!1)break}return n}}return Ax=e,Ax}var Ox,eN;function qK(){if(eN)return Ox;eN=1;var e=IK(),t=e();return Ox=t,Ox}var jx,tN;function j6(){if(tN)return jx;tN=1;var e=qK(),t=Rp();function n(r,i){return r&&e(r,i,t)}return jx=n,jx}var Tx,nN;function VK(){if(nN)return Tx;nN=1;var e=Gu();function t(n,r){return function(i,s){if(i==null)return i;if(!e(i))return n(i,s);for(var l=i.length,u=r?l:-1,d=Object(i);(r?u--:++u<l)&&s(d[u],u,d)!==!1;);return i}}return Tx=t,Tx}var Cx,rN;function eA(){if(rN)return Cx;rN=1;var e=j6(),t=VK(),n=t(e);return Cx=n,Cx}var Ex,aN;function T6(){if(aN)return Ex;aN=1;var e=eA(),t=Gu();function n(r,i){var s=-1,l=t(r)?Array(r.length):[];return e(r,function(u,d,f){l[++s]=i(u,d,f)}),l}return Ex=n,Ex}var _x,iN;function UK(){if(iN)return _x;iN=1;function e(t,n){var r=t.length;for(t.sort(n);r--;)t[r]=t[r].value;return t}return _x=e,_x}var Px,oN;function HK(){if(oN)return Px;oN=1;var e=gl();function t(n,r){if(n!==r){var i=n!==void 0,s=n===null,l=n===n,u=e(n),d=r!==void 0,f=r===null,p=r===r,m=e(r);if(!f&&!m&&!u&&n>r||u&&d&&p&&!f&&!m||s&&d&&p||!i&&p||!l)return 1;if(!s&&!u&&!m&&n<r||m&&i&&l&&!s&&!u||f&&i&&l||!d&&l||!p)return-1}return 0}return Px=t,Px}var Nx,sN;function FK(){if(sN)return Nx;sN=1;var e=HK();function t(n,r,i){for(var s=-1,l=n.criteria,u=r.criteria,d=l.length,f=i.length;++s<d;){var p=e(l[s],u[s]);if(p){if(s>=f)return p;var m=i[s];return p*(m=="desc"?-1:1)}}return n.index-r.index}return Nx=t,Nx}var Mx,lN;function GK(){if(lN)return Mx;lN=1;var e=Iw(),t=qw(),n=Xr(),r=T6(),i=UK(),s=p6(),l=FK(),u=bl(),d=Cn();function f(p,m,v){m.length?m=e(m,function(S){return d(S)?function(w){return t(w,S.length===1?S[0]:S)}:S}):m=[u];var b=-1;m=e(m,s(n));var A=r(p,function(S,w,O){var _=e(m,function(T){return T(S)});return{criteria:_,index:++b,value:S}});return i(A,function(S,w){return l(S,w,v)})}return Mx=f,Mx}var Dx,cN;function KK(){if(cN)return Dx;cN=1;function e(t,n,r){switch(r.length){case 0:return t.call(n);case 1:return t.call(n,r[0]);case 2:return t.call(n,r[0],r[1]);case 3:return t.call(n,r[0],r[1],r[2])}return t.apply(n,r)}return Dx=e,Dx}var Rx,uN;function XK(){if(uN)return Rx;uN=1;var e=KK(),t=Math.max;function n(r,i,s){return i=t(i===void 0?r.length-1:i,0),function(){for(var l=arguments,u=-1,d=t(l.length-i,0),f=Array(d);++u<d;)f[u]=l[i+u];u=-1;for(var p=Array(i+1);++u<i;)p[u]=l[u];return p[i]=s(f),e(r,this,p)}}return Rx=n,Rx}var kx,dN;function YK(){if(dN)return kx;dN=1;function e(t){return function(){return t}}return kx=e,kx}var Lx,fN;function C6(){if(fN)return Lx;fN=1;var e=wo(),t=(function(){try{var n=e(Object,"defineProperty");return n({},"",{}),n}catch{}})();return Lx=t,Lx}var zx,hN;function WK(){if(hN)return zx;hN=1;var e=YK(),t=C6(),n=bl(),r=t?function(i,s){return t(i,"toString",{configurable:!0,enumerable:!1,value:e(s),writable:!0})}:n;return zx=r,zx}var $x,pN;function ZK(){if(pN)return $x;pN=1;var e=800,t=16,n=Date.now;function r(i){var s=0,l=0;return function(){var u=n(),d=t-(u-l);if(l=u,d>0){if(++s>=e)return arguments[0]}else s=0;return i.apply(void 0,arguments)}}return $x=r,$x}var Bx,mN;function QK(){if(mN)return Bx;mN=1;var e=WK(),t=ZK(),n=t(e);return Bx=n,Bx}var Ix,gN;function JK(){if(gN)return Ix;gN=1;var e=bl(),t=XK(),n=QK();function r(i,s){return n(t(i,s,e),i+"")}return Ix=r,Ix}var qx,vN;function Lp(){if(vN)return qx;vN=1;var e=zw(),t=Gu(),n=Zw(),r=xi();function i(s,l,u){if(!r(u))return!1;var d=typeof l;return(d=="number"?t(u)&&n(l,u.length):d=="string"&&l in u)?e(u[l],s):!1}return qx=i,qx}var Vx,yN;function eX(){if(yN)return Vx;yN=1;var e=O6(),t=GK(),n=JK(),r=Lp(),i=n(function(s,l){if(s==null)return[];var u=l.length;return u>1&&r(s,l[0],l[1])?l=[]:u>2&&r(l[0],l[1],l[2])&&(l=[l[0]]),t(s,e(l,1),[])});return Vx=i,Vx}var tX=eX();const tA=tt(tX);function tu(e){"@babel/helpers - typeof";return tu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},tu(e)}function z1(){return z1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},z1.apply(this,arguments)}function nX(e,t){return oX(e)||iX(e,t)||aX(e,t)||rX()}function rX(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function aX(e,t){if(e){if(typeof e=="string")return bN(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return bN(e,t)}}function bN(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function iX(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,l,u=[],d=!0,f=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(d=(r=s.call(n)).done)&&(u.push(r.value),u.length!==t);d=!0);}catch(p){f=!0,i=p}finally{try{if(!d&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(f)throw i}}return u}}function oX(e){if(Array.isArray(e))return e}function xN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ux(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?xN(Object(n),!0).forEach(function(r){sX(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function sX(e,t,n){return t=lX(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lX(e){var t=cX(e,"string");return tu(t)=="symbol"?t:t+""}function cX(e,t){if(tu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(tu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function uX(e){return Array.isArray(e)&&Ft(e[0])&&Ft(e[1])?e.join(" ~ "):e}var dX=function(t){var n=t.separator,r=n===void 0?" : ":n,i=t.contentStyle,s=i===void 0?{}:i,l=t.itemStyle,u=l===void 0?{}:l,d=t.labelStyle,f=d===void 0?{}:d,p=t.payload,m=t.formatter,v=t.itemSorter,b=t.wrapperClassName,A=t.labelClassName,S=t.label,w=t.labelFormatter,O=t.accessibilityLayer,_=O===void 0?!1:O,T=function(){if(p&&p.length){var H={padding:0,margin:0},X=(v?tA(p,v):p).map(function(J,Z){if(J.type==="none")return null;var L=Ux({display:"block",paddingTop:4,paddingBottom:4,color:J.color||"#000"},u),V=J.formatter||m||uX,F=J.value,ie=J.name,ue=F,z=ie;if(V&&ue!=null&&z!=null){var G=V(F,ie,J,Z,p);if(Array.isArray(G)){var te=nX(G,2);ue=te[0],z=te[1]}else ue=G}return B.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(Z),style:L},Ft(z)?B.createElement("span",{className:"recharts-tooltip-item-name"},z):null,Ft(z)?B.createElement("span",{className:"recharts-tooltip-item-separator"},r):null,B.createElement("span",{className:"recharts-tooltip-item-value"},ue),B.createElement("span",{className:"recharts-tooltip-item-unit"},J.unit||""))});return B.createElement("ul",{className:"recharts-tooltip-item-list",style:H},X)}return null},M=Ux({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},s),j=Ux({margin:0},f),P=!Ne(S),N=P?S:"",D=Me("recharts-default-tooltip",b),k=Me("recharts-tooltip-label",A);P&&w&&p!==void 0&&p!==null&&(N=w(S,p));var U=_?{role:"status","aria-live":"assertive"}:{};return B.createElement("div",z1({className:D,style:M},U),B.createElement("p",{className:k,style:j},B.isValidElement(N)?N:"".concat(N)),T())};function nu(e){"@babel/helpers - typeof";return nu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},nu(e)}function Rf(e,t,n){return t=fX(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fX(e){var t=hX(e,"string");return nu(t)=="symbol"?t:t+""}function hX(e,t){if(nu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(nu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Ac="recharts-tooltip-wrapper",pX={visibility:"hidden"};function mX(e){var t=e.coordinate,n=e.translateX,r=e.translateY;return Me(Ac,Rf(Rf(Rf(Rf({},"".concat(Ac,"-right"),de(n)&&t&&de(t.x)&&n>=t.x),"".concat(Ac,"-left"),de(n)&&t&&de(t.x)&&n<t.x),"".concat(Ac,"-bottom"),de(r)&&t&&de(t.y)&&r>=t.y),"".concat(Ac,"-top"),de(r)&&t&&de(t.y)&&r<t.y))}function SN(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.key,i=e.offsetTopLeft,s=e.position,l=e.reverseDirection,u=e.tooltipDimension,d=e.viewBox,f=e.viewBoxDimension;if(s&&de(s[r]))return s[r];var p=n[r]-u-i,m=n[r]+i;if(t[r])return l[r]?p:m;if(l[r]){var v=p,b=d[r];return v<b?Math.max(m,d[r]):Math.max(p,d[r])}var A=m+u,S=d[r]+f;return A>S?Math.max(p,d[r]):Math.max(m,d[r])}function gX(e){var t=e.translateX,n=e.translateY,r=e.useTranslate3d;return{transform:r?"translate3d(".concat(t,"px, ").concat(n,"px, 0)"):"translate(".concat(t,"px, ").concat(n,"px)")}}function vX(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.offsetTopLeft,i=e.position,s=e.reverseDirection,l=e.tooltipBox,u=e.useTranslate3d,d=e.viewBox,f,p,m;return l.height>0&&l.width>0&&n?(p=SN({allowEscapeViewBox:t,coordinate:n,key:"x",offsetTopLeft:r,position:i,reverseDirection:s,tooltipDimension:l.width,viewBox:d,viewBoxDimension:d.width}),m=SN({allowEscapeViewBox:t,coordinate:n,key:"y",offsetTopLeft:r,position:i,reverseDirection:s,tooltipDimension:l.height,viewBox:d,viewBoxDimension:d.height}),f=gX({translateX:p,translateY:m,useTranslate3d:u})):f=pX,{cssProperties:f,cssClasses:mX({translateX:p,translateY:m,coordinate:n})}}function qs(e){"@babel/helpers - typeof";return qs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qs(e)}function wN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function AN(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?wN(Object(n),!0).forEach(function(r){B1(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function yX(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bX(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,_6(r.key),r)}}function xX(e,t,n){return t&&bX(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function SX(e,t,n){return t=yh(t),wX(e,E6()?Reflect.construct(t,n||[],yh(e).constructor):t.apply(e,n))}function wX(e,t){if(t&&(qs(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return AX(e)}function AX(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function E6(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(E6=function(){return!!e})()}function yh(e){return yh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},yh(e)}function OX(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&$1(e,t)}function $1(e,t){return $1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},$1(e,t)}function B1(e,t,n){return t=_6(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _6(e){var t=jX(e,"string");return qs(t)=="symbol"?t:t+""}function jX(e,t){if(qs(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(qs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var ON=1,TX=(function(e){function t(){var n;yX(this,t);for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];return n=SX(this,t,[].concat(i)),B1(n,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),B1(n,"handleKeyDown",function(l){if(l.key==="Escape"){var u,d,f,p;n.setState({dismissed:!0,dismissedAtCoordinate:{x:(u=(d=n.props.coordinate)===null||d===void 0?void 0:d.x)!==null&&u!==void 0?u:0,y:(f=(p=n.props.coordinate)===null||p===void 0?void 0:p.y)!==null&&f!==void 0?f:0}})}}),n}return OX(t,e),xX(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();(Math.abs(r.width-this.state.lastBoundingBox.width)>ON||Math.abs(r.height-this.state.lastBoundingBox.height)>ON)&&this.setState({lastBoundingBox:{width:r.width,height:r.height}})}else(this.state.lastBoundingBox.width!==-1||this.state.lastBoundingBox.height!==-1)&&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 r,i;this.props.active&&this.updateBBox(),this.state.dismissed&&(((r=this.props.coordinate)===null||r===void 0?void 0:r.x)!==this.state.dismissedAtCoordinate.x||((i=this.props.coordinate)===null||i===void 0?void 0:i.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var r=this,i=this.props,s=i.active,l=i.allowEscapeViewBox,u=i.animationDuration,d=i.animationEasing,f=i.children,p=i.coordinate,m=i.hasPayload,v=i.isAnimationActive,b=i.offset,A=i.position,S=i.reverseDirection,w=i.useTranslate3d,O=i.viewBox,_=i.wrapperStyle,T=vX({allowEscapeViewBox:l,coordinate:p,offsetTopLeft:b,position:A,reverseDirection:S,tooltipBox:this.state.lastBoundingBox,useTranslate3d:w,viewBox:O}),M=T.cssClasses,j=T.cssProperties,P=AN(AN({transition:v&&s?"transform ".concat(u,"ms ").concat(d):void 0},j),{},{pointerEvents:"none",visibility:!this.state.dismissed&&s&&m?"visible":"hidden",position:"absolute",top:0,left:0},_);return B.createElement("div",{tabIndex:-1,className:M,style:P,ref:function(D){r.wrapperNode=D}},f)}}])})(C.PureComponent),CX=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},Ao={isSsr:CX()};function Vs(e){"@babel/helpers - typeof";return Vs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Vs(e)}function jN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function TN(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?jN(Object(n),!0).forEach(function(r){nA(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function EX(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _X(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,N6(r.key),r)}}function PX(e,t,n){return t&&_X(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function NX(e,t,n){return t=bh(t),MX(e,P6()?Reflect.construct(t,n||[],bh(e).constructor):t.apply(e,n))}function MX(e,t){if(t&&(Vs(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return DX(e)}function DX(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function P6(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(P6=function(){return!!e})()}function bh(e){return bh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},bh(e)}function RX(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&I1(e,t)}function I1(e,t){return I1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},I1(e,t)}function nA(e,t,n){return t=N6(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function N6(e){var t=kX(e,"string");return Vs(t)=="symbol"?t:t+""}function kX(e,t){if(Vs(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Vs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function LX(e){return e.dataKey}function zX(e,t){return B.isValidElement(e)?B.cloneElement(e,t):typeof e=="function"?B.createElement(e,t):B.createElement(dX,t)}var sr=(function(e){function t(){return EX(this,t),NX(this,t,arguments)}return RX(t,e),PX(t,[{key:"render",value:function(){var r=this,i=this.props,s=i.active,l=i.allowEscapeViewBox,u=i.animationDuration,d=i.animationEasing,f=i.content,p=i.coordinate,m=i.filterNull,v=i.isAnimationActive,b=i.offset,A=i.payload,S=i.payloadUniqBy,w=i.position,O=i.reverseDirection,_=i.useTranslate3d,T=i.viewBox,M=i.wrapperStyle,j=A??[];m&&j.length&&(j=S6(A.filter(function(N){return N.value!=null&&(N.hide!==!0||r.props.includeHidden)}),S,LX));var P=j.length>0;return B.createElement(TX,{allowEscapeViewBox:l,animationDuration:u,animationEasing:d,isAnimationActive:v,active:s,coordinate:p,hasPayload:P,offset:b,position:w,reverseDirection:O,useTranslate3d:_,viewBox:T,wrapperStyle:M},zX(f,TN(TN({},this.props),{},{payload:j})))}}])})(C.PureComponent);nA(sr,"displayName","Tooltip");nA(sr,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!Ao.isSsr,itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,viewBox:{x:0,y:0,height:0,width:0},wrapperStyle:{}});var Hx,CN;function $X(){if(CN)return Hx;CN=1;var e=Kr(),t=function(){return e.Date.now()};return Hx=t,Hx}var Fx,EN;function BX(){if(EN)return Fx;EN=1;var e=/\s/;function t(n){for(var r=n.length;r--&&e.test(n.charAt(r)););return r}return Fx=t,Fx}var Gx,_N;function IX(){if(_N)return Gx;_N=1;var e=BX(),t=/^\s+/;function n(r){return r&&r.slice(0,e(r)+1).replace(t,"")}return Gx=n,Gx}var Kx,PN;function M6(){if(PN)return Kx;PN=1;var e=IX(),t=xi(),n=gl(),r=NaN,i=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,u=parseInt;function d(f){if(typeof f=="number")return f;if(n(f))return r;if(t(f)){var p=typeof f.valueOf=="function"?f.valueOf():f;f=t(p)?p+"":p}if(typeof f!="string")return f===0?f:+f;f=e(f);var m=s.test(f);return m||l.test(f)?u(f.slice(2),m?2:8):i.test(f)?r:+f}return Kx=d,Kx}var Xx,NN;function qX(){if(NN)return Xx;NN=1;var e=xi(),t=$X(),n=M6(),r="Expected a function",i=Math.max,s=Math.min;function l(u,d,f){var p,m,v,b,A,S,w=0,O=!1,_=!1,T=!0;if(typeof u!="function")throw new TypeError(r);d=n(d)||0,e(f)&&(O=!!f.leading,_="maxWait"in f,v=_?i(n(f.maxWait)||0,d):v,T="trailing"in f?!!f.trailing:T);function M(X){var J=p,Z=m;return p=m=void 0,w=X,b=u.apply(Z,J),b}function j(X){return w=X,A=setTimeout(D,d),O?M(X):b}function P(X){var J=X-S,Z=X-w,L=d-J;return _?s(L,v-Z):L}function N(X){var J=X-S,Z=X-w;return S===void 0||J>=d||J<0||_&&Z>=v}function D(){var X=t();if(N(X))return k(X);A=setTimeout(D,P(X))}function k(X){return A=void 0,T&&p?M(X):(p=m=void 0,b)}function U(){A!==void 0&&clearTimeout(A),w=0,p=S=m=A=void 0}function $(){return A===void 0?b:k(t())}function H(){var X=t(),J=N(X);if(p=arguments,m=this,S=X,J){if(A===void 0)return j(S);if(_)return clearTimeout(A),A=setTimeout(D,d),M(S)}return A===void 0&&(A=setTimeout(D,d)),b}return H.cancel=U,H.flush=$,H}return Xx=l,Xx}var Yx,MN;function VX(){if(MN)return Yx;MN=1;var e=qX(),t=xi(),n="Expected a function";function r(i,s,l){var u=!0,d=!0;if(typeof i!="function")throw new TypeError(n);return t(l)&&(u="leading"in l?!!l.leading:u,d="trailing"in l?!!l.trailing:d),e(i,s,{leading:u,maxWait:s,trailing:d})}return Yx=r,Yx}var UX=VX();const D6=tt(UX);function ru(e){"@babel/helpers - typeof";return ru=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ru(e)}function DN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function kf(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?DN(Object(n),!0).forEach(function(r){HX(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):DN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function HX(e,t,n){return t=FX(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function FX(e){var t=GX(e,"string");return ru(t)=="symbol"?t:t+""}function GX(e,t){if(ru(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ru(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function KX(e,t){return ZX(e)||WX(e,t)||YX(e,t)||XX()}function XX(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function YX(e,t){if(e){if(typeof e=="string")return RN(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return RN(e,t)}}function RN(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function WX(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,l,u=[],d=!0,f=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(d=(r=s.call(n)).done)&&(u.push(r.value),u.length!==t);d=!0);}catch(p){f=!0,i=p}finally{try{if(!d&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(f)throw i}}return u}}function ZX(e){if(Array.isArray(e))return e}var Wx=C.forwardRef(function(e,t){var n=e.aspect,r=e.initialDimension,i=r===void 0?{width:-1,height:-1}:r,s=e.width,l=s===void 0?"100%":s,u=e.height,d=u===void 0?"100%":u,f=e.minWidth,p=f===void 0?0:f,m=e.minHeight,v=e.maxHeight,b=e.children,A=e.debounce,S=A===void 0?0:A,w=e.id,O=e.className,_=e.onResize,T=e.style,M=T===void 0?{}:T,j=C.useRef(null),P=C.useRef();P.current=_,C.useImperativeHandle(t,function(){return Object.defineProperty(j.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),j.current},configurable:!0})});var N=C.useState({containerWidth:i.width,containerHeight:i.height}),D=KX(N,2),k=D[0],U=D[1],$=C.useCallback(function(X,J){U(function(Z){var L=Math.round(X),V=Math.round(J);return Z.containerWidth===L&&Z.containerHeight===V?Z:{containerWidth:L,containerHeight:V}})},[]);C.useEffect(function(){var X=function(ie){var ue,z=ie[0].contentRect,G=z.width,te=z.height;$(G,te),(ue=P.current)===null||ue===void 0||ue.call(P,G,te)};S>0&&(X=D6(X,S,{trailing:!0,leading:!1}));var J=new ResizeObserver(X),Z=j.current.getBoundingClientRect(),L=Z.width,V=Z.height;return $(L,V),J.observe(j.current),function(){J.disconnect()}},[$,S]);var H=C.useMemo(function(){var X=k.containerWidth,J=k.containerHeight;if(X<0||J<0)return null;Er(Ji(l)||Ji(d),`The width(%s) and height(%s) are both fixed numbers,
       maybe you don't need to use a ResponsiveContainer.`,l,d),Er(!n||n>0,"The aspect(%s) must be greater than zero.",n);var Z=Ji(l)?X:l,L=Ji(d)?J:d;n&&n>0&&(Z?L=Z/n:L&&(Z=L*n),v&&L>v&&(L=v)),Er(Z>0||L>0,`The width(%s) and height(%s) of chart should be greater than 0,
       please check the style of container, or the props width(%s) and height(%s),
       or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
       height and width.`,Z,L,l,d,p,m,n);var V=!Array.isArray(b)&&xa(b.type).endsWith("Chart");return B.Children.map(b,function(F){return B.isValidElement(F)?C.cloneElement(F,kf({width:Z,height:L},V?{style:kf({height:"100%",width:"100%",maxHeight:L,maxWidth:Z},F.props.style)}:{})):F})},[n,b,d,v,m,p,k,l]);return B.createElement("div",{id:w?"".concat(w):void 0,className:Me("recharts-responsive-container",O),style:kf(kf({},M),{},{width:l,height:d,minWidth:p,minHeight:m,maxHeight:v}),ref:j},H)}),zp=function(t){return null};zp.displayName="Cell";function au(e){"@babel/helpers - typeof";return au=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},au(e)}function kN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function q1(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?kN(Object(n),!0).forEach(function(r){QX(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function QX(e,t,n){return t=JX(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function JX(e){var t=eY(e,"string");return au(t)=="symbol"?t:t+""}function eY(e,t){if(au(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(au(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var gs={widthCache:{},cacheCount:0},tY=2e3,nY={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},LN="recharts_measurement_span";function rY(e){var t=q1({},e);return Object.keys(t).forEach(function(n){t[n]||delete t[n]}),t}var Bc=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||Ao.isSsr)return{width:0,height:0};var r=rY(n),i=JSON.stringify({text:t,copyStyle:r});if(gs.widthCache[i])return gs.widthCache[i];try{var s=document.getElementById(LN);s||(s=document.createElement("span"),s.setAttribute("id",LN),s.setAttribute("aria-hidden","true"),document.body.appendChild(s));var l=q1(q1({},nY),r);Object.assign(s.style,l),s.textContent="".concat(t);var u=s.getBoundingClientRect(),d={width:u.width,height:u.height};return gs.widthCache[i]=d,++gs.cacheCount>tY&&(gs.cacheCount=0,gs.widthCache={}),d}catch{return{width:0,height:0}}},aY=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function iu(e){"@babel/helpers - typeof";return iu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},iu(e)}function xh(e,t){return lY(e)||sY(e,t)||oY(e,t)||iY()}function iY(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function oY(e,t){if(e){if(typeof e=="string")return zN(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return zN(e,t)}}function zN(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function sY(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,l,u=[],d=!0,f=!1;try{if(s=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;d=!1}else for(;!(d=(r=s.call(n)).done)&&(u.push(r.value),u.length!==t);d=!0);}catch(p){f=!0,i=p}finally{try{if(!d&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(f)throw i}}return u}}function lY(e){if(Array.isArray(e))return e}function cY(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $N(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,dY(r.key),r)}}function uY(e,t,n){return t&&$N(e.prototype,t),n&&$N(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function dY(e){var t=fY(e,"string");return iu(t)=="symbol"?t:t+""}function fY(e,t){if(iu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(iu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var BN=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,IN=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,hY=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,pY=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,R6={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},mY=Object.keys(R6),xs="NaN";function gY(e,t){return e*R6[t]}var Lf=(function(){function e(t,n){cY(this,e),this.num=t,this.unit=n,this.num=t,this.unit=n,Number.isNaN(t)&&(this.unit=""),n!==""&&!hY.test(n)&&(this.num=NaN,this.unit=""),mY.includes(n)&&(this.num=gY(t,n),this.unit="px")}return uY(e,[{key:"add",value:function(n){return this.unit!==n.unit?new e(NaN,""):new e(this.num+n.num,this.unit)}},{key:"subtract",value:function(n){return this.unit!==n.unit?new e(NaN,""):new e(this.num-n.num,this.unit)}},{key:"multiply",value:function(n){return this.unit!==""&&n.unit!==""&&this.unit!==n.unit?new e(NaN,""):new e(this.num*n.num,this.unit||n.unit)}},{key:"divide",value:function(n){return this.unit!==""&&n.unit!==""&&this.unit!==n.unit?new e(NaN,""):new e(this.num/n.num,this.unit||n.unit)}},{key:"toString",value:function(){return"".concat(this.num).concat(this.unit)}},{key:"isNaN",value:function(){return Number.isNaN(this.num)}}],[{key:"parse",value:function(n){var r,i=(r=pY.exec(n))!==null&&r!==void 0?r:[],s=xh(i,3),l=s[1],u=s[2];return new e(parseFloat(l),u??"")}}])})();function k6(e){if(e.includes(xs))return xs;for(var t=e;t.includes("*")||t.includes("/");){var n,r=(n=BN.exec(t))!==null&&n!==void 0?n:[],i=xh(r,4),s=i[1],l=i[2],u=i[3],d=Lf.parse(s??""),f=Lf.parse(u??""),p=l==="*"?d.multiply(f):d.divide(f);if(p.isNaN())return xs;t=t.replace(BN,p.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var m,v=(m=IN.exec(t))!==null&&m!==void 0?m:[],b=xh(v,4),A=b[1],S=b[2],w=b[3],O=Lf.parse(A??""),_=Lf.parse(w??""),T=S==="+"?O.add(_):O.subtract(_);if(T.isNaN())return xs;t=t.replace(IN,T.toString())}return t}var qN=/\(([^()]*)\)/;function vY(e){for(var t=e;t.includes("(");){var n=qN.exec(t),r=xh(n,2),i=r[1];t=t.replace(qN,k6(i))}return t}function yY(e){var t=e.replace(/\s+/g,"");return t=vY(t),t=k6(t),t}function bY(e){try{return yY(e)}catch{return xs}}function Zx(e){var t=bY(e.slice(5,-1));return t===xs?"":t}var xY=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],SY=["dx","dy","angle","className","breakAll"];function V1(){return V1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},V1.apply(this,arguments)}function VN(e,t){if(e==null)return{};var n=wY(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function wY(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function UN(e,t){return TY(e)||jY(e,t)||OY(e,t)||AY()}function AY(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function OY(e,t){if(e){if(typeof e=="string")return HN(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return HN(e,t)}}function HN(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function jY(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,l,u=[],d=!0,f=!1;try{if(s=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;d=!1}else for(;!(d=(r=s.call(n)).done)&&(u.push(r.value),u.length!==t);d=!0);}catch(p){f=!0,i=p}finally{try{if(!d&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(f)throw i}}return u}}function TY(e){if(Array.isArray(e))return e}var L6=/[ \f\n\r\t\v\u2028\u2029]+/,z6=function(t){var n=t.children,r=t.breakAll,i=t.style;try{var s=[];Ne(n)||(r?s=n.toString().split(""):s=n.toString().split(L6));var l=s.map(function(d){return{word:d,width:Bc(d,i).width}}),u=r?0:Bc(" ",i).width;return{wordsWithComputedWidth:l,spaceWidth:u}}catch{return null}},CY=function(t,n,r,i,s){var l=t.maxLines,u=t.children,d=t.style,f=t.breakAll,p=de(l),m=u,v=function(){var Z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return Z.reduce(function(L,V){var F=V.word,ie=V.width,ue=L[L.length-1];if(ue&&(i==null||s||ue.width+ie+r<Number(i)))ue.words.push(F),ue.width+=ie+r;else{var z={words:[F],width:ie};L.push(z)}return L},[])},b=v(n),A=function(Z){return Z.reduce(function(L,V){return L.width>V.width?L:V})};if(!p)return b;for(var S="…",w=function(Z){var L=m.slice(0,Z),V=z6({breakAll:f,style:d,children:L+S}).wordsWithComputedWidth,F=v(V),ie=F.length>l||A(F).width>Number(i);return[ie,F]},O=0,_=m.length-1,T=0,M;O<=_&&T<=m.length-1;){var j=Math.floor((O+_)/2),P=j-1,N=w(P),D=UN(N,2),k=D[0],U=D[1],$=w(j),H=UN($,1),X=H[0];if(!k&&!X&&(O=j+1),k&&X&&(_=j-1),!k&&X){M=U;break}T++}return M||b},FN=function(t){var n=Ne(t)?[]:t.toString().split(L6);return[{words:n}]},EY=function(t){var n=t.width,r=t.scaleToFit,i=t.children,s=t.style,l=t.breakAll,u=t.maxLines;if((n||r)&&!Ao.isSsr){var d,f,p=z6({breakAll:l,children:i,style:s});if(p){var m=p.wordsWithComputedWidth,v=p.spaceWidth;d=m,f=v}else return FN(i);return CY({breakAll:l,children:i,maxLines:u,style:s},d,f,n,r)}return FN(i)},GN="#808080",mo=function(t){var n=t.x,r=n===void 0?0:n,i=t.y,s=i===void 0?0:i,l=t.lineHeight,u=l===void 0?"1em":l,d=t.capHeight,f=d===void 0?"0.71em":d,p=t.scaleToFit,m=p===void 0?!1:p,v=t.textAnchor,b=v===void 0?"start":v,A=t.verticalAnchor,S=A===void 0?"end":A,w=t.fill,O=w===void 0?GN:w,_=VN(t,xY),T=C.useMemo(function(){return EY({breakAll:_.breakAll,children:_.children,maxLines:_.maxLines,scaleToFit:m,style:_.style,width:_.width})},[_.breakAll,_.children,_.maxLines,m,_.style,_.width]),M=_.dx,j=_.dy,P=_.angle,N=_.className,D=_.breakAll,k=VN(_,SY);if(!Ft(r)||!Ft(s))return null;var U=r+(de(M)?M:0),$=s+(de(j)?j:0),H;switch(S){case"start":H=Zx("calc(".concat(f,")"));break;case"middle":H=Zx("calc(".concat((T.length-1)/2," * -").concat(u," + (").concat(f," / 2))"));break;default:H=Zx("calc(".concat(T.length-1," * -").concat(u,")"));break}var X=[];if(m){var J=T[0].width,Z=_.width;X.push("scale(".concat((de(Z)?Z/J:1)/J,")"))}return P&&X.push("rotate(".concat(P,", ").concat(U,", ").concat($,")")),X.length&&(k.transform=X.join(" ")),B.createElement("text",V1({},Ae(k,!0),{x:U,y:$,className:Me("recharts-text",N),textAnchor:b,fill:O.includes("url")?GN:O}),T.map(function(L,V){var F=L.words.join(D?"":" ");return B.createElement("tspan",{x:U,dy:V===0?H:u,key:"".concat(F,"-").concat(V)},F)}))};function mi(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function _Y(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function rA(e){let t,n,r;e.length!==2?(t=mi,n=(u,d)=>mi(e(u),d),r=(u,d)=>e(u)-d):(t=e===mi||e===_Y?e:PY,n=e,r=e);function i(u,d,f=0,p=u.length){if(f<p){if(t(d,d)!==0)return p;do{const m=f+p>>>1;n(u[m],d)<0?f=m+1:p=m}while(f<p)}return f}function s(u,d,f=0,p=u.length){if(f<p){if(t(d,d)!==0)return p;do{const m=f+p>>>1;n(u[m],d)<=0?f=m+1:p=m}while(f<p)}return f}function l(u,d,f=0,p=u.length){const m=i(u,d,f,p-1);return m>f&&r(u[m-1],d)>-r(u[m],d)?m-1:m}return{left:i,center:l,right:s}}function PY(){return 0}function $6(e){return e===null?NaN:+e}function*NY(e,t){for(let n of e)n!=null&&(n=+n)>=n&&(yield n)}const MY=rA(mi),Ku=MY.right;rA($6).center;class KN extends Map{constructor(t,n=kY){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,i]of t)this.set(r,i)}get(t){return super.get(XN(this,t))}has(t){return super.has(XN(this,t))}set(t,n){return super.set(DY(this,t),n)}delete(t){return super.delete(RY(this,t))}}function XN({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function DY({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function RY({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function kY(e){return e!==null&&typeof e=="object"?e.valueOf():e}function LY(e=mi){if(e===mi)return B6;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,n)=>{const r=e(t,n);return r||r===0?r:(e(n,n)===0)-(e(t,t)===0)}}function B6(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const zY=Math.sqrt(50),$Y=Math.sqrt(10),BY=Math.sqrt(2);function Sh(e,t,n){const r=(t-e)/Math.max(0,n),i=Math.floor(Math.log10(r)),s=r/Math.pow(10,i),l=s>=zY?10:s>=$Y?5:s>=BY?2:1;let u,d,f;return i<0?(f=Math.pow(10,-i)/l,u=Math.round(e*f),d=Math.round(t*f),u/f<e&&++u,d/f>t&&--d,f=-f):(f=Math.pow(10,i)*l,u=Math.round(e/f),d=Math.round(t/f),u*f<e&&++u,d*f>t&&--d),d<u&&.5<=n&&n<2?Sh(e,t,n*2):[u,d,f]}function U1(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];const r=t<e,[i,s,l]=r?Sh(t,e,n):Sh(e,t,n);if(!(s>=i))return[];const u=s-i+1,d=new Array(u);if(r)if(l<0)for(let f=0;f<u;++f)d[f]=(s-f)/-l;else for(let f=0;f<u;++f)d[f]=(s-f)*l;else if(l<0)for(let f=0;f<u;++f)d[f]=(i+f)/-l;else for(let f=0;f<u;++f)d[f]=(i+f)*l;return d}function H1(e,t,n){return t=+t,e=+e,n=+n,Sh(e,t,n)[2]}function F1(e,t,n){t=+t,e=+e,n=+n;const r=t<e,i=r?H1(t,e,n):H1(e,t,n);return(r?-1:1)*(i<0?1/-i:i)}function YN(e,t){let n;for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);return n}function WN(e,t){let n;for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);return n}function I6(e,t,n=0,r=1/0,i){if(t=Math.floor(t),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(e.length-1,r)),!(n<=t&&t<=r))return e;for(i=i===void 0?B6:LY(i);r>n;){if(r-n>600){const d=r-n+1,f=t-n+1,p=Math.log(d),m=.5*Math.exp(2*p/3),v=.5*Math.sqrt(p*m*(d-m)/d)*(f-d/2<0?-1:1),b=Math.max(n,Math.floor(t-f*m/d+v)),A=Math.min(r,Math.floor(t+(d-f)*m/d+v));I6(e,t,b,A,i)}const s=e[t];let l=n,u=r;for(Oc(e,n,t),i(e[r],s)>0&&Oc(e,n,r);l<u;){for(Oc(e,l,u),++l,--u;i(e[l],s)<0;)++l;for(;i(e[u],s)>0;)--u}i(e[n],s)===0?Oc(e,n,u):(++u,Oc(e,u,r)),u<=t&&(n=u+1),t<=u&&(r=u-1)}return e}function Oc(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function IY(e,t,n){if(e=Float64Array.from(NY(e)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return WN(e);if(t>=1)return YN(e);var r,i=(r-1)*t,s=Math.floor(i),l=YN(I6(e,s).subarray(0,s+1)),u=WN(e.subarray(s+1));return l+(u-l)*(i-s)}}function qY(e,t,n=$6){if(!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,i=(r-1)*t,s=Math.floor(i),l=+n(e[s],s,e),u=+n(e[s+1],s+1,e);return l+(u-l)*(i-s)}}function VY(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=Math.max(0,Math.ceil((t-e)/n))|0,s=new Array(i);++r<i;)s[r]=e+r*n;return s}function vr(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function Na(e,t){switch(arguments.length){case 0:break;case 1:{typeof e=="function"?this.interpolator(e):this.range(e);break}default:{this.domain(e),typeof t=="function"?this.interpolator(t):this.range(t);break}}return this}const G1=Symbol("implicit");function aA(){var e=new KN,t=[],n=[],r=G1;function i(s){let l=e.get(s);if(l===void 0){if(r!==G1)return r;e.set(s,l=t.push(s)-1)}return n[l%n.length]}return i.domain=function(s){if(!arguments.length)return t.slice();t=[],e=new KN;for(const l of s)e.has(l)||e.set(l,t.push(l)-1);return i},i.range=function(s){return arguments.length?(n=Array.from(s),i):n.slice()},i.unknown=function(s){return arguments.length?(r=s,i):r},i.copy=function(){return aA(t,n).unknown(r)},vr.apply(i,arguments),i}function ou(){var e=aA().unknown(void 0),t=e.domain,n=e.range,r=0,i=1,s,l,u=!1,d=0,f=0,p=.5;delete e.unknown;function m(){var v=t().length,b=i<r,A=b?i:r,S=b?r:i;s=(S-A)/Math.max(1,v-d+f*2),u&&(s=Math.floor(s)),A+=(S-A-s*(v-d))*p,l=s*(1-d),u&&(A=Math.round(A),l=Math.round(l));var w=VY(v).map(function(O){return A+s*O});return n(b?w.reverse():w)}return e.domain=function(v){return arguments.length?(t(v),m()):t()},e.range=function(v){return arguments.length?([r,i]=v,r=+r,i=+i,m()):[r,i]},e.rangeRound=function(v){return[r,i]=v,r=+r,i=+i,u=!0,m()},e.bandwidth=function(){return l},e.step=function(){return s},e.round=function(v){return arguments.length?(u=!!v,m()):u},e.padding=function(v){return arguments.length?(d=Math.min(1,f=+v),m()):d},e.paddingInner=function(v){return arguments.length?(d=Math.min(1,v),m()):d},e.paddingOuter=function(v){return arguments.length?(f=+v,m()):f},e.align=function(v){return arguments.length?(p=Math.max(0,Math.min(1,v)),m()):p},e.copy=function(){return ou(t(),[r,i]).round(u).paddingInner(d).paddingOuter(f).align(p)},vr.apply(m(),arguments)}function q6(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return q6(t())},e}function Ic(){return q6(ou.apply(null,arguments).paddingInner(1))}function iA(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function V6(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Xu(){}var su=.7,wh=1/su,Ds="\\s*([+-]?\\d+)\\s*",lu="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Br="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",UY=/^#([0-9a-f]{3,8})$/,HY=new RegExp(`^rgb\\(${Ds},${Ds},${Ds}\\)$`),FY=new RegExp(`^rgb\\(${Br},${Br},${Br}\\)$`),GY=new RegExp(`^rgba\\(${Ds},${Ds},${Ds},${lu}\\)$`),KY=new RegExp(`^rgba\\(${Br},${Br},${Br},${lu}\\)$`),XY=new RegExp(`^hsl\\(${lu},${Br},${Br}\\)$`),YY=new RegExp(`^hsla\\(${lu},${Br},${Br},${lu}\\)$`),ZN={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};iA(Xu,cu,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:QN,formatHex:QN,formatHex8:WY,formatHsl:ZY,formatRgb:JN,toString:JN});function QN(){return this.rgb().formatHex()}function WY(){return this.rgb().formatHex8()}function ZY(){return U6(this).formatHsl()}function JN(){return this.rgb().formatRgb()}function cu(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=UY.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?eM(t):n===3?new jn(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?zf(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?zf(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=HY.exec(e))?new jn(t[1],t[2],t[3],1):(t=FY.exec(e))?new jn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=GY.exec(e))?zf(t[1],t[2],t[3],t[4]):(t=KY.exec(e))?zf(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=XY.exec(e))?rM(t[1],t[2]/100,t[3]/100,1):(t=YY.exec(e))?rM(t[1],t[2]/100,t[3]/100,t[4]):ZN.hasOwnProperty(e)?eM(ZN[e]):e==="transparent"?new jn(NaN,NaN,NaN,0):null}function eM(e){return new jn(e>>16&255,e>>8&255,e&255,1)}function zf(e,t,n,r){return r<=0&&(e=t=n=NaN),new jn(e,t,n,r)}function QY(e){return e instanceof Xu||(e=cu(e)),e?(e=e.rgb(),new jn(e.r,e.g,e.b,e.opacity)):new jn}function K1(e,t,n,r){return arguments.length===1?QY(e):new jn(e,t,n,r??1)}function jn(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}iA(jn,K1,V6(Xu,{brighter(e){return e=e==null?wh:Math.pow(wh,e),new jn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?su:Math.pow(su,e),new jn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new jn(oo(this.r),oo(this.g),oo(this.b),Ah(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:tM,formatHex:tM,formatHex8:JY,formatRgb:nM,toString:nM}));function tM(){return`#${eo(this.r)}${eo(this.g)}${eo(this.b)}`}function JY(){return`#${eo(this.r)}${eo(this.g)}${eo(this.b)}${eo((isNaN(this.opacity)?1:this.opacity)*255)}`}function nM(){const e=Ah(this.opacity);return`${e===1?"rgb(":"rgba("}${oo(this.r)}, ${oo(this.g)}, ${oo(this.b)}${e===1?")":`, ${e})`}`}function Ah(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function oo(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function eo(e){return e=oo(e),(e<16?"0":"")+e.toString(16)}function rM(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Cr(e,t,n,r)}function U6(e){if(e instanceof Cr)return new Cr(e.h,e.s,e.l,e.opacity);if(e instanceof Xu||(e=cu(e)),!e)return new Cr;if(e instanceof Cr)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),s=Math.max(t,n,r),l=NaN,u=s-i,d=(s+i)/2;return u?(t===s?l=(n-r)/u+(n<r)*6:n===s?l=(r-t)/u+2:l=(t-n)/u+4,u/=d<.5?s+i:2-s-i,l*=60):u=d>0&&d<1?0:l,new Cr(l,u,d,e.opacity)}function eW(e,t,n,r){return arguments.length===1?U6(e):new Cr(e,t,n,r??1)}function Cr(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}iA(Cr,eW,V6(Xu,{brighter(e){return e=e==null?wh:Math.pow(wh,e),new Cr(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?su:Math.pow(su,e),new Cr(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new jn(Qx(e>=240?e-240:e+120,i,r),Qx(e,i,r),Qx(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new Cr(aM(this.h),$f(this.s),$f(this.l),Ah(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Ah(this.opacity);return`${e===1?"hsl(":"hsla("}${aM(this.h)}, ${$f(this.s)*100}%, ${$f(this.l)*100}%${e===1?")":`, ${e})`}`}}));function aM(e){return e=(e||0)%360,e<0?e+360:e}function $f(e){return Math.max(0,Math.min(1,e||0))}function Qx(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const oA=e=>()=>e;function tW(e,t){return function(n){return e+n*t}}function nW(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function rW(e){return(e=+e)==1?H6:function(t,n){return n-t?nW(t,n,e):oA(isNaN(t)?n:t)}}function H6(e,t){var n=t-e;return n?tW(e,n):oA(isNaN(e)?t:e)}const iM=(function e(t){var n=rW(t);function r(i,s){var l=n((i=K1(i)).r,(s=K1(s)).r),u=n(i.g,s.g),d=n(i.b,s.b),f=H6(i.opacity,s.opacity);return function(p){return i.r=l(p),i.g=u(p),i.b=d(p),i.opacity=f(p),i+""}}return r.gamma=e,r})(1);function aW(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),i;return function(s){for(i=0;i<n;++i)r[i]=e[i]*(1-s)+t[i]*s;return r}}function iW(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function oW(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,i=new Array(r),s=new Array(n),l;for(l=0;l<r;++l)i[l]=xl(e[l],t[l]);for(;l<n;++l)s[l]=t[l];return function(u){for(l=0;l<r;++l)s[l]=i[l](u);return s}}function sW(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function Oh(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function lW(e,t){var n={},r={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?n[i]=xl(e[i],t[i]):r[i]=t[i];return function(s){for(i in n)r[i]=n[i](s);return r}}var X1=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Jx=new RegExp(X1.source,"g");function cW(e){return function(){return e}}function uW(e){return function(t){return e(t)+""}}function dW(e,t){var n=X1.lastIndex=Jx.lastIndex=0,r,i,s,l=-1,u=[],d=[];for(e=e+"",t=t+"";(r=X1.exec(e))&&(i=Jx.exec(t));)(s=i.index)>n&&(s=t.slice(n,s),u[l]?u[l]+=s:u[++l]=s),(r=r[0])===(i=i[0])?u[l]?u[l]+=i:u[++l]=i:(u[++l]=null,d.push({i:l,x:Oh(r,i)})),n=Jx.lastIndex;return n<t.length&&(s=t.slice(n),u[l]?u[l]+=s:u[++l]=s),u.length<2?d[0]?uW(d[0].x):cW(t):(t=d.length,function(f){for(var p=0,m;p<t;++p)u[(m=d[p]).i]=m.x(f);return u.join("")})}function xl(e,t){var n=typeof t,r;return t==null||n==="boolean"?oA(t):(n==="number"?Oh:n==="string"?(r=cu(t))?(t=r,iM):dW:t instanceof cu?iM:t instanceof Date?sW:iW(t)?aW:Array.isArray(t)?oW:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?lW:Oh)(e,t)}function sA(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function fW(e,t){t===void 0&&(t=e,e=xl);for(var n=0,r=t.length-1,i=t[0],s=new Array(r<0?0:r);n<r;)s[n]=e(i,i=t[++n]);return function(l){var u=Math.max(0,Math.min(r-1,Math.floor(l*=r)));return s[u](l-u)}}function hW(e){return function(){return e}}function jh(e){return+e}var oM=[0,1];function gn(e){return e}function Y1(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:hW(isNaN(t)?NaN:.5)}function pW(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function mW(e,t,n){var r=e[0],i=e[1],s=t[0],l=t[1];return i<r?(r=Y1(i,r),s=n(l,s)):(r=Y1(r,i),s=n(s,l)),function(u){return s(r(u))}}function gW(e,t,n){var r=Math.min(e.length,t.length)-1,i=new Array(r),s=new Array(r),l=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++l<r;)i[l]=Y1(e[l],e[l+1]),s[l]=n(t[l],t[l+1]);return function(u){var d=Ku(e,u,1,r)-1;return s[d](i[d](u))}}function Yu(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function $p(){var e=oM,t=oM,n=xl,r,i,s,l=gn,u,d,f;function p(){var v=Math.min(e.length,t.length);return l!==gn&&(l=pW(e[0],e[v-1])),u=v>2?gW:mW,d=f=null,m}function m(v){return v==null||isNaN(v=+v)?s:(d||(d=u(e.map(r),t,n)))(r(l(v)))}return m.invert=function(v){return l(i((f||(f=u(t,e.map(r),Oh)))(v)))},m.domain=function(v){return arguments.length?(e=Array.from(v,jh),p()):e.slice()},m.range=function(v){return arguments.length?(t=Array.from(v),p()):t.slice()},m.rangeRound=function(v){return t=Array.from(v),n=sA,p()},m.clamp=function(v){return arguments.length?(l=v?!0:gn,p()):l!==gn},m.interpolate=function(v){return arguments.length?(n=v,p()):n},m.unknown=function(v){return arguments.length?(s=v,m):s},function(v,b){return r=v,i=b,p()}}function lA(){return $p()(gn,gn)}function vW(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Th(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function Us(e){return e=Th(Math.abs(e)),e?e[1]:NaN}function yW(e,t){return function(n,r){for(var i=n.length,s=[],l=0,u=e[0],d=0;i>0&&u>0&&(d+u+1>r&&(u=Math.max(1,r-d)),s.push(n.substring(i-=u,i+u)),!((d+=u+1)>r));)u=e[l=(l+1)%e.length];return s.reverse().join(t)}}function bW(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var xW=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function uu(e){if(!(t=xW.exec(e)))throw new Error("invalid format: "+e);var t;return new cA({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}uu.prototype=cA.prototype;function cA(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}cA.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function SW(e){e:for(var t=e.length,n=1,r=-1,i;n<t;++n)switch(e[n]){case".":r=i=n;break;case"0":r===0&&(r=n),i=n;break;default:if(!+e[n])break e;r>0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(i+1):e}var F6;function wW(e,t){var n=Th(e,t);if(!n)return e+"";var r=n[0],i=n[1],s=i-(F6=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,l=r.length;return s===l?r:s>l?r+new Array(s-l+1).join("0"):s>0?r.slice(0,s)+"."+r.slice(s):"0."+new Array(1-s).join("0")+Th(e,Math.max(0,t+s-1))[0]}function sM(e,t){var n=Th(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}const lM={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:vW,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>sM(e*100,t),r:sM,s:wW,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function cM(e){return e}var uM=Array.prototype.map,dM=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function AW(e){var t=e.grouping===void 0||e.thousands===void 0?cM:yW(uM.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",s=e.numerals===void 0?cM:bW(uM.call(e.numerals,String)),l=e.percent===void 0?"%":e.percent+"",u=e.minus===void 0?"−":e.minus+"",d=e.nan===void 0?"NaN":e.nan+"";function f(m){m=uu(m);var v=m.fill,b=m.align,A=m.sign,S=m.symbol,w=m.zero,O=m.width,_=m.comma,T=m.precision,M=m.trim,j=m.type;j==="n"?(_=!0,j="g"):lM[j]||(T===void 0&&(T=12),M=!0,j="g"),(w||v==="0"&&b==="=")&&(w=!0,v="0",b="=");var P=S==="$"?n:S==="#"&&/[boxX]/.test(j)?"0"+j.toLowerCase():"",N=S==="$"?r:/[%p]/.test(j)?l:"",D=lM[j],k=/[defgprs%]/.test(j);T=T===void 0?6:/[gprs]/.test(j)?Math.max(1,Math.min(21,T)):Math.max(0,Math.min(20,T));function U($){var H=P,X=N,J,Z,L;if(j==="c")X=D($)+X,$="";else{$=+$;var V=$<0||1/$<0;if($=isNaN($)?d:D(Math.abs($),T),M&&($=SW($)),V&&+$==0&&A!=="+"&&(V=!1),H=(V?A==="("?A:u:A==="-"||A==="("?"":A)+H,X=(j==="s"?dM[8+F6/3]:"")+X+(V&&A==="("?")":""),k){for(J=-1,Z=$.length;++J<Z;)if(L=$.charCodeAt(J),48>L||L>57){X=(L===46?i+$.slice(J+1):$.slice(J))+X,$=$.slice(0,J);break}}}_&&!w&&($=t($,1/0));var F=H.length+$.length+X.length,ie=F<O?new Array(O-F+1).join(v):"";switch(_&&w&&($=t(ie+$,ie.length?O-X.length:1/0),ie=""),b){case"<":$=H+$+X+ie;break;case"=":$=H+ie+$+X;break;case"^":$=ie.slice(0,F=ie.length>>1)+H+$+X+ie.slice(F);break;default:$=ie+H+$+X;break}return s($)}return U.toString=function(){return m+""},U}function p(m,v){var b=f((m=uu(m),m.type="f",m)),A=Math.max(-8,Math.min(8,Math.floor(Us(v)/3)))*3,S=Math.pow(10,-A),w=dM[8+A/3];return function(O){return b(S*O)+w}}return{format:f,formatPrefix:p}}var Bf,uA,G6;OW({thousands:",",grouping:[3],currency:["$",""]});function OW(e){return Bf=AW(e),uA=Bf.format,G6=Bf.formatPrefix,Bf}function jW(e){return Math.max(0,-Us(Math.abs(e)))}function TW(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Us(t)/3)))*3-Us(Math.abs(e)))}function CW(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Us(t)-Us(e))+1}function K6(e,t,n,r){var i=F1(e,t,n),s;switch(r=uu(r??",f"),r.type){case"s":{var l=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(s=TW(i,l))&&(r.precision=s),G6(r,l)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(s=CW(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=s-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(s=jW(i))&&(r.precision=s-(r.type==="%")*2);break}}return uA(r)}function Si(e){var t=e.domain;return e.ticks=function(n){var r=t();return U1(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var i=t();return K6(i[0],i[i.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),i=0,s=r.length-1,l=r[i],u=r[s],d,f,p=10;for(u<l&&(f=l,l=u,u=f,f=i,i=s,s=f);p-- >0;){if(f=H1(l,u,n),f===d)return r[i]=l,r[s]=u,t(r);if(f>0)l=Math.floor(l/f)*f,u=Math.ceil(u/f)*f;else if(f<0)l=Math.ceil(l*f)/f,u=Math.floor(u*f)/f;else break;d=f}return e},e}function Ch(){var e=lA();return e.copy=function(){return Yu(e,Ch())},vr.apply(e,arguments),Si(e)}function X6(e){var t;function n(r){return r==null||isNaN(r=+r)?t:r}return n.invert=n,n.domain=n.range=function(r){return arguments.length?(e=Array.from(r,jh),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return X6(e).unknown(t)},e=arguments.length?Array.from(e,jh):[0,1],Si(n)}function Y6(e,t){e=e.slice();var n=0,r=e.length-1,i=e[n],s=e[r],l;return s<i&&(l=n,n=r,r=l,l=i,i=s,s=l),e[n]=t.floor(i),e[r]=t.ceil(s),e}function fM(e){return Math.log(e)}function hM(e){return Math.exp(e)}function EW(e){return-Math.log(-e)}function _W(e){return-Math.exp(-e)}function PW(e){return isFinite(e)?+("1e"+e):e<0?0:e}function NW(e){return e===10?PW:e===Math.E?Math.exp:t=>Math.pow(e,t)}function MW(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function pM(e){return(t,n)=>-e(-t,n)}function dA(e){const t=e(fM,hM),n=t.domain;let r=10,i,s;function l(){return i=MW(r),s=NW(r),n()[0]<0?(i=pM(i),s=pM(s),e(EW,_W)):e(fM,hM),t}return t.base=function(u){return arguments.length?(r=+u,l()):r},t.domain=function(u){return arguments.length?(n(u),l()):n()},t.ticks=u=>{const d=n();let f=d[0],p=d[d.length-1];const m=p<f;m&&([f,p]=[p,f]);let v=i(f),b=i(p),A,S;const w=u==null?10:+u;let O=[];if(!(r%1)&&b-v<w){if(v=Math.floor(v),b=Math.ceil(b),f>0){for(;v<=b;++v)for(A=1;A<r;++A)if(S=v<0?A/s(-v):A*s(v),!(S<f)){if(S>p)break;O.push(S)}}else for(;v<=b;++v)for(A=r-1;A>=1;--A)if(S=v>0?A/s(-v):A*s(v),!(S<f)){if(S>p)break;O.push(S)}O.length*2<w&&(O=U1(f,p,w))}else O=U1(v,b,Math.min(b-v,w)).map(s);return m?O.reverse():O},t.tickFormat=(u,d)=>{if(u==null&&(u=10),d==null&&(d=r===10?"s":","),typeof d!="function"&&(!(r%1)&&(d=uu(d)).precision==null&&(d.trim=!0),d=uA(d)),u===1/0)return d;const f=Math.max(1,r*u/t.ticks().length);return p=>{let m=p/s(Math.round(i(p)));return m*r<r-.5&&(m*=r),m<=f?d(p):""}},t.nice=()=>n(Y6(n(),{floor:u=>s(Math.floor(i(u))),ceil:u=>s(Math.ceil(i(u)))})),t}function W6(){const e=dA($p()).domain([1,10]);return e.copy=()=>Yu(e,W6()).base(e.base()),vr.apply(e,arguments),e}function mM(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function gM(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function fA(e){var t=1,n=e(mM(t),gM(t));return n.constant=function(r){return arguments.length?e(mM(t=+r),gM(t)):t},Si(n)}function Z6(){var e=fA($p());return e.copy=function(){return Yu(e,Z6()).constant(e.constant())},vr.apply(e,arguments)}function vM(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function DW(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function RW(e){return e<0?-e*e:e*e}function hA(e){var t=e(gn,gn),n=1;function r(){return n===1?e(gn,gn):n===.5?e(DW,RW):e(vM(n),vM(1/n))}return t.exponent=function(i){return arguments.length?(n=+i,r()):n},Si(t)}function pA(){var e=hA($p());return e.copy=function(){return Yu(e,pA()).exponent(e.exponent())},vr.apply(e,arguments),e}function kW(){return pA.apply(null,arguments).exponent(.5)}function yM(e){return Math.sign(e)*e*e}function LW(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function Q6(){var e=lA(),t=[0,1],n=!1,r;function i(s){var l=LW(e(s));return isNaN(l)?r:n?Math.round(l):l}return i.invert=function(s){return e.invert(yM(s))},i.domain=function(s){return arguments.length?(e.domain(s),i):e.domain()},i.range=function(s){return arguments.length?(e.range((t=Array.from(s,jh)).map(yM)),i):t.slice()},i.rangeRound=function(s){return i.range(s).round(!0)},i.round=function(s){return arguments.length?(n=!!s,i):n},i.clamp=function(s){return arguments.length?(e.clamp(s),i):e.clamp()},i.unknown=function(s){return arguments.length?(r=s,i):r},i.copy=function(){return Q6(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},vr.apply(i,arguments),Si(i)}function J6(){var e=[],t=[],n=[],r;function i(){var l=0,u=Math.max(1,t.length);for(n=new Array(u-1);++l<u;)n[l-1]=qY(e,l/u);return s}function s(l){return l==null||isNaN(l=+l)?r:t[Ku(n,l)]}return s.invertExtent=function(l){var u=t.indexOf(l);return u<0?[NaN,NaN]:[u>0?n[u-1]:e[0],u<n.length?n[u]:e[e.length-1]]},s.domain=function(l){if(!arguments.length)return e.slice();e=[];for(let u of l)u!=null&&!isNaN(u=+u)&&e.push(u);return e.sort(mi),i()},s.range=function(l){return arguments.length?(t=Array.from(l),i()):t.slice()},s.unknown=function(l){return arguments.length?(r=l,s):r},s.quantiles=function(){return n.slice()},s.copy=function(){return J6().domain(e).range(t).unknown(r)},vr.apply(s,arguments)}function eL(){var e=0,t=1,n=1,r=[.5],i=[0,1],s;function l(d){return d!=null&&d<=d?i[Ku(r,d,0,n)]:s}function u(){var d=-1;for(r=new Array(n);++d<n;)r[d]=((d+1)*t-(d-n)*e)/(n+1);return l}return l.domain=function(d){return arguments.length?([e,t]=d,e=+e,t=+t,u()):[e,t]},l.range=function(d){return arguments.length?(n=(i=Array.from(d)).length-1,u()):i.slice()},l.invertExtent=function(d){var f=i.indexOf(d);return f<0?[NaN,NaN]:f<1?[e,r[0]]:f>=n?[r[n-1],t]:[r[f-1],r[f]]},l.unknown=function(d){return arguments.length&&(s=d),l},l.thresholds=function(){return r.slice()},l.copy=function(){return eL().domain([e,t]).range(i).unknown(s)},vr.apply(Si(l),arguments)}function tL(){var e=[.5],t=[0,1],n,r=1;function i(s){return s!=null&&s<=s?t[Ku(e,s,0,r)]:n}return i.domain=function(s){return arguments.length?(e=Array.from(s),r=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(s){return arguments.length?(t=Array.from(s),r=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(s){var l=t.indexOf(s);return[e[l-1],e[l]]},i.unknown=function(s){return arguments.length?(n=s,i):n},i.copy=function(){return tL().domain(e).range(t).unknown(n)},vr.apply(i,arguments)}const e0=new Date,t0=new Date;function Kt(e,t,n,r){function i(s){return e(s=arguments.length===0?new Date:new Date(+s)),s}return i.floor=s=>(e(s=new Date(+s)),s),i.ceil=s=>(e(s=new Date(s-1)),t(s,1),e(s),s),i.round=s=>{const l=i(s),u=i.ceil(s);return s-l<u-s?l:u},i.offset=(s,l)=>(t(s=new Date(+s),l==null?1:Math.floor(l)),s),i.range=(s,l,u)=>{const d=[];if(s=i.ceil(s),u=u==null?1:Math.floor(u),!(s<l)||!(u>0))return d;let f;do d.push(f=new Date(+s)),t(s,u),e(s);while(f<s&&s<l);return d},i.filter=s=>Kt(l=>{if(l>=l)for(;e(l),!s(l);)l.setTime(l-1)},(l,u)=>{if(l>=l)if(u<0)for(;++u<=0;)for(;t(l,-1),!s(l););else for(;--u>=0;)for(;t(l,1),!s(l););}),n&&(i.count=(s,l)=>(e0.setTime(+s),t0.setTime(+l),e(e0),e(t0),Math.floor(n(e0,t0))),i.every=s=>(s=Math.floor(s),!isFinite(s)||!(s>0)?null:s>1?i.filter(r?l=>r(l)%s===0:l=>i.count(0,l)%s===0):i)),i}const Eh=Kt(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Eh.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Kt(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):Eh);Eh.range;const va=1e3,cr=va*60,ya=cr*60,Aa=ya*24,mA=Aa*7,bM=Aa*30,n0=Aa*365,to=Kt(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*va)},(e,t)=>(t-e)/va,e=>e.getUTCSeconds());to.range;const gA=Kt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*va)},(e,t)=>{e.setTime(+e+t*cr)},(e,t)=>(t-e)/cr,e=>e.getMinutes());gA.range;const vA=Kt(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*cr)},(e,t)=>(t-e)/cr,e=>e.getUTCMinutes());vA.range;const yA=Kt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*va-e.getMinutes()*cr)},(e,t)=>{e.setTime(+e+t*ya)},(e,t)=>(t-e)/ya,e=>e.getHours());yA.range;const bA=Kt(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*ya)},(e,t)=>(t-e)/ya,e=>e.getUTCHours());bA.range;const Wu=Kt(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*cr)/Aa,e=>e.getDate()-1);Wu.range;const Bp=Kt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Aa,e=>e.getUTCDate()-1);Bp.range;const nL=Kt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Aa,e=>Math.floor(e/Aa));nL.range;function Oo(e){return Kt(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,n)=>{t.setDate(t.getDate()+n*7)},(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*cr)/mA)}const Ip=Oo(0),_h=Oo(1),zW=Oo(2),$W=Oo(3),Hs=Oo(4),BW=Oo(5),IW=Oo(6);Ip.range;_h.range;zW.range;$W.range;Hs.range;BW.range;IW.range;function jo(e){return Kt(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n*7)},(t,n)=>(n-t)/mA)}const qp=jo(0),Ph=jo(1),qW=jo(2),VW=jo(3),Fs=jo(4),UW=jo(5),HW=jo(6);qp.range;Ph.range;qW.range;VW.range;Fs.range;UW.range;HW.range;const xA=Kt(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());xA.range;const SA=Kt(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());SA.range;const Oa=Kt(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());Oa.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Kt(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)});Oa.range;const ja=Kt(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());ja.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Kt(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)});ja.range;function rL(e,t,n,r,i,s){const l=[[to,1,va],[to,5,5*va],[to,15,15*va],[to,30,30*va],[s,1,cr],[s,5,5*cr],[s,15,15*cr],[s,30,30*cr],[i,1,ya],[i,3,3*ya],[i,6,6*ya],[i,12,12*ya],[r,1,Aa],[r,2,2*Aa],[n,1,mA],[t,1,bM],[t,3,3*bM],[e,1,n0]];function u(f,p,m){const v=p<f;v&&([f,p]=[p,f]);const b=m&&typeof m.range=="function"?m:d(f,p,m),A=b?b.range(f,+p+1):[];return v?A.reverse():A}function d(f,p,m){const v=Math.abs(p-f)/m,b=rA(([,,w])=>w).right(l,v);if(b===l.length)return e.every(F1(f/n0,p/n0,m));if(b===0)return Eh.every(Math.max(F1(f,p,m),1));const[A,S]=l[v/l[b-1][2]<l[b][2]/v?b-1:b];return A.every(S)}return[u,d]}const[FW,GW]=rL(ja,SA,qp,nL,bA,vA),[KW,XW]=rL(Oa,xA,Ip,Wu,yA,gA);function r0(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function a0(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function jc(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function YW(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,s=e.days,l=e.shortDays,u=e.months,d=e.shortMonths,f=Tc(i),p=Cc(i),m=Tc(s),v=Cc(s),b=Tc(l),A=Cc(l),S=Tc(u),w=Cc(u),O=Tc(d),_=Cc(d),T={a:V,A:F,b:ie,B:ue,c:null,d:jM,e:jM,f:yZ,g:EZ,G:PZ,H:mZ,I:gZ,j:vZ,L:aL,m:bZ,M:xZ,p:z,q:G,Q:EM,s:_M,S:SZ,u:wZ,U:AZ,V:OZ,w:jZ,W:TZ,x:null,X:null,y:CZ,Y:_Z,Z:NZ,"%":CM},M={a:te,A:le,b:fe,B:Se,c:null,d:TM,e:TM,f:kZ,g:FZ,G:KZ,H:MZ,I:DZ,j:RZ,L:oL,m:LZ,M:zZ,p:ye,q:Ve,Q:EM,s:_M,S:$Z,u:BZ,U:IZ,V:qZ,w:VZ,W:UZ,x:null,X:null,y:HZ,Y:GZ,Z:XZ,"%":CM},j={a:U,A:$,b:H,B:X,c:J,d:AM,e:AM,f:dZ,g:wM,G:SM,H:OM,I:OM,j:sZ,L:uZ,m:oZ,M:lZ,p:k,q:iZ,Q:hZ,s:pZ,S:cZ,u:eZ,U:tZ,V:nZ,w:JW,W:rZ,x:Z,X:L,y:wM,Y:SM,Z:aZ,"%":fZ};T.x=P(n,T),T.X=P(r,T),T.c=P(t,T),M.x=P(n,M),M.X=P(r,M),M.c=P(t,M);function P(ce,we){return function(Ce){var se=[],ht=-1,Re=0,xt=ce.length,St,sn,yr;for(Ce instanceof Date||(Ce=new Date(+Ce));++ht<xt;)ce.charCodeAt(ht)===37&&(se.push(ce.slice(Re,ht)),(sn=xM[St=ce.charAt(++ht)])!=null?St=ce.charAt(++ht):sn=St==="e"?" ":"0",(yr=we[St])&&(St=yr(Ce,sn)),se.push(St),Re=ht+1);return se.push(ce.slice(Re,ht)),se.join("")}}function N(ce,we){return function(Ce){var se=jc(1900,void 0,1),ht=D(se,ce,Ce+="",0),Re,xt;if(ht!=Ce.length)return null;if("Q"in se)return new Date(se.Q);if("s"in se)return new Date(se.s*1e3+("L"in se?se.L:0));if(we&&!("Z"in se)&&(se.Z=0),"p"in se&&(se.H=se.H%12+se.p*12),se.m===void 0&&(se.m="q"in se?se.q:0),"V"in se){if(se.V<1||se.V>53)return null;"w"in se||(se.w=1),"Z"in se?(Re=a0(jc(se.y,0,1)),xt=Re.getUTCDay(),Re=xt>4||xt===0?Ph.ceil(Re):Ph(Re),Re=Bp.offset(Re,(se.V-1)*7),se.y=Re.getUTCFullYear(),se.m=Re.getUTCMonth(),se.d=Re.getUTCDate()+(se.w+6)%7):(Re=r0(jc(se.y,0,1)),xt=Re.getDay(),Re=xt>4||xt===0?_h.ceil(Re):_h(Re),Re=Wu.offset(Re,(se.V-1)*7),se.y=Re.getFullYear(),se.m=Re.getMonth(),se.d=Re.getDate()+(se.w+6)%7)}else("W"in se||"U"in se)&&("w"in se||(se.w="u"in se?se.u%7:"W"in se?1:0),xt="Z"in se?a0(jc(se.y,0,1)).getUTCDay():r0(jc(se.y,0,1)).getDay(),se.m=0,se.d="W"in se?(se.w+6)%7+se.W*7-(xt+5)%7:se.w+se.U*7-(xt+6)%7);return"Z"in se?(se.H+=se.Z/100|0,se.M+=se.Z%100,a0(se)):r0(se)}}function D(ce,we,Ce,se){for(var ht=0,Re=we.length,xt=Ce.length,St,sn;ht<Re;){if(se>=xt)return-1;if(St=we.charCodeAt(ht++),St===37){if(St=we.charAt(ht++),sn=j[St in xM?we.charAt(ht++):St],!sn||(se=sn(ce,Ce,se))<0)return-1}else if(St!=Ce.charCodeAt(se++))return-1}return se}function k(ce,we,Ce){var se=f.exec(we.slice(Ce));return se?(ce.p=p.get(se[0].toLowerCase()),Ce+se[0].length):-1}function U(ce,we,Ce){var se=b.exec(we.slice(Ce));return se?(ce.w=A.get(se[0].toLowerCase()),Ce+se[0].length):-1}function $(ce,we,Ce){var se=m.exec(we.slice(Ce));return se?(ce.w=v.get(se[0].toLowerCase()),Ce+se[0].length):-1}function H(ce,we,Ce){var se=O.exec(we.slice(Ce));return se?(ce.m=_.get(se[0].toLowerCase()),Ce+se[0].length):-1}function X(ce,we,Ce){var se=S.exec(we.slice(Ce));return se?(ce.m=w.get(se[0].toLowerCase()),Ce+se[0].length):-1}function J(ce,we,Ce){return D(ce,t,we,Ce)}function Z(ce,we,Ce){return D(ce,n,we,Ce)}function L(ce,we,Ce){return D(ce,r,we,Ce)}function V(ce){return l[ce.getDay()]}function F(ce){return s[ce.getDay()]}function ie(ce){return d[ce.getMonth()]}function ue(ce){return u[ce.getMonth()]}function z(ce){return i[+(ce.getHours()>=12)]}function G(ce){return 1+~~(ce.getMonth()/3)}function te(ce){return l[ce.getUTCDay()]}function le(ce){return s[ce.getUTCDay()]}function fe(ce){return d[ce.getUTCMonth()]}function Se(ce){return u[ce.getUTCMonth()]}function ye(ce){return i[+(ce.getUTCHours()>=12)]}function Ve(ce){return 1+~~(ce.getUTCMonth()/3)}return{format:function(ce){var we=P(ce+="",T);return we.toString=function(){return ce},we},parse:function(ce){var we=N(ce+="",!1);return we.toString=function(){return ce},we},utcFormat:function(ce){var we=P(ce+="",M);return we.toString=function(){return ce},we},utcParse:function(ce){var we=N(ce+="",!0);return we.toString=function(){return ce},we}}}var xM={"-":"",_:" ",0:"0"},Qt=/^\s*\d+/,WW=/^%/,ZW=/[\\^$*+?|[\]().{}]/g;function Xe(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",s=i.length;return r+(s<n?new Array(n-s+1).join(t)+i:i)}function QW(e){return e.replace(ZW,"\\$&")}function Tc(e){return new RegExp("^(?:"+e.map(QW).join("|")+")","i")}function Cc(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function JW(e,t,n){var r=Qt.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function eZ(e,t,n){var r=Qt.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function tZ(e,t,n){var r=Qt.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function nZ(e,t,n){var r=Qt.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function rZ(e,t,n){var r=Qt.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function SM(e,t,n){var r=Qt.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function wM(e,t,n){var r=Qt.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function aZ(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function iZ(e,t,n){var r=Qt.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function oZ(e,t,n){var r=Qt.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function AM(e,t,n){var r=Qt.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function sZ(e,t,n){var r=Qt.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function OM(e,t,n){var r=Qt.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function lZ(e,t,n){var r=Qt.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function cZ(e,t,n){var r=Qt.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function uZ(e,t,n){var r=Qt.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function dZ(e,t,n){var r=Qt.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function fZ(e,t,n){var r=WW.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function hZ(e,t,n){var r=Qt.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function pZ(e,t,n){var r=Qt.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function jM(e,t){return Xe(e.getDate(),t,2)}function mZ(e,t){return Xe(e.getHours(),t,2)}function gZ(e,t){return Xe(e.getHours()%12||12,t,2)}function vZ(e,t){return Xe(1+Wu.count(Oa(e),e),t,3)}function aL(e,t){return Xe(e.getMilliseconds(),t,3)}function yZ(e,t){return aL(e,t)+"000"}function bZ(e,t){return Xe(e.getMonth()+1,t,2)}function xZ(e,t){return Xe(e.getMinutes(),t,2)}function SZ(e,t){return Xe(e.getSeconds(),t,2)}function wZ(e){var t=e.getDay();return t===0?7:t}function AZ(e,t){return Xe(Ip.count(Oa(e)-1,e),t,2)}function iL(e){var t=e.getDay();return t>=4||t===0?Hs(e):Hs.ceil(e)}function OZ(e,t){return e=iL(e),Xe(Hs.count(Oa(e),e)+(Oa(e).getDay()===4),t,2)}function jZ(e){return e.getDay()}function TZ(e,t){return Xe(_h.count(Oa(e)-1,e),t,2)}function CZ(e,t){return Xe(e.getFullYear()%100,t,2)}function EZ(e,t){return e=iL(e),Xe(e.getFullYear()%100,t,2)}function _Z(e,t){return Xe(e.getFullYear()%1e4,t,4)}function PZ(e,t){var n=e.getDay();return e=n>=4||n===0?Hs(e):Hs.ceil(e),Xe(e.getFullYear()%1e4,t,4)}function NZ(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Xe(t/60|0,"0",2)+Xe(t%60,"0",2)}function TM(e,t){return Xe(e.getUTCDate(),t,2)}function MZ(e,t){return Xe(e.getUTCHours(),t,2)}function DZ(e,t){return Xe(e.getUTCHours()%12||12,t,2)}function RZ(e,t){return Xe(1+Bp.count(ja(e),e),t,3)}function oL(e,t){return Xe(e.getUTCMilliseconds(),t,3)}function kZ(e,t){return oL(e,t)+"000"}function LZ(e,t){return Xe(e.getUTCMonth()+1,t,2)}function zZ(e,t){return Xe(e.getUTCMinutes(),t,2)}function $Z(e,t){return Xe(e.getUTCSeconds(),t,2)}function BZ(e){var t=e.getUTCDay();return t===0?7:t}function IZ(e,t){return Xe(qp.count(ja(e)-1,e),t,2)}function sL(e){var t=e.getUTCDay();return t>=4||t===0?Fs(e):Fs.ceil(e)}function qZ(e,t){return e=sL(e),Xe(Fs.count(ja(e),e)+(ja(e).getUTCDay()===4),t,2)}function VZ(e){return e.getUTCDay()}function UZ(e,t){return Xe(Ph.count(ja(e)-1,e),t,2)}function HZ(e,t){return Xe(e.getUTCFullYear()%100,t,2)}function FZ(e,t){return e=sL(e),Xe(e.getUTCFullYear()%100,t,2)}function GZ(e,t){return Xe(e.getUTCFullYear()%1e4,t,4)}function KZ(e,t){var n=e.getUTCDay();return e=n>=4||n===0?Fs(e):Fs.ceil(e),Xe(e.getUTCFullYear()%1e4,t,4)}function XZ(){return"+0000"}function CM(){return"%"}function EM(e){return+e}function _M(e){return Math.floor(+e/1e3)}var vs,lL,cL;YZ({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function YZ(e){return vs=YW(e),lL=vs.format,vs.parse,cL=vs.utcFormat,vs.utcParse,vs}function WZ(e){return new Date(e)}function ZZ(e){return e instanceof Date?+e:+new Date(+e)}function wA(e,t,n,r,i,s,l,u,d,f){var p=lA(),m=p.invert,v=p.domain,b=f(".%L"),A=f(":%S"),S=f("%I:%M"),w=f("%I %p"),O=f("%a %d"),_=f("%b %d"),T=f("%B"),M=f("%Y");function j(P){return(d(P)<P?b:u(P)<P?A:l(P)<P?S:s(P)<P?w:r(P)<P?i(P)<P?O:_:n(P)<P?T:M)(P)}return p.invert=function(P){return new Date(m(P))},p.domain=function(P){return arguments.length?v(Array.from(P,ZZ)):v().map(WZ)},p.ticks=function(P){var N=v();return e(N[0],N[N.length-1],P??10)},p.tickFormat=function(P,N){return N==null?j:f(N)},p.nice=function(P){var N=v();return(!P||typeof P.range!="function")&&(P=t(N[0],N[N.length-1],P??10)),P?v(Y6(N,P)):p},p.copy=function(){return Yu(p,wA(e,t,n,r,i,s,l,u,d,f))},p}function QZ(){return vr.apply(wA(KW,XW,Oa,xA,Ip,Wu,yA,gA,to,lL).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function JZ(){return vr.apply(wA(FW,GW,ja,SA,qp,Bp,bA,vA,to,cL).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Vp(){var e=0,t=1,n,r,i,s,l=gn,u=!1,d;function f(m){return m==null||isNaN(m=+m)?d:l(i===0?.5:(m=(s(m)-n)*i,u?Math.max(0,Math.min(1,m)):m))}f.domain=function(m){return arguments.length?([e,t]=m,n=s(e=+e),r=s(t=+t),i=n===r?0:1/(r-n),f):[e,t]},f.clamp=function(m){return arguments.length?(u=!!m,f):u},f.interpolator=function(m){return arguments.length?(l=m,f):l};function p(m){return function(v){var b,A;return arguments.length?([b,A]=v,l=m(b,A),f):[l(0),l(1)]}}return f.range=p(xl),f.rangeRound=p(sA),f.unknown=function(m){return arguments.length?(d=m,f):d},function(m){return s=m,n=m(e),r=m(t),i=n===r?0:1/(r-n),f}}function wi(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function uL(){var e=Si(Vp()(gn));return e.copy=function(){return wi(e,uL())},Na.apply(e,arguments)}function dL(){var e=dA(Vp()).domain([1,10]);return e.copy=function(){return wi(e,dL()).base(e.base())},Na.apply(e,arguments)}function fL(){var e=fA(Vp());return e.copy=function(){return wi(e,fL()).constant(e.constant())},Na.apply(e,arguments)}function AA(){var e=hA(Vp());return e.copy=function(){return wi(e,AA()).exponent(e.exponent())},Na.apply(e,arguments)}function eQ(){return AA.apply(null,arguments).exponent(.5)}function hL(){var e=[],t=gn;function n(r){if(r!=null&&!isNaN(r=+r))return t((Ku(e,r,1)-1)/(e.length-1))}return n.domain=function(r){if(!arguments.length)return e.slice();e=[];for(let i of r)i!=null&&!isNaN(i=+i)&&e.push(i);return e.sort(mi),n},n.interpolator=function(r){return arguments.length?(t=r,n):t},n.range=function(){return e.map((r,i)=>t(i/(e.length-1)))},n.quantiles=function(r){return Array.from({length:r+1},(i,s)=>IY(e,s/r))},n.copy=function(){return hL(t).domain(e)},Na.apply(n,arguments)}function Up(){var e=0,t=.5,n=1,r=1,i,s,l,u,d,f=gn,p,m=!1,v;function b(S){return isNaN(S=+S)?v:(S=.5+((S=+p(S))-s)*(r*S<r*s?u:d),f(m?Math.max(0,Math.min(1,S)):S))}b.domain=function(S){return arguments.length?([e,t,n]=S,i=p(e=+e),s=p(t=+t),l=p(n=+n),u=i===s?0:.5/(s-i),d=s===l?0:.5/(l-s),r=s<i?-1:1,b):[e,t,n]},b.clamp=function(S){return arguments.length?(m=!!S,b):m},b.interpolator=function(S){return arguments.length?(f=S,b):f};function A(S){return function(w){var O,_,T;return arguments.length?([O,_,T]=w,f=fW(S,[O,_,T]),b):[f(0),f(.5),f(1)]}}return b.range=A(xl),b.rangeRound=A(sA),b.unknown=function(S){return arguments.length?(v=S,b):v},function(S){return p=S,i=S(e),s=S(t),l=S(n),u=i===s?0:.5/(s-i),d=s===l?0:.5/(l-s),r=s<i?-1:1,b}}function pL(){var e=Si(Up()(gn));return e.copy=function(){return wi(e,pL())},Na.apply(e,arguments)}function mL(){var e=dA(Up()).domain([.1,1,10]);return e.copy=function(){return wi(e,mL()).base(e.base())},Na.apply(e,arguments)}function gL(){var e=fA(Up());return e.copy=function(){return wi(e,gL()).constant(e.constant())},Na.apply(e,arguments)}function OA(){var e=hA(Up());return e.copy=function(){return wi(e,OA()).exponent(e.exponent())},Na.apply(e,arguments)}function tQ(){return OA.apply(null,arguments).exponent(.5)}const PM=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:ou,scaleDiverging:pL,scaleDivergingLog:mL,scaleDivergingPow:OA,scaleDivergingSqrt:tQ,scaleDivergingSymlog:gL,scaleIdentity:X6,scaleImplicit:G1,scaleLinear:Ch,scaleLog:W6,scaleOrdinal:aA,scalePoint:Ic,scalePow:pA,scaleQuantile:J6,scaleQuantize:eL,scaleRadial:Q6,scaleSequential:uL,scaleSequentialLog:dL,scaleSequentialPow:AA,scaleSequentialQuantile:hL,scaleSequentialSqrt:eQ,scaleSequentialSymlog:fL,scaleSqrt:kW,scaleSymlog:Z6,scaleThreshold:tL,scaleTime:QZ,scaleUtc:JZ,tickFormat:K6},Symbol.toStringTag,{value:"Module"}));var i0,NM;function Hp(){if(NM)return i0;NM=1;var e=gl();function t(n,r,i){for(var s=-1,l=n.length;++s<l;){var u=n[s],d=r(u);if(d!=null&&(f===void 0?d===d&&!e(d):i(d,f)))var f=d,p=u}return p}return i0=t,i0}var o0,MM;function vL(){if(MM)return o0;MM=1;function e(t,n){return t>n}return o0=e,o0}var s0,DM;function nQ(){if(DM)return s0;DM=1;var e=Hp(),t=vL(),n=bl();function r(i){return i&&i.length?e(i,n,t):void 0}return s0=r,s0}var rQ=nQ();const Fp=tt(rQ);var l0,RM;function yL(){if(RM)return l0;RM=1;function e(t,n){return t<n}return l0=e,l0}var c0,kM;function aQ(){if(kM)return c0;kM=1;var e=Hp(),t=yL(),n=bl();function r(i){return i&&i.length?e(i,n,t):void 0}return c0=r,c0}var iQ=aQ();const Gp=tt(iQ);var u0,LM;function oQ(){if(LM)return u0;LM=1;var e=Iw(),t=Xr(),n=T6(),r=Cn();function i(s,l){var u=r(s)?e:n;return u(s,t(l,3))}return u0=i,u0}var d0,zM;function sQ(){if(zM)return d0;zM=1;var e=O6(),t=oQ();function n(r,i){return e(t(r,i),1)}return d0=n,d0}var lQ=sQ();const cQ=tt(lQ);var f0,$M;function uQ(){if($M)return f0;$M=1;var e=Jw();function t(n,r){return e(n,r)}return f0=t,f0}var dQ=uQ();const Zu=tt(dQ);var Sl=1e9,fQ={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},TA,yt=!0,pr="[DecimalError] ",so=pr+"Invalid argument: ",jA=pr+"Exponent out of range: ",wl=Math.floor,Yi=Math.pow,hQ=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Vn,Wt=1e7,gt=7,bL=9007199254740991,Nh=wl(bL/gt),he={};he.absoluteValue=he.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};he.comparedTo=he.cmp=function(e){var t,n,r,i,s=this;if(e=new s.constructor(e),s.s!==e.s)return s.s||-e.s;if(s.e!==e.e)return s.e>e.e^s.s<0?1:-1;for(r=s.d.length,i=e.d.length,t=0,n=r<i?r:i;t<n;++t)if(s.d[t]!==e.d[t])return s.d[t]>e.d[t]^s.s<0?1:-1;return r===i?0:r>i^s.s<0?1:-1};he.decimalPlaces=he.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*gt;if(t=e.d[t],t)for(;t%10==0;t/=10)n--;return n<0?0:n};he.dividedBy=he.div=function(e){return Sa(this,new this.constructor(e))};he.dividedToIntegerBy=he.idiv=function(e){var t=this,n=t.constructor;return ct(Sa(t,new n(e),0,1),n.precision)};he.equals=he.eq=function(e){return!this.cmp(e)};he.exponent=function(){return Bt(this)};he.greaterThan=he.gt=function(e){return this.cmp(e)>0};he.greaterThanOrEqualTo=he.gte=function(e){return this.cmp(e)>=0};he.isInteger=he.isint=function(){return this.e>this.d.length-2};he.isNegative=he.isneg=function(){return this.s<0};he.isPositive=he.ispos=function(){return this.s>0};he.isZero=function(){return this.s===0};he.lessThan=he.lt=function(e){return this.cmp(e)<0};he.lessThanOrEqualTo=he.lte=function(e){return this.cmp(e)<1};he.logarithm=he.log=function(e){var t,n=this,r=n.constructor,i=r.precision,s=i+5;if(e===void 0)e=new r(10);else if(e=new r(e),e.s<1||e.eq(Vn))throw Error(pr+"NaN");if(n.s<1)throw Error(pr+(n.s?"NaN":"-Infinity"));return n.eq(Vn)?new r(0):(yt=!1,t=Sa(du(n,s),du(e,s),s),yt=!0,ct(t,i))};he.minus=he.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?wL(t,e):xL(t,(e.s=-e.s,e))};he.modulo=he.mod=function(e){var t,n=this,r=n.constructor,i=r.precision;if(e=new r(e),!e.s)throw Error(pr+"NaN");return n.s?(yt=!1,t=Sa(n,e,0,1).times(e),yt=!0,n.minus(t)):ct(new r(n),i)};he.naturalExponential=he.exp=function(){return SL(this)};he.naturalLogarithm=he.ln=function(){return du(this)};he.negated=he.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};he.plus=he.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?xL(t,e):wL(t,(e.s=-e.s,e))};he.precision=he.sd=function(e){var t,n,r,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(so+e);if(t=Bt(i)+1,r=i.d.length-1,n=r*gt+1,r=i.d[r],r){for(;r%10==0;r/=10)n--;for(r=i.d[0];r>=10;r/=10)n++}return e&&t>n?t:n};he.squareRoot=he.sqrt=function(){var e,t,n,r,i,s,l,u=this,d=u.constructor;if(u.s<1){if(!u.s)return new d(0);throw Error(pr+"NaN")}for(e=Bt(u),yt=!1,i=Math.sqrt(+u),i==0||i==1/0?(t=$r(u.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=wl((e+1)/2)-(e<0||e%2),i==1/0?t="5e"+e:(t=i.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),r=new d(t)):r=new d(i.toString()),n=d.precision,i=l=n+3;;)if(s=r,r=s.plus(Sa(u,s,l+2)).times(.5),$r(s.d).slice(0,l)===(t=$r(r.d)).slice(0,l)){if(t=t.slice(l-3,l+1),i==l&&t=="4999"){if(ct(s,n+1,0),s.times(s).eq(u)){r=s;break}}else if(t!="9999")break;l+=4}return yt=!0,ct(r,n)};he.times=he.mul=function(e){var t,n,r,i,s,l,u,d,f,p=this,m=p.constructor,v=p.d,b=(e=new m(e)).d;if(!p.s||!e.s)return new m(0);for(e.s*=p.s,n=p.e+e.e,d=v.length,f=b.length,d<f&&(s=v,v=b,b=s,l=d,d=f,f=l),s=[],l=d+f,r=l;r--;)s.push(0);for(r=f;--r>=0;){for(t=0,i=d+r;i>r;)u=s[i]+b[r]*v[i-r-1]+t,s[i--]=u%Wt|0,t=u/Wt|0;s[i]=(s[i]+t)%Wt|0}for(;!s[--l];)s.pop();return t?++n:s.shift(),e.d=s,e.e=n,yt?ct(e,m.precision):e};he.toDecimalPlaces=he.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),e===void 0?n:(Ur(e,0,Sl),t===void 0?t=r.rounding:Ur(t,0,8),ct(n,e+Bt(n)+1,t))};he.toExponential=function(e,t){var n,r=this,i=r.constructor;return e===void 0?n=go(r,!0):(Ur(e,0,Sl),t===void 0?t=i.rounding:Ur(t,0,8),r=ct(new i(r),e+1,t),n=go(r,!0,e+1)),n};he.toFixed=function(e,t){var n,r,i=this,s=i.constructor;return e===void 0?go(i):(Ur(e,0,Sl),t===void 0?t=s.rounding:Ur(t,0,8),r=ct(new s(i),e+Bt(i)+1,t),n=go(r.abs(),!1,e+Bt(r)+1),i.isneg()&&!i.isZero()?"-"+n:n)};he.toInteger=he.toint=function(){var e=this,t=e.constructor;return ct(new t(e),Bt(e)+1,t.rounding)};he.toNumber=function(){return+this};he.toPower=he.pow=function(e){var t,n,r,i,s,l,u=this,d=u.constructor,f=12,p=+(e=new d(e));if(!e.s)return new d(Vn);if(u=new d(u),!u.s){if(e.s<1)throw Error(pr+"Infinity");return u}if(u.eq(Vn))return u;if(r=d.precision,e.eq(Vn))return ct(u,r);if(t=e.e,n=e.d.length-1,l=t>=n,s=u.s,l){if((n=p<0?-p:p)<=bL){for(i=new d(Vn),t=Math.ceil(r/gt+4),yt=!1;n%2&&(i=i.times(u),IM(i.d,t)),n=wl(n/2),n!==0;)u=u.times(u),IM(u.d,t);return yt=!0,e.s<0?new d(Vn).div(i):ct(i,r)}}else if(s<0)throw Error(pr+"NaN");return s=s<0&&e.d[Math.max(t,n)]&1?-1:1,u.s=1,yt=!1,i=e.times(du(u,r+f)),yt=!0,i=SL(i),i.s=s,i};he.toPrecision=function(e,t){var n,r,i=this,s=i.constructor;return e===void 0?(n=Bt(i),r=go(i,n<=s.toExpNeg||n>=s.toExpPos)):(Ur(e,1,Sl),t===void 0?t=s.rounding:Ur(t,0,8),i=ct(new s(i),e,t),n=Bt(i),r=go(i,e<=n||n<=s.toExpNeg,e)),r};he.toSignificantDigits=he.tosd=function(e,t){var n=this,r=n.constructor;return e===void 0?(e=r.precision,t=r.rounding):(Ur(e,1,Sl),t===void 0?t=r.rounding:Ur(t,0,8)),ct(new r(n),e,t)};he.toString=he.valueOf=he.val=he.toJSON=he[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=Bt(e),n=e.constructor;return go(e,t<=n.toExpNeg||t>=n.toExpPos)};function xL(e,t){var n,r,i,s,l,u,d,f,p=e.constructor,m=p.precision;if(!e.s||!t.s)return t.s||(t=new p(e)),yt?ct(t,m):t;if(d=e.d,f=t.d,l=e.e,i=t.e,d=d.slice(),s=l-i,s){for(s<0?(r=d,s=-s,u=f.length):(r=f,i=l,u=d.length),l=Math.ceil(m/gt),u=l>u?l+1:u+1,s>u&&(s=u,r.length=1),r.reverse();s--;)r.push(0);r.reverse()}for(u=d.length,s=f.length,u-s<0&&(s=u,r=f,f=d,d=r),n=0;s;)n=(d[--s]=d[s]+f[s]+n)/Wt|0,d[s]%=Wt;for(n&&(d.unshift(n),++i),u=d.length;d[--u]==0;)d.pop();return t.d=d,t.e=i,yt?ct(t,m):t}function Ur(e,t,n){if(e!==~~e||e<t||e>n)throw Error(so+e)}function $r(e){var t,n,r,i=e.length-1,s="",l=e[0];if(i>0){for(s+=l,t=1;t<i;t++)r=e[t]+"",n=gt-r.length,n&&(s+=ui(n)),s+=r;l=e[t],r=l+"",n=gt-r.length,n&&(s+=ui(n))}else if(l===0)return"0";for(;l%10===0;)l/=10;return s+l}var Sa=(function(){function e(r,i){var s,l=0,u=r.length;for(r=r.slice();u--;)s=r[u]*i+l,r[u]=s%Wt|0,l=s/Wt|0;return l&&r.unshift(l),r}function t(r,i,s,l){var u,d;if(s!=l)d=s>l?1:-1;else for(u=d=0;u<s;u++)if(r[u]!=i[u]){d=r[u]>i[u]?1:-1;break}return d}function n(r,i,s){for(var l=0;s--;)r[s]-=l,l=r[s]<i[s]?1:0,r[s]=l*Wt+r[s]-i[s];for(;!r[0]&&r.length>1;)r.shift()}return function(r,i,s,l){var u,d,f,p,m,v,b,A,S,w,O,_,T,M,j,P,N,D,k=r.constructor,U=r.s==i.s?1:-1,$=r.d,H=i.d;if(!r.s)return new k(r);if(!i.s)throw Error(pr+"Division by zero");for(d=r.e-i.e,N=H.length,j=$.length,b=new k(U),A=b.d=[],f=0;H[f]==($[f]||0);)++f;if(H[f]>($[f]||0)&&--d,s==null?_=s=k.precision:l?_=s+(Bt(r)-Bt(i))+1:_=s,_<0)return new k(0);if(_=_/gt+2|0,f=0,N==1)for(p=0,H=H[0],_++;(f<j||p)&&_--;f++)T=p*Wt+($[f]||0),A[f]=T/H|0,p=T%H|0;else{for(p=Wt/(H[0]+1)|0,p>1&&(H=e(H,p),$=e($,p),N=H.length,j=$.length),M=N,S=$.slice(0,N),w=S.length;w<N;)S[w++]=0;D=H.slice(),D.unshift(0),P=H[0],H[1]>=Wt/2&&++P;do p=0,u=t(H,S,N,w),u<0?(O=S[0],N!=w&&(O=O*Wt+(S[1]||0)),p=O/P|0,p>1?(p>=Wt&&(p=Wt-1),m=e(H,p),v=m.length,w=S.length,u=t(m,S,v,w),u==1&&(p--,n(m,N<v?D:H,v))):(p==0&&(u=p=1),m=H.slice()),v=m.length,v<w&&m.unshift(0),n(S,m,w),u==-1&&(w=S.length,u=t(H,S,N,w),u<1&&(p++,n(S,N<w?D:H,w))),w=S.length):u===0&&(p++,S=[0]),A[f++]=p,u&&S[0]?S[w++]=$[M]||0:(S=[$[M]],w=1);while((M++<j||S[0]!==void 0)&&_--)}return A[0]||A.shift(),b.e=d,ct(b,l?s+Bt(b)+1:s)}})();function SL(e,t){var n,r,i,s,l,u,d=0,f=0,p=e.constructor,m=p.precision;if(Bt(e)>16)throw Error(jA+Bt(e));if(!e.s)return new p(Vn);for(yt=!1,u=m,l=new p(.03125);e.abs().gte(.1);)e=e.times(l),f+=5;for(r=Math.log(Yi(2,f))/Math.LN10*2+5|0,u+=r,n=i=s=new p(Vn),p.precision=u;;){if(i=ct(i.times(e),u),n=n.times(++d),l=s.plus(Sa(i,n,u)),$r(l.d).slice(0,u)===$r(s.d).slice(0,u)){for(;f--;)s=ct(s.times(s),u);return p.precision=m,t==null?(yt=!0,ct(s,m)):s}s=l}}function Bt(e){for(var t=e.e*gt,n=e.d[0];n>=10;n/=10)t++;return t}function h0(e,t,n){if(t>e.LN10.sd())throw yt=!0,n&&(e.precision=n),Error(pr+"LN10 precision limit exceeded");return ct(new e(e.LN10),t)}function ui(e){for(var t="";e--;)t+="0";return t}function du(e,t){var n,r,i,s,l,u,d,f,p,m=1,v=10,b=e,A=b.d,S=b.constructor,w=S.precision;if(b.s<1)throw Error(pr+(b.s?"NaN":"-Infinity"));if(b.eq(Vn))return new S(0);if(t==null?(yt=!1,f=w):f=t,b.eq(10))return t==null&&(yt=!0),h0(S,f);if(f+=v,S.precision=f,n=$r(A),r=n.charAt(0),s=Bt(b),Math.abs(s)<15e14){for(;r<7&&r!=1||r==1&&n.charAt(1)>3;)b=b.times(e),n=$r(b.d),r=n.charAt(0),m++;s=Bt(b),r>1?(b=new S("0."+n),s++):b=new S(r+"."+n.slice(1))}else return d=h0(S,f+2,w).times(s+""),b=du(new S(r+"."+n.slice(1)),f-v).plus(d),S.precision=w,t==null?(yt=!0,ct(b,w)):b;for(u=l=b=Sa(b.minus(Vn),b.plus(Vn),f),p=ct(b.times(b),f),i=3;;){if(l=ct(l.times(p),f),d=u.plus(Sa(l,new S(i),f)),$r(d.d).slice(0,f)===$r(u.d).slice(0,f))return u=u.times(2),s!==0&&(u=u.plus(h0(S,f+2,w).times(s+""))),u=Sa(u,new S(m),f),S.precision=w,t==null?(yt=!0,ct(u,w)):u;u=d,i+=2}}function BM(e,t){var n,r,i;for((n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;t.charCodeAt(r)===48;)++r;for(i=t.length;t.charCodeAt(i-1)===48;)--i;if(t=t.slice(r,i),t){if(i-=r,n=n-r-1,e.e=wl(n/gt),e.d=[],r=(n+1)%gt,n<0&&(r+=gt),r<i){for(r&&e.d.push(+t.slice(0,r)),i-=gt;r<i;)e.d.push(+t.slice(r,r+=gt));t=t.slice(r),r=gt-t.length}else r-=i;for(;r--;)t+="0";if(e.d.push(+t),yt&&(e.e>Nh||e.e<-Nh))throw Error(jA+n)}else e.s=0,e.e=0,e.d=[0];return e}function ct(e,t,n){var r,i,s,l,u,d,f,p,m=e.d;for(l=1,s=m[0];s>=10;s/=10)l++;if(r=t-l,r<0)r+=gt,i=t,f=m[p=0];else{if(p=Math.ceil((r+1)/gt),s=m.length,p>=s)return e;for(f=s=m[p],l=1;s>=10;s/=10)l++;r%=gt,i=r-gt+l}if(n!==void 0&&(s=Yi(10,l-i-1),u=f/s%10|0,d=t<0||m[p+1]!==void 0||f%s,d=n<4?(u||d)&&(n==0||n==(e.s<0?3:2)):u>5||u==5&&(n==4||d||n==6&&(r>0?i>0?f/Yi(10,l-i):0:m[p-1])%10&1||n==(e.s<0?8:7))),t<1||!m[0])return d?(s=Bt(e),m.length=1,t=t-s-1,m[0]=Yi(10,(gt-t%gt)%gt),e.e=wl(-t/gt)||0):(m.length=1,m[0]=e.e=e.s=0),e;if(r==0?(m.length=p,s=1,p--):(m.length=p+1,s=Yi(10,gt-r),m[p]=i>0?(f/Yi(10,l-i)%Yi(10,i)|0)*s:0),d)for(;;)if(p==0){(m[0]+=s)==Wt&&(m[0]=1,++e.e);break}else{if(m[p]+=s,m[p]!=Wt)break;m[p--]=0,s=1}for(r=m.length;m[--r]===0;)m.pop();if(yt&&(e.e>Nh||e.e<-Nh))throw Error(jA+Bt(e));return e}function wL(e,t){var n,r,i,s,l,u,d,f,p,m,v=e.constructor,b=v.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new v(e),yt?ct(t,b):t;if(d=e.d,m=t.d,r=t.e,f=e.e,d=d.slice(),l=f-r,l){for(p=l<0,p?(n=d,l=-l,u=m.length):(n=m,r=f,u=d.length),i=Math.max(Math.ceil(b/gt),u)+2,l>i&&(l=i,n.length=1),n.reverse(),i=l;i--;)n.push(0);n.reverse()}else{for(i=d.length,u=m.length,p=i<u,p&&(u=i),i=0;i<u;i++)if(d[i]!=m[i]){p=d[i]<m[i];break}l=0}for(p&&(n=d,d=m,m=n,t.s=-t.s),u=d.length,i=m.length-u;i>0;--i)d[u++]=0;for(i=m.length;i>l;){if(d[--i]<m[i]){for(s=i;s&&d[--s]===0;)d[s]=Wt-1;--d[s],d[i]+=Wt}d[i]-=m[i]}for(;d[--u]===0;)d.pop();for(;d[0]===0;d.shift())--r;return d[0]?(t.d=d,t.e=r,yt?ct(t,b):t):new v(0)}function go(e,t,n){var r,i=Bt(e),s=$r(e.d),l=s.length;return t?(n&&(r=n-l)>0?s=s.charAt(0)+"."+s.slice(1)+ui(r):l>1&&(s=s.charAt(0)+"."+s.slice(1)),s=s+(i<0?"e":"e+")+i):i<0?(s="0."+ui(-i-1)+s,n&&(r=n-l)>0&&(s+=ui(r))):i>=l?(s+=ui(i+1-l),n&&(r=n-i-1)>0&&(s=s+"."+ui(r))):((r=i+1)<l&&(s=s.slice(0,r)+"."+s.slice(r)),n&&(r=n-l)>0&&(i+1===l&&(s+="."),s+=ui(r))),e.s<0?"-"+s:s}function IM(e,t){if(e.length>t)return e.length=t,!0}function AL(e){var t,n,r;function i(s){var l=this;if(!(l instanceof i))return new i(s);if(l.constructor=i,s instanceof i){l.s=s.s,l.e=s.e,l.d=(s=s.d)?s.slice():s;return}if(typeof s=="number"){if(s*0!==0)throw Error(so+s);if(s>0)l.s=1;else if(s<0)s=-s,l.s=-1;else{l.s=0,l.e=0,l.d=[0];return}if(s===~~s&&s<1e7){l.e=0,l.d=[s];return}return BM(l,s.toString())}else if(typeof s!="string")throw Error(so+s);if(s.charCodeAt(0)===45?(s=s.slice(1),l.s=-1):l.s=1,hQ.test(s))BM(l,s);else throw Error(so+s)}if(i.prototype=he,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=AL,i.config=i.set=pQ,e===void 0&&(e={}),e)for(r=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t<r.length;)e.hasOwnProperty(n=r[t++])||(e[n]=this[n]);return i.config(e),i}function pQ(e){if(!e||typeof e!="object")throw Error(pr+"Object expected");var t,n,r,i=["precision",1,Sl,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<i.length;t+=3)if((r=e[n=i[t]])!==void 0)if(wl(r)===r&&r>=i[t+1]&&r<=i[t+2])this[n]=r;else throw Error(so+n+": "+r);if((r=e[n="LN10"])!==void 0)if(r==Math.LN10)this[n]=new this(r);else throw Error(so+n+": "+r);return this}var TA=AL(fQ);Vn=new TA(1);const st=TA;function mQ(e){return bQ(e)||yQ(e)||vQ(e)||gQ()}function gQ(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vQ(e,t){if(e){if(typeof e=="string")return W1(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return W1(e,t)}}function yQ(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function bQ(e){if(Array.isArray(e))return W1(e)}function W1(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var xQ=function(t){return t},OL={},jL=function(t){return t===OL},qM=function(t){return function n(){return arguments.length===0||arguments.length===1&&jL(arguments.length<=0?void 0:arguments[0])?n:t.apply(void 0,arguments)}},SQ=function e(t,n){return t===1?n:qM(function(){for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];var l=i.filter(function(u){return u!==OL}).length;return l>=t?n.apply(void 0,i):e(t-l,qM(function(){for(var u=arguments.length,d=new Array(u),f=0;f<u;f++)d[f]=arguments[f];var p=i.map(function(m){return jL(m)?d.shift():m});return n.apply(void 0,mQ(p).concat(d))}))})},Kp=function(t){return SQ(t.length,t)},Z1=function(t,n){for(var r=[],i=t;i<n;++i)r[i-t]=i;return r},wQ=Kp(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(n){return t[n]}).map(e)}),AQ=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(!n.length)return xQ;var i=n.reverse(),s=i[0],l=i.slice(1);return function(){return l.reduce(function(u,d){return d(u)},s.apply(void 0,arguments))}},Q1=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},TL=function(t){var n=null,r=null;return function(){for(var i=arguments.length,s=new Array(i),l=0;l<i;l++)s[l]=arguments[l];return n&&s.every(function(u,d){return u===n[d]})||(n=s,r=t.apply(void 0,s)),r}};function OQ(e){var t;return e===0?t=1:t=Math.floor(new st(e).abs().log(10).toNumber())+1,t}function jQ(e,t,n){for(var r=new st(e),i=0,s=[];r.lt(t)&&i<1e5;)s.push(r.toNumber()),r=r.add(n),i++;return s}var TQ=Kp(function(e,t,n){var r=+e,i=+t;return r+n*(i-r)}),CQ=Kp(function(e,t,n){var r=t-+e;return r=r||1/0,(n-e)/r}),EQ=Kp(function(e,t,n){var r=t-+e;return r=r||1/0,Math.max(0,Math.min(1,(n-e)/r))});const Xp={rangeStep:jQ,getDigitCount:OQ,interpolateNumber:TQ,uninterpolateNumber:CQ,uninterpolateTruncation:EQ};function J1(e){return NQ(e)||PQ(e)||CL(e)||_Q()}function _Q(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function PQ(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function NQ(e){if(Array.isArray(e))return eS(e)}function fu(e,t){return RQ(e)||DQ(e,t)||CL(e,t)||MQ()}function MQ(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function CL(e,t){if(e){if(typeof e=="string")return eS(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return eS(e,t)}}function eS(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function DQ(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var n=[],r=!0,i=!1,s=void 0;try{for(var l=e[Symbol.iterator](),u;!(r=(u=l.next()).done)&&(n.push(u.value),!(t&&n.length===t));r=!0);}catch(d){i=!0,s=d}finally{try{!r&&l.return!=null&&l.return()}finally{if(i)throw s}}return n}}function RQ(e){if(Array.isArray(e))return e}function EL(e){var t=fu(e,2),n=t[0],r=t[1],i=n,s=r;return n>r&&(i=r,s=n),[i,s]}function _L(e,t,n){if(e.lte(0))return new st(0);var r=Xp.getDigitCount(e.toNumber()),i=new st(10).pow(r),s=e.div(i),l=r!==1?.05:.1,u=new st(Math.ceil(s.div(l).toNumber())).add(n).mul(l),d=u.mul(i);return t?d:new st(Math.ceil(d))}function kQ(e,t,n){var r=1,i=new st(e);if(!i.isint()&&n){var s=Math.abs(e);s<1?(r=new st(10).pow(Xp.getDigitCount(e)-1),i=new st(Math.floor(i.div(r).toNumber())).mul(r)):s>1&&(i=new st(Math.floor(e)))}else e===0?i=new st(Math.floor((t-1)/2)):n||(i=new st(Math.floor(e)));var l=Math.floor((t-1)/2),u=AQ(wQ(function(d){return i.add(new st(d-l).mul(r)).toNumber()}),Z1);return u(0,t)}function PL(e,t,n,r){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((t-e)/(n-1)))return{step:new st(0),tickMin:new st(0),tickMax:new st(0)};var s=_L(new st(t).sub(e).div(n-1),r,i),l;e<=0&&t>=0?l=new st(0):(l=new st(e).add(t).div(2),l=l.sub(new st(l).mod(s)));var u=Math.ceil(l.sub(e).div(s).toNumber()),d=Math.ceil(new st(t).sub(l).div(s).toNumber()),f=u+d+1;return f>n?PL(e,t,n,r,i+1):(f<n&&(d=t>0?d+(n-f):d,u=t>0?u:u+(n-f)),{step:s,tickMin:l.sub(new st(u).mul(s)),tickMax:l.add(new st(d).mul(s))})}function LQ(e){var t=fu(e,2),n=t[0],r=t[1],i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,l=Math.max(i,2),u=EL([n,r]),d=fu(u,2),f=d[0],p=d[1];if(f===-1/0||p===1/0){var m=p===1/0?[f].concat(J1(Z1(0,i-1).map(function(){return 1/0}))):[].concat(J1(Z1(0,i-1).map(function(){return-1/0})),[p]);return n>r?Q1(m):m}if(f===p)return kQ(f,i,s);var v=PL(f,p,l,s),b=v.step,A=v.tickMin,S=v.tickMax,w=Xp.rangeStep(A,S.add(new st(.1).mul(b)),b);return n>r?Q1(w):w}function zQ(e,t){var n=fu(e,2),r=n[0],i=n[1],s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,l=EL([r,i]),u=fu(l,2),d=u[0],f=u[1];if(d===-1/0||f===1/0)return[r,i];if(d===f)return[d];var p=Math.max(t,2),m=_L(new st(f).sub(d).div(p-1),s,0),v=[].concat(J1(Xp.rangeStep(new st(d),new st(f).sub(new st(.99).mul(m)),m)),[f]);return r>i?Q1(v):v}var $Q=TL(LQ),BQ=TL(zQ),IQ="Invariant failed";function vo(e,t){throw new Error(IQ)}var qQ=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function Gs(e){"@babel/helpers - typeof";return Gs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Gs(e)}function Mh(){return Mh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Mh.apply(this,arguments)}function VQ(e,t){return GQ(e)||FQ(e,t)||HQ(e,t)||UQ()}function UQ(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function HQ(e,t){if(e){if(typeof e=="string")return VM(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return VM(e,t)}}function VM(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function FQ(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,l,u=[],d=!0,f=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(d=(r=s.call(n)).done)&&(u.push(r.value),u.length!==t);d=!0);}catch(p){f=!0,i=p}finally{try{if(!d&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(f)throw i}}return u}}function GQ(e){if(Array.isArray(e))return e}function KQ(e,t){if(e==null)return{};var n=XQ(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function XQ(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function YQ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function WQ(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,DL(r.key),r)}}function ZQ(e,t,n){return t&&WQ(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function QQ(e,t,n){return t=Dh(t),JQ(e,NL()?Reflect.construct(t,n||[],Dh(e).constructor):t.apply(e,n))}function JQ(e,t){if(t&&(Gs(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return eJ(e)}function eJ(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function NL(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(NL=function(){return!!e})()}function Dh(e){return Dh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Dh(e)}function tJ(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&tS(e,t)}function tS(e,t){return tS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},tS(e,t)}function ML(e,t,n){return t=DL(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function DL(e){var t=nJ(e,"string");return Gs(t)=="symbol"?t:t+""}function nJ(e,t){if(Gs(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Gs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Qu=(function(e){function t(){return YQ(this,t),QQ(this,t,arguments)}return tJ(t,e),ZQ(t,[{key:"render",value:function(){var r=this.props,i=r.offset,s=r.layout,l=r.width,u=r.dataKey,d=r.data,f=r.dataPointFormatter,p=r.xAxis,m=r.yAxis,v=KQ(r,qQ),b=Ae(v,!1);this.props.direction==="x"&&p.type!=="number"&&vo();var A=d.map(function(S){var w=f(S,u),O=w.x,_=w.y,T=w.value,M=w.errorVal;if(!M)return null;var j=[],P,N;if(Array.isArray(M)){var D=VQ(M,2);P=D[0],N=D[1]}else P=N=M;if(s==="vertical"){var k=p.scale,U=_+i,$=U+l,H=U-l,X=k(T-P),J=k(T+N);j.push({x1:J,y1:$,x2:J,y2:H}),j.push({x1:X,y1:U,x2:J,y2:U}),j.push({x1:X,y1:$,x2:X,y2:H})}else if(s==="horizontal"){var Z=m.scale,L=O+i,V=L-l,F=L+l,ie=Z(T-P),ue=Z(T+N);j.push({x1:V,y1:ue,x2:F,y2:ue}),j.push({x1:L,y1:ie,x2:L,y2:ue}),j.push({x1:V,y1:ie,x2:F,y2:ie})}return B.createElement(Ke,Mh({className:"recharts-errorBar",key:"bar-".concat(j.map(function(z){return"".concat(z.x1,"-").concat(z.x2,"-").concat(z.y1,"-").concat(z.y2)}))},b),j.map(function(z){return B.createElement("line",Mh({},z,{key:"line-".concat(z.x1,"-").concat(z.x2,"-").concat(z.y1,"-").concat(z.y2)}))}))});return B.createElement(Ke,{className:"recharts-errorBars"},A)}}])})(B.Component);ML(Qu,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});ML(Qu,"displayName","ErrorBar");function hu(e){"@babel/helpers - typeof";return hu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},hu(e)}function UM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Hi(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?UM(Object(n),!0).forEach(function(r){rJ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):UM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function rJ(e,t,n){return t=aJ(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function aJ(e){var t=iJ(e,"string");return hu(t)=="symbol"?t:t+""}function iJ(e,t){if(hu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(hu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var RL=function(t){var n=t.children,r=t.formattedGraphicalItems,i=t.legendWidth,s=t.legendContent,l=Bn(n,io);if(!l)return null;var u=io.defaultProps,d=u!==void 0?Hi(Hi({},u),l.props):{},f;return l.props&&l.props.payload?f=l.props&&l.props.payload:s==="children"?f=(r||[]).reduce(function(p,m){var v=m.item,b=m.props,A=b.sectors||b.data||[];return p.concat(A.map(function(S){return{type:l.props.iconType||v.props.legendType,value:S.name,color:S.fill,payload:S}}))},[]):f=(r||[]).map(function(p){var m=p.item,v=m.type.defaultProps,b=v!==void 0?Hi(Hi({},v),m.props):{},A=b.dataKey,S=b.name,w=b.legendType,O=b.hide;return{inactive:O,dataKey:A,type:d.iconType||w||"square",color:CA(m),value:S||A,payload:b}}),Hi(Hi(Hi({},d),io.getWithHeight(l,i)),{},{payload:f,item:l})};function pu(e){"@babel/helpers - typeof";return pu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pu(e)}function HM(e){return cJ(e)||lJ(e)||sJ(e)||oJ()}function oJ(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function sJ(e,t){if(e){if(typeof e=="string")return nS(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return nS(e,t)}}function lJ(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function cJ(e){if(Array.isArray(e))return nS(e)}function nS(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function FM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ct(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?FM(Object(n),!0).forEach(function(r){Rs(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):FM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Rs(e,t,n){return t=uJ(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function uJ(e){var t=dJ(e,"string");return pu(t)=="symbol"?t:t+""}function dJ(e,t){if(pu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(pu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ht(e,t,n){return Ne(e)||Ne(t)?n:Ft(t)?Un(e,t,n):_e(t)?t(e):n}function qc(e,t,n,r){var i=cQ(e,function(u){return Ht(u,t)});if(n==="number"){var s=i.filter(function(u){return de(u)||parseFloat(u)});return s.length?[Gp(s),Fp(s)]:[1/0,-1/0]}var l=r?i.filter(function(u){return!Ne(u)}):i;return l.map(function(u){return Ft(u)||u instanceof Date?u:""})}var fJ=function(t){var n,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],i=arguments.length>2?arguments[2]:void 0,s=arguments.length>3?arguments[3]:void 0,l=-1,u=(n=r?.length)!==null&&n!==void 0?n:0;if(u<=1)return 0;if(s&&s.axisType==="angleAxis"&&Math.abs(Math.abs(s.range[1]-s.range[0])-360)<=1e-6)for(var d=s.range,f=0;f<u;f++){var p=f>0?i[f-1].coordinate:i[u-1].coordinate,m=i[f].coordinate,v=f>=u-1?i[0].coordinate:i[f+1].coordinate,b=void 0;if(pn(m-p)!==pn(v-m)){var A=[];if(pn(v-m)===pn(d[1]-d[0])){b=v;var S=m+d[1]-d[0];A[0]=Math.min(S,(S+p)/2),A[1]=Math.max(S,(S+p)/2)}else{b=p;var w=v+d[1]-d[0];A[0]=Math.min(m,(w+m)/2),A[1]=Math.max(m,(w+m)/2)}var O=[Math.min(m,(b+m)/2),Math.max(m,(b+m)/2)];if(t>O[0]&&t<=O[1]||t>=A[0]&&t<=A[1]){l=i[f].index;break}}else{var _=Math.min(p,v),T=Math.max(p,v);if(t>(_+m)/2&&t<=(T+m)/2){l=i[f].index;break}}}else for(var M=0;M<u;M++)if(M===0&&t<=(r[M].coordinate+r[M+1].coordinate)/2||M>0&&M<u-1&&t>(r[M].coordinate+r[M-1].coordinate)/2&&t<=(r[M].coordinate+r[M+1].coordinate)/2||M===u-1&&t>(r[M].coordinate+r[M-1].coordinate)/2){l=r[M].index;break}return l},CA=function(t){var n,r=t,i=r.type.displayName,s=(n=t.type)!==null&&n!==void 0&&n.defaultProps?Ct(Ct({},t.type.defaultProps),t.props):t.props,l=s.stroke,u=s.fill,d;switch(i){case"Line":d=l;break;case"Area":case"Radar":d=l&&l!=="none"?l:u;break;default:d=u;break}return d},hJ=function(t){var n=t.barSize,r=t.totalSize,i=t.stackGroups,s=i===void 0?{}:i;if(!s)return{};for(var l={},u=Object.keys(s),d=0,f=u.length;d<f;d++)for(var p=s[u[d]].stackGroups,m=Object.keys(p),v=0,b=m.length;v<b;v++){var A=p[m[v]],S=A.items,w=A.cateAxisId,O=S.filter(function(N){return xa(N.type).indexOf("Bar")>=0});if(O&&O.length){var _=O[0].type.defaultProps,T=_!==void 0?Ct(Ct({},_),O[0].props):O[0].props,M=T.barSize,j=T[w];l[j]||(l[j]=[]);var P=Ne(M)?n:M;l[j].push({item:O[0],stackList:O.slice(1),barSize:Ne(P)?void 0:mn(P,r,0)})}}return l},pJ=function(t){var n=t.barGap,r=t.barCategoryGap,i=t.bandSize,s=t.sizeList,l=s===void 0?[]:s,u=t.maxBarSize,d=l.length;if(d<1)return null;var f=mn(n,i,0,!0),p,m=[];if(l[0].barSize===+l[0].barSize){var v=!1,b=i/d,A=l.reduce(function(M,j){return M+j.barSize||0},0);A+=(d-1)*f,A>=i&&(A-=(d-1)*f,f=0),A>=i&&b>0&&(v=!0,b*=.9,A=d*b);var S=(i-A)/2>>0,w={offset:S-f,size:0};p=l.reduce(function(M,j){var P={item:j.item,position:{offset:w.offset+w.size+f,size:v?b:j.barSize}},N=[].concat(HM(M),[P]);return w=N[N.length-1].position,j.stackList&&j.stackList.length&&j.stackList.forEach(function(D){N.push({item:D,position:w})}),N},m)}else{var O=mn(r,i,0,!0);i-2*O-(d-1)*f<=0&&(f=0);var _=(i-2*O-(d-1)*f)/d;_>1&&(_>>=0);var T=u===+u?Math.min(_,u):_;p=l.reduce(function(M,j,P){var N=[].concat(HM(M),[{item:j.item,position:{offset:O+(_+f)*P+(_-T)/2,size:T}}]);return j.stackList&&j.stackList.length&&j.stackList.forEach(function(D){N.push({item:D,position:N[N.length-1].position})}),N},m)}return p},mJ=function(t,n,r,i){var s=r.children,l=r.width,u=r.margin,d=l-(u.left||0)-(u.right||0),f=RL({children:s,legendWidth:d});if(f){var p=i||{},m=p.width,v=p.height,b=f.align,A=f.verticalAlign,S=f.layout;if((S==="vertical"||S==="horizontal"&&A==="middle")&&b!=="center"&&de(t[b]))return Ct(Ct({},t),{},Rs({},b,t[b]+(m||0)));if((S==="horizontal"||S==="vertical"&&b==="center")&&A!=="middle"&&de(t[A]))return Ct(Ct({},t),{},Rs({},A,t[A]+(v||0)))}return t},gJ=function(t,n,r){return Ne(n)?!0:t==="horizontal"?n==="yAxis":t==="vertical"||r==="x"?n==="xAxis":r==="y"?n==="yAxis":!0},kL=function(t,n,r,i,s){var l=n.props.children,u=Hn(l,Qu).filter(function(f){return gJ(i,s,f.props.direction)});if(u&&u.length){var d=u.map(function(f){return f.props.dataKey});return t.reduce(function(f,p){var m=Ht(p,r);if(Ne(m))return f;var v=Array.isArray(m)?[Gp(m),Fp(m)]:[m,m],b=d.reduce(function(A,S){var w=Ht(p,S,0),O=v[0]-Math.abs(Array.isArray(w)?w[0]:w),_=v[1]+Math.abs(Array.isArray(w)?w[1]:w);return[Math.min(O,A[0]),Math.max(_,A[1])]},[1/0,-1/0]);return[Math.min(b[0],f[0]),Math.max(b[1],f[1])]},[1/0,-1/0])}return null},vJ=function(t,n,r,i,s){var l=n.map(function(u){return kL(t,u,r,s,i)}).filter(function(u){return!Ne(u)});return l&&l.length?l.reduce(function(u,d){return[Math.min(u[0],d[0]),Math.max(u[1],d[1])]},[1/0,-1/0]):null},LL=function(t,n,r,i,s){var l=n.map(function(d){var f=d.props.dataKey;return r==="number"&&f&&kL(t,d,f,i)||qc(t,f,r,s)});if(r==="number")return l.reduce(function(d,f){return[Math.min(d[0],f[0]),Math.max(d[1],f[1])]},[1/0,-1/0]);var u={};return l.reduce(function(d,f){for(var p=0,m=f.length;p<m;p++)u[f[p]]||(u[f[p]]=!0,d.push(f[p]));return d},[])},zL=function(t,n){return t==="horizontal"&&n==="xAxis"||t==="vertical"&&n==="yAxis"||t==="centric"&&n==="angleAxis"||t==="radial"&&n==="radiusAxis"},$L=function(t,n,r,i){if(i)return t.map(function(d){return d.coordinate});var s,l,u=t.map(function(d){return d.coordinate===n&&(s=!0),d.coordinate===r&&(l=!0),d.coordinate});return s||u.push(n),l||u.push(r),u},ba=function(t,n,r){if(!t)return null;var i=t.scale,s=t.duplicateDomain,l=t.type,u=t.range,d=t.realScaleType==="scaleBand"?i.bandwidth()/2:2,f=(n||r)&&l==="category"&&i.bandwidth?i.bandwidth()/d:0;if(f=t.axisType==="angleAxis"&&u?.length>=2?pn(u[0]-u[1])*2*f:f,n&&(t.ticks||t.niceTicks)){var p=(t.ticks||t.niceTicks).map(function(m){var v=s?s.indexOf(m):m;return{coordinate:i(v)+f,value:m,offset:f}});return p.filter(function(m){return!Fu(m.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(m,v){return{coordinate:i(m)+f,value:m,index:v,offset:f}}):i.ticks&&!r?i.ticks(t.tickCount).map(function(m){return{coordinate:i(m)+f,value:m,offset:f}}):i.domain().map(function(m,v){return{coordinate:i(m)+f,value:s?s[m]:m,index:v,offset:f}})},p0=new WeakMap,If=function(t,n){if(typeof n!="function")return t;p0.has(t)||p0.set(t,new WeakMap);var r=p0.get(t);if(r.has(n))return r.get(n);var i=function(){t.apply(void 0,arguments),n.apply(void 0,arguments)};return r.set(n,i),i},BL=function(t,n,r){var i=t.scale,s=t.type,l=t.layout,u=t.axisType;if(i==="auto")return l==="radial"&&u==="radiusAxis"?{scale:ou(),realScaleType:"band"}:l==="radial"&&u==="angleAxis"?{scale:Ch(),realScaleType:"linear"}:s==="category"&&n&&(n.indexOf("LineChart")>=0||n.indexOf("AreaChart")>=0||n.indexOf("ComposedChart")>=0&&!r)?{scale:Ic(),realScaleType:"point"}:s==="category"?{scale:ou(),realScaleType:"band"}:{scale:Ch(),realScaleType:"linear"};if(ho(i)){var d="scale".concat(Pp(i));return{scale:(PM[d]||Ic)(),realScaleType:PM[d]?d:"point"}}return _e(i)?{scale:i}:{scale:Ic(),realScaleType:"point"}},GM=1e-4,IL=function(t){var n=t.domain();if(!(!n||n.length<=2)){var r=n.length,i=t.range(),s=Math.min(i[0],i[1])-GM,l=Math.max(i[0],i[1])+GM,u=t(n[0]),d=t(n[r-1]);(u<s||u>l||d<s||d>l)&&t.domain([n[0],n[r-1]])}},yJ=function(t,n){if(!t)return null;for(var r=0,i=t.length;r<i;r++)if(t[r].item===n)return t[r].position;return null},bJ=function(t,n){if(!n||n.length!==2||!de(n[0])||!de(n[1]))return t;var r=Math.min(n[0],n[1]),i=Math.max(n[0],n[1]),s=[t[0],t[1]];return(!de(t[0])||t[0]<r)&&(s[0]=r),(!de(t[1])||t[1]>i)&&(s[1]=i),s[0]>i&&(s[0]=i),s[1]<r&&(s[1]=r),s},xJ=function(t){var n=t.length;if(!(n<=0))for(var r=0,i=t[0].length;r<i;++r)for(var s=0,l=0,u=0;u<n;++u){var d=Fu(t[u][r][1])?t[u][r][0]:t[u][r][1];d>=0?(t[u][r][0]=s,t[u][r][1]=s+d,s=t[u][r][1]):(t[u][r][0]=l,t[u][r][1]=l+d,l=t[u][r][1])}},SJ=function(t){var n=t.length;if(!(n<=0))for(var r=0,i=t[0].length;r<i;++r)for(var s=0,l=0;l<n;++l){var u=Fu(t[l][r][1])?t[l][r][0]:t[l][r][1];u>=0?(t[l][r][0]=s,t[l][r][1]=s+u,s=t[l][r][1]):(t[l][r][0]=0,t[l][r][1]=0)}},wJ={sign:xJ,expand:cG,none:$s,silhouette:uG,wiggle:dG,positive:SJ},AJ=function(t,n,r){var i=n.map(function(u){return u.props.dataKey}),s=wJ[r],l=lG().keys(i).value(function(u,d){return+Ht(u,d,0)}).order(M1).offset(s);return l(t)},OJ=function(t,n,r,i,s,l){if(!t)return null;var u=l?n.reverse():n,d={},f=u.reduce(function(m,v){var b,A=(b=v.type)!==null&&b!==void 0&&b.defaultProps?Ct(Ct({},v.type.defaultProps),v.props):v.props,S=A.stackId,w=A.hide;if(w)return m;var O=A[r],_=m[O]||{hasStack:!1,stackGroups:{}};if(Ft(S)){var T=_.stackGroups[S]||{numericAxisId:r,cateAxisId:i,items:[]};T.items.push(v),_.hasStack=!0,_.stackGroups[S]=T}else _.stackGroups[yl("_stackId_")]={numericAxisId:r,cateAxisId:i,items:[v]};return Ct(Ct({},m),{},Rs({},O,_))},d),p={};return Object.keys(f).reduce(function(m,v){var b=f[v];if(b.hasStack){var A={};b.stackGroups=Object.keys(b.stackGroups).reduce(function(S,w){var O=b.stackGroups[w];return Ct(Ct({},S),{},Rs({},w,{numericAxisId:r,cateAxisId:i,items:O.items,stackedData:AJ(t,O.items,s)}))},A)}return Ct(Ct({},m),{},Rs({},v,b))},p)},qL=function(t,n){var r=n.realScaleType,i=n.type,s=n.tickCount,l=n.originalDomain,u=n.allowDecimals,d=r||n.scale;if(d!=="auto"&&d!=="linear")return null;if(s&&i==="number"&&l&&(l[0]==="auto"||l[1]==="auto")){var f=t.domain();if(!f.length)return null;var p=$Q(f,s,u);return t.domain([Gp(p),Fp(p)]),{niceTicks:p}}if(s&&i==="number"){var m=t.domain(),v=BQ(m,s,u);return{niceTicks:v}}return null};function KM(e){var t=e.axis,n=e.ticks,r=e.bandSize,i=e.entry,s=e.index,l=e.dataKey;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!Ne(i[t.dataKey])){var u=ch(n,"value",i[t.dataKey]);if(u)return u.coordinate+r/2}return n[s]?n[s].coordinate+r/2:null}var d=Ht(i,Ne(l)?t.dataKey:l);return Ne(d)?null:t.scale(d)}var XM=function(t){var n=t.axis,r=t.ticks,i=t.offset,s=t.bandSize,l=t.entry,u=t.index;if(n.type==="category")return r[u]?r[u].coordinate+i:null;var d=Ht(l,n.dataKey,n.domain[u]);return Ne(d)?null:n.scale(d)-s/2+i},jJ=function(t){var n=t.numericAxis,r=n.scale.domain();if(n.type==="number"){var i=Math.min(r[0],r[1]),s=Math.max(r[0],r[1]);return i<=0&&s>=0?0:s<0?s:i}return r[0]},TJ=function(t,n){var r,i=(r=t.type)!==null&&r!==void 0&&r.defaultProps?Ct(Ct({},t.type.defaultProps),t.props):t.props,s=i.stackId;if(Ft(s)){var l=n[s];if(l){var u=l.items.indexOf(t);return u>=0?l.stackedData[u]:null}}return null},CJ=function(t){return t.reduce(function(n,r){return[Gp(r.concat([n[0]]).filter(de)),Fp(r.concat([n[1]]).filter(de))]},[1/0,-1/0])},VL=function(t,n,r){return Object.keys(t).reduce(function(i,s){var l=t[s],u=l.stackedData,d=u.reduce(function(f,p){var m=CJ(p.slice(n,r+1));return[Math.min(f[0],m[0]),Math.max(f[1],m[1])]},[1/0,-1/0]);return[Math.min(d[0],i[0]),Math.max(d[1],i[1])]},[1/0,-1/0]).map(function(i){return i===1/0||i===-1/0?0:i})},YM=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,WM=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,rS=function(t,n,r){if(_e(t))return t(n,r);if(!Array.isArray(t))return n;var i=[];if(de(t[0]))i[0]=r?t[0]:Math.min(t[0],n[0]);else if(YM.test(t[0])){var s=+YM.exec(t[0])[1];i[0]=n[0]-s}else _e(t[0])?i[0]=t[0](n[0]):i[0]=n[0];if(de(t[1]))i[1]=r?t[1]:Math.max(t[1],n[1]);else if(WM.test(t[1])){var l=+WM.exec(t[1])[1];i[1]=n[1]+l}else _e(t[1])?i[1]=t[1](n[1]):i[1]=n[1];return i},Rh=function(t,n,r){if(t&&t.scale&&t.scale.bandwidth){var i=t.scale.bandwidth();if(!r||i>0)return i}if(t&&n&&n.length>=2){for(var s=tA(n,function(m){return m.coordinate}),l=1/0,u=1,d=s.length;u<d;u++){var f=s[u],p=s[u-1];l=Math.min((f.coordinate||0)-(p.coordinate||0),l)}return l===1/0?0:l}return r?void 0:0},ZM=function(t,n,r){return!t||!t.length||Zu(t,Un(r,"type.defaultProps.domain"))?n:t},UL=function(t,n){var r=t.type.defaultProps?Ct(Ct({},t.type.defaultProps),t.props):t.props,i=r.dataKey,s=r.name,l=r.unit,u=r.formatter,d=r.tooltipType,f=r.chartType,p=r.hide;return Ct(Ct({},Ae(t,!1)),{},{dataKey:i,unit:l,formatter:u,name:s||i,color:CA(t),value:Ht(n,i),type:d,payload:n,chartType:f,hide:p})};function mu(e){"@babel/helpers - typeof";return mu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},mu(e)}function QM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ga(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?QM(Object(n),!0).forEach(function(r){HL(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):QM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function HL(e,t,n){return t=EJ(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function EJ(e){var t=_J(e,"string");return mu(t)=="symbol"?t:t+""}function _J(e,t){if(mu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(mu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function PJ(e,t){return RJ(e)||DJ(e,t)||MJ(e,t)||NJ()}function NJ(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function MJ(e,t){if(e){if(typeof e=="string")return JM(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return JM(e,t)}}function JM(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function DJ(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,l,u=[],d=!0,f=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(d=(r=s.call(n)).done)&&(u.push(r.value),u.length!==t);d=!0);}catch(p){f=!0,i=p}finally{try{if(!d&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(f)throw i}}return u}}function RJ(e){if(Array.isArray(e))return e}var kh=Math.PI/180,kJ=function(t){return t*180/Math.PI},ft=function(t,n,r,i){return{x:t+Math.cos(-kh*i)*r,y:n+Math.sin(-kh*i)*r}},FL=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(t-(r.left||0)-(r.right||0)),Math.abs(n-(r.top||0)-(r.bottom||0)))/2},LJ=function(t,n,r,i,s){var l=t.width,u=t.height,d=t.startAngle,f=t.endAngle,p=mn(t.cx,l,l/2),m=mn(t.cy,u,u/2),v=FL(l,u,r),b=mn(t.innerRadius,v,0),A=mn(t.outerRadius,v,v*.8),S=Object.keys(n);return S.reduce(function(w,O){var _=n[O],T=_.domain,M=_.reversed,j;if(Ne(_.range))i==="angleAxis"?j=[d,f]:i==="radiusAxis"&&(j=[b,A]),M&&(j=[j[1],j[0]]);else{j=_.range;var P=j,N=PJ(P,2);d=N[0],f=N[1]}var D=BL(_,s),k=D.realScaleType,U=D.scale;U.domain(T).range(j),IL(U);var $=qL(U,ga(ga({},_),{},{realScaleType:k})),H=ga(ga(ga({},_),$),{},{range:j,radius:A,realScaleType:k,scale:U,cx:p,cy:m,innerRadius:b,outerRadius:A,startAngle:d,endAngle:f});return ga(ga({},w),{},HL({},O,H))},{})},zJ=function(t,n){var r=t.x,i=t.y,s=n.x,l=n.y;return Math.sqrt(Math.pow(r-s,2)+Math.pow(i-l,2))},$J=function(t,n){var r=t.x,i=t.y,s=n.cx,l=n.cy,u=zJ({x:r,y:i},{x:s,y:l});if(u<=0)return{radius:u};var d=(r-s)/u,f=Math.acos(d);return i>l&&(f=2*Math.PI-f),{radius:u,angle:kJ(f),angleInRadian:f}},BJ=function(t){var n=t.startAngle,r=t.endAngle,i=Math.floor(n/360),s=Math.floor(r/360),l=Math.min(i,s);return{startAngle:n-l*360,endAngle:r-l*360}},IJ=function(t,n){var r=n.startAngle,i=n.endAngle,s=Math.floor(r/360),l=Math.floor(i/360),u=Math.min(s,l);return t+u*360},eD=function(t,n){var r=t.x,i=t.y,s=$J({x:r,y:i},n),l=s.radius,u=s.angle,d=n.innerRadius,f=n.outerRadius;if(l<d||l>f)return!1;if(l===0)return!0;var p=BJ(n),m=p.startAngle,v=p.endAngle,b=u,A;if(m<=v){for(;b>v;)b-=360;for(;b<m;)b+=360;A=b>=m&&b<=v}else{for(;b>m;)b-=360;for(;b<v;)b+=360;A=b>=v&&b<=m}return A?ga(ga({},n),{},{radius:l,angle:IJ(b,n)}):null},GL=function(t){return!C.isValidElement(t)&&!_e(t)&&typeof t!="boolean"?t.className:""};function gu(e){"@babel/helpers - typeof";return gu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},gu(e)}var qJ=["offset"];function VJ(e){return GJ(e)||FJ(e)||HJ(e)||UJ()}function UJ(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function HJ(e,t){if(e){if(typeof e=="string")return aS(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return aS(e,t)}}function FJ(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function GJ(e){if(Array.isArray(e))return aS(e)}function aS(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function KJ(e,t){if(e==null)return{};var n=XJ(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function XJ(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function tD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ut(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?tD(Object(n),!0).forEach(function(r){YJ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function YJ(e,t,n){return t=WJ(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function WJ(e){var t=ZJ(e,"string");return gu(t)=="symbol"?t:t+""}function ZJ(e,t){if(gu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(gu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function vu(){return vu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},vu.apply(this,arguments)}var QJ=function(t){var n=t.value,r=t.formatter,i=Ne(t.children)?n:t.children;return _e(r)?r(i):i},JJ=function(t,n){var r=pn(n-t),i=Math.min(Math.abs(n-t),360);return r*i},eee=function(t,n,r){var i=t.position,s=t.viewBox,l=t.offset,u=t.className,d=s,f=d.cx,p=d.cy,m=d.innerRadius,v=d.outerRadius,b=d.startAngle,A=d.endAngle,S=d.clockWise,w=(m+v)/2,O=JJ(b,A),_=O>=0?1:-1,T,M;i==="insideStart"?(T=b+_*l,M=S):i==="insideEnd"?(T=A-_*l,M=!S):i==="end"&&(T=A+_*l,M=S),M=O<=0?M:!M;var j=ft(f,p,w,T),P=ft(f,p,w,T+(M?1:-1)*359),N="M".concat(j.x,",").concat(j.y,`
    A`).concat(w,",").concat(w,",0,1,").concat(M?0:1,`,
    `).concat(P.x,",").concat(P.y),D=Ne(t.id)?yl("recharts-radial-line-"):t.id;return B.createElement("text",vu({},r,{dominantBaseline:"central",className:Me("recharts-radial-bar-label",u)}),B.createElement("defs",null,B.createElement("path",{id:D,d:N})),B.createElement("textPath",{xlinkHref:"#".concat(D)},n))},tee=function(t){var n=t.viewBox,r=t.offset,i=t.position,s=n,l=s.cx,u=s.cy,d=s.innerRadius,f=s.outerRadius,p=s.startAngle,m=s.endAngle,v=(p+m)/2;if(i==="outside"){var b=ft(l,u,f+r,v),A=b.x,S=b.y;return{x:A,y:S,textAnchor:A>=l?"start":"end",verticalAnchor:"middle"}}if(i==="center")return{x:l,y:u,textAnchor:"middle",verticalAnchor:"middle"};if(i==="centerTop")return{x:l,y:u,textAnchor:"middle",verticalAnchor:"start"};if(i==="centerBottom")return{x:l,y:u,textAnchor:"middle",verticalAnchor:"end"};var w=(d+f)/2,O=ft(l,u,w,v),_=O.x,T=O.y;return{x:_,y:T,textAnchor:"middle",verticalAnchor:"middle"}},nee=function(t){var n=t.viewBox,r=t.parentViewBox,i=t.offset,s=t.position,l=n,u=l.x,d=l.y,f=l.width,p=l.height,m=p>=0?1:-1,v=m*i,b=m>0?"end":"start",A=m>0?"start":"end",S=f>=0?1:-1,w=S*i,O=S>0?"end":"start",_=S>0?"start":"end";if(s==="top"){var T={x:u+f/2,y:d-m*i,textAnchor:"middle",verticalAnchor:b};return Ut(Ut({},T),r?{height:Math.max(d-r.y,0),width:f}:{})}if(s==="bottom"){var M={x:u+f/2,y:d+p+v,textAnchor:"middle",verticalAnchor:A};return Ut(Ut({},M),r?{height:Math.max(r.y+r.height-(d+p),0),width:f}:{})}if(s==="left"){var j={x:u-w,y:d+p/2,textAnchor:O,verticalAnchor:"middle"};return Ut(Ut({},j),r?{width:Math.max(j.x-r.x,0),height:p}:{})}if(s==="right"){var P={x:u+f+w,y:d+p/2,textAnchor:_,verticalAnchor:"middle"};return Ut(Ut({},P),r?{width:Math.max(r.x+r.width-P.x,0),height:p}:{})}var N=r?{width:f,height:p}:{};return s==="insideLeft"?Ut({x:u+w,y:d+p/2,textAnchor:_,verticalAnchor:"middle"},N):s==="insideRight"?Ut({x:u+f-w,y:d+p/2,textAnchor:O,verticalAnchor:"middle"},N):s==="insideTop"?Ut({x:u+f/2,y:d+v,textAnchor:"middle",verticalAnchor:A},N):s==="insideBottom"?Ut({x:u+f/2,y:d+p-v,textAnchor:"middle",verticalAnchor:b},N):s==="insideTopLeft"?Ut({x:u+w,y:d+v,textAnchor:_,verticalAnchor:A},N):s==="insideTopRight"?Ut({x:u+f-w,y:d+v,textAnchor:O,verticalAnchor:A},N):s==="insideBottomLeft"?Ut({x:u+w,y:d+p-v,textAnchor:_,verticalAnchor:b},N):s==="insideBottomRight"?Ut({x:u+f-w,y:d+p-v,textAnchor:O,verticalAnchor:b},N):vl(s)&&(de(s.x)||Ji(s.x))&&(de(s.y)||Ji(s.y))?Ut({x:u+mn(s.x,f),y:d+mn(s.y,p),textAnchor:"end",verticalAnchor:"end"},N):Ut({x:u+f/2,y:d+p/2,textAnchor:"middle",verticalAnchor:"middle"},N)},ree=function(t){return"cx"in t&&de(t.cx)};function Zt(e){var t=e.offset,n=t===void 0?5:t,r=KJ(e,qJ),i=Ut({offset:n},r),s=i.viewBox,l=i.position,u=i.value,d=i.children,f=i.content,p=i.className,m=p===void 0?"":p,v=i.textBreakAll;if(!s||Ne(u)&&Ne(d)&&!C.isValidElement(f)&&!_e(f))return null;if(C.isValidElement(f))return C.cloneElement(f,i);var b;if(_e(f)){if(b=C.createElement(f,i),C.isValidElement(b))return b}else b=QJ(i);var A=ree(s),S=Ae(i,!0);if(A&&(l==="insideStart"||l==="insideEnd"||l==="end"))return eee(i,b,S);var w=A?tee(i):nee(i);return B.createElement(mo,vu({className:Me("recharts-label",m)},S,w,{breakAll:v}),b)}Zt.displayName="Label";var KL=function(t){var n=t.cx,r=t.cy,i=t.angle,s=t.startAngle,l=t.endAngle,u=t.r,d=t.radius,f=t.innerRadius,p=t.outerRadius,m=t.x,v=t.y,b=t.top,A=t.left,S=t.width,w=t.height,O=t.clockWise,_=t.labelViewBox;if(_)return _;if(de(S)&&de(w)){if(de(m)&&de(v))return{x:m,y:v,width:S,height:w};if(de(b)&&de(A))return{x:b,y:A,width:S,height:w}}return de(m)&&de(v)?{x:m,y:v,width:0,height:0}:de(n)&&de(r)?{cx:n,cy:r,startAngle:s||i||0,endAngle:l||i||0,innerRadius:f||0,outerRadius:p||d||u||0,clockWise:O}:t.viewBox?t.viewBox:{}},aee=function(t,n){return t?t===!0?B.createElement(Zt,{key:"label-implicit",viewBox:n}):Ft(t)?B.createElement(Zt,{key:"label-implicit",viewBox:n,value:t}):C.isValidElement(t)?t.type===Zt?C.cloneElement(t,{key:"label-implicit",viewBox:n}):B.createElement(Zt,{key:"label-implicit",content:t,viewBox:n}):_e(t)?B.createElement(Zt,{key:"label-implicit",content:t,viewBox:n}):vl(t)?B.createElement(Zt,vu({viewBox:n},t,{key:"label-implicit"})):null:null},iee=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!t||!t.children&&r&&!t.label)return null;var i=t.children,s=KL(t),l=Hn(i,Zt).map(function(d,f){return C.cloneElement(d,{viewBox:n||s,key:"label-".concat(f)})});if(!r)return l;var u=aee(t.label,n||s);return[u].concat(VJ(l))};Zt.parseViewBox=KL;Zt.renderCallByParent=iee;var m0,nD;function oee(){if(nD)return m0;nD=1;function e(t){var n=t==null?0:t.length;return n?t[n-1]:void 0}return m0=e,m0}var see=oee();const lee=tt(see);function yu(e){"@babel/helpers - typeof";return yu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},yu(e)}var cee=["valueAccessor"],uee=["data","dataKey","clockWise","id","textBreakAll"];function dee(e){return mee(e)||pee(e)||hee(e)||fee()}function fee(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function hee(e,t){if(e){if(typeof e=="string")return iS(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return iS(e,t)}}function pee(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function mee(e){if(Array.isArray(e))return iS(e)}function iS(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Lh(){return Lh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Lh.apply(this,arguments)}function rD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function aD(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?rD(Object(n),!0).forEach(function(r){gee(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function gee(e,t,n){return t=vee(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vee(e){var t=yee(e,"string");return yu(t)=="symbol"?t:t+""}function yee(e,t){if(yu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(yu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function iD(e,t){if(e==null)return{};var n=bee(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function bee(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var xee=function(t){return Array.isArray(t.value)?lee(t.value):t.value};function wa(e){var t=e.valueAccessor,n=t===void 0?xee:t,r=iD(e,cee),i=r.data,s=r.dataKey,l=r.clockWise,u=r.id,d=r.textBreakAll,f=iD(r,uee);return!i||!i.length?null:B.createElement(Ke,{className:"recharts-label-list"},i.map(function(p,m){var v=Ne(s)?n(p,m):Ht(p&&p.payload,s),b=Ne(u)?{}:{id:"".concat(u,"-").concat(m)};return B.createElement(Zt,Lh({},Ae(p,!0),f,b,{parentViewBox:p.parentViewBox,value:v,textBreakAll:d,viewBox:Zt.parseViewBox(Ne(l)?p:aD(aD({},p),{},{clockWise:l})),key:"label-".concat(m),index:m}))}))}wa.displayName="LabelList";function See(e,t){return e?e===!0?B.createElement(wa,{key:"labelList-implicit",data:t}):B.isValidElement(e)||_e(e)?B.createElement(wa,{key:"labelList-implicit",data:t,content:e}):vl(e)?B.createElement(wa,Lh({data:t},e,{key:"labelList-implicit"})):null:null}function wee(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&n&&!e.label)return null;var r=e.children,i=Hn(r,wa).map(function(l,u){return C.cloneElement(l,{data:t,key:"labelList-".concat(u)})});if(!n)return i;var s=See(e.label,t);return[s].concat(dee(i))}wa.renderCallByParent=wee;function bu(e){"@babel/helpers - typeof";return bu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},bu(e)}function oS(){return oS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},oS.apply(this,arguments)}function oD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function sD(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?oD(Object(n),!0).forEach(function(r){Aee(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Aee(e,t,n){return t=Oee(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Oee(e){var t=jee(e,"string");return bu(t)=="symbol"?t:t+""}function jee(e,t){if(bu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(bu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Tee=function(t,n){var r=pn(n-t),i=Math.min(Math.abs(n-t),359.999);return r*i},qf=function(t){var n=t.cx,r=t.cy,i=t.radius,s=t.angle,l=t.sign,u=t.isExternal,d=t.cornerRadius,f=t.cornerIsExternal,p=d*(u?1:-1)+i,m=Math.asin(d/p)/kh,v=f?s:s+l*m,b=ft(n,r,p,v),A=ft(n,r,i,v),S=f?s-l*m:s,w=ft(n,r,p*Math.cos(m*kh),S);return{center:b,circleTangency:A,lineTangency:w,theta:m}},XL=function(t){var n=t.cx,r=t.cy,i=t.innerRadius,s=t.outerRadius,l=t.startAngle,u=t.endAngle,d=Tee(l,u),f=l+d,p=ft(n,r,s,l),m=ft(n,r,s,f),v="M ".concat(p.x,",").concat(p.y,`
    A `).concat(s,",").concat(s,`,0,
    `).concat(+(Math.abs(d)>180),",").concat(+(l>f),`,
    `).concat(m.x,",").concat(m.y,`
  `);if(i>0){var b=ft(n,r,i,l),A=ft(n,r,i,f);v+="L ".concat(A.x,",").concat(A.y,`
            A `).concat(i,",").concat(i,`,0,
            `).concat(+(Math.abs(d)>180),",").concat(+(l<=f),`,
            `).concat(b.x,",").concat(b.y," Z")}else v+="L ".concat(n,",").concat(r," Z");return v},Cee=function(t){var n=t.cx,r=t.cy,i=t.innerRadius,s=t.outerRadius,l=t.cornerRadius,u=t.forceCornerRadius,d=t.cornerIsExternal,f=t.startAngle,p=t.endAngle,m=pn(p-f),v=qf({cx:n,cy:r,radius:s,angle:f,sign:m,cornerRadius:l,cornerIsExternal:d}),b=v.circleTangency,A=v.lineTangency,S=v.theta,w=qf({cx:n,cy:r,radius:s,angle:p,sign:-m,cornerRadius:l,cornerIsExternal:d}),O=w.circleTangency,_=w.lineTangency,T=w.theta,M=d?Math.abs(f-p):Math.abs(f-p)-S-T;if(M<0)return u?"M ".concat(A.x,",").concat(A.y,`
        a`).concat(l,",").concat(l,",0,0,1,").concat(l*2,`,0
        a`).concat(l,",").concat(l,",0,0,1,").concat(-l*2,`,0
      `):XL({cx:n,cy:r,innerRadius:i,outerRadius:s,startAngle:f,endAngle:p});var j="M ".concat(A.x,",").concat(A.y,`
    A`).concat(l,",").concat(l,",0,0,").concat(+(m<0),",").concat(b.x,",").concat(b.y,`
    A`).concat(s,",").concat(s,",0,").concat(+(M>180),",").concat(+(m<0),",").concat(O.x,",").concat(O.y,`
    A`).concat(l,",").concat(l,",0,0,").concat(+(m<0),",").concat(_.x,",").concat(_.y,`
  `);if(i>0){var P=qf({cx:n,cy:r,radius:i,angle:f,sign:m,isExternal:!0,cornerRadius:l,cornerIsExternal:d}),N=P.circleTangency,D=P.lineTangency,k=P.theta,U=qf({cx:n,cy:r,radius:i,angle:p,sign:-m,isExternal:!0,cornerRadius:l,cornerIsExternal:d}),$=U.circleTangency,H=U.lineTangency,X=U.theta,J=d?Math.abs(f-p):Math.abs(f-p)-k-X;if(J<0&&l===0)return"".concat(j,"L").concat(n,",").concat(r,"Z");j+="L".concat(H.x,",").concat(H.y,`
      A`).concat(l,",").concat(l,",0,0,").concat(+(m<0),",").concat($.x,",").concat($.y,`
      A`).concat(i,",").concat(i,",0,").concat(+(J>180),",").concat(+(m>0),",").concat(N.x,",").concat(N.y,`
      A`).concat(l,",").concat(l,",0,0,").concat(+(m<0),",").concat(D.x,",").concat(D.y,"Z")}else j+="L".concat(n,",").concat(r,"Z");return j},Eee={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},YL=function(t){var n=sD(sD({},Eee),t),r=n.cx,i=n.cy,s=n.innerRadius,l=n.outerRadius,u=n.cornerRadius,d=n.forceCornerRadius,f=n.cornerIsExternal,p=n.startAngle,m=n.endAngle,v=n.className;if(l<s||p===m)return null;var b=Me("recharts-sector",v),A=l-s,S=mn(u,A,0,!0),w;return S>0&&Math.abs(p-m)<360?w=Cee({cx:r,cy:i,innerRadius:s,outerRadius:l,cornerRadius:Math.min(S,A/2),forceCornerRadius:d,cornerIsExternal:f,startAngle:p,endAngle:m}):w=XL({cx:r,cy:i,innerRadius:s,outerRadius:l,startAngle:p,endAngle:m}),B.createElement("path",oS({},Ae(n,!0),{className:b,d:w,role:"img"}))};function xu(e){"@babel/helpers - typeof";return xu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xu(e)}function sS(){return sS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},sS.apply(this,arguments)}function lD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function cD(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?lD(Object(n),!0).forEach(function(r){_ee(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function _ee(e,t,n){return t=Pee(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Pee(e){var t=Nee(e,"string");return xu(t)=="symbol"?t:t+""}function Nee(e,t){if(xu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(xu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var uD={curveBasisClosed:ZF,curveBasisOpen:QF,curveBasis:WF,curveBumpX:LF,curveBumpY:zF,curveLinearClosed:JF,curveLinear:Mp,curveMonotoneX:eG,curveMonotoneY:tG,curveNatural:nG,curveStep:rG,curveStepAfter:iG,curveStepBefore:aG},Vf=function(t){return t.x===+t.x&&t.y===+t.y},Ec=function(t){return t.x},_c=function(t){return t.y},Mee=function(t,n){if(_e(t))return t;var r="curve".concat(Pp(t));return(r==="curveMonotone"||r==="curveBump")&&n?uD["".concat(r).concat(n==="vertical"?"Y":"X")]:uD[r]||Mp},Dee=function(t){var n=t.type,r=n===void 0?"linear":n,i=t.points,s=i===void 0?[]:i,l=t.baseLine,u=t.layout,d=t.connectNulls,f=d===void 0?!1:d,p=Mee(r,u),m=f?s.filter(function(S){return Vf(S)}):s,v;if(Array.isArray(l)){var b=f?l.filter(function(S){return Vf(S)}):l,A=m.map(function(S,w){return cD(cD({},S),{},{base:b[w]})});return u==="vertical"?v=Df().y(_c).x1(Ec).x0(function(S){return S.base.x}):v=Df().x(Ec).y1(_c).y0(function(S){return S.base.y}),v.defined(Vf).curve(p),v(A)}return u==="vertical"&&de(l)?v=Df().y(_c).x1(Ec).x0(l):de(l)?v=Df().x(Ec).y1(_c).y0(l):v=K5().x(Ec).y(_c),v.defined(Vf).curve(p),v(m)},zh=function(t){var n=t.className,r=t.points,i=t.path,s=t.pathRef;if((!r||!r.length)&&!i)return null;var l=r&&r.length?Dee(t):i;return C.createElement("path",sS({},Ae(t,!1),uh(t),{className:Me("recharts-curve",n),d:l,ref:s}))},g0={exports:{}},v0,dD;function Ree(){if(dD)return v0;dD=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return v0=e,v0}var y0,fD;function kee(){if(fD)return y0;fD=1;var e=Ree();function t(){}function n(){}return n.resetWarningCache=t,y0=function(){function r(l,u,d,f,p,m){if(m!==e){var v=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw v.name="Invariant Violation",v}}r.isRequired=r;function i(){return r}var s={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return s.PropTypes=s,s},y0}var hD;function Lee(){return hD||(hD=1,g0.exports=kee()()),g0.exports}var zee=Lee();const Je=tt(zee);var $ee=Object.getOwnPropertyNames,Bee=Object.getOwnPropertySymbols,Iee=Object.prototype.hasOwnProperty;function pD(e,t){return function(r,i,s){return e(r,i,s)&&t(r,i,s)}}function Uf(e){return function(n,r,i){if(!n||!r||typeof n!="object"||typeof r!="object")return e(n,r,i);var s=i.cache,l=s.get(n),u=s.get(r);if(l&&u)return l===r&&u===n;s.set(n,r),s.set(r,n);var d=e(n,r,i);return s.delete(n),s.delete(r),d}}function qee(e){return e?.[Symbol.toStringTag]}function mD(e){return $ee(e).concat(Bee(e))}var Vee=Object.hasOwn||(function(e,t){return Iee.call(e,t)});function To(e,t){return e===t||!e&&!t&&e!==e&&t!==t}var Uee="__v",Hee="__o",Fee="_owner",gD=Object.getOwnPropertyDescriptor,vD=Object.keys;function Gee(e,t,n){var r=e.length;if(t.length!==r)return!1;for(;r-- >0;)if(!n.equals(e[r],t[r],r,r,e,t,n))return!1;return!0}function Kee(e,t){return To(e.getTime(),t.getTime())}function Xee(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function Yee(e,t){return e===t}function yD(e,t,n){var r=e.size;if(r!==t.size)return!1;if(!r)return!0;for(var i=new Array(r),s=e.entries(),l,u,d=0;(l=s.next())&&!l.done;){for(var f=t.entries(),p=!1,m=0;(u=f.next())&&!u.done;){if(i[m]){m++;continue}var v=l.value,b=u.value;if(n.equals(v[0],b[0],d,m,e,t,n)&&n.equals(v[1],b[1],v[0],b[0],e,t,n)){p=i[m]=!0;break}m++}if(!p)return!1;d++}return!0}var Wee=To;function Zee(e,t,n){var r=vD(e),i=r.length;if(vD(t).length!==i)return!1;for(;i-- >0;)if(!WL(e,t,n,r[i]))return!1;return!0}function Pc(e,t,n){var r=mD(e),i=r.length;if(mD(t).length!==i)return!1;for(var s,l,u;i-- >0;)if(s=r[i],!WL(e,t,n,s)||(l=gD(e,s),u=gD(t,s),(l||u)&&(!l||!u||l.configurable!==u.configurable||l.enumerable!==u.enumerable||l.writable!==u.writable)))return!1;return!0}function Qee(e,t){return To(e.valueOf(),t.valueOf())}function Jee(e,t){return e.source===t.source&&e.flags===t.flags}function bD(e,t,n){var r=e.size;if(r!==t.size)return!1;if(!r)return!0;for(var i=new Array(r),s=e.values(),l,u;(l=s.next())&&!l.done;){for(var d=t.values(),f=!1,p=0;(u=d.next())&&!u.done;){if(!i[p]&&n.equals(l.value,u.value,l.value,u.value,e,t,n)){f=i[p]=!0;break}p++}if(!f)return!1}return!0}function ete(e,t){var n=e.length;if(t.length!==n)return!1;for(;n-- >0;)if(e[n]!==t[n])return!1;return!0}function tte(e,t){return e.hostname===t.hostname&&e.pathname===t.pathname&&e.protocol===t.protocol&&e.port===t.port&&e.hash===t.hash&&e.username===t.username&&e.password===t.password}function WL(e,t,n,r){return(r===Fee||r===Hee||r===Uee)&&(e.$$typeof||t.$$typeof)?!0:Vee(t,r)&&n.equals(e[r],t[r],r,r,e,t,n)}var nte="[object Arguments]",rte="[object Boolean]",ate="[object Date]",ite="[object Error]",ote="[object Map]",ste="[object Number]",lte="[object Object]",cte="[object RegExp]",ute="[object Set]",dte="[object String]",fte="[object URL]",hte=Array.isArray,xD=typeof ArrayBuffer=="function"&&ArrayBuffer.isView?ArrayBuffer.isView:null,SD=Object.assign,pte=Object.prototype.toString.call.bind(Object.prototype.toString);function mte(e){var t=e.areArraysEqual,n=e.areDatesEqual,r=e.areErrorsEqual,i=e.areFunctionsEqual,s=e.areMapsEqual,l=e.areNumbersEqual,u=e.areObjectsEqual,d=e.arePrimitiveWrappersEqual,f=e.areRegExpsEqual,p=e.areSetsEqual,m=e.areTypedArraysEqual,v=e.areUrlsEqual,b=e.unknownTagComparators;return function(S,w,O){if(S===w)return!0;if(S==null||w==null)return!1;var _=typeof S;if(_!==typeof w)return!1;if(_!=="object")return _==="number"?l(S,w,O):_==="function"?i(S,w,O):!1;var T=S.constructor;if(T!==w.constructor)return!1;if(T===Object)return u(S,w,O);if(hte(S))return t(S,w,O);if(xD!=null&&xD(S))return m(S,w,O);if(T===Date)return n(S,w,O);if(T===RegExp)return f(S,w,O);if(T===Map)return s(S,w,O);if(T===Set)return p(S,w,O);var M=pte(S);if(M===ate)return n(S,w,O);if(M===cte)return f(S,w,O);if(M===ote)return s(S,w,O);if(M===ute)return p(S,w,O);if(M===lte)return typeof S.then!="function"&&typeof w.then!="function"&&u(S,w,O);if(M===fte)return v(S,w,O);if(M===ite)return r(S,w,O);if(M===nte)return u(S,w,O);if(M===rte||M===ste||M===dte)return d(S,w,O);if(b){var j=b[M];if(!j){var P=qee(S);P&&(j=b[P])}if(j)return j(S,w,O)}return!1}}function gte(e){var t=e.circular,n=e.createCustomConfig,r=e.strict,i={areArraysEqual:r?Pc:Gee,areDatesEqual:Kee,areErrorsEqual:Xee,areFunctionsEqual:Yee,areMapsEqual:r?pD(yD,Pc):yD,areNumbersEqual:Wee,areObjectsEqual:r?Pc:Zee,arePrimitiveWrappersEqual:Qee,areRegExpsEqual:Jee,areSetsEqual:r?pD(bD,Pc):bD,areTypedArraysEqual:r?Pc:ete,areUrlsEqual:tte,unknownTagComparators:void 0};if(n&&(i=SD({},i,n(i))),t){var s=Uf(i.areArraysEqual),l=Uf(i.areMapsEqual),u=Uf(i.areObjectsEqual),d=Uf(i.areSetsEqual);i=SD({},i,{areArraysEqual:s,areMapsEqual:l,areObjectsEqual:u,areSetsEqual:d})}return i}function vte(e){return function(t,n,r,i,s,l,u){return e(t,n,u)}}function yte(e){var t=e.circular,n=e.comparator,r=e.createState,i=e.equals,s=e.strict;if(r)return function(d,f){var p=r(),m=p.cache,v=m===void 0?t?new WeakMap:void 0:m,b=p.meta;return n(d,f,{cache:v,equals:i,meta:b,strict:s})};if(t)return function(d,f){return n(d,f,{cache:new WeakMap,equals:i,meta:void 0,strict:s})};var l={cache:void 0,equals:i,meta:void 0,strict:s};return function(d,f){return n(d,f,l)}}var bte=Ai();Ai({strict:!0});Ai({circular:!0});Ai({circular:!0,strict:!0});Ai({createInternalComparator:function(){return To}});Ai({strict:!0,createInternalComparator:function(){return To}});Ai({circular:!0,createInternalComparator:function(){return To}});Ai({circular:!0,createInternalComparator:function(){return To},strict:!0});function Ai(e){e===void 0&&(e={});var t=e.circular,n=t===void 0?!1:t,r=e.createInternalComparator,i=e.createState,s=e.strict,l=s===void 0?!1:s,u=gte(e),d=mte(u),f=r?r(d):vte(d);return yte({circular:n,comparator:d,createState:i,equals:f,strict:l})}function xte(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function wD(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=-1,r=function i(s){n<0&&(n=s),s-n>t?(e(s),n=-1):xte(i)};requestAnimationFrame(r)}function lS(e){"@babel/helpers - typeof";return lS=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},lS(e)}function Ste(e){return jte(e)||Ote(e)||Ate(e)||wte()}function wte(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ate(e,t){if(e){if(typeof e=="string")return AD(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return AD(e,t)}}function AD(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ote(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function jte(e){if(Array.isArray(e))return e}function Tte(){var e={},t=function(){return null},n=!1,r=function i(s){if(!n){if(Array.isArray(s)){if(!s.length)return;var l=s,u=Ste(l),d=u[0],f=u.slice(1);if(typeof d=="number"){wD(i.bind(null,f),d);return}i(d),wD(i.bind(null,f));return}lS(s)==="object"&&(e=s,t(e)),typeof s=="function"&&s()}};return{stop:function(){n=!0},start:function(s){n=!1,r(s)},subscribe:function(s){return t=s,function(){t=function(){return null}}}}}function Su(e){"@babel/helpers - typeof";return Su=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Su(e)}function OD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function jD(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?OD(Object(n),!0).forEach(function(r){ZL(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):OD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ZL(e,t,n){return t=Cte(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Cte(e){var t=Ete(e,"string");return Su(t)==="symbol"?t:String(t)}function Ete(e,t){if(Su(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Su(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var _te=function(t,n){return[Object.keys(t),Object.keys(n)].reduce(function(r,i){return r.filter(function(s){return i.includes(s)})})},Pte=function(t){return t},Nte=function(t){return t.replace(/([A-Z])/g,function(n){return"-".concat(n.toLowerCase())})},Vc=function(t,n){return Object.keys(n).reduce(function(r,i){return jD(jD({},r),{},ZL({},i,t(i,n[i])))},{})},TD=function(t,n,r){return t.map(function(i){return"".concat(Nte(i)," ").concat(n,"ms ").concat(r)}).join(",")};function Mte(e,t){return kte(e)||Rte(e,t)||QL(e,t)||Dte()}function Dte(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Rte(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,l,u=[],d=!0,f=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(d=(r=s.call(n)).done)&&(u.push(r.value),u.length!==t);d=!0);}catch(p){f=!0,i=p}finally{try{if(!d&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(f)throw i}}return u}}function kte(e){if(Array.isArray(e))return e}function Lte(e){return Bte(e)||$te(e)||QL(e)||zte()}function zte(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function QL(e,t){if(e){if(typeof e=="string")return cS(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return cS(e,t)}}function $te(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Bte(e){if(Array.isArray(e))return cS(e)}function cS(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var $h=1e-4,JL=function(t,n){return[0,3*t,3*n-6*t,3*t-3*n+1]},e8=function(t,n){return t.map(function(r,i){return r*Math.pow(n,i)}).reduce(function(r,i){return r+i})},CD=function(t,n){return function(r){var i=JL(t,n);return e8(i,r)}},Ite=function(t,n){return function(r){var i=JL(t,n),s=[].concat(Lte(i.map(function(l,u){return l*u}).slice(1)),[0]);return e8(s,r)}},ED=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=n[0],s=n[1],l=n[2],u=n[3];if(n.length===1)switch(n[0]){case"linear":i=0,s=0,l=1,u=1;break;case"ease":i=.25,s=.1,l=.25,u=1;break;case"ease-in":i=.42,s=0,l=1,u=1;break;case"ease-out":i=.42,s=0,l=.58,u=1;break;case"ease-in-out":i=0,s=0,l=.58,u=1;break;default:{var d=n[0].split("(");if(d[0]==="cubic-bezier"&&d[1].split(")")[0].split(",").length===4){var f=d[1].split(")")[0].split(",").map(function(w){return parseFloat(w)}),p=Mte(f,4);i=p[0],s=p[1],l=p[2],u=p[3]}}}var m=CD(i,l),v=CD(s,u),b=Ite(i,l),A=function(O){return O>1?1:O<0?0:O},S=function(O){for(var _=O>1?1:O,T=_,M=0;M<8;++M){var j=m(T)-_,P=b(T);if(Math.abs(j-_)<$h||P<$h)return v(T);T=A(T-j/P)}return v(T)};return S.isStepper=!1,S},qte=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.stiff,r=n===void 0?100:n,i=t.damping,s=i===void 0?8:i,l=t.dt,u=l===void 0?17:l,d=function(p,m,v){var b=-(p-m)*r,A=v*s,S=v+(b-A)*u/1e3,w=v*u/1e3+p;return Math.abs(w-m)<$h&&Math.abs(S)<$h?[m,0]:[w,S]};return d.isStepper=!0,d.dt=u,d},Vte=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=n[0];if(typeof i=="string")switch(i){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return ED(i);case"spring":return qte();default:if(i.split("(")[0]==="cubic-bezier")return ED(i)}return typeof i=="function"?i:null};function wu(e){"@babel/helpers - typeof";return wu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},wu(e)}function _D(e){return Fte(e)||Hte(e)||t8(e)||Ute()}function Ute(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Hte(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Fte(e){if(Array.isArray(e))return dS(e)}function PD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function an(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?PD(Object(n),!0).forEach(function(r){uS(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):PD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function uS(e,t,n){return t=Gte(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Gte(e){var t=Kte(e,"string");return wu(t)==="symbol"?t:String(t)}function Kte(e,t){if(wu(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(wu(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Xte(e,t){return Zte(e)||Wte(e,t)||t8(e,t)||Yte()}function Yte(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function t8(e,t){if(e){if(typeof e=="string")return dS(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return dS(e,t)}}function dS(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Wte(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,l,u=[],d=!0,f=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(d=(r=s.call(n)).done)&&(u.push(r.value),u.length!==t);d=!0);}catch(p){f=!0,i=p}finally{try{if(!d&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(f)throw i}}return u}}function Zte(e){if(Array.isArray(e))return e}var Bh=function(t,n,r){return t+(n-t)*r},fS=function(t){var n=t.from,r=t.to;return n!==r},Qte=function e(t,n,r){var i=Vc(function(s,l){if(fS(l)){var u=t(l.from,l.to,l.velocity),d=Xte(u,2),f=d[0],p=d[1];return an(an({},l),{},{from:f,velocity:p})}return l},n);return r<1?Vc(function(s,l){return fS(l)?an(an({},l),{},{velocity:Bh(l.velocity,i[s].velocity,r),from:Bh(l.from,i[s].from,r)}):l},n):e(t,i,r-1)};const Jte=(function(e,t,n,r,i){var s=_te(e,t),l=s.reduce(function(w,O){return an(an({},w),{},uS({},O,[e[O],t[O]]))},{}),u=s.reduce(function(w,O){return an(an({},w),{},uS({},O,{from:e[O],velocity:0,to:t[O]}))},{}),d=-1,f,p,m=function(){return null},v=function(){return Vc(function(O,_){return _.from},u)},b=function(){return!Object.values(u).filter(fS).length},A=function(O){f||(f=O);var _=O-f,T=_/n.dt;u=Qte(n,u,T),i(an(an(an({},e),t),v())),f=O,b()||(d=requestAnimationFrame(m))},S=function(O){p||(p=O);var _=(O-p)/r,T=Vc(function(j,P){return Bh.apply(void 0,_D(P).concat([n(_)]))},l);if(i(an(an(an({},e),t),T)),_<1)d=requestAnimationFrame(m);else{var M=Vc(function(j,P){return Bh.apply(void 0,_D(P).concat([n(1)]))},l);i(an(an(an({},e),t),M))}};return m=n.isStepper?A:S,function(){return requestAnimationFrame(m),function(){cancelAnimationFrame(d)}}});function Ks(e){"@babel/helpers - typeof";return Ks=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ks(e)}var ene=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function tne(e,t){if(e==null)return{};var n=nne(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function nne(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,s;for(s=0;s<r.length;s++)i=r[s],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function b0(e){return one(e)||ine(e)||ane(e)||rne()}function rne(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ane(e,t){if(e){if(typeof e=="string")return hS(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return hS(e,t)}}function ine(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function one(e){if(Array.isArray(e))return hS(e)}function hS(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ND(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ar(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ND(Object(n),!0).forEach(function(r){Lc(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ND(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Lc(e,t,n){return t=n8(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sne(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function lne(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,n8(r.key),r)}}function cne(e,t,n){return t&&lne(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function n8(e){var t=une(e,"string");return Ks(t)==="symbol"?t:String(t)}function une(e,t){if(Ks(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ks(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function dne(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&pS(e,t)}function pS(e,t){return pS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},pS(e,t)}function fne(e){var t=hne();return function(){var r=Ih(e),i;if(t){var s=Ih(this).constructor;i=Reflect.construct(r,arguments,s)}else i=r.apply(this,arguments);return mS(this,i)}}function mS(e,t){if(t&&(Ks(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return gS(e)}function gS(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function hne(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Ih(e){return Ih=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Ih(e)}var Hr=(function(e){dne(n,e);var t=fne(n);function n(r,i){var s;sne(this,n),s=t.call(this,r,i);var l=s.props,u=l.isActive,d=l.attributeName,f=l.from,p=l.to,m=l.steps,v=l.children,b=l.duration;if(s.handleStyleChange=s.handleStyleChange.bind(gS(s)),s.changeStyle=s.changeStyle.bind(gS(s)),!u||b<=0)return s.state={style:{}},typeof v=="function"&&(s.state={style:p}),mS(s);if(m&&m.length)s.state={style:m[0].style};else if(f){if(typeof v=="function")return s.state={style:f},mS(s);s.state={style:d?Lc({},d,f):f}}else s.state={style:{}};return s}return cne(n,[{key:"componentDidMount",value:function(){var i=this.props,s=i.isActive,l=i.canBegin;this.mounted=!0,!(!s||!l)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(i){var s=this.props,l=s.isActive,u=s.canBegin,d=s.attributeName,f=s.shouldReAnimate,p=s.to,m=s.from,v=this.state.style;if(u){if(!l){var b={style:d?Lc({},d,p):p};this.state&&v&&(d&&v[d]!==p||!d&&v!==p)&&this.setState(b);return}if(!(bte(i.to,p)&&i.canBegin&&i.isActive)){var A=!i.canBegin||!i.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var S=A||f?m:i.to;if(this.state&&v){var w={style:d?Lc({},d,S):S};(d&&v[d]!==S||!d&&v!==S)&&this.setState(w)}this.runAnimation(Ar(Ar({},this.props),{},{from:S,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var i=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),i&&i()}},{key:"handleStyleChange",value:function(i){this.changeStyle(i)}},{key:"changeStyle",value:function(i){this.mounted&&this.setState({style:i})}},{key:"runJSAnimation",value:function(i){var s=this,l=i.from,u=i.to,d=i.duration,f=i.easing,p=i.begin,m=i.onAnimationEnd,v=i.onAnimationStart,b=Jte(l,u,Vte(f),d,this.changeStyle),A=function(){s.stopJSAnimation=b()};this.manager.start([v,p,A,d,m])}},{key:"runStepAnimation",value:function(i){var s=this,l=i.steps,u=i.begin,d=i.onAnimationStart,f=l[0],p=f.style,m=f.duration,v=m===void 0?0:m,b=function(S,w,O){if(O===0)return S;var _=w.duration,T=w.easing,M=T===void 0?"ease":T,j=w.style,P=w.properties,N=w.onAnimationEnd,D=O>0?l[O-1]:w,k=P||Object.keys(j);if(typeof M=="function"||M==="spring")return[].concat(b0(S),[s.runJSAnimation.bind(s,{from:D.style,to:j,duration:_,easing:M}),_]);var U=TD(k,_,M),$=Ar(Ar(Ar({},D.style),j),{},{transition:U});return[].concat(b0(S),[$,_,N]).filter(Pte)};return this.manager.start([d].concat(b0(l.reduce(b,[p,Math.max(v,u)])),[i.onAnimationEnd]))}},{key:"runAnimation",value:function(i){this.manager||(this.manager=Tte());var s=i.begin,l=i.duration,u=i.attributeName,d=i.to,f=i.easing,p=i.onAnimationStart,m=i.onAnimationEnd,v=i.steps,b=i.children,A=this.manager;if(this.unSubscribe=A.subscribe(this.handleStyleChange),typeof f=="function"||typeof b=="function"||f==="spring"){this.runJSAnimation(i);return}if(v.length>1){this.runStepAnimation(i);return}var S=u?Lc({},u,d):d,w=TD(Object.keys(S),l,f);A.start([p,s,Ar(Ar({},S),{},{transition:w}),l,m])}},{key:"render",value:function(){var i=this.props,s=i.children;i.begin;var l=i.duration;i.attributeName,i.easing;var u=i.isActive;i.steps,i.from,i.to,i.canBegin,i.onAnimationEnd,i.shouldReAnimate,i.onAnimationReStart;var d=tne(i,ene),f=C.Children.count(s),p=this.state.style;if(typeof s=="function")return s(p);if(!u||f===0||l<=0)return s;var m=function(b){var A=b.props,S=A.style,w=S===void 0?{}:S,O=A.className,_=C.cloneElement(b,Ar(Ar({},d),{},{style:Ar(Ar({},w),p),className:O}));return _};return f===1?m(C.Children.only(s)):B.createElement("div",null,C.Children.map(s,function(v){return m(v)}))}}]),n})(C.PureComponent);Hr.displayName="Animate";Hr.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};Hr.propTypes={from:Je.oneOfType([Je.object,Je.string]),to:Je.oneOfType([Je.object,Je.string]),attributeName:Je.string,duration:Je.number,begin:Je.number,easing:Je.oneOfType([Je.string,Je.func]),steps:Je.arrayOf(Je.shape({duration:Je.number.isRequired,style:Je.object.isRequired,easing:Je.oneOfType([Je.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),Je.func]),properties:Je.arrayOf("string"),onAnimationEnd:Je.func})),children:Je.oneOfType([Je.node,Je.func]),isActive:Je.bool,canBegin:Je.bool,onAnimationEnd:Je.func,shouldReAnimate:Je.bool,onAnimationStart:Je.func,onAnimationReStart:Je.func};function Au(e){"@babel/helpers - typeof";return Au=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Au(e)}function qh(){return qh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},qh.apply(this,arguments)}function pne(e,t){return yne(e)||vne(e,t)||gne(e,t)||mne()}function mne(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function gne(e,t){if(e){if(typeof e=="string")return MD(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return MD(e,t)}}function MD(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function vne(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,l,u=[],d=!0,f=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(d=(r=s.call(n)).done)&&(u.push(r.value),u.length!==t);d=!0);}catch(p){f=!0,i=p}finally{try{if(!d&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(f)throw i}}return u}}function yne(e){if(Array.isArray(e))return e}function DD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function RD(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?DD(Object(n),!0).forEach(function(r){bne(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):DD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function bne(e,t,n){return t=xne(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xne(e){var t=Sne(e,"string");return Au(t)=="symbol"?t:t+""}function Sne(e,t){if(Au(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Au(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var kD=function(t,n,r,i,s){var l=Math.min(Math.abs(r)/2,Math.abs(i)/2),u=i>=0?1:-1,d=r>=0?1:-1,f=i>=0&&r>=0||i<0&&r<0?1:0,p;if(l>0&&s instanceof Array){for(var m=[0,0,0,0],v=0,b=4;v<b;v++)m[v]=s[v]>l?l:s[v];p="M".concat(t,",").concat(n+u*m[0]),m[0]>0&&(p+="A ".concat(m[0],",").concat(m[0],",0,0,").concat(f,",").concat(t+d*m[0],",").concat(n)),p+="L ".concat(t+r-d*m[1],",").concat(n),m[1]>0&&(p+="A ".concat(m[1],",").concat(m[1],",0,0,").concat(f,`,
        `).concat(t+r,",").concat(n+u*m[1])),p+="L ".concat(t+r,",").concat(n+i-u*m[2]),m[2]>0&&(p+="A ".concat(m[2],",").concat(m[2],",0,0,").concat(f,`,
        `).concat(t+r-d*m[2],",").concat(n+i)),p+="L ".concat(t+d*m[3],",").concat(n+i),m[3]>0&&(p+="A ".concat(m[3],",").concat(m[3],",0,0,").concat(f,`,
        `).concat(t,",").concat(n+i-u*m[3])),p+="Z"}else if(l>0&&s===+s&&s>0){var A=Math.min(l,s);p="M ".concat(t,",").concat(n+u*A,`
            A `).concat(A,",").concat(A,",0,0,").concat(f,",").concat(t+d*A,",").concat(n,`
            L `).concat(t+r-d*A,",").concat(n,`
            A `).concat(A,",").concat(A,",0,0,").concat(f,",").concat(t+r,",").concat(n+u*A,`
            L `).concat(t+r,",").concat(n+i-u*A,`
            A `).concat(A,",").concat(A,",0,0,").concat(f,",").concat(t+r-d*A,",").concat(n+i,`
            L `).concat(t+d*A,",").concat(n+i,`
            A `).concat(A,",").concat(A,",0,0,").concat(f,",").concat(t,",").concat(n+i-u*A," Z")}else p="M ".concat(t,",").concat(n," h ").concat(r," v ").concat(i," h ").concat(-r," Z");return p},wne=function(t,n){if(!t||!n)return!1;var r=t.x,i=t.y,s=n.x,l=n.y,u=n.width,d=n.height;if(Math.abs(u)>0&&Math.abs(d)>0){var f=Math.min(s,s+u),p=Math.max(s,s+u),m=Math.min(l,l+d),v=Math.max(l,l+d);return r>=f&&r<=p&&i>=m&&i<=v}return!1},Ane={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},EA=function(t){var n=RD(RD({},Ane),t),r=C.useRef(),i=C.useState(-1),s=pne(i,2),l=s[0],u=s[1];C.useEffect(function(){if(r.current&&r.current.getTotalLength)try{var M=r.current.getTotalLength();M&&u(M)}catch{}},[]);var d=n.x,f=n.y,p=n.width,m=n.height,v=n.radius,b=n.className,A=n.animationEasing,S=n.animationDuration,w=n.animationBegin,O=n.isAnimationActive,_=n.isUpdateAnimationActive;if(d!==+d||f!==+f||p!==+p||m!==+m||p===0||m===0)return null;var T=Me("recharts-rectangle",b);return _?B.createElement(Hr,{canBegin:l>0,from:{width:p,height:m,x:d,y:f},to:{width:p,height:m,x:d,y:f},duration:S,animationEasing:A,isActive:_},function(M){var j=M.width,P=M.height,N=M.x,D=M.y;return B.createElement(Hr,{canBegin:l>0,from:"0px ".concat(l===-1?1:l,"px"),to:"".concat(l,"px 0px"),attributeName:"strokeDasharray",begin:w,duration:S,isActive:O,easing:A},B.createElement("path",qh({},Ae(n,!0),{className:T,d:kD(N,D,j,P,v),ref:r})))}):B.createElement("path",qh({},Ae(n,!0),{className:T,d:kD(d,f,p,m,v)}))},One=["points","className","baseLinePoints","connectNulls"];function Ss(){return Ss=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ss.apply(this,arguments)}function jne(e,t){if(e==null)return{};var n=Tne(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Tne(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function LD(e){return Pne(e)||_ne(e)||Ene(e)||Cne()}function Cne(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ene(e,t){if(e){if(typeof e=="string")return vS(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return vS(e,t)}}function _ne(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Pne(e){if(Array.isArray(e))return vS(e)}function vS(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var zD=function(t){return t&&t.x===+t.x&&t.y===+t.y},Nne=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=[[]];return t.forEach(function(r){zD(r)?n[n.length-1].push(r):n[n.length-1].length>0&&n.push([])}),zD(t[0])&&n[n.length-1].push(t[0]),n[n.length-1].length<=0&&(n=n.slice(0,-1)),n},Uc=function(t,n){var r=Nne(t);n&&(r=[r.reduce(function(s,l){return[].concat(LD(s),LD(l))},[])]);var i=r.map(function(s){return s.reduce(function(l,u,d){return"".concat(l).concat(d===0?"M":"L").concat(u.x,",").concat(u.y)},"")}).join("");return r.length===1?"".concat(i,"Z"):i},Mne=function(t,n,r){var i=Uc(t,r);return"".concat(i.slice(-1)==="Z"?i.slice(0,-1):i,"L").concat(Uc(n.reverse(),r).slice(1))},Dne=function(t){var n=t.points,r=t.className,i=t.baseLinePoints,s=t.connectNulls,l=jne(t,One);if(!n||!n.length)return null;var u=Me("recharts-polygon",r);if(i&&i.length){var d=l.stroke&&l.stroke!=="none",f=Mne(n,i,s);return B.createElement("g",{className:u},B.createElement("path",Ss({},Ae(l,!0),{fill:f.slice(-1)==="Z"?l.fill:"none",stroke:"none",d:f})),d?B.createElement("path",Ss({},Ae(l,!0),{fill:"none",d:Uc(n,s)})):null,d?B.createElement("path",Ss({},Ae(l,!0),{fill:"none",d:Uc(i,s)})):null)}var p=Uc(n,s);return B.createElement("path",Ss({},Ae(l,!0),{fill:p.slice(-1)==="Z"?l.fill:"none",className:u,d:p}))};function yS(){return yS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},yS.apply(this,arguments)}var Yp=function(t){var n=t.cx,r=t.cy,i=t.r,s=t.className,l=Me("recharts-dot",s);return n===+n&&r===+r&&i===+i?C.createElement("circle",yS({},Ae(t,!1),uh(t),{className:l,cx:n,cy:r,r:i})):null};function Ou(e){"@babel/helpers - typeof";return Ou=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ou(e)}var Rne=["x","y","top","left","width","height","className"];function bS(){return bS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},bS.apply(this,arguments)}function $D(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function kne(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?$D(Object(n),!0).forEach(function(r){Lne(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$D(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Lne(e,t,n){return t=zne(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zne(e){var t=$ne(e,"string");return Ou(t)=="symbol"?t:t+""}function $ne(e,t){if(Ou(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ou(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Bne(e,t){if(e==null)return{};var n=Ine(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Ine(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var qne=function(t,n,r,i,s,l){return"M".concat(t,",").concat(s,"v").concat(i,"M").concat(l,",").concat(n,"h").concat(r)},Vne=function(t){var n=t.x,r=n===void 0?0:n,i=t.y,s=i===void 0?0:i,l=t.top,u=l===void 0?0:l,d=t.left,f=d===void 0?0:d,p=t.width,m=p===void 0?0:p,v=t.height,b=v===void 0?0:v,A=t.className,S=Bne(t,Rne),w=kne({x:r,y:s,top:u,left:f,width:m,height:b},S);return!de(r)||!de(s)||!de(m)||!de(b)||!de(u)||!de(f)?null:B.createElement("path",bS({},Ae(w,!0),{className:Me("recharts-cross",A),d:qne(r,s,m,b,u,f)}))},x0,BD;function Une(){if(BD)return x0;BD=1;var e=Hp(),t=vL(),n=Xr();function r(i,s){return i&&i.length?e(i,n(s,2),t):void 0}return x0=r,x0}var Hne=Une();const Fne=tt(Hne);var S0,ID;function Gne(){if(ID)return S0;ID=1;var e=Hp(),t=Xr(),n=yL();function r(i,s){return i&&i.length?e(i,t(s,2),n):void 0}return S0=r,S0}var Kne=Gne();const Xne=tt(Kne);var Yne=["cx","cy","angle","ticks","axisLine"],Wne=["ticks","tick","angle","tickFormatter","stroke"];function Xs(e){"@babel/helpers - typeof";return Xs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Xs(e)}function Hc(){return Hc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Hc.apply(this,arguments)}function qD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Fi(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?qD(Object(n),!0).forEach(function(r){Wp(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function VD(e,t){if(e==null)return{};var n=Zne(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Zne(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Qne(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function UD(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,a8(r.key),r)}}function Jne(e,t,n){return t&&UD(e.prototype,t),n&&UD(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function ere(e,t,n){return t=Vh(t),tre(e,r8()?Reflect.construct(t,n||[],Vh(e).constructor):t.apply(e,n))}function tre(e,t){if(t&&(Xs(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return nre(e)}function nre(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function r8(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(r8=function(){return!!e})()}function Vh(e){return Vh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Vh(e)}function rre(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&xS(e,t)}function xS(e,t){return xS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},xS(e,t)}function Wp(e,t,n){return t=a8(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a8(e){var t=are(e,"string");return Xs(t)=="symbol"?t:t+""}function are(e,t){if(Xs(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Xs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Zp=(function(e){function t(){return Qne(this,t),ere(this,t,arguments)}return rre(t,e),Jne(t,[{key:"getTickValueCoord",value:function(r){var i=r.coordinate,s=this.props,l=s.angle,u=s.cx,d=s.cy;return ft(u,d,i,l)}},{key:"getTickTextAnchor",value:function(){var r=this.props.orientation,i;switch(r){case"left":i="end";break;case"right":i="start";break;default:i="middle";break}return i}},{key:"getViewBox",value:function(){var r=this.props,i=r.cx,s=r.cy,l=r.angle,u=r.ticks,d=Fne(u,function(p){return p.coordinate||0}),f=Xne(u,function(p){return p.coordinate||0});return{cx:i,cy:s,startAngle:l,endAngle:l,innerRadius:f.coordinate||0,outerRadius:d.coordinate||0}}},{key:"renderAxisLine",value:function(){var r=this.props,i=r.cx,s=r.cy,l=r.angle,u=r.ticks,d=r.axisLine,f=VD(r,Yne),p=u.reduce(function(A,S){return[Math.min(A[0],S.coordinate),Math.max(A[1],S.coordinate)]},[1/0,-1/0]),m=ft(i,s,p[0],l),v=ft(i,s,p[1],l),b=Fi(Fi(Fi({},Ae(f,!1)),{},{fill:"none"},Ae(d,!1)),{},{x1:m.x,y1:m.y,x2:v.x,y2:v.y});return B.createElement("line",Hc({className:"recharts-polar-radius-axis-line"},b))}},{key:"renderTicks",value:function(){var r=this,i=this.props,s=i.ticks,l=i.tick,u=i.angle,d=i.tickFormatter,f=i.stroke,p=VD(i,Wne),m=this.getTickTextAnchor(),v=Ae(p,!1),b=Ae(l,!1),A=s.map(function(S,w){var O=r.getTickValueCoord(S),_=Fi(Fi(Fi(Fi({textAnchor:m,transform:"rotate(".concat(90-u,", ").concat(O.x,", ").concat(O.y,")")},v),{},{stroke:"none",fill:f},b),{},{index:w},O),{},{payload:S});return B.createElement(Ke,Hc({className:Me("recharts-polar-radius-axis-tick",GL(l)),key:"tick-".concat(S.coordinate)},po(r.props,S,w)),t.renderTickItem(l,_,d?d(S.value,w):S.value))});return B.createElement(Ke,{className:"recharts-polar-radius-axis-ticks"},A)}},{key:"render",value:function(){var r=this.props,i=r.ticks,s=r.axisLine,l=r.tick;return!i||!i.length?null:B.createElement(Ke,{className:Me("recharts-polar-radius-axis",this.props.className)},s&&this.renderAxisLine(),l&&this.renderTicks(),Zt.renderCallByParent(this.props,this.getViewBox()))}}],[{key:"renderTickItem",value:function(r,i,s){var l;return B.isValidElement(r)?l=B.cloneElement(r,i):_e(r)?l=r(i):l=B.createElement(mo,Hc({},i,{className:"recharts-polar-radius-axis-tick-value"}),s),l}}])})(C.PureComponent);Wp(Zp,"displayName","PolarRadiusAxis");Wp(Zp,"axisType","radiusAxis");Wp(Zp,"defaultProps",{type:"number",radiusAxisId:0,cx:0,cy:0,angle:0,orientation:"right",stroke:"#ccc",axisLine:!0,tick:!0,tickCount:5,allowDataOverflow:!1,scale:"auto",allowDuplicatedCategory:!0});function Ys(e){"@babel/helpers - typeof";return Ys=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ys(e)}function Zi(){return Zi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Zi.apply(this,arguments)}function HD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Gi(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?HD(Object(n),!0).forEach(function(r){Qp(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):HD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ire(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function FD(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,o8(r.key),r)}}function ore(e,t,n){return t&&FD(e.prototype,t),n&&FD(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function sre(e,t,n){return t=Uh(t),lre(e,i8()?Reflect.construct(t,n||[],Uh(e).constructor):t.apply(e,n))}function lre(e,t){if(t&&(Ys(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return cre(e)}function cre(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function i8(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(i8=function(){return!!e})()}function Uh(e){return Uh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Uh(e)}function ure(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&SS(e,t)}function SS(e,t){return SS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},SS(e,t)}function Qp(e,t,n){return t=o8(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o8(e){var t=dre(e,"string");return Ys(t)=="symbol"?t:t+""}function dre(e,t){if(Ys(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ys(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var fre=Math.PI/180,GD=1e-5,Jp=(function(e){function t(){return ire(this,t),sre(this,t,arguments)}return ure(t,e),ore(t,[{key:"getTickLineCoord",value:function(r){var i=this.props,s=i.cx,l=i.cy,u=i.radius,d=i.orientation,f=i.tickSize,p=f||8,m=ft(s,l,u,r.coordinate),v=ft(s,l,u+(d==="inner"?-1:1)*p,r.coordinate);return{x1:m.x,y1:m.y,x2:v.x,y2:v.y}}},{key:"getTickTextAnchor",value:function(r){var i=this.props.orientation,s=Math.cos(-r.coordinate*fre),l;return s>GD?l=i==="outer"?"start":"end":s<-GD?l=i==="outer"?"end":"start":l="middle",l}},{key:"renderAxisLine",value:function(){var r=this.props,i=r.cx,s=r.cy,l=r.radius,u=r.axisLine,d=r.axisLineType,f=Gi(Gi({},Ae(this.props,!1)),{},{fill:"none"},Ae(u,!1));if(d==="circle")return B.createElement(Yp,Zi({className:"recharts-polar-angle-axis-line"},f,{cx:i,cy:s,r:l}));var p=this.props.ticks,m=p.map(function(v){return ft(i,s,l,v.coordinate)});return B.createElement(Dne,Zi({className:"recharts-polar-angle-axis-line"},f,{points:m}))}},{key:"renderTicks",value:function(){var r=this,i=this.props,s=i.ticks,l=i.tick,u=i.tickLine,d=i.tickFormatter,f=i.stroke,p=Ae(this.props,!1),m=Ae(l,!1),v=Gi(Gi({},p),{},{fill:"none"},Ae(u,!1)),b=s.map(function(A,S){var w=r.getTickLineCoord(A),O=r.getTickTextAnchor(A),_=Gi(Gi(Gi({textAnchor:O},p),{},{stroke:"none",fill:f},m),{},{index:S,payload:A,x:w.x2,y:w.y2});return B.createElement(Ke,Zi({className:Me("recharts-polar-angle-axis-tick",GL(l)),key:"tick-".concat(A.coordinate)},po(r.props,A,S)),u&&B.createElement("line",Zi({className:"recharts-polar-angle-axis-tick-line"},v,w)),l&&t.renderTickItem(l,_,d?d(A.value,S):A.value))});return B.createElement(Ke,{className:"recharts-polar-angle-axis-ticks"},b)}},{key:"render",value:function(){var r=this.props,i=r.ticks,s=r.radius,l=r.axisLine;return s<=0||!i||!i.length?null:B.createElement(Ke,{className:Me("recharts-polar-angle-axis",this.props.className)},l&&this.renderAxisLine(),this.renderTicks())}}],[{key:"renderTickItem",value:function(r,i,s){var l;return B.isValidElement(r)?l=B.cloneElement(r,i):_e(r)?l=r(i):l=B.createElement(mo,Zi({},i,{className:"recharts-polar-angle-axis-tick-value"}),s),l}}])})(C.PureComponent);Qp(Jp,"displayName","PolarAngleAxis");Qp(Jp,"axisType","angleAxis");Qp(Jp,"defaultProps",{type:"category",angleAxisId:0,scale:"auto",cx:0,cy:0,orientation:"outer",axisLine:!0,tickLine:!0,tickSize:8,tick:!0,hide:!1,allowDuplicatedCategory:!0});var w0,KD;function hre(){if(KD)return w0;KD=1;var e=g6(),t=e(Object.getPrototypeOf,Object);return w0=t,w0}var A0,XD;function pre(){if(XD)return A0;XD=1;var e=_a(),t=hre(),n=Pa(),r="[object Object]",i=Function.prototype,s=Object.prototype,l=i.toString,u=s.hasOwnProperty,d=l.call(Object);function f(p){if(!n(p)||e(p)!=r)return!1;var m=t(p);if(m===null)return!0;var v=u.call(m,"constructor")&&m.constructor;return typeof v=="function"&&v instanceof v&&l.call(v)==d}return A0=f,A0}var mre=pre();const gre=tt(mre);var O0,YD;function vre(){if(YD)return O0;YD=1;var e=_a(),t=Pa(),n="[object Boolean]";function r(i){return i===!0||i===!1||t(i)&&e(i)==n}return O0=r,O0}var yre=vre();const bre=tt(yre);function ju(e){"@babel/helpers - typeof";return ju=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ju(e)}function Hh(){return Hh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Hh.apply(this,arguments)}function xre(e,t){return Ore(e)||Are(e,t)||wre(e,t)||Sre()}function Sre(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function wre(e,t){if(e){if(typeof e=="string")return WD(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return WD(e,t)}}function WD(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Are(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,l,u=[],d=!0,f=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(d=(r=s.call(n)).done)&&(u.push(r.value),u.length!==t);d=!0);}catch(p){f=!0,i=p}finally{try{if(!d&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(f)throw i}}return u}}function Ore(e){if(Array.isArray(e))return e}function ZD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function QD(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ZD(Object(n),!0).forEach(function(r){jre(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ZD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function jre(e,t,n){return t=Tre(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Tre(e){var t=Cre(e,"string");return ju(t)=="symbol"?t:t+""}function Cre(e,t){if(ju(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ju(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var JD=function(t,n,r,i,s){var l=r-i,u;return u="M ".concat(t,",").concat(n),u+="L ".concat(t+r,",").concat(n),u+="L ".concat(t+r-l/2,",").concat(n+s),u+="L ".concat(t+r-l/2-i,",").concat(n+s),u+="L ".concat(t,",").concat(n," Z"),u},Ere={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},_re=function(t){var n=QD(QD({},Ere),t),r=C.useRef(),i=C.useState(-1),s=xre(i,2),l=s[0],u=s[1];C.useEffect(function(){if(r.current&&r.current.getTotalLength)try{var T=r.current.getTotalLength();T&&u(T)}catch{}},[]);var d=n.x,f=n.y,p=n.upperWidth,m=n.lowerWidth,v=n.height,b=n.className,A=n.animationEasing,S=n.animationDuration,w=n.animationBegin,O=n.isUpdateAnimationActive;if(d!==+d||f!==+f||p!==+p||m!==+m||v!==+v||p===0&&m===0||v===0)return null;var _=Me("recharts-trapezoid",b);return O?B.createElement(Hr,{canBegin:l>0,from:{upperWidth:0,lowerWidth:0,height:v,x:d,y:f},to:{upperWidth:p,lowerWidth:m,height:v,x:d,y:f},duration:S,animationEasing:A,isActive:O},function(T){var M=T.upperWidth,j=T.lowerWidth,P=T.height,N=T.x,D=T.y;return B.createElement(Hr,{canBegin:l>0,from:"0px ".concat(l===-1?1:l,"px"),to:"".concat(l,"px 0px"),attributeName:"strokeDasharray",begin:w,duration:S,easing:A},B.createElement("path",Hh({},Ae(n,!0),{className:_,d:JD(N,D,M,j,P),ref:r})))}):B.createElement("g",null,B.createElement("path",Hh({},Ae(n,!0),{className:_,d:JD(d,f,p,m,v)})))},Pre=["option","shapeType","propTransformer","activeClassName","isActive"];function Tu(e){"@babel/helpers - typeof";return Tu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Tu(e)}function Nre(e,t){if(e==null)return{};var n=Mre(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Mre(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function eR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Fh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?eR(Object(n),!0).forEach(function(r){Dre(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Dre(e,t,n){return t=Rre(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Rre(e){var t=kre(e,"string");return Tu(t)=="symbol"?t:t+""}function kre(e,t){if(Tu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Tu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Lre(e,t){return Fh(Fh({},t),e)}function zre(e,t){return e==="symbols"}function tR(e){var t=e.shapeType,n=e.elementProps;switch(t){case"rectangle":return B.createElement(EA,n);case"trapezoid":return B.createElement(_re,n);case"sector":return B.createElement(YL,n);case"symbols":if(zre(t))return B.createElement(Kw,n);break;default:return null}}function $re(e){return C.isValidElement(e)?e.props:e}function s8(e){var t=e.option,n=e.shapeType,r=e.propTransformer,i=r===void 0?Lre:r,s=e.activeClassName,l=s===void 0?"recharts-active-shape":s,u=e.isActive,d=Nre(e,Pre),f;if(C.isValidElement(t))f=C.cloneElement(t,Fh(Fh({},d),$re(t)));else if(_e(t))f=t(d);else if(gre(t)&&!bre(t)){var p=i(t,d);f=B.createElement(tR,{shapeType:n,elementProps:p})}else{var m=d;f=B.createElement(tR,{shapeType:n,elementProps:m})}return u?B.createElement(Ke,{className:l},f):f}function em(e,t){return t!=null&&"trapezoids"in e.props}function tm(e,t){return t!=null&&"sectors"in e.props}function Cu(e,t){return t!=null&&"points"in e.props}function Bre(e,t){var n,r,i=e.x===(t==null||(n=t.labelViewBox)===null||n===void 0?void 0:n.x)||e.x===t.x,s=e.y===(t==null||(r=t.labelViewBox)===null||r===void 0?void 0:r.y)||e.y===t.y;return i&&s}function Ire(e,t){var n=e.endAngle===t.endAngle,r=e.startAngle===t.startAngle;return n&&r}function qre(e,t){var n=e.x===t.x,r=e.y===t.y,i=e.z===t.z;return n&&r&&i}function Vre(e,t){var n;return em(e,t)?n=Bre:tm(e,t)?n=Ire:Cu(e,t)&&(n=qre),n}function Ure(e,t){var n;return em(e,t)?n="trapezoids":tm(e,t)?n="sectors":Cu(e,t)&&(n="points"),n}function Hre(e,t){if(em(e,t)){var n;return(n=t.tooltipPayload)===null||n===void 0||(n=n[0])===null||n===void 0||(n=n.payload)===null||n===void 0?void 0:n.payload}if(tm(e,t)){var r;return(r=t.tooltipPayload)===null||r===void 0||(r=r[0])===null||r===void 0||(r=r.payload)===null||r===void 0?void 0:r.payload}return Cu(e,t)?t.payload:{}}function Fre(e){var t=e.activeTooltipItem,n=e.graphicalItem,r=e.itemData,i=Ure(n,t),s=Hre(n,t),l=r.filter(function(d,f){var p=Zu(s,d),m=n.props[i].filter(function(A){var S=Vre(n,t);return S(A,t)}),v=n.props[i].indexOf(m[m.length-1]),b=f===v;return p&&b}),u=r.indexOf(l[l.length-1]);return u}var eh;function Ws(e){"@babel/helpers - typeof";return Ws=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ws(e)}function ws(){return ws=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ws.apply(this,arguments)}function nR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ut(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?nR(Object(n),!0).forEach(function(r){lr(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Gre(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function rR(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,c8(r.key),r)}}function Kre(e,t,n){return t&&rR(e.prototype,t),n&&rR(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Xre(e,t,n){return t=Gh(t),Yre(e,l8()?Reflect.construct(t,n||[],Gh(e).constructor):t.apply(e,n))}function Yre(e,t){if(t&&(Ws(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Wre(e)}function Wre(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function l8(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(l8=function(){return!!e})()}function Gh(e){return Gh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Gh(e)}function Zre(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&wS(e,t)}function wS(e,t){return wS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},wS(e,t)}function lr(e,t,n){return t=c8(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c8(e){var t=Qre(e,"string");return Ws(t)=="symbol"?t:t+""}function Qre(e,t){if(Ws(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ws(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Ma=(function(e){function t(n){var r;return Gre(this,t),r=Xre(this,t,[n]),lr(r,"pieRef",null),lr(r,"sectorRefs",[]),lr(r,"id",yl("recharts-pie-")),lr(r,"handleAnimationEnd",function(){var i=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),_e(i)&&i()}),lr(r,"handleAnimationStart",function(){var i=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),_e(i)&&i()}),r.state={isAnimationFinished:!n.isAnimationActive,prevIsAnimationActive:n.isAnimationActive,prevAnimationId:n.animationId,sectorToFocus:0},r}return Zre(t,e),Kre(t,[{key:"isActiveIndex",value:function(r){var i=this.props.activeIndex;return Array.isArray(i)?i.indexOf(r)!==-1:r===i}},{key:"hasActiveIndex",value:function(){var r=this.props.activeIndex;return Array.isArray(r)?r.length!==0:r||r===0}},{key:"renderLabels",value:function(r){var i=this.props.isAnimationActive;if(i&&!this.state.isAnimationFinished)return null;var s=this.props,l=s.label,u=s.labelLine,d=s.dataKey,f=s.valueKey,p=Ae(this.props,!1),m=Ae(l,!1),v=Ae(u,!1),b=l&&l.offsetRadius||20,A=r.map(function(S,w){var O=(S.startAngle+S.endAngle)/2,_=ft(S.cx,S.cy,S.outerRadius+b,O),T=ut(ut(ut(ut({},p),S),{},{stroke:"none"},m),{},{index:w,textAnchor:t.getTextAnchor(_.x,S.cx)},_),M=ut(ut(ut(ut({},p),S),{},{fill:"none",stroke:S.fill},v),{},{index:w,points:[ft(S.cx,S.cy,S.outerRadius,O),_]}),j=d;return Ne(d)&&Ne(f)?j="value":Ne(d)&&(j=f),B.createElement(Ke,{key:"label-".concat(S.startAngle,"-").concat(S.endAngle,"-").concat(S.midAngle,"-").concat(w)},u&&t.renderLabelLineItem(u,M,"line"),t.renderLabelItem(l,T,Ht(S,j)))});return B.createElement(Ke,{className:"recharts-pie-labels"},A)}},{key:"renderSectorsStatically",value:function(r){var i=this,s=this.props,l=s.activeShape,u=s.blendStroke,d=s.inactiveShape;return r.map(function(f,p){if(f?.startAngle===0&&f?.endAngle===0&&r.length!==1)return null;var m=i.isActiveIndex(p),v=d&&i.hasActiveIndex()?d:null,b=m?l:v,A=ut(ut({},f),{},{stroke:u?f.fill:f.stroke,tabIndex:-1});return B.createElement(Ke,ws({ref:function(w){w&&!i.sectorRefs.includes(w)&&i.sectorRefs.push(w)},tabIndex:-1,className:"recharts-pie-sector"},po(i.props,f,p),{key:"sector-".concat(f?.startAngle,"-").concat(f?.endAngle,"-").concat(f.midAngle,"-").concat(p)}),B.createElement(s8,ws({option:b,isActive:m,shapeType:"sector"},A)))})}},{key:"renderSectorsWithAnimation",value:function(){var r=this,i=this.props,s=i.sectors,l=i.isAnimationActive,u=i.animationBegin,d=i.animationDuration,f=i.animationEasing,p=i.animationId,m=this.state,v=m.prevSectors,b=m.prevIsAnimationActive;return B.createElement(Hr,{begin:u,duration:d,isActive:l,easing:f,from:{t:0},to:{t:1},key:"pie-".concat(p,"-").concat(b),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},function(A){var S=A.t,w=[],O=s&&s[0],_=O.startAngle;return s.forEach(function(T,M){var j=v&&v[M],P=M>0?Un(T,"paddingAngle",0):0;if(j){var N=In(j.endAngle-j.startAngle,T.endAngle-T.startAngle),D=ut(ut({},T),{},{startAngle:_+P,endAngle:_+N(S)+P});w.push(D),_=D.endAngle}else{var k=T.endAngle,U=T.startAngle,$=In(0,k-U),H=$(S),X=ut(ut({},T),{},{startAngle:_+P,endAngle:_+H+P});w.push(X),_=X.endAngle}}),B.createElement(Ke,null,r.renderSectorsStatically(w))})}},{key:"attachKeyboardHandlers",value:function(r){var i=this;r.onkeydown=function(s){if(!s.altKey)switch(s.key){case"ArrowLeft":{var l=++i.state.sectorToFocus%i.sectorRefs.length;i.sectorRefs[l].focus(),i.setState({sectorToFocus:l});break}case"ArrowRight":{var u=--i.state.sectorToFocus<0?i.sectorRefs.length-1:i.state.sectorToFocus%i.sectorRefs.length;i.sectorRefs[u].focus(),i.setState({sectorToFocus:u});break}case"Escape":{i.sectorRefs[i.state.sectorToFocus].blur(),i.setState({sectorToFocus:0});break}}}}},{key:"renderSectors",value:function(){var r=this.props,i=r.sectors,s=r.isAnimationActive,l=this.state.prevSectors;return s&&i&&i.length&&(!l||!Zu(l,i))?this.renderSectorsWithAnimation():this.renderSectorsStatically(i)}},{key:"componentDidMount",value:function(){this.pieRef&&this.attachKeyboardHandlers(this.pieRef)}},{key:"render",value:function(){var r=this,i=this.props,s=i.hide,l=i.sectors,u=i.className,d=i.label,f=i.cx,p=i.cy,m=i.innerRadius,v=i.outerRadius,b=i.isAnimationActive,A=this.state.isAnimationFinished;if(s||!l||!l.length||!de(f)||!de(p)||!de(m)||!de(v))return null;var S=Me("recharts-pie",u);return B.createElement(Ke,{tabIndex:this.props.rootTabIndex,className:S,ref:function(O){r.pieRef=O}},this.renderSectors(),d&&this.renderLabels(l),Zt.renderCallByParent(this.props,null,!1),(!b||A)&&wa.renderCallByParent(this.props,l,!1))}}],[{key:"getDerivedStateFromProps",value:function(r,i){return i.prevIsAnimationActive!==r.isAnimationActive?{prevIsAnimationActive:r.isAnimationActive,prevAnimationId:r.animationId,curSectors:r.sectors,prevSectors:[],isAnimationFinished:!0}:r.isAnimationActive&&r.animationId!==i.prevAnimationId?{prevAnimationId:r.animationId,curSectors:r.sectors,prevSectors:i.curSectors,isAnimationFinished:!0}:r.sectors!==i.curSectors?{curSectors:r.sectors,isAnimationFinished:!0}:null}},{key:"getTextAnchor",value:function(r,i){return r>i?"start":r<i?"end":"middle"}},{key:"renderLabelLineItem",value:function(r,i,s){if(B.isValidElement(r))return B.cloneElement(r,i);if(_e(r))return r(i);var l=Me("recharts-pie-label-line",typeof r!="boolean"?r.className:"");return B.createElement(zh,ws({},i,{key:s,type:"linear",className:l}))}},{key:"renderLabelItem",value:function(r,i,s){if(B.isValidElement(r))return B.cloneElement(r,i);var l=s;if(_e(r)&&(l=r(i),B.isValidElement(l)))return l;var u=Me("recharts-pie-label-text",typeof r!="boolean"&&!_e(r)?r.className:"");return B.createElement(mo,ws({},i,{alignmentBaseline:"middle",className:u}),l)}}])})(C.PureComponent);eh=Ma;lr(Ma,"displayName","Pie");lr(Ma,"defaultProps",{stroke:"#fff",fill:"#808080",legendType:"rect",cx:"50%",cy:"50%",startAngle:0,endAngle:360,innerRadius:0,outerRadius:"80%",paddingAngle:0,labelLine:!0,hide:!1,minAngle:0,isAnimationActive:!Ao.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1,rootTabIndex:0});lr(Ma,"parseDeltaAngle",function(e,t){var n=pn(t-e),r=Math.min(Math.abs(t-e),360);return n*r});lr(Ma,"getRealPieData",function(e){var t=e.data,n=e.children,r=Ae(e,!1),i=Hn(n,zp);return t&&t.length?t.map(function(s,l){return ut(ut(ut({payload:s},r),s),i&&i[l]&&i[l].props)}):i&&i.length?i.map(function(s){return ut(ut({},r),s.props)}):[]});lr(Ma,"parseCoordinateOfPie",function(e,t){var n=t.top,r=t.left,i=t.width,s=t.height,l=FL(i,s),u=r+mn(e.cx,i,i/2),d=n+mn(e.cy,s,s/2),f=mn(e.innerRadius,l,0),p=mn(e.outerRadius,l,l*.8),m=e.maxRadius||Math.sqrt(i*i+s*s)/2;return{cx:u,cy:d,innerRadius:f,outerRadius:p,maxRadius:m}});lr(Ma,"getComposedData",function(e){var t=e.item,n=e.offset,r=t.type.defaultProps!==void 0?ut(ut({},t.type.defaultProps),t.props):t.props,i=eh.getRealPieData(r);if(!i||!i.length)return null;var s=r.cornerRadius,l=r.startAngle,u=r.endAngle,d=r.paddingAngle,f=r.dataKey,p=r.nameKey,m=r.valueKey,v=r.tooltipType,b=Math.abs(r.minAngle),A=eh.parseCoordinateOfPie(r,n),S=eh.parseDeltaAngle(l,u),w=Math.abs(S),O=f;Ne(f)&&Ne(m)?(Er(!1,`Use "dataKey" to specify the value of pie,
      the props "valueKey" will be deprecated in 1.1.0`),O="value"):Ne(f)&&(Er(!1,`Use "dataKey" to specify the value of pie,
      the props "valueKey" will be deprecated in 1.1.0`),O=m);var _=i.filter(function(D){return Ht(D,O,0)!==0}).length,T=(w>=360?_:_-1)*d,M=w-_*b-T,j=i.reduce(function(D,k){var U=Ht(k,O,0);return D+(de(U)?U:0)},0),P;if(j>0){var N;P=i.map(function(D,k){var U=Ht(D,O,0),$=Ht(D,p,k),H=(de(U)?U:0)/j,X;k?X=N.endAngle+pn(S)*d*(U!==0?1:0):X=l;var J=X+pn(S)*((U!==0?b:0)+H*M),Z=(X+J)/2,L=(A.innerRadius+A.outerRadius)/2,V=[{name:$,value:U,payload:D,dataKey:O,type:v}],F=ft(A.cx,A.cy,L,Z);return N=ut(ut(ut({percent:H,cornerRadius:s,name:$,tooltipPayload:V,midAngle:Z,middleRadius:L,tooltipPosition:F},D),A),{},{value:Ht(D,O),startAngle:X,endAngle:J,payload:D,paddingAngle:pn(S)*d}),N})}return ut(ut({},A),{},{sectors:P,data:i})});var j0,aR;function Jre(){if(aR)return j0;aR=1;var e=Math.ceil,t=Math.max;function n(r,i,s,l){for(var u=-1,d=t(e((i-r)/(s||1)),0),f=Array(d);d--;)f[l?d:++u]=r,r+=s;return f}return j0=n,j0}var T0,iR;function u8(){if(iR)return T0;iR=1;var e=M6(),t=1/0,n=17976931348623157e292;function r(i){if(!i)return i===0?i:0;if(i=e(i),i===t||i===-t){var s=i<0?-1:1;return s*n}return i===i?i:0}return T0=r,T0}var C0,oR;function eae(){if(oR)return C0;oR=1;var e=Jre(),t=Lp(),n=u8();function r(i){return function(s,l,u){return u&&typeof u!="number"&&t(s,l,u)&&(l=u=void 0),s=n(s),l===void 0?(l=s,s=0):l=n(l),u=u===void 0?s<l?1:-1:n(u),e(s,l,u,i)}}return C0=r,C0}var E0,sR;function tae(){if(sR)return E0;sR=1;var e=eae(),t=e();return E0=t,E0}var nae=tae();const Kh=tt(nae);function Eu(e){"@babel/helpers - typeof";return Eu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Eu(e)}function lR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function cR(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?lR(Object(n),!0).forEach(function(r){d8(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function d8(e,t,n){return t=rae(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rae(e){var t=aae(e,"string");return Eu(t)=="symbol"?t:t+""}function aae(e,t){if(Eu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Eu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var iae=["Webkit","Moz","O","ms"],oae=function(t,n){var r=t.replace(/(\w)/,function(s){return s.toUpperCase()}),i=iae.reduce(function(s,l){return cR(cR({},s),{},d8({},l+r,n))},{});return i[t]=n,i};function Zs(e){"@babel/helpers - typeof";return Zs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Zs(e)}function Xh(){return Xh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Xh.apply(this,arguments)}function uR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function _0(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?uR(Object(n),!0).forEach(function(r){$n(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function sae(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function dR(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,h8(r.key),r)}}function lae(e,t,n){return t&&dR(e.prototype,t),n&&dR(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function cae(e,t,n){return t=Yh(t),uae(e,f8()?Reflect.construct(t,n||[],Yh(e).constructor):t.apply(e,n))}function uae(e,t){if(t&&(Zs(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return dae(e)}function dae(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function f8(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(f8=function(){return!!e})()}function Yh(e){return Yh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Yh(e)}function fae(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&AS(e,t)}function AS(e,t){return AS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},AS(e,t)}function $n(e,t,n){return t=h8(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h8(e){var t=hae(e,"string");return Zs(t)=="symbol"?t:t+""}function hae(e,t){if(Zs(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Zs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var pae=function(t){var n=t.data,r=t.startIndex,i=t.endIndex,s=t.x,l=t.width,u=t.travellerWidth;if(!n||!n.length)return{};var d=n.length,f=Ic().domain(Kh(0,d)).range([s,s+l-u]),p=f.domain().map(function(m){return f(m)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:f(r),endX:f(i),scale:f,scaleValues:p}},fR=function(t){return t.changedTouches&&!!t.changedTouches.length},Qs=(function(e){function t(n){var r;return sae(this,t),r=cae(this,t,[n]),$n(r,"handleDrag",function(i){r.leaveTimer&&(clearTimeout(r.leaveTimer),r.leaveTimer=null),r.state.isTravellerMoving?r.handleTravellerMove(i):r.state.isSlideMoving&&r.handleSlideDrag(i)}),$n(r,"handleTouchMove",function(i){i.changedTouches!=null&&i.changedTouches.length>0&&r.handleDrag(i.changedTouches[0])}),$n(r,"handleDragEnd",function(){r.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var i=r.props,s=i.endIndex,l=i.onDragEnd,u=i.startIndex;l?.({endIndex:s,startIndex:u})}),r.detachDragEndListener()}),$n(r,"handleLeaveWrapper",function(){(r.state.isTravellerMoving||r.state.isSlideMoving)&&(r.leaveTimer=window.setTimeout(r.handleDragEnd,r.props.leaveTimeOut))}),$n(r,"handleEnterSlideOrTraveller",function(){r.setState({isTextActive:!0})}),$n(r,"handleLeaveSlideOrTraveller",function(){r.setState({isTextActive:!1})}),$n(r,"handleSlideDragStart",function(i){var s=fR(i)?i.changedTouches[0]:i;r.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:s.pageX}),r.attachDragEndListener()}),r.travellerDragStartHandlers={startX:r.handleTravellerDragStart.bind(r,"startX"),endX:r.handleTravellerDragStart.bind(r,"endX")},r.state={},r}return fae(t,e),lae(t,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(r){var i=r.startX,s=r.endX,l=this.state.scaleValues,u=this.props,d=u.gap,f=u.data,p=f.length-1,m=Math.min(i,s),v=Math.max(i,s),b=t.getIndexInRange(l,m),A=t.getIndexInRange(l,v);return{startIndex:b-b%d,endIndex:A===p?p:A-A%d}}},{key:"getTextOfTick",value:function(r){var i=this.props,s=i.data,l=i.tickFormatter,u=i.dataKey,d=Ht(s[r],u,r);return _e(l)?l(d,r):d}},{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(r){var i=this.state,s=i.slideMoveStartX,l=i.startX,u=i.endX,d=this.props,f=d.x,p=d.width,m=d.travellerWidth,v=d.startIndex,b=d.endIndex,A=d.onChange,S=r.pageX-s;S>0?S=Math.min(S,f+p-m-u,f+p-m-l):S<0&&(S=Math.max(S,f-l,f-u));var w=this.getIndex({startX:l+S,endX:u+S});(w.startIndex!==v||w.endIndex!==b)&&A&&A(w),this.setState({startX:l+S,endX:u+S,slideMoveStartX:r.pageX})}},{key:"handleTravellerDragStart",value:function(r,i){var s=fR(i)?i.changedTouches[0]:i;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:r,brushMoveStartX:s.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(r){var i=this.state,s=i.brushMoveStartX,l=i.movingTravellerId,u=i.endX,d=i.startX,f=this.state[l],p=this.props,m=p.x,v=p.width,b=p.travellerWidth,A=p.onChange,S=p.gap,w=p.data,O={startX:this.state.startX,endX:this.state.endX},_=r.pageX-s;_>0?_=Math.min(_,m+v-b-f):_<0&&(_=Math.max(_,m-f)),O[l]=f+_;var T=this.getIndex(O),M=T.startIndex,j=T.endIndex,P=function(){var D=w.length-1;return l==="startX"&&(u>d?M%S===0:j%S===0)||u<d&&j===D||l==="endX"&&(u>d?j%S===0:M%S===0)||u>d&&j===D};this.setState($n($n({},l,f+_),"brushMoveStartX",r.pageX),function(){A&&P()&&A(T)})}},{key:"handleTravellerMoveKeyboard",value:function(r,i){var s=this,l=this.state,u=l.scaleValues,d=l.startX,f=l.endX,p=this.state[i],m=u.indexOf(p);if(m!==-1){var v=m+r;if(!(v===-1||v>=u.length)){var b=u[v];i==="startX"&&b>=f||i==="endX"&&b<=d||this.setState($n({},i,b),function(){s.props.onChange(s.getIndex({startX:s.state.startX,endX:s.state.endX}))})}}}},{key:"renderBackground",value:function(){var r=this.props,i=r.x,s=r.y,l=r.width,u=r.height,d=r.fill,f=r.stroke;return B.createElement("rect",{stroke:f,fill:d,x:i,y:s,width:l,height:u})}},{key:"renderPanorama",value:function(){var r=this.props,i=r.x,s=r.y,l=r.width,u=r.height,d=r.data,f=r.children,p=r.padding,m=C.Children.only(f);return m?B.cloneElement(m,{x:i,y:s,width:l,height:u,margin:p,compact:!0,data:d}):null}},{key:"renderTravellerLayer",value:function(r,i){var s,l,u=this,d=this.props,f=d.y,p=d.travellerWidth,m=d.height,v=d.traveller,b=d.ariaLabel,A=d.data,S=d.startIndex,w=d.endIndex,O=Math.max(r,this.props.x),_=_0(_0({},Ae(this.props,!1)),{},{x:O,y:f,width:p,height:m}),T=b||"Min value: ".concat((s=A[S])===null||s===void 0?void 0:s.name,", Max value: ").concat((l=A[w])===null||l===void 0?void 0:l.name);return B.createElement(Ke,{tabIndex:0,role:"slider","aria-label":T,"aria-valuenow":r,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[i],onTouchStart:this.travellerDragStartHandlers[i],onKeyDown:function(j){["ArrowLeft","ArrowRight"].includes(j.key)&&(j.preventDefault(),j.stopPropagation(),u.handleTravellerMoveKeyboard(j.key==="ArrowRight"?1:-1,i))},onFocus:function(){u.setState({isTravellerFocused:!0})},onBlur:function(){u.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(v,_))}},{key:"renderSlide",value:function(r,i){var s=this.props,l=s.y,u=s.height,d=s.stroke,f=s.travellerWidth,p=Math.min(r,i)+f,m=Math.max(Math.abs(i-r)-f,0);return B.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:d,fillOpacity:.2,x:p,y:l,width:m,height:u})}},{key:"renderText",value:function(){var r=this.props,i=r.startIndex,s=r.endIndex,l=r.y,u=r.height,d=r.travellerWidth,f=r.stroke,p=this.state,m=p.startX,v=p.endX,b=5,A={pointerEvents:"none",fill:f};return B.createElement(Ke,{className:"recharts-brush-texts"},B.createElement(mo,Xh({textAnchor:"end",verticalAnchor:"middle",x:Math.min(m,v)-b,y:l+u/2},A),this.getTextOfTick(i)),B.createElement(mo,Xh({textAnchor:"start",verticalAnchor:"middle",x:Math.max(m,v)+d+b,y:l+u/2},A),this.getTextOfTick(s)))}},{key:"render",value:function(){var r=this.props,i=r.data,s=r.className,l=r.children,u=r.x,d=r.y,f=r.width,p=r.height,m=r.alwaysShowText,v=this.state,b=v.startX,A=v.endX,S=v.isTextActive,w=v.isSlideMoving,O=v.isTravellerMoving,_=v.isTravellerFocused;if(!i||!i.length||!de(u)||!de(d)||!de(f)||!de(p)||f<=0||p<=0)return null;var T=Me("recharts-brush",s),M=B.Children.count(l)===1,j=oae("userSelect","none");return B.createElement(Ke,{className:T,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:j},this.renderBackground(),M&&this.renderPanorama(),this.renderSlide(b,A),this.renderTravellerLayer(b,"startX"),this.renderTravellerLayer(A,"endX"),(S||w||O||_||m)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(r){var i=r.x,s=r.y,l=r.width,u=r.height,d=r.stroke,f=Math.floor(s+u/2)-1;return B.createElement(B.Fragment,null,B.createElement("rect",{x:i,y:s,width:l,height:u,fill:d,stroke:"none"}),B.createElement("line",{x1:i+1,y1:f,x2:i+l-1,y2:f,fill:"none",stroke:"#fff"}),B.createElement("line",{x1:i+1,y1:f+2,x2:i+l-1,y2:f+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(r,i){var s;return B.isValidElement(r)?s=B.cloneElement(r,i):_e(r)?s=r(i):s=t.renderDefaultTraveller(i),s}},{key:"getDerivedStateFromProps",value:function(r,i){var s=r.data,l=r.width,u=r.x,d=r.travellerWidth,f=r.updateId,p=r.startIndex,m=r.endIndex;if(s!==i.prevData||f!==i.prevUpdateId)return _0({prevData:s,prevTravellerWidth:d,prevUpdateId:f,prevX:u,prevWidth:l},s&&s.length?pae({data:s,width:l,x:u,travellerWidth:d,startIndex:p,endIndex:m}):{scale:null,scaleValues:null});if(i.scale&&(l!==i.prevWidth||u!==i.prevX||d!==i.prevTravellerWidth)){i.scale.range([u,u+l-d]);var v=i.scale.domain().map(function(b){return i.scale(b)});return{prevData:s,prevTravellerWidth:d,prevUpdateId:f,prevX:u,prevWidth:l,startX:i.scale(r.startIndex),endX:i.scale(r.endIndex),scaleValues:v}}return null}},{key:"getIndexInRange",value:function(r,i){for(var s=r.length,l=0,u=s-1;u-l>1;){var d=Math.floor((l+u)/2);r[d]>i?u=d:l=d}return i>=r[u]?u:l}}])})(C.PureComponent);$n(Qs,"displayName","Brush");$n(Qs,"defaultProps",{height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1});var P0,hR;function mae(){if(hR)return P0;hR=1;var e=eA();function t(n,r){var i;return e(n,function(s,l,u){return i=r(s,l,u),!i}),!!i}return P0=t,P0}var N0,pR;function gae(){if(pR)return N0;pR=1;var e=c6(),t=Xr(),n=mae(),r=Cn(),i=Lp();function s(l,u,d){var f=r(l)?e:n;return d&&i(l,u,d)&&(u=void 0),f(l,t(u,3))}return N0=s,N0}var vae=gae();const yae=tt(vae);var Ir=function(t,n){var r=t.alwaysShow,i=t.ifOverflow;return r&&(i="extendDomain"),i===n},M0,mR;function bae(){if(mR)return M0;mR=1;var e=C6();function t(n,r,i){r=="__proto__"&&e?e(n,r,{configurable:!0,enumerable:!0,value:i,writable:!0}):n[r]=i}return M0=t,M0}var D0,gR;function xae(){if(gR)return D0;gR=1;var e=bae(),t=j6(),n=Xr();function r(i,s){var l={};return s=n(s,3),t(i,function(u,d,f){e(l,d,s(u,d,f))}),l}return D0=r,D0}var Sae=xae();const wae=tt(Sae);var R0,vR;function Aae(){if(vR)return R0;vR=1;function e(t,n){for(var r=-1,i=t==null?0:t.length;++r<i;)if(!n(t[r],r,t))return!1;return!0}return R0=e,R0}var k0,yR;function Oae(){if(yR)return k0;yR=1;var e=eA();function t(n,r){var i=!0;return e(n,function(s,l,u){return i=!!r(s,l,u),i}),i}return k0=t,k0}var L0,bR;function jae(){if(bR)return L0;bR=1;var e=Aae(),t=Oae(),n=Xr(),r=Cn(),i=Lp();function s(l,u,d){var f=r(l)?e:t;return d&&i(l,u,d)&&(u=void 0),f(l,n(u,3))}return L0=s,L0}var Tae=jae();const p8=tt(Tae);var Cae=["x","y"];function _u(e){"@babel/helpers - typeof";return _u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_u(e)}function OS(){return OS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},OS.apply(this,arguments)}function xR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Nc(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?xR(Object(n),!0).forEach(function(r){Eae(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Eae(e,t,n){return t=_ae(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _ae(e){var t=Pae(e,"string");return _u(t)=="symbol"?t:t+""}function Pae(e,t){if(_u(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(_u(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Nae(e,t){if(e==null)return{};var n=Mae(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Mae(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Dae(e,t){var n=e.x,r=e.y,i=Nae(e,Cae),s="".concat(n),l=parseInt(s,10),u="".concat(r),d=parseInt(u,10),f="".concat(t.height||i.height),p=parseInt(f,10),m="".concat(t.width||i.width),v=parseInt(m,10);return Nc(Nc(Nc(Nc(Nc({},t),i),l?{x:l}:{}),d?{y:d}:{}),{},{height:p,width:v,name:t.name,radius:t.radius})}function SR(e){return B.createElement(s8,OS({shapeType:"rectangle",propTransformer:Dae,activeClassName:"recharts-active-bar"},e))}var Rae=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return function(r,i){if(typeof t=="number")return t;var s=de(r)||rF(r);return s?t(r,i):(s||vo(),n)}},kae=["value","background"],m8;function Js(e){"@babel/helpers - typeof";return Js=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Js(e)}function Lae(e,t){if(e==null)return{};var n=zae(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function zae(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Wh(){return Wh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Wh.apply(this,arguments)}function wR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function zt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?wR(Object(n),!0).forEach(function(r){fi(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function $ae(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function AR(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,v8(r.key),r)}}function Bae(e,t,n){return t&&AR(e.prototype,t),n&&AR(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Iae(e,t,n){return t=Zh(t),qae(e,g8()?Reflect.construct(t,n||[],Zh(e).constructor):t.apply(e,n))}function qae(e,t){if(t&&(Js(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Vae(e)}function Vae(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function g8(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(g8=function(){return!!e})()}function Zh(e){return Zh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Zh(e)}function Uae(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&jS(e,t)}function jS(e,t){return jS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},jS(e,t)}function fi(e,t,n){return t=v8(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v8(e){var t=Hae(e,"string");return Js(t)=="symbol"?t:t+""}function Hae(e,t){if(Js(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Js(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Co=(function(e){function t(){var n;$ae(this,t);for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];return n=Iae(this,t,[].concat(i)),fi(n,"state",{isAnimationFinished:!1}),fi(n,"id",yl("recharts-bar-")),fi(n,"handleAnimationEnd",function(){var l=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),l&&l()}),fi(n,"handleAnimationStart",function(){var l=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),l&&l()}),n}return Uae(t,e),Bae(t,[{key:"renderRectanglesStatically",value:function(r){var i=this,s=this.props,l=s.shape,u=s.dataKey,d=s.activeIndex,f=s.activeBar,p=Ae(this.props,!1);return r&&r.map(function(m,v){var b=v===d,A=b?f:l,S=zt(zt(zt({},p),m),{},{isActive:b,option:A,index:v,dataKey:u,onAnimationStart:i.handleAnimationStart,onAnimationEnd:i.handleAnimationEnd});return B.createElement(Ke,Wh({className:"recharts-bar-rectangle"},po(i.props,m,v),{key:"rectangle-".concat(m?.x,"-").concat(m?.y,"-").concat(m?.value,"-").concat(v)}),B.createElement(SR,S))})}},{key:"renderRectanglesWithAnimation",value:function(){var r=this,i=this.props,s=i.data,l=i.layout,u=i.isAnimationActive,d=i.animationBegin,f=i.animationDuration,p=i.animationEasing,m=i.animationId,v=this.state.prevData;return B.createElement(Hr,{begin:d,duration:f,isActive:u,easing:p,from:{t:0},to:{t:1},key:"bar-".concat(m),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(b){var A=b.t,S=s.map(function(w,O){var _=v&&v[O];if(_){var T=In(_.x,w.x),M=In(_.y,w.y),j=In(_.width,w.width),P=In(_.height,w.height);return zt(zt({},w),{},{x:T(A),y:M(A),width:j(A),height:P(A)})}if(l==="horizontal"){var N=In(0,w.height),D=N(A);return zt(zt({},w),{},{y:w.y+w.height-D,height:D})}var k=In(0,w.width),U=k(A);return zt(zt({},w),{},{width:U})});return B.createElement(Ke,null,r.renderRectanglesStatically(S))})}},{key:"renderRectangles",value:function(){var r=this.props,i=r.data,s=r.isAnimationActive,l=this.state.prevData;return s&&i&&i.length&&(!l||!Zu(l,i))?this.renderRectanglesWithAnimation():this.renderRectanglesStatically(i)}},{key:"renderBackground",value:function(){var r=this,i=this.props,s=i.data,l=i.dataKey,u=i.activeIndex,d=Ae(this.props.background,!1);return s.map(function(f,p){f.value;var m=f.background,v=Lae(f,kae);if(!m)return null;var b=zt(zt(zt(zt(zt({},v),{},{fill:"#eee"},m),d),po(r.props,f,p)),{},{onAnimationStart:r.handleAnimationStart,onAnimationEnd:r.handleAnimationEnd,dataKey:l,index:p,className:"recharts-bar-background-rectangle"});return B.createElement(SR,Wh({key:"background-bar-".concat(p),option:r.props.background,isActive:p===u},b))})}},{key:"renderErrorBar",value:function(r,i){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var s=this.props,l=s.data,u=s.xAxis,d=s.yAxis,f=s.layout,p=s.children,m=Hn(p,Qu);if(!m)return null;var v=f==="vertical"?l[0].height/2:l[0].width/2,b=function(w,O){var _=Array.isArray(w.value)?w.value[1]:w.value;return{x:w.x,y:w.y,value:_,errorVal:Ht(w,O)}},A={clipPath:r?"url(#clipPath-".concat(i,")"):null};return B.createElement(Ke,A,m.map(function(S){return B.cloneElement(S,{key:"error-bar-".concat(i,"-").concat(S.props.dataKey),data:l,xAxis:u,yAxis:d,layout:f,offset:v,dataPointFormatter:b})}))}},{key:"render",value:function(){var r=this.props,i=r.hide,s=r.data,l=r.className,u=r.xAxis,d=r.yAxis,f=r.left,p=r.top,m=r.width,v=r.height,b=r.isAnimationActive,A=r.background,S=r.id;if(i||!s||!s.length)return null;var w=this.state.isAnimationFinished,O=Me("recharts-bar",l),_=u&&u.allowDataOverflow,T=d&&d.allowDataOverflow,M=_||T,j=Ne(S)?this.id:S;return B.createElement(Ke,{className:O},_||T?B.createElement("defs",null,B.createElement("clipPath",{id:"clipPath-".concat(j)},B.createElement("rect",{x:_?f:f-m/2,y:T?p:p-v/2,width:_?m:m*2,height:T?v:v*2}))):null,B.createElement(Ke,{className:"recharts-bar-rectangles",clipPath:M?"url(#clipPath-".concat(j,")"):null},A?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(M,j),(!b||w)&&wa.renderCallByParent(this.props,s))}}],[{key:"getDerivedStateFromProps",value:function(r,i){return r.animationId!==i.prevAnimationId?{prevAnimationId:r.animationId,curData:r.data,prevData:i.curData}:r.data!==i.curData?{curData:r.data}:null}}])})(C.PureComponent);m8=Co;fi(Co,"displayName","Bar");fi(Co,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!Ao.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});fi(Co,"getComposedData",function(e){var t=e.props,n=e.item,r=e.barPosition,i=e.bandSize,s=e.xAxis,l=e.yAxis,u=e.xAxisTicks,d=e.yAxisTicks,f=e.stackedData,p=e.dataStartIndex,m=e.displayedData,v=e.offset,b=yJ(r,n);if(!b)return null;var A=t.layout,S=n.type.defaultProps,w=S!==void 0?zt(zt({},S),n.props):n.props,O=w.dataKey,_=w.children,T=w.minPointSize,M=A==="horizontal"?l:s,j=f?M.scale.domain():null,P=jJ({numericAxis:M}),N=Hn(_,zp),D=m.map(function(k,U){var $,H,X,J,Z,L;f?$=bJ(f[p+U],j):($=Ht(k,O),Array.isArray($)||($=[P,$]));var V=Rae(T,m8.defaultProps.minPointSize)($[1],U);if(A==="horizontal"){var F,ie=[l.scale($[0]),l.scale($[1])],ue=ie[0],z=ie[1];H=XM({axis:s,ticks:u,bandSize:i,offset:b.offset,entry:k,index:U}),X=(F=z??ue)!==null&&F!==void 0?F:void 0,J=b.size;var G=ue-z;if(Z=Number.isNaN(G)?0:G,L={x:H,y:l.y,width:J,height:l.height},Math.abs(V)>0&&Math.abs(Z)<Math.abs(V)){var te=pn(Z||V)*(Math.abs(V)-Math.abs(Z));X-=te,Z+=te}}else{var le=[s.scale($[0]),s.scale($[1])],fe=le[0],Se=le[1];if(H=fe,X=XM({axis:l,ticks:d,bandSize:i,offset:b.offset,entry:k,index:U}),J=Se-fe,Z=b.size,L={x:s.x,y:X,width:s.width,height:Z},Math.abs(V)>0&&Math.abs(J)<Math.abs(V)){var ye=pn(J||V)*(Math.abs(V)-Math.abs(J));J+=ye}}return zt(zt(zt({},k),{},{x:H,y:X,width:J,height:Z,value:f?$:$[1],payload:k,background:L},N&&N[U]&&N[U].props),{},{tooltipPayload:[UL(n,k)],tooltipPosition:{x:H+J/2,y:X+Z/2}})});return zt({data:D,layout:A},v)});function Pu(e){"@babel/helpers - typeof";return Pu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Pu(e)}function Fae(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function OR(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,y8(r.key),r)}}function Gae(e,t,n){return t&&OR(e.prototype,t),n&&OR(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function jR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function jr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?jR(Object(n),!0).forEach(function(r){nm(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function nm(e,t,n){return t=y8(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function y8(e){var t=Kae(e,"string");return Pu(t)=="symbol"?t:t+""}function Kae(e,t){if(Pu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Pu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var b8=function(t,n,r,i,s){var l=t.width,u=t.height,d=t.layout,f=t.children,p=Object.keys(n),m={left:r.left,leftMirror:r.left,right:l-r.right,rightMirror:l-r.right,top:r.top,topMirror:r.top,bottom:u-r.bottom,bottomMirror:u-r.bottom},v=!!Bn(f,Co);return p.reduce(function(b,A){var S=n[A],w=S.orientation,O=S.domain,_=S.padding,T=_===void 0?{}:_,M=S.mirror,j=S.reversed,P="".concat(w).concat(M?"Mirror":""),N,D,k,U,$;if(S.type==="number"&&(S.padding==="gap"||S.padding==="no-gap")){var H=O[1]-O[0],X=1/0,J=S.categoricalDomain.sort(oF);if(J.forEach(function(le,fe){fe>0&&(X=Math.min((le||0)-(J[fe-1]||0),X))}),Number.isFinite(X)){var Z=X/H,L=S.layout==="vertical"?r.height:r.width;if(S.padding==="gap"&&(N=Z*L/2),S.padding==="no-gap"){var V=mn(t.barCategoryGap,Z*L),F=Z*L/2;N=F-V-(F-V)/L*V}}}i==="xAxis"?D=[r.left+(T.left||0)+(N||0),r.left+r.width-(T.right||0)-(N||0)]:i==="yAxis"?D=d==="horizontal"?[r.top+r.height-(T.bottom||0),r.top+(T.top||0)]:[r.top+(T.top||0)+(N||0),r.top+r.height-(T.bottom||0)-(N||0)]:D=S.range,j&&(D=[D[1],D[0]]);var ie=BL(S,s,v),ue=ie.scale,z=ie.realScaleType;ue.domain(O).range(D),IL(ue);var G=qL(ue,jr(jr({},S),{},{realScaleType:z}));i==="xAxis"?($=w==="top"&&!M||w==="bottom"&&M,k=r.left,U=m[P]-$*S.height):i==="yAxis"&&($=w==="left"&&!M||w==="right"&&M,k=m[P]-$*S.width,U=r.top);var te=jr(jr(jr({},S),G),{},{realScaleType:z,x:k,y:U,scale:ue,width:i==="xAxis"?r.width:S.width,height:i==="yAxis"?r.height:S.height});return te.bandSize=Rh(te,G),!S.hide&&i==="xAxis"?m[P]+=($?-1:1)*te.height:S.hide||(m[P]+=($?-1:1)*te.width),jr(jr({},b),{},nm({},A,te))},{})},x8=function(t,n){var r=t.x,i=t.y,s=n.x,l=n.y;return{x:Math.min(r,s),y:Math.min(i,l),width:Math.abs(s-r),height:Math.abs(l-i)}},Xae=function(t){var n=t.x1,r=t.y1,i=t.x2,s=t.y2;return x8({x:n,y:r},{x:i,y:s})},S8=(function(){function e(t){Fae(this,e),this.scale=t}return Gae(e,[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.bandAware,s=r.position;if(n!==void 0){if(s)switch(s){case"start":return this.scale(n);case"middle":{var l=this.bandwidth?this.bandwidth()/2:0;return this.scale(n)+l}case"end":{var u=this.bandwidth?this.bandwidth():0;return this.scale(n)+u}default:return this.scale(n)}if(i){var d=this.bandwidth?this.bandwidth()/2:0;return this.scale(n)+d}return this.scale(n)}}},{key:"isInRange",value:function(n){var r=this.range(),i=r[0],s=r[r.length-1];return i<=s?n>=i&&n<=s:n>=s&&n<=i}}],[{key:"create",value:function(n){return new e(n)}}])})();nm(S8,"EPS",1e-4);var _A=function(t){var n=Object.keys(t).reduce(function(r,i){return jr(jr({},r),{},nm({},i,S8.create(t[i])))},{});return jr(jr({},n),{},{apply:function(i){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l=s.bandAware,u=s.position;return wae(i,function(d,f){return n[f].apply(d,{bandAware:l,position:u})})},isInRange:function(i){return p8(i,function(s,l){return n[l].isInRange(s)})}})};function Yae(e){return(e%180+180)%180}var Wae=function(t){var n=t.width,r=t.height,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,s=Yae(i),l=s*Math.PI/180,u=Math.atan(r/n),d=l>u&&l<Math.PI-u?r/Math.sin(l):n/Math.cos(l);return Math.abs(d)},z0,TR;function Zae(){if(TR)return z0;TR=1;var e=Xr(),t=Gu(),n=Rp();function r(i){return function(s,l,u){var d=Object(s);if(!t(s)){var f=e(l,3);s=n(s),l=function(m){return f(d[m],m,d)}}var p=i(s,l,u);return p>-1?d[f?s[p]:p]:void 0}}return z0=r,z0}var $0,CR;function Qae(){if(CR)return $0;CR=1;var e=u8();function t(n){var r=e(n),i=r%1;return r===r?i?r-i:r:0}return $0=t,$0}var B0,ER;function Jae(){if(ER)return B0;ER=1;var e=x6(),t=Xr(),n=Qae(),r=Math.max;function i(s,l,u){var d=s==null?0:s.length;if(!d)return-1;var f=u==null?0:n(u);return f<0&&(f=r(d+f,0)),e(s,t(l,3),f)}return B0=i,B0}var I0,_R;function eie(){if(_R)return I0;_R=1;var e=Zae(),t=Jae(),n=e(t);return I0=n,I0}var tie=eie();const nie=tt(tie);var rie=L5();const aie=tt(rie);var iie=aie(function(e){return{x:e.left,y:e.top,width:e.width,height:e.height}},function(e){return["l",e.left,"t",e.top,"w",e.width,"h",e.height].join("")}),PA=C.createContext(void 0),NA=C.createContext(void 0),w8=C.createContext(void 0),A8=C.createContext({}),O8=C.createContext(void 0),j8=C.createContext(0),T8=C.createContext(0),PR=function(t){var n=t.state,r=n.xAxisMap,i=n.yAxisMap,s=n.offset,l=t.clipPathId,u=t.children,d=t.width,f=t.height,p=iie(s);return B.createElement(PA.Provider,{value:r},B.createElement(NA.Provider,{value:i},B.createElement(A8.Provider,{value:s},B.createElement(w8.Provider,{value:p},B.createElement(O8.Provider,{value:l},B.createElement(j8.Provider,{value:f},B.createElement(T8.Provider,{value:d},u)))))))},oie=function(){return C.useContext(O8)},C8=function(t){var n=C.useContext(PA);n==null&&vo();var r=n[t];return r==null&&vo(),r},sie=function(){var t=C.useContext(PA);return di(t)},lie=function(){var t=C.useContext(NA),n=nie(t,function(r){return p8(r.domain,Number.isFinite)});return n||di(t)},E8=function(t){var n=C.useContext(NA);n==null&&vo();var r=n[t];return r==null&&vo(),r},cie=function(){var t=C.useContext(w8);return t},uie=function(){return C.useContext(A8)},MA=function(){return C.useContext(T8)},DA=function(){return C.useContext(j8)};function el(e){"@babel/helpers - typeof";return el=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},el(e)}function die(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function fie(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,P8(r.key),r)}}function hie(e,t,n){return t&&fie(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function pie(e,t,n){return t=Qh(t),mie(e,_8()?Reflect.construct(t,n||[],Qh(e).constructor):t.apply(e,n))}function mie(e,t){if(t&&(el(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return gie(e)}function gie(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _8(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_8=function(){return!!e})()}function Qh(e){return Qh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Qh(e)}function vie(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&TS(e,t)}function TS(e,t){return TS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},TS(e,t)}function NR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function MR(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?NR(Object(n),!0).forEach(function(r){RA(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):NR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function RA(e,t,n){return t=P8(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function P8(e){var t=yie(e,"string");return el(t)=="symbol"?t:t+""}function yie(e,t){if(el(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(el(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function bie(e,t){return Aie(e)||wie(e,t)||Sie(e,t)||xie()}function xie(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Sie(e,t){if(e){if(typeof e=="string")return DR(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return DR(e,t)}}function DR(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function wie(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,l,u=[],d=!0,f=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(d=(r=s.call(n)).done)&&(u.push(r.value),u.length!==t);d=!0);}catch(p){f=!0,i=p}finally{try{if(!d&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(f)throw i}}return u}}function Aie(e){if(Array.isArray(e))return e}function CS(){return CS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},CS.apply(this,arguments)}var Oie=function(t,n){var r;return B.isValidElement(t)?r=B.cloneElement(t,n):_e(t)?r=t(n):r=B.createElement("line",CS({},n,{className:"recharts-reference-line-line"})),r},jie=function(t,n,r,i,s,l,u,d,f){var p=s.x,m=s.y,v=s.width,b=s.height;if(r){var A=f.y,S=t.y.apply(A,{position:l});if(Ir(f,"discard")&&!t.y.isInRange(S))return null;var w=[{x:p+v,y:S},{x:p,y:S}];return d==="left"?w.reverse():w}if(n){var O=f.x,_=t.x.apply(O,{position:l});if(Ir(f,"discard")&&!t.x.isInRange(_))return null;var T=[{x:_,y:m+b},{x:_,y:m}];return u==="top"?T.reverse():T}if(i){var M=f.segment,j=M.map(function(P){return t.apply(P,{position:l})});return Ir(f,"discard")&&yae(j,function(P){return!t.isInRange(P)})?null:j}return null};function Tie(e){var t=e.x,n=e.y,r=e.segment,i=e.xAxisId,s=e.yAxisId,l=e.shape,u=e.className,d=e.alwaysShow,f=oie(),p=C8(i),m=E8(s),v=cie();if(!f||!v)return null;Er(d===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var b=_A({x:p.scale,y:m.scale}),A=Ft(t),S=Ft(n),w=r&&r.length===2,O=jie(b,A,S,w,v,e.position,p.orientation,m.orientation,e);if(!O)return null;var _=bie(O,2),T=_[0],M=T.x,j=T.y,P=_[1],N=P.x,D=P.y,k=Ir(e,"hidden")?"url(#".concat(f,")"):void 0,U=MR(MR({clipPath:k},Ae(e,!0)),{},{x1:M,y1:j,x2:N,y2:D});return B.createElement(Ke,{className:Me("recharts-reference-line",u)},Oie(l,U),Zt.renderCallByParent(e,Xae({x1:M,y1:j,x2:N,y2:D})))}var kA=(function(e){function t(){return die(this,t),pie(this,t,arguments)}return vie(t,e),hie(t,[{key:"render",value:function(){return B.createElement(Tie,this.props)}}])})(B.Component);RA(kA,"displayName","ReferenceLine");RA(kA,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function ES(){return ES=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ES.apply(this,arguments)}function tl(e){"@babel/helpers - typeof";return tl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},tl(e)}function RR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function kR(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?RR(Object(n),!0).forEach(function(r){rm(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):RR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Cie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Eie(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,M8(r.key),r)}}function _ie(e,t,n){return t&&Eie(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Pie(e,t,n){return t=Jh(t),Nie(e,N8()?Reflect.construct(t,n||[],Jh(e).constructor):t.apply(e,n))}function Nie(e,t){if(t&&(tl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Mie(e)}function Mie(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function N8(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(N8=function(){return!!e})()}function Jh(e){return Jh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Jh(e)}function Die(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_S(e,t)}function _S(e,t){return _S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},_S(e,t)}function rm(e,t,n){return t=M8(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function M8(e){var t=Rie(e,"string");return tl(t)=="symbol"?t:t+""}function Rie(e,t){if(tl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(tl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var kie=function(t){var n=t.x,r=t.y,i=t.xAxis,s=t.yAxis,l=_A({x:i.scale,y:s.scale}),u=l.apply({x:n,y:r},{bandAware:!0});return Ir(t,"discard")&&!l.isInRange(u)?null:u},am=(function(e){function t(){return Cie(this,t),Pie(this,t,arguments)}return Die(t,e),_ie(t,[{key:"render",value:function(){var r=this.props,i=r.x,s=r.y,l=r.r,u=r.alwaysShow,d=r.clipPathId,f=Ft(i),p=Ft(s);if(Er(u===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!f||!p)return null;var m=kie(this.props);if(!m)return null;var v=m.x,b=m.y,A=this.props,S=A.shape,w=A.className,O=Ir(this.props,"hidden")?"url(#".concat(d,")"):void 0,_=kR(kR({clipPath:O},Ae(this.props,!0)),{},{cx:v,cy:b});return B.createElement(Ke,{className:Me("recharts-reference-dot",w)},t.renderDot(S,_),Zt.renderCallByParent(this.props,{x:v-l,y:b-l,width:2*l,height:2*l}))}}])})(B.Component);rm(am,"displayName","ReferenceDot");rm(am,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});rm(am,"renderDot",function(e,t){var n;return B.isValidElement(e)?n=B.cloneElement(e,t):_e(e)?n=e(t):n=B.createElement(Yp,ES({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),n});function PS(){return PS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},PS.apply(this,arguments)}function nl(e){"@babel/helpers - typeof";return nl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},nl(e)}function LR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function zR(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?LR(Object(n),!0).forEach(function(r){im(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):LR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Lie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function zie(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,R8(r.key),r)}}function $ie(e,t,n){return t&&zie(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Bie(e,t,n){return t=ep(t),Iie(e,D8()?Reflect.construct(t,n||[],ep(e).constructor):t.apply(e,n))}function Iie(e,t){if(t&&(nl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return qie(e)}function qie(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function D8(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(D8=function(){return!!e})()}function ep(e){return ep=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ep(e)}function Vie(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&NS(e,t)}function NS(e,t){return NS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},NS(e,t)}function im(e,t,n){return t=R8(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function R8(e){var t=Uie(e,"string");return nl(t)=="symbol"?t:t+""}function Uie(e,t){if(nl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(nl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Hie=function(t,n,r,i,s){var l=s.x1,u=s.x2,d=s.y1,f=s.y2,p=s.xAxis,m=s.yAxis;if(!p||!m)return null;var v=_A({x:p.scale,y:m.scale}),b={x:t?v.x.apply(l,{position:"start"}):v.x.rangeMin,y:r?v.y.apply(d,{position:"start"}):v.y.rangeMin},A={x:n?v.x.apply(u,{position:"end"}):v.x.rangeMax,y:i?v.y.apply(f,{position:"end"}):v.y.rangeMax};return Ir(s,"discard")&&(!v.isInRange(b)||!v.isInRange(A))?null:x8(b,A)},om=(function(e){function t(){return Lie(this,t),Bie(this,t,arguments)}return Vie(t,e),$ie(t,[{key:"render",value:function(){var r=this.props,i=r.x1,s=r.x2,l=r.y1,u=r.y2,d=r.className,f=r.alwaysShow,p=r.clipPathId;Er(f===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var m=Ft(i),v=Ft(s),b=Ft(l),A=Ft(u),S=this.props.shape;if(!m&&!v&&!b&&!A&&!S)return null;var w=Hie(m,v,b,A,this.props);if(!w&&!S)return null;var O=Ir(this.props,"hidden")?"url(#".concat(p,")"):void 0;return B.createElement(Ke,{className:Me("recharts-reference-area",d)},t.renderRect(S,zR(zR({clipPath:O},Ae(this.props,!0)),w)),Zt.renderCallByParent(this.props,w))}}])})(B.Component);im(om,"displayName","ReferenceArea");im(om,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});im(om,"renderRect",function(e,t){var n;return B.isValidElement(e)?n=B.cloneElement(e,t):_e(e)?n=e(t):n=B.createElement(EA,PS({},t,{className:"recharts-reference-area-rect"})),n});function k8(e,t,n){if(t<1)return[];if(t===1&&n===void 0)return e;for(var r=[],i=0;i<e.length;i+=t)r.push(e[i]);return r}function Fie(e,t,n){var r={width:e.width+t.width,height:e.height+t.height};return Wae(r,n)}function Gie(e,t,n){var r=n==="width",i=e.x,s=e.y,l=e.width,u=e.height;return t===1?{start:r?i:s,end:r?i+l:s+u}:{start:r?i+l:s+u,end:r?i:s}}function tp(e,t,n,r,i){if(e*t<e*r||e*t>e*i)return!1;var s=n();return e*(t-e*s/2-r)>=0&&e*(t+e*s/2-i)<=0}function Kie(e,t){return k8(e,t+1)}function Xie(e,t,n,r,i){for(var s=(r||[]).slice(),l=t.start,u=t.end,d=0,f=1,p=l,m=function(){var A=r?.[d];if(A===void 0)return{v:k8(r,f)};var S=d,w,O=function(){return w===void 0&&(w=n(A,S)),w},_=A.coordinate,T=d===0||tp(e,_,O,p,u);T||(d=0,p=l,f+=1),T&&(p=_+e*(O()/2+i),d+=f)},v;f<=s.length;)if(v=m(),v)return v.v;return[]}function Nu(e){"@babel/helpers - typeof";return Nu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Nu(e)}function $R(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function un(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?$R(Object(n),!0).forEach(function(r){Yie(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$R(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Yie(e,t,n){return t=Wie(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Wie(e){var t=Zie(e,"string");return Nu(t)=="symbol"?t:t+""}function Zie(e,t){if(Nu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Nu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Qie(e,t,n,r,i){for(var s=(r||[]).slice(),l=s.length,u=t.start,d=t.end,f=function(v){var b=s[v],A,S=function(){return A===void 0&&(A=n(b,v)),A};if(v===l-1){var w=e*(b.coordinate+e*S()/2-d);s[v]=b=un(un({},b),{},{tickCoord:w>0?b.coordinate-w*e:b.coordinate})}else s[v]=b=un(un({},b),{},{tickCoord:b.coordinate});var O=tp(e,b.tickCoord,S,u,d);O&&(d=b.tickCoord-e*(S()/2+i),s[v]=un(un({},b),{},{isShow:!0}))},p=l-1;p>=0;p--)f(p);return s}function Jie(e,t,n,r,i,s){var l=(r||[]).slice(),u=l.length,d=t.start,f=t.end;if(s){var p=r[u-1],m=n(p,u-1),v=e*(p.coordinate+e*m/2-f);l[u-1]=p=un(un({},p),{},{tickCoord:v>0?p.coordinate-v*e:p.coordinate});var b=tp(e,p.tickCoord,function(){return m},d,f);b&&(f=p.tickCoord-e*(m/2+i),l[u-1]=un(un({},p),{},{isShow:!0}))}for(var A=s?u-1:u,S=function(_){var T=l[_],M,j=function(){return M===void 0&&(M=n(T,_)),M};if(_===0){var P=e*(T.coordinate-e*j()/2-d);l[_]=T=un(un({},T),{},{tickCoord:P<0?T.coordinate-P*e:T.coordinate})}else l[_]=T=un(un({},T),{},{tickCoord:T.coordinate});var N=tp(e,T.tickCoord,j,d,f);N&&(d=T.tickCoord+e*(j()/2+i),l[_]=un(un({},T),{},{isShow:!0}))},w=0;w<A;w++)S(w);return l}function LA(e,t,n){var r=e.tick,i=e.ticks,s=e.viewBox,l=e.minTickGap,u=e.orientation,d=e.interval,f=e.tickFormatter,p=e.unit,m=e.angle;if(!i||!i.length||!r)return[];if(de(d)||Ao.isSsr)return Kie(i,typeof d=="number"&&de(d)?d:0);var v=[],b=u==="top"||u==="bottom"?"width":"height",A=p&&b==="width"?Bc(p,{fontSize:t,letterSpacing:n}):{width:0,height:0},S=function(T,M){var j=_e(f)?f(T.value,M):T.value;return b==="width"?Fie(Bc(j,{fontSize:t,letterSpacing:n}),A,m):Bc(j,{fontSize:t,letterSpacing:n})[b]},w=i.length>=2?pn(i[1].coordinate-i[0].coordinate):1,O=Gie(s,w,b);return d==="equidistantPreserveStart"?Xie(w,O,S,i,l):(d==="preserveStart"||d==="preserveStartEnd"?v=Jie(w,O,S,i,l,d==="preserveStartEnd"):v=Qie(w,O,S,i,l),v.filter(function(_){return _.isShow}))}var eoe=["viewBox"],toe=["viewBox"],noe=["ticks"];function rl(e){"@babel/helpers - typeof";return rl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},rl(e)}function As(){return As=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},As.apply(this,arguments)}function BR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Vt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?BR(Object(n),!0).forEach(function(r){zA(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):BR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function q0(e,t){if(e==null)return{};var n=roe(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function roe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function aoe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function IR(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,z8(r.key),r)}}function ioe(e,t,n){return t&&IR(e.prototype,t),n&&IR(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function ooe(e,t,n){return t=np(t),soe(e,L8()?Reflect.construct(t,n||[],np(e).constructor):t.apply(e,n))}function soe(e,t){if(t&&(rl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return loe(e)}function loe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function L8(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(L8=function(){return!!e})()}function np(e){return np=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},np(e)}function coe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&MS(e,t)}function MS(e,t){return MS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},MS(e,t)}function zA(e,t,n){return t=z8(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function z8(e){var t=uoe(e,"string");return rl(t)=="symbol"?t:t+""}function uoe(e,t){if(rl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(rl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Al=(function(e){function t(n){var r;return aoe(this,t),r=ooe(this,t,[n]),r.state={fontSize:"",letterSpacing:""},r}return coe(t,e),ioe(t,[{key:"shouldComponentUpdate",value:function(r,i){var s=r.viewBox,l=q0(r,eoe),u=this.props,d=u.viewBox,f=q0(u,toe);return!Ms(s,d)||!Ms(l,f)||!Ms(i,this.state)}},{key:"componentDidMount",value:function(){var r=this.layerReference;if(r){var i=r.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];i&&this.setState({fontSize:window.getComputedStyle(i).fontSize,letterSpacing:window.getComputedStyle(i).letterSpacing})}}},{key:"getTickLineCoord",value:function(r){var i=this.props,s=i.x,l=i.y,u=i.width,d=i.height,f=i.orientation,p=i.tickSize,m=i.mirror,v=i.tickMargin,b,A,S,w,O,_,T=m?-1:1,M=r.tickSize||p,j=de(r.tickCoord)?r.tickCoord:r.coordinate;switch(f){case"top":b=A=r.coordinate,w=l+ +!m*d,S=w-T*M,_=S-T*v,O=j;break;case"left":S=w=r.coordinate,A=s+ +!m*u,b=A-T*M,O=b-T*v,_=j;break;case"right":S=w=r.coordinate,A=s+ +m*u,b=A+T*M,O=b+T*v,_=j;break;default:b=A=r.coordinate,w=l+ +m*d,S=w+T*M,_=S+T*v,O=j;break}return{line:{x1:b,y1:S,x2:A,y2:w},tick:{x:O,y:_}}}},{key:"getTickTextAnchor",value:function(){var r=this.props,i=r.orientation,s=r.mirror,l;switch(i){case"left":l=s?"start":"end";break;case"right":l=s?"end":"start";break;default:l="middle";break}return l}},{key:"getTickVerticalAnchor",value:function(){var r=this.props,i=r.orientation,s=r.mirror,l="end";switch(i){case"left":case"right":l="middle";break;case"top":l=s?"start":"end";break;default:l=s?"end":"start";break}return l}},{key:"renderAxisLine",value:function(){var r=this.props,i=r.x,s=r.y,l=r.width,u=r.height,d=r.orientation,f=r.mirror,p=r.axisLine,m=Vt(Vt(Vt({},Ae(this.props,!1)),Ae(p,!1)),{},{fill:"none"});if(d==="top"||d==="bottom"){var v=+(d==="top"&&!f||d==="bottom"&&f);m=Vt(Vt({},m),{},{x1:i,y1:s+v*u,x2:i+l,y2:s+v*u})}else{var b=+(d==="left"&&!f||d==="right"&&f);m=Vt(Vt({},m),{},{x1:i+b*l,y1:s,x2:i+b*l,y2:s+u})}return B.createElement("line",As({},m,{className:Me("recharts-cartesian-axis-line",Un(p,"className"))}))}},{key:"renderTicks",value:function(r,i,s){var l=this,u=this.props,d=u.tickLine,f=u.stroke,p=u.tick,m=u.tickFormatter,v=u.unit,b=LA(Vt(Vt({},this.props),{},{ticks:r}),i,s),A=this.getTickTextAnchor(),S=this.getTickVerticalAnchor(),w=Ae(this.props,!1),O=Ae(p,!1),_=Vt(Vt({},w),{},{fill:"none"},Ae(d,!1)),T=b.map(function(M,j){var P=l.getTickLineCoord(M),N=P.line,D=P.tick,k=Vt(Vt(Vt(Vt({textAnchor:A,verticalAnchor:S},w),{},{stroke:"none",fill:f},O),D),{},{index:j,payload:M,visibleTicksCount:b.length,tickFormatter:m});return B.createElement(Ke,As({className:"recharts-cartesian-axis-tick",key:"tick-".concat(M.value,"-").concat(M.coordinate,"-").concat(M.tickCoord)},po(l.props,M,j)),d&&B.createElement("line",As({},_,N,{className:Me("recharts-cartesian-axis-tick-line",Un(d,"className"))})),p&&t.renderTickItem(p,k,"".concat(_e(m)?m(M.value,j):M.value).concat(v||"")))});return B.createElement("g",{className:"recharts-cartesian-axis-ticks"},T)}},{key:"render",value:function(){var r=this,i=this.props,s=i.axisLine,l=i.width,u=i.height,d=i.ticksGenerator,f=i.className,p=i.hide;if(p)return null;var m=this.props,v=m.ticks,b=q0(m,noe),A=v;return _e(d)&&(A=v&&v.length>0?d(this.props):d(b)),l<=0||u<=0||!A||!A.length?null:B.createElement(Ke,{className:Me("recharts-cartesian-axis",f),ref:function(w){r.layerReference=w}},s&&this.renderAxisLine(),this.renderTicks(A,this.state.fontSize,this.state.letterSpacing),Zt.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(r,i,s){var l,u=Me(i.className,"recharts-cartesian-axis-tick-value");return B.isValidElement(r)?l=B.cloneElement(r,Vt(Vt({},i),{},{className:u})):_e(r)?l=r(Vt(Vt({},i),{},{className:u})):l=B.createElement(mo,As({},i,{className:"recharts-cartesian-axis-tick-value"}),s),l}}])})(C.Component);zA(Al,"displayName","CartesianAxis");zA(Al,"defaultProps",{x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"});var doe=["x1","y1","x2","y2","key"],foe=["offset"];function yo(e){"@babel/helpers - typeof";return yo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},yo(e)}function qR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function dn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?qR(Object(n),!0).forEach(function(r){hoe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function hoe(e,t,n){return t=poe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function poe(e){var t=moe(e,"string");return yo(t)=="symbol"?t:t+""}function moe(e,t){if(yo(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(yo(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function no(){return no=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},no.apply(this,arguments)}function VR(e,t){if(e==null)return{};var n=goe(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function goe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var voe=function(t){var n=t.fill;if(!n||n==="none")return null;var r=t.fillOpacity,i=t.x,s=t.y,l=t.width,u=t.height,d=t.ry;return B.createElement("rect",{x:i,y:s,ry:d,width:l,height:u,stroke:"none",fill:n,fillOpacity:r,className:"recharts-cartesian-grid-bg"})};function $8(e,t){var n;if(B.isValidElement(e))n=B.cloneElement(e,t);else if(_e(e))n=e(t);else{var r=t.x1,i=t.y1,s=t.x2,l=t.y2,u=t.key,d=VR(t,doe),f=Ae(d,!1);f.offset;var p=VR(f,foe);n=B.createElement("line",no({},p,{x1:r,y1:i,x2:s,y2:l,fill:"none",key:u}))}return n}function yoe(e){var t=e.x,n=e.width,r=e.horizontal,i=r===void 0?!0:r,s=e.horizontalPoints;if(!i||!s||!s.length)return null;var l=s.map(function(u,d){var f=dn(dn({},e),{},{x1:t,y1:u,x2:t+n,y2:u,key:"line-".concat(d),index:d});return $8(i,f)});return B.createElement("g",{className:"recharts-cartesian-grid-horizontal"},l)}function boe(e){var t=e.y,n=e.height,r=e.vertical,i=r===void 0?!0:r,s=e.verticalPoints;if(!i||!s||!s.length)return null;var l=s.map(function(u,d){var f=dn(dn({},e),{},{x1:u,y1:t,x2:u,y2:t+n,key:"line-".concat(d),index:d});return $8(i,f)});return B.createElement("g",{className:"recharts-cartesian-grid-vertical"},l)}function xoe(e){var t=e.horizontalFill,n=e.fillOpacity,r=e.x,i=e.y,s=e.width,l=e.height,u=e.horizontalPoints,d=e.horizontal,f=d===void 0?!0:d;if(!f||!t||!t.length)return null;var p=u.map(function(v){return Math.round(v+i-i)}).sort(function(v,b){return v-b});i!==p[0]&&p.unshift(0);var m=p.map(function(v,b){var A=!p[b+1],S=A?i+l-v:p[b+1]-v;if(S<=0)return null;var w=b%t.length;return B.createElement("rect",{key:"react-".concat(b),y:v,x:r,height:S,width:s,stroke:"none",fill:t[w],fillOpacity:n,className:"recharts-cartesian-grid-bg"})});return B.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},m)}function Soe(e){var t=e.vertical,n=t===void 0?!0:t,r=e.verticalFill,i=e.fillOpacity,s=e.x,l=e.y,u=e.width,d=e.height,f=e.verticalPoints;if(!n||!r||!r.length)return null;var p=f.map(function(v){return Math.round(v+s-s)}).sort(function(v,b){return v-b});s!==p[0]&&p.unshift(0);var m=p.map(function(v,b){var A=!p[b+1],S=A?s+u-v:p[b+1]-v;if(S<=0)return null;var w=b%r.length;return B.createElement("rect",{key:"react-".concat(b),x:v,y:l,width:S,height:d,stroke:"none",fill:r[w],fillOpacity:i,className:"recharts-cartesian-grid-bg"})});return B.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},m)}var woe=function(t,n){var r=t.xAxis,i=t.width,s=t.height,l=t.offset;return $L(LA(dn(dn(dn({},Al.defaultProps),r),{},{ticks:ba(r,!0),viewBox:{x:0,y:0,width:i,height:s}})),l.left,l.left+l.width,n)},Aoe=function(t,n){var r=t.yAxis,i=t.width,s=t.height,l=t.offset;return $L(LA(dn(dn(dn({},Al.defaultProps),r),{},{ticks:ba(r,!0),viewBox:{x:0,y:0,width:i,height:s}})),l.top,l.top+l.height,n)},ys={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function DS(e){var t,n,r,i,s,l,u=MA(),d=DA(),f=uie(),p=dn(dn({},e),{},{stroke:(t=e.stroke)!==null&&t!==void 0?t:ys.stroke,fill:(n=e.fill)!==null&&n!==void 0?n:ys.fill,horizontal:(r=e.horizontal)!==null&&r!==void 0?r:ys.horizontal,horizontalFill:(i=e.horizontalFill)!==null&&i!==void 0?i:ys.horizontalFill,vertical:(s=e.vertical)!==null&&s!==void 0?s:ys.vertical,verticalFill:(l=e.verticalFill)!==null&&l!==void 0?l:ys.verticalFill,x:de(e.x)?e.x:f.left,y:de(e.y)?e.y:f.top,width:de(e.width)?e.width:f.width,height:de(e.height)?e.height:f.height}),m=p.x,v=p.y,b=p.width,A=p.height,S=p.syncWithTicks,w=p.horizontalValues,O=p.verticalValues,_=sie(),T=lie();if(!de(b)||b<=0||!de(A)||A<=0||!de(m)||m!==+m||!de(v)||v!==+v)return null;var M=p.verticalCoordinatesGenerator||woe,j=p.horizontalCoordinatesGenerator||Aoe,P=p.horizontalPoints,N=p.verticalPoints;if((!P||!P.length)&&_e(j)){var D=w&&w.length,k=j({yAxis:T?dn(dn({},T),{},{ticks:D?w:T.ticks}):void 0,width:u,height:d,offset:f},D?!0:S);Er(Array.isArray(k),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(yo(k),"]")),Array.isArray(k)&&(P=k)}if((!N||!N.length)&&_e(M)){var U=O&&O.length,$=M({xAxis:_?dn(dn({},_),{},{ticks:U?O:_.ticks}):void 0,width:u,height:d,offset:f},U?!0:S);Er(Array.isArray($),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(yo($),"]")),Array.isArray($)&&(N=$)}return B.createElement("g",{className:"recharts-cartesian-grid"},B.createElement(voe,{fill:p.fill,fillOpacity:p.fillOpacity,x:p.x,y:p.y,width:p.width,height:p.height,ry:p.ry}),B.createElement(yoe,no({},p,{offset:f,horizontalPoints:P,xAxis:_,yAxis:T})),B.createElement(boe,no({},p,{offset:f,verticalPoints:N,xAxis:_,yAxis:T})),B.createElement(xoe,no({},p,{horizontalPoints:P})),B.createElement(Soe,no({},p,{verticalPoints:N})))}DS.displayName="CartesianGrid";var Ooe=["type","layout","connectNulls","ref"],joe=["key"];function al(e){"@babel/helpers - typeof";return al=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},al(e)}function UR(e,t){if(e==null)return{};var n=Toe(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Toe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Fc(){return Fc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Fc.apply(this,arguments)}function HR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function zn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?HR(Object(n),!0).forEach(function(r){Tr(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):HR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function bs(e){return Poe(e)||_oe(e)||Eoe(e)||Coe()}function Coe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Eoe(e,t){if(e){if(typeof e=="string")return RS(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return RS(e,t)}}function _oe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Poe(e){if(Array.isArray(e))return RS(e)}function RS(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Noe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function FR(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,I8(r.key),r)}}function Moe(e,t,n){return t&&FR(e.prototype,t),n&&FR(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Doe(e,t,n){return t=rp(t),Roe(e,B8()?Reflect.construct(t,n||[],rp(e).constructor):t.apply(e,n))}function Roe(e,t){if(t&&(al(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return koe(e)}function koe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function B8(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(B8=function(){return!!e})()}function rp(e){return rp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},rp(e)}function Loe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&kS(e,t)}function kS(e,t){return kS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},kS(e,t)}function Tr(e,t,n){return t=I8(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function I8(e){var t=zoe(e,"string");return al(t)=="symbol"?t:t+""}function zoe(e,t){if(al(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(al(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Ju=(function(e){function t(){var n;Noe(this,t);for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];return n=Doe(this,t,[].concat(i)),Tr(n,"state",{isAnimationFinished:!0,totalLength:0}),Tr(n,"generateSimpleStrokeDasharray",function(l,u){return"".concat(u,"px ").concat(l-u,"px")}),Tr(n,"getStrokeDasharray",function(l,u,d){var f=d.reduce(function(O,_){return O+_});if(!f)return n.generateSimpleStrokeDasharray(u,l);for(var p=Math.floor(l/f),m=l%f,v=u-l,b=[],A=0,S=0;A<d.length;S+=d[A],++A)if(S+d[A]>m){b=[].concat(bs(d.slice(0,A)),[m-S]);break}var w=b.length%2===0?[0,v]:[v];return[].concat(bs(t.repeat(d,p)),bs(b),w).map(function(O){return"".concat(O,"px")}).join(", ")}),Tr(n,"id",yl("recharts-line-")),Tr(n,"pathRef",function(l){n.mainCurve=l}),Tr(n,"handleAnimationEnd",function(){n.setState({isAnimationFinished:!0}),n.props.onAnimationEnd&&n.props.onAnimationEnd()}),Tr(n,"handleAnimationStart",function(){n.setState({isAnimationFinished:!1}),n.props.onAnimationStart&&n.props.onAnimationStart()}),n}return Loe(t,e),Moe(t,[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var r=this.getTotalLength();this.setState({totalLength:r})}}},{key:"componentDidUpdate",value:function(){if(this.props.isAnimationActive){var r=this.getTotalLength();r!==this.state.totalLength&&this.setState({totalLength:r})}}},{key:"getTotalLength",value:function(){var r=this.mainCurve;try{return r&&r.getTotalLength&&r.getTotalLength()||0}catch{return 0}}},{key:"renderErrorBar",value:function(r,i){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var s=this.props,l=s.points,u=s.xAxis,d=s.yAxis,f=s.layout,p=s.children,m=Hn(p,Qu);if(!m)return null;var v=function(S,w){return{x:S.x,y:S.y,value:S.value,errorVal:Ht(S.payload,w)}},b={clipPath:r?"url(#clipPath-".concat(i,")"):null};return B.createElement(Ke,b,m.map(function(A){return B.cloneElement(A,{key:"bar-".concat(A.props.dataKey),data:l,xAxis:u,yAxis:d,layout:f,dataPointFormatter:v})}))}},{key:"renderDots",value:function(r,i,s){var l=this.props.isAnimationActive;if(l&&!this.state.isAnimationFinished)return null;var u=this.props,d=u.dot,f=u.points,p=u.dataKey,m=Ae(this.props,!1),v=Ae(d,!0),b=f.map(function(S,w){var O=zn(zn(zn({key:"dot-".concat(w),r:3},m),v),{},{index:w,cx:S.x,cy:S.y,value:S.value,dataKey:p,payload:S.payload,points:f});return t.renderDotItem(d,O)}),A={clipPath:r?"url(#clipPath-".concat(i?"":"dots-").concat(s,")"):null};return B.createElement(Ke,Fc({className:"recharts-line-dots",key:"dots"},A),b)}},{key:"renderCurveStatically",value:function(r,i,s,l){var u=this.props,d=u.type,f=u.layout,p=u.connectNulls;u.ref;var m=UR(u,Ooe),v=zn(zn(zn({},Ae(m,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:i?"url(#clipPath-".concat(s,")"):null,points:r},l),{},{type:d,layout:f,connectNulls:p});return B.createElement(zh,Fc({},v,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(r,i){var s=this,l=this.props,u=l.points,d=l.strokeDasharray,f=l.isAnimationActive,p=l.animationBegin,m=l.animationDuration,v=l.animationEasing,b=l.animationId,A=l.animateNewValues,S=l.width,w=l.height,O=this.state,_=O.prevPoints,T=O.totalLength;return B.createElement(Hr,{begin:p,duration:m,isActive:f,easing:v,from:{t:0},to:{t:1},key:"line-".concat(b),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(M){var j=M.t;if(_){var P=_.length/u.length,N=u.map(function(H,X){var J=Math.floor(X*P);if(_[J]){var Z=_[J],L=In(Z.x,H.x),V=In(Z.y,H.y);return zn(zn({},H),{},{x:L(j),y:V(j)})}if(A){var F=In(S*2,H.x),ie=In(w/2,H.y);return zn(zn({},H),{},{x:F(j),y:ie(j)})}return zn(zn({},H),{},{x:H.x,y:H.y})});return s.renderCurveStatically(N,r,i)}var D=In(0,T),k=D(j),U;if(d){var $="".concat(d).split(/[,\s]+/gim).map(function(H){return parseFloat(H)});U=s.getStrokeDasharray(k,T,$)}else U=s.generateSimpleStrokeDasharray(T,k);return s.renderCurveStatically(u,r,i,{strokeDasharray:U})})}},{key:"renderCurve",value:function(r,i){var s=this.props,l=s.points,u=s.isAnimationActive,d=this.state,f=d.prevPoints,p=d.totalLength;return u&&l&&l.length&&(!f&&p>0||!Zu(f,l))?this.renderCurveWithAnimation(r,i):this.renderCurveStatically(l,r,i)}},{key:"render",value:function(){var r,i=this.props,s=i.hide,l=i.dot,u=i.points,d=i.className,f=i.xAxis,p=i.yAxis,m=i.top,v=i.left,b=i.width,A=i.height,S=i.isAnimationActive,w=i.id;if(s||!u||!u.length)return null;var O=this.state.isAnimationFinished,_=u.length===1,T=Me("recharts-line",d),M=f&&f.allowDataOverflow,j=p&&p.allowDataOverflow,P=M||j,N=Ne(w)?this.id:w,D=(r=Ae(l,!1))!==null&&r!==void 0?r:{r:3,strokeWidth:2},k=D.r,U=k===void 0?3:k,$=D.strokeWidth,H=$===void 0?2:$,X=mF(l)?l:{},J=X.clipDot,Z=J===void 0?!0:J,L=U*2+H;return B.createElement(Ke,{className:T},M||j?B.createElement("defs",null,B.createElement("clipPath",{id:"clipPath-".concat(N)},B.createElement("rect",{x:M?v:v-b/2,y:j?m:m-A/2,width:M?b:b*2,height:j?A:A*2})),!Z&&B.createElement("clipPath",{id:"clipPath-dots-".concat(N)},B.createElement("rect",{x:v-L/2,y:m-L/2,width:b+L,height:A+L}))):null,!_&&this.renderCurve(P,N),this.renderErrorBar(P,N),(_||l)&&this.renderDots(P,Z,N),(!S||O)&&wa.renderCallByParent(this.props,u))}}],[{key:"getDerivedStateFromProps",value:function(r,i){return r.animationId!==i.prevAnimationId?{prevAnimationId:r.animationId,curPoints:r.points,prevPoints:i.curPoints}:r.points!==i.curPoints?{curPoints:r.points}:null}},{key:"repeat",value:function(r,i){for(var s=r.length%2!==0?[].concat(bs(r),[0]):r,l=[],u=0;u<i;++u)l=[].concat(bs(l),bs(s));return l}},{key:"renderDotItem",value:function(r,i){var s;if(B.isValidElement(r))s=B.cloneElement(r,i);else if(_e(r))s=r(i);else{var l=i.key,u=UR(i,joe),d=Me("recharts-line-dot",typeof r!="boolean"?r.className:"");s=B.createElement(Yp,Fc({key:l},u,{className:d}))}return s}}])})(C.PureComponent);Tr(Ju,"displayName","Line");Tr(Ju,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!Ao.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1});Tr(Ju,"getComposedData",function(e){var t=e.props,n=e.xAxis,r=e.yAxis,i=e.xAxisTicks,s=e.yAxisTicks,l=e.dataKey,u=e.bandSize,d=e.displayedData,f=e.offset,p=t.layout,m=d.map(function(v,b){var A=Ht(v,l);return p==="horizontal"?{x:KM({axis:n,ticks:i,bandSize:u,entry:v,index:b}),y:Ne(A)?null:r.scale(A),value:A,payload:v}:{x:Ne(A)?null:n.scale(A),y:KM({axis:r,ticks:s,bandSize:u,entry:v,index:b}),value:A,payload:v}});return zn({points:m,layout:p},f)});function il(e){"@babel/helpers - typeof";return il=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},il(e)}function $oe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Boe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,U8(r.key),r)}}function Ioe(e,t,n){return t&&Boe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function qoe(e,t,n){return t=ap(t),Voe(e,q8()?Reflect.construct(t,n||[],ap(e).constructor):t.apply(e,n))}function Voe(e,t){if(t&&(il(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Uoe(e)}function Uoe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function q8(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(q8=function(){return!!e})()}function ap(e){return ap=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ap(e)}function Hoe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&LS(e,t)}function LS(e,t){return LS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},LS(e,t)}function V8(e,t,n){return t=U8(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function U8(e){var t=Foe(e,"string");return il(t)=="symbol"?t:t+""}function Foe(e,t){if(il(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(il(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function zS(){return zS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zS.apply(this,arguments)}function Goe(e){var t=e.xAxisId,n=MA(),r=DA(),i=C8(t);return i==null?null:C.createElement(Al,zS({},i,{className:Me("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:n,height:r},ticksGenerator:function(l){return ba(l,!0)}}))}var ol=(function(e){function t(){return $oe(this,t),qoe(this,t,arguments)}return Hoe(t,e),Ioe(t,[{key:"render",value:function(){return C.createElement(Goe,this.props)}}])})(C.Component);V8(ol,"displayName","XAxis");V8(ol,"defaultProps",{allowDecimals:!0,hide:!1,orientation:"bottom",width:0,height:30,mirror:!1,xAxisId:0,tickCount:5,type:"category",padding:{left:0,right:0},allowDataOverflow:!1,scale:"auto",reversed:!1,allowDuplicatedCategory:!0});function sl(e){"@babel/helpers - typeof";return sl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},sl(e)}function Koe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Xoe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,G8(r.key),r)}}function Yoe(e,t,n){return t&&Xoe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Woe(e,t,n){return t=ip(t),Zoe(e,H8()?Reflect.construct(t,n||[],ip(e).constructor):t.apply(e,n))}function Zoe(e,t){if(t&&(sl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Qoe(e)}function Qoe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function H8(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(H8=function(){return!!e})()}function ip(e){return ip=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ip(e)}function Joe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&$S(e,t)}function $S(e,t){return $S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},$S(e,t)}function F8(e,t,n){return t=G8(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function G8(e){var t=ese(e,"string");return sl(t)=="symbol"?t:t+""}function ese(e,t){if(sl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(sl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function BS(){return BS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},BS.apply(this,arguments)}var tse=function(t){var n=t.yAxisId,r=MA(),i=DA(),s=E8(n);return s==null?null:C.createElement(Al,BS({},s,{className:Me("recharts-".concat(s.axisType," ").concat(s.axisType),s.className),viewBox:{x:0,y:0,width:r,height:i},ticksGenerator:function(u){return ba(u,!0)}}))},ll=(function(e){function t(){return Koe(this,t),Woe(this,t,arguments)}return Joe(t,e),Yoe(t,[{key:"render",value:function(){return C.createElement(tse,this.props)}}])})(C.Component);F8(ll,"displayName","YAxis");F8(ll,"defaultProps",{allowDuplicatedCategory:!0,allowDecimals:!0,hide:!1,orientation:"left",width:60,height:0,mirror:!1,yAxisId:0,tickCount:5,type:"number",padding:{top:0,bottom:0},allowDataOverflow:!1,scale:"auto",reversed:!1});function GR(e){return ise(e)||ase(e)||rse(e)||nse()}function nse(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function rse(e,t){if(e){if(typeof e=="string")return IS(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return IS(e,t)}}function ase(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function ise(e){if(Array.isArray(e))return IS(e)}function IS(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var qS=function(t,n,r,i,s){var l=Hn(t,kA),u=Hn(t,am),d=[].concat(GR(l),GR(u)),f=Hn(t,om),p="".concat(i,"Id"),m=i[0],v=n;if(d.length&&(v=d.reduce(function(S,w){if(w.props[p]===r&&Ir(w.props,"extendDomain")&&de(w.props[m])){var O=w.props[m];return[Math.min(S[0],O),Math.max(S[1],O)]}return S},v)),f.length){var b="".concat(m,"1"),A="".concat(m,"2");v=f.reduce(function(S,w){if(w.props[p]===r&&Ir(w.props,"extendDomain")&&de(w.props[b])&&de(w.props[A])){var O=w.props[b],_=w.props[A];return[Math.min(S[0],O,_),Math.max(S[1],O,_)]}return S},v)}return s&&s.length&&(v=s.reduce(function(S,w){return de(w)?[Math.min(S[0],w),Math.max(S[1],w)]:S},v)),v},V0={exports:{}},KR;function ose(){return KR||(KR=1,(function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1));function i(d,f,p){this.fn=d,this.context=f,this.once=p||!1}function s(d,f,p,m,v){if(typeof p!="function")throw new TypeError("The listener must be a function");var b=new i(p,m||d,v),A=n?n+f:f;return d._events[A]?d._events[A].fn?d._events[A]=[d._events[A],b]:d._events[A].push(b):(d._events[A]=b,d._eventsCount++),d}function l(d,f){--d._eventsCount===0?d._events=new r:delete d._events[f]}function u(){this._events=new r,this._eventsCount=0}u.prototype.eventNames=function(){var f=[],p,m;if(this._eventsCount===0)return f;for(m in p=this._events)t.call(p,m)&&f.push(n?m.slice(1):m);return Object.getOwnPropertySymbols?f.concat(Object.getOwnPropertySymbols(p)):f},u.prototype.listeners=function(f){var p=n?n+f:f,m=this._events[p];if(!m)return[];if(m.fn)return[m.fn];for(var v=0,b=m.length,A=new Array(b);v<b;v++)A[v]=m[v].fn;return A},u.prototype.listenerCount=function(f){var p=n?n+f:f,m=this._events[p];return m?m.fn?1:m.length:0},u.prototype.emit=function(f,p,m,v,b,A){var S=n?n+f:f;if(!this._events[S])return!1;var w=this._events[S],O=arguments.length,_,T;if(w.fn){switch(w.once&&this.removeListener(f,w.fn,void 0,!0),O){case 1:return w.fn.call(w.context),!0;case 2:return w.fn.call(w.context,p),!0;case 3:return w.fn.call(w.context,p,m),!0;case 4:return w.fn.call(w.context,p,m,v),!0;case 5:return w.fn.call(w.context,p,m,v,b),!0;case 6:return w.fn.call(w.context,p,m,v,b,A),!0}for(T=1,_=new Array(O-1);T<O;T++)_[T-1]=arguments[T];w.fn.apply(w.context,_)}else{var M=w.length,j;for(T=0;T<M;T++)switch(w[T].once&&this.removeListener(f,w[T].fn,void 0,!0),O){case 1:w[T].fn.call(w[T].context);break;case 2:w[T].fn.call(w[T].context,p);break;case 3:w[T].fn.call(w[T].context,p,m);break;case 4:w[T].fn.call(w[T].context,p,m,v);break;default:if(!_)for(j=1,_=new Array(O-1);j<O;j++)_[j-1]=arguments[j];w[T].fn.apply(w[T].context,_)}}return!0},u.prototype.on=function(f,p,m){return s(this,f,p,m,!1)},u.prototype.once=function(f,p,m){return s(this,f,p,m,!0)},u.prototype.removeListener=function(f,p,m,v){var b=n?n+f:f;if(!this._events[b])return this;if(!p)return l(this,b),this;var A=this._events[b];if(A.fn)A.fn===p&&(!v||A.once)&&(!m||A.context===m)&&l(this,b);else{for(var S=0,w=[],O=A.length;S<O;S++)(A[S].fn!==p||v&&!A[S].once||m&&A[S].context!==m)&&w.push(A[S]);w.length?this._events[b]=w.length===1?w[0]:w:l(this,b)}return this},u.prototype.removeAllListeners=function(f){var p;return f?(p=n?n+f:f,this._events[p]&&l(this,p)):(this._events=new r,this._eventsCount=0),this},u.prototype.off=u.prototype.removeListener,u.prototype.addListener=u.prototype.on,u.prefixed=n,u.EventEmitter=u,e.exports=u})(V0)),V0.exports}var sse=ose();const lse=tt(sse);var U0=new lse,H0="recharts.syncMouseEvents";function Mu(e){"@babel/helpers - typeof";return Mu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Mu(e)}function cse(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function use(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,K8(r.key),r)}}function dse(e,t,n){return t&&use(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function F0(e,t,n){return t=K8(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function K8(e){var t=fse(e,"string");return Mu(t)=="symbol"?t:t+""}function fse(e,t){if(Mu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Mu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var hse=(function(){function e(){cse(this,e),F0(this,"activeIndex",0),F0(this,"coordinateList",[]),F0(this,"layout","horizontal")}return dse(e,[{key:"setDetails",value:function(n){var r,i=n.coordinateList,s=i===void 0?null:i,l=n.container,u=l===void 0?null:l,d=n.layout,f=d===void 0?null:d,p=n.offset,m=p===void 0?null:p,v=n.mouseHandlerCallback,b=v===void 0?null:v;this.coordinateList=(r=s??this.coordinateList)!==null&&r!==void 0?r:[],this.container=u??this.container,this.layout=f??this.layout,this.offset=m??this.offset,this.mouseHandlerCallback=b??this.mouseHandlerCallback,this.activeIndex=Math.min(Math.max(this.activeIndex,0),this.coordinateList.length-1)}},{key:"focus",value:function(){this.spoofMouse()}},{key:"keyboardEvent",value:function(n){if(this.coordinateList.length!==0)switch(n.key){case"ArrowRight":{if(this.layout!=="horizontal")return;this.activeIndex=Math.min(this.activeIndex+1,this.coordinateList.length-1),this.spoofMouse();break}case"ArrowLeft":{if(this.layout!=="horizontal")return;this.activeIndex=Math.max(this.activeIndex-1,0),this.spoofMouse();break}}}},{key:"setIndex",value:function(n){this.activeIndex=n}},{key:"spoofMouse",value:function(){var n,r;if(this.layout==="horizontal"&&this.coordinateList.length!==0){var i=this.container.getBoundingClientRect(),s=i.x,l=i.y,u=i.height,d=this.coordinateList[this.activeIndex].coordinate,f=((n=window)===null||n===void 0?void 0:n.scrollX)||0,p=((r=window)===null||r===void 0?void 0:r.scrollY)||0,m=s+d+f,v=l+this.offset.top+u/2+p;this.mouseHandlerCallback({pageX:m,pageY:v})}}}])})();function pse(e,t,n){if(n==="number"&&t===!0&&Array.isArray(e)){var r=e?.[0],i=e?.[1];if(r&&i&&de(r)&&de(i))return!0}return!1}function mse(e,t,n,r){var i=r/2;return{stroke:"none",fill:"#ccc",x:e==="horizontal"?t.x-i:n.left+.5,y:e==="horizontal"?n.top+.5:t.y-i,width:e==="horizontal"?r:n.width-1,height:e==="horizontal"?n.height-1:r}}function X8(e){var t=e.cx,n=e.cy,r=e.radius,i=e.startAngle,s=e.endAngle,l=ft(t,n,r,i),u=ft(t,n,r,s);return{points:[l,u],cx:t,cy:n,radius:r,startAngle:i,endAngle:s}}function gse(e,t,n){var r,i,s,l;if(e==="horizontal")r=t.x,s=r,i=n.top,l=n.top+n.height;else if(e==="vertical")i=t.y,l=i,r=n.left,s=n.left+n.width;else if(t.cx!=null&&t.cy!=null)if(e==="centric"){var u=t.cx,d=t.cy,f=t.innerRadius,p=t.outerRadius,m=t.angle,v=ft(u,d,f,m),b=ft(u,d,p,m);r=v.x,i=v.y,s=b.x,l=b.y}else return X8(t);return[{x:r,y:i},{x:s,y:l}]}function Du(e){"@babel/helpers - typeof";return Du=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Du(e)}function XR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Hf(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?XR(Object(n),!0).forEach(function(r){vse(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):XR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function vse(e,t,n){return t=yse(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yse(e){var t=bse(e,"string");return Du(t)=="symbol"?t:t+""}function bse(e,t){if(Du(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Du(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function xse(e){var t,n,r=e.element,i=e.tooltipEventType,s=e.isActive,l=e.activeCoordinate,u=e.activePayload,d=e.offset,f=e.activeTooltipIndex,p=e.tooltipAxisBandSize,m=e.layout,v=e.chartName,b=(t=r.props.cursor)!==null&&t!==void 0?t:(n=r.type.defaultProps)===null||n===void 0?void 0:n.cursor;if(!r||!b||!s||!l||v!=="ScatterChart"&&i!=="axis")return null;var A,S=zh;if(v==="ScatterChart")A=l,S=Vne;else if(v==="BarChart")A=mse(m,l,d,p),S=EA;else if(m==="radial"){var w=X8(l),O=w.cx,_=w.cy,T=w.radius,M=w.startAngle,j=w.endAngle;A={cx:O,cy:_,startAngle:M,endAngle:j,innerRadius:T,outerRadius:T},S=YL}else A={points:gse(m,l,d)},S=zh;var P=Hf(Hf(Hf(Hf({stroke:"#ccc",pointerEvents:"none"},d),A),Ae(b,!1)),{},{payload:u,payloadIndex:f,className:Me("recharts-tooltip-cursor",b.className)});return C.isValidElement(b)?C.cloneElement(b,P):C.createElement(S,P)}var Sse=["item"],wse=["children","className","width","height","style","compact","title","desc"];function cl(e){"@babel/helpers - typeof";return cl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},cl(e)}function Os(){return Os=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Os.apply(this,arguments)}function YR(e,t){return jse(e)||Ose(e,t)||W8(e,t)||Ase()}function Ase(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ose(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,l,u=[],d=!0,f=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(d=(r=s.call(n)).done)&&(u.push(r.value),u.length!==t);d=!0);}catch(p){f=!0,i=p}finally{try{if(!d&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(f)throw i}}return u}}function jse(e){if(Array.isArray(e))return e}function WR(e,t){if(e==null)return{};var n=Tse(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Tse(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Cse(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ese(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Z8(r.key),r)}}function _se(e,t,n){return t&&Ese(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Pse(e,t,n){return t=op(t),Nse(e,Y8()?Reflect.construct(t,n||[],op(e).constructor):t.apply(e,n))}function Nse(e,t){if(t&&(cl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Mse(e)}function Mse(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Y8(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Y8=function(){return!!e})()}function op(e){return op=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},op(e)}function Dse(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&VS(e,t)}function VS(e,t){return VS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},VS(e,t)}function ul(e){return Lse(e)||kse(e)||W8(e)||Rse()}function Rse(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function W8(e,t){if(e){if(typeof e=="string")return US(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return US(e,t)}}function kse(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Lse(e){if(Array.isArray(e))return US(e)}function US(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ZR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function re(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ZR(Object(n),!0).forEach(function(r){Te(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ZR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Te(e,t,n){return t=Z8(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Z8(e){var t=zse(e,"string");return cl(t)=="symbol"?t:t+""}function zse(e,t){if(cl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(cl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var $se={xAxis:["bottom","top"],yAxis:["left","right"]},Bse={width:"100%",height:"100%"},Q8={x:0,y:0};function Ff(e){return e}var Ise=function(t,n){return n==="horizontal"?t.x:n==="vertical"?t.y:n==="centric"?t.angle:t.radius},qse=function(t,n,r,i){var s=n.find(function(p){return p&&p.index===r});if(s){if(t==="horizontal")return{x:s.coordinate,y:i.y};if(t==="vertical")return{x:i.x,y:s.coordinate};if(t==="centric"){var l=s.coordinate,u=i.radius;return re(re(re({},i),ft(i.cx,i.cy,u,l)),{},{angle:l,radius:u})}var d=s.coordinate,f=i.angle;return re(re(re({},i),ft(i.cx,i.cy,d,f)),{},{angle:f,radius:d})}return Q8},sm=function(t,n){var r=n.graphicalItems,i=n.dataStartIndex,s=n.dataEndIndex,l=(r??[]).reduce(function(u,d){var f=d.props.data;return f&&f.length?[].concat(ul(u),ul(f)):u},[]);return l.length>0?l:t&&t.length&&de(i)&&de(s)?t.slice(i,s+1):[]};function J8(e){return e==="number"?[0,"auto"]:void 0}var HS=function(t,n,r,i){var s=t.graphicalItems,l=t.tooltipAxis,u=sm(n,t);return r<0||!s||!s.length||r>=u.length?null:s.reduce(function(d,f){var p,m=(p=f.props.data)!==null&&p!==void 0?p:n;m&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=r&&(m=m.slice(t.dataStartIndex,t.dataEndIndex+1));var v;if(l.dataKey&&!l.allowDuplicatedCategory){var b=m===void 0?u:m;v=ch(b,l.dataKey,i)}else v=m&&m[r]||u[r];return v?[].concat(ul(d),[UL(f,v)]):d},[])},QR=function(t,n,r,i){var s=i||{x:t.chartX,y:t.chartY},l=Ise(s,r),u=t.orderedTooltipTicks,d=t.tooltipAxis,f=t.tooltipTicks,p=fJ(l,u,f,d);if(p>=0&&f){var m=f[p]&&f[p].value,v=HS(t,n,p,m),b=qse(r,u,p,s);return{activeTooltipIndex:p,activeLabel:m,activePayload:v,activeCoordinate:b}}return null},Vse=function(t,n){var r=n.axes,i=n.graphicalItems,s=n.axisType,l=n.axisIdKey,u=n.stackGroups,d=n.dataStartIndex,f=n.dataEndIndex,p=t.layout,m=t.children,v=t.stackOffset,b=zL(p,s);return r.reduce(function(A,S){var w,O=S.type.defaultProps!==void 0?re(re({},S.type.defaultProps),S.props):S.props,_=O.type,T=O.dataKey,M=O.allowDataOverflow,j=O.allowDuplicatedCategory,P=O.scale,N=O.ticks,D=O.includeHidden,k=O[l];if(A[k])return A;var U=sm(t.data,{graphicalItems:i.filter(function(G){var te,le=l in G.props?G.props[l]:(te=G.type.defaultProps)===null||te===void 0?void 0:te[l];return le===k}),dataStartIndex:d,dataEndIndex:f}),$=U.length,H,X,J;pse(O.domain,M,_)&&(H=rS(O.domain,null,M),b&&(_==="number"||P!=="auto")&&(J=qc(U,T,"category")));var Z=J8(_);if(!H||H.length===0){var L,V=(L=O.domain)!==null&&L!==void 0?L:Z;if(T){if(H=qc(U,T,_),_==="category"&&b){var F=iF(H);j&&F?(X=H,H=Kh(0,$)):j||(H=ZM(V,H,S).reduce(function(G,te){return G.indexOf(te)>=0?G:[].concat(ul(G),[te])},[]))}else if(_==="category")j?H=H.filter(function(G){return G!==""&&!Ne(G)}):H=ZM(V,H,S).reduce(function(G,te){return G.indexOf(te)>=0||te===""||Ne(te)?G:[].concat(ul(G),[te])},[]);else if(_==="number"){var ie=vJ(U,i.filter(function(G){var te,le,fe=l in G.props?G.props[l]:(te=G.type.defaultProps)===null||te===void 0?void 0:te[l],Se="hide"in G.props?G.props.hide:(le=G.type.defaultProps)===null||le===void 0?void 0:le.hide;return fe===k&&(D||!Se)}),T,s,p);ie&&(H=ie)}b&&(_==="number"||P!=="auto")&&(J=qc(U,T,"category"))}else b?H=Kh(0,$):u&&u[k]&&u[k].hasStack&&_==="number"?H=v==="expand"?[0,1]:VL(u[k].stackGroups,d,f):H=LL(U,i.filter(function(G){var te=l in G.props?G.props[l]:G.type.defaultProps[l],le="hide"in G.props?G.props.hide:G.type.defaultProps.hide;return te===k&&(D||!le)}),_,p,!0);if(_==="number")H=qS(m,H,k,s,N),V&&(H=rS(V,H,M));else if(_==="category"&&V){var ue=V,z=H.every(function(G){return ue.indexOf(G)>=0});z&&(H=ue)}}return re(re({},A),{},Te({},k,re(re({},O),{},{axisType:s,domain:H,categoricalDomain:J,duplicateDomain:X,originalDomain:(w=O.domain)!==null&&w!==void 0?w:Z,isCategorical:b,layout:p})))},{})},Use=function(t,n){var r=n.graphicalItems,i=n.Axis,s=n.axisType,l=n.axisIdKey,u=n.stackGroups,d=n.dataStartIndex,f=n.dataEndIndex,p=t.layout,m=t.children,v=sm(t.data,{graphicalItems:r,dataStartIndex:d,dataEndIndex:f}),b=v.length,A=zL(p,s),S=-1;return r.reduce(function(w,O){var _=O.type.defaultProps!==void 0?re(re({},O.type.defaultProps),O.props):O.props,T=_[l],M=J8("number");if(!w[T]){S++;var j;return A?j=Kh(0,b):u&&u[T]&&u[T].hasStack?(j=VL(u[T].stackGroups,d,f),j=qS(m,j,T,s)):(j=rS(M,LL(v,r.filter(function(P){var N,D,k=l in P.props?P.props[l]:(N=P.type.defaultProps)===null||N===void 0?void 0:N[l],U="hide"in P.props?P.props.hide:(D=P.type.defaultProps)===null||D===void 0?void 0:D.hide;return k===T&&!U}),"number",p),i.defaultProps.allowDataOverflow),j=qS(m,j,T,s)),re(re({},w),{},Te({},T,re(re({axisType:s},i.defaultProps),{},{hide:!0,orientation:Un($se,"".concat(s,".").concat(S%2),null),domain:j,originalDomain:M,isCategorical:A,layout:p})))}return w},{})},Hse=function(t,n){var r=n.axisType,i=r===void 0?"xAxis":r,s=n.AxisComp,l=n.graphicalItems,u=n.stackGroups,d=n.dataStartIndex,f=n.dataEndIndex,p=t.children,m="".concat(i,"Id"),v=Hn(p,s),b={};return v&&v.length?b=Vse(t,{axes:v,graphicalItems:l,axisType:i,axisIdKey:m,stackGroups:u,dataStartIndex:d,dataEndIndex:f}):l&&l.length&&(b=Use(t,{Axis:s,graphicalItems:l,axisType:i,axisIdKey:m,stackGroups:u,dataStartIndex:d,dataEndIndex:f})),b},Fse=function(t){var n=di(t),r=ba(n,!1,!0);return{tooltipTicks:r,orderedTooltipTicks:tA(r,function(i){return i.coordinate}),tooltipAxis:n,tooltipAxisBandSize:Rh(n,r)}},JR=function(t){var n=t.children,r=t.defaultShowTooltip,i=Bn(n,Qs),s=0,l=0;return t.data&&t.data.length!==0&&(l=t.data.length-1),i&&i.props&&(i.props.startIndex>=0&&(s=i.props.startIndex),i.props.endIndex>=0&&(l=i.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:s,dataEndIndex:l,activeTooltipIndex:-1,isTooltipActive:!!r}},Gse=function(t){return!t||!t.length?!1:t.some(function(n){var r=xa(n&&n.type);return r&&r.indexOf("Bar")>=0})},ek=function(t){return t==="horizontal"?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:t==="vertical"?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:t==="centric"?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},Kse=function(t,n){var r=t.props,i=t.graphicalItems,s=t.xAxisMap,l=s===void 0?{}:s,u=t.yAxisMap,d=u===void 0?{}:u,f=r.width,p=r.height,m=r.children,v=r.margin||{},b=Bn(m,Qs),A=Bn(m,io),S=Object.keys(d).reduce(function(j,P){var N=d[P],D=N.orientation;return!N.mirror&&!N.hide?re(re({},j),{},Te({},D,j[D]+N.width)):j},{left:v.left||0,right:v.right||0}),w=Object.keys(l).reduce(function(j,P){var N=l[P],D=N.orientation;return!N.mirror&&!N.hide?re(re({},j),{},Te({},D,Un(j,"".concat(D))+N.height)):j},{top:v.top||0,bottom:v.bottom||0}),O=re(re({},w),S),_=O.bottom;b&&(O.bottom+=b.props.height||Qs.defaultProps.height),A&&n&&(O=mJ(O,i,r,n));var T=f-O.left-O.right,M=p-O.top-O.bottom;return re(re({brushBottom:_},O),{},{width:Math.max(T,0),height:Math.max(M,0)})},Xse=function(t,n){if(n==="xAxis")return t[n].width;if(n==="yAxis")return t[n].height},$A=function(t){var n=t.chartName,r=t.GraphicalChild,i=t.defaultTooltipEventType,s=i===void 0?"axis":i,l=t.validateTooltipEventTypes,u=l===void 0?["axis"]:l,d=t.axisComponents,f=t.legendContent,p=t.formatAxisMap,m=t.defaultProps,v=function(O,_){var T=_.graphicalItems,M=_.stackGroups,j=_.offset,P=_.updateId,N=_.dataStartIndex,D=_.dataEndIndex,k=O.barSize,U=O.layout,$=O.barGap,H=O.barCategoryGap,X=O.maxBarSize,J=ek(U),Z=J.numericAxisName,L=J.cateAxisName,V=Gse(T),F=[];return T.forEach(function(ie,ue){var z=sm(O.data,{graphicalItems:[ie],dataStartIndex:N,dataEndIndex:D}),G=ie.type.defaultProps!==void 0?re(re({},ie.type.defaultProps),ie.props):ie.props,te=G.dataKey,le=G.maxBarSize,fe=G["".concat(Z,"Id")],Se=G["".concat(L,"Id")],ye={},Ve=d.reduce(function(br,Yr){var Cl=_["".concat(Yr.axisType,"Map")],ln=G["".concat(Yr.axisType,"Id")];Cl&&Cl[ln]||Yr.axisType==="zAxis"||vo();var ad=Cl[ln];return re(re({},br),{},Te(Te({},Yr.axisType,ad),"".concat(Yr.axisType,"Ticks"),ba(ad)))},ye),ce=Ve[L],we=Ve["".concat(L,"Ticks")],Ce=M&&M[fe]&&M[fe].hasStack&&TJ(ie,M[fe].stackGroups),se=xa(ie.type).indexOf("Bar")>=0,ht=Rh(ce,we),Re=[],xt=V&&hJ({barSize:k,stackGroups:M,totalSize:Xse(Ve,L)});if(se){var St,sn,yr=Ne(le)?X:le,Mr=(St=(sn=Rh(ce,we,!0))!==null&&sn!==void 0?sn:yr)!==null&&St!==void 0?St:0;Re=pJ({barGap:$,barCategoryGap:H,bandSize:Mr!==ht?Mr:ht,sizeList:xt[Se],maxBarSize:yr}),Mr!==ht&&(Re=Re.map(function(br){return re(re({},br),{},{position:re(re({},br.position),{},{offset:br.position.offset-Mr/2})})}))}var Da=ie&&ie.type&&ie.type.getComposedData;Da&&F.push({props:re(re({},Da(re(re({},Ve),{},{displayedData:z,props:O,dataKey:te,item:ie,bandSize:ht,barPosition:Re,offset:j,stackedData:Ce,layout:U,dataStartIndex:N,dataEndIndex:D}))),{},Te(Te(Te({key:ie.key||"item-".concat(ue)},Z,Ve[Z]),L,Ve[L]),"animationId",P)),childIndex:yF(ie,O.children),item:ie})}),F},b=function(O,_){var T=O.props,M=O.dataStartIndex,j=O.dataEndIndex,P=O.updateId;if(!d_({props:T}))return null;var N=T.children,D=T.layout,k=T.stackOffset,U=T.data,$=T.reverseStackOrder,H=ek(D),X=H.numericAxisName,J=H.cateAxisName,Z=Hn(N,r),L=OJ(U,Z,"".concat(X,"Id"),"".concat(J,"Id"),k,$),V=d.reduce(function(G,te){var le="".concat(te.axisType,"Map");return re(re({},G),{},Te({},le,Hse(T,re(re({},te),{},{graphicalItems:Z,stackGroups:te.axisType===X&&L,dataStartIndex:M,dataEndIndex:j}))))},{}),F=Kse(re(re({},V),{},{props:T,graphicalItems:Z}),_?.legendBBox);Object.keys(V).forEach(function(G){V[G]=p(T,V[G],F,G.replace("Map",""),n)});var ie=V["".concat(J,"Map")],ue=Fse(ie),z=v(T,re(re({},V),{},{dataStartIndex:M,dataEndIndex:j,updateId:P,graphicalItems:Z,stackGroups:L,offset:F}));return re(re({formattedGraphicalItems:z,graphicalItems:Z,offset:F,stackGroups:L},ue),V)},A=(function(w){function O(_){var T,M,j;return Cse(this,O),j=Pse(this,O,[_]),Te(j,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),Te(j,"accessibilityManager",new hse),Te(j,"handleLegendBBoxUpdate",function(P){if(P){var N=j.state,D=N.dataStartIndex,k=N.dataEndIndex,U=N.updateId;j.setState(re({legendBBox:P},b({props:j.props,dataStartIndex:D,dataEndIndex:k,updateId:U},re(re({},j.state),{},{legendBBox:P}))))}}),Te(j,"handleReceiveSyncEvent",function(P,N,D){if(j.props.syncId===P){if(D===j.eventEmitterSymbol&&typeof j.props.syncMethod!="function")return;j.applySyncEvent(N)}}),Te(j,"handleBrushChange",function(P){var N=P.startIndex,D=P.endIndex;if(N!==j.state.dataStartIndex||D!==j.state.dataEndIndex){var k=j.state.updateId;j.setState(function(){return re({dataStartIndex:N,dataEndIndex:D},b({props:j.props,dataStartIndex:N,dataEndIndex:D,updateId:k},j.state))}),j.triggerSyncEvent({dataStartIndex:N,dataEndIndex:D})}}),Te(j,"handleMouseEnter",function(P){var N=j.getMouseInfo(P);if(N){var D=re(re({},N),{},{isTooltipActive:!0});j.setState(D),j.triggerSyncEvent(D);var k=j.props.onMouseEnter;_e(k)&&k(D,P)}}),Te(j,"triggeredAfterMouseMove",function(P){var N=j.getMouseInfo(P),D=N?re(re({},N),{},{isTooltipActive:!0}):{isTooltipActive:!1};j.setState(D),j.triggerSyncEvent(D);var k=j.props.onMouseMove;_e(k)&&k(D,P)}),Te(j,"handleItemMouseEnter",function(P){j.setState(function(){return{isTooltipActive:!0,activeItem:P,activePayload:P.tooltipPayload,activeCoordinate:P.tooltipPosition||{x:P.cx,y:P.cy}}})}),Te(j,"handleItemMouseLeave",function(){j.setState(function(){return{isTooltipActive:!1}})}),Te(j,"handleMouseMove",function(P){P.persist(),j.throttleTriggeredAfterMouseMove(P)}),Te(j,"handleMouseLeave",function(P){j.throttleTriggeredAfterMouseMove.cancel();var N={isTooltipActive:!1};j.setState(N),j.triggerSyncEvent(N);var D=j.props.onMouseLeave;_e(D)&&D(N,P)}),Te(j,"handleOuterEvent",function(P){var N=vF(P),D=Un(j.props,"".concat(N));if(N&&_e(D)){var k,U;/.*touch.*/i.test(N)?U=j.getMouseInfo(P.changedTouches[0]):U=j.getMouseInfo(P),D((k=U)!==null&&k!==void 0?k:{},P)}}),Te(j,"handleClick",function(P){var N=j.getMouseInfo(P);if(N){var D=re(re({},N),{},{isTooltipActive:!0});j.setState(D),j.triggerSyncEvent(D);var k=j.props.onClick;_e(k)&&k(D,P)}}),Te(j,"handleMouseDown",function(P){var N=j.props.onMouseDown;if(_e(N)){var D=j.getMouseInfo(P);N(D,P)}}),Te(j,"handleMouseUp",function(P){var N=j.props.onMouseUp;if(_e(N)){var D=j.getMouseInfo(P);N(D,P)}}),Te(j,"handleTouchMove",function(P){P.changedTouches!=null&&P.changedTouches.length>0&&j.throttleTriggeredAfterMouseMove(P.changedTouches[0])}),Te(j,"handleTouchStart",function(P){P.changedTouches!=null&&P.changedTouches.length>0&&j.handleMouseDown(P.changedTouches[0])}),Te(j,"handleTouchEnd",function(P){P.changedTouches!=null&&P.changedTouches.length>0&&j.handleMouseUp(P.changedTouches[0])}),Te(j,"handleDoubleClick",function(P){var N=j.props.onDoubleClick;if(_e(N)){var D=j.getMouseInfo(P);N(D,P)}}),Te(j,"handleContextMenu",function(P){var N=j.props.onContextMenu;if(_e(N)){var D=j.getMouseInfo(P);N(D,P)}}),Te(j,"triggerSyncEvent",function(P){j.props.syncId!==void 0&&U0.emit(H0,j.props.syncId,P,j.eventEmitterSymbol)}),Te(j,"applySyncEvent",function(P){var N=j.props,D=N.layout,k=N.syncMethod,U=j.state.updateId,$=P.dataStartIndex,H=P.dataEndIndex;if(P.dataStartIndex!==void 0||P.dataEndIndex!==void 0)j.setState(re({dataStartIndex:$,dataEndIndex:H},b({props:j.props,dataStartIndex:$,dataEndIndex:H,updateId:U},j.state)));else if(P.activeTooltipIndex!==void 0){var X=P.chartX,J=P.chartY,Z=P.activeTooltipIndex,L=j.state,V=L.offset,F=L.tooltipTicks;if(!V)return;if(typeof k=="function")Z=k(F,P);else if(k==="value"){Z=-1;for(var ie=0;ie<F.length;ie++)if(F[ie].value===P.activeLabel){Z=ie;break}}var ue=re(re({},V),{},{x:V.left,y:V.top}),z=Math.min(X,ue.x+ue.width),G=Math.min(J,ue.y+ue.height),te=F[Z]&&F[Z].value,le=HS(j.state,j.props.data,Z),fe=F[Z]?{x:D==="horizontal"?F[Z].coordinate:z,y:D==="horizontal"?G:F[Z].coordinate}:Q8;j.setState(re(re({},P),{},{activeLabel:te,activeCoordinate:fe,activePayload:le,activeTooltipIndex:Z}))}else j.setState(P)}),Te(j,"renderCursor",function(P){var N,D=j.state,k=D.isTooltipActive,U=D.activeCoordinate,$=D.activePayload,H=D.offset,X=D.activeTooltipIndex,J=D.tooltipAxisBandSize,Z=j.getTooltipEventType(),L=(N=P.props.active)!==null&&N!==void 0?N:k,V=j.props.layout,F=P.key||"_recharts-cursor";return B.createElement(xse,{key:F,activeCoordinate:U,activePayload:$,activeTooltipIndex:X,chartName:n,element:P,isActive:L,layout:V,offset:H,tooltipAxisBandSize:J,tooltipEventType:Z})}),Te(j,"renderPolarAxis",function(P,N,D){var k=Un(P,"type.axisType"),U=Un(j.state,"".concat(k,"Map")),$=P.type.defaultProps,H=$!==void 0?re(re({},$),P.props):P.props,X=U&&U[H["".concat(k,"Id")]];return C.cloneElement(P,re(re({},X),{},{className:Me(k,X.className),key:P.key||"".concat(N,"-").concat(D),ticks:ba(X,!0)}))}),Te(j,"renderPolarGrid",function(P){var N=P.props,D=N.radialLines,k=N.polarAngles,U=N.polarRadius,$=j.state,H=$.radiusAxisMap,X=$.angleAxisMap,J=di(H),Z=di(X),L=Z.cx,V=Z.cy,F=Z.innerRadius,ie=Z.outerRadius;return C.cloneElement(P,{polarAngles:Array.isArray(k)?k:ba(Z,!0).map(function(ue){return ue.coordinate}),polarRadius:Array.isArray(U)?U:ba(J,!0).map(function(ue){return ue.coordinate}),cx:L,cy:V,innerRadius:F,outerRadius:ie,key:P.key||"polar-grid",radialLines:D})}),Te(j,"renderLegend",function(){var P=j.state.formattedGraphicalItems,N=j.props,D=N.children,k=N.width,U=N.height,$=j.props.margin||{},H=k-($.left||0)-($.right||0),X=RL({children:D,formattedGraphicalItems:P,legendWidth:H,legendContent:f});if(!X)return null;var J=X.item,Z=WR(X,Sse);return C.cloneElement(J,re(re({},Z),{},{chartWidth:k,chartHeight:U,margin:$,onBBoxUpdate:j.handleLegendBBoxUpdate}))}),Te(j,"renderTooltip",function(){var P,N=j.props,D=N.children,k=N.accessibilityLayer,U=Bn(D,sr);if(!U)return null;var $=j.state,H=$.isTooltipActive,X=$.activeCoordinate,J=$.activePayload,Z=$.activeLabel,L=$.offset,V=(P=U.props.active)!==null&&P!==void 0?P:H;return C.cloneElement(U,{viewBox:re(re({},L),{},{x:L.left,y:L.top}),active:V,label:Z,payload:V?J:[],coordinate:X,accessibilityLayer:k})}),Te(j,"renderBrush",function(P){var N=j.props,D=N.margin,k=N.data,U=j.state,$=U.offset,H=U.dataStartIndex,X=U.dataEndIndex,J=U.updateId;return C.cloneElement(P,{key:P.key||"_recharts-brush",onChange:If(j.handleBrushChange,P.props.onChange),data:k,x:de(P.props.x)?P.props.x:$.left,y:de(P.props.y)?P.props.y:$.top+$.height+$.brushBottom-(D.bottom||0),width:de(P.props.width)?P.props.width:$.width,startIndex:H,endIndex:X,updateId:"brush-".concat(J)})}),Te(j,"renderReferenceElement",function(P,N,D){if(!P)return null;var k=j,U=k.clipPathId,$=j.state,H=$.xAxisMap,X=$.yAxisMap,J=$.offset,Z=P.type.defaultProps||{},L=P.props,V=L.xAxisId,F=V===void 0?Z.xAxisId:V,ie=L.yAxisId,ue=ie===void 0?Z.yAxisId:ie;return C.cloneElement(P,{key:P.key||"".concat(N,"-").concat(D),xAxis:H[F],yAxis:X[ue],viewBox:{x:J.left,y:J.top,width:J.width,height:J.height},clipPathId:U})}),Te(j,"renderActivePoints",function(P){var N=P.item,D=P.activePoint,k=P.basePoint,U=P.childIndex,$=P.isRange,H=[],X=N.props.key,J=N.item.type.defaultProps!==void 0?re(re({},N.item.type.defaultProps),N.item.props):N.item.props,Z=J.activeDot,L=J.dataKey,V=re(re({index:U,dataKey:L,cx:D.x,cy:D.y,r:4,fill:CA(N.item),strokeWidth:2,stroke:"#fff",payload:D.payload,value:D.value},Ae(Z,!1)),uh(Z));return H.push(O.renderActiveDot(Z,V,"".concat(X,"-activePoint-").concat(U))),k?H.push(O.renderActiveDot(Z,re(re({},V),{},{cx:k.x,cy:k.y}),"".concat(X,"-basePoint-").concat(U))):$&&H.push(null),H}),Te(j,"renderGraphicChild",function(P,N,D){var k=j.filterFormatItem(P,N,D);if(!k)return null;var U=j.getTooltipEventType(),$=j.state,H=$.isTooltipActive,X=$.tooltipAxis,J=$.activeTooltipIndex,Z=$.activeLabel,L=j.props.children,V=Bn(L,sr),F=k.props,ie=F.points,ue=F.isRange,z=F.baseLine,G=k.item.type.defaultProps!==void 0?re(re({},k.item.type.defaultProps),k.item.props):k.item.props,te=G.activeDot,le=G.hide,fe=G.activeBar,Se=G.activeShape,ye=!!(!le&&H&&V&&(te||fe||Se)),Ve={};U!=="axis"&&V&&V.props.trigger==="click"?Ve={onClick:If(j.handleItemMouseEnter,P.props.onClick)}:U!=="axis"&&(Ve={onMouseLeave:If(j.handleItemMouseLeave,P.props.onMouseLeave),onMouseEnter:If(j.handleItemMouseEnter,P.props.onMouseEnter)});var ce=C.cloneElement(P,re(re({},k.props),Ve));function we(Yr){return typeof X.dataKey=="function"?X.dataKey(Yr.payload):null}if(ye)if(J>=0){var Ce,se;if(X.dataKey&&!X.allowDuplicatedCategory){var ht=typeof X.dataKey=="function"?we:"payload.".concat(X.dataKey.toString());Ce=ch(ie,ht,Z),se=ue&&z&&ch(z,ht,Z)}else Ce=ie?.[J],se=ue&&z&&z[J];if(Se||fe){var Re=P.props.activeIndex!==void 0?P.props.activeIndex:J;return[C.cloneElement(P,re(re(re({},k.props),Ve),{},{activeIndex:Re})),null,null]}if(!Ne(Ce))return[ce].concat(ul(j.renderActivePoints({item:k,activePoint:Ce,basePoint:se,childIndex:J,isRange:ue})))}else{var xt,St=(xt=j.getItemByXY(j.state.activeCoordinate))!==null&&xt!==void 0?xt:{graphicalItem:ce},sn=St.graphicalItem,yr=sn.item,Mr=yr===void 0?P:yr,Da=sn.childIndex,br=re(re(re({},k.props),Ve),{},{activeIndex:Da});return[C.cloneElement(Mr,br),null,null]}return ue?[ce,null,null]:[ce,null]}),Te(j,"renderCustomized",function(P,N,D){return C.cloneElement(P,re(re({key:"recharts-customized-".concat(D)},j.props),j.state))}),Te(j,"renderMap",{CartesianGrid:{handler:Ff,once:!0},ReferenceArea:{handler:j.renderReferenceElement},ReferenceLine:{handler:Ff},ReferenceDot:{handler:j.renderReferenceElement},XAxis:{handler:Ff},YAxis:{handler:Ff},Brush:{handler:j.renderBrush,once:!0},Bar:{handler:j.renderGraphicChild},Line:{handler:j.renderGraphicChild},Area:{handler:j.renderGraphicChild},Radar:{handler:j.renderGraphicChild},RadialBar:{handler:j.renderGraphicChild},Scatter:{handler:j.renderGraphicChild},Pie:{handler:j.renderGraphicChild},Funnel:{handler:j.renderGraphicChild},Tooltip:{handler:j.renderCursor,once:!0},PolarGrid:{handler:j.renderPolarGrid,once:!0},PolarAngleAxis:{handler:j.renderPolarAxis},PolarRadiusAxis:{handler:j.renderPolarAxis},Customized:{handler:j.renderCustomized}}),j.clipPathId="".concat((T=_.id)!==null&&T!==void 0?T:yl("recharts"),"-clip"),j.throttleTriggeredAfterMouseMove=D6(j.triggeredAfterMouseMove,(M=_.throttleDelay)!==null&&M!==void 0?M:1e3/60),j.state={},j}return Dse(O,w),_se(O,[{key:"componentDidMount",value:function(){var T,M;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(T=this.props.margin.left)!==null&&T!==void 0?T:0,top:(M=this.props.margin.top)!==null&&M!==void 0?M:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var T=this.props,M=T.children,j=T.data,P=T.height,N=T.layout,D=Bn(M,sr);if(D){var k=D.props.defaultIndex;if(!(typeof k!="number"||k<0||k>this.state.tooltipTicks.length-1)){var U=this.state.tooltipTicks[k]&&this.state.tooltipTicks[k].value,$=HS(this.state,j,k,U),H=this.state.tooltipTicks[k].coordinate,X=(this.state.offset.top+P)/2,J=N==="horizontal",Z=J?{x:H,y:X}:{y:H,x:X},L=this.state.formattedGraphicalItems.find(function(F){var ie=F.item;return ie.type.name==="Scatter"});L&&(Z=re(re({},Z),L.props.points[k].tooltipPosition),$=L.props.points[k].tooltipPayload);var V={activeTooltipIndex:k,isTooltipActive:!0,activeLabel:U,activePayload:$,activeCoordinate:Z};this.setState(V),this.renderCursor(D),this.accessibilityManager.setIndex(k)}}}},{key:"getSnapshotBeforeUpdate",value:function(T,M){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==M.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 j,P;this.accessibilityManager.setDetails({offset:{left:(j=this.props.margin.left)!==null&&j!==void 0?j:0,top:(P=this.props.margin.top)!==null&&P!==void 0?P:0}})}return null}},{key:"componentDidUpdate",value:function(T){j1([Bn(T.children,sr)],[Bn(this.props.children,sr)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var T=Bn(this.props.children,sr);if(T&&typeof T.props.shared=="boolean"){var M=T.props.shared?"axis":"item";return u.indexOf(M)>=0?M:s}return s}},{key:"getMouseInfo",value:function(T){if(!this.container)return null;var M=this.container,j=M.getBoundingClientRect(),P=aY(j),N={chartX:Math.round(T.pageX-P.left),chartY:Math.round(T.pageY-P.top)},D=j.width/M.offsetWidth||1,k=this.inRange(N.chartX,N.chartY,D);if(!k)return null;var U=this.state,$=U.xAxisMap,H=U.yAxisMap,X=this.getTooltipEventType(),J=QR(this.state,this.props.data,this.props.layout,k);if(X!=="axis"&&$&&H){var Z=di($).scale,L=di(H).scale,V=Z&&Z.invert?Z.invert(N.chartX):null,F=L&&L.invert?L.invert(N.chartY):null;return re(re({},N),{},{xValue:V,yValue:F},J)}return J?re(re({},N),J):null}},{key:"inRange",value:function(T,M){var j=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,P=this.props.layout,N=T/j,D=M/j;if(P==="horizontal"||P==="vertical"){var k=this.state.offset,U=N>=k.left&&N<=k.left+k.width&&D>=k.top&&D<=k.top+k.height;return U?{x:N,y:D}:null}var $=this.state,H=$.angleAxisMap,X=$.radiusAxisMap;if(H&&X){var J=di(H);return eD({x:N,y:D},J)}return null}},{key:"parseEventsOfWrapper",value:function(){var T=this.props.children,M=this.getTooltipEventType(),j=Bn(T,sr),P={};j&&M==="axis"&&(j.props.trigger==="click"?P={onClick:this.handleClick}:P={onMouseEnter:this.handleMouseEnter,onDoubleClick:this.handleDoubleClick,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd,onContextMenu:this.handleContextMenu});var N=uh(this.props,this.handleOuterEvent);return re(re({},N),P)}},{key:"addListener",value:function(){U0.on(H0,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){U0.removeListener(H0,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(T,M,j){for(var P=this.state.formattedGraphicalItems,N=0,D=P.length;N<D;N++){var k=P[N];if(k.item===T||k.props.key===T.key||M===xa(k.item.type)&&j===k.childIndex)return k}return null}},{key:"renderClipPath",value:function(){var T=this.clipPathId,M=this.state.offset,j=M.left,P=M.top,N=M.height,D=M.width;return B.createElement("defs",null,B.createElement("clipPath",{id:T},B.createElement("rect",{x:j,y:P,height:N,width:D})))}},{key:"getXScales",value:function(){var T=this.state.xAxisMap;return T?Object.entries(T).reduce(function(M,j){var P=YR(j,2),N=P[0],D=P[1];return re(re({},M),{},Te({},N,D.scale))},{}):null}},{key:"getYScales",value:function(){var T=this.state.yAxisMap;return T?Object.entries(T).reduce(function(M,j){var P=YR(j,2),N=P[0],D=P[1];return re(re({},M),{},Te({},N,D.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(T){var M;return(M=this.state.xAxisMap)===null||M===void 0||(M=M[T])===null||M===void 0?void 0:M.scale}},{key:"getYScaleByAxisId",value:function(T){var M;return(M=this.state.yAxisMap)===null||M===void 0||(M=M[T])===null||M===void 0?void 0:M.scale}},{key:"getItemByXY",value:function(T){var M=this.state,j=M.formattedGraphicalItems,P=M.activeItem;if(j&&j.length)for(var N=0,D=j.length;N<D;N++){var k=j[N],U=k.props,$=k.item,H=$.type.defaultProps!==void 0?re(re({},$.type.defaultProps),$.props):$.props,X=xa($.type);if(X==="Bar"){var J=(U.data||[]).find(function(F){return wne(T,F)});if(J)return{graphicalItem:k,payload:J}}else if(X==="RadialBar"){var Z=(U.data||[]).find(function(F){return eD(T,F)});if(Z)return{graphicalItem:k,payload:Z}}else if(em(k,P)||tm(k,P)||Cu(k,P)){var L=Fre({graphicalItem:k,activeTooltipItem:P,itemData:H.data}),V=H.activeIndex===void 0?L:H.activeIndex;return{graphicalItem:re(re({},k),{},{childIndex:V}),payload:Cu(k,P)?H.data[L]:k.props.data[L]}}}return null}},{key:"render",value:function(){var T=this;if(!d_(this))return null;var M=this.props,j=M.children,P=M.className,N=M.width,D=M.height,k=M.style,U=M.compact,$=M.title,H=M.desc,X=WR(M,wse),J=Ae(X,!1);if(U)return B.createElement(PR,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},B.createElement(C1,Os({},J,{width:N,height:D,title:$,desc:H}),this.renderClipPath(),h_(j,this.renderMap)));if(this.props.accessibilityLayer){var Z,L;J.tabIndex=(Z=this.props.tabIndex)!==null&&Z!==void 0?Z:0,J.role=(L=this.props.role)!==null&&L!==void 0?L:"application",J.onKeyDown=function(F){T.accessibilityManager.keyboardEvent(F)},J.onFocus=function(){T.accessibilityManager.focus()}}var V=this.parseEventsOfWrapper();return B.createElement(PR,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},B.createElement("div",Os({className:Me("recharts-wrapper",P),style:re({position:"relative",cursor:"default",width:N,height:D},k)},V,{ref:function(ie){T.container=ie}}),B.createElement(C1,Os({},J,{width:N,height:D,title:$,desc:H,style:Bse}),this.renderClipPath(),h_(j,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])})(C.Component);Te(A,"displayName",n),Te(A,"defaultProps",re({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},m)),Te(A,"getDerivedStateFromProps",function(w,O){var _=w.dataKey,T=w.data,M=w.children,j=w.width,P=w.height,N=w.layout,D=w.stackOffset,k=w.margin,U=O.dataStartIndex,$=O.dataEndIndex;if(O.updateId===void 0){var H=JR(w);return re(re(re({},H),{},{updateId:0},b(re(re({props:w},H),{},{updateId:0}),O)),{},{prevDataKey:_,prevData:T,prevWidth:j,prevHeight:P,prevLayout:N,prevStackOffset:D,prevMargin:k,prevChildren:M})}if(_!==O.prevDataKey||T!==O.prevData||j!==O.prevWidth||P!==O.prevHeight||N!==O.prevLayout||D!==O.prevStackOffset||!Ms(k,O.prevMargin)){var X=JR(w),J={chartX:O.chartX,chartY:O.chartY,isTooltipActive:O.isTooltipActive},Z=re(re({},QR(O,T,N)),{},{updateId:O.updateId+1}),L=re(re(re({},X),J),Z);return re(re(re({},L),b(re({props:w},L),O)),{},{prevDataKey:_,prevData:T,prevWidth:j,prevHeight:P,prevLayout:N,prevStackOffset:D,prevMargin:k,prevChildren:M})}if(!j1(M,O.prevChildren)){var V,F,ie,ue,z=Bn(M,Qs),G=z&&(V=(F=z.props)===null||F===void 0?void 0:F.startIndex)!==null&&V!==void 0?V:U,te=z&&(ie=(ue=z.props)===null||ue===void 0?void 0:ue.endIndex)!==null&&ie!==void 0?ie:$,le=G!==U||te!==$,fe=!Ne(T),Se=fe&&!le?O.updateId:O.updateId+1;return re(re({updateId:Se},b(re(re({props:w},O),{},{updateId:Se,dataStartIndex:G,dataEndIndex:te}),O)),{},{prevChildren:M,dataStartIndex:G,dataEndIndex:te})}return null}),Te(A,"renderActiveDot",function(w,O,_){var T;return C.isValidElement(w)?T=C.cloneElement(w,O):_e(w)?T=w(O):T=B.createElement(Yp,O),B.createElement(Ke,{className:"recharts-active-dot",key:_},T)});var S=C.forwardRef(function(O,_){return B.createElement(A,Os({},O,{ref:_}))});return S.displayName=A.displayName,S},Yse=$A({chartName:"LineChart",GraphicalChild:Ju,axisComponents:[{axisType:"xAxis",AxisComp:ol},{axisType:"yAxis",AxisComp:ll}],formatAxisMap:b8}),Wse=$A({chartName:"BarChart",GraphicalChild:Co,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:ol},{axisType:"yAxis",AxisComp:ll}],formatAxisMap:b8}),Zse=$A({chartName:"PieChart",GraphicalChild:Ma,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:Jp},{axisType:"radiusAxis",AxisComp:Zp}],formatAxisMap:LJ,defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}});function Qse({onPeriodChange:e,currentPeriod:t}){const[n,r]=C.useState(!1),[i,s]=C.useState(""),[l,u]=C.useState(""),d=p=>{e(p)},f=()=>{if(i&&l){const p=new Date(i),m=new Date(l);p<=m&&(e("custom",p,m),r(!1))}};return g.jsxs(g.Fragment,{children:[g.jsxs("div",{"data-loc":"client/src/components/PeriodFilter.tsx:44",className:"flex gap-2 mb-6 flex-wrap",children:[g.jsx(be,{"data-loc":"client/src/components/PeriodFilter.tsx:45",variant:t==="dia"?"default":"outline",size:"sm",onClick:()=>d("dia"),className:"rounded-lg",children:"📅 Hoje"}),g.jsx(be,{"data-loc":"client/src/components/PeriodFilter.tsx:54",variant:t==="semana"?"default":"outline",size:"sm",onClick:()=>d("semana"),className:"rounded-lg",children:"📊 Esta Semana"}),g.jsx(be,{"data-loc":"client/src/components/PeriodFilter.tsx:63",variant:t==="mes"?"default":"outline",size:"sm",onClick:()=>d("mes"),className:"rounded-lg",children:"📈 Este Mês"}),g.jsxs(be,{"data-loc":"client/src/components/PeriodFilter.tsx:72",variant:t==="custom"?"default":"outline",size:"sm",onClick:()=>r(!0),className:"rounded-lg",children:[g.jsx(U9,{"data-loc":"client/src/components/PeriodFilter.tsx:78",size:16,className:"mr-2"}),"Personalizado"]})]}),g.jsx(v1,{"data-loc":"client/src/components/PeriodFilter.tsx:84",open:n,onOpenChange:r,children:g.jsxs(y1,{"data-loc":"client/src/components/PeriodFilter.tsx:85",className:"max-w-md rounded-2xl",children:[g.jsx(b1,{"data-loc":"client/src/components/PeriodFilter.tsx:86",children:g.jsx(x1,{"data-loc":"client/src/components/PeriodFilter.tsx:87",children:"Selecione o Período"})}),g.jsxs("div",{"data-loc":"client/src/components/PeriodFilter.tsx:90",className:"space-y-4 py-4",children:[g.jsxs("div",{"data-loc":"client/src/components/PeriodFilter.tsx:91",children:[g.jsx("label",{"data-loc":"client/src/components/PeriodFilter.tsx:92",className:"text-sm font-medium text-foreground mb-2 block",children:"Data Inicial"}),g.jsx("input",{"data-loc":"client/src/components/PeriodFilter.tsx:95",type:"date",value:i,onChange:p=>s(p.target.value),className:"w-full px-3 py-2 rounded-lg border border-border bg-secondary/30"})]}),g.jsxs("div",{"data-loc":"client/src/components/PeriodFilter.tsx:103",children:[g.jsx("label",{"data-loc":"client/src/components/PeriodFilter.tsx:104",className:"text-sm font-medium text-foreground mb-2 block",children:"Data Final"}),g.jsx("input",{"data-loc":"client/src/components/PeriodFilter.tsx:107",type:"date",value:l,onChange:p=>u(p.target.value),className:"w-full px-3 py-2 rounded-lg border border-border bg-secondary/30"})]}),g.jsxs("div",{"data-loc":"client/src/components/PeriodFilter.tsx:115",className:"flex gap-3 pt-4",children:[g.jsx(be,{"data-loc":"client/src/components/PeriodFilter.tsx:116",variant:"outline",className:"flex-1 rounded-lg",onClick:()=>r(!1),children:"Cancelar"}),g.jsx(be,{"data-loc":"client/src/components/PeriodFilter.tsx:123",className:"flex-1 rounded-lg",onClick:f,disabled:!i||!l,children:"Aplicar"})]})]})]})})]})}const Jse=()=>{const e=[],t=["Dom","Seg","Ter","Qua","Qui","Sex","Sab"];for(let n=29;n>=0;n--){const r=new Date;r.setDate(r.getDate()-n);const i=r.getDay(),l=i===0||i===6?800:400,u=Math.random()*300-150,d=Math.max(200,l+u),f=Math.floor(d/45),p=Math.floor(d/25);e.push({date:r.toISOString().split("T")[0],day:t[i],sales:p,orders:f,revenue:Math.round(d*100)/100,dayOfWeek:i})}return e},ele=Jse(),tle=(e,t,n,r)=>{const i=new Date;i.setHours(0,0,0,0);let s=[];switch(t){case"dia":s=e.filter(p=>p.date===i.toISOString().split("T")[0]);break;case"semana":const l=new Date(i);l.setDate(i.getDate()-i.getDay());const u=new Date(l);u.setDate(l.getDate()+6),s=e.filter(p=>{const m=new Date(p.date);return m>=l&&m<=u});break;case"mes":const d=new Date(i.getFullYear(),i.getMonth(),1),f=new Date(i.getFullYear(),i.getMonth()+1,0);s=e.filter(p=>{const m=new Date(p.date);return m>=d&&m<=f});break;case"custom":if(n&&r){const p=new Date(n),m=new Date(r);p.setHours(0,0,0,0),m.setHours(23,59,59,999),s=e.filter(v=>{const b=new Date(v.date);return b>=p&&b<=m})}break}return s.length>0?s:e.slice(-7)},nle=e=>{const t=e.reduce((s,l)=>s+l.revenue,0),n=e.reduce((s,l)=>s+l.orders,0),r=e.reduce((s,l)=>s+l.sales,0),i=n>0?t/n:0;if(e.length>=2){const s=e.slice(0,Math.floor(e.length/2)),l=e.slice(Math.floor(e.length/2)),u=s.reduce((p,m)=>p+m.revenue,0),d=l.reduce((p,m)=>p+m.revenue,0),f=u>0?(d-u)/u*100:0;return{totalRevenue:t,totalOrders:n,totalSales:r,averageOrderValue:i,growth:Math.round(f*10)/10}}return{totalRevenue:t,totalOrders:n,totalSales:r,averageOrderValue:i,growth:0}},rle=[{id:"13",name:"Xis Filé",quantity:45,revenue:1350,category:"xis"},{id:"6",name:"Cachorro-Quente Filé",quantity:38,revenue:1026,category:"cachorro-quente"},{id:"14",name:"Xis Filé com Bacon",quantity:32,revenue:1056,category:"xis"},{id:"12",name:"Xis Bacon",quantity:28,revenue:756,category:"xis"},{id:"7",name:"Cachorro-Quente Filé com Bacon",quantity:25,revenue:750,category:"cachorro-quente"},{id:"2",name:"Cachorro-Quente Bacon",quantity:22,revenue:484,category:"cachorro-quente"},{id:"9",name:"Xis Especial",quantity:20,revenue:440,category:"xis"},{id:"1",name:"Cachorro-Quente Especial",quantity:18,revenue:342,category:"cachorro-quente"},{id:"18",name:"Coca-Cola Gelada",quantity:65,revenue:448.5,category:"drinks"},{id:"19",name:"Refrigerante 2L",quantity:15,revenue:180,category:"drinks"}],G0=[{category:"Xis",revenue:3252,percentage:45},{category:"Cachorro-Quente",revenue:2602,percentage:36},{category:"Bebidas",revenue:628.5,percentage:9},{category:"Combos",revenue:517.5,percentage:10}];function ale(){const{isAuthenticated:e}=Fr(),[,t]=Gt(),[n,r]=C.useState("semana"),[i,s]=C.useState(),[l,u]=C.useState();if(!e)return t("/admin/login"),null;const d=(b,A,S)=>{r(b),A&&s(A),S&&u(S)},f=tle(ele,n,i,l),p=nle(f),m=["#FF6B35","#F7931E","#FDB913","#37B7C3"],v=()=>({dia:"Hoje",semana:"Esta Semana",mes:"Este Mês",custom:`${i?.toLocaleDateString("pt-BR")} a ${l?.toLocaleDateString("pt-BR")}`})[n]||"Selecione";return g.jsxs("div",{"data-loc":"client/src/pages/AdminReports.tsx:43",className:"min-h-screen bg-background",children:[g.jsx("header",{"data-loc":"client/src/pages/AdminReports.tsx:45",className:"bg-white border-b border-border sticky top-0 z-50 shadow-sm",children:g.jsxs("div",{"data-loc":"client/src/pages/AdminReports.tsx:46",className:"max-w-7xl mx-auto px-6 py-4 flex items-center gap-4",children:[g.jsx("button",{"data-loc":"client/src/pages/AdminReports.tsx:47",onClick:()=>t("/admin/dashboard"),className:"w-10 h-10 rounded-full bg-secondary flex items-center justify-center hover:bg-secondary/80 transition-colors",children:g.jsx(mr,{"data-loc":"client/src/pages/AdminReports.tsx:51",size:20})}),g.jsxs("div",{"data-loc":"client/src/pages/AdminReports.tsx:53",children:[g.jsx("h1",{"data-loc":"client/src/pages/AdminReports.tsx:54",className:"text-2xl font-bold text-foreground",children:"Relatórios de Vendas"}),g.jsxs("p",{"data-loc":"client/src/pages/AdminReports.tsx:55",className:"text-sm text-muted-foreground",children:["Período: ",v()]})]})]})}),g.jsxs("div",{"data-loc":"client/src/pages/AdminReports.tsx:60",className:"max-w-7xl mx-auto px-6 py-8",children:[g.jsx(Qse,{"data-loc":"client/src/pages/AdminReports.tsx:62",onPeriodChange:d,currentPeriod:n}),g.jsxs("div",{"data-loc":"client/src/pages/AdminReports.tsx:65",className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4 mb-8",children:[g.jsx("div",{"data-loc":"client/src/pages/AdminReports.tsx:66",className:"bg-gradient-to-br from-blue-50 to-blue-100 rounded-2xl p-6 border border-blue-200",children:g.jsxs("div",{"data-loc":"client/src/pages/AdminReports.tsx:67",className:"flex items-center justify-between",children:[g.jsxs("div",{"data-loc":"client/src/pages/AdminReports.tsx:68",children:[g.jsx("p",{"data-loc":"client/src/pages/AdminReports.tsx:69",className:"text-sm text-blue-600 font-medium",children:"Faturamento"}),g.jsxs("p",{"data-loc":"client/src/pages/AdminReports.tsx:70",className:"text-3xl font-bold text-blue-900 mt-2",children:["R$ ",p.totalRevenue.toFixed(2)]})]}),g.jsx(j3,{"data-loc":"client/src/pages/AdminReports.tsx:72",size:40,className:"text-blue-200"})]})}),g.jsx("div",{"data-loc":"client/src/pages/AdminReports.tsx:76",className:"bg-gradient-to-br from-green-50 to-green-100 rounded-2xl p-6 border border-green-200",children:g.jsxs("div",{"data-loc":"client/src/pages/AdminReports.tsx:77",className:"flex items-center justify-between",children:[g.jsxs("div",{"data-loc":"client/src/pages/AdminReports.tsx:78",children:[g.jsx("p",{"data-loc":"client/src/pages/AdminReports.tsx:79",className:"text-sm text-green-600 font-medium",children:"Pedidos"}),g.jsx("p",{"data-loc":"client/src/pages/AdminReports.tsx:80",className:"text-3xl font-bold text-green-900 mt-2",children:p.totalOrders})]}),g.jsx(J9,{"data-loc":"client/src/pages/AdminReports.tsx:82",size:40,className:"text-green-200"})]})}),g.jsx("div",{"data-loc":"client/src/pages/AdminReports.tsx:86",className:"bg-gradient-to-br from-purple-50 to-purple-100 rounded-2xl p-6 border border-purple-200",children:g.jsxs("div",{"data-loc":"client/src/pages/AdminReports.tsx:87",className:"flex items-center justify-between",children:[g.jsxs("div",{"data-loc":"client/src/pages/AdminReports.tsx:88",children:[g.jsx("p",{"data-loc":"client/src/pages/AdminReports.tsx:89",className:"text-sm text-purple-600 font-medium",children:"Ticket Médio"}),g.jsxs("p",{"data-loc":"client/src/pages/AdminReports.tsx:90",className:"text-3xl font-bold text-purple-900 mt-2",children:["R$ ",p.averageOrderValue.toFixed(2)]})]}),g.jsx(bw,{"data-loc":"client/src/pages/AdminReports.tsx:92",size:40,className:"text-purple-200"})]})}),g.jsx("div",{"data-loc":"client/src/pages/AdminReports.tsx:96",className:`bg-gradient-to-br ${p.growth>0?"from-emerald-50 to-emerald-100":"from-red-50 to-red-100"} rounded-2xl p-6 border ${p.growth>0?"border-emerald-200":"border-red-200"}`,children:g.jsxs("div",{"data-loc":"client/src/pages/AdminReports.tsx:97",className:"flex items-center justify-between",children:[g.jsxs("div",{"data-loc":"client/src/pages/AdminReports.tsx:98",children:[g.jsx("p",{"data-loc":"client/src/pages/AdminReports.tsx:99",className:`text-sm font-medium ${p.growth>0?"text-emerald-600":"text-red-600"}`,children:"Crescimento"}),g.jsxs("p",{"data-loc":"client/src/pages/AdminReports.tsx:100",className:`text-3xl font-bold mt-2 ${p.growth>0?"text-emerald-900":"text-red-900"}`,children:[p.growth>0?"+":"",p.growth.toFixed(1),"%"]})]}),g.jsx(nq,{"data-loc":"client/src/pages/AdminReports.tsx:104",size:40,className:p.growth>0?"text-emerald-200":"text-red-200"})]})})]}),g.jsxs("div",{"data-loc":"client/src/pages/AdminReports.tsx:110",className:"grid grid-cols-1 lg:grid-cols-2 gap-8 mb-8",children:[g.jsxs("div",{"data-loc":"client/src/pages/AdminReports.tsx:112",className:"bg-card rounded-2xl p-6 border border-border shadow-sm",children:[g.jsxs("h2",{"data-loc":"client/src/pages/AdminReports.tsx:113",className:"text-lg font-bold text-foreground mb-4",children:["Faturamento - ",v()]}),g.jsx(Wx,{"data-loc":"client/src/pages/AdminReports.tsx:114",width:"100%",height:300,children:g.jsxs(Yse,{"data-loc":"client/src/pages/AdminReports.tsx:115",data:f,children:[g.jsx(DS,{"data-loc":"client/src/pages/AdminReports.tsx:116",strokeDasharray:"3 3",stroke:"#e5e7eb"}),g.jsx(ol,{"data-loc":"client/src/pages/AdminReports.tsx:117",dataKey:"day",stroke:"#9ca3af"}),g.jsx(ll,{"data-loc":"client/src/pages/AdminReports.tsx:118",stroke:"#9ca3af"}),g.jsx(sr,{"data-loc":"client/src/pages/AdminReports.tsx:119",contentStyle:{backgroundColor:"#fff",border:"1px solid #e5e7eb",borderRadius:"8px"},formatter:b=>`R$ ${typeof b=="number"?b.toFixed(2):b}`}),g.jsx(io,{"data-loc":"client/src/pages/AdminReports.tsx:123"}),g.jsx(Ju,{"data-loc":"client/src/pages/AdminReports.tsx:124",type:"monotone",dataKey:"revenue",stroke:"#FF6B35",strokeWidth:3,dot:{fill:"#FF6B35",r:5},activeDot:{r:7},name:"Faturamento"})]})})]}),g.jsxs("div",{"data-loc":"client/src/pages/AdminReports.tsx:138",className:"bg-card rounded-2xl p-6 border border-border shadow-sm",children:[g.jsxs("h2",{"data-loc":"client/src/pages/AdminReports.tsx:139",className:"text-lg font-bold text-foreground mb-4",children:["Pedidos - ",v()]}),g.jsx(Wx,{"data-loc":"client/src/pages/AdminReports.tsx:140",width:"100%",height:300,children:g.jsxs(Wse,{"data-loc":"client/src/pages/AdminReports.tsx:141",data:f,children:[g.jsx(DS,{"data-loc":"client/src/pages/AdminReports.tsx:142",strokeDasharray:"3 3",stroke:"#e5e7eb"}),g.jsx(ol,{"data-loc":"client/src/pages/AdminReports.tsx:143",dataKey:"day",stroke:"#9ca3af"}),g.jsx(ll,{"data-loc":"client/src/pages/AdminReports.tsx:144",stroke:"#9ca3af"}),g.jsx(sr,{"data-loc":"client/src/pages/AdminReports.tsx:145",contentStyle:{backgroundColor:"#fff",border:"1px solid #e5e7eb",borderRadius:"8px"},formatter:b=>b}),g.jsx(Co,{"data-loc":"client/src/pages/AdminReports.tsx:149",dataKey:"orders",fill:"#F7931E",radius:[8,8,0,0],name:"Quantidade de Pedidos"})]})})]})]}),g.jsxs("div",{"data-loc":"client/src/pages/AdminReports.tsx:156",className:"grid grid-cols-1 lg:grid-cols-2 gap-8",children:[g.jsxs("div",{"data-loc":"client/src/pages/AdminReports.tsx:158",className:"bg-card rounded-2xl p-6 border border-border shadow-sm",children:[g.jsx("h2",{"data-loc":"client/src/pages/AdminReports.tsx:159",className:"text-lg font-bold text-foreground mb-4",children:"Faturamento por Categoria"}),g.jsx(Wx,{"data-loc":"client/src/pages/AdminReports.tsx:160",width:"100%",height:300,children:g.jsxs(Zse,{"data-loc":"client/src/pages/AdminReports.tsx:161",children:[g.jsx(Ma,{"data-loc":"client/src/pages/AdminReports.tsx:162",data:G0,cx:"50%",cy:"50%",labelLine:!1,label:({category:b,percentage:A})=>`${b} ${A}%`,outerRadius:100,fill:"#8884d8",dataKey:"revenue",children:G0.map((b,A)=>g.jsx(zp,{"data-loc":"client/src/pages/AdminReports.tsx:173",fill:m[A%m.length]},`cell-${A}`))}),g.jsx(sr,{"data-loc":"client/src/pages/AdminReports.tsx:176",formatter:b=>`R$ ${typeof b=="number"?b.toFixed(2):b}`})]})})]}),g.jsxs("div",{"data-loc":"client/src/pages/AdminReports.tsx:182",className:"bg-card rounded-2xl p-6 border border-border shadow-sm",children:[g.jsx("h2",{"data-loc":"client/src/pages/AdminReports.tsx:183",className:"text-lg font-bold text-foreground mb-4",children:"Produtos Mais Vendidos"}),g.jsx("div",{"data-loc":"client/src/pages/AdminReports.tsx:184",className:"space-y-3 max-h-80 overflow-y-auto",children:rle.slice(0,8).map((b,A)=>g.jsxs("div",{"data-loc":"client/src/pages/AdminReports.tsx:186",className:"flex items-center justify-between p-3 bg-secondary/30 rounded-lg",children:[g.jsxs("div",{"data-loc":"client/src/pages/AdminReports.tsx:187",className:"flex-1",children:[g.jsxs("p",{"data-loc":"client/src/pages/AdminReports.tsx:188",className:"text-sm font-bold text-foreground",children:[A+1,". ",b.name]}),g.jsxs("p",{"data-loc":"client/src/pages/AdminReports.tsx:189",className:"text-xs text-muted-foreground",children:[b.quantity," unidades vendidas"]})]}),g.jsx("div",{"data-loc":"client/src/pages/AdminReports.tsx:191",className:"text-right",children:g.jsxs("p",{"data-loc":"client/src/pages/AdminReports.tsx:192",className:"text-sm font-bold text-primary",children:["R$ ",b.revenue.toFixed(2)]})})]},b.id))})]})]}),g.jsxs("div",{"data-loc":"client/src/pages/AdminReports.tsx:201",className:"mt-8 bg-card rounded-2xl p-6 border border-border shadow-sm",children:[g.jsx("h2",{"data-loc":"client/src/pages/AdminReports.tsx:202",className:"text-lg font-bold text-foreground mb-4",children:"Desempenho por Categoria"}),g.jsx("div",{"data-loc":"client/src/pages/AdminReports.tsx:203",className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4",children:G0.map((b,A)=>g.jsxs("div",{"data-loc":"client/src/pages/AdminReports.tsx:205",className:"p-4 rounded-xl border border-border bg-secondary/30",children:[g.jsxs("div",{"data-loc":"client/src/pages/AdminReports.tsx:206",className:"flex items-center gap-3 mb-2",children:[g.jsx("div",{"data-loc":"client/src/pages/AdminReports.tsx:207",className:"w-4 h-4 rounded-full",style:{backgroundColor:m[A]}}),g.jsx("p",{"data-loc":"client/src/pages/AdminReports.tsx:211",className:"font-bold text-foreground",children:b.category})]}),g.jsxs("p",{"data-loc":"client/src/pages/AdminReports.tsx:213",className:"text-2xl font-bold text-primary",children:["R$ ",b.revenue.toFixed(2)]}),g.jsxs("p",{"data-loc":"client/src/pages/AdminReports.tsx:214",className:"text-xs text-muted-foreground mt-1",children:[b.percentage,"% do faturamento"]})]},b.category))})]})]})]})}function ile(){const{isAuthenticated:e}=Fr(),[,t]=Gt(),[n,r]=C.useState(()=>{const d=localStorage.getItem("dogmelina_categories");return d?JSON.parse(d):[{id:1,name:"Cachorro-quente",slug:"cachorro-quente"},{id:2,name:"Xis",slug:"xis"},{id:3,name:"Combos",slug:"combos"},{id:4,name:"Bebidas",slug:"drinks"}]}),[i,s]=C.useState("");if(C.useEffect(()=>{localStorage.setItem("dogmelina_categories",JSON.stringify(n))},[n]),!e)return t("/admin/login"),null;const l=()=>{if(!i.trim())return;const d=i.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/\s+/g,"-");r([...n,{id:Date.now(),name:i,slug:d}]),s(""),Ge.success("Categoria adicionada!")},u=d=>{confirm("Deseja excluir esta categoria?")&&(r(n.filter(f=>f.id!==d)),Ge.error("Categoria removida"))};return g.jsxs("div",{"data-loc":"client/src/pages/AdminCategories.tsx:49",className:"min-h-screen bg-background",children:[g.jsxs("header",{"data-loc":"client/src/pages/AdminCategories.tsx:50",className:"bg-white border-b border-border sticky top-0 z-50 px-6 py-4 flex items-center gap-4",children:[g.jsx(be,{"data-loc":"client/src/pages/AdminCategories.tsx:51",variant:"ghost",size:"icon",onClick:()=>t("/admin/dashboard"),children:g.jsx(mr,{"data-loc":"client/src/pages/AdminCategories.tsx:51",size:20})}),g.jsxs("h1",{"data-loc":"client/src/pages/AdminCategories.tsx:52",className:"text-xl font-bold flex items-center gap-2",children:[g.jsx(C3,{"data-loc":"client/src/pages/AdminCategories.tsx:52",size:20,className:"text-primary"})," Categorias"]})]}),g.jsxs("div",{"data-loc":"client/src/pages/AdminCategories.tsx:55",className:"max-w-2xl mx-auto p-6",children:[g.jsxs("div",{"data-loc":"client/src/pages/AdminCategories.tsx:56",className:"flex gap-2 mb-8",children:[g.jsx(Fe,{"data-loc":"client/src/pages/AdminCategories.tsx:57",placeholder:"Nome da nova categoria...",value:i,onChange:d=>s(d.target.value),className:"h-12 rounded-xl"}),g.jsxs(be,{"data-loc":"client/src/pages/AdminCategories.tsx:63",onClick:l,className:"h-12 rounded-xl px-6",children:[g.jsx(bi,{"data-loc":"client/src/pages/AdminCategories.tsx:63",size:20,className:"mr-2"})," Adicionar"]})]}),g.jsx("div",{"data-loc":"client/src/pages/AdminCategories.tsx:66",className:"grid gap-3",children:n.map(d=>g.jsxs(gi,{"data-loc":"client/src/pages/AdminCategories.tsx:68",className:"p-4 flex items-center justify-between rounded-2xl border-border shadow-sm",children:[g.jsxs("div",{"data-loc":"client/src/pages/AdminCategories.tsx:69",children:[g.jsx("p",{"data-loc":"client/src/pages/AdminCategories.tsx:70",className:"font-bold text-lg",children:d.name}),g.jsxs("p",{"data-loc":"client/src/pages/AdminCategories.tsx:71",className:"text-xs text-muted-foreground",children:["Slug: ",d.slug]})]}),g.jsxs("div",{"data-loc":"client/src/pages/AdminCategories.tsx:73",className:"flex gap-2",children:[g.jsx(be,{"data-loc":"client/src/pages/AdminCategories.tsx:74",variant:"ghost",size:"icon",className:"text-muted-foreground",children:g.jsx(ih,{"data-loc":"client/src/pages/AdminCategories.tsx:74",size:18})}),g.jsx(be,{"data-loc":"client/src/pages/AdminCategories.tsx:75",variant:"ghost",size:"icon",onClick:()=>u(d.id),className:"text-destructive",children:g.jsx(mp,{"data-loc":"client/src/pages/AdminCategories.tsx:75",size:18})})]})]},d.id))})]})]})}function ole(){const{isAuthenticated:e}=Fr(),[,t]=Gt(),[n,r]=C.useState(()=>{const p=localStorage.getItem("dogmelina_delivery_fees");return p?JSON.parse(p):[{id:1,neighborhood:"Centro",fee:5},{id:2,neighborhood:"Vila Nova",fee:7},{id:3,neighborhood:"Jardim América",fee:8}]}),[i,s]=C.useState(""),[l,u]=C.useState("");if(C.useEffect(()=>{localStorage.setItem("dogmelina_delivery_fees",JSON.stringify(n))},[n]),!e)return t("/admin/login"),null;const d=()=>{!i||!l||(r([...n,{id:Date.now(),neighborhood:i,fee:parseFloat(l)}]),s(""),u(""),Ge.success("Taxa adicionada!"))},f=p=>{r(n.filter(m=>m.id!==p)),Ge.error("Taxa removida")};return g.jsxs("div",{"data-loc":"client/src/pages/AdminDeliveryFees.tsx:47",className:"min-h-screen bg-background",children:[g.jsxs("header",{"data-loc":"client/src/pages/AdminDeliveryFees.tsx:48",className:"bg-white border-b border-border sticky top-0 z-50 px-6 py-4 flex items-center gap-4",children:[g.jsx(be,{"data-loc":"client/src/pages/AdminDeliveryFees.tsx:49",variant:"ghost",size:"icon",onClick:()=>t("/admin/dashboard"),children:g.jsx(mr,{"data-loc":"client/src/pages/AdminDeliveryFees.tsx:49",size:20})}),g.jsxs("h1",{"data-loc":"client/src/pages/AdminDeliveryFees.tsx:50",className:"text-xl font-bold flex items-center gap-2",children:[g.jsx(fr,{"data-loc":"client/src/pages/AdminDeliveryFees.tsx:50",size:20,className:"text-primary"})," Taxas de Entrega"]})]}),g.jsxs("div",{"data-loc":"client/src/pages/AdminDeliveryFees.tsx:53",className:"max-w-2xl mx-auto p-6",children:[g.jsxs(gi,{"data-loc":"client/src/pages/AdminDeliveryFees.tsx:54",className:"p-6 rounded-2xl border-border shadow-sm mb-8",children:[g.jsx("h2",{"data-loc":"client/src/pages/AdminDeliveryFees.tsx:55",className:"font-bold mb-4",children:"Adicionar Novo Bairro"}),g.jsxs("div",{"data-loc":"client/src/pages/AdminDeliveryFees.tsx:56",className:"grid grid-cols-2 gap-4 mb-4",children:[g.jsxs("div",{"data-loc":"client/src/pages/AdminDeliveryFees.tsx:57",children:[g.jsx("label",{"data-loc":"client/src/pages/AdminDeliveryFees.tsx:58",className:"text-xs font-bold mb-1 block",children:"Nome do Bairro"}),g.jsx(Fe,{"data-loc":"client/src/pages/AdminDeliveryFees.tsx:59",value:i,onChange:p=>s(p.target.value),placeholder:"Ex: Centro",className:"h-12 rounded-xl"})]}),g.jsxs("div",{"data-loc":"client/src/pages/AdminDeliveryFees.tsx:61",children:[g.jsx("label",{"data-loc":"client/src/pages/AdminDeliveryFees.tsx:62",className:"text-xs font-bold mb-1 block",children:"Taxa (R$)"}),g.jsx(Fe,{"data-loc":"client/src/pages/AdminDeliveryFees.tsx:63",type:"number",value:l,onChange:p=>u(p.target.value),placeholder:"0.00",className:"h-12 rounded-xl"})]})]}),g.jsxs(be,{"data-loc":"client/src/pages/AdminDeliveryFees.tsx:66",onClick:d,className:"w-full h-12 rounded-xl",children:[g.jsx(bi,{"data-loc":"client/src/pages/AdminDeliveryFees.tsx:66",size:20,className:"mr-2"})," Adicionar Bairro"]})]}),g.jsx("div",{"data-loc":"client/src/pages/AdminDeliveryFees.tsx:69",className:"grid gap-3",children:n.map(p=>g.jsxs(gi,{"data-loc":"client/src/pages/AdminDeliveryFees.tsx:71",className:"p-4 flex items-center justify-between rounded-2xl border-border shadow-sm",children:[g.jsxs("div",{"data-loc":"client/src/pages/AdminDeliveryFees.tsx:72",className:"flex items-center gap-4",children:[g.jsx("div",{"data-loc":"client/src/pages/AdminDeliveryFees.tsx:73",className:"w-10 h-10 rounded-full bg-primary/10 flex items-center justify-center text-primary",children:g.jsx(fr,{"data-loc":"client/src/pages/AdminDeliveryFees.tsx:73",size:20})}),g.jsxs("div",{"data-loc":"client/src/pages/AdminDeliveryFees.tsx:74",children:[g.jsx("p",{"data-loc":"client/src/pages/AdminDeliveryFees.tsx:75",className:"font-bold text-lg",children:p.neighborhood}),g.jsxs("p",{"data-loc":"client/src/pages/AdminDeliveryFees.tsx:76",className:"text-sm font-black text-primary",children:["R$ ",p.fee.toFixed(2)]})]})]}),g.jsx(be,{"data-loc":"client/src/pages/AdminDeliveryFees.tsx:79",variant:"ghost",size:"icon",onClick:()=>f(p.id),className:"text-destructive",children:g.jsx(mp,{"data-loc":"client/src/pages/AdminDeliveryFees.tsx:79",size:18})})]},p.id))})]})]})}function sle(){const{isAuthenticated:e}=Fr(),[,t]=Gt(),[n,r]=C.useState(""),[i,s]=C.useState([]);if(C.useEffect(()=>{const u=JSON.parse(localStorage.getItem("dogmelina_admin_orders")||"[]"),d=Array.from(new Set(u.map(f=>f.customerPhone))).map(f=>{const p=u.find(b=>b.customerPhone===f),m=u.filter(b=>b.customerPhone===f).reduce((b,A)=>b+A.total,0),v=u.filter(b=>b.customerPhone===f).length;return{name:p.customerName,phone:f,address:p.address,totalSpent:m,orderCount:v}});s(d)},[]),!e)return t("/admin/login"),null;const l=i.filter(u=>u.name.toLowerCase().includes(n.toLowerCase())||u.phone.includes(n));return g.jsxs("div",{"data-loc":"client/src/pages/AdminCustomers.tsx:46",className:"min-h-screen bg-background",children:[g.jsxs("header",{"data-loc":"client/src/pages/AdminCustomers.tsx:47",className:"bg-white border-b border-border sticky top-0 z-50 px-6 py-4 flex items-center gap-4",children:[g.jsx(be,{"data-loc":"client/src/pages/AdminCustomers.tsx:48",variant:"ghost",size:"icon",onClick:()=>t("/admin/dashboard"),children:g.jsx(mr,{"data-loc":"client/src/pages/AdminCustomers.tsx:48",size:20})}),g.jsxs("h1",{"data-loc":"client/src/pages/AdminCustomers.tsx:49",className:"text-xl font-bold flex items-center gap-2",children:[g.jsx(Ls,{"data-loc":"client/src/pages/AdminCustomers.tsx:49",size:20,className:"text-primary"})," Clientes"]})]}),g.jsxs("div",{"data-loc":"client/src/pages/AdminCustomers.tsx:52",className:"max-w-4xl mx-auto p-6",children:[g.jsxs("div",{"data-loc":"client/src/pages/AdminCustomers.tsx:53",className:"relative mb-8",children:[g.jsx(Iu,{"data-loc":"client/src/pages/AdminCustomers.tsx:54",className:"absolute left-4 top-1/2 -translate-y-1/2 text-muted-foreground",size:20}),g.jsx(Fe,{"data-loc":"client/src/pages/AdminCustomers.tsx:55",placeholder:"Buscar por nome ou telefone...",value:n,onChange:u=>r(u.target.value),className:"h-14 rounded-2xl pl-12 bg-white border-border shadow-sm"})]}),g.jsx("div",{"data-loc":"client/src/pages/AdminCustomers.tsx:63",className:"grid gap-4",children:l.length===0?g.jsxs("div",{"data-loc":"client/src/pages/AdminCustomers.tsx:65",className:"text-center py-20 opacity-30",children:[g.jsx(Ls,{"data-loc":"client/src/pages/AdminCustomers.tsx:66",size:64,className:"mx-auto mb-4"}),g.jsx("p",{"data-loc":"client/src/pages/AdminCustomers.tsx:67",children:"Nenhum cliente encontrado"})]}):l.map((u,d)=>g.jsxs(gi,{"data-loc":"client/src/pages/AdminCustomers.tsx:71",className:"p-6 rounded-3xl border-border shadow-sm hover:shadow-md transition-all",children:[g.jsxs("div",{"data-loc":"client/src/pages/AdminCustomers.tsx:72",className:"flex flex-col md:flex-row md:items-center justify-between gap-4",children:[g.jsxs("div",{"data-loc":"client/src/pages/AdminCustomers.tsx:73",className:"flex items-center gap-4",children:[g.jsx("div",{"data-loc":"client/src/pages/AdminCustomers.tsx:74",className:"w-14 h-14 rounded-2xl bg-primary/10 flex items-center justify-center text-primary font-black text-xl",children:u.name.charAt(0)}),g.jsxs("div",{"data-loc":"client/src/pages/AdminCustomers.tsx:77",children:[g.jsx("h3",{"data-loc":"client/src/pages/AdminCustomers.tsx:78",className:"font-black text-lg",children:u.name}),g.jsxs("div",{"data-loc":"client/src/pages/AdminCustomers.tsx:79",className:"flex items-center gap-4 mt-1",children:[g.jsxs("p",{"data-loc":"client/src/pages/AdminCustomers.tsx:80",className:"text-sm text-muted-foreground flex items-center gap-1",children:[g.jsx(Zc,{"data-loc":"client/src/pages/AdminCustomers.tsx:80",size:14})," ",u.phone]}),g.jsxs("p",{"data-loc":"client/src/pages/AdminCustomers.tsx:81",className:"text-sm text-muted-foreground flex items-center gap-1",children:[g.jsx(hi,{"data-loc":"client/src/pages/AdminCustomers.tsx:81",size:14})," ",u.orderCount," pedidos"]})]})]})]}),g.jsxs("div",{"data-loc":"client/src/pages/AdminCustomers.tsx:85",className:"text-right",children:[g.jsx("p",{"data-loc":"client/src/pages/AdminCustomers.tsx:86",className:"text-xs text-muted-foreground uppercase font-bold",children:"Total Gasto"}),g.jsxs("p",{"data-loc":"client/src/pages/AdminCustomers.tsx:87",className:"text-2xl font-black text-primary",children:["R$ ",u.totalSpent.toFixed(2)]})]})]}),g.jsxs("div",{"data-loc":"client/src/pages/AdminCustomers.tsx:90",className:"mt-4 pt-4 border-t border-border/50 flex items-start gap-2 text-sm text-muted-foreground",children:[g.jsx(fr,{"data-loc":"client/src/pages/AdminCustomers.tsx:91",size:16,className:"shrink-0 mt-0.5"}),g.jsx("p",{"data-loc":"client/src/pages/AdminCustomers.tsx:92",children:u.address})]})]},d))})]})]})}var lm="Switch",[lle]=Ea(lm),[cle,ule]=lle(lm),ez=C.forwardRef((e,t)=>{const{__scopeSwitch:n,name:r,checked:i,defaultChecked:s,required:l,disabled:u,value:d="on",onCheckedChange:f,form:p,...m}=e,[v,b]=C.useState(null),A=At(t,T=>b(T)),S=C.useRef(!1),w=v?p||!!v.closest("form"):!0,[O,_]=ml({prop:i,defaultProp:s??!1,onChange:f,caller:lm});return g.jsxs(cle,{scope:n,checked:O,disabled:u,children:[g.jsx(Ze.button,{type:"button",role:"switch","aria-checked":O,"aria-required":l,"data-state":az(O),"data-disabled":u?"":void 0,disabled:u,value:d,...m,ref:A,onClick:et(e.onClick,T=>{_(M=>!M),w&&(S.current=T.isPropagationStopped(),S.current||T.stopPropagation())})}),w&&g.jsx(rz,{control:v,bubbles:!S.current,name:r,value:d,checked:O,required:l,disabled:u,form:p,style:{transform:"translateX(-100%)"}})]})});ez.displayName=lm;var tz="SwitchThumb",nz=C.forwardRef((e,t)=>{const{__scopeSwitch:n,...r}=e,i=ule(tz,n);return g.jsx(Ze.span,{"data-state":az(i.checked),"data-disabled":i.disabled?"":void 0,...r,ref:t})});nz.displayName=tz;var dle="SwitchBubbleInput",rz=C.forwardRef(({__scopeSwitch:e,control:t,checked:n,bubbles:r=!0,...i},s)=>{const l=C.useRef(null),u=At(l,s),d=Cw(n),f=Ew(t);return C.useEffect(()=>{const p=l.current;if(!p)return;const m=window.HTMLInputElement.prototype,b=Object.getOwnPropertyDescriptor(m,"checked").set;if(d!==n&&b){const A=new Event("click",{bubbles:r});b.call(p,n),p.dispatchEvent(A)}},[d,n,r]),g.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:n,...i,tabIndex:-1,ref:u,style:{...i.style,...f,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});rz.displayName=dle;function az(e){return e?"checked":"unchecked"}var fle=ez,hle=nz;function ple({className:e,...t}){return g.jsx(fle,{"data-loc":"client/src/components/ui/switch.tsx:11","data-slot":"switch",className:We("peer data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:border-ring focus-visible:ring-ring/50 dark:data-[state=unchecked]:bg-input/80 inline-flex h-[1.15rem] w-8 shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",e),...t,children:g.jsx(hle,{"data-loc":"client/src/components/ui/switch.tsx:19","data-slot":"switch-thumb",className:We("bg-background dark:data-[state=unchecked]:bg-foreground dark:data-[state=checked]:bg-primary-foreground pointer-events-none block size-4 rounded-full ring-0 transition-transform data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0")})})}function mle(){const{isAuthenticated:e}=Fr(),[,t]=Gt(),[n,r]=C.useState(()=>{const s=localStorage.getItem("dogmelina_payments");return s?JSON.parse(s):[{id:"dinheiro",name:"Dinheiro",icon:"Banknote",active:!0},{id:"cartao",name:"Cartão de Crédito/Débito",icon:"CreditCard",active:!0},{id:"pix",name:"PIX",icon:"QrCode",active:!0}]});if(C.useEffect(()=>{localStorage.setItem("dogmelina_payments",JSON.stringify(n))},[n]),!e)return t("/admin/login"),null;const i=s=>{r(n.map(l=>l.id===s?{...l,active:!l.active}:l)),Ge.success("Configuração atualizada")};return g.jsxs("div",{"data-loc":"client/src/pages/AdminPayments.tsx:38",className:"min-h-screen bg-background",children:[g.jsxs("header",{"data-loc":"client/src/pages/AdminPayments.tsx:39",className:"bg-white border-b border-border sticky top-0 z-50 px-6 py-4 flex items-center gap-4",children:[g.jsx(be,{"data-loc":"client/src/pages/AdminPayments.tsx:40",variant:"ghost",size:"icon",onClick:()=>t("/admin/dashboard"),children:g.jsx(mr,{"data-loc":"client/src/pages/AdminPayments.tsx:40",size:20})}),g.jsxs("h1",{"data-loc":"client/src/pages/AdminPayments.tsx:41",className:"text-xl font-bold flex items-center gap-2",children:[g.jsx(d1,{"data-loc":"client/src/pages/AdminPayments.tsx:41",size:20,className:"text-primary"})," Formas de Pagamento"]})]}),g.jsxs("div",{"data-loc":"client/src/pages/AdminPayments.tsx:44",className:"max-w-2xl mx-auto p-6",children:[g.jsx("div",{"data-loc":"client/src/pages/AdminPayments.tsx:45",className:"grid gap-4",children:n.map(s=>g.jsxs(gi,{"data-loc":"client/src/pages/AdminPayments.tsx:47",className:"p-6 rounded-3xl border-border shadow-sm flex items-center justify-between",children:[g.jsxs("div",{"data-loc":"client/src/pages/AdminPayments.tsx:48",className:"flex items-center gap-4",children:[g.jsxs("div",{"data-loc":"client/src/pages/AdminPayments.tsx:49",className:"w-12 h-12 rounded-2xl bg-primary/10 flex items-center justify-center text-primary",children:[s.id==="dinheiro"&&g.jsx(A3,{"data-loc":"client/src/pages/AdminPayments.tsx:50",size:24}),s.id==="cartao"&&g.jsx(d1,{"data-loc":"client/src/pages/AdminPayments.tsx:51",size:24}),s.id==="pix"&&g.jsx(xw,{"data-loc":"client/src/pages/AdminPayments.tsx:52",size:24})]}),g.jsxs("div",{"data-loc":"client/src/pages/AdminPayments.tsx:54",children:[g.jsx("p",{"data-loc":"client/src/pages/AdminPayments.tsx:55",className:"font-black text-lg",children:s.name}),g.jsx("p",{"data-loc":"client/src/pages/AdminPayments.tsx:56",className:"text-xs text-muted-foreground",children:s.active?"Ativo no Checkout":"Desativado"})]})]}),g.jsx(ple,{"data-loc":"client/src/pages/AdminPayments.tsx:59",checked:s.active,onCheckedChange:()=>i(s.id)})]},s.id))}),g.jsxs("div",{"data-loc":"client/src/pages/AdminPayments.tsx:64",className:"mt-8 p-6 bg-primary/5 rounded-3xl border border-primary/10",children:[g.jsx("h3",{"data-loc":"client/src/pages/AdminPayments.tsx:65",className:"font-bold text-primary mb-2",children:"Dica Profissional"}),g.jsx("p",{"data-loc":"client/src/pages/AdminPayments.tsx:66",className:"text-sm text-muted-foreground leading-relaxed",children:"Mantenha apenas as formas de pagamento que você realmente aceita para evitar cancelamentos de pedidos. O PIX é a forma mais rápida para delivery!"})]})]})]})}function gle(){const[e,t]=C.useState([]),[n,r]=C.useState(null);C.useEffect(()=>{const l=()=>{const d=JSON.parse(localStorage.getItem("dogmelina_admin_orders")||"[]"),f=d.filter(v=>v.status==="pronto"&&v.senha).slice(0,8),p=d.filter(v=>v.status==="preparando"&&v.senha).slice(0,8);t([...f,...p]);const m=f[0]?.id;m&&m!==n&&(new Audio("/sounds/notification.mp3").play().catch(()=>{}),r(m))};l();const u=setInterval(l,3e3);return()=>clearInterval(u)},[n]);const i=e.filter(l=>l.status==="pronto"),s=e.filter(l=>l.status==="preparando");return g.jsxs("div",{"data-loc":"client/src/pages/AdminTV.tsx:35",className:"h-screen bg-[#0f172a] text-white flex flex-col overflow-hidden font-sans",children:[g.jsxs("header",{"data-loc":"client/src/pages/AdminTV.tsx:37",className:"bg-primary p-8 flex justify-between items-center shadow-2xl",children:[g.jsxs("div",{"data-loc":"client/src/pages/AdminTV.tsx:38",className:"flex items-center gap-6",children:[g.jsx("div",{"data-loc":"client/src/pages/AdminTV.tsx:39",className:"w-20 h-20 bg-white rounded-3xl flex items-center justify-center text-primary font-black text-4xl shadow-lg",children:"DM"}),g.jsxs("div",{"data-loc":"client/src/pages/AdminTV.tsx:40",children:[g.jsx("h1",{"data-loc":"client/src/pages/AdminTV.tsx:41",className:"text-5xl font-black tracking-tighter",children:"DOG MELINA"}),g.jsx("p",{"data-loc":"client/src/pages/AdminTV.tsx:42",className:"text-white/70 text-xl font-bold uppercase tracking-widest",children:"Acompanhe seu Pedido"})]})]}),g.jsxs("div",{"data-loc":"client/src/pages/AdminTV.tsx:45",className:"text-right",children:[g.jsx("p",{"data-loc":"client/src/pages/AdminTV.tsx:46",className:"text-6xl font-black",children:new Date().toLocaleTimeString("pt-BR",{hour:"2-2-digit",minute:"2-2-digit"})}),g.jsx("p",{"data-loc":"client/src/pages/AdminTV.tsx:47",className:"text-white/50 font-bold",children:new Date().toLocaleDateString("pt-BR",{weekday:"long"})})]})]}),g.jsxs("div",{"data-loc":"client/src/pages/AdminTV.tsx:51",className:"flex-1 flex p-8 gap-8",children:[g.jsxs("div",{"data-loc":"client/src/pages/AdminTV.tsx:53",className:"flex-1 flex flex-col gap-6",children:[g.jsxs("div",{"data-loc":"client/src/pages/AdminTV.tsx:54",className:"bg-green-500 p-6 rounded-[40px] flex items-center gap-4 shadow-lg shadow-green-500/20",children:[g.jsx(V9,{"data-loc":"client/src/pages/AdminTV.tsx:55",size:48,className:"animate-bounce"}),g.jsx("h2",{"data-loc":"client/src/pages/AdminTV.tsx:56",className:"text-5xl font-black uppercase",children:"Prontos / Retirar"})]}),g.jsxs("div",{"data-loc":"client/src/pages/AdminTV.tsx:58",className:"grid grid-cols-2 gap-6",children:[i.map(l=>g.jsxs("div",{"data-loc":"client/src/pages/AdminTV.tsx:60",className:"bg-white text-[#0f172a] p-10 rounded-[40px] flex flex-col items-center justify-center shadow-2xl animate-pulse border-8 border-green-500",children:[g.jsx("span",{"data-loc":"client/src/pages/AdminTV.tsx:61",className:"text-9xl font-black leading-none",children:l.senha}),g.jsx("span",{"data-loc":"client/src/pages/AdminTV.tsx:62",className:"text-2xl font-bold mt-4 opacity-50",children:l.customerName.split(" ")[0]})]},l.id)),i.length===0&&g.jsx("div",{"data-loc":"client/src/pages/AdminTV.tsx:66",className:"col-span-2 h-64 flex items-center justify-center opacity-20",children:g.jsx("p",{"data-loc":"client/src/pages/AdminTV.tsx:67",className:"text-4xl font-bold italic",children:"Aguardando pedidos..."})})]})]}),g.jsxs("div",{"data-loc":"client/src/pages/AdminTV.tsx:74",className:"w-[450px] flex flex-col gap-6",children:[g.jsxs("div",{"data-loc":"client/src/pages/AdminTV.tsx:75",className:"bg-orange-500 p-6 rounded-[40px] flex items-center gap-4 shadow-lg shadow-orange-500/20",children:[g.jsx(xo,{"data-loc":"client/src/pages/AdminTV.tsx:76",size:48}),g.jsx("h2",{"data-loc":"client/src/pages/AdminTV.tsx:77",className:"text-4xl font-black uppercase",children:"Em Preparo"})]}),g.jsx("div",{"data-loc":"client/src/pages/AdminTV.tsx:79",className:"flex flex-col gap-4",children:s.map(l=>g.jsxs("div",{"data-loc":"client/src/pages/AdminTV.tsx:81",className:"bg-white/10 p-6 rounded-[32px] flex justify-between items-center border border-white/10",children:[g.jsx("span",{"data-loc":"client/src/pages/AdminTV.tsx:82",className:"text-6xl font-black",children:l.senha}),g.jsx(hr,{"data-loc":"client/src/pages/AdminTV.tsx:83",className:"bg-orange-500/20 text-orange-500 border-none text-xl px-4 py-2",children:"PREPARANDO"})]},l.id))})]})]}),g.jsx("footer",{"data-loc":"client/src/pages/AdminTV.tsx:91",className:"bg-white/5 p-6 text-center border-t border-white/10",children:g.jsxs("p",{"data-loc":"client/src/pages/AdminTV.tsx:92",className:"text-2xl font-bold text-white/40 flex items-center justify-center gap-4",children:[g.jsx(L3,{"data-loc":"client/src/pages/AdminTV.tsx:93",size:24})," Bom apetite! Peça também pelo nosso site: ",g.jsx("span",{"data-loc":"client/src/pages/AdminTV.tsx:93",className:"text-primary",children:"www.dogmelina.com.br"})]})})]})}function vle(){Gt();const[e,t]=C.useState(()=>localStorage.getItem("driver_logged")==="true"),[n,r]=C.useState([]),[i,s]=C.useState(null);C.useEffect(()=>{const p=()=>{const v=JSON.parse(localStorage.getItem("dogmelina_admin_orders")||"[]");r(v.filter(b=>b.status==="pronto"||b.driverId==="driver-01"&&b.status==="em_entrega"))};p();const m=setInterval(p,5e3);return()=>clearInterval(m)},[]);const l=()=>{localStorage.setItem("driver_logged","true"),t(!0),Ge.success("Bem-vindo, Entregador!")},u=()=>{localStorage.removeItem("driver_logged"),t(!1)},d=p=>{const v=JSON.parse(localStorage.getItem("dogmelina_admin_orders")||"[]").map(b=>b.id===p?{...b,status:"em_entrega",driverId:"driver-01"}:b);localStorage.setItem("dogmelina_admin_orders",JSON.stringify(v)),Ge.success("Entrega aceita! Siga para o endereço.")},f=p=>{const v=JSON.parse(localStorage.getItem("dogmelina_admin_orders")||"[]").map(b=>b.id===p?{...b,status:"entregue"}:b);localStorage.setItem("dogmelina_admin_orders",JSON.stringify(v)),Ge.success("Pedido entregue com sucesso! Bom trabalho.")};return e?g.jsxs("div",{"data-loc":"client/src/pages/DriverApp.tsx:87",className:"min-h-screen bg-secondary/10 pb-24",children:[g.jsxs("header",{"data-loc":"client/src/pages/DriverApp.tsx:89",className:"bg-primary text-white px-6 py-8 rounded-b-[40px] shadow-lg",children:[g.jsxs("div",{"data-loc":"client/src/pages/DriverApp.tsx:90",className:"flex justify-between items-start mb-6",children:[g.jsxs("div",{"data-loc":"client/src/pages/DriverApp.tsx:91",children:[g.jsx("p",{"data-loc":"client/src/pages/DriverApp.tsx:92",className:"text-white/70 text-sm font-medium",children:"Olá, Entregador!"}),g.jsx("h1",{"data-loc":"client/src/pages/DriverApp.tsx:93",className:"text-2xl font-black",children:"Suas Entregas"})]}),g.jsx("button",{"data-loc":"client/src/pages/DriverApp.tsx:95",onClick:u,className:"w-10 h-10 bg-white/20 rounded-full flex items-center justify-center",children:g.jsx(vw,{"data-loc":"client/src/pages/DriverApp.tsx:95",size:20})})]}),g.jsxs("div",{"data-loc":"client/src/pages/DriverApp.tsx:98",className:"flex gap-4",children:[g.jsxs("div",{"data-loc":"client/src/pages/DriverApp.tsx:99",className:"flex-1 bg-white/10 rounded-2xl p-4 backdrop-blur-sm",children:[g.jsx("p",{"data-loc":"client/src/pages/DriverApp.tsx:100",className:"text-[10px] uppercase font-bold opacity-60",children:"Hoje"}),g.jsx("p",{"data-loc":"client/src/pages/DriverApp.tsx:101",className:"text-xl font-black",children:"R$ 45,00"})]}),g.jsxs("div",{"data-loc":"client/src/pages/DriverApp.tsx:103",className:"flex-1 bg-white/10 rounded-2xl p-4 backdrop-blur-sm",children:[g.jsx("p",{"data-loc":"client/src/pages/DriverApp.tsx:104",className:"text-[10px] uppercase font-bold opacity-60",children:"Entregas"}),g.jsx("p",{"data-loc":"client/src/pages/DriverApp.tsx:105",className:"text-xl font-black",children:"08"})]})]})]}),g.jsxs("div",{"data-loc":"client/src/pages/DriverApp.tsx:110",className:"px-6 -mt-6 space-y-4",children:[g.jsxs("h2",{"data-loc":"client/src/pages/DriverApp.tsx:111",className:"font-bold text-lg flex items-center gap-2",children:[g.jsx(bw,{"data-loc":"client/src/pages/DriverApp.tsx:112",size:20,className:"text-primary"})," Pedidos Disponíveis"]}),n.length===0?g.jsxs("div",{"data-loc":"client/src/pages/DriverApp.tsx:116",className:"bg-white rounded-3xl p-12 text-center border border-border shadow-sm",children:[g.jsx(xo,{"data-loc":"client/src/pages/DriverApp.tsx:117",size:48,className:"mx-auto text-muted-foreground/20 mb-4"}),g.jsx("p",{"data-loc":"client/src/pages/DriverApp.tsx:118",className:"text-muted-foreground font-medium",children:"Aguardando novos pedidos prontos..."})]}):n.map(p=>g.jsxs(gi,{"data-loc":"client/src/pages/DriverApp.tsx:122",className:"rounded-3xl p-6 border-none shadow-md overflow-hidden relative",children:[p.status==="em_entrega"&&g.jsx("div",{"data-loc":"client/src/pages/DriverApp.tsx:124",className:"absolute top-0 left-0 w-1.5 h-full bg-green-500"}),g.jsxs("div",{"data-loc":"client/src/pages/DriverApp.tsx:127",className:"flex justify-between items-start mb-4",children:[g.jsxs("div",{"data-loc":"client/src/pages/DriverApp.tsx:128",children:[g.jsx(hr,{"data-loc":"client/src/pages/DriverApp.tsx:129",className:"bg-primary/10 text-primary border-none mb-2",children:p.id}),g.jsx("h3",{"data-loc":"client/src/pages/DriverApp.tsx:130",className:"font-black text-lg",children:p.customerName})]}),g.jsxs("div",{"data-loc":"client/src/pages/DriverApp.tsx:132",className:"text-right",children:[g.jsx("p",{"data-loc":"client/src/pages/DriverApp.tsx:133",className:"text-xs text-muted-foreground",children:"Taxa"}),g.jsx("p",{"data-loc":"client/src/pages/DriverApp.tsx:134",className:"text-lg font-black text-green-600",children:"R$ 7,00"})]})]}),g.jsxs("div",{"data-loc":"client/src/pages/DriverApp.tsx:138",className:"flex items-start gap-3 mb-6 bg-secondary/20 p-4 rounded-2xl",children:[g.jsx(fr,{"data-loc":"client/src/pages/DriverApp.tsx:139",size:20,className:"text-primary shrink-0 mt-1"}),g.jsx("p",{"data-loc":"client/src/pages/DriverApp.tsx:140",className:"text-sm font-medium leading-relaxed",children:p.address})]}),g.jsx("div",{"data-loc":"client/src/pages/DriverApp.tsx:143",className:"flex gap-3",children:p.status==="pronto"?g.jsx(be,{"data-loc":"client/src/pages/DriverApp.tsx:145",onClick:()=>d(p.id),className:"flex-1 h-14 rounded-2xl font-bold text-lg shadow-lg shadow-primary/20",children:"Aceitar Entrega"}):g.jsxs(g.Fragment,{children:[g.jsx(be,{"data-loc":"client/src/pages/DriverApp.tsx:150",variant:"outline",className:"w-14 h-14 rounded-2xl border-border",children:g.jsx(Zc,{"data-loc":"client/src/pages/DriverApp.tsx:150",size:20})}),g.jsx(be,{"data-loc":"client/src/pages/DriverApp.tsx:151",onClick:()=>f(p.id),className:"flex-1 h-14 rounded-2xl bg-green-600 hover:bg-green-700 font-bold text-lg shadow-lg shadow-green-200",children:"Finalizar Entrega"})]})})]},p.id))]})]}):g.jsxs("div",{"data-loc":"client/src/pages/DriverApp.tsx:69",className:"min-h-screen bg-primary flex flex-col items-center justify-center p-6 text-white",children:[g.jsx("div",{"data-loc":"client/src/pages/DriverApp.tsx:70",className:"w-24 h-24 bg-white rounded-3xl flex items-center justify-center mb-6 shadow-xl",children:g.jsx(gw,{"data-loc":"client/src/pages/DriverApp.tsx:71",size:48,className:"text-primary"})}),g.jsx("h1",{"data-loc":"client/src/pages/DriverApp.tsx:73",className:"text-3xl font-black mb-2",children:"DOG MELINA"}),g.jsx("p",{"data-loc":"client/src/pages/DriverApp.tsx:74",className:"text-white/80 mb-12 font-medium",children:"Portal do Entregador"}),g.jsxs("div",{"data-loc":"client/src/pages/DriverApp.tsx:76",className:"w-full max-w-xs space-y-4",children:[g.jsx("input",{"data-loc":"client/src/pages/DriverApp.tsx:77",type:"password",placeholder:"Senha de Acesso",className:"w-full h-14 rounded-2xl bg-white/20 border border-white/30 px-6 text-center placeholder:text-white/50 focus:bg-white focus:text-primary transition-all outline-none"}),g.jsx(be,{"data-loc":"client/src/pages/DriverApp.tsx:78",onClick:l,className:"w-full h-14 rounded-2xl bg-white text-primary font-bold text-lg hover:bg-white/90",children:"Entrar para Entregar"})]})]})}const BA=C.createContext({});function IA(e){const t=C.useRef(null);return t.current===null&&(t.current=e()),t.current}const qA=typeof window<"u",iz=qA?C.useLayoutEffect:C.useEffect,cm=C.createContext(null);function VA(e,t){e.indexOf(t)===-1&&e.push(t)}function UA(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const Ta=(e,t,n)=>n>t?t:n<e?e:n;let HA=()=>{};const Ca={},oz=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function sz(e){return typeof e=="object"&&e!==null}const lz=e=>/^0[^.\s]+$/u.test(e);function FA(e){let t;return()=>(t===void 0&&(t=e()),t)}const dr=e=>e,yle=(e,t)=>n=>t(e(n)),ed=(...e)=>e.reduce(yle),Ru=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};class GA{constructor(){this.subscriptions=[]}add(t){return VA(this.subscriptions,t),()=>UA(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let s=0;s<i;s++){const l=this.subscriptions[s];l&&l(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const qr=e=>e*1e3,ur=e=>e/1e3;function cz(e,t){return t?e*(1e3/t):0}const uz=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,ble=1e-7,xle=12;function Sle(e,t,n,r,i){let s,l,u=0;do l=t+(n-t)/2,s=uz(l,r,i)-e,s>0?n=l:t=l;while(Math.abs(s)>ble&&++u<xle);return l}function td(e,t,n,r){if(e===t&&n===r)return dr;const i=s=>Sle(s,0,1,e,n);return s=>s===0||s===1?s:uz(i(s),t,r)}const dz=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,fz=e=>t=>1-e(1-t),hz=td(.33,1.53,.69,.99),KA=fz(hz),pz=dz(KA),mz=e=>(e*=2)<1?.5*KA(e):.5*(2-Math.pow(2,-10*(e-1))),XA=e=>1-Math.sin(Math.acos(e)),gz=fz(XA),vz=dz(XA),wle=td(.42,0,1,1),Ale=td(0,0,.58,1),yz=td(.42,0,.58,1),Ole=e=>Array.isArray(e)&&typeof e[0]!="number",bz=e=>Array.isArray(e)&&typeof e[0]=="number",jle={linear:dr,easeIn:wle,easeInOut:yz,easeOut:Ale,circIn:XA,circInOut:vz,circOut:gz,backIn:KA,backInOut:pz,backOut:hz,anticipate:mz},Tle=e=>typeof e=="string",tk=e=>{if(bz(e)){HA(e.length===4);const[t,n,r,i]=e;return td(t,n,r,i)}else if(Tle(e))return jle[e];return e},Gf=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function Cle(e,t){let n=new Set,r=new Set,i=!1,s=!1;const l=new WeakSet;let u={delta:0,timestamp:0,isProcessing:!1};function d(p){l.has(p)&&(f.schedule(p),e()),p(u)}const f={schedule:(p,m=!1,v=!1)=>{const A=v&&i?n:r;return m&&l.add(p),A.has(p)||A.add(p),p},cancel:p=>{r.delete(p),l.delete(p)},process:p=>{if(u=p,i){s=!0;return}i=!0,[n,r]=[r,n],n.forEach(d),n.clear(),i=!1,s&&(s=!1,f.process(p))}};return f}const Ele=40;function xz(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},s=()=>n=!0,l=Gf.reduce((T,M)=>(T[M]=Cle(s),T),{}),{setup:u,read:d,resolveKeyframes:f,preUpdate:p,update:m,preRender:v,render:b,postRender:A}=l,S=()=>{const T=Ca.useManualTiming?i.timestamp:performance.now();n=!1,Ca.useManualTiming||(i.delta=r?1e3/60:Math.max(Math.min(T-i.timestamp,Ele),1)),i.timestamp=T,i.isProcessing=!0,u.process(i),d.process(i),f.process(i),p.process(i),m.process(i),v.process(i),b.process(i),A.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(S))},w=()=>{n=!0,r=!0,i.isProcessing||e(S)};return{schedule:Gf.reduce((T,M)=>{const j=l[M];return T[M]=(P,N=!1,D=!1)=>(n||w(),j.schedule(P,N,D)),T},{}),cancel:T=>{for(let M=0;M<Gf.length;M++)l[Gf[M]].cancel(T)},state:i,steps:l}}const{schedule:bt,cancel:vi,state:on,steps:K0}=xz(typeof requestAnimationFrame<"u"?requestAnimationFrame:dr,!0);let th;function _le(){th=void 0}const Tn={now:()=>(th===void 0&&Tn.set(on.isProcessing||Ca.useManualTiming?on.timestamp:performance.now()),th),set:e=>{th=e,queueMicrotask(_le)}},Sz=e=>t=>typeof t=="string"&&t.startsWith(e),YA=Sz("--"),Ple=Sz("var(--"),WA=e=>Ple(e)?Nle.test(e.split("/*")[0].trim()):!1,Nle=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Ol={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},ku={...Ol,transform:e=>Ta(0,1,e)},Kf={...Ol,default:1},Gc=e=>Math.round(e*1e5)/1e5,ZA=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Mle(e){return e==null}const Dle=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,QA=(e,t)=>n=>!!(typeof n=="string"&&Dle.test(n)&&n.startsWith(e)||t&&!Mle(n)&&Object.prototype.hasOwnProperty.call(n,t)),wz=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,s,l,u]=r.match(ZA);return{[e]:parseFloat(i),[t]:parseFloat(s),[n]:parseFloat(l),alpha:u!==void 0?parseFloat(u):1}},Rle=e=>Ta(0,255,e),X0={...Ol,transform:e=>Math.round(Rle(e))},ro={test:QA("rgb","red"),parse:wz("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+X0.transform(e)+", "+X0.transform(t)+", "+X0.transform(n)+", "+Gc(ku.transform(r))+")"};function kle(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const FS={test:QA("#"),parse:kle,transform:ro.transform},nd=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),ci=nd("deg"),Vr=nd("%"),Ee=nd("px"),Lle=nd("vh"),zle=nd("vw"),nk={...Vr,parse:e=>Vr.parse(e)/100,transform:e=>Vr.transform(e*100)},js={test:QA("hsl","hue"),parse:wz("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Vr.transform(Gc(t))+", "+Vr.transform(Gc(n))+", "+Gc(ku.transform(r))+")"},$t={test:e=>ro.test(e)||FS.test(e)||js.test(e),parse:e=>ro.test(e)?ro.parse(e):js.test(e)?js.parse(e):FS.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?ro.transform(e):js.transform(e),getAnimatableNone:e=>{const t=$t.parse(e);return t.alpha=0,$t.transform(t)}},$le=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Ble(e){return isNaN(e)&&typeof e=="string"&&(e.match(ZA)?.length||0)+(e.match($le)?.length||0)>0}const Az="number",Oz="color",Ile="var",qle="var(",rk="${}",Vle=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Lu(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let s=0;const u=t.replace(Vle,d=>($t.test(d)?(r.color.push(s),i.push(Oz),n.push($t.parse(d))):d.startsWith(qle)?(r.var.push(s),i.push(Ile),n.push(d)):(r.number.push(s),i.push(Az),n.push(parseFloat(d))),++s,rk)).split(rk);return{values:n,split:u,indexes:r,types:i}}function jz(e){return Lu(e).values}function Tz(e){const{split:t,types:n}=Lu(e),r=t.length;return i=>{let s="";for(let l=0;l<r;l++)if(s+=t[l],i[l]!==void 0){const u=n[l];u===Az?s+=Gc(i[l]):u===Oz?s+=$t.transform(i[l]):s+=i[l]}return s}}const Ule=e=>typeof e=="number"?0:$t.test(e)?$t.getAnimatableNone(e):e;function Hle(e){const t=jz(e);return Tz(e)(t.map(Ule))}const yi={test:Ble,parse:jz,createTransformer:Tz,getAnimatableNone:Hle};function Y0(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Fle({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,s=0,l=0;if(!t)i=s=l=n;else{const u=n<.5?n*(1+t):n+t-n*t,d=2*n-u;i=Y0(d,u,e+1/3),s=Y0(d,u,e),l=Y0(d,u,e-1/3)}return{red:Math.round(i*255),green:Math.round(s*255),blue:Math.round(l*255),alpha:r}}function sp(e,t){return n=>n>0?t:e}const wt=(e,t,n)=>e+(t-e)*n,W0=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},Gle=[FS,ro,js],Kle=e=>Gle.find(t=>t.test(e));function ak(e){const t=Kle(e);if(!t)return!1;let n=t.parse(e);return t===js&&(n=Fle(n)),n}const ik=(e,t)=>{const n=ak(e),r=ak(t);if(!n||!r)return sp(e,t);const i={...n};return s=>(i.red=W0(n.red,r.red,s),i.green=W0(n.green,r.green,s),i.blue=W0(n.blue,r.blue,s),i.alpha=wt(n.alpha,r.alpha,s),ro.transform(i))},GS=new Set(["none","hidden"]);function Xle(e,t){return GS.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Yle(e,t){return n=>wt(e,t,n)}function JA(e){return typeof e=="number"?Yle:typeof e=="string"?WA(e)?sp:$t.test(e)?ik:Qle:Array.isArray(e)?Cz:typeof e=="object"?$t.test(e)?ik:Wle:sp}function Cz(e,t){const n=[...e],r=n.length,i=e.map((s,l)=>JA(s)(s,t[l]));return s=>{for(let l=0;l<r;l++)n[l]=i[l](s);return n}}function Wle(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=JA(e[i])(e[i],t[i]));return i=>{for(const s in r)n[s]=r[s](i);return n}}function Zle(e,t){const n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){const s=t.types[i],l=e.indexes[s][r[s]],u=e.values[l]??0;n[i]=u,r[s]++}return n}const Qle=(e,t)=>{const n=yi.createTransformer(t),r=Lu(e),i=Lu(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?GS.has(e)&&!i.values.length||GS.has(t)&&!r.values.length?Xle(e,t):ed(Cz(Zle(r,i),i.values),n):sp(e,t)};function Ez(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?wt(e,t,n):JA(e)(e,t)}const Jle=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>bt.update(t,n),stop:()=>vi(t),now:()=>on.isProcessing?on.timestamp:Tn.now()}},_z=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let s=0;s<i;s++)r+=Math.round(e(s/(i-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},lp=2e4;function e2(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<lp;)t+=n,r=e.next(t);return t>=lp?1/0:t}function ece(e,t=100,n){const r=n({...e,keyframes:[0,t]}),i=Math.min(e2(r),lp);return{type:"keyframes",ease:s=>r.next(i*s).value/t,duration:ur(i)}}const tce=5;function Pz(e,t,n){const r=Math.max(t-tce,0);return cz(n-e(r),t-r)}const Tt={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},Z0=.001;function nce({duration:e=Tt.duration,bounce:t=Tt.bounce,velocity:n=Tt.velocity,mass:r=Tt.mass}){let i,s,l=1-t;l=Ta(Tt.minDamping,Tt.maxDamping,l),e=Ta(Tt.minDuration,Tt.maxDuration,ur(e)),l<1?(i=f=>{const p=f*l,m=p*e,v=p-n,b=KS(f,l),A=Math.exp(-m);return Z0-v/b*A},s=f=>{const m=f*l*e,v=m*n+n,b=Math.pow(l,2)*Math.pow(f,2)*e,A=Math.exp(-m),S=KS(Math.pow(f,2),l);return(-i(f)+Z0>0?-1:1)*((v-b)*A)/S}):(i=f=>{const p=Math.exp(-f*e),m=(f-n)*e+1;return-Z0+p*m},s=f=>{const p=Math.exp(-f*e),m=(n-f)*(e*e);return p*m});const u=5/e,d=ace(i,s,u);if(e=qr(e),isNaN(d))return{stiffness:Tt.stiffness,damping:Tt.damping,duration:e};{const f=Math.pow(d,2)*r;return{stiffness:f,damping:l*2*Math.sqrt(r*f),duration:e}}}const rce=12;function ace(e,t,n){let r=n;for(let i=1;i<rce;i++)r=r-e(r)/t(r);return r}function KS(e,t){return e*Math.sqrt(1-t*t)}const ice=["duration","bounce"],oce=["stiffness","damping","mass"];function ok(e,t){return t.some(n=>e[n]!==void 0)}function sce(e){let t={velocity:Tt.velocity,stiffness:Tt.stiffness,damping:Tt.damping,mass:Tt.mass,isResolvedFromDuration:!1,...e};if(!ok(e,oce)&&ok(e,ice))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,s=2*Ta(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:Tt.mass,stiffness:i,damping:s}}else{const n=nce(e);t={...t,...n,mass:Tt.mass},t.isResolvedFromDuration=!0}return t}function cp(e=Tt.visualDuration,t=Tt.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const s=n.keyframes[0],l=n.keyframes[n.keyframes.length-1],u={done:!1,value:s},{stiffness:d,damping:f,mass:p,duration:m,velocity:v,isResolvedFromDuration:b}=sce({...n,velocity:-ur(n.velocity||0)}),A=v||0,S=f/(2*Math.sqrt(d*p)),w=l-s,O=ur(Math.sqrt(d/p)),_=Math.abs(w)<5;r||(r=_?Tt.restSpeed.granular:Tt.restSpeed.default),i||(i=_?Tt.restDelta.granular:Tt.restDelta.default);let T;if(S<1){const j=KS(O,S);T=P=>{const N=Math.exp(-S*O*P);return l-N*((A+S*O*w)/j*Math.sin(j*P)+w*Math.cos(j*P))}}else if(S===1)T=j=>l-Math.exp(-O*j)*(w+(A+O*w)*j);else{const j=O*Math.sqrt(S*S-1);T=P=>{const N=Math.exp(-S*O*P),D=Math.min(j*P,300);return l-N*((A+S*O*w)*Math.sinh(D)+j*w*Math.cosh(D))/j}}const M={calculatedDuration:b&&m||null,next:j=>{const P=T(j);if(b)u.done=j>=m;else{let N=j===0?A:0;S<1&&(N=j===0?qr(A):Pz(T,j,P));const D=Math.abs(N)<=r,k=Math.abs(l-P)<=i;u.done=D&&k}return u.value=u.done?l:P,u},toString:()=>{const j=Math.min(e2(M),lp),P=_z(N=>M.next(j*N).value,j,30);return j+"ms "+P},toTransition:()=>{}};return M}cp.applyToOptions=e=>{const t=ece(e,100,cp);return e.ease=t.ease,e.duration=qr(t.duration),e.type="keyframes",e};function XS({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:s=500,modifyTarget:l,min:u,max:d,restDelta:f=.5,restSpeed:p}){const m=e[0],v={done:!1,value:m},b=D=>u!==void 0&&D<u||d!==void 0&&D>d,A=D=>u===void 0?d:d===void 0||Math.abs(u-D)<Math.abs(d-D)?u:d;let S=n*t;const w=m+S,O=l===void 0?w:l(w);O!==w&&(S=O-m);const _=D=>-S*Math.exp(-D/r),T=D=>O+_(D),M=D=>{const k=_(D),U=T(D);v.done=Math.abs(k)<=f,v.value=v.done?O:U};let j,P;const N=D=>{b(v.value)&&(j=D,P=cp({keyframes:[v.value,A(v.value)],velocity:Pz(T,D,v.value),damping:i,stiffness:s,restDelta:f,restSpeed:p}))};return N(0),{calculatedDuration:null,next:D=>{let k=!1;return!P&&j===void 0&&(k=!0,M(D),N(D)),j!==void 0&&D>=j?P.next(D-j):(!k&&M(D),v)}}}function lce(e,t,n){const r=[],i=n||Ca.mix||Ez,s=e.length-1;for(let l=0;l<s;l++){let u=i(e[l],e[l+1]);if(t){const d=Array.isArray(t)?t[l]||dr:t;u=ed(d,u)}r.push(u)}return r}function cce(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const s=e.length;if(HA(s===t.length),s===1)return()=>t[0];if(s===2&&t[0]===t[1])return()=>t[1];const l=e[0]===e[1];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());const u=lce(t,r,i),d=u.length,f=p=>{if(l&&p<e[0])return t[0];let m=0;if(d>1)for(;m<e.length-2&&!(p<e[m+1]);m++);const v=Ru(e[m],e[m+1],p);return u[m](v)};return n?p=>f(Ta(e[0],e[s-1],p)):f}function uce(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=Ru(0,t,r);e.push(wt(n,1,i))}}function dce(e){const t=[0];return uce(t,e.length-1),t}function fce(e,t){return e.map(n=>n*t)}function hce(e,t){return e.map(()=>t||yz).splice(0,e.length-1)}function Kc({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=Ole(r)?r.map(tk):tk(r),s={done:!1,value:t[0]},l=fce(n&&n.length===t.length?n:dce(t),e),u=cce(l,t,{ease:Array.isArray(i)?i:hce(t,i)});return{calculatedDuration:e,next:d=>(s.value=u(d),s.done=d>=e,s)}}const pce=e=>e!==null;function t2(e,{repeat:t,repeatType:n="loop"},r,i=1){const s=e.filter(pce),u=i<0||t&&n!=="loop"&&t%2===1?0:s.length-1;return!u||r===void 0?s[u]:r}const mce={decay:XS,inertia:XS,tween:Kc,keyframes:Kc,spring:cp};function Nz(e){typeof e.type=="string"&&(e.type=mce[e.type])}class n2{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const gce=e=>e/100;class r2 extends n2{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:n}=this.options;n&&n.updatedAt!==Tn.now()&&this.tick(Tn.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;Nz(t);const{type:n=Kc,repeat:r=0,repeatDelay:i=0,repeatType:s,velocity:l=0}=t;let{keyframes:u}=t;const d=n||Kc;d!==Kc&&typeof u[0]!="number"&&(this.mixKeyframes=ed(gce,Ez(u[0],u[1])),u=[0,100]);const f=d({...t,keyframes:u});s==="mirror"&&(this.mirroredGenerator=d({...t,keyframes:[...u].reverse(),velocity:-l})),f.calculatedDuration===null&&(f.calculatedDuration=e2(f));const{calculatedDuration:p}=f;this.calculatedDuration=p,this.resolvedDuration=p+i,this.totalDuration=this.resolvedDuration*(r+1)-i,this.generator=f}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:r,totalDuration:i,mixKeyframes:s,mirroredGenerator:l,resolvedDuration:u,calculatedDuration:d}=this;if(this.startTime===null)return r.next(0);const{delay:f=0,keyframes:p,repeat:m,repeatType:v,repeatDelay:b,type:A,onUpdate:S,finalKeyframe:w}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-i/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const O=this.currentTime-f*(this.playbackSpeed>=0?1:-1),_=this.playbackSpeed>=0?O<0:O>i;this.currentTime=Math.max(O,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let T=this.currentTime,M=r;if(m){const D=Math.min(this.currentTime,i)/u;let k=Math.floor(D),U=D%1;!U&&D>=1&&(U=1),U===1&&k--,k=Math.min(k,m+1),!!(k%2)&&(v==="reverse"?(U=1-U,b&&(U-=b/u)):v==="mirror"&&(M=l)),T=Ta(0,1,U)*u}const j=_?{done:!1,value:p[0]}:M.next(T);s&&(j.value=s(j.value));let{done:P}=j;!_&&d!==null&&(P=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const N=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&P);return N&&A!==XS&&(j.value=t2(p,this.options,w,this.speed)),S&&S(j.value),N&&this.finish(),j}then(t,n){return this.finished.then(t,n)}get duration(){return ur(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+ur(t)}get time(){return ur(this.currentTime)}set time(t){t=qr(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(Tn.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=ur(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=Jle,startTime:n}=this.options;this.driver||(this.driver=t(i=>this.tick(i))),this.options.onPlay?.();const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(Tn.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}function vce(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const ao=e=>e*180/Math.PI,YS=e=>{const t=ao(Math.atan2(e[1],e[0]));return WS(t)},yce={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:YS,rotateZ:YS,skewX:e=>ao(Math.atan(e[1])),skewY:e=>ao(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},WS=e=>(e=e%360,e<0&&(e+=360),e),sk=YS,lk=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),ck=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),bce={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:lk,scaleY:ck,scale:e=>(lk(e)+ck(e))/2,rotateX:e=>WS(ao(Math.atan2(e[6],e[5]))),rotateY:e=>WS(ao(Math.atan2(-e[2],e[0]))),rotateZ:sk,rotate:sk,skewX:e=>ao(Math.atan(e[4])),skewY:e=>ao(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function ZS(e){return e.includes("scale")?1:0}function QS(e,t){if(!e||e==="none")return ZS(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,i;if(n)r=bce,i=n;else{const u=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=yce,i=u}if(!i)return ZS(t);const s=r[t],l=i[1].split(",").map(Sce);return typeof s=="function"?s(l):l[s]}const xce=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return QS(n,t)};function Sce(e){return parseFloat(e.trim())}const jl=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Tl=new Set(jl),uk=e=>e===Ol||e===Ee,wce=new Set(["x","y","z"]),Ace=jl.filter(e=>!wce.has(e));function Oce(e){const t=[];return Ace.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const lo={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>QS(t,"x"),y:(e,{transform:t})=>QS(t,"y")};lo.translateX=lo.x;lo.translateY=lo.y;const co=new Set;let JS=!1,ew=!1,tw=!1;function Mz(){if(ew){const e=Array.from(co).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=Oce(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([s,l])=>{r.getValue(s)?.set(l)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}ew=!1,JS=!1,co.forEach(e=>e.complete(tw)),co.clear()}function Dz(){co.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(ew=!0)})}function jce(){tw=!0,Dz(),Mz(),tw=!1}class a2{constructor(t,n,r,i,s,l=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=s,this.isAsync=l}scheduleResolve(){this.state="scheduled",this.isAsync?(co.add(this),JS||(JS=!0,bt.read(Dz),bt.resolveKeyframes(Mz))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;if(t[0]===null){const s=i?.get(),l=t[t.length-1];if(s!==void 0)t[0]=s;else if(r&&n){const u=r.readValue(n,l);u!=null&&(t[0]=u)}t[0]===void 0&&(t[0]=l),i&&s===void 0&&i.set(t[0])}vce(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),co.delete(this)}cancel(){this.state==="scheduled"&&(co.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const Tce=e=>e.startsWith("--");function Cce(e,t,n){Tce(t)?e.style.setProperty(t,n):e.style[t]=n}const Ece=FA(()=>window.ScrollTimeline!==void 0),_ce={};function Pce(e,t){const n=FA(e);return()=>_ce[t]??n()}const Rz=Pce(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),zc=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,dk={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:zc([0,.65,.55,1]),circOut:zc([.55,0,1,.45]),backIn:zc([.31,.01,.66,-.59]),backOut:zc([.33,1.53,.69,.99])};function kz(e,t){if(e)return typeof e=="function"?Rz()?_z(e,t):"ease-out":bz(e)?zc(e):Array.isArray(e)?e.map(n=>kz(n,t)||dk.easeOut):dk[e]}function Nce(e,t,n,{delay:r=0,duration:i=300,repeat:s=0,repeatType:l="loop",ease:u="easeOut",times:d}={},f=void 0){const p={[t]:n};d&&(p.offset=d);const m=kz(u,i);Array.isArray(m)&&(p.easing=m);const v={delay:r,duration:i,easing:Array.isArray(m)?"linear":m,fill:"both",iterations:s+1,direction:l==="reverse"?"alternate":"normal"};return f&&(v.pseudoElement=f),e.animate(p,v)}function Lz(e){return typeof e=="function"&&"applyToOptions"in e}function Mce({type:e,...t}){return Lz(e)&&Rz()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class Dce extends n2{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:n,name:r,keyframes:i,pseudoElement:s,allowFlatten:l=!1,finalKeyframe:u,onComplete:d}=t;this.isPseudoElement=!!s,this.allowFlatten=l,this.options=t,HA(typeof t.type!="string");const f=Mce(t);this.animation=Nce(n,r,i,f,s),f.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!s){const p=t2(i,this.options,u,this.speed);this.updateMotionValue?this.updateMotionValue(p):Cce(n,r,p),this.animation.cancel()}d?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const t=this.animation.effect?.getComputedTiming?.().duration||0;return ur(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+ur(t)}get time(){return ur(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=qr(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:n}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&Ece()?(this.animation.timeline=t,dr):n(this)}}const zz={anticipate:mz,backInOut:pz,circInOut:vz};function Rce(e){return e in zz}function kce(e){typeof e.ease=="string"&&Rce(e.ease)&&(e.ease=zz[e.ease])}const fk=10;class Lce extends Dce{constructor(t){kce(t),Nz(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:i,element:s,...l}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const u=new r2({...l,autoplay:!1}),d=qr(this.finishedTime??this.time);n.setWithVelocity(u.sample(d-fk).value,u.sample(d).value,fk),u.stop()}}const hk=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(yi.test(e)||e==="0")&&!e.startsWith("url("));function zce(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function $ce(e,t,n,r){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const s=e[e.length-1],l=hk(i,t),u=hk(s,t);return!l||!u?!1:zce(e)||(n==="spring"||Lz(n))&&r}function nw(e){e.duration=0,e.type="keyframes"}const Bce=new Set(["opacity","clipPath","filter","transform"]),Ice=FA(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function qce(e){const{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:s,type:l}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:d,transformTemplate:f}=t.owner.getProps();return Ice()&&n&&Bce.has(n)&&(n!=="transform"||!f)&&!d&&!r&&i!=="mirror"&&s!==0&&l!=="inertia"}const Vce=40;class Uce extends n2{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:s=0,repeatType:l="loop",keyframes:u,name:d,motionValue:f,element:p,...m}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=Tn.now();const v={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:s,repeatType:l,name:d,motionValue:f,element:p,...m},b=p?.KeyframeResolver||a2;this.keyframeResolver=new b(u,(A,S,w)=>this.onKeyframesResolved(A,S,v,!w),d,f,p),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,n,r,i){this.keyframeResolver=void 0;const{name:s,type:l,velocity:u,delay:d,isHandoff:f,onUpdate:p}=r;this.resolvedAt=Tn.now(),$ce(t,s,l,u)||((Ca.instantAnimations||!d)&&p?.(t2(t,r,n)),t[0]=t[t.length-1],nw(r),r.repeat=0);const v={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>Vce?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},b=!f&&qce(v)?new Lce({...v,element:v.motionValue.owner.current}):new r2(v);b.finished.then(()=>this.notifyFinished()).catch(dr),this.pendingTimeline&&(this.stopTimeline=b.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=b}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),jce()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}const Hce=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Fce(e){const t=Hce.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}function $z(e,t,n=1){const[r,i]=Fce(e);if(!r)return;const s=window.getComputedStyle(t).getPropertyValue(r);if(s){const l=s.trim();return oz(l)?parseFloat(l):l}return WA(i)?$z(i,t,n+1):i}function i2(e,t){return e?.[t]??e?.default??e}const Bz=new Set(["width","height","top","left","right","bottom",...jl]),Gce={test:e=>e==="auto",parse:e=>e},Iz=e=>t=>t.test(e),qz=[Ol,Ee,Vr,ci,zle,Lle,Gce],pk=e=>qz.find(Iz(e));function Kce(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||lz(e):!0}const Xce=new Set(["brightness","contrast","saturate","opacity"]);function Yce(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(ZA)||[];if(!r)return e;const i=n.replace(r,"");let s=Xce.has(t)?1:0;return r!==n&&(s*=100),t+"("+s+i+")"}const Wce=/\b([a-z-]*)\(.*?\)/gu,rw={...yi,getAnimatableNone:e=>{const t=e.match(Wce);return t?t.map(Yce).join(" "):e}},mk={...Ol,transform:Math.round},Zce={rotate:ci,rotateX:ci,rotateY:ci,rotateZ:ci,scale:Kf,scaleX:Kf,scaleY:Kf,scaleZ:Kf,skew:ci,skewX:ci,skewY:ci,distance:Ee,translateX:Ee,translateY:Ee,translateZ:Ee,x:Ee,y:Ee,z:Ee,perspective:Ee,transformPerspective:Ee,opacity:ku,originX:nk,originY:nk,originZ:Ee},o2={borderWidth:Ee,borderTopWidth:Ee,borderRightWidth:Ee,borderBottomWidth:Ee,borderLeftWidth:Ee,borderRadius:Ee,radius:Ee,borderTopLeftRadius:Ee,borderTopRightRadius:Ee,borderBottomRightRadius:Ee,borderBottomLeftRadius:Ee,width:Ee,maxWidth:Ee,height:Ee,maxHeight:Ee,top:Ee,right:Ee,bottom:Ee,left:Ee,padding:Ee,paddingTop:Ee,paddingRight:Ee,paddingBottom:Ee,paddingLeft:Ee,margin:Ee,marginTop:Ee,marginRight:Ee,marginBottom:Ee,marginLeft:Ee,backgroundPositionX:Ee,backgroundPositionY:Ee,...Zce,zIndex:mk,fillOpacity:ku,strokeOpacity:ku,numOctaves:mk},Qce={...o2,color:$t,backgroundColor:$t,outlineColor:$t,fill:$t,stroke:$t,borderColor:$t,borderTopColor:$t,borderRightColor:$t,borderBottomColor:$t,borderLeftColor:$t,filter:rw,WebkitFilter:rw},Vz=e=>Qce[e];function Uz(e,t){let n=Vz(e);return n!==rw&&(n=yi),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Jce=new Set(["auto","none","0"]);function eue(e,t,n){let r=0,i;for(;r<e.length&&!i;){const s=e[r];typeof s=="string"&&!Jce.has(s)&&Lu(s).values.length&&(i=e[r]),r++}if(i&&n)for(const s of t)e[s]=Uz(n,i)}class tue extends a2{constructor(t,n,r,i,s){super(t,n,r,i,s,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let d=0;d<t.length;d++){let f=t[d];if(typeof f=="string"&&(f=f.trim(),WA(f))){const p=$z(f,n.current);p!==void 0&&(t[d]=p),d===t.length-1&&(this.finalKeyframe=f)}}if(this.resolveNoneKeyframes(),!Bz.has(r)||t.length!==2)return;const[i,s]=t,l=pk(i),u=pk(s);if(l!==u)if(uk(l)&&uk(u))for(let d=0;d<t.length;d++){const f=t[d];typeof f=="string"&&(t[d]=parseFloat(f))}else lo[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)(t[i]===null||Kce(t[i]))&&r.push(i);r.length&&eue(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=lo[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(r,i).jump(i,!1)}measureEndState(){const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const i=t.getValue(n);i&&i.jump(this.measuredOrigin,!1);const s=r.length-1,l=r[s];r[s]=lo[n](t.measureViewportBox(),window.getComputedStyle(t.current)),l!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=l),this.removedTransforms?.length&&this.removedTransforms.forEach(([u,d])=>{t.getValue(u).set(d)}),this.resolveNoneKeyframes()}}function nue(e,t,n){if(e instanceof EventTarget)return[e];if(typeof e=="string"){let r=document;const i=n?.[e]??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e)}const Hz=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function Fz(e){return sz(e)&&"offsetHeight"in e}const gk=30,rue=e=>!isNaN(parseFloat(e));class aue{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{const i=Tn.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const s of this.dependents)s.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Tn.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=rue(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new GA);const r=this.events[t].add(n);return t==="change"?()=>{r(),bt.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Tn.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>gk)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,gk);return cz(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function dl(e,t){return new aue(e,t)}const{schedule:s2}=xz(queueMicrotask,!1),Or={x:!1,y:!1};function Gz(){return Or.x||Or.y}function iue(e){return e==="x"||e==="y"?Or[e]?null:(Or[e]=!0,()=>{Or[e]=!1}):Or.x||Or.y?null:(Or.x=Or.y=!0,()=>{Or.x=Or.y=!1})}function Kz(e,t){const n=nue(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function vk(e){return!(e.pointerType==="touch"||Gz())}function oue(e,t,n={}){const[r,i,s]=Kz(e,n),l=u=>{if(!vk(u))return;const{target:d}=u,f=t(d,u);if(typeof f!="function"||!d)return;const p=m=>{vk(m)&&(f(m),d.removeEventListener("pointerleave",p))};d.addEventListener("pointerleave",p,i)};return r.forEach(u=>{u.addEventListener("pointerenter",l,i)}),s}const Xz=(e,t)=>t?e===t?!0:Xz(e,t.parentElement):!1,l2=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,sue=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function lue(e){return sue.has(e.tagName)||e.tabIndex!==-1}const nh=new WeakSet;function yk(e){return t=>{t.key==="Enter"&&e(t)}}function Q0(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const cue=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=yk(()=>{if(nh.has(n))return;Q0(n,"down");const i=yk(()=>{Q0(n,"up")}),s=()=>Q0(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",s,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function bk(e){return l2(e)&&!Gz()}function uue(e,t,n={}){const[r,i,s]=Kz(e,n),l=u=>{const d=u.currentTarget;if(!bk(u))return;nh.add(d);const f=t(d,u),p=(b,A)=>{window.removeEventListener("pointerup",m),window.removeEventListener("pointercancel",v),nh.has(d)&&nh.delete(d),bk(b)&&typeof f=="function"&&f(b,{success:A})},m=b=>{p(b,d===window||d===document||n.useGlobalTarget||Xz(d,b.target))},v=b=>{p(b,!1)};window.addEventListener("pointerup",m,i),window.addEventListener("pointercancel",v,i)};return r.forEach(u=>{(n.useGlobalTarget?window:u).addEventListener("pointerdown",l,i),Fz(u)&&(u.addEventListener("focus",f=>cue(f,i)),!lue(u)&&!u.hasAttribute("tabindex")&&(u.tabIndex=0))}),s}function Yz(e){return sz(e)&&"ownerSVGElement"in e}function due(e){return Yz(e)&&e.tagName==="svg"}const fn=e=>!!(e&&e.getVelocity),fue=[...qz,$t,yi],hue=e=>fue.find(Iz(e)),c2=C.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function xk(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function pue(...e){return t=>{let n=!1;const r=e.map(i=>{const s=xk(i,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let i=0;i<r.length;i++){const s=r[i];typeof s=="function"?s():xk(e[i],null)}}}}function mue(...e){return C.useCallback(pue(...e),e)}class gue extends C.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=n.offsetParent,i=Fz(r)&&r.offsetWidth||0,s=this.props.sizeRef.current;s.height=n.offsetHeight||0,s.width=n.offsetWidth||0,s.top=n.offsetTop,s.left=n.offsetLeft,s.right=i-s.width-s.left}return null}componentDidUpdate(){}render(){return this.props.children}}function vue({children:e,isPresent:t,anchorX:n,root:r}){const i=C.useId(),s=C.useRef(null),l=C.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:u}=C.useContext(c2),d=mue(s,e?.ref);return C.useInsertionEffect(()=>{const{width:f,height:p,top:m,left:v,right:b}=l.current;if(t||!s.current||!f||!p)return;const A=n==="left"?`left: ${v}`:`right: ${b}`;s.current.dataset.motionPopId=i;const S=document.createElement("style");u&&(S.nonce=u);const w=r??document.head;return w.appendChild(S),S.sheet&&S.sheet.insertRule(`
          [data-motion-pop-id="${i}"] {
            position: absolute !important;
            width: ${f}px !important;
            height: ${p}px !important;
            ${A}px !important;
            top: ${m}px !important;
          }
        `),()=>{w.contains(S)&&w.removeChild(S)}},[t]),g.jsx(gue,{isPresent:t,childRef:s,sizeRef:l,children:C.cloneElement(e,{ref:d})})}const yue=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:s,mode:l,anchorX:u,root:d})=>{const f=IA(bue),p=C.useId();let m=!0,v=C.useMemo(()=>(m=!1,{id:p,initial:t,isPresent:n,custom:i,onExitComplete:b=>{f.set(b,!0);for(const A of f.values())if(!A)return;r&&r()},register:b=>(f.set(b,!1),()=>f.delete(b))}),[n,f,r]);return s&&m&&(v={...v}),C.useMemo(()=>{f.forEach((b,A)=>f.set(A,!1))},[n]),C.useEffect(()=>{!n&&!f.size&&r&&r()},[n]),l==="popLayout"&&(e=g.jsx(vue,{isPresent:n,anchorX:u,root:d,children:e})),g.jsx(cm.Provider,{value:v,children:e})};function bue(){return new Map}function Wz(e=!0){const t=C.useContext(cm);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,s=C.useId();C.useEffect(()=>{if(e)return i(s)},[e]);const l=C.useCallback(()=>e&&r&&r(s),[s,r,e]);return!n&&r?[!1,l]:[!0]}const Xf=e=>e.key||"";function Sk(e){const t=[];return C.Children.forEach(e,n=>{C.isValidElement(n)&&t.push(n)}),t}const xue=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:s="sync",propagate:l=!1,anchorX:u="left",root:d})=>{const[f,p]=Wz(l),m=C.useMemo(()=>Sk(e),[e]),v=l&&!f?[]:m.map(Xf),b=C.useRef(!0),A=C.useRef(m),S=IA(()=>new Map),[w,O]=C.useState(m),[_,T]=C.useState(m);iz(()=>{b.current=!1,A.current=m;for(let P=0;P<_.length;P++){const N=Xf(_[P]);v.includes(N)?S.delete(N):S.get(N)!==!0&&S.set(N,!1)}},[_,v.length,v.join("-")]);const M=[];if(m!==w){let P=[...m];for(let N=0;N<_.length;N++){const D=_[N],k=Xf(D);v.includes(k)||(P.splice(N,0,D),M.push(D))}return s==="wait"&&M.length&&(P=M),T(Sk(P)),O(m),null}const{forceRender:j}=C.useContext(BA);return g.jsx(g.Fragment,{children:_.map(P=>{const N=Xf(P),D=l&&!f?!1:m===_||v.includes(N),k=()=>{if(S.has(N))S.set(N,!0);else return;let U=!0;S.forEach($=>{$||(U=!1)}),U&&(j?.(),T(A.current),l&&p?.(),r&&r())};return g.jsx(yue,{isPresent:D,initial:!b.current||n?void 0:!1,custom:t,presenceAffectsLayout:i,mode:s,root:d,onExitComplete:D?void 0:k,anchorX:u,children:P},N)})})},Zz=C.createContext({strict:!1}),wk={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},fl={};for(const e in wk)fl[e]={isEnabled:t=>wk[e].some(n=>!!t[n])};function Sue(e){for(const t in e)fl[t]={...fl[t],...e[t]}}const wue=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function up(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||wue.has(e)}let Qz=e=>!up(e);function Aue(e){typeof e=="function"&&(Qz=t=>t.startsWith("on")?!up(t):e(t))}try{Aue(require("@emotion/is-prop-valid").default)}catch{}function Oue(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(Qz(i)||n===!0&&up(i)||!t&&!up(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}const um=C.createContext({});function dm(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function zu(e){return typeof e=="string"||Array.isArray(e)}const u2=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],d2=["initial",...u2];function fm(e){return dm(e.animate)||d2.some(t=>zu(e[t]))}function Jz(e){return!!(fm(e)||e.variants)}function jue(e,t){if(fm(e)){const{initial:n,animate:r}=e;return{initial:n===!1||zu(n)?n:void 0,animate:zu(r)?r:void 0}}return e.inherit!==!1?t:{}}function Tue(e){const{initial:t,animate:n}=jue(e,C.useContext(um));return C.useMemo(()=>({initial:t,animate:n}),[Ak(t),Ak(n)])}function Ak(e){return Array.isArray(e)?e.join(" "):e}const $u={};function Cue(e){for(const t in e)$u[t]=e[t],YA(t)&&($u[t].isCSSVariable=!0)}function e$(e,{layout:t,layoutId:n}){return Tl.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!$u[e]||e==="opacity")}const Eue={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},_ue=jl.length;function Pue(e,t,n){let r="",i=!0;for(let s=0;s<_ue;s++){const l=jl[s],u=e[l];if(u===void 0)continue;let d=!0;if(typeof u=="number"?d=u===(l.startsWith("scale")?1:0):d=parseFloat(u)===0,!d||n){const f=Hz(u,o2[l]);if(!d){i=!1;const p=Eue[l]||l;r+=`${p}(${f}) `}n&&(t[l]=f)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function f2(e,t,n){const{style:r,vars:i,transformOrigin:s}=e;let l=!1,u=!1;for(const d in t){const f=t[d];if(Tl.has(d)){l=!0;continue}else if(YA(d)){i[d]=f;continue}else{const p=Hz(f,o2[d]);d.startsWith("origin")?(u=!0,s[d]=p):r[d]=p}}if(t.transform||(l||n?r.transform=Pue(t,e.transform,n):r.transform&&(r.transform="none")),u){const{originX:d="50%",originY:f="50%",originZ:p=0}=s;r.transformOrigin=`${d} ${f} ${p}`}}const h2=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function t$(e,t,n){for(const r in t)!fn(t[r])&&!e$(r,n)&&(e[r]=t[r])}function Nue({transformTemplate:e},t){return C.useMemo(()=>{const n=h2();return f2(n,t,e),Object.assign({},n.vars,n.style)},[t])}function Mue(e,t){const n=e.style||{},r={};return t$(r,n,e),Object.assign(r,Nue(e,t)),r}function Due(e,t){const n={},r=Mue(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const Rue={offset:"stroke-dashoffset",array:"stroke-dasharray"},kue={offset:"strokeDashoffset",array:"strokeDasharray"};function Lue(e,t,n=1,r=0,i=!0){e.pathLength=1;const s=i?Rue:kue;e[s.offset]=Ee.transform(-r);const l=Ee.transform(t),u=Ee.transform(n);e[s.array]=`${l} ${u}`}function n$(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:s=1,pathOffset:l=0,...u},d,f,p){if(f2(e,u,f),d){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:m,style:v}=e;m.transform&&(v.transform=m.transform,delete m.transform),(v.transform||m.transformOrigin)&&(v.transformOrigin=m.transformOrigin??"50% 50%",delete m.transformOrigin),v.transform&&(v.transformBox=p?.transformBox??"fill-box",delete m.transformBox),t!==void 0&&(m.x=t),n!==void 0&&(m.y=n),r!==void 0&&(m.scale=r),i!==void 0&&Lue(m,i,s,l,!1)}const r$=()=>({...h2(),attrs:{}}),a$=e=>typeof e=="string"&&e.toLowerCase()==="svg";function zue(e,t,n,r){const i=C.useMemo(()=>{const s=r$();return n$(s,t,a$(r),e.transformTemplate,e.style),{...s.attrs,style:{...s.style}}},[t]);if(e.style){const s={};t$(s,e.style,e),i.style={...s,...i.style}}return i}const $ue=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function p2(e){return typeof e!="string"||e.includes("-")?!1:!!($ue.indexOf(e)>-1||/[A-Z]/u.test(e))}function Bue(e,t,n,{latestValues:r},i,s=!1){const u=(p2(e)?zue:Due)(t,r,i,e),d=Oue(t,typeof e=="string",s),f=e!==C.Fragment?{...d,...u,ref:n}:{},{children:p}=t,m=C.useMemo(()=>fn(p)?p.get():p,[p]);return C.createElement(e,{...f,children:m})}function Ok(e){const t=[{},{}];return e?.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function m2(e,t,n,r){if(typeof t=="function"){const[i,s]=Ok(r);t=t(n!==void 0?n:e.custom,i,s)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,s]=Ok(r);t=t(n!==void 0?n:e.custom,i,s)}return t}function rh(e){return fn(e)?e.get():e}function Iue({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:que(n,r,i,e),renderState:t()}}function que(e,t,n,r){const i={},s=r(e,{});for(const v in s)i[v]=rh(s[v]);let{initial:l,animate:u}=e;const d=fm(e),f=Jz(e);t&&f&&!d&&e.inherit!==!1&&(l===void 0&&(l=t.initial),u===void 0&&(u=t.animate));let p=n?n.initial===!1:!1;p=p||l===!1;const m=p?u:l;if(m&&typeof m!="boolean"&&!dm(m)){const v=Array.isArray(m)?m:[m];for(let b=0;b<v.length;b++){const A=m2(e,v[b]);if(A){const{transitionEnd:S,transition:w,...O}=A;for(const _ in O){let T=O[_];if(Array.isArray(T)){const M=p?T.length-1:0;T=T[M]}T!==null&&(i[_]=T)}for(const _ in S)i[_]=S[_]}}}return i}const i$=e=>(t,n)=>{const r=C.useContext(um),i=C.useContext(cm),s=()=>Iue(e,t,r,i);return n?s():IA(s)};function g2(e,t,n){const{style:r}=e,i={};for(const s in r)(fn(r[s])||t.style&&fn(t.style[s])||e$(s,e)||n?.getValue(s)?.liveStyle!==void 0)&&(i[s]=r[s]);return i}const Vue=i$({scrapeMotionValuesFromProps:g2,createRenderState:h2});function o$(e,t,n){const r=g2(e,t,n);for(const i in e)if(fn(e[i])||fn(t[i])){const s=jl.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[s]=e[i]}return r}const Uue=i$({scrapeMotionValuesFromProps:o$,createRenderState:r$}),Hue=Symbol.for("motionComponentSymbol");function Ts(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function Fue(e,t,n){return C.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Ts(n)&&(n.current=r))},[t])}const v2=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Gue="framerAppearId",s$="data-"+v2(Gue),l$=C.createContext({});function Kue(e,t,n,r,i){const{visualElement:s}=C.useContext(um),l=C.useContext(Zz),u=C.useContext(cm),d=C.useContext(c2).reducedMotion,f=C.useRef(null);r=r||l.renderer,!f.current&&r&&(f.current=r(e,{visualState:t,parent:s,props:n,presenceContext:u,blockInitialAnimation:u?u.initial===!1:!1,reducedMotionConfig:d}));const p=f.current,m=C.useContext(l$);p&&!p.projection&&i&&(p.type==="html"||p.type==="svg")&&Xue(f.current,n,i,m);const v=C.useRef(!1);C.useInsertionEffect(()=>{p&&v.current&&p.update(n,u)});const b=n[s$],A=C.useRef(!!b&&!window.MotionHandoffIsComplete?.(b)&&window.MotionHasOptimisedAnimation?.(b));return iz(()=>{p&&(v.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),p.scheduleRenderMicrotask(),A.current&&p.animationState&&p.animationState.animateChanges())}),C.useEffect(()=>{p&&(!A.current&&p.animationState&&p.animationState.animateChanges(),A.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(b)}),A.current=!1),p.enteringChildren=void 0)}),p}function Xue(e,t,n,r){const{layoutId:i,layout:s,drag:l,dragConstraints:u,layoutScroll:d,layoutRoot:f,layoutCrossfade:p}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:c$(e.parent)),e.projection.setOptions({layoutId:i,layout:s,alwaysMeasureLayout:!!l||u&&Ts(u),visualElement:e,animationType:typeof s=="string"?s:"both",initialPromotionConfig:r,crossfade:p,layoutScroll:d,layoutRoot:f})}function c$(e){if(e)return e.options.allowProjection!==!1?e.projection:c$(e.parent)}function J0(e,{forwardMotionProps:t=!1}={},n,r){n&&Sue(n);const i=p2(e)?Uue:Vue;function s(u,d){let f;const p={...C.useContext(c2),...u,layoutId:Yue(u)},{isStatic:m}=p,v=Tue(u),b=i(u,m);if(!m&&qA){Wue();const A=Zue(p);f=A.MeasureLayout,v.visualElement=Kue(e,b,p,r,A.ProjectionNode)}return g.jsxs(um.Provider,{value:v,children:[f&&v.visualElement?g.jsx(f,{visualElement:v.visualElement,...p}):null,Bue(e,u,Fue(b,v.visualElement,d),b,m,t)]})}s.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const l=C.forwardRef(s);return l[Hue]=e,l}function Yue({layoutId:e}){const t=C.useContext(BA).id;return t&&e!==void 0?t+"-"+e:e}function Wue(e,t){C.useContext(Zz).strict}function Zue(e){const{drag:t,layout:n}=fl;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function Que(e,t){if(typeof Proxy>"u")return J0;const n=new Map,r=(s,l)=>J0(s,l,e,t),i=(s,l)=>r(s,l);return new Proxy(i,{get:(s,l)=>l==="create"?r:(n.has(l)||n.set(l,J0(l,void 0,e,t)),n.get(l))})}function u$({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Jue({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function ede(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function e1(e){return e===void 0||e===1}function aw({scale:e,scaleX:t,scaleY:n}){return!e1(e)||!e1(t)||!e1(n)}function Wi(e){return aw(e)||d$(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function d$(e){return jk(e.x)||jk(e.y)}function jk(e){return e&&e!=="0%"}function dp(e,t,n){const r=e-n,i=t*r;return n+i}function Tk(e,t,n,r,i){return i!==void 0&&(e=dp(e,i,r)),dp(e,n,r)+t}function iw(e,t=0,n=1,r,i){e.min=Tk(e.min,t,n,r,i),e.max=Tk(e.max,t,n,r,i)}function f$(e,{x:t,y:n}){iw(e.x,t.translate,t.scale,t.originPoint),iw(e.y,n.translate,n.scale,n.originPoint)}const Ck=.999999999999,Ek=1.0000000000001;function tde(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let s,l;for(let u=0;u<i;u++){s=n[u],l=s.projectionDelta;const{visualElement:d}=s.options;d&&d.props.style&&d.props.style.display==="contents"||(r&&s.options.layoutScroll&&s.scroll&&s!==s.root&&Es(e,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),l&&(t.x*=l.x.scale,t.y*=l.y.scale,f$(e,l)),r&&Wi(s.latestValues)&&Es(e,s.latestValues))}t.x<Ek&&t.x>Ck&&(t.x=1),t.y<Ek&&t.y>Ck&&(t.y=1)}function Cs(e,t){e.min=e.min+t,e.max=e.max+t}function _k(e,t,n,r,i=.5){const s=wt(e.min,e.max,i);iw(e,t,n,s,r)}function Es(e,t){_k(e.x,t.x,t.scaleX,t.scale,t.originX),_k(e.y,t.y,t.scaleY,t.scale,t.originY)}function h$(e,t){return u$(ede(e.getBoundingClientRect(),t))}function nde(e,t,n){const r=h$(e,n),{scroll:i}=t;return i&&(Cs(r.x,i.offset.x),Cs(r.y,i.offset.y)),r}const Pk=()=>({translate:0,scale:1,origin:0,originPoint:0}),_s=()=>({x:Pk(),y:Pk()}),Nk=()=>({min:0,max:0}),Pt=()=>({x:Nk(),y:Nk()}),ow={current:null},p$={current:!1};function rde(){if(p$.current=!0,!!qA)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>ow.current=e.matches;e.addEventListener("change",t),t()}else ow.current=!1}const ade=new WeakMap;function ide(e,t,n){for(const r in t){const i=t[r],s=n[r];if(fn(i))e.addValue(r,i);else if(fn(s))e.addValue(r,dl(i,{owner:e}));else if(s!==i)if(e.hasValue(r)){const l=e.getValue(r);l.liveStyle===!0?l.jump(i):l.hasAnimated||l.set(i)}else{const l=e.getStaticValue(r);e.addValue(r,dl(l!==void 0?l:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const Mk=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class ode{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:s,visualState:l},u={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=a2,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const v=Tn.now();this.renderScheduledAt<v&&(this.renderScheduledAt=v,bt.render(this.render,!1,!0))};const{latestValues:d,renderState:f}=l;this.latestValues=d,this.baseTarget={...d},this.initialValues=n.initial?{...d}:{},this.renderState=f,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=u,this.blockInitialAnimation=!!s,this.isControllingVariants=fm(n),this.isVariantNode=Jz(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:p,...m}=this.scrapeMotionValuesFromProps(n,{},this);for(const v in m){const b=m[v];d[v]!==void 0&&fn(b)&&b.set(d[v])}}mount(t){this.current=t,ade.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),p$.current||rde(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:ow.current,this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),vi(this.notifyUpdate),vi(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=Tl.has(t);r&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",l=>{this.latestValues[t]=l,this.props.onUpdate&&bt.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let s;window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),s&&s(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in fl){const n=fl[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const s=this.features[t];s.isMounted?s.update():(s.mount(),s.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Pt()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<Mk.length;r++){const i=Mk[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const s="on"+i,l=t[s];l&&(this.propEventSubscriptions[i]=this.on(i,l))}this.prevMotionValues=ide(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=dl(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(oz(r)||lz(r))?r=parseFloat(r):!hue(r)&&yi.test(n)&&(r=Uz(t,n)),this.setBaseTarget(t,fn(r)?r.get():r)),fn(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const s=m2(this.props,n,this.presenceContext?.custom);s&&(r=s[t])}if(n&&r!==void 0)return r;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!fn(i)?i:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new GA),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){s2.render(this.render)}}class m$ extends ode{constructor(){super(...arguments),this.KeyframeResolver=tue}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;fn(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function g$(e,{style:t,vars:n},r,i){const s=e.style;let l;for(l in t)s[l]=t[l];i?.applyProjectionStyles(s,r);for(l in n)s.setProperty(l,n[l])}function sde(e){return window.getComputedStyle(e)}class lde extends m${constructor(){super(...arguments),this.type="html",this.renderInstance=g$}readValueFromInstance(t,n){if(Tl.has(n))return this.projection?.isProjecting?ZS(n):xce(t,n);{const r=sde(t),i=(YA(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return h$(t,n)}build(t,n,r){f2(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return g2(t,n,r)}}const v$=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function cde(e,t,n,r){g$(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(v$.has(i)?i:v2(i),t.attrs[i])}class ude extends m${constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Pt}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Tl.has(n)){const r=Vz(n);return r&&r.default||0}return n=v$.has(n)?n:v2(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return o$(t,n,r)}build(t,n,r){n$(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,i){cde(t,n,r,i)}mount(t){this.isSVGTag=a$(t.tagName),super.mount(t)}}const dde=(e,t)=>p2(e)?new ude(t):new lde(t,{allowProjection:e!==C.Fragment});function ks(e,t,n){const r=e.getProps();return m2(r,t,n!==void 0?n:r.custom,e)}const sw=e=>Array.isArray(e);function fde(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,dl(n))}function hde(e){return sw(e)?e[e.length-1]||0:e}function pde(e,t){const n=ks(e,t);let{transitionEnd:r={},transition:i={},...s}=n||{};s={...s,...r};for(const l in s){const u=hde(s[l]);fde(e,l,u)}}function mde(e){return!!(fn(e)&&e.add)}function lw(e,t){const n=e.getValue("willChange");if(mde(n))return n.add(t);if(!n&&Ca.WillChange){const r=new Ca.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function y$(e){return e.props[s$]}const gde=e=>e!==null;function vde(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(gde),s=t&&n!=="loop"&&t%2===1?0:i.length-1;return i[s]}const yde={type:"spring",stiffness:500,damping:25,restSpeed:10},bde=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),xde={type:"keyframes",duration:.8},Sde={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},wde=(e,{keyframes:t})=>t.length>2?xde:Tl.has(e)?e.startsWith("scale")?bde(t[1]):yde:Sde;function Ade({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:s,repeatType:l,repeatDelay:u,from:d,elapsed:f,...p}){return!!Object.keys(p).length}const y2=(e,t,n,r={},i,s)=>l=>{const u=i2(r,e)||{},d=u.delay||r.delay||0;let{elapsed:f=0}=r;f=f-qr(d);const p={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...u,delay:-f,onUpdate:v=>{t.set(v),u.onUpdate&&u.onUpdate(v)},onComplete:()=>{l(),u.onComplete&&u.onComplete()},name:e,motionValue:t,element:s?void 0:i};Ade(u)||Object.assign(p,wde(e,p)),p.duration&&(p.duration=qr(p.duration)),p.repeatDelay&&(p.repeatDelay=qr(p.repeatDelay)),p.from!==void 0&&(p.keyframes[0]=p.from);let m=!1;if((p.type===!1||p.duration===0&&!p.repeatDelay)&&(nw(p),p.delay===0&&(m=!0)),(Ca.instantAnimations||Ca.skipAnimations)&&(m=!0,nw(p),p.delay=0),p.allowFlatten=!u.type&&!u.ease,m&&!s&&t.get()!==void 0){const v=vde(p.keyframes,u);if(v!==void 0){bt.update(()=>{p.onUpdate(v),p.onComplete()});return}}return u.isSync?new r2(p):new Uce(p)};function Ode({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function b$(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:s=e.getDefaultTransition(),transitionEnd:l,...u}=t;r&&(s=r);const d=[],f=i&&e.animationState&&e.animationState.getState()[i];for(const p in u){const m=e.getValue(p,e.latestValues[p]??null),v=u[p];if(v===void 0||f&&Ode(f,p))continue;const b={delay:n,...i2(s||{},p)},A=m.get();if(A!==void 0&&!m.isAnimating&&!Array.isArray(v)&&v===A&&!b.velocity)continue;let S=!1;if(window.MotionHandoffAnimation){const O=y$(e);if(O){const _=window.MotionHandoffAnimation(O,p,bt);_!==null&&(b.startTime=_,S=!0)}}lw(e,p),m.start(y2(p,m,v,e.shouldReduceMotion&&Bz.has(p)?{type:!1}:b,e,S));const w=m.animation;w&&d.push(w)}return l&&Promise.all(d).then(()=>{bt.update(()=>{l&&pde(e,l)})}),d}function x$(e,t,n,r=0,i=1){const s=Array.from(e).sort((f,p)=>f.sortNodePosition(p)).indexOf(t),l=e.size,u=(l-1)*r;return typeof n=="function"?n(s,l):i===1?s*r:u-s*r}function cw(e,t,n={}){const r=ks(e,t,n.type==="exit"?e.presenceContext?.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const s=r?()=>Promise.all(b$(e,r,n)):()=>Promise.resolve(),l=e.variantChildren&&e.variantChildren.size?(d=0)=>{const{delayChildren:f=0,staggerChildren:p,staggerDirection:m}=i;return jde(e,t,d,f,p,m,n)}:()=>Promise.resolve(),{when:u}=i;if(u){const[d,f]=u==="beforeChildren"?[s,l]:[l,s];return d().then(()=>f())}else return Promise.all([s(),l(n.delay)])}function jde(e,t,n=0,r=0,i=0,s=1,l){const u=[];for(const d of e.variantChildren)d.notify("AnimationStart",t),u.push(cw(d,t,{...l,delay:n+(typeof r=="function"?0:r)+x$(e.variantChildren,d,r,i,s)}).then(()=>d.notify("AnimationComplete",t)));return Promise.all(u)}function Tde(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(s=>cw(e,s,n));r=Promise.all(i)}else if(typeof t=="string")r=cw(e,t,n);else{const i=typeof t=="function"?ks(e,t,n.custom):t;r=Promise.all(b$(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function S$(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}const Cde=d2.length;function w$(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?w$(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<Cde;n++){const r=d2[n],i=e.props[r];(zu(i)||i===!1)&&(t[r]=i)}return t}const Ede=[...u2].reverse(),_de=u2.length;function Pde(e){return t=>Promise.all(t.map(({animation:n,options:r})=>Tde(e,n,r)))}function Nde(e){let t=Pde(e),n=Dk(),r=!0;const i=d=>(f,p)=>{const m=ks(e,p,d==="exit"?e.presenceContext?.custom:void 0);if(m){const{transition:v,transitionEnd:b,...A}=m;f={...f,...A,...b}}return f};function s(d){t=d(e)}function l(d){const{props:f}=e,p=w$(e.parent)||{},m=[],v=new Set;let b={},A=1/0;for(let w=0;w<_de;w++){const O=Ede[w],_=n[O],T=f[O]!==void 0?f[O]:p[O],M=zu(T),j=O===d?_.isActive:null;j===!1&&(A=w);let P=T===p[O]&&T!==f[O]&&M;if(P&&r&&e.manuallyAnimateOnMount&&(P=!1),_.protectedKeys={...b},!_.isActive&&j===null||!T&&!_.prevProp||dm(T)||typeof T=="boolean")continue;const N=Mde(_.prevProp,T);let D=N||O===d&&_.isActive&&!P&&M||w>A&&M,k=!1;const U=Array.isArray(T)?T:[T];let $=U.reduce(i(O),{});j===!1&&($={});const{prevResolvedValues:H={}}=_,X={...H,...$},J=V=>{D=!0,v.has(V)&&(k=!0,v.delete(V)),_.needsAnimating[V]=!0;const F=e.getValue(V);F&&(F.liveStyle=!1)};for(const V in X){const F=$[V],ie=H[V];if(b.hasOwnProperty(V))continue;let ue=!1;sw(F)&&sw(ie)?ue=!S$(F,ie):ue=F!==ie,ue?F!=null?J(V):v.add(V):F!==void 0&&v.has(V)?J(V):_.protectedKeys[V]=!0}_.prevProp=T,_.prevResolvedValues=$,_.isActive&&(b={...b,...$}),r&&e.blockInitialAnimation&&(D=!1);const Z=P&&N;D&&(!Z||k)&&m.push(...U.map(V=>{const F={type:O};if(typeof V=="string"&&r&&!Z&&e.manuallyAnimateOnMount&&e.parent){const{parent:ie}=e,ue=ks(ie,V);if(ie.enteringChildren&&ue){const{delayChildren:z}=ue.transition||{};F.delay=x$(ie.enteringChildren,e,z)}}return{animation:V,options:F}}))}if(v.size){const w={};if(typeof f.initial!="boolean"){const O=ks(e,Array.isArray(f.initial)?f.initial[0]:f.initial);O&&O.transition&&(w.transition=O.transition)}v.forEach(O=>{const _=e.getBaseTarget(O),T=e.getValue(O);T&&(T.liveStyle=!0),w[O]=_??null}),m.push({animation:w})}let S=!!m.length;return r&&(f.initial===!1||f.initial===f.animate)&&!e.manuallyAnimateOnMount&&(S=!1),r=!1,S?t(m):Promise.resolve()}function u(d,f){if(n[d].isActive===f)return Promise.resolve();e.variantChildren?.forEach(m=>m.animationState?.setActive(d,f)),n[d].isActive=f;const p=l(d);for(const m in n)n[m].protectedKeys={};return p}return{animateChanges:l,setActive:u,setAnimateFunction:s,getState:()=>n,reset:()=>{n=Dk(),r=!0}}}function Mde(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!S$(t,e):!1}function Ki(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Dk(){return{animate:Ki(!0),whileInView:Ki(),whileHover:Ki(),whileTap:Ki(),whileDrag:Ki(),whileFocus:Ki(),exit:Ki()}}class Oi{constructor(t){this.isMounted=!1,this.node=t}update(){}}class Dde extends Oi{constructor(t){super(t),t.animationState||(t.animationState=Nde(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();dm(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let Rde=0;class kde extends Oi{constructor(){super(...arguments),this.id=Rde++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const Lde={animation:{Feature:Dde},exit:{Feature:kde}};function Bu(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function rd(e){return{point:{x:e.pageX,y:e.pageY}}}const zde=e=>t=>l2(t)&&e(t,rd(t));function Xc(e,t,n,r){return Bu(e,t,zde(n),r)}const A$=1e-4,$de=1-A$,Bde=1+A$,O$=.01,Ide=0-O$,qde=0+O$;function vn(e){return e.max-e.min}function Vde(e,t,n){return Math.abs(e-t)<=n}function Rk(e,t,n,r=.5){e.origin=r,e.originPoint=wt(t.min,t.max,e.origin),e.scale=vn(n)/vn(t),e.translate=wt(n.min,n.max,e.origin)-e.originPoint,(e.scale>=$de&&e.scale<=Bde||isNaN(e.scale))&&(e.scale=1),(e.translate>=Ide&&e.translate<=qde||isNaN(e.translate))&&(e.translate=0)}function Yc(e,t,n,r){Rk(e.x,t.x,n.x,r?r.originX:void 0),Rk(e.y,t.y,n.y,r?r.originY:void 0)}function kk(e,t,n){e.min=n.min+t.min,e.max=e.min+vn(t)}function Ude(e,t,n){kk(e.x,t.x,n.x),kk(e.y,t.y,n.y)}function Lk(e,t,n){e.min=t.min-n.min,e.max=e.min+vn(t)}function Wc(e,t,n){Lk(e.x,t.x,n.x),Lk(e.y,t.y,n.y)}function ir(e){return[e("x"),e("y")]}const j$=({current:e})=>e?e.ownerDocument.defaultView:null,zk=(e,t)=>Math.abs(e-t);function Hde(e,t){const n=zk(e.x,t.x),r=zk(e.y,t.y);return Math.sqrt(n**2+r**2)}class T${constructor(t,n,{transformPagePoint:r,contextWindow:i=window,dragSnapToOrigin:s=!1,distanceThreshold:l=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const v=n1(this.lastMoveEventInfo,this.history),b=this.startEvent!==null,A=Hde(v.offset,{x:0,y:0})>=this.distanceThreshold;if(!b&&!A)return;const{point:S}=v,{timestamp:w}=on;this.history.push({...S,timestamp:w});const{onStart:O,onMove:_}=this.handlers;b||(O&&O(this.lastMoveEvent,v),this.startEvent=this.lastMoveEvent),_&&_(this.lastMoveEvent,v)},this.handlePointerMove=(v,b)=>{this.lastMoveEvent=v,this.lastMoveEventInfo=t1(b,this.transformPagePoint),bt.update(this.updatePoint,!0)},this.handlePointerUp=(v,b)=>{this.end();const{onEnd:A,onSessionEnd:S,resumeAnimation:w}=this.handlers;if(this.dragSnapToOrigin&&w&&w(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const O=n1(v.type==="pointercancel"?this.lastMoveEventInfo:t1(b,this.transformPagePoint),this.history);this.startEvent&&A&&A(v,O),S&&S(v,O)},!l2(t))return;this.dragSnapToOrigin=s,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=l,this.contextWindow=i||window;const u=rd(t),d=t1(u,this.transformPagePoint),{point:f}=d,{timestamp:p}=on;this.history=[{...f,timestamp:p}];const{onSessionStart:m}=n;m&&m(t,n1(d,this.history)),this.removeListeners=ed(Xc(this.contextWindow,"pointermove",this.handlePointerMove),Xc(this.contextWindow,"pointerup",this.handlePointerUp),Xc(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),vi(this.updatePoint)}}function t1(e,t){return t?{point:t(e.point)}:e}function $k(e,t){return{x:e.x-t.x,y:e.y-t.y}}function n1({point:e},t){return{point:e,delta:$k(e,C$(t)),offset:$k(e,Fde(t)),velocity:Gde(t,.1)}}function Fde(e){return e[0]}function C$(e){return e[e.length-1]}function Gde(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=C$(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>qr(t)));)n--;if(!r)return{x:0,y:0};const s=ur(i.timestamp-r.timestamp);if(s===0)return{x:0,y:0};const l={x:(i.x-r.x)/s,y:(i.y-r.y)/s};return l.x===1/0&&(l.x=0),l.y===1/0&&(l.y=0),l}function Kde(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?wt(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?wt(n,e,r.max):Math.min(e,n)),e}function Bk(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function Xde(e,{top:t,left:n,bottom:r,right:i}){return{x:Bk(e.x,n,i),y:Bk(e.y,t,r)}}function Ik(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function Yde(e,t){return{x:Ik(e.x,t.x),y:Ik(e.y,t.y)}}function Wde(e,t){let n=.5;const r=vn(e),i=vn(t);return i>r?n=Ru(t.min,t.max-r,e.min):r>i&&(n=Ru(e.min,e.max-i,t.min)),Ta(0,1,n)}function Zde(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const uw=.35;function Qde(e=uw){return e===!1?e=0:e===!0&&(e=uw),{x:qk(e,"left","right"),y:qk(e,"top","bottom")}}function qk(e,t,n){return{min:Vk(e,t),max:Vk(e,n)}}function Vk(e,t){return typeof e=="number"?e:e[t]||0}const Jde=new WeakMap;class efe{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Pt(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:r}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const s=m=>{const{dragSnapToOrigin:v}=this.getProps();v?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(rd(m).point)},l=(m,v)=>{const{drag:b,dragPropagation:A,onDragStart:S}=this.getProps();if(b&&!A&&(this.openDragLock&&this.openDragLock(),this.openDragLock=iue(b),!this.openDragLock))return;this.latestPointerEvent=m,this.latestPanInfo=v,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),ir(O=>{let _=this.getAxisMotionValue(O).get()||0;if(Vr.test(_)){const{projection:T}=this.visualElement;if(T&&T.layout){const M=T.layout.layoutBox[O];M&&(_=vn(M)*(parseFloat(_)/100))}}this.originPoint[O]=_}),S&&bt.postRender(()=>S(m,v)),lw(this.visualElement,"transform");const{animationState:w}=this.visualElement;w&&w.setActive("whileDrag",!0)},u=(m,v)=>{this.latestPointerEvent=m,this.latestPanInfo=v;const{dragPropagation:b,dragDirectionLock:A,onDirectionLock:S,onDrag:w}=this.getProps();if(!b&&!this.openDragLock)return;const{offset:O}=v;if(A&&this.currentDirection===null){this.currentDirection=tfe(O),this.currentDirection!==null&&S&&S(this.currentDirection);return}this.updateAxis("x",v.point,O),this.updateAxis("y",v.point,O),this.visualElement.render(),w&&w(m,v)},d=(m,v)=>{this.latestPointerEvent=m,this.latestPanInfo=v,this.stop(m,v),this.latestPointerEvent=null,this.latestPanInfo=null},f=()=>ir(m=>this.getAnimationState(m)==="paused"&&this.getAxisMotionValue(m).animation?.play()),{dragSnapToOrigin:p}=this.getProps();this.panSession=new T$(t,{onSessionStart:s,onStart:l,onMove:u,onSessionEnd:d,resumeAnimation:f},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:p,distanceThreshold:r,contextWindow:j$(this.visualElement)})}stop(t,n){const r=t||this.latestPointerEvent,i=n||this.latestPanInfo,s=this.isDragging;if(this.cancel(),!s||!i||!r)return;const{velocity:l}=i;this.startAnimation(l);const{onDragEnd:u}=this.getProps();u&&bt.postRender(()=>u(r,i))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!Yf(t,i,this.currentDirection))return;const s=this.getAxisMotionValue(t);let l=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(l=Kde(l,this.constraints[t],this.elastic[t])),s.set(l)}resolveConstraints(){const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,i=this.constraints;t&&Ts(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=Xde(r.layoutBox,t):this.constraints=!1,this.elastic=Qde(n),i!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&ir(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=Zde(r.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Ts(t))return!1;const r=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const s=nde(r,i.root,this.visualElement.getTransformPagePoint());let l=Yde(i.layout.layoutBox,s);if(n){const u=n(Jue(l));this.hasMutatedConstraints=!!u,u&&(l=u$(u))}return l}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:s,dragSnapToOrigin:l,onDragTransitionEnd:u}=this.getProps(),d=this.constraints||{},f=ir(p=>{if(!Yf(p,n,this.currentDirection))return;let m=d&&d[p]||{};l&&(m={min:0,max:0});const v=i?200:1e6,b=i?40:1e7,A={type:"inertia",velocity:r?t[p]:0,bounceStiffness:v,bounceDamping:b,timeConstant:750,restDelta:1,restSpeed:10,...s,...m};return this.startAxisValueAnimation(p,A)});return Promise.all(f).then(u)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return lw(this.visualElement,t),r.start(y2(t,r,0,n,this.visualElement,!1))}stopAnimation(){ir(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){ir(t=>this.getAxisMotionValue(t).animation?.pause())}getAnimationState(t){return this.getAxisMotionValue(t).animation?.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){ir(n=>{const{drag:r}=this.getProps();if(!Yf(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,s=this.getAxisMotionValue(n);if(i&&i.layout){const{min:l,max:u}=i.layout.layoutBox[n];s.set(t[n]-wt(l,u,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Ts(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};ir(l=>{const u=this.getAxisMotionValue(l);if(u&&this.constraints!==!1){const d=u.get();i[l]=Wde({min:d,max:d},this.constraints[l])}});const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),ir(l=>{if(!Yf(l,t,null))return;const u=this.getAxisMotionValue(l),{min:d,max:f}=this.constraints[l];u.set(wt(d,f,i[l]))})}addListeners(){if(!this.visualElement.current)return;Jde.set(this.visualElement,this);const t=this.visualElement.current,n=Xc(t,"pointerdown",d=>{const{drag:f,dragListener:p=!0}=this.getProps();f&&p&&this.start(d)}),r=()=>{const{dragConstraints:d}=this.getProps();Ts(d)&&d.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,s=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),bt.read(r);const l=Bu(window,"resize",()=>this.scalePositionWithinConstraints()),u=i.addEventListener("didUpdate",(({delta:d,hasLayoutChanged:f})=>{this.isDragging&&f&&(ir(p=>{const m=this.getAxisMotionValue(p);m&&(this.originPoint[p]+=d[p].translate,m.set(m.get()+d[p].translate))}),this.visualElement.render())}));return()=>{l(),n(),s(),u&&u()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:s=!1,dragElastic:l=uw,dragMomentum:u=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:s,dragElastic:l,dragMomentum:u}}}function Yf(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function tfe(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class nfe extends Oi{constructor(t){super(t),this.removeGroupControls=dr,this.removeListeners=dr,this.controls=new efe(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||dr}unmount(){this.removeGroupControls(),this.removeListeners()}}const Uk=e=>(t,n)=>{e&&bt.postRender(()=>e(t,n))};class rfe extends Oi{constructor(){super(...arguments),this.removePointerDownListener=dr}onPointerDown(t){this.session=new T$(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:j$(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:Uk(t),onStart:Uk(n),onMove:r,onEnd:(s,l)=>{delete this.session,i&&bt.postRender(()=>i(s,l))}}}mount(){this.removePointerDownListener=Xc(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const ah={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Hk(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Mc={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Ee.test(e))e=parseFloat(e);else return e;const n=Hk(e,t.target.x),r=Hk(e,t.target.y);return`${n}% ${r}%`}},afe={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=yi.parse(e);if(i.length>5)return r;const s=yi.createTransformer(e),l=typeof i[0]!="number"?1:0,u=n.x.scale*t.x,d=n.y.scale*t.y;i[0+l]/=u,i[1+l]/=d;const f=wt(u,d,.5);return typeof i[2+l]=="number"&&(i[2+l]/=f),typeof i[3+l]=="number"&&(i[3+l]/=f),s(i)}};let r1=!1;class ife extends C.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:s}=t;Cue(ofe),s&&(n.group&&n.group.add(s),r&&r.register&&i&&r.register(s),r1&&s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),ah.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:s}=this.props,{projection:l}=r;return l&&(l.isPresent=s,r1=!0,i||t.layoutDependency!==n||n===void 0||t.isPresent!==s?l.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?l.promote():l.relegate()||bt.postRender(()=>{const u=l.getStack();(!u||!u.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),s2.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;r1=!0,i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function E$(e){const[t,n]=Wz(),r=C.useContext(BA);return g.jsx(ife,{...e,layoutGroup:r,switchLayoutGroup:C.useContext(l$),isPresent:t,safeToRemove:n})}const ofe={borderRadius:{...Mc,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Mc,borderTopRightRadius:Mc,borderBottomLeftRadius:Mc,borderBottomRightRadius:Mc,boxShadow:afe};function sfe(e,t,n){const r=fn(e)?e:dl(e);return r.start(y2("",r,t,n)),r.animation}const lfe=(e,t)=>e.depth-t.depth;class cfe{constructor(){this.children=[],this.isDirty=!1}add(t){VA(this.children,t),this.isDirty=!0}remove(t){UA(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(lfe),this.isDirty=!1,this.children.forEach(t)}}function ufe(e,t){const n=Tn.now(),r=({timestamp:i})=>{const s=i-n;s>=t&&(vi(r),e(s-t))};return bt.setup(r,!0),()=>vi(r)}const _$=["TopLeft","TopRight","BottomLeft","BottomRight"],dfe=_$.length,Fk=e=>typeof e=="string"?parseFloat(e):e,Gk=e=>typeof e=="number"||Ee.test(e);function ffe(e,t,n,r,i,s){i?(e.opacity=wt(0,n.opacity??1,hfe(r)),e.opacityExit=wt(t.opacity??1,0,pfe(r))):s&&(e.opacity=wt(t.opacity??1,n.opacity??1,r));for(let l=0;l<dfe;l++){const u=`border${_$[l]}Radius`;let d=Kk(t,u),f=Kk(n,u);if(d===void 0&&f===void 0)continue;d||(d=0),f||(f=0),d===0||f===0||Gk(d)===Gk(f)?(e[u]=Math.max(wt(Fk(d),Fk(f),r),0),(Vr.test(f)||Vr.test(d))&&(e[u]+="%")):e[u]=f}(t.rotate||n.rotate)&&(e.rotate=wt(t.rotate||0,n.rotate||0,r))}function Kk(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const hfe=P$(0,.5,gz),pfe=P$(.5,.95,dr);function P$(e,t,n){return r=>r<e?0:r>t?1:n(Ru(e,t,r))}function Xk(e,t){e.min=t.min,e.max=t.max}function ar(e,t){Xk(e.x,t.x),Xk(e.y,t.y)}function Yk(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function Wk(e,t,n,r,i){return e-=t,e=dp(e,1/n,r),i!==void 0&&(e=dp(e,1/i,r)),e}function mfe(e,t=0,n=1,r=.5,i,s=e,l=e){if(Vr.test(t)&&(t=parseFloat(t),t=wt(l.min,l.max,t/100)-l.min),typeof t!="number")return;let u=wt(s.min,s.max,r);e===s&&(u-=t),e.min=Wk(e.min,t,n,u,i),e.max=Wk(e.max,t,n,u,i)}function Zk(e,t,[n,r,i],s,l){mfe(e,t[n],t[r],t[i],t.scale,s,l)}const gfe=["x","scaleX","originX"],vfe=["y","scaleY","originY"];function Qk(e,t,n,r){Zk(e.x,t,gfe,n?n.x:void 0,r?r.x:void 0),Zk(e.y,t,vfe,n?n.y:void 0,r?r.y:void 0)}function Jk(e){return e.translate===0&&e.scale===1}function N$(e){return Jk(e.x)&&Jk(e.y)}function e3(e,t){return e.min===t.min&&e.max===t.max}function yfe(e,t){return e3(e.x,t.x)&&e3(e.y,t.y)}function t3(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function M$(e,t){return t3(e.x,t.x)&&t3(e.y,t.y)}function n3(e){return vn(e.x)/vn(e.y)}function r3(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class bfe{constructor(){this.members=[]}add(t){VA(this.members,t),t.scheduleRender()}remove(t){if(UA(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const s=this.members[i];if(s.isPresent!==!1){r=s;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function xfe(e,t,n){let r="";const i=e.x.translate/t.x,s=e.y.translate/t.y,l=n?.z||0;if((i||s||l)&&(r=`translate3d(${i}px, ${s}px, ${l}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:f,rotate:p,rotateX:m,rotateY:v,skewX:b,skewY:A}=n;f&&(r=`perspective(${f}px) ${r}`),p&&(r+=`rotate(${p}deg) `),m&&(r+=`rotateX(${m}deg) `),v&&(r+=`rotateY(${v}deg) `),b&&(r+=`skewX(${b}deg) `),A&&(r+=`skewY(${A}deg) `)}const u=e.x.scale*t.x,d=e.y.scale*t.y;return(u!==1||d!==1)&&(r+=`scale(${u}, ${d})`),r||"none"}const a1=["","X","Y","Z"],Sfe=1e3;let wfe=0;function i1(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function D$(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=y$(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:s}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",bt,!(i||s))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&D$(r)}function R$({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(l={},u=t?.()){this.id=wfe++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(jfe),this.nodes.forEach(_fe),this.nodes.forEach(Pfe),this.nodes.forEach(Tfe)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=l,this.root=u?u.root||u:this,this.path=u?[...u.path,u]:[],this.parent=u,this.depth=u?u.depth+1:0;for(let d=0;d<this.path.length;d++)this.path[d].shouldResetTransform=!0;this.root===this&&(this.nodes=new cfe)}addEventListener(l,u){return this.eventHandlers.has(l)||this.eventHandlers.set(l,new GA),this.eventHandlers.get(l).add(u)}notifyListeners(l,...u){const d=this.eventHandlers.get(l);d&&d.notify(...u)}hasListeners(l){return this.eventHandlers.has(l)}mount(l){if(this.instance)return;this.isSVG=Yz(l)&&!due(l),this.instance=l;const{layoutId:u,layout:d,visualElement:f}=this.options;if(f&&!f.current&&f.mount(l),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(d||u)&&(this.isLayoutDirty=!0),e){let p,m=0;const v=()=>this.root.updateBlockedByResize=!1;bt.read(()=>{m=window.innerWidth}),e(l,()=>{const b=window.innerWidth;b!==m&&(m=b,this.root.updateBlockedByResize=!0,p&&p(),p=ufe(v,250),ah.hasAnimatedSinceResize&&(ah.hasAnimatedSinceResize=!1,this.nodes.forEach(o3)))})}u&&this.root.registerSharedNode(u,this),this.options.animate!==!1&&f&&(u||d)&&this.addEventListener("didUpdate",({delta:p,hasLayoutChanged:m,hasRelativeLayoutChanged:v,layout:b})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const A=this.options.transition||f.getDefaultTransition()||kfe,{onLayoutAnimationStart:S,onLayoutAnimationComplete:w}=f.getProps(),O=!this.targetLayout||!M$(this.targetLayout,b),_=!m&&v;if(this.options.layoutRoot||this.resumeFrom||_||m&&(O||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const T={...i2(A,"layout"),onPlay:S,onComplete:w};(f.shouldReduceMotion||this.options.layoutRoot)&&(T.delay=0,T.type=!1),this.startAnimation(T),this.setAnimationOrigin(p,_)}else m||o3(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=b})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const l=this.getStack();l&&l.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),vi(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(Nfe),this.animationId++)}getTransformTemplate(){const{visualElement:l}=this.options;return l&&l.getProps().transformTemplate}willUpdate(l=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&D$(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let p=0;p<this.path.length;p++){const m=this.path[p];m.shouldResetTransform=!0,m.updateScroll("snapshot"),m.options.layoutRoot&&m.willUpdate(!1)}const{layoutId:u,layout:d}=this.options;if(u===void 0&&!d)return;const f=this.getTransformTemplate();this.prevTransformTemplateValue=f?f(this.latestValues,""):void 0,this.updateSnapshot(),l&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(a3);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(i3);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Efe),this.nodes.forEach(Afe),this.nodes.forEach(Ofe)):this.nodes.forEach(i3),this.clearAllSnapshots();const u=Tn.now();on.delta=Ta(0,1e3/60,u-on.timestamp),on.timestamp=u,on.isProcessing=!0,K0.update.process(on),K0.preRender.process(on),K0.render.process(on),on.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,s2.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Cfe),this.sharedNodes.forEach(Mfe)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,bt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){bt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!vn(this.snapshot.measuredBox.x)&&!vn(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let d=0;d<this.path.length;d++)this.path[d].updateScroll();const l=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Pt(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:u}=this.options;u&&u.notify("LayoutMeasure",this.layout.layoutBox,l?l.layoutBox:void 0)}updateScroll(l="measure"){let u=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===l&&(u=!1),u&&this.instance){const d=r(this.instance);this.scroll={animationId:this.root.animationId,phase:l,isRoot:d,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:d}}}resetTransform(){if(!i)return;const l=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,u=this.projectionDelta&&!N$(this.projectionDelta),d=this.getTransformTemplate(),f=d?d(this.latestValues,""):void 0,p=f!==this.prevTransformTemplateValue;l&&this.instance&&(u||Wi(this.latestValues)||p)&&(i(this.instance,f),this.shouldResetTransform=!1,this.scheduleRender())}measure(l=!0){const u=this.measurePageBox();let d=this.removeElementScroll(u);return l&&(d=this.removeTransform(d)),Lfe(d),{animationId:this.root.animationId,measuredBox:u,layoutBox:d,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:l}=this.options;if(!l)return Pt();const u=l.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(zfe))){const{scroll:f}=this.root;f&&(Cs(u.x,f.offset.x),Cs(u.y,f.offset.y))}return u}removeElementScroll(l){const u=Pt();if(ar(u,l),this.scroll?.wasRoot)return u;for(let d=0;d<this.path.length;d++){const f=this.path[d],{scroll:p,options:m}=f;f!==this.root&&p&&m.layoutScroll&&(p.wasRoot&&ar(u,l),Cs(u.x,p.offset.x),Cs(u.y,p.offset.y))}return u}applyTransform(l,u=!1){const d=Pt();ar(d,l);for(let f=0;f<this.path.length;f++){const p=this.path[f];!u&&p.options.layoutScroll&&p.scroll&&p!==p.root&&Es(d,{x:-p.scroll.offset.x,y:-p.scroll.offset.y}),Wi(p.latestValues)&&Es(d,p.latestValues)}return Wi(this.latestValues)&&Es(d,this.latestValues),d}removeTransform(l){const u=Pt();ar(u,l);for(let d=0;d<this.path.length;d++){const f=this.path[d];if(!f.instance||!Wi(f.latestValues))continue;aw(f.latestValues)&&f.updateSnapshot();const p=Pt(),m=f.measurePageBox();ar(p,m),Qk(u,f.latestValues,f.snapshot?f.snapshot.layoutBox:void 0,p)}return Wi(this.latestValues)&&Qk(u,this.latestValues),u}setTargetDelta(l){this.targetDelta=l,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(l){this.options={...this.options,...l,crossfade:l.crossfade!==void 0?l.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==on.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(l=!1){const u=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=u.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=u.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=u.isSharedProjectionDirty);const d=!!this.resumingFrom||this!==u;if(!(l||d&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:p,layoutId:m}=this.options;if(!(!this.layout||!(p||m))){if(this.resolvedRelativeTargetAt=on.timestamp,!this.targetDelta&&!this.relativeTarget){const v=this.getClosestProjectingParent();v&&v.layout&&this.animationProgress!==1?(this.relativeParent=v,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Pt(),this.relativeTargetOrigin=Pt(),Wc(this.relativeTargetOrigin,this.layout.layoutBox,v.layout.layoutBox),ar(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Pt(),this.targetWithTransforms=Pt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Ude(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):ar(this.target,this.layout.layoutBox),f$(this.target,this.targetDelta)):ar(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const v=this.getClosestProjectingParent();v&&!!v.resumingFrom==!!this.resumingFrom&&!v.options.layoutScroll&&v.target&&this.animationProgress!==1?(this.relativeParent=v,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Pt(),this.relativeTargetOrigin=Pt(),Wc(this.relativeTargetOrigin,this.target,v.target),ar(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||aw(this.parent.latestValues)||d$(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){const l=this.getLead(),u=!!this.resumingFrom||this!==l;let d=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(d=!1),u&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(d=!1),this.resolvedRelativeTargetAt===on.timestamp&&(d=!1),d)return;const{layout:f,layoutId:p}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(f||p))return;ar(this.layoutCorrected,this.layout.layoutBox);const m=this.treeScale.x,v=this.treeScale.y;tde(this.layoutCorrected,this.treeScale,this.path,u),l.layout&&!l.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(l.target=l.layout.layoutBox,l.targetWithTransforms=Pt());const{target:b}=l;if(!b){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Yk(this.prevProjectionDelta.x,this.projectionDelta.x),Yk(this.prevProjectionDelta.y,this.projectionDelta.y)),Yc(this.projectionDelta,this.layoutCorrected,b,this.latestValues),(this.treeScale.x!==m||this.treeScale.y!==v||!r3(this.projectionDelta.x,this.prevProjectionDelta.x)||!r3(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",b))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(l=!0){if(this.options.visualElement?.scheduleRender(),l){const u=this.getStack();u&&u.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=_s(),this.projectionDelta=_s(),this.projectionDeltaWithTransform=_s()}setAnimationOrigin(l,u=!1){const d=this.snapshot,f=d?d.latestValues:{},p={...this.latestValues},m=_s();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!u;const v=Pt(),b=d?d.source:void 0,A=this.layout?this.layout.source:void 0,S=b!==A,w=this.getStack(),O=!w||w.members.length<=1,_=!!(S&&!O&&this.options.crossfade===!0&&!this.path.some(Rfe));this.animationProgress=0;let T;this.mixTargetDelta=M=>{const j=M/1e3;s3(m.x,l.x,j),s3(m.y,l.y,j),this.setTargetDelta(m),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Wc(v,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Dfe(this.relativeTarget,this.relativeTargetOrigin,v,j),T&&yfe(this.relativeTarget,T)&&(this.isProjectionDirty=!1),T||(T=Pt()),ar(T,this.relativeTarget)),S&&(this.animationValues=p,ffe(p,f,this.latestValues,j,_,O)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=j},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(l){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(vi(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=bt.update(()=>{ah.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=dl(0)),this.currentAnimation=sfe(this.motionValue,[0,1e3],{...l,velocity:0,isSync:!0,onUpdate:u=>{this.mixTargetDelta(u),l.onUpdate&&l.onUpdate(u)},onStop:()=>{},onComplete:()=>{l.onComplete&&l.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const l=this.getStack();l&&l.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Sfe),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const l=this.getLead();let{targetWithTransforms:u,target:d,layout:f,latestValues:p}=l;if(!(!u||!d||!f)){if(this!==l&&this.layout&&f&&k$(this.options.animationType,this.layout.layoutBox,f.layoutBox)){d=this.target||Pt();const m=vn(this.layout.layoutBox.x);d.x.min=l.target.x.min,d.x.max=d.x.min+m;const v=vn(this.layout.layoutBox.y);d.y.min=l.target.y.min,d.y.max=d.y.min+v}ar(u,d),Es(u,p),Yc(this.projectionDeltaWithTransform,this.layoutCorrected,u,p)}}registerSharedNode(l,u){this.sharedNodes.has(l)||this.sharedNodes.set(l,new bfe),this.sharedNodes.get(l).add(u);const f=u.options.initialPromotionConfig;u.promote({transition:f?f.transition:void 0,preserveFollowOpacity:f&&f.shouldPreserveFollowOpacity?f.shouldPreserveFollowOpacity(u):void 0})}isLead(){const l=this.getStack();return l?l.lead===this:!0}getLead(){const{layoutId:l}=this.options;return l?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:l}=this.options;return l?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:l}=this.options;if(l)return this.root.sharedNodes.get(l)}promote({needsReset:l,transition:u,preserveFollowOpacity:d}={}){const f=this.getStack();f&&f.promote(this,d),l&&(this.projectionDelta=void 0,this.needsReset=!0),u&&this.setOptions({transition:u})}relegate(){const l=this.getStack();return l?l.relegate(this):!1}resetSkewAndRotation(){const{visualElement:l}=this.options;if(!l)return;let u=!1;const{latestValues:d}=l;if((d.z||d.rotate||d.rotateX||d.rotateY||d.rotateZ||d.skewX||d.skewY)&&(u=!0),!u)return;const f={};d.z&&i1("z",l,f,this.animationValues);for(let p=0;p<a1.length;p++)i1(`rotate${a1[p]}`,l,f,this.animationValues),i1(`skew${a1[p]}`,l,f,this.animationValues);l.render();for(const p in f)l.setStaticValue(p,f[p]),this.animationValues&&(this.animationValues[p]=f[p]);l.scheduleRender()}applyProjectionStyles(l,u){if(!this.instance||this.isSVG)return;if(!this.isVisible){l.visibility="hidden";return}const d=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,l.visibility="",l.opacity="",l.pointerEvents=rh(u?.pointerEvents)||"",l.transform=d?d(this.latestValues,""):"none";return}const f=this.getLead();if(!this.projectionDelta||!this.layout||!f.target){this.options.layoutId&&(l.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,l.pointerEvents=rh(u?.pointerEvents)||""),this.hasProjected&&!Wi(this.latestValues)&&(l.transform=d?d({},""):"none",this.hasProjected=!1);return}l.visibility="";const p=f.animationValues||f.latestValues;this.applyTransformsToTarget();let m=xfe(this.projectionDeltaWithTransform,this.treeScale,p);d&&(m=d(p,m)),l.transform=m;const{x:v,y:b}=this.projectionDelta;l.transformOrigin=`${v.origin*100}% ${b.origin*100}% 0`,f.animationValues?l.opacity=f===this?p.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:p.opacityExit:l.opacity=f===this?p.opacity!==void 0?p.opacity:"":p.opacityExit!==void 0?p.opacityExit:0;for(const A in $u){if(p[A]===void 0)continue;const{correct:S,applyTo:w,isCSSVariable:O}=$u[A],_=m==="none"?p[A]:S(p[A],f);if(w){const T=w.length;for(let M=0;M<T;M++)l[w[M]]=_}else O?this.options.visualElement.renderState.vars[A]=_:l[A]=_}this.options.layoutId&&(l.pointerEvents=f===this?rh(u?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(l=>l.currentAnimation?.stop()),this.root.nodes.forEach(a3),this.root.sharedNodes.clear()}}}function Afe(e){e.updateLayout()}function Ofe(e){const t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:r}=e.layout,{animationType:i}=e.options,s=t.source!==e.layout.source;i==="size"?ir(p=>{const m=s?t.measuredBox[p]:t.layoutBox[p],v=vn(m);m.min=n[p].min,m.max=m.min+v}):k$(i,t.layoutBox,n)&&ir(p=>{const m=s?t.measuredBox[p]:t.layoutBox[p],v=vn(n[p]);m.max=m.min+v,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[p].max=e.relativeTarget[p].min+v)});const l=_s();Yc(l,n,t.layoutBox);const u=_s();s?Yc(u,e.applyTransform(r,!0),t.measuredBox):Yc(u,n,t.layoutBox);const d=!N$(l);let f=!1;if(!e.resumeFrom){const p=e.getClosestProjectingParent();if(p&&!p.resumeFrom){const{snapshot:m,layout:v}=p;if(m&&v){const b=Pt();Wc(b,t.layoutBox,m.layoutBox);const A=Pt();Wc(A,n,v.layoutBox),M$(b,A)||(f=!0),p.options.layoutRoot&&(e.relativeTarget=A,e.relativeTargetOrigin=b,e.relativeParent=p)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:t,delta:u,layoutDelta:l,hasLayoutChanged:d,hasRelativeLayoutChanged:f})}else if(e.isLead()){const{onExitComplete:n}=e.options;n&&n()}e.options.transition=void 0}function jfe(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function Tfe(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Cfe(e){e.clearSnapshot()}function a3(e){e.clearMeasurements()}function i3(e){e.isLayoutDirty=!1}function Efe(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function o3(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function _fe(e){e.resolveTargetDelta()}function Pfe(e){e.calcProjection()}function Nfe(e){e.resetSkewAndRotation()}function Mfe(e){e.removeLeadSnapshot()}function s3(e,t,n){e.translate=wt(t.translate,0,n),e.scale=wt(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function l3(e,t,n,r){e.min=wt(t.min,n.min,r),e.max=wt(t.max,n.max,r)}function Dfe(e,t,n,r){l3(e.x,t.x,n.x,r),l3(e.y,t.y,n.y,r)}function Rfe(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const kfe={duration:.45,ease:[.4,0,.1,1]},c3=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),u3=c3("applewebkit/")&&!c3("chrome/")?Math.round:dr;function d3(e){e.min=u3(e.min),e.max=u3(e.max)}function Lfe(e){d3(e.x),d3(e.y)}function k$(e,t,n){return e==="position"||e==="preserve-aspect"&&!Vde(n3(t),n3(n),.2)}function zfe(e){return e!==e.root&&e.scroll?.wasRoot}const $fe=R$({attachResizeListener:(e,t)=>Bu(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),o1={current:void 0},L$=R$({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!o1.current){const e=new $fe({});e.mount(window),e.setOptions({layoutScroll:!0}),o1.current=e}return o1.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),Bfe={pan:{Feature:rfe},drag:{Feature:nfe,ProjectionNode:L$,MeasureLayout:E$}};function f3(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,s=r[i];s&&bt.postRender(()=>s(t,rd(t)))}class Ife extends Oi{mount(){const{current:t}=this.node;t&&(this.unmount=oue(t,(n,r)=>(f3(this.node,r,"Start"),i=>f3(this.node,i,"End"))))}unmount(){}}class qfe extends Oi{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=ed(Bu(this.node.current,"focus",()=>this.onFocus()),Bu(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function h3(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),s=r[i];s&&bt.postRender(()=>s(t,rd(t)))}class Vfe extends Oi{mount(){const{current:t}=this.node;t&&(this.unmount=uue(t,(n,r)=>(h3(this.node,r,"Start"),(i,{success:s})=>h3(this.node,i,s?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const dw=new WeakMap,s1=new WeakMap,Ufe=e=>{const t=dw.get(e.target);t&&t(e)},Hfe=e=>{e.forEach(Ufe)};function Ffe({root:e,...t}){const n=e||document;s1.has(n)||s1.set(n,{});const r=s1.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(Hfe,{root:e,...t})),r[i]}function Gfe(e,t,n){const r=Ffe(t);return dw.set(e,n),r.observe(e),()=>{dw.delete(e),r.unobserve(e)}}const Kfe={some:0,all:1};class Xfe extends Oi{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:s}=t,l={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:Kfe[i]},u=d=>{const{isIntersecting:f}=d;if(this.isInView===f||(this.isInView=f,s&&!f&&this.hasEnteredView))return;f&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",f);const{onViewportEnter:p,onViewportLeave:m}=this.node.getProps(),v=f?p:m;v&&v(d)};return Gfe(this.node.current,l,u)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(Yfe(t,n))&&this.startObserver()}unmount(){}}function Yfe({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const Wfe={inView:{Feature:Xfe},tap:{Feature:Vfe},focus:{Feature:qfe},hover:{Feature:Ife}},Zfe={layout:{ProjectionNode:L$,MeasureLayout:E$}},Qfe={...Lde,...Wfe,...Bfe,...Zfe},Wf=Que(Qfe,dde);function Jfe(){const[e,t]=C.useState(!0);return C.useEffect(()=>{const n=setTimeout(()=>{t(!1)},2500);return()=>clearTimeout(n)},[]),g.jsx(xue,{"data-loc":"client/src/components/SplashScreen.tsx:15",children:e&&g.jsxs(Wf.div,{"data-loc":"client/src/components/SplashScreen.tsx:17",initial:{opacity:1},exit:{opacity:0},transition:{duration:.5},className:"fixed inset-0 z-[9999] bg-white flex flex-col items-center justify-center",children:[g.jsxs(Wf.div,{"data-loc":"client/src/components/SplashScreen.tsx:23",initial:{scale:.5,opacity:0},animate:{scale:1,opacity:1},transition:{type:"spring",stiffness:260,damping:20,duration:.8},className:"relative w-64 h-64",children:[g.jsx("div",{"data-loc":"client/src/components/SplashScreen.tsx:34",className:"absolute inset-0 bg-primary/10 rounded-full animate-ping duration-1000"}),g.jsx("img",{"data-loc":"client/src/components/SplashScreen.tsx:35",src:"/images/logo.png",alt:"Dog Melina Logo",className:"w-full h-full object-contain relative z-10"})]}),g.jsxs(Wf.div,{"data-loc":"client/src/components/SplashScreen.tsx:42",initial:{y:20,opacity:0},animate:{y:0,opacity:1},transition:{delay:.5,duration:.5},className:"mt-8 text-center",children:[g.jsx("h1",{"data-loc":"client/src/components/SplashScreen.tsx:48",className:"text-3xl font-bold text-primary tracking-tighter",children:"DOG MELINA"}),g.jsx("p",{"data-loc":"client/src/components/SplashScreen.tsx:49",className:"text-muted-foreground font-medium mt-2",children:"O melhor lanche da região"}),g.jsx("div",{"data-loc":"client/src/components/SplashScreen.tsx:51",className:"mt-12 flex gap-1 justify-center",children:[0,1,2].map(n=>g.jsx(Wf.div,{"data-loc":"client/src/components/SplashScreen.tsx:53",animate:{scale:[1,1.5,1]},transition:{repeat:1/0,duration:1,delay:n*.2},className:"w-2 h-2 bg-primary rounded-full"},n))})]})]})})}function ehe(){return C.useEffect(()=>{const e=localStorage.getItem("dogmelina_products"),t=localStorage.getItem("dogmelina_categories");(!e||JSON.parse(e).length<5)&&localStorage.setItem("dogmelina_products",JSON.stringify(Vu)),(!t||JSON.parse(t).length<2)&&localStorage.setItem("dogmelina_categories",JSON.stringify(Tw))},[]),g.jsxs(KU,{"data-loc":"client/src/App.tsx:44",children:[g.jsx(Jfe,{"data-loc":"client/src/App.tsx:45"}),g.jsxs($9,{"data-loc":"client/src/App.tsx:46",children:[g.jsx(Lt,{"data-loc":"client/src/App.tsx:47",path:"/",component:CV}),g.jsx(Lt,{"data-loc":"client/src/App.tsx:48",path:"/menu",component:EV}),g.jsx(Lt,{"data-loc":"client/src/App.tsx:49",path:"/product/:id",component:mU}),g.jsx(Lt,{"data-loc":"client/src/App.tsx:50",path:"/cart",component:xU}),g.jsx(Lt,{"data-loc":"client/src/App.tsx:51",path:"/checkout",component:SU}),g.jsx(Lt,{"data-loc":"client/src/App.tsx:52",path:"/order-confirmation",component:EU}),g.jsx(Lt,{"data-loc":"client/src/App.tsx:53",path:"/order-tracking",component:RU}),g.jsx(Lt,{"data-loc":"client/src/App.tsx:54",path:"/profile",component:GU}),g.jsx(Lt,{"data-loc":"client/src/App.tsx:55",path:"/admin/login",component:XU}),g.jsx(Lt,{"data-loc":"client/src/App.tsx:56",path:"/admin/dashboard",component:WU}),g.jsx(Lt,{"data-loc":"client/src/App.tsx:57",path:"/admin/products",component:QU}),g.jsx(Lt,{"data-loc":"client/src/App.tsx:58",path:"/admin/pdv",component:mH}),g.jsx(Lt,{"data-loc":"client/src/App.tsx:59",path:"/admin/settings",component:gH}),g.jsx(Lt,{"data-loc":"client/src/App.tsx:60",path:"/admin/reports",component:ale}),g.jsx(Lt,{"data-loc":"client/src/App.tsx:61",path:"/admin/categories",component:ile}),g.jsx(Lt,{"data-loc":"client/src/App.tsx:62",path:"/admin/delivery-fees",component:ole}),g.jsx(Lt,{"data-loc":"client/src/App.tsx:63",path:"/admin/customers",component:sle}),g.jsx(Lt,{"data-loc":"client/src/App.tsx:64",path:"/admin/payments",component:mle}),g.jsx(Lt,{"data-loc":"client/src/App.tsx:65",path:"/admin/tv",component:gle}),g.jsx(Lt,{"data-loc":"client/src/App.tsx:66",path:"/driver",component:vle})]})]})}d9.createRoot(document.getElementById("root")).render(g.jsx(ehe,{"data-loc":"client/src/main.tsx:5"}));
