vendor: 5,808 bytes, lines 1-9
1var jA=e=>{throw TypeError(e)};var rb=(e,t,r)=>t.has(e)||jA("Cannot "+r);var $=(e,t,r)=>(rb(e,t,"read from private field"),r?r.call(e):t.get(e)),Fe=(e,t,r)=>t.has(e)?jA("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),be=(e,t,r,n)=>(rb(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),at=(e,t,r)=>(rb(e,t,"access private method"),r);var Mp=(e,t,r,n)=>({set _(a){be(e,t,a,r)},get _(){return $(e,t,n)}});function eU(e,t){for(var r=0;r<t.length;r++){const n=t[r];if(typeof n!="string"&&!Array.isArray(n)){for(const a in n)if(a!=="default"&&!(a in e)){const i=Object.getOwnPropertyDescriptor(n,a);i&&Object.defineProperty(e,a,i.get?i:{enumerable:!0,get:()=>n[a]})}}}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 a of document.querySelectorAll('link[rel="modulepreload"]'))n(a);new MutationObserver(a=>{for(const i of a)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&n(o)}).observe(document,{childList:!0,subtree:!0});function r(a){const i={};return a.integrity&&(i.integrity=a.integrity),a.referrerPolicy&&(i.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?i.credentials="include":a.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(a){if(a.ep)return;a.ep=!0;const i=r(a);fetch(a.href,i)}})();var Dp=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function bt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var VD={exports:{}},iy={},zD={exports:{}},ot={};/** 2 * @license React 3 * react.production.min.js 4 * 5 * Copyright (c) Facebook, Inc. and its affiliates. 6 * 7 * This source code is licensed under the MIT license found in the 8 * LICENSE file in the root directory of this source tree. 9 */var Jh=Symbol.for("react.element"),tU=Symbol.for("react.portal"),rU=Symbol.for("react.fragment"),nU=Symbol.for("react.strict_mode"),aU=Symbol.for("react.profiler"),sU=Symbol.for("react.provider"),iU=Symbol.for("react.context"),oU=Symbol.for("react.forward_ref"),lU=Symbol.for("react.suspense"),cU=Symbol.for("react.memo"),uU=Symbol.for("react.lazy"),wA=Symbol.iterator;function dU(e){return e===null||typeof e!="object"?null:(e=wA&&e[wA]||e["@@iterator"],typeof e=="function"?e:null)}var BD={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},UD=Object.assign,WD={};function Ad(e,t,r){this.props=e,this.context=t,this.refs=WD,this.updater=r||BD}Ad.prototype.isReactComponent={};Ad.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Ad.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function qD(){}qD.prototype=Ad.prototype;function l2(e,t,r){this.props=e,this.context=t,this.refs=WD,this.updater=r||BD}var c2=l2.prototype=new qD;c2.constructor=l2;UD(c2,Ad.prototype);c2.isPureReactComponent=!0;var NA=Array.isArray,HD=Object.prototype.hasOwnProperty,u2={current:null},GD={key:!0,ref:!0,__self:!0,__source:!0};function KD(e,t,r){var n,a={},i=null,o=null;if(t!=null)for(n in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(i=""+t.key),t)HD.call(t,n)&&!GD.hasOwnProperty(n)&&(a[n]=t[n]);var l=arguments.length-2;if(l===1)a.children=r;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];a.children=c}if(e&&e.defaultProps)for(n in l=e.defaultProps,l)a[n]===void 0&&(a[n]=l[n]);return{$$typeof:Jh,type:e,key:i,ref:o,props:a,_owner:u2.current}}function fU(e,t){return{$$typeof:Jh,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function d2(e){return typeof e=="object"&&e!==null&&e.$$typeof===Jh}function mU(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var SA=/\/+/g;function nb(e,t){return typeof e=="object"&&e!==null&&e.key!=null?mU(""+e.key):t.toString(36)}function Eg(e,t,r,n,a){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(i){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case Jh:case tU:o=!0}}if(o)return o=e,a=a(o),e=n===""?"."+nb(o,0):n,NA(a)?(r="",e!=null&&(r=e.replace(SA,"$&/")+"/"),Eg(a,t,r,"",function(u){return u})):a!=null&&(d2(a)&&(a=fU(a,r+(!a.key||o&&o.key===a.key?"":(""+a.key).replace(SA,"$&/")+"/")+e)),t.push(a)),1;if(o=0,n=n===""?".":n+":",NA(e))for(var l=0;l<e.length;l++){i=e[l];var c=n+nb(i,l);o+=Eg(i,t,r,c,a)}else if(c=dU(e),typeof c=="function")for(e=c.call(e),l=0;!(i=e.next()).done;)i=i.value,c=n+nb(i,l++),o+=Eg(i,t,r,c,a);else if(i==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return o}function Rp(e,t,r){if(e==null)return e;var n=[],a=0;return Eg(e,n,"","",function(i){return t.call(r,i,a++)}),n}function hU(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(r){(e._status===0||e._status===-1)&&(e._status=1,e._result=r)},function(r){(e._status===0||e._status===-1)&&(e._status=2,e._result=r)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var bn={current:null},Og={transition:null},pU={ReactCurrentDispatcher:bn,ReactCurrentBatchConfig:Og,ReactCurrentOwner:u2};function XD(){throw Error("act(...) is not supported in production builds of React.")}
vendor: 4,134 bytes, lines 9-25
9ot.Children={map:Rp,forEach:function(e,t,r){Rp(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return Rp(e,function(){t++}),t},toArray:function(e){return Rp(e,function(t){return t})||[]},only:function(e){if(!d2(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};ot.Component=Ad;ot.Fragment=rU;ot.Profiler=aU;ot.PureComponent=l2;ot.StrictMode=nU;ot.Suspense=lU;ot.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=pU;ot.act=XD;ot.cloneElement=function(e,t,r){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var n=UD({},e.props),a=e.key,i=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,o=u2.current),t.key!==void 0&&(a=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(c in t)HD.call(t,c)&&!GD.hasOwnProperty(c)&&(n[c]=t[c]===void 0&&l!==void 0?l[c]:t[c])}var c=arguments.length-2;if(c===1)n.children=r;else if(1<c){l=Array(c);for(var u=0;u<c;u++)l[u]=arguments[u+2];n.children=l}return{$$typeof:Jh,type:e.type,key:a,ref:i,props:n,_owner:o}};ot.createContext=function(e){return e={$$typeof:iU,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:sU,_context:e},e.Consumer=e};ot.createElement=KD;ot.createFactory=function(e){var t=KD.bind(null,e);return t.type=e,t};ot.createRef=function(){return{current:null}};ot.forwardRef=function(e){return{$$typeof:oU,render:e}};ot.isValidElement=d2;ot.lazy=function(e){return{$$typeof:uU,_payload:{_status:-1,_result:e},_init:hU}};ot.memo=function(e,t){return{$$typeof:cU,type:e,compare:t===void 0?null:t}};ot.startTransition=function(e){var t=Og.transition;Og.transition={};try{e()}finally{Og.transition=t}};ot.unstable_act=XD;ot.useCallback=function(e,t){return bn.current.useCallback(e,t)};ot.useContext=function(e){return bn.current.useContext(e)};ot.useDebugValue=function(){};ot.useDeferredValue=function(e){return bn.current.useDeferredValue(e)};ot.useEffect=function(e,t){return bn.current.useEffect(e,t)};ot.useId=function(){return bn.current.useId()};ot.useImperativeHandle=function(e,t,r){return bn.current.useImperativeHandle(e,t,r)};ot.useInsertionEffect=function(e,t){return bn.current.useInsertionEffect(e,t)};ot.useLayoutEffect=function(e,t){return bn.current.useLayoutEffect(e,t)};ot.useMemo=function(e,t){return bn.current.useMemo(e,t)};ot.useReducer=function(e,t,r){return bn.current.useReducer(e,t,r)};ot.useRef=function(e){return bn.current.useRef(e)};ot.useState=function(e){return bn.current.useState(e)};ot.useSyncExternalStore=function(e,t,r){return bn.current.useSyncExternalStore(e,t,r)};ot.useTransition=function(){return bn.current.useTransition()};ot.version="18.3.1";zD.exports=ot;var b=zD.exports;const _=bt(b),YD=eU({__proto__:null,default:_},[b]);/** 10 * @license React 11 * react-jsx-runtime.production.min.js 12 * 13 * Copyright (c) Facebook, Inc. and its affiliates. 14 * 15 * This source code is licensed under the MIT license found in the 16 * LICENSE file in the root directory of this source tree. 17 */var gU=b,vU=Symbol.for("react.element"),xU=Symbol.for("react.fragment"),yU=Object.prototype.hasOwnProperty,bU=gU.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,jU={key:!0,ref:!0,__self:!0,__source:!0};function ZD(e,t,r){var n,a={},i=null,o=null;r!==void 0&&(i=""+r),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(o=t.ref);for(n in t)yU.call(t,n)&&!jU.hasOwnProperty(n)&&(a[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps,t)a[n]===void 0&&(a[n]=t[n]);return{$$typeof:vU,type:e,key:i,ref:o,props:a,_owner:bU.current}}iy.Fragment=xU;iy.jsx=ZD;iy.jsxs=ZD;VD.exports=iy;var s=VD.exports,QD={exports:{}},Yn={},JD={exports:{}},eR={};/** 18 * @license React 19 * scheduler.production.min.js 20 * 21 * Copyright (c) Facebook, Inc. and its affiliates. 22 * 23 * This source code is licensed under the MIT license found in the 24 * LICENSE file in the root directory of this source tree. 25 */(function(e){function t(R,I){var G=R.length;R.push(I);e:for(;0<G;){var U=G-1>>>1,K=R[U];if(0<a(K,I))R[U]=I,R[G]=K,G=U;else break e}}
vendor: 10,504 bytes, lines 25-34
25function r(R){return R.length===0?null:R[0]}function n(R){if(R.length===0)return null;var I=R[0],G=R.pop();if(G!==I){R[0]=G;e:for(var U=0,K=R.length,ce=K>>>1;U<ce;){var pe=2*(U+1)-1,Ke=R[pe],q=pe+1,Q=R[q];if(0>a(Ke,G))q<K&&0>a(Q,Ke)?(R[U]=Q,R[q]=G,U=q):(R[U]=Ke,R[pe]=G,U=pe);else if(q<K&&0>a(Q,G))R[U]=Q,R[q]=G,U=q;else break e}}return I}function a(R,I){var G=R.sortIndex-I.sortIndex;return G!==0?G:R.id-I.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var o=Date,l=o.now();e.unstable_now=function(){return o.now()-l}}var c=[],u=[],d=1,f=null,m=3,p=!1,v=!1,h=!1,x=typeof setTimeout=="function"?setTimeout:null,y=typeof clearTimeout=="function"?clearTimeout:null,g=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function j(R){for(var I=r(u);I!==null;){if(I.callback===null)n(u);else if(I.startTime<=R)n(u),I.sortIndex=I.expirationTime,t(c,I);else break;I=r(u)}}function S(R){if(h=!1,j(R),!v)if(r(c)!==null)v=!0,L(w);else{var I=r(u);I!==null&&B(S,I.startTime-R)}}function w(R,I){v=!1,h&&(h=!1,y(C),C=-1),p=!0;var G=m;try{for(j(I),f=r(c);f!==null&&(!(f.expirationTime>I)||R&&!E());){var U=f.callback;if(typeof U=="function"){f.callback=null,m=f.priorityLevel;var K=U(f.expirationTime<=I);I=e.unstable_now(),typeof K=="function"?f.callback=K:f===r(c)&&n(c),j(I)}else n(c);f=r(c)}if(f!==null)var ce=!0;else{var pe=r(u);pe!==null&&B(S,pe.startTime-I),ce=!1}return ce}finally{f=null,m=G,p=!1}}var N=!1,P=null,C=-1,A=5,O=-1;function E(){return!(e.unstable_now()-O<A)}function k(){if(P!==null){var R=e.unstable_now();O=R;var I=!0;try{I=P(!0,R)}finally{I?M():(N=!1,P=null)}}else N=!1}var M;if(typeof g=="function")M=function(){g(k)};else if(typeof MessageChannel<"u"){var D=new MessageChannel,F=D.port2;D.port1.onmessage=k,M=function(){F.postMessage(null)}}else M=function(){x(k,0)};function L(R){P=R,N||(N=!0,M())}function B(R,I){C=x(function(){R(e.unstable_now())},I)}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(R){R.callback=null},e.unstable_continueExecution=function(){v||p||(v=!0,L(w))},e.unstable_forceFrameRate=function(R){0>R||125<R?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):A=0<R?Math.floor(1e3/R):5},e.unstable_getCurrentPriorityLevel=function(){return m},e.unstable_getFirstCallbackNode=function(){return r(c)},e.unstable_next=function(R){switch(m){case 1:case 2:case 3:var I=3;break;default:I=m}var G=m;m=I;try{return R()}finally{m=G}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(R,I){switch(R){case 1:case 2:case 3:case 4:case 5:break;default:R=3}var G=m;m=R;try{return I()}finally{m=G}},e.unstable_scheduleCallback=function(R,I,G){var U=e.unstable_now();switch(typeof G=="object"&&G!==null?(G=G.delay,G=typeof G=="number"&&0<G?U+G:U):G=U,R){case 1:var K=-1;break;case 2:K=250;break;case 5:K=1073741823;break;case 4:K=1e4;break;default:K=5e3}return K=G+K,R={id:d++,callback:I,priorityLevel:R,startTime:G,expirationTime:K,sortIndex:-1},G>U?(R.sortIndex=G,t(u,R),r(c)===null&&R===r(u)&&(h?(y(C),C=-1):h=!0,B(S,G-U))):(R.sortIndex=K,t(c,R),v||p||(v=!0,L(w))),R},e.unstable_shouldYield=E,e.unstable_wrapCallback=function(R){var I=m;return function(){var G=m;m=I;try{return R.apply(this,arguments)}finally{m=G}}}})(eR);JD.exports=eR;var wU=JD.exports;/** 26 * @license React 27 * react-dom.production.min.js 28 * 29 * Copyright (c) Facebook, Inc. and its affiliates. 30 * 31 * This source code is licensed under the MIT license found in the 32 * LICENSE file in the root directory of this source tree. 33 */var NU=b,Kn=wU;function ae(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var tR=new Set,pm={};function ac(e,t){Ru(e,t),Ru(e+"Capture",t)}function Ru(e,t){for(pm[e]=t,e=0;e<t.length;e++)tR.add(t[e])}var di=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),$j=Object.prototype.hasOwnProperty,SU=/^[: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]*$/,PA={},CA={};function PU(e){return $j.call(CA,e)?!0:$j.call(PA,e)?!1:SU.test(e)?CA[e]=!0:(PA[e]=!0,!1)}function CU(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function AU(e,t,r,n){if(t===null||typeof t>"u"||CU(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function jn(e,t,r,n,a,i,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=a,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=o}var Br={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Br[e]=new jn(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Br[t]=new jn(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Br[e]=new jn(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Br[e]=new jn(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Br[e]=new jn(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Br[e]=new jn(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Br[e]=new jn(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Br[e]=new jn(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Br[e]=new jn(e,5,!1,e.toLowerCase(),null,!1,!1)});var f2=/[\-:]([a-z])/g;function m2(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(f2,m2);Br[t]=new jn(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(f2,m2);Br[t]=new jn(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(f2,m2);Br[t]=new jn(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Br[e]=new jn(e,1,!1,e.toLowerCase(),null,!1,!1)});Br.xlinkHref=new jn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Br[e]=new jn(e,1,!1,e.toLowerCase(),null,!0,!0)});function h2(e,t,r,n){var a=Br.hasOwnProperty(t)?Br[t]:null;(a!==null?a.type!==0:n||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(AU(t,r,a,n)&&(r=null),n||a===null?PU(t)&&(r===null?e.removeAttribute(t):e.setAttribute(t,""+r)):a.mustUseProperty?e[a.propertyName]=r===null?a.type===3?!1:"":r:(t=a.attributeName,n=a.attributeNamespace,r===null?e.removeAttribute(t):(a=a.type,r=a===3||a===4&&r===!0?"":""+r,n?e.setAttributeNS(n,t,r):e.setAttribute(t,r))))}var Si=NU.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Ip=Symbol.for("react.element"),kc=Symbol.for("react.portal"),Mc=Symbol.for("react.fragment"),p2=Symbol.for("react.strict_mode"),Lj=Symbol.for("react.profiler"),rR=Symbol.for("react.provider"),nR=Symbol.for("react.context"),g2=Symbol.for("react.forward_ref"),Fj=Symbol.for("react.suspense"),Vj=Symbol.for("react.suspense_list"),v2=Symbol.for("react.memo"),Vi=Symbol.for("react.lazy"),aR=Symbol.for("react.offscreen"),AA=Symbol.iterator;function af(e){return e===null||typeof e!="object"?null:(e=AA&&e[AA]||e["@@iterator"],typeof e=="function"?e:null)}var er=Object.assign,ab;function kf(e){if(ab===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);ab=t&&t[1]||""}return` 34`+ab+e}var sb=!1;function ib(e,t){if(!e||sb)return"";sb=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var n=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){n=u}e.call(t.prototype)}else{try{throw Error()}catch(u){n=u}e()}}
vendor: 14,106 bytes, lines 34-37
34catch(u){if(u&&n&&typeof u.stack=="string"){for(var a=u.stack.split(` 35`),i=n.stack.split(` 36`),o=a.length-1,l=i.length-1;1<=o&&0<=l&&a[o]!==i[l];)l--;for(;1<=o&&0<=l;o--,l--)if(a[o]!==i[l]){if(o!==1||l!==1)do if(o--,l--,0>l||a[o]!==i[l]){var c=` 37`+a[o].replace(" at new "," at ");return e.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",e.displayName)),c}while(1<=o&&0<=l);break}}}finally{sb=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?kf(e):""}function TU(e){switch(e.tag){case 5:return kf(e.type);case 16:return kf("Lazy");case 13:return kf("Suspense");case 19:return kf("SuspenseList");case 0:case 2:case 15:return e=ib(e.type,!1),e;case 11:return e=ib(e.type.render,!1),e;case 1:return e=ib(e.type,!0),e;default:return""}}function zj(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Mc:return"Fragment";case kc:return"Portal";case Lj:return"Profiler";case p2:return"StrictMode";case Fj:return"Suspense";case Vj:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case nR:return(e.displayName||"Context")+".Consumer";case rR:return(e._context.displayName||"Context")+".Provider";case g2:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case v2:return t=e.displayName||null,t!==null?t:zj(e.type)||"Memo";case Vi:t=e._payload,e=e._init;try{return zj(e(t))}catch{}}return null}function EU(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return zj(t);case 8:return t===p2?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function jo(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function sR(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function OU(e){var t=sR(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var a=r.get,i=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(o){n=""+o,i.call(this,o)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(o){n=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function $p(e){e._valueTracker||(e._valueTracker=OU(e))}function iR(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=sR(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function ev(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Bj(e,t){var r=t.checked;return er({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function TA(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=jo(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function oR(e,t){t=t.checked,t!=null&&h2(e,"checked",t,!1)}function Uj(e,t){oR(e,t);var r=jo(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Wj(e,t.type,r):t.hasOwnProperty("defaultValue")&&Wj(e,t.type,jo(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function EA(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function Wj(e,t,r){(t!=="number"||ev(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var Mf=Array.isArray;function nu(e,t,r,n){if(e=e.options,t){t={};for(var a=0;a<r.length;a++)t["$"+r[a]]=!0;for(r=0;r<e.length;r++)a=t.hasOwnProperty("$"+e[r].value),e[r].selected!==a&&(e[r].selected=a),a&&n&&(e[r].defaultSelected=!0)}else{for(r=""+jo(r),t=null,a=0;a<e.length;a++){if(e[a].value===r){e[a].selected=!0,n&&(e[a].defaultSelected=!0);return}t!==null||e[a].disabled||(t=e[a])}t!==null&&(t.selected=!0)}}function qj(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(ae(91));return er({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function OA(e,t){var r=t.value;if(r==null){if(r=t.children,t=t.defaultValue,r!=null){if(t!=null)throw Error(ae(92));if(Mf(r)){if(1<r.length)throw Error(ae(93));r=r[0]}t=r}t==null&&(t=""),r=t}e._wrapperState={initialValue:jo(r)}}function lR(e,t){var r=jo(t.value),n=jo(t.defaultValue);r!=null&&(r=""+r,r!==e.value&&(e.value=r),t.defaultValue==null&&e.defaultValue!==r&&(e.defaultValue=r)),n!=null&&(e.defaultValue=""+n)}function _A(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function cR(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Hj(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?cR(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Lp,uR=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,r,n,a){MSApp.execUnsafeLocalFunction(function(){return e(t,r,n,a)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Lp=Lp||document.createElement("div"),Lp.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Lp.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function gm(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var qf={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},_U=["Webkit","ms","Moz","O"];Object.keys(qf).forEach(function(e){_U.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),qf[t]=qf[e]})});function dR(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||qf.hasOwnProperty(e)&&qf[e]?(""+t).trim():t+"px"}function fR(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,a=dR(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,a):e[r]=a}}var kU=er({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Gj(e,t){if(t){if(kU[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(ae(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(ae(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(ae(61))}if(t.style!=null&&typeof t.style!="object")throw Error(ae(62))}}function Kj(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Xj=null;function x2(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Yj=null,au=null,su=null;function kA(e){if(e=rp(e)){if(typeof Yj!="function")throw Error(ae(280));var t=e.stateNode;t&&(t=dy(t),Yj(e.stateNode,e.type,t))}}function mR(e){au?su?su.push(e):su=[e]:au=e}function hR(){if(au){var e=au,t=su;if(su=au=null,kA(e),t)for(e=0;e<t.length;e++)kA(t[e])}}function pR(e,t){return e(t)}function gR(){}var ob=!1;function vR(e,t,r){if(ob)return e(t,r);ob=!0;try{return pR(e,t,r)}finally{ob=!1,(au!==null||su!==null)&&(gR(),hR())}}function vm(e,t){var r=e.stateNode;if(r===null)return null;var n=dy(r);if(n===null)return null;r=n[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(e=e.type,n=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!n;break e;default:e=!1}if(e)return null;if(r&&typeof r!="function")throw Error(ae(231,t,typeof r));return r}var Zj=!1;if(di)try{var sf={};Object.defineProperty(sf,"passive",{get:function(){Zj=!0}}),window.addEventListener("test",sf,sf),window.removeEventListener("test",sf,sf)}catch{Zj=!1}function MU(e,t,r,n,a,i,o,l,c){var u=Array.prototype.slice.call(arguments,3);try{t.apply(r,u)}catch(d){this.onError(d)}}var Hf=!1,tv=null,rv=!1,Qj=null,DU={onError:function(e){Hf=!0,tv=e}};function RU(e,t,r,n,a,i,o,l,c){Hf=!1,tv=null,MU.apply(DU,arguments)}function IU(e,t,r,n,a,i,o,l,c){if(RU.apply(this,arguments),Hf){if(Hf){var u=tv;Hf=!1,tv=null}else throw Error(ae(198));rv||(rv=!0,Qj=u)}}function sc(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(r=t.return),e=t.return;while(e)}return t.tag===3?r:null}function xR(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function MA(e){if(sc(e)!==e)throw Error(ae(188))}function $U(e){var t=e.alternate;if(!t){if(t=sc(e),t===null)throw Error(ae(188));return t!==e?null:e}for(var r=e,n=t;;){var a=r.return;if(a===null)break;var i=a.alternate;if(i===null){if(n=a.return,n!==null){r=n;continue}break}if(a.child===i.child){for(i=a.child;i;){if(i===r)return MA(a),e;if(i===n)return MA(a),t;i=i.sibling}throw Error(ae(188))}if(r.return!==n.return)r=a,n=i;else{for(var o=!1,l=a.child;l;){if(l===r){o=!0,r=a,n=i;break}if(l===n){o=!0,n=a,r=i;break}l=l.sibling}if(!o){for(l=i.child;l;){if(l===r){o=!0,r=i,n=a;break}if(l===n){o=!0,n=i,r=a;break}l=l.sibling}if(!o)throw Error(ae(189))}}if(r.alternate!==n)throw Error(ae(190))}if(r.tag!==3)throw Error(ae(188));return r.stateNode.current===r?e:t}function yR(e){return e=$U(e),e!==null?bR(e):null}function bR(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=bR(e);if(t!==null)return t;e=e.sibling}return null}var jR=Kn.unstable_scheduleCallback,DA=Kn.unstable_cancelCallback,LU=Kn.unstable_shouldYield,FU=Kn.unstable_requestPaint,lr=Kn.unstable_now,VU=Kn.unstable_getCurrentPriorityLevel,y2=Kn.unstable_ImmediatePriority,wR=Kn.unstable_UserBlockingPriority,nv=Kn.unstable_NormalPriority,zU=Kn.unstable_LowPriority,NR=Kn.unstable_IdlePriority,oy=null,hs=null;function BU(e){if(hs&&typeof hs.onCommitFiberRoot=="function")try{hs.onCommitFiberRoot(oy,e,void 0,(e.current.flags&128)===128)}catch{}}var za=Math.clz32?Math.clz32:qU,UU=Math.log,WU=Math.LN2;function qU(e){return e>>>=0,e===0?32:31-(UU(e)/WU|0)|0}var Fp=64,Vp=4194304;function Df(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function av(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,a=e.suspendedLanes,i=e.pingedLanes,o=r&268435455;if(o!==0){var l=o&~a;l!==0?n=Df(l):(i&=o,i!==0&&(n=Df(i)))}else o=r&~a,o!==0?n=Df(o):i!==0&&(n=Df(i));if(n===0)return 0;if(t!==0&&t!==n&&!(t&a)&&(a=n&-n,i=t&-t,a>=i||a===16&&(i&4194240)!==0))return t;if(n&4&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0<t;)r=31-za(t),a=1<<r,n|=e[r],t&=~a;return n}function HU(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function GU(e,t){for(var r=e.suspendedLanes,n=e.pingedLanes,a=e.expirationTimes,i=e.pendingLanes;0<i;){var o=31-za(i),l=1<<o,c=a[o];c===-1?(!(l&r)||l&n)&&(a[o]=HU(l,t)):c<=t&&(e.expiredLanes|=l),i&=~l}}function Jj(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function SR(){var e=Fp;return Fp<<=1,!(Fp&4194240)&&(Fp=64),e}function lb(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}
vendor: 4,087 bytes, line 37
37function ep(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-za(t),e[t]=r}function KU(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0<r;){var a=31-za(r),i=1<<a;t[a]=0,n[a]=-1,e[a]=-1,r&=~i}}function b2(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var n=31-za(r),a=1<<n;a&t|e[n]&t&&(e[n]|=t),r&=~a}}var Nt=0;function PR(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var CR,j2,AR,TR,ER,e1=!1,zp=[],co=null,uo=null,fo=null,xm=new Map,ym=new Map,Ui=[],XU="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function RA(e,t){switch(e){case"focusin":case"focusout":co=null;break;case"dragenter":case"dragleave":uo=null;break;case"mouseover":case"mouseout":fo=null;break;case"pointerover":case"pointerout":xm.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ym.delete(t.pointerId)}}function of(e,t,r,n,a,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:r,eventSystemFlags:n,nativeEvent:i,targetContainers:[a]},t!==null&&(t=rp(t),t!==null&&j2(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,a!==null&&t.indexOf(a)===-1&&t.push(a),e)}function YU(e,t,r,n,a){switch(t){case"focusin":return co=of(co,e,t,r,n,a),!0;case"dragenter":return uo=of(uo,e,t,r,n,a),!0;case"mouseover":return fo=of(fo,e,t,r,n,a),!0;case"pointerover":var i=a.pointerId;return xm.set(i,of(xm.get(i)||null,e,t,r,n,a)),!0;case"gotpointercapture":return i=a.pointerId,ym.set(i,of(ym.get(i)||null,e,t,r,n,a)),!0}return!1}function OR(e){var t=cl(e.target);if(t!==null){var r=sc(t);if(r!==null){if(t=r.tag,t===13){if(t=xR(r),t!==null){e.blockedOn=t,ER(e.priority,function(){AR(r)});return}}else if(t===3&&r.stateNode.current.memoizedState.isDehydrated){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function _g(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=t1(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r===null){r=e.nativeEvent;var n=new r.constructor(r.type,r);Xj=n,r.target.dispatchEvent(n),Xj=null}else return t=rp(r),t!==null&&j2(t),e.blockedOn=r,!1;t.shift()}return!0}function IA(e,t,r){_g(e)&&r.delete(t)}function ZU(){e1=!1,co!==null&&_g(co)&&(co=null),uo!==null&&_g(uo)&&(uo=null),fo!==null&&_g(fo)&&(fo=null),xm.forEach(IA),ym.forEach(IA)}function lf(e,t){e.blockedOn===t&&(e.blockedOn=null,e1||(e1=!0,Kn.unstable_scheduleCallback(Kn.unstable_NormalPriority,ZU)))}function bm(e){function t(a){return lf(a,e)}if(0<zp.length){lf(zp[0],e);for(var r=1;r<zp.length;r++){var n=zp[r];n.blockedOn===e&&(n.blockedOn=null)}}for(co!==null&&lf(co,e),uo!==null&&lf(uo,e),fo!==null&&lf(fo,e),xm.forEach(t),ym.forEach(t),r=0;r<Ui.length;r++)n=Ui[r],n.blockedOn===e&&(n.blockedOn=null);for(;0<Ui.length&&(r=Ui[0],r.blockedOn===null);)OR(r),r.blockedOn===null&&Ui.shift()}var iu=Si.ReactCurrentBatchConfig,sv=!0;function QU(e,t,r,n){var a=Nt,i=iu.transition;iu.transition=null;try{Nt=1,w2(e,t,r,n)}finally{Nt=a,iu.transition=i}}function JU(e,t,r,n){var a=Nt,i=iu.transition;iu.transition=null;try{Nt=4,w2(e,t,r,n)}finally{Nt=a,iu.transition=i}}function w2(e,t,r,n){if(sv){var a=t1(e,t,r,n);if(a===null)xb(e,t,n,iv,r),RA(e,n);else if(YU(a,e,t,r,n))n.stopPropagation();else if(RA(e,n),t&4&&-1<XU.indexOf(e)){for(;a!==null;){var i=rp(a);if(i!==null&&CR(i),i=t1(e,t,r,n),i===null&&xb(e,t,n,iv,r),i===a)break;a=i}a!==null&&n.stopPropagation()}else xb(e,t,n,null,r)}}var iv=null;function t1(e,t,r,n){if(iv=null,e=x2(n),e=cl(e),e!==null)if(t=sc(e),t===null)e=null;else if(r=t.tag,r===13){if(e=xR(t),e!==null)return e;e=null}else if(r===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return iv=e,null}
vendor: 7,379 bytes, line 37
37function _R(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(VU()){case y2:return 1;case wR:return 4;case nv:case zU:return 16;case NR:return 536870912;default:return 16}default:return 16}}var ro=null,N2=null,kg=null;function kR(){if(kg)return kg;var e,t=N2,r=t.length,n,a="value"in ro?ro.value:ro.textContent,i=a.length;for(e=0;e<r&&t[e]===a[e];e++);var o=r-e;for(n=1;n<=o&&t[r-n]===a[i-n];n++);return kg=a.slice(e,1<n?1-n:void 0)}function Mg(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Bp(){return!0}function $A(){return!1}function Zn(e){function t(r,n,a,i,o){this._reactName=r,this._targetInst=a,this.type=n,this.nativeEvent=i,this.target=o,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(r=e[l],this[l]=r?r(i):i[l]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?Bp:$A,this.isPropagationStopped=$A,this}return er(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=Bp)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=Bp)},persist:function(){},isPersistent:Bp}),t}var Td={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},S2=Zn(Td),tp=er({},Td,{view:0,detail:0}),eW=Zn(tp),cb,ub,cf,ly=er({},tp,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:P2,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==cf&&(cf&&e.type==="mousemove"?(cb=e.screenX-cf.screenX,ub=e.screenY-cf.screenY):ub=cb=0,cf=e),cb)},movementY:function(e){return"movementY"in e?e.movementY:ub}}),LA=Zn(ly),tW=er({},ly,{dataTransfer:0}),rW=Zn(tW),nW=er({},tp,{relatedTarget:0}),db=Zn(nW),aW=er({},Td,{animationName:0,elapsedTime:0,pseudoElement:0}),sW=Zn(aW),iW=er({},Td,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),oW=Zn(iW),lW=er({},Td,{data:0}),FA=Zn(lW),cW={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},uW={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"},dW={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function fW(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=dW[e])?!!t[e]:!1}function P2(){return fW}var mW=er({},tp,{key:function(e){if(e.key){var t=cW[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Mg(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?uW[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:P2,charCode:function(e){return e.type==="keypress"?Mg(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Mg(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),hW=Zn(mW),pW=er({},ly,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),VA=Zn(pW),gW=er({},tp,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:P2}),vW=Zn(gW),xW=er({},Td,{propertyName:0,elapsedTime:0,pseudoElement:0}),yW=Zn(xW),bW=er({},ly,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),jW=Zn(bW),wW=[9,13,27,32],C2=di&&"CompositionEvent"in window,Gf=null;di&&"documentMode"in document&&(Gf=document.documentMode);var NW=di&&"TextEvent"in window&&!Gf,MR=di&&(!C2||Gf&&8<Gf&&11>=Gf),zA=" ",BA=!1;function DR(e,t){switch(e){case"keyup":return wW.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function RR(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Dc=!1;function SW(e,t){switch(e){case"compositionend":return RR(t);case"keypress":return t.which!==32?null:(BA=!0,zA);case"textInput":return e=t.data,e===zA&&BA?null:e;default:return null}}function PW(e,t){if(Dc)return e==="compositionend"||!C2&&DR(e,t)?(e=kR(),kg=N2=ro=null,Dc=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return MR&&t.locale!=="ko"?null:t.data;default:return null}}var CW={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 UA(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!CW[e.type]:t==="textarea"}function IR(e,t,r,n){mR(n),t=ov(t,"onChange"),0<t.length&&(r=new S2("onChange","change",null,r,n),e.push({event:r,listeners:t}))}var Kf=null,jm=null;function AW(e){GR(e,0)}function cy(e){var t=$c(e);if(iR(t))return e}function TW(e,t){if(e==="change")return t}var $R=!1;if(di){var fb;if(di){var mb="oninput"in document;if(!mb){var WA=document.createElement("div");WA.setAttribute("oninput","return;"),mb=typeof WA.oninput=="function"}fb=mb}else fb=!1;$R=fb&&(!document.documentMode||9<document.documentMode)}function qA(){Kf&&(Kf.detachEvent("onpropertychange",LR),jm=Kf=null)}function LR(e){if(e.propertyName==="value"&&cy(jm)){var t=[];
vendor: 5,280 bytes, line 37
37IR(t,jm,e,x2(e)),vR(AW,t)}}function EW(e,t,r){e==="focusin"?(qA(),Kf=t,jm=r,Kf.attachEvent("onpropertychange",LR)):e==="focusout"&&qA()}function OW(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return cy(jm)}function _W(e,t){if(e==="click")return cy(t)}function kW(e,t){if(e==="input"||e==="change")return cy(t)}function MW(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var qa=typeof Object.is=="function"?Object.is:MW;function wm(e,t){if(qa(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(n=0;n<r.length;n++){var a=r[n];if(!$j.call(t,a)||!qa(e[a],t[a]))return!1}return!0}function HA(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function GA(e,t){var r=HA(e);e=0;for(var n;r;){if(r.nodeType===3){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=HA(r)}}function FR(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?FR(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function VR(){for(var e=window,t=ev();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=ev(e.document)}return t}function A2(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function DW(e){var t=VR(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&FR(r.ownerDocument.documentElement,r)){if(n!==null&&A2(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var a=r.textContent.length,i=Math.min(n.start,a);n=n.end===void 0?i:Math.min(n.end,a),!e.extend&&i>n&&(a=n,n=i,i=a),a=GA(r,i);var o=GA(r,n);a&&o&&(e.rangeCount!==1||e.anchorNode!==a.node||e.anchorOffset!==a.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(a.node,a.offset),e.removeAllRanges(),i>n?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r<t.length;r++)e=t[r],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var RW=di&&"documentMode"in document&&11>=document.documentMode,Rc=null,r1=null,Xf=null,n1=!1;function KA(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;n1||Rc==null||Rc!==ev(n)||(n=Rc,"selectionStart"in n&&A2(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),Xf&&wm(Xf,n)||(Xf=n,n=ov(r1,"onSelect"),0<n.length&&(t=new S2("onSelect","select",null,t,r),e.push({event:t,listeners:n}),t.target=Rc)))}function Up(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var Ic={animationend:Up("Animation","AnimationEnd"),animationiteration:Up("Animation","AnimationIteration"),animationstart:Up("Animation","AnimationStart"),transitionend:Up("Transition","TransitionEnd")},hb={},zR={};di&&(zR=document.createElement("div").style,"AnimationEvent"in window||(delete Ic.animationend.animation,delete Ic.animationiteration.animation,delete Ic.animationstart.animation),"TransitionEvent"in window||delete Ic.transitionend.transition);function uy(e){if(hb[e])return hb[e];if(!Ic[e])return e;var t=Ic[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in zR)return hb[e]=t[r];return e}var BR=uy("animationend"),UR=uy("animationiteration"),WR=uy("animationstart"),qR=uy("transitionend"),HR=new Map,XA="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Fo(e,t){HR.set(e,t),ac(t,[e])}for(var pb=0;pb<XA.length;pb++){var gb=XA[pb],IW=gb.toLowerCase(),$W=gb[0].toUpperCase()+gb.slice(1);Fo(IW,"on"+$W)}Fo(BR,"onAnimationEnd");Fo(UR,"onAnimationIteration");Fo(WR,"onAnimationStart");Fo("dblclick","onDoubleClick");Fo("focusin","onFocus");Fo("focusout","onBlur");Fo(qR,"onTransitionEnd");Ru("onMouseEnter",["mouseout","mouseover"]);Ru("onMouseLeave",["mouseout","mouseover"]);Ru("onPointerEnter",["pointerout","pointerover"]);Ru("onPointerLeave",["pointerout","pointerover"]);ac("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));
vendor: 4,770 bytes, line 37
37ac("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));ac("onBeforeInput",["compositionend","keypress","textInput","paste"]);ac("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));ac("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));ac("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Rf="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(" "),LW=new Set("cancel close invalid load scroll toggle".split(" ").concat(Rf));function YA(e,t,r){var n=e.type||"unknown-event";e.currentTarget=r,IU(n,t,void 0,e),e.currentTarget=null}function GR(e,t){t=(t&4)!==0;for(var r=0;r<e.length;r++){var n=e[r],a=n.event;n=n.listeners;e:{var i=void 0;if(t)for(var o=n.length-1;0<=o;o--){var l=n[o],c=l.instance,u=l.currentTarget;if(l=l.listener,c!==i&&a.isPropagationStopped())break e;YA(a,l,u),i=c}else for(o=0;o<n.length;o++){if(l=n[o],c=l.instance,u=l.currentTarget,l=l.listener,c!==i&&a.isPropagationStopped())break e;YA(a,l,u),i=c}}}if(rv)throw e=Qj,rv=!1,Qj=null,e}function Dt(e,t){var r=t[l1];r===void 0&&(r=t[l1]=new Set);var n=e+"__bubble";r.has(n)||(KR(t,e,2,!1),r.add(n))}function vb(e,t,r){var n=0;t&&(n|=4),KR(r,e,n,t)}var Wp="_reactListening"+Math.random().toString(36).slice(2);function Nm(e){if(!e[Wp]){e[Wp]=!0,tR.forEach(function(r){r!=="selectionchange"&&(LW.has(r)||vb(r,!1,e),vb(r,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Wp]||(t[Wp]=!0,vb("selectionchange",!1,t))}}function KR(e,t,r,n){switch(_R(t)){case 1:var a=QU;break;case 4:a=JU;break;default:a=w2}r=a.bind(null,t,r,e),a=void 0,!Zj||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(a=!0),n?a!==void 0?e.addEventListener(t,r,{capture:!0,passive:a}):e.addEventListener(t,r,!0):a!==void 0?e.addEventListener(t,r,{passive:a}):e.addEventListener(t,r,!1)}function xb(e,t,r,n,a){var i=n;if(!(t&1)&&!(t&2)&&n!==null)e:for(;;){if(n===null)return;var o=n.tag;if(o===3||o===4){var l=n.stateNode.containerInfo;if(l===a||l.nodeType===8&&l.parentNode===a)break;if(o===4)for(o=n.return;o!==null;){var c=o.tag;if((c===3||c===4)&&(c=o.stateNode.containerInfo,c===a||c.nodeType===8&&c.parentNode===a))return;o=o.return}for(;l!==null;){if(o=cl(l),o===null)return;if(c=o.tag,c===5||c===6){n=i=o;continue e}l=l.parentNode}}n=n.return}vR(function(){var u=i,d=x2(r),f=[];e:{var m=HR.get(e);if(m!==void 0){var p=S2,v=e;switch(e){case"keypress":if(Mg(r)===0)break e;case"keydown":case"keyup":p=hW;break;case"focusin":v="focus",p=db;break;case"focusout":v="blur",p=db;break;case"beforeblur":case"afterblur":p=db;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":p=LA;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":p=rW;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":p=vW;break;case BR:case UR:case WR:p=sW;break;case qR:p=yW;break;case"scroll":p=eW;break;case"wheel":p=jW;break;case"copy":case"cut":case"paste":p=oW;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":p=VA}var h=(t&4)!==0,x=!h&&e==="scroll",y=h?m!==null?m+"Capture":null:m;h=[];for(var g=u,j;g!==null;){j=g;var S=j.stateNode;if(j.tag===5&&S!==null&&(j=S,y!==null&&(S=vm(g,y),S!=null&&h.push(Sm(g,S,j)))),x)break;g=g.return}0<h.length&&(m=new p(m,v,null,r,d),f.push({event:m,listeners:h}))}}if(!(t&7)){e:{if(m=e==="mouseover"||e==="pointerover",p=e==="mouseout"||e==="pointerout",m&&r!==Xj&&(v=r.relatedTarget||r.fromElement)&&(cl(v)||v[fi]))break e;if((p||m)&&(m=d.window===d?d:(m=d.ownerDocument)?m.defaultView||m.parentWindow:window,p?(v=r.relatedTarget||r.toElement,p=u,v=v?cl(v):null,v!==null&&(x=sc(v),v!==x||v.tag!==5&&v.tag!==6)&&(v=null)):(p=null,v=u),p!==v)){if(h=LA,S="onMouseLeave",y="onMouseEnter",g="mouse",(e==="pointerout"||e==="pointerover")&&(h=VA,S="onPointerLeave",y="onPointerEnter",g="pointer"),x=p==null?m:$c(p),j=v==null?m:$c(v),m=new h(S,g+"leave",p,r,d),m.target=x,m.relatedTarget=j,S=null,cl(d)===u&&(h=new h(y,g+"enter",v,r,d),h.target=j,h.relatedTarget=x,S=h),x=S,p&&v)t:{for(h=p,y=v,g=0,j=h;j;j=vc(j))g++;for(j=0,S=y;S;S=vc(S))j++;for(;0<g-j;)h=vc(h),g--;for(;0<j-g;)y=vc(y),j--;for(;g--;){if(h===y||y!==null&&h===y.alternate)break t;h=vc(h),y=vc(y)}h=null}else h=null;p!==null&&ZA(f,m,p,h,!1),v!==null&&x!==null&&ZA(f,x,v,h,!0)}}
vendor: 7,429 bytes, lines 37-38
37e:{if(m=u?$c(u):window,p=m.nodeName&&m.nodeName.toLowerCase(),p==="select"||p==="input"&&m.type==="file")var w=TW;else if(UA(m))if($R)w=kW;else{w=OW;var N=EW}else(p=m.nodeName)&&p.toLowerCase()==="input"&&(m.type==="checkbox"||m.type==="radio")&&(w=_W);if(w&&(w=w(e,u))){IR(f,w,r,d);break e}N&&N(e,m,u),e==="focusout"&&(N=m._wrapperState)&&N.controlled&&m.type==="number"&&Wj(m,"number",m.value)}switch(N=u?$c(u):window,e){case"focusin":(UA(N)||N.contentEditable==="true")&&(Rc=N,r1=u,Xf=null);break;case"focusout":Xf=r1=Rc=null;break;case"mousedown":n1=!0;break;case"contextmenu":case"mouseup":case"dragend":n1=!1,KA(f,r,d);break;case"selectionchange":if(RW)break;case"keydown":case"keyup":KA(f,r,d)}var P;if(C2)e:{switch(e){case"compositionstart":var C="onCompositionStart";break e;case"compositionend":C="onCompositionEnd";break e;case"compositionupdate":C="onCompositionUpdate";break e}C=void 0}else Dc?DR(e,r)&&(C="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(C="onCompositionStart");C&&(MR&&r.locale!=="ko"&&(Dc||C!=="onCompositionStart"?C==="onCompositionEnd"&&Dc&&(P=kR()):(ro=d,N2="value"in ro?ro.value:ro.textContent,Dc=!0)),N=ov(u,C),0<N.length&&(C=new FA(C,e,null,r,d),f.push({event:C,listeners:N}),P?C.data=P:(P=RR(r),P!==null&&(C.data=P)))),(P=NW?SW(e,r):PW(e,r))&&(u=ov(u,"onBeforeInput"),0<u.length&&(d=new FA("onBeforeInput","beforeinput",null,r,d),f.push({event:d,listeners:u}),d.data=P))}GR(f,t)})}function Sm(e,t,r){return{instance:e,listener:t,currentTarget:r}}function ov(e,t){for(var r=t+"Capture",n=[];e!==null;){var a=e,i=a.stateNode;a.tag===5&&i!==null&&(a=i,i=vm(e,r),i!=null&&n.unshift(Sm(e,i,a)),i=vm(e,t),i!=null&&n.push(Sm(e,i,a))),e=e.return}return n}function vc(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function ZA(e,t,r,n,a){for(var i=t._reactName,o=[];r!==null&&r!==n;){var l=r,c=l.alternate,u=l.stateNode;if(c!==null&&c===n)break;l.tag===5&&u!==null&&(l=u,a?(c=vm(r,i),c!=null&&o.unshift(Sm(r,c,l))):a||(c=vm(r,i),c!=null&&o.push(Sm(r,c,l)))),r=r.return}o.length!==0&&e.push({event:t,listeners:o})}var FW=/\r\n?/g,VW=/\u0000|\uFFFD/g;function QA(e){return(typeof e=="string"?e:""+e).replace(FW,` 38`).replace(VW,"")}function qp(e,t,r){if(t=QA(t),QA(e)!==t&&r)throw Error(ae(425))}function lv(){}var a1=null,s1=null;function i1(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var o1=typeof setTimeout=="function"?setTimeout:void 0,zW=typeof clearTimeout=="function"?clearTimeout:void 0,JA=typeof Promise=="function"?Promise:void 0,BW=typeof queueMicrotask=="function"?queueMicrotask:typeof JA<"u"?function(e){return JA.resolve(null).then(e).catch(UW)}:o1;function UW(e){setTimeout(function(){throw e})}function yb(e,t){var r=t,n=0;do{var a=r.nextSibling;if(e.removeChild(r),a&&a.nodeType===8)if(r=a.data,r==="/$"){if(n===0){e.removeChild(a),bm(t);return}n--}else r!=="$"&&r!=="$?"&&r!=="$!"||n++;r=a}while(r);bm(t)}function mo(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function eT(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="$"||r==="$!"||r==="$?"){if(t===0)return e;t--}else r==="/$"&&t++}e=e.previousSibling}return null}var Ed=Math.random().toString(36).slice(2),is="__reactFiber$"+Ed,Pm="__reactProps$"+Ed,fi="__reactContainer$"+Ed,l1="__reactEvents$"+Ed,WW="__reactListeners$"+Ed,qW="__reactHandles$"+Ed;function cl(e){var t=e[is];if(t)return t;for(var r=e.parentNode;r;){if(t=r[fi]||r[is]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=eT(e);e!==null;){if(r=e[is])return r;e=eT(e)}return t}e=r,r=e.parentNode}return null}function rp(e){return e=e[is]||e[fi],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function $c(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(ae(33))}function dy(e){return e[Pm]||null}var c1=[],Lc=-1;function Vo(e){return{current:e}}function Ft(e){0>Lc||(e.current=c1[Lc],c1[Lc]=null,Lc--)}function Ot(e,t){Lc++,c1[Lc]=e.current,e.current=t}var wo={},rn=Vo(wo),On=Vo(!1),Dl=wo;function Iu(e,t){var r=e.type.contextTypes;if(!r)return wo;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var a={},i;for(i in r)a[i]=t[i];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function _n(e){return e=e.childContextTypes,e!=null}function cv(){Ft(On),Ft(rn)}function tT(e,t,r){if(rn.current!==wo)throw Error(ae(168));Ot(rn,t),Ot(On,r)}function XR(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var a in n)if(!(a in t))throw Error(ae(108,EU(e)||"Unknown",a));return er({},r,n)}function uv(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||wo,Dl=rn.current,Ot(rn,e),Ot(On,On.current),!0}function rT(e,t,r){var n=e.stateNode;if(!n)throw Error(ae(169));r?(e=XR(e,t,Dl),n.__reactInternalMemoizedMergedChildContext=e,Ft(On),Ft(rn),Ot(rn,e)):Ft(On),Ot(On,r)}var Ws=null,fy=!1,bb=!1;function YR(e){Ws===null?Ws=[e]:Ws.push(e)}function HW(e){fy=!0,YR(e)}function zo(){if(!bb&&Ws!==null){bb=!0;var e=0,t=Nt;try{var r=Ws;for(Nt=1;e<r.length;e++){var n=r[e];do n=n(!0);while(n!==null)}Ws=null,fy=!1}catch(a){throw Ws!==null&&(Ws=Ws.slice(e+1)),jR(y2,zo),a}finally{Nt=t,bb=!1}}return null}var Fc=[],Vc=0,dv=null,fv=0,oa=[],la=0,Rl=null,Gs=1,Ks="";function el(e,t){Fc[Vc++]=fv,Fc[Vc++]=dv,dv=e,fv=t}function ZR(e,t,r){oa[la++]=Gs,oa[la++]=Ks,oa[la++]=Rl,Rl=e;var n=Gs;e=Ks;var a=32-za(n)-1;n&=~(1<<a),r+=1;var i=32-za(t)+a;if(30<i){var o=a-a%5;i=(n&(1<<o)-1).toString(32),n>>=o,a-=o,Gs=1<<32-za(t)+a|r<<a|n,Ks=i+e}else Gs=1<<i|r<<a|n,Ks=e}function T2(e){e.return!==null&&(el(e,1),ZR(e,1,0))}function E2(e){for(;e===dv;)dv=Fc[--Vc],Fc[Vc]=null,fv=Fc[--Vc],Fc[Vc]=null;for(;e===Rl;)Rl=oa[--la],oa[la]=null,Ks=oa[--la],oa[la]=null,Gs=oa[--la],oa[la]=null}var Un=null,Bn=null,zt=!1,Da=null;function QR(e,t){var r=da(5,null,null,0);r.elementType="DELETED",r.stateNode=t,r.return=e,t=e.deletions,t===null?(e.deletions=[r],e.flags|=16):t.push(r)}function nT(e,t){switch(e.tag){case 5:var r=e.type;return t=t.nodeType!==1||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Un=e,Bn=mo(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Un=e,Bn=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(r=Rl!==null?{id:Gs,overflow:Ks}:null,e.memoizedState={dehydrated:t,treeContext:r,retryLane:1073741824},r=da(18,null,null,0),r.stateNode=t,r.return=e,e.child=r,Un=e,Bn=null,!0):!1;default:return!1}}function u1(e){return(e.mode&1)!==0&&(e.flags&128)===0}function d1(e){if(zt){var t=Bn;if(t){var r=t;if(!nT(e,t)){if(u1(e))throw Error(ae(418));t=mo(r.nextSibling);var n=Un;t&&nT(e,t)?QR(n,r):(e.flags=e.flags&-4097|2,zt=!1,Un=e)}}else{if(u1(e))throw Error(ae(418));e.flags=e.flags&-4097|2,zt=!1,Un=e}}}function aT(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Un=e}function Hp(e){if(e!==Un)return!1;if(!zt)return aT(e),zt=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!i1(e.type,e.memoizedProps)),t&&(t=Bn)){if
vendor: 10,815 bytes, line 38
38(u1(e))throw JR(),Error(ae(418));for(;t;)QR(e,t),t=mo(t.nextSibling)}if(aT(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(ae(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"){if(t===0){Bn=mo(e.nextSibling);break e}t--}else r!=="$"&&r!=="$!"&&r!=="$?"||t++}e=e.nextSibling}Bn=null}}else Bn=Un?mo(e.stateNode.nextSibling):null;return!0}function JR(){for(var e=Bn;e;)e=mo(e.nextSibling)}function $u(){Bn=Un=null,zt=!1}function O2(e){Da===null?Da=[e]:Da.push(e)}var GW=Si.ReactCurrentBatchConfig;function uf(e,t,r){if(e=r.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(r._owner){if(r=r._owner,r){if(r.tag!==1)throw Error(ae(309));var n=r.stateNode}if(!n)throw Error(ae(147,e));var a=n,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(o){var l=a.refs;o===null?delete l[i]:l[i]=o},t._stringRef=i,t)}if(typeof e!="string")throw Error(ae(284));if(!r._owner)throw Error(ae(290,e))}return e}function Gp(e,t){throw e=Object.prototype.toString.call(t),Error(ae(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function sT(e){var t=e._init;return t(e._payload)}function eI(e){function t(y,g){if(e){var j=y.deletions;j===null?(y.deletions=[g],y.flags|=16):j.push(g)}}function r(y,g){if(!e)return null;for(;g!==null;)t(y,g),g=g.sibling;return null}function n(y,g){for(y=new Map;g!==null;)g.key!==null?y.set(g.key,g):y.set(g.index,g),g=g.sibling;return y}function a(y,g){return y=vo(y,g),y.index=0,y.sibling=null,y}function i(y,g,j){return y.index=j,e?(j=y.alternate,j!==null?(j=j.index,j<g?(y.flags|=2,g):j):(y.flags|=2,g)):(y.flags|=1048576,g)}function o(y){return e&&y.alternate===null&&(y.flags|=2),y}function l(y,g,j,S){return g===null||g.tag!==6?(g=Ab(j,y.mode,S),g.return=y,g):(g=a(g,j),g.return=y,g)}function c(y,g,j,S){var w=j.type;return w===Mc?d(y,g,j.props.children,S,j.key):g!==null&&(g.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===Vi&&sT(w)===g.type)?(S=a(g,j.props),S.ref=uf(y,g,j),S.return=y,S):(S=Vg(j.type,j.key,j.props,null,y.mode,S),S.ref=uf(y,g,j),S.return=y,S)}function u(y,g,j,S){return g===null||g.tag!==4||g.stateNode.containerInfo!==j.containerInfo||g.stateNode.implementation!==j.implementation?(g=Tb(j,y.mode,S),g.return=y,g):(g=a(g,j.children||[]),g.return=y,g)}function d(y,g,j,S,w){return g===null||g.tag!==7?(g=Tl(j,y.mode,S,w),g.return=y,g):(g=a(g,j),g.return=y,g)}function f(y,g,j){if(typeof g=="string"&&g!==""||typeof g=="number")return g=Ab(""+g,y.mode,j),g.return=y,g;if(typeof g=="object"&&g!==null){switch(g.$$typeof){case Ip:return j=Vg(g.type,g.key,g.props,null,y.mode,j),j.ref=uf(y,null,g),j.return=y,j;case kc:return g=Tb(g,y.mode,j),g.return=y,g;case Vi:var S=g._init;return f(y,S(g._payload),j)}if(Mf(g)||af(g))return g=Tl(g,y.mode,j,null),g.return=y,g;Gp(y,g)}return null}function m(y,g,j,S){var w=g!==null?g.key:null;if(typeof j=="string"&&j!==""||typeof j=="number")return w!==null?null:l(y,g,""+j,S);if(typeof j=="object"&&j!==null){switch(j.$$typeof){case Ip:return j.key===w?c(y,g,j,S):null;case kc:return j.key===w?u(y,g,j,S):null;case Vi:return w=j._init,m(y,g,w(j._payload),S)}if(Mf(j)||af(j))return w!==null?null:d(y,g,j,S,null);Gp(y,j)}return null}function p(y,g,j,S,w){if(typeof S=="string"&&S!==""||typeof S=="number")return y=y.get(j)||null,l(g,y,""+S,w);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case Ip:return y=y.get(S.key===null?j:S.key)||null,c(g,y,S,w);case kc:return y=y.get(S.key===null?j:S.key)||null,u(g,y,S,w);case Vi:var N=S._init;return p(y,g,j,N(S._payload),w)}if(Mf(S)||af(S))return y=y.get(j)||null,d(g,y,S,w,null);Gp(g,S)}return null}function v(y,g,j,S){for(var w=null,N=null,P=g,C=g=0,A=null;P!==null&&C<j.length;C++){P.index>C?(A=P,P=null):A=P.sibling;var O=m(y,P,j[C],S);if(O===null){P===null&&(P=A);break}e&&P&&O.alternate===null&&t(y,P),g=i(O,g,C),N===null?w=O:N.sibling=O,N=O,P=A}if(C===j.length)return r(y,P),zt&&el(y,C),w;if(P===null){for(;C<j.length;C++)P=f(y,j[C],S),P!==null&&(g=i(P,g,C),N===null?w=P:N.sibling=P,N=P);return zt&&el(y,C),w}for(P=n(y,P);C<j.length;C++)A=p(P,y,C,j[C],S),A!==null&&(e&&A.alternate!==null&&P.delete(A.key===null?C:A.key),g=i(A,g,C),N===null?w=A:N.sibling=A,N=A);return e&&P.forEach(function(E){return t(y,E)}),zt&&el(y,C),w}function h(y,g,j,S){var w=af(j);if(typeof w!="function")throw Error(ae(150));if(j=w.call(j),j==null)throw Error(ae(151));for(var N=w=null,P=g,C=g=0,A=null,O=j.next();P!==null&&!O.done;C++,O=j.next()){P.index>C?(A=P,P=null):A=P.sibling;var E=m(y,P,O.value,S);if(E===null){P===null&&(P=A);break}e&&P&&E.alternate===null&&t(y,P),g=i(E,g,C),N===null?w=E:N.sibling=E,N=E,P=A}if(O.done)return r(y,P),zt&&el(y,C),w;if(P===null){for(;!O.done;C++,O=j.next())O=f(y,O.value,S),O!==null&&(g=i(O,g,C),N===null?w=O:N.sibling=O,N=O);return zt&&el(y,C),w}for(P=n(y,P);!O.done;C++,O=j.next())O=p(P,y,C,O.value,S),O!==null&&(e&&O.alternate!==null&&P.delete(O.key===null?C:O.key),g=i(O,g,C),N===null?w=O:N.sibling=O,N=O);return e&&P.forEach(function(k){return t(y,k)}),zt&&el(y,C),w}function x(y,g,j,S){if(typeof j=="object"&&j!==null&&j.type===Mc&&j.key===null&&(j=j.props.children),typeof j=="object"&&j!==null){switch(j.$$typeof){case Ip:e:{for(var w=j.key,N=g;N!==null;){if(N.key===w){if(w=j.type,w===Mc){if(N.tag===7){r(y,N.sibling),g=a(N,j.props.children),g.return=y,y=g;break e}}else if(N.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===Vi&&sT(w)===N.type){r(y,N.sibling),g=a(N,j.props),g.ref=uf(y,N,j),g.return=y,y=g;break e}r(y,N);break}else t(y,N);N=N.sibling}j.type===Mc?(g=Tl(j.props.children,y.mode,S,j.key),g.return=y,y=g):(S=Vg(j.type,j.key,j.props,null,y.mode,S),S.ref=uf(y,g,j),S.return=y,y=S)}return o(y);case kc:e:{for(N=j.key;g!==null;){if(g.key===N)if(g.tag===4&&g.stateNode.containerInfo===j.containerInfo&&g.stateNode.implementation===j.implementation){r(y,g.sibling),g=a(g,j.children||[]),g.return=y,y=g;break e}else{r(y,g);break}else t(y,g);g=g.sibling}g=Tb(j,y.mode,S),g.return=y,y=g}return o(y);case Vi:return N=j._init,x(y,g,N(j._payload),S)}if(Mf(j))return v(y,g,j,S);if(af(j))return h(y,g,j,S);Gp(y,j)}return typeof j=="string"&&j!==""||typeof j=="number"?(j=""+j,g!==null&&g.tag===6?(r(y,g.sibling),g=a(g,j),g.return=y,y=g):(r(y,g),g=Ab(j,y.mode,S),g.return=y,y=g),o(y)):r(y,g)}return x}var Lu=eI(!0),tI=eI(!1),mv=Vo(null),hv=null,zc=null,_2=null;function k2(){_2=zc=hv=null}function M2(e){var t=mv.current;Ft(mv),e._currentValue=t}function f1(e,t,r){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}function ou(e,t){hv=e,_2=zc=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Tn=!0),e.firstContext=null)}function va(e){var t=e._currentValue;if(_2!==e)if(e={context:e,memoizedValue:t,next:null},zc===null){if(hv===null)throw Error(ae(308));zc=e,hv.dependencies={lanes:0,firstContext:e}}else zc=zc.next=e;return t}var ul=null;function D2(e){ul===null?ul=[e]:ul.push(e)}function rI(e,t,r,n){var a=t.interleaved;return a===null?(r.next=r,D2(t)):(r.next=a.next,a.next=r),t.interleaved=r,mi(e,n)}function mi(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}var zi=!1;function R2(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function nI(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Js(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function ho(e,t,r){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,dt&2){var a=n.pending;return a===null?t.next=t:(t.next=a.next,a.next=t),n.pending=t,mi(e,r)}return a=n.interleaved,a===null?(t.next=t,D2(n)):(t.next=a.next,a.next=t),n.interleaved=t,mi(e,r)}function Dg(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,b2(e,r)}}function iT(e,t){var r=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var a=null,i=null;if(r=r.firstBaseUpdate,r!==null){do{var o={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};i===null?a=i=o:i=i.next=o,r=r.next}while(r!==null);i===null?a=i=t:i=i.next=t}else a=i=t;r={baseState:n.baseState,firstBaseUpdate:a,lastBaseUpdate:i,shared:n.shared,effects:n.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function pv(e,t,r,n){var a=e.updateQueue;zi=!1;var i=a.firstBaseUpdate,o=a.lastBaseUpdate,l=a.shared.pending;if(l!==null){a.shared.pending=null;var c=l,u=c.next;c.next=null,o===null?i=u:o.next=u,o=c;var d=e.alternate;d!==null&&(d=d.updateQueue,l=d.lastBaseUpdate,l!==o&&(l===null?d.firstBaseUpdate=u:l.next=u,d.lastBaseUpdate=c))}if(i!==null){var f=a.baseState;o=0,d=u=c=null,l=i;do{var m=l.lane,p=l.eventTime;if((n&m)===m){d!==null&&(d=d.next={eventTime:p,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var v=e,h=l;switch(m=t,p=r,h.tag){case 1:if(v=h.payload,typeof v=="function"){f=v.call(p,f,m);break e}f=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=h.payload,m=typeof v=="function"?v.call(p,f,m):v,m==null)break e;f=er({},f,m);break e;case 2:zi=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,m=a.effects,m===null?a.effects=[l]:m.push(l))}else p={eventTime:p,lane:m,tag:l.tag,payload:l.payload,callback:l.callback,next:null},d===null?(u=d=p,c=f):d=d.next=p,o|=m;if(l=l.next,l===null){if(l=a.shared.pending,l===null)break;m=l,l=m.next,m.next=null,a.lastBaseUpdate=m,a.shared.pending=null}}while(!0);if(d===null&&(c=f),a.baseState=c,a.firstBaseUpdate=u,a.lastBaseUpdate=d,t=a.shared.interleaved,t!==null){a=t;do o|=a.lane,a=a.next;while(a!==t)}else i===null&&(a.shared.lanes=0);$l|=o,e.lanes=o,e.memoizedState=f}}function oT(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var n=e[t],a=n.callback;if(a!==null){if(n.callback=null,n=r,typeof a!="function")throw Error(ae(191,a));a.call(n)}}}var np={},ps=Vo(np),Cm=Vo(np),Am=Vo(np);function dl(e){if(e===np)throw Error(ae(174));return e}function I2(e,t){switch(Ot(Am,t),Ot(Cm,e),Ot(ps,np),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Hj(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Hj(t,e)}Ft(ps),Ot(ps,t)}function Fu(){Ft(ps),Ft(Cm),Ft(Am)}function aI(e){dl(Am.current);var t=dl(ps.current),r=Hj(t,e.type);t!==r&&(Ot(Cm,e),Ot(ps,r))}function $2(e){Cm.current===e&&(Ft(ps),Ft(Cm))}var Ht=Vo(0);
vendor: 5,103 bytes, line 38
38function gv(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var jb=[];function L2(){for(var e=0;e<jb.length;e++)jb[e]._workInProgressVersionPrimary=null;jb.length=0}var Rg=Si.ReactCurrentDispatcher,wb=Si.ReactCurrentBatchConfig,Il=0,Jt=null,yr=null,Tr=null,vv=!1,Yf=!1,Tm=0,KW=0;function qr(){throw Error(ae(321))}function F2(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!qa(e[r],t[r]))return!1;return!0}function V2(e,t,r,n,a,i){if(Il=i,Jt=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Rg.current=e===null||e.memoizedState===null?QW:JW,e=r(n,a),Yf){i=0;do{if(Yf=!1,Tm=0,25<=i)throw Error(ae(301));i+=1,Tr=yr=null,t.updateQueue=null,Rg.current=eq,e=r(n,a)}while(Yf)}if(Rg.current=xv,t=yr!==null&&yr.next!==null,Il=0,Tr=yr=Jt=null,vv=!1,t)throw Error(ae(300));return e}function z2(){var e=Tm!==0;return Tm=0,e}function ts(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Tr===null?Jt.memoizedState=Tr=e:Tr=Tr.next=e,Tr}function xa(){if(yr===null){var e=Jt.alternate;e=e!==null?e.memoizedState:null}else e=yr.next;var t=Tr===null?Jt.memoizedState:Tr.next;if(t!==null)Tr=t,yr=e;else{if(e===null)throw Error(ae(310));yr=e,e={memoizedState:yr.memoizedState,baseState:yr.baseState,baseQueue:yr.baseQueue,queue:yr.queue,next:null},Tr===null?Jt.memoizedState=Tr=e:Tr=Tr.next=e}return Tr}function Em(e,t){return typeof t=="function"?t(e):t}function Nb(e){var t=xa(),r=t.queue;if(r===null)throw Error(ae(311));r.lastRenderedReducer=e;var n=yr,a=n.baseQueue,i=r.pending;if(i!==null){if(a!==null){var o=a.next;a.next=i.next,i.next=o}n.baseQueue=a=i,r.pending=null}if(a!==null){i=a.next,n=n.baseState;var l=o=null,c=null,u=i;do{var d=u.lane;if((Il&d)===d)c!==null&&(c=c.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),n=u.hasEagerState?u.eagerState:e(n,u.action);else{var f={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};c===null?(l=c=f,o=n):c=c.next=f,Jt.lanes|=d,$l|=d}u=u.next}while(u!==null&&u!==i);c===null?o=n:c.next=l,qa(n,t.memoizedState)||(Tn=!0),t.memoizedState=n,t.baseState=o,t.baseQueue=c,r.lastRenderedState=n}if(e=r.interleaved,e!==null){a=e;do i=a.lane,Jt.lanes|=i,$l|=i,a=a.next;while(a!==e)}else a===null&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function Sb(e){var t=xa(),r=t.queue;if(r===null)throw Error(ae(311));r.lastRenderedReducer=e;var n=r.dispatch,a=r.pending,i=t.memoizedState;if(a!==null){r.pending=null;var o=a=a.next;do i=e(i,o.action),o=o.next;while(o!==a);qa(i,t.memoizedState)||(Tn=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),r.lastRenderedState=i}return[i,n]}function sI(){}function iI(e,t){var r=Jt,n=xa(),a=t(),i=!qa(n.memoizedState,a);if(i&&(n.memoizedState=a,Tn=!0),n=n.queue,B2(cI.bind(null,r,n,e),[e]),n.getSnapshot!==t||i||Tr!==null&&Tr.memoizedState.tag&1){if(r.flags|=2048,Om(9,lI.bind(null,r,n,a,t),void 0,null),_r===null)throw Error(ae(349));Il&30||oI(r,t,a)}return a}function oI(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},t=Jt.updateQueue,t===null?(t={lastEffect:null,stores:null},Jt.updateQueue=t,t.stores=[e]):(r=t.stores,r===null?t.stores=[e]:r.push(e))}function lI(e,t,r,n){t.value=r,t.getSnapshot=n,uI(t)&&dI(e)}function cI(e,t,r){return r(function(){uI(t)&&dI(e)})}function uI(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!qa(e,r)}catch{return!0}}function dI(e){var t=mi(e,1);t!==null&&Ba(t,e,1,-1)}function lT(e){var t=ts();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Em,lastRenderedState:e},t.queue=e,e=e.dispatch=ZW.bind(null,Jt,e),[t.memoizedState,e]}function Om(e,t,r,n){return e={tag:e,create:t,destroy:r,deps:n,next:null},t=Jt.updateQueue,t===null?(t={lastEffect:null,stores:null},Jt.updateQueue=t,t.lastEffect=e.next=e):(r=t.lastEffect,r===null?t.lastEffect=e.next=e:(n=r.next,r.next=e,e.next=n,t.lastEffect=e)),e}function fI(){return xa().memoizedState}function Ig(e,t,r,n){var a=ts();Jt.flags|=e,a.memoizedState=Om(1|t,r,void 0,n===void 0?null:n)}function my(e,t,r,n){var a=xa();n=n===void 0?null:n;var i=void 0;if(yr!==null){var o=yr.memoizedState;if(i=o.destroy,n!==null&&F2(n,o.deps)){a.memoizedState=Om(t,r,i,n);return}}Jt.flags|=e,a.memoizedState=Om(1|t,r,i,n)}function cT(e,t){return Ig(8390656,8,e,t)}function B2(e,t){return my(2048,8,e,t)}function mI(e,t){return my(4,2,e,t)}function hI(e,t){return my(4,4,e,t)}function pI(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function gI(e,t,r){return r=r!=null?r.concat([e]):null,my(4,4,pI.bind(null,t,e),r)}function U2(){}function vI(e,t){var r=xa();
vendor: 9,890 bytes, lines 38-40
38t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&F2(t,n[1])?n[0]:(r.memoizedState=[e,t],e)}function xI(e,t){var r=xa();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&F2(t,n[1])?n[0]:(e=e(),r.memoizedState=[e,t],e)}function yI(e,t,r){return Il&21?(qa(r,t)||(r=SR(),Jt.lanes|=r,$l|=r,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Tn=!0),e.memoizedState=r)}function XW(e,t){var r=Nt;Nt=r!==0&&4>r?r:4,e(!0);var n=wb.transition;wb.transition={};try{e(!1),t()}finally{Nt=r,wb.transition=n}}function bI(){return xa().memoizedState}function YW(e,t,r){var n=go(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},jI(e))wI(t,r);else if(r=rI(e,t,r,n),r!==null){var a=xn();Ba(r,e,n,a),NI(r,t,n)}}function ZW(e,t,r){var n=go(e),a={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(jI(e))wI(t,a);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var o=t.lastRenderedState,l=i(o,r);if(a.hasEagerState=!0,a.eagerState=l,qa(l,o)){var c=t.interleaved;c===null?(a.next=a,D2(t)):(a.next=c.next,c.next=a),t.interleaved=a;return}}catch{}finally{}r=rI(e,t,a,n),r!==null&&(a=xn(),Ba(r,e,n,a),NI(r,t,n))}}function jI(e){var t=e.alternate;return e===Jt||t!==null&&t===Jt}function wI(e,t){Yf=vv=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function NI(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,b2(e,r)}}var xv={readContext:va,useCallback:qr,useContext:qr,useEffect:qr,useImperativeHandle:qr,useInsertionEffect:qr,useLayoutEffect:qr,useMemo:qr,useReducer:qr,useRef:qr,useState:qr,useDebugValue:qr,useDeferredValue:qr,useTransition:qr,useMutableSource:qr,useSyncExternalStore:qr,useId:qr,unstable_isNewReconciler:!1},QW={readContext:va,useCallback:function(e,t){return ts().memoizedState=[e,t===void 0?null:t],e},useContext:va,useEffect:cT,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,Ig(4194308,4,pI.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Ig(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ig(4,2,e,t)},useMemo:function(e,t){var r=ts();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=ts();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=YW.bind(null,Jt,e),[n.memoizedState,e]},useRef:function(e){var t=ts();return e={current:e},t.memoizedState=e},useState:lT,useDebugValue:U2,useDeferredValue:function(e){return ts().memoizedState=e},useTransition:function(){var e=lT(!1),t=e[0];return e=XW.bind(null,e[1]),ts().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=Jt,a=ts();if(zt){if(r===void 0)throw Error(ae(407));r=r()}else{if(r=t(),_r===null)throw Error(ae(349));Il&30||oI(n,t,r)}a.memoizedState=r;var i={value:r,getSnapshot:t};return a.queue=i,cT(cI.bind(null,n,i,e),[e]),n.flags|=2048,Om(9,lI.bind(null,n,i,r,t),void 0,null),r},useId:function(){var e=ts(),t=_r.identifierPrefix;if(zt){var r=Ks,n=Gs;r=(n&~(1<<32-za(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=Tm++,0<r&&(t+="H"+r.toString(32)),t+=":"}else r=KW++,t=":"+t+"r"+r.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},JW={readContext:va,useCallback:vI,useContext:va,useEffect:B2,useImperativeHandle:gI,useInsertionEffect:mI,useLayoutEffect:hI,useMemo:xI,useReducer:Nb,useRef:fI,useState:function(){return Nb(Em)},useDebugValue:U2,useDeferredValue:function(e){var t=xa();return yI(t,yr.memoizedState,e)},useTransition:function(){var e=Nb(Em)[0],t=xa().memoizedState;return[e,t]},useMutableSource:sI,useSyncExternalStore:iI,useId:bI,unstable_isNewReconciler:!1},eq={readContext:va,useCallback:vI,useContext:va,useEffect:B2,useImperativeHandle:gI,useInsertionEffect:mI,useLayoutEffect:hI,useMemo:xI,useReducer:Sb,useRef:fI,useState:function(){return Sb(Em)},useDebugValue:U2,useDeferredValue:function(e){var t=xa();return yr===null?t.memoizedState=e:yI(t,yr.memoizedState,e)},useTransition:function(){var e=Sb(Em)[0],t=xa().memoizedState;return[e,t]},useMutableSource:sI,useSyncExternalStore:iI,useId:bI,unstable_isNewReconciler:!1};function Oa(e,t){if(e&&e.defaultProps){t=er({},t),e=e.defaultProps;for(var r in e)t[r]===void 0&&(t[r]=e[r]);return t}return t}function m1(e,t,r,n){t=e.memoizedState,r=r(n,t),r=r==null?t:er({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var hy={isMounted:function(e){return(e=e._reactInternals)?sc(e)===e:!1},enqueueSetState:function(e,t,r){e=e._reactInternals;var n=xn(),a=go(e),i=Js(n,a);i.payload=t,r!=null&&(i.callback=r),t=ho(e,i,a),t!==null&&(Ba(t,e,a,n),Dg(t,e,a))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var n=xn(),a=go(e),i=Js(n,a);i.tag=1,i.payload=t,r!=null&&(i.callback=r),t=ho(e,i,a),t!==null&&(Ba(t,e,a,n),Dg(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=xn(),n=go(e),a=Js(r,n);a.tag=2,t!=null&&(a.callback=t),t=ho(e,a,n),t!==null&&(Ba(t,e,n,r),Dg(t,e,n))}};function uT(e,t,r,n,a,i,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(n,i,o):t.prototype&&t.prototype.isPureReactComponent?!wm(r,n)||!wm(a,i):!0}function SI(e,t,r){var n=!1,a=wo,i=t.contextType;return typeof i=="object"&&i!==null?i=va(i):(a=_n(t)?Dl:rn.current,n=t.contextTypes,i=(n=n!=null)?Iu(e,a):wo),t=new t(r,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=hy,e.stateNode=t,t._reactInternals=e,n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=a,e.__reactInternalMemoizedMaskedChildContext=i),t}function dT(e,t,r,n){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(r,n),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(r,n),t.state!==e&&hy.enqueueReplaceState(t,t.state,null)}function h1(e,t,r,n){var a=e.stateNode;a.props=r,a.state=e.memoizedState,a.refs={},R2(e);var i=t.contextType;typeof i=="object"&&i!==null?a.context=va(i):(i=_n(t)?Dl:rn.current,a.context=Iu(e,i)),a.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(m1(e,t,i,r),a.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof a.getSnapshotBeforeUpdate=="function"||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(t=a.state,typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount(),t!==a.state&&hy.enqueueReplaceState(a,a.state,null),pv(e,r,a,n),a.state=e.memoizedState),typeof a.componentDidMount=="function"&&(e.flags|=4194308)}function Vu(e,t){try{var r="",n=t;do r+=TU(n),n=n.return;while(n);var a=r}catch(i){a=` 39Error generating stack: `+i.message+` 40`+i.stack}return{value:e,source:t,stack:a,digest:null}}function Pb(e,t,r){return{value:e,source:null,stack:r??null,digest:t??null}}function p1(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var tq=typeof WeakMap=="function"?WeakMap:Map;function PI(e,t,r){r=Js(-1,r),r.tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){bv||(bv=!0,P1=n),p1(e,t)},r}function CI(e,t,r){r=Js(-1,r),r.tag=3;var n=e.type.getDerivedStateFromError;if(typeof n=="function"){var a=t.value;r.payload=function(){return n(a)},r.callback=function(){p1(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(r.callback=function(){p1(e,t),typeof n!="function"&&(po===null?po=new Set([this]):po.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),r}function fT(e,t,r){var n=e.pingCache;if(n===null){n=e.pingCache=new tq;var a=new Set;n.set(t,a)}else a=n.get(t),a===void 0&&(a=new Set,n.set(t,a));a.has(r)||(a.add(r),e=pq.bind(null,e,t,r),t.then(e,e))}function mT(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function hT(e,t,r,n,a){return e.mode&1?(e.flags|=65536,e.lanes=a,e):(e===t?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,r.tag===1&&(r.alternate===null?r.tag=17:(t=Js(-1,1),t.tag=2,ho(r,t,1))),r.lanes|=1),e)}var rq=Si.ReactCurrentOwner,Tn=!1;function cn(e,t,r,n){t.child=e===null?tI(t,null,r,n):Lu(t,e.child,r,n)}function pT(e,t,r,n,a){r=r.render;var i=t.ref;return ou(t,a),n=V2(e,t,r,n,i,a),r=z2(),e!==null&&!Tn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,hi(e,t,a)):(zt&&r&&T2(t),t.flags|=1,cn(e,t,n,a),t.child)}function gT(e,t,r,n,a){if(e===null){var i=r.type;return typeof i=="function"&&!Z2(i)&&i.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=i,AI(e,t,i,n,a)):(e=Vg(r.type,null,n,t,t.mode,a),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&a)){var o=i.memoizedProps;if(r=r.compare,r=r!==null?r:wm,r(o,n)&&e.ref===t.ref)return hi(e,t,a)}return t.flags|=1,e=vo(i,n),e.ref=t.ref,e.return=t,t.child=e}function AI(e,t,r,n,a){if(e!==null){var i=e.memoizedProps;if(wm(i,n)&&e.ref===t.ref)if(Tn=!1,t.pendingProps=n=i,(e.lanes&a)!==0)e.flags&131072&&(Tn=!0);else return t.lanes=e.lanes,hi(e,t,a)}return g1(e,t,r,n,a)}function TI(e,t,r){var n=t.pendingProps,a=n.children,i=e!==null?e.memoizedState:null;if(n.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ot(Uc,In),In|=r;else{if(!(r&1073741824))return e=i!==null?i.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Ot(Uc,In),In|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=i!==null?i.baseLanes:r,Ot(Uc,In),In|=n}else i!==null?(n=i.baseLanes|r,t.memoizedState=null):n=r,Ot(Uc,In),In|=n;return cn(e,t,a,r),t.child}function EI(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}
vendor: 4,711 bytes, line 40
40function g1(e,t,r,n,a){var i=_n(r)?Dl:rn.current;return i=Iu(t,i),ou(t,a),r=V2(e,t,r,n,i,a),n=z2(),e!==null&&!Tn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,hi(e,t,a)):(zt&&n&&T2(t),t.flags|=1,cn(e,t,r,a),t.child)}function vT(e,t,r,n,a){if(_n(r)){var i=!0;uv(t)}else i=!1;if(ou(t,a),t.stateNode===null)$g(e,t),SI(t,r,n),h1(t,r,n,a),n=!0;else if(e===null){var o=t.stateNode,l=t.memoizedProps;o.props=l;var c=o.context,u=r.contextType;typeof u=="object"&&u!==null?u=va(u):(u=_n(r)?Dl:rn.current,u=Iu(t,u));var d=r.getDerivedStateFromProps,f=typeof d=="function"||typeof o.getSnapshotBeforeUpdate=="function";f||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(l!==n||c!==u)&&dT(t,o,n,u),zi=!1;var m=t.memoizedState;o.state=m,pv(t,n,o,a),c=t.memoizedState,l!==n||m!==c||On.current||zi?(typeof d=="function"&&(m1(t,r,d,n),c=t.memoizedState),(l=zi||uT(t,r,l,n,m,c,u))?(f||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=c),o.props=n,o.state=c,o.context=u,n=l):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{o=t.stateNode,nI(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:Oa(t.type,l),o.props=u,f=t.pendingProps,m=o.context,c=r.contextType,typeof c=="object"&&c!==null?c=va(c):(c=_n(r)?Dl:rn.current,c=Iu(t,c));var p=r.getDerivedStateFromProps;(d=typeof p=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(l!==f||m!==c)&&dT(t,o,n,c),zi=!1,m=t.memoizedState,o.state=m,pv(t,n,o,a);var v=t.memoizedState;l!==f||m!==v||On.current||zi?(typeof p=="function"&&(m1(t,r,p,n),v=t.memoizedState),(u=zi||uT(t,r,u,n,m,v,c)||!1)?(d||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(n,v,c),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(n,v,c)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||l===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=v),o.props=n,o.state=v,o.context=c,n=u):(typeof o.componentDidUpdate!="function"||l===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),n=!1)}return v1(e,t,r,n,i,a)}function v1(e,t,r,n,a,i){EI(e,t);var o=(t.flags&128)!==0;if(!n&&!o)return a&&rT(t,r,!1),hi(e,t,i);n=t.stateNode,rq.current=t;var l=o&&typeof r.getDerivedStateFromError!="function"?null:n.render();return t.flags|=1,e!==null&&o?(t.child=Lu(t,e.child,null,i),t.child=Lu(t,null,l,i)):cn(e,t,l,i),t.memoizedState=n.state,a&&rT(t,r,!0),t.child}function OI(e){var t=e.stateNode;t.pendingContext?tT(e,t.pendingContext,t.pendingContext!==t.context):t.context&&tT(e,t.context,!1),I2(e,t.containerInfo)}function xT(e,t,r,n,a){return $u(),O2(a),t.flags|=256,cn(e,t,r,n),t.child}var x1={dehydrated:null,treeContext:null,retryLane:0};function y1(e){return{baseLanes:e,cachePool:null,transitions:null}}function _I(e,t,r){var n=t.pendingProps,a=Ht.current,i=!1,o=(t.flags&128)!==0,l;if((l=o)||(l=e!==null&&e.memoizedState===null?!1:(a&2)!==0),l?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(a|=1),Ot(Ht,a&1),e===null)return d1(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(o=n.children,e=n.fallback,i?(n=t.mode,i=t.child,o={mode:"hidden",children:o},!(n&1)&&i!==null?(i.childLanes=0,i.pendingProps=o):i=vy(o,n,0,null),e=Tl(e,n,r,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=y1(r),t.memoizedState=x1,e):W2(t,o));if(a=e.memoizedState,a!==null&&(l=a.dehydrated,l!==null))return nq(e,t,o,n,l,a,r);if(i){i=n.fallback,o=t.mode,a=e.child,l=a.sibling;var c={mode:"hidden",children:n.children};return!(o&1)&&t.child!==a?(n=t.child,n.childLanes=0,n.pendingProps=c,t.deletions=null):(n=vo(a,c),n.subtreeFlags=a.subtreeFlags&14680064),l!==null?i=vo(l,i):(i=Tl(i,o,r,null),i.flags|=2),i.return=t,n.return=t,n.sibling=i,t.child=n,n=i,i=t.child,o=e.child.memoizedState,o=o===null?y1(r):{base
vendor: 7,079 bytes, line 40
40Lanes:o.baseLanes|r,cachePool:null,transitions:o.transitions},i.memoizedState=o,i.childLanes=e.childLanes&~r,t.memoizedState=x1,n}return i=e.child,e=i.sibling,n=vo(i,{mode:"visible",children:n.children}),!(t.mode&1)&&(n.lanes=r),n.return=t,n.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=n,t.memoizedState=null,n}function W2(e,t){return t=vy({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Kp(e,t,r,n){return n!==null&&O2(n),Lu(t,e.child,null,r),e=W2(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function nq(e,t,r,n,a,i,o){if(r)return t.flags&256?(t.flags&=-257,n=Pb(Error(ae(422))),Kp(e,t,o,n)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=n.fallback,a=t.mode,n=vy({mode:"visible",children:n.children},a,0,null),i=Tl(i,a,o,null),i.flags|=2,n.return=t,i.return=t,n.sibling=i,t.child=n,t.mode&1&&Lu(t,e.child,null,o),t.child.memoizedState=y1(o),t.memoizedState=x1,i);if(!(t.mode&1))return Kp(e,t,o,null);if(a.data==="$!"){if(n=a.nextSibling&&a.nextSibling.dataset,n)var l=n.dgst;return n=l,i=Error(ae(419)),n=Pb(i,n,void 0),Kp(e,t,o,n)}if(l=(o&e.childLanes)!==0,Tn||l){if(n=_r,n!==null){switch(o&-o){case 4:a=2;break;case 16:a=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:a=32;break;case 536870912:a=268435456;break;default:a=0}a=a&(n.suspendedLanes|o)?0:a,a!==0&&a!==i.retryLane&&(i.retryLane=a,mi(e,a),Ba(n,e,a,-1))}return Y2(),n=Pb(Error(ae(421))),Kp(e,t,o,n)}return a.data==="$?"?(t.flags|=128,t.child=e.child,t=gq.bind(null,e),a._reactRetry=t,null):(e=i.treeContext,Bn=mo(a.nextSibling),Un=t,zt=!0,Da=null,e!==null&&(oa[la++]=Gs,oa[la++]=Ks,oa[la++]=Rl,Gs=e.id,Ks=e.overflow,Rl=t),t=W2(t,n.children),t.flags|=4096,t)}function yT(e,t,r){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),f1(e.return,t,r)}function Cb(e,t,r,n,a){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:a}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=n,i.tail=r,i.tailMode=a)}function kI(e,t,r){var n=t.pendingProps,a=n.revealOrder,i=n.tail;if(cn(e,t,n.children,r),n=Ht.current,n&2)n=n&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&yT(e,r,t);else if(e.tag===19)yT(e,r,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}n&=1}if(Ot(Ht,n),!(t.mode&1))t.memoizedState=null;else switch(a){case"forwards":for(r=t.child,a=null;r!==null;)e=r.alternate,e!==null&&gv(e)===null&&(a=r),r=r.sibling;r=a,r===null?(a=t.child,t.child=null):(a=r.sibling,r.sibling=null),Cb(t,!1,a,r,i);break;case"backwards":for(r=null,a=t.child,t.child=null;a!==null;){if(e=a.alternate,e!==null&&gv(e)===null){t.child=a;break}e=a.sibling,a.sibling=r,r=a,a=e}Cb(t,!0,r,null,i);break;case"together":Cb(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function $g(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function hi(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),$l|=t.lanes,!(r&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(ae(153));if(t.child!==null){for(e=t.child,r=vo(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=vo(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function aq(e,t,r){switch(t.tag){case 3:OI(t),$u();break;case 5:aI(t);break;case 1:_n(t.type)&&uv(t);break;case 4:I2(t,t.stateNode.containerInfo);break;case 10:var n=t.type._context,a=t.memoizedProps.value;Ot(mv,n._currentValue),n._currentValue=a;break;case 13:if(n=t.memoizedState,n!==null)return n.dehydrated!==null?(Ot(Ht,Ht.current&1),t.flags|=128,null):r&t.child.childLanes?_I(e,t,r):(Ot(Ht,Ht.current&1),e=hi(e,t,r),e!==null?e.sibling:null);Ot(Ht,Ht.current&1);break;case 19:if(n=(r&t.childLanes)!==0,e.flags&128){if(n)return kI(e,t,r);t.flags|=128}if(a=t.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),Ot(Ht,Ht.current),n)break;return null;case 22:case 23:return t.lanes=0,TI(e,t,r)}return hi(e,t,r)}var MI,b1,DI,RI;MI=function(e,t){for(var r=t.child;r!==null;){if(r.tag===5||r.tag===6)e.appendChild(r.stateNode);else if(r.tag!==4&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}};b1=function(){};DI=function(e,t,r,n){var a=e.memoizedProps;if(a!==n){e=t.stateNode,dl(ps.current);var i=null;switch(r){case"input":a=Bj(e,a),n=Bj(e,n),i=[];break;case"select":a=er({},a,{value:void 0}),n=er({},n,{value:void 0}),i=[];break;case"textarea":a=qj(e,a),n=qj(e,n),i=[];break;default:typeof a.onClick!="function"&&typeof n.onClick=="function"&&(e.onclick=lv)}Gj(r,n);var o;r=null;for(u in a)if(!n.hasOwnProperty(u)&&a.hasOwnProperty(u)&&a[u]!=null)if(u==="style"){var l=a[u];for(o in l)l.hasOwnProperty(o)&&(r||(r={}),r[o]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(pm.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in n){var c=n[u];if(l=a!=null?a[u]:void 0,n.hasOwnProperty(u)&&c!==l&&(c!=null||l!=null))if(u==="style")if(l){for(o in l)!l.hasOwnProperty(o)||c&&c.hasOwnProperty(o)||(r||(r={}),r[o]="");for(o in c)c.hasOwnProperty(o)&&l[o]!==c[o]&&(r||(r={}),r[o]=c[o])}else r||(i||(i=[]),i.push(u,r)),r=c;else u==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,l=l?l.__html:void 0,c!=null&&l!==c&&(i=i||[]).push(u,c)):u==="children"?typeof c!="string"&&typeof c!="number"||(i=i||[]).push(u,""+c):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(pm.hasOwnProperty(u)?(c!=null&&u==="onScroll"&&Dt("scroll",e),i||l===c||(i=[])):(i=i||[]).push(u,c))}r&&(i=i||[]).push("style",r);var u=i;(t.updateQueue=u)&&(t.flags|=4)}};RI=function(e,t,r,n){r!==n&&(t.flags|=4)};function df(e,t){if(!zt)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var n=null;r!==null;)r.alternate!==null&&(n=r),r=r.sibling;n===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:n.sibling=null}}function Hr(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,n=0;if(t)for(var a=e.child;a!==null;)r|=a.lanes|a.childLanes,n|=a.subtreeFlags&14680064,n|=a.flags&14680064,a.return=e,a=a.sibling;else for(a=e.child;a!==null;)r|=a.lanes|a.childLanes,n|=a.subtreeFlags,n|=a.flags,a.return=e,a=a.sibling;return e.subtreeFlags|=n,e.childLanes=r,t}function sq(e,t,r){var n=t.pendingProps;switch(E2(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Hr(t),null;case 1:return _n(t.type)&&cv(),Hr(t),null;
vendor: 32,930 bytes, line 40
40case 3:return n=t.stateNode,Fu(),Ft(On),Ft(rn),L2(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Hp(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Da!==null&&(T1(Da),Da=null))),b1(e,t),Hr(t),null;case 5:$2(t);var a=dl(Am.current);if(r=t.type,e!==null&&t.stateNode!=null)DI(e,t,r,n,a),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!n){if(t.stateNode===null)throw Error(ae(166));return Hr(t),null}if(e=dl(ps.current),Hp(t)){n=t.stateNode,r=t.type;var i=t.memoizedProps;switch(n[is]=t,n[Pm]=i,e=(t.mode&1)!==0,r){case"dialog":Dt("cancel",n),Dt("close",n);break;case"iframe":case"object":case"embed":Dt("load",n);break;case"video":case"audio":for(a=0;a<Rf.length;a++)Dt(Rf[a],n);break;case"source":Dt("error",n);break;case"img":case"image":case"link":Dt("error",n),Dt("load",n);break;case"details":Dt("toggle",n);break;case"input":TA(n,i),Dt("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!i.multiple},Dt("invalid",n);break;case"textarea":OA(n,i),Dt("invalid",n)}Gj(r,i),a=null;for(var o in i)if(i.hasOwnProperty(o)){var l=i[o];o==="children"?typeof l=="string"?n.textContent!==l&&(i.suppressHydrationWarning!==!0&&qp(n.textContent,l,e),a=["children",l]):typeof l=="number"&&n.textContent!==""+l&&(i.suppressHydrationWarning!==!0&&qp(n.textContent,l,e),a=["children",""+l]):pm.hasOwnProperty(o)&&l!=null&&o==="onScroll"&&Dt("scroll",n)}switch(r){case"input":$p(n),EA(n,i,!0);break;case"textarea":$p(n),_A(n);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(n.onclick=lv)}n=a,t.updateQueue=n,n!==null&&(t.flags|=4)}else{o=a.nodeType===9?a:a.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=cR(r)),e==="http://www.w3.org/1999/xhtml"?r==="script"?(e=o.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=o.createElement(r,{is:n.is}):(e=o.createElement(r),r==="select"&&(o=e,n.multiple?o.multiple=!0:n.size&&(o.size=n.size))):e=o.createElementNS(e,r),e[is]=t,e[Pm]=n,MI(e,t,!1,!1),t.stateNode=e;e:{switch(o=Kj(r,n),r){case"dialog":Dt("cancel",e),Dt("close",e),a=n;break;case"iframe":case"object":case"embed":Dt("load",e),a=n;break;case"video":case"audio":for(a=0;a<Rf.length;a++)Dt(Rf[a],e);a=n;break;case"source":Dt("error",e),a=n;break;case"img":case"image":case"link":Dt("error",e),Dt("load",e),a=n;break;case"details":Dt("toggle",e),a=n;break;case"input":TA(e,n),a=Bj(e,n),Dt("invalid",e);break;case"option":a=n;break;case"select":e._wrapperState={wasMultiple:!!n.multiple},a=er({},n,{value:void 0}),Dt("invalid",e);break;case"textarea":OA(e,n),a=qj(e,n),Dt("invalid",e);break;default:a=n}Gj(r,a),l=a;for(i in l)if(l.hasOwnProperty(i)){var c=l[i];i==="style"?fR(e,c):i==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,c!=null&&uR(e,c)):i==="children"?typeof c=="string"?(r!=="textarea"||c!=="")&&gm(e,c):typeof c=="number"&&gm(e,""+c):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(pm.hasOwnProperty(i)?c!=null&&i==="onScroll"&&Dt("scroll",e):c!=null&&h2(e,i,c,o))}switch(r){case"input":$p(e),EA(e,n,!1);break;case"textarea":$p(e),_A(e);break;case"option":n.value!=null&&e.setAttribute("value",""+jo(n.value));break;case"select":e.multiple=!!n.multiple,i=n.value,i!=null?nu(e,!!n.multiple,i,!1):n.defaultValue!=null&&nu(e,!!n.multiple,n.defaultValue,!0);break;default:typeof a.onClick=="function"&&(e.onclick=lv)}switch(r){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}}n&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Hr(t),null;case 6:if(e&&t.stateNode!=null)RI(e,t,e.memoizedProps,n);else{if(typeof n!="string"&&t.stateNode===null)throw Error(ae(166));if(r=dl(Am.current),dl(ps.current),Hp(t)){if(n=t.stateNode,r=t.memoizedProps,n[is]=t,(i=n.nodeValue!==r)&&(e=Un,e!==null))switch(e.tag){case 3:qp(n.nodeValue,r,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&qp(n.nodeValue,r,(e.mode&1)!==0)}i&&(t.flags|=4)}else n=(r.nodeType===9?r:r.ownerDocument).createTextNode(n),n[is]=t,t.stateNode=n}return Hr(t),null;case 13:if(Ft(Ht),n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(zt&&Bn!==null&&t.mode&1&&!(t.flags&128))JR(),$u(),t.flags|=98560,i=!1;else if(i=Hp(t),n!==null&&n.dehydrated!==null){if(e===null){if(!i)throw Error(ae(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(ae(317));i[is]=t}else $u(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Hr(t),i=!1}else Da!==null&&(T1(Da),Da=null),i=!0;if(!i)return t.flags&65536?t:null}return t.flags&128?(t.lanes=r,t):(n=n!==null,n!==(e!==null&&e.memoizedState!==null)&&n&&(t.child.flags|=8192,t.mode&1&&(e===null||Ht.current&1?Nr===0&&(Nr=3):Y2())),t.updateQueue!==null&&(t.flags|=4),Hr(t),null);case 4:return Fu(),b1(e,t),e===null&&Nm(t.stateNode.containerInfo),Hr(t),null;case 10:return M2(t.type._context),Hr(t),null;case 17:return _n(t.type)&&cv(),Hr(t),null;case 19:if(Ft(Ht),i=t.memoizedState,i===null)return Hr(t),null;if(n=(t.flags&128)!==0,o=i.rendering,o===null)if(n)df(i,!1);else{if(Nr!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=gv(e),o!==null){for(t.flags|=128,df(i,!1),n=o.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),t.subtreeFlags=0,n=r,r=t.child;r!==null;)i=r,e=n,i.flags&=14680066,o=i.alternate,o===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=o.childLanes,i.lanes=o.lanes,i.child=o.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=o.memoizedProps,i.memoizedState=o.memoizedState,i.updateQueue=o.updateQueue,i.type=o.type,e=o.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return Ot(Ht,Ht.current&1|2),t.child}e=e.sibling}i.tail!==null&&lr()>zu&&(t.flags|=128,n=!0,df(i,!1),t.lanes=4194304)}else{if(!n)if(e=gv(o),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),df(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!zt)return Hr(t),null}else 2*lr()-i.renderingStartTime>zu&&r!==1073741824&&(t.flags|=128,n=!0,df(i,!1),t.lanes=4194304);i.isBackwards?(o.sibling=t.child,t.child=o):(r=i.last,r!==null?r.sibling=o:t.child=o,i.last=o)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=lr(),t.sibling=null,r=Ht.current,Ot(Ht,n?r&1|2:r&1),t):(Hr(t),null);case 22:case 23:return X2(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?In&1073741824&&(Hr(t),t.subtreeFlags&6&&(t.flags|=8192)):Hr(t),null;case 24:return null;case 25:return null}throw Error(ae(156,t.tag))}function iq(e,t){switch(E2(t),t.tag){case 1:return _n(t.type)&&cv(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Fu(),Ft(On),Ft(rn),L2(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return $2(t),null;case 13:if(Ft(Ht),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(ae(340));$u()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ft(Ht),null;case 4:return Fu(),null;case 10:return M2(t.type._context),null;case 22:case 23:return X2(),null;case 24:return null;default:return null}}var Xp=!1,Yr=!1,oq=typeof WeakSet=="function"?WeakSet:Set,Ne=null;function Bc(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){ar(e,t,n)}else r.current=null}function j1(e,t,r){try{r()}catch(n){ar(e,t,n)}}var bT=!1;function lq(e,t){if(a1=sv,e=VR(),A2(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var a=n.anchorOffset,i=n.focusNode;n=n.focusOffset;try{r.nodeType,i.nodeType}catch{r=null;break e}var o=0,l=-1,c=-1,u=0,d=0,f=e,m=null;t:for(;;){for(var p;f!==r||a!==0&&f.nodeType!==3||(l=o+a),f!==i||n!==0&&f.nodeType!==3||(c=o+n),f.nodeType===3&&(o+=f.nodeValue.length),(p=f.firstChild)!==null;)m=f,f=p;for(;;){if(f===e)break t;if(m===r&&++u===a&&(l=o),m===i&&++d===n&&(c=o),(p=f.nextSibling)!==null)break;f=m,m=f.parentNode}f=p}r=l===-1||c===-1?null:{start:l,end:c}}else r=null}r=r||{start:0,end:0}}else r=null;for(s1={focusedElem:e,selectionRange:r},sv=!1,Ne=t;Ne!==null;)if(t=Ne,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Ne=e;else for(;Ne!==null;){t=Ne;try{var v=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var h=v.memoizedProps,x=v.memoizedState,y=t.stateNode,g=y.getSnapshotBeforeUpdate(t.elementType===t.type?h:Oa(t.type,h),x);y.__reactInternalSnapshotBeforeUpdate=g}break;case 3:var j=t.stateNode.containerInfo;j.nodeType===1?j.textContent="":j.nodeType===9&&j.documentElement&&j.removeChild(j.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(ae(163))}}catch(S){ar(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,Ne=e;break}Ne=t.return}return v=bT,bT=!1,v}function Zf(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var a=n=n.next;do{if((a.tag&e)===e){var i=a.destroy;a.destroy=void 0,i!==void 0&&j1(t,r,i)}a=a.next}while(a!==n)}}function py(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function w1(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function II(e){var t=e.alternate;t!==null&&(e.alternate=null,II(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[is],delete t[Pm],delete t[l1],delete t[WW],delete t[qW])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function $I(e){return e.tag===5||e.tag===3||e.tag===4}function jT(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||$I(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function N1(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=lv));else if(n!==4&&(e=e.child,e!==null))for(N1(e,t,r),e=e.sibling;e!==null;)N1(e,t,r),e=e.sibling}function S1(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(S1(e,t,r),e=e.sibling;e!==null;)S1(e,t,r),e=e.sibling}var $r=null,ka=!1;function _i(e,t,r){for(r=r.child;r!==null;)LI(e,t,r),r=r.sibling}function LI(e,t,r){if(hs&&typeof hs.onCommitFiberUnmount=="function")try{hs.onCommitFiberUnmount(oy,r)}catch{}switch(r.tag){case 5:Yr||Bc(r,t);case 6:var n=$r,a=ka;$r=null,_i(e,t,r),$r=n,ka=a,$r!==null&&(ka?(e=$r,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):$r.removeChild(r.stateNode));break;case 18:$r!==null&&(ka?(e=$r,r=r.stateNode,e.nodeType===8?yb(e.parentNode,r):e.nodeType===1&&yb(e,r),bm(e)):yb($r,r.stateNode));break;case 4:n=$r,a=ka,$r=r.stateNode.containerInfo,ka=!0,_i(e,t,r),$r=n,ka=a;break;case 0:case 11:case 14:case 15:if(!Yr&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){a=n=n.next;do{var i=a,o=i.destroy;i=i.tag,o!==void 0&&(i&2||i&4)&&j1(r,t,o),a=a.next}while(a!==n)}_i(e,t,r);break;case 1:if(!Yr&&(Bc(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(l){ar(r,t,l)}_i(e,t,r);break;case 21:_i(e,t,r);break;case 22:r.mode&1?(Yr=(n=Yr)||r.memoizedState!==null,_i(e,t,r),Yr=n):_i(e,t,r);break;default:_i(e,t,r)}}function wT(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new oq),t.forEach(function(n){var a=vq.bind(null,e,n);r.has(n)||(r.add(n),n.then(a,a))})}}function Pa(e,t){var r=t.deletions;if(r!==null)for(var n=0;n<r.length;n++){var a=r[n];try{var i=e,o=t,l=o;e:for(;l!==null;){switch(l.tag){case 5:$r=l.stateNode,ka=!1;break e;case 3:$r=l.stateNode.containerInfo,ka=!0;break e;case 4:$r=l.stateNode.containerInfo,ka=!0;break e}l=l.return}if($r===null)throw Error(ae(160));LI(i,o,a),$r=null,ka=!1;var c=a.alternate;c!==null&&(c.return=null),a.return=null}catch(u){ar(a,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)FI(t,e),t=t.sibling}function FI(e,t){var r=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Pa(t,e),Ja(e),n&4){try{Zf(3,e,e.return),py(3,e)}catch(h){ar(e,e.return,h)}try{Zf(5,e,e.return)}catch(h){ar(e,e.return,h)}}break;case 1:Pa(t,e),Ja(e),n&512&&r!==null&&Bc(r,r.return);break;case 5:if(Pa(t,e),Ja(e),n&512&&r!==null&&Bc(r,r.return),e.flags&32){var a=e.stateNode;try{gm(a,"")}catch(h){ar(e,e.return,h)}}if(n&4&&(a=e.stateNode,a!=null)){var i=e.memoizedProps,o=r!==null?r.memoizedProps:i,l=e.type,c=e.updateQueue;if(e.updateQueue=null,c!==null)try{l==="input"&&i.type==="radio"&&i.name!=null&&oR(a,i),Kj(l,o);var u=Kj(l,i);for(o=0;o<c.length;o+=2){var d=c[o],f=c[o+1];d==="style"?fR(a,f):d==="dangerouslySetInnerHTML"?uR(a,f):d==="children"?gm(a,f):h2(a,d,f,u)}switch(l){case"input":Uj(a,i);break;case"textarea":lR(a,i);break;case"select":var m=a._wrapperState.wasMultiple;a._wrapperState.wasMultiple=!!i.multiple;var p=i.value;p!=null?nu(a,!!i.multiple,p,!1):m!==!!i.multiple&&(i.defaultValue!=null?nu(a,!!i.multiple,i.defaultValue,!0):nu(a,!!i.multiple,i.multiple?[]:"",!1))}a[Pm]=i}catch(h){ar(e,e.return,h)}}break;case 6:if(Pa(t,e),Ja(e),n&4){if(e.stateNode===null)throw Error(ae(162));a=e.stateNode,i=e.memoizedProps;try{a.nodeValue=i}catch(h){ar(e,e.return,h)}}break;case 3:if(Pa(t,e),Ja(e),n&4&&r!==null&&r.memoizedState.isDehydrated)try{bm(t.containerInfo)}catch(h){ar(e,e.return,h)}break;case 4:Pa(t,e),Ja(e);break;case 13:Pa(t,e),Ja(e),a=e.child,a.flags&8192&&(i=a.memoizedState!==null,a.stateNode.isHidden=i,!i||a.alternate!==null&&a.alternate.memoizedState!==null||(G2=lr())),n&4&&wT(e);break;case 22:if(d=r!==null&&r.memoizedState!==null,e.mode&1?(Yr=(u=Yr)||d,Pa(t,e),Yr=u):Pa(t,e),Ja(e),n&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!d&&e.mode&1)for(Ne=e,d=e.child;d!==null;){for(f=Ne=d;Ne!==null;){switch(m=Ne,p=m.child,m.tag){case 0:case 11:case 14:case 15:Zf(4,m,m.return);break;case 1:Bc(m,m.return);var v=m.stateNode;if(typeof v.componentWillUnmount=="function"){n=m,r=m.return;try{t=n,v.props=t.memoizedProps,v.state=t.memoizedState,v.componentWillUnmount()}catch(h){ar(n,r,h)}}break;case 5:Bc(m,m.return);break;case 22:if(m.memoizedState!==null){ST(f);continue}}p!==null?(p.return=m,Ne=p):ST(f)}d=d.sibling}e:for(d=null,f=e;;){if(f.tag===5){if(d===null){d=f;try{a=f.stateNode,u?(i=a.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(l=f.stateNode,c=f.memoizedProps.style,o=c!=null&&c.hasOwnProperty("display")?c.display:null,l.style.display=dR("display",o))}catch(h){ar(e,e.return,h)}}}else if(f.tag===6){if(d===null)try{f.stateNode.nodeValue=u?"":f.memoizedProps}catch(h){ar(e,e.return,h)}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===e)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;f.sibling===null;){if(f.return===null||f.return===e)break e;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:Pa(t,e),Ja(e),n&4&&wT(e);break;case 21:break;default:Pa(t,e),Ja(e)}}function Ja(e){var t=e.flags;if(t&2){try{e:{for(var r=e.return;r!==null;){if($I(r)){var n=r;break e}r=r.return}throw Error(ae(160))}switch(n.tag){case 5:var a=n.stateNode;n.flags&32&&(gm(a,""),n.flags&=-33);var i=jT(e);S1(e,i,a);break;case 3:case 4:var o=n.stateNode.containerInfo,l=jT(e);N1(e,l,o);break;default:throw Error(ae(161))}}catch(c){ar(e,e.return,c)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function cq(e,t,r){Ne=e,VI(e)}function VI(e,t,r){for(var n=(e.mode&1)!==0;Ne!==null;){var a=Ne,i=a.child;if(a.tag===22&&n){var o=a.memoizedState!==null||Xp;if(!o){var l=a.alternate,c=l!==null&&l.memoizedState!==null||Yr;l=Xp;var u=Yr;if(Xp=o,(Yr=c)&&!u)for(Ne=a;Ne!==null;)o=Ne,c=o.child,o.tag===22&&o.memoizedState!==null?PT(a):c!==null?(c.return=o,Ne=c):PT(a);for(;i!==null;)Ne=i,VI(i),i=i.sibling;Ne=a,Xp=l,Yr=u}NT(e)}else a.subtreeFlags&8772&&i!==null?(i.return=a,Ne=i):NT(e)}}function NT(e){for(;Ne!==null;){var t=Ne;if(t.flags&8772){var r=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Yr||py(5,t);break;case 1:var n=t.stateNode;if(t.flags&4&&!Yr)if(r===null)n.componentDidMount();else{var a=t.elementType===t.type?r.memoizedProps:Oa(t.type,r.memoizedProps);n.componentDidUpdate(a,r.memoizedState,n.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&oT(t,i,n);break;case 3:var o=t.updateQueue;if(o!==null){if(r=null,t.child!==null)switch(t.child.tag){case 5:r=t.child.stateNode;break;case 1:r=t.child.stateNode}oT(t,o,r)}break;case 5:var l=t.stateNode;if(r===null&&t.flags&4){r=l;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&r.focus();break;case"img":c.src&&(r.src=c.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var d=u.memoizedState;if(d!==null){var f=d.dehydrated;f!==null&&bm(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(ae(163))}Yr||t.flags&512&&w1(t)}catch(m){ar(t,t.return,m)}}if(t===e){Ne=null;break}if(r=t.sibling,r!==null){r.return=t.return,Ne=r;break}Ne=t.return}}function ST(e){for(;Ne!==null;){var t=Ne;if(t===e){Ne=null;break}var r=t.sibling;if(r!==null){r.return=t.return,Ne=r;break}Ne=t.return}}function PT(e){for(;Ne!==null;){var t=Ne;try{switch(t.tag){case 0:case 11:case 15:var r=t.return;try{py(4,t)}catch(c){ar(t,r,c)}break;case 1:var n=t.stateNode;if(typeof n.componentDidMount=="function"){var a=t.return;try{n.componentDidMount()}catch(c){ar(t,a,c)}}var i=t.return;try{w1(t)}catch(c){ar(t,i,c)}break;case 5:var o=t.return;try{w1(t)}catch(c){ar(t,o,c)}}}catch(c){ar(t,t.return,c)}if(t===e){Ne=null;break}var l=t.sibling;if(l!==null){l.return=t.return,Ne=l;break}Ne=t.return}}var uq=Math.ceil,yv=Si.ReactCurrentDispatcher,q2=Si.ReactCurrentOwner,ma=Si.ReactCurrentBatchConfig,dt=0,_r=null,mr=null,zr=0,In=0,Uc=Vo(0),Nr=0,_m=null,$l=0,gy=0,H2=0,Qf=null,Cn=null,G2=0,zu=1/0,Bs=null,bv=!1,P1=null,po=null,Yp=!1,no=null,jv=0,Jf=0,C1=null,Lg=-1,Fg=0;function xn(){return dt&6?lr():Lg!==-1?Lg:Lg=lr()}function go(e){return e.mode&1?dt&2&&zr!==0?zr&-zr:GW.transition!==null?(Fg===0&&(Fg=SR()),Fg):(e=Nt,e!==0||(e=window.event,e=e===void 0?16:_R(e.type)),e):1}function Ba(e,t,r,n){if(50<Jf)throw Jf=0,C1=null,Error(ae(185));ep(e,r,n),(!(dt&2)||e!==_r)&&(e===_r&&(!(dt&2)&&(gy|=r),Nr===4&&Wi(e,zr)),kn(e,n),r===1&&dt===0&&!(t.mode&1)&&(zu=lr()+500,fy&&zo()))}function kn(e,t){var r=e.callbackNode;GU(e,t);var n=av(e,e===_r?zr:0);if(n===0)r!==null&&DA(r),e.callbackNode=null,e.callbackPriority=0;else if(t=n&-n,e.callbackPriority!==t){if(r!=null&&DA(r),t===1)e.tag===0?HW(CT.bind(null,e)):YR(CT.bind(null,e)),BW(function(){!(dt&6)&&zo()}),r=null;else{switch(PR(n)){case 1:r=y2;break;case 4:r=wR;break;case 16:r=nv;break;case 536870912:r=NR;break;default:r=nv}r=KI(r,zI.bind(null,e))}e.callbackPriority=t,e.callbackNode=r}}function zI(e,t){if(Lg=-1,Fg=0,dt&6)throw Error(ae(327));var r=e.callbackNode;if(lu()&&e.callbackNode!==r)return null;var n=av(e,e===_r?zr:0);if(n===0)return null;if(n&30||n&e.expiredLanes||t)t=wv(e,n);else{t=n;var a=dt;dt|=2;var i=UI();(_r!==e||zr!==t)&&(Bs=null,zu=lr()+500,Al(e,t));do try{mq();break}catch(l){BI(e,l)}while(!0);k2(),yv.current=i,dt=a,mr!==null?t=0:(_r=null,zr=0,t=Nr)}if(t!==0){if(t===2&&(a=Jj(e),a!==0&&(n=a,t=A1(e,a))),t===1)throw r=_m,Al(e,0),Wi(e,n),kn(e,lr()),r;if(t===6)Wi(e,n);else{if(a=e.current.alternate,!(n&30)&&!dq(a)&&(t=wv(e,n),t===2&&(i=Jj(e),i!==0&&(n=i,t=A1(e,i))),t===1))throw r=_m,Al(e,0),Wi(e,n),kn(e,lr()),r;switch(e.finishedWork=a,e.finishedLanes=n,t){case 0:case 1:throw Error(ae(345));case 2:tl(e,Cn,Bs);break;case 3:if(Wi(e,n),(n&130023424)===n&&(t=G2+500-lr(),10<t)){if(av(e,0)!==0)break;if(a=e.suspendedLanes,(a&n)!==n){xn(),e.pingedLanes|=e.suspendedLanes&a;break}e.timeoutHandle=o1(tl.bind(null,e,Cn,Bs),t);break}tl(e,Cn,Bs);break;case 4:if(Wi(e,n),(n&4194240)===n)break;for(t=e.eventTimes,a=-1;0<n;){var o=31-za(n);i=1<<o,o=t[o],o>a&&(a=o),n&=~i}if(n=a,n=lr()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*uq(n/1960))-n,10<n){e.timeoutHandle=o1(tl.bind(null,e,Cn,Bs),n);break}tl(e,Cn,Bs);break;case 5:tl(e,Cn,Bs);break;default:throw Error(ae(329))}}}return kn(e,lr()),e.callbackNode===r?zI.bind(null,e):null}function A1(e,t){var r=Qf;return e.current.memoizedState.isDehydrated&&(Al(e,t).flags|=256),e=wv(e,t),e!==2&&(t=Cn,Cn=r,t!==null&&T1(t)),e}function T1(e){Cn===null?Cn=e:Cn.push.apply(Cn,e)}function dq(e){for(var t=e;;){if(t.flags&16384){var r=t.updateQueue;if(r!==null&&(r=r.stores,r!==null))for(var n=0;n<r.length;n++){var a=r[n],i=a.getSnapshot;a=a.value;try{if(!qa(i(),a))return!1}catch{return!1}}}if(r=t.child,t.subtreeFlags&16384&&r!==null)r.return=t,t=r;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Wi(e,t){for(t&=~H2,t&=~gy,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-za(t),n=1<<r;e[r]=-1,t&=~n}}function CT(e){if(dt&6)throw Error(ae(327));lu();var t=av(e,0);if(!(t&1))return kn(e,lr()),null;var r=wv(e,t);if(e.tag!==0&&r===2){var n=Jj(e);n!==0&&(t=n,r=A1(e,n))}if(r===1)throw r=_m,Al(e,0),Wi(e,t),kn(e,lr()),r;if(r===6)throw Error(ae(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,tl(e,Cn,Bs),kn(e,lr()),null}function K2(e,t){var r=dt;dt|=1;try{return e(t)}finally{dt=r,dt===0&&(zu=lr()+500,fy&&zo())}}function Ll(e){no!==null&&no.tag===0&&!(dt&6)&&lu();var t=dt;dt|=1;var r=ma.transition,n=Nt;try{if(ma.transition=null,Nt=1,e)return e()}finally{Nt=n,ma.transition=r,dt=t,!(dt&6)&&zo()}}function X2(){In=Uc.current,Ft(Uc)}function Al(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(r!==-1&&(e.timeoutHandle=-1,zW(r)),mr!==null)for(r=mr.return;r!==null;){var n=r;switch(E2(n),n.tag){case 1:n=n.type.childContextTypes,n!=null&&cv();break;case 3:Fu(),Ft(On),Ft(rn),L2();break;case 5:$2(n);break;case 4:Fu();break;case 13:Ft(Ht);break;case 19:Ft(Ht);break;case 10:M2(n.type._context);break;case 22:case 23:X2()}r=r.return}if(_r=e,mr=e=vo(e.current,null),zr=In=t,Nr=0,_m=null,H2=gy=$l=0,Cn=Qf=null,ul!==null){for(t=0;t<ul.length;t++)if(r=ul[t],n=r.interleaved,n!==null){r.interleaved=null;var a=n.next,i=r.pending;if(i!==null){var o=i.next;i.next=a,n.next=o}r.pending=n}ul=null}return e}function BI(e,t){do{var r=mr;try{if(k2(),Rg.current=xv,vv){for(var n=Jt.memoizedState;n!==null;){var a=n.queue;a!==null&&(a.pending=null),n=n.next}vv=!1}if(Il=0,Tr=yr=Jt=null,Yf=!1,Tm=0,q2.current=null,r===null||r.return===null){Nr=1,_m=t,mr=null;break}e:{var i=e,o=r.return,l=r,c=t;if(t=zr,l.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){var u=c,d=l,f=d.tag;if(!(d.mode&1)&&(f===0||f===11||f===15)){var m=d.alternate;m?(d.updateQueue=m.updateQueue,d.memoizedState=m.memoizedState,d.lanes=m.lanes):(d.updateQueue=null,d.memoizedState=null)}var p=mT(o);if(p!==null){p.flags&=-257,hT(p,o,l,i,t),p.mode&1&&fT(i,u,t),t=p,c=u;var v=t.updateQueue;if(v===null){var h=new Set;h.add(c),t.updateQueue=h}else v.add(c);break e}else{if(!(t&1)){fT(i,u,t),Y2();break e}c=Error(ae(426))}}else if(zt&&l.mode&1){var x=mT(o);if(x!==null){!(x.flags&65536)&&(x.flags|=256),hT(x,o,l,i,t),O2(Vu(c,l));break e}}i=c=Vu(c,l),Nr!==4&&(Nr=2),Qf===null?Qf=[i]:Qf.push(i),i=o;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var y=PI(i,c,t);iT(i,y);break e;case 1:l=c;var g=i.type,j=i.stateNode;if(!(i.flags&128)&&(typeof g.getDerivedStateFromError=="function"||j!==null&&typeof j.componentDidCatch=="function"&&(po===null||!po.has(j)))){i.flags|=65536,t&=-t,i.lanes|=t;var S=CI(i,l,t);iT(i,S);break e}}i=i.return}while(i!==null)}qI(r)}catch(w){t=w,mr===r&&r!==null&&(mr=r=r.return);continue}break}while(!0)}function UI(){var e=yv.current;return yv.current=xv,e===null?xv:e}function Y2(){(Nr===0||Nr===3||Nr===2)&&(Nr=4),_r===null||!($l&268435455)&&!(gy&268435455)||Wi(_r,zr)}function wv(e,t){var r=dt;dt|=2;var n=UI();(_r!==e||zr!==t)&&(Bs=null,Al(e,t));do try{fq();break}catch(a){BI(e,a)}while(!0);if(k2(),dt=r,yv.current=n,mr!==null)throw Error(ae(261));return _r=null,zr=0,Nr}function fq(){for(;mr!==null;)WI(mr)}function mq(){for(;mr!==null&&!LU();)WI(mr)}function WI(e){var t=GI(e.alternate,e,In);e.memoizedProps=e.pendingProps,t===null?qI(e):mr=t,q2.current=null}function qI(e){var t=e;do{var r=t.alternate;if(e=t.return,t.flags&32768){if(r=iq(r,t),r!==null){r.flags&=32767,mr=r;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Nr=6,mr=null;return}}else if(r=sq(r,t,In),r!==null){mr=r;return}if(t=t.sibling,t!==null){mr=t;return}mr=t=e}while(t!==null);Nr===0&&(Nr=5)}function tl(e,t,r){var n=Nt,a=ma.transition;try{ma.transition=null,Nt=1,hq(e,t,r,n)}finally{ma.transition=a,Nt=n}return null}function hq(e,t,r,n){do lu();while(no!==null);if(dt&6)throw Error(ae(327));r=e.finishedWork;var a=e.finishedLanes;if(r===null)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(ae(177));e.callbackNode=null,e.callbackPriority=0;var i=r.lanes|r.childLanes;if(KU(e,i),e===_r&&(mr=_r=null,zr=0),!(r.subtreeFlags&2064)&&!(r.flags&2064)||Yp||(Yp=!0,KI(nv,function(){return lu(),null})),i=(r.flags&15990)!==0,r.subtreeFlags&15990||i){i=ma.transition,ma.transition=null;var o=Nt;Nt=1;var l=dt;dt|=4,q2.current=null,lq(e,r),FI(r,e),DW(s1),sv=!!a1,s1=a1=null,e.current=r,cq(r),FU(),dt=l,Nt=o,ma.transition=i}else e.current=r;if(Yp&&(Yp=!1,no=e,jv=a),i=e.pendingLanes,i===0&&(po=null),BU(r.stateNode),kn(e,lr()),t!==null)for(n=e.onRecoverableError,r=0;r<t.length;r++)a=t[r],n(a.value,{componentStack:a.stack,digest:a.digest});if(bv)throw bv=!1,e=P1,P1=null,e;return jv&1&&e.tag!==0&&lu(),i=e.pendingLanes,i&1?e===C1?Jf++:(Jf=0,C1=e):Jf=0,zo(),null}function lu(){if(no!==null){var e=PR(jv),t=ma.transition,r=Nt;try{if(ma.transition=null,Nt=16>e?16:e,no===null)var n=!1;else{if(e=no,no=null,jv=0,dt&6)throw Error(ae(331));var a=dt;for(dt|=4,Ne=e.current;Ne!==null;){var i=Ne,o=i.child;if(Ne.flags&16){var l=i.deletions;if(l!==null){for(var c=0;c<l.length;c++){var u=l[c];for(Ne=u;Ne!==null;){var d=Ne;switch(d.tag){case 0:case 11:case 15:Zf(8,d,i)}var f=d.child;if(f!==null)f.return=d,Ne=f;else for(;Ne!==null;){d=Ne;var m=d.sibling,p=d.return;if(II(d),d===u){Ne=null;break}if(m!==null){m.return=p,Ne=m;break}Ne=p}}}var v=i.alternate;if(v!==null){var h=v.child;if(h!==null){v.child=null;do{var x=h.sibling;h.sibling=null,h=x}while(h!==null)}}Ne=i}}if(i.subtreeFlags&2064&&o!==null)o.return=i,Ne=o;else e:for(;Ne!==null;){if(i=Ne,i.flags&2048)switch(i.tag){case 0:case 11:case 15:Zf(9,i,i.return)}var y=i.sibling;if(y!==null){y.return=i.return,Ne=y;break e}Ne=i.return}}var g=e.current;for(Ne=g;Ne!==null;){o=Ne;var j=o.child;if(o.subtreeFlags&2064&&j!==null)j.return=o,Ne=j;else e:for(o=g;Ne!==null;){if(l=Ne,l.flags&2048)try{switch(l.tag){case 0:case 11:case 15:py(9,l)}}catch(w){ar(l,l.return,w)}if(l===o){Ne=null;break e}var S=l.sibling;if(S!==null){S.return=l.return,Ne=S;break e}Ne=l.return}}if(dt=a,zo(),hs&&typeof hs.onPostCommitFiberRoot=="function")try{hs.onPostCommitFiberRoot(oy,e)}catch{}n=!0}return n}finally{Nt=r,ma.transition=t}}return!1}function AT(e,t,r){t=Vu(r,t),t=PI(e,t,1),e=ho(e,t,1),t=xn(),e!==null&&(ep(e,1,t),kn(e,t))}function ar(e,t,r){if(e.tag===3)AT(e,e,r);else for(;t!==null;){if(t.tag===3){AT(t,e,r);break}else if(t.tag===1){var n=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(po===null||!po.has(n))){e=Vu(r,e),e=CI(t,e,1),t=ho(t,e,1),e=xn(),t!==null&&(ep(t,1,e),kn(t,e));break}}t=t.return}}function pq(e,t,r){var n=e.pingCache;n!==null&&n.delete(t),t=xn(),e.pingedLanes|=e.suspendedLanes&r,_r===e&&(zr&r)===r&&(Nr===4||Nr===3&&(zr&130023424)===zr&&500>lr()-G2?Al(e,0):H2|=r),kn(e,t)}function HI(e,t){t===0&&(e.mode&1?(t=Vp,Vp<<=1,!(Vp&130023424)&&(Vp=4194304)):t=1);var r=xn();e=mi(e,t),e!==null&&(ep(e,t,r),kn(e,r))}function gq(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),HI(e,r)}function vq(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,a=e.memoizedState;a!==null&&(r=a.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(ae(314))}n!==null&&n.delete(t),HI(e,r)}var GI;GI=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||On.current)Tn=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return Tn=!1,aq(e,t,r);Tn=!!(e.flags&131072)}else Tn=!1,zt&&t.flags&1048576&&ZR(t,fv,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;$g(e,t),e=t.pendingProps;var a=Iu(t,rn.current);ou(t,r),a=V2(null,t,n,e,a,r);var i=z2();return t.flags|=1,typeof a=="object"&&a!==null&&typeof a.render=="function"&&a.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,_n(n)?(i=!0,uv(t)):i=!1,t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,R2(t),a.updater=hy,t.stateNode=a,a._reactInternals=t,h1(t,n,e,r),t=v1(null,t,n,!0,i,r)):(t.tag=0,zt&&i&&T2(t),cn(null,t,a,r),t=t.child),t;case 16:n=t.elementType;e:{switch($g(e,t),e=t.pendingProps,a=n._init,n=a(n._payload),t.type=n,a=t.tag=yq(n),e=Oa(n,e),a){case 0:t=g1(null,t,n,e,r);break e;case 1:t=vT(null,t,n,e,r);break e;case 11:t=pT(null,t,n,e,r);break e;case 14:t=gT(null,t,n,Oa(n.type,e),r);break e}throw Error(ae(306,n,""))}return t;case 0:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:Oa(n,a),g1(e,t,n,a,r);case 1:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:Oa(n,a),vT(e,t,n,a,r);case 3:e:{if(OI(t),e===null)throw Error(ae(387));n=t.pendingProps,i=t.memoizedState,a=i.element,nI(e,t),pv(t,n,null,r);var o=t.memoizedState;if(n=o.element,i.isDehydrated)if(i={element:n,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){a=Vu(Error(ae(423)),t),t=xT(e,t,n,r,a);break e}else if(n!==a){a=Vu(Error(ae(424)),t),t=xT(e,t,n,r,a);break e}else for(Bn=mo(t.stateNode.containerInfo.firstChild),Un=t,zt=!0,Da=null,r=tI(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if($u(),n===a){t=hi(e,t,r);break e}cn(e,t,n,r)}t=t.child}return t;case 5:return aI(t),e===null&&d1(t),n=t.type,a=t.pendingProps,i=e!==null?e.memoizedProps:null,o=a.children,i1(n,a)?o=null:i!==null&&i1(n,i)&&(t.flags|=32),EI(e,t),cn(e,t,o,r),t.child;case 6:return e===null&&d1(t),null;case 13:return _I(e,t,r);case 4:return I2(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=Lu(t,null,n,r):cn(e,t,n,r),t.child;case 11:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:Oa(n,a),pT(e,t,n,a,r);case 7:return cn(e,t,t.pendingProps,r),t.child;case 8:return cn(e,t,t.pendingProps.children,r),t.child;case 12:return cn(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,a=t.pendingProps,i=t.memoizedProps,o=a.value,Ot(mv,n._currentValue),n._currentValue=o,i!==null)if(qa(i.value,o)){if(i.children===a.children&&!On.current){t=hi(e,t,r);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var l=i.dependencies;if(l!==null){o=i.child;for(var c=l.firstContext;c!==null;){if(c.context===n){if(i.tag===1){c=Js(-1,r&-r),c.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?c.next=c:(c.next=d.next,d.next=c),u.pending=c}}i.lanes|=r,c=i.alternate,c!==null&&(c.lanes|=r),f1(i.return,r,t),l.lanes|=r;break}c=c.next}}else if(i.tag===10)o=i.type===t.type?null:i.child;else if(i.tag===18){if(o=i.return,o===null)throw Error(ae(341));o.lanes|=r,l=o.alternate,l!==null&&(l.lanes|=r),f1(o,r,t),o=i.sibling}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===t){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}cn(e,t,a.children,r),t=t.child}return t;case 9:return a=t.type,n=t.pendingProps.children,ou(t,r),a=va(a),n=n(a),t.flags|=1,cn(e,t,n,r),t.child;case 14:return n=t.type,a=Oa(n,t.pendingProps),a=Oa(n.type,a),gT(e,t,n,a,r);case 15:return AI(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:Oa(n,a),$g(e,t),t.tag=1,_n(n)?(e=!0,uv(t)):e=!1,ou(t,r),SI(t,n,a),h1(t,n,a,r),v1(null,t,n,!0,e,r);case 19:return kI(e,t,r);case 22:return TI(e,t,r)}throw Error(ae(156,t.tag))};function KI(e,t){return jR(e,t)}function xq(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.t
vendor: 10,998 bytes, lines 40-48
40ype=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function da(e,t,r,n){return new xq(e,t,r,n)}function Z2(e){return e=e.prototype,!(!e||!e.isReactComponent)}function yq(e){if(typeof e=="function")return Z2(e)?1:0;if(e!=null){if(e=e.$$typeof,e===g2)return 11;if(e===v2)return 14}return 2}function vo(e,t){var r=e.alternate;return r===null?(r=da(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function Vg(e,t,r,n,a,i){var o=2;if(n=e,typeof e=="function")Z2(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Mc:return Tl(r.children,a,i,t);case p2:o=8,a|=8;break;case Lj:return e=da(12,r,t,a|2),e.elementType=Lj,e.lanes=i,e;case Fj:return e=da(13,r,t,a),e.elementType=Fj,e.lanes=i,e;case Vj:return e=da(19,r,t,a),e.elementType=Vj,e.lanes=i,e;case aR:return vy(r,a,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case rR:o=10;break e;case nR:o=9;break e;case g2:o=11;break e;case v2:o=14;break e;case Vi:o=16,n=null;break e}throw Error(ae(130,e==null?e:typeof e,""))}return t=da(o,r,t,a),t.elementType=e,t.type=n,t.lanes=i,t}function Tl(e,t,r,n){return e=da(7,e,n,t),e.lanes=r,e}function vy(e,t,r,n){return e=da(22,e,n,t),e.elementType=aR,e.lanes=r,e.stateNode={isHidden:!1},e}function Ab(e,t,r){return e=da(6,e,null,t),e.lanes=r,e}function Tb(e,t,r){return t=da(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function bq(e,t,r,n,a){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=lb(0),this.expirationTimes=lb(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=lb(0),this.identifierPrefix=n,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function Q2(e,t,r,n,a,i,o,l,c){return e=new bq(e,t,r,l,c),t===1?(t=1,i===!0&&(t|=8)):t=0,i=da(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},R2(i),e}function jq(e,t,r){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:kc,key:n==null?null:""+n,children:e,containerInfo:t,implementation:r}}function XI(e){if(!e)return wo;e=e._reactInternals;e:{if(sc(e)!==e||e.tag!==1)throw Error(ae(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(_n(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(ae(171))}if(e.tag===1){var r=e.type;if(_n(r))return XR(e,r,t)}return t}function YI(e,t,r,n,a,i,o,l,c){return e=Q2(r,n,!0,e,a,i,o,l,c),e.context=XI(null),r=e.current,n=xn(),a=go(r),i=Js(n,a),i.callback=t??null,ho(r,i,a),e.current.lanes=a,ep(e,a,n),kn(e,n),e}function xy(e,t,r,n){var a=t.current,i=xn(),o=go(a);return r=XI(r),t.context===null?t.context=r:t.pendingContext=r,t=Js(i,o),t.payload={element:e},n=n===void 0?null:n,n!==null&&(t.callback=n),e=ho(a,t,o),e!==null&&(Ba(e,a,o,i),Dg(e,a,o)),o}function Nv(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function TT(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function J2(e,t){TT(e,t),(e=e.alternate)&&TT(e,t)}function wq(){return null}var ZI=typeof reportError=="function"?reportError:function(e){console.error(e)};function eS(e){this._internalRoot=e}yy.prototype.render=eS.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(ae(409));xy(e,t,null,null)};yy.prototype.unmount=eS.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Ll(function(){xy(null,e,null,null)}),t[fi]=null}};function yy(e){this._internalRoot=e}yy.prototype.unstable_scheduleHydration=function(e){if(e){var t=TR();e={blockedOn:null,target:e,priority:t};for(var r=0;r<Ui.length&&t!==0&&t<Ui[r].priority;r++);Ui.splice(r,0,e),r===0&&OR(e)}};function tS(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function by(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function ET(){}function Nq(e,t,r,n,a){if(a){if(typeof n=="function"){var i=n;n=function(){var u=Nv(o);i.call(u)}}var o=YI(t,n,e,0,null,!1,!1,"",ET);return e._reactRootContainer=o,e[fi]=o.current,Nm(e.nodeType===8?e.parentNode:e),Ll(),o}for(;a=e.lastChild;)e.removeChild(a);if(typeof n=="function"){var l=n;n=function(){var u=Nv(c);l.call(u)}}var c=Q2(e,0,!1,null,null,!1,!1,"",ET);return e._reactRootContainer=c,e[fi]=c.current,Nm(e.nodeType===8?e.parentNode:e),Ll(function(){xy(t,c,r,n)}),c}function jy(e,t,r,n,a){var i=r._reactRootContainer;if(i){var o=i;if(typeof a=="function"){var l=a;a=function(){var c=Nv(o);l.call(c)}}xy(t,o,e,a)}else o=Nq(r,t,e,a,n);return Nv(o)}CR=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var r=Df(t.pendingLanes);r!==0&&(b2(t,r|1),kn(t,lr()),!(dt&6)&&(zu=lr()+500,zo()))}break;case 13:Ll(function(){var n=mi(e,1);if(n!==null){var a=xn();Ba(n,e,1,a)}}),J2(e,1)}};j2=function(e){if(e.tag===13){var t=mi(e,134217728);if(t!==null){var r=xn();Ba(t,e,134217728,r)}J2(e,134217728)}};AR=function(e){if(e.tag===13){var t=go(e),r=mi(e,t);if(r!==null){var n=xn();Ba(r,e,t,n)}J2(e,t)}};TR=function(){return Nt};ER=function(e,t){var r=Nt;try{return Nt=e,t()}finally{Nt=r}};Yj=function(e,t,r){switch(t){case"input":if(Uj(e,r),t=r.name,r.type==="radio"&&t!=null){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var n=r[t];if(n!==e&&n.form===e.form){var a=dy(n);if(!a)throw Error(ae(90));iR(n),Uj(n,a)}}}break;case"textarea":lR(e,r);break;case"select":t=r.value,t!=null&&nu(e,!!r.multiple,t,!1)}};pR=K2;gR=Ll;var Sq={usingClientEntryPoint:!1,Events:[rp,$c,dy,mR,hR,K2]},ff={findFiberByHostInstance:cl,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Pq={bundleType:ff.bundleType,version:ff.version,rendererPackageName:ff.rendererPackageName,rendererConfig:ff.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Si.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=yR(e),e===null?null:e.stateNode},findFiberByHostInstance:ff.findFiberByHostInstance||wq,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Zp=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Zp.isDisabled&&Zp.supportsFiber)try{oy=Zp.inject(Pq),hs=Zp}catch{}}Yn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Sq;Yn.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!tS(t))throw Error(ae(200));return jq(e,t,null,r)};Yn.createRoot=function(e,t){if(!tS(e))throw Error(ae(299));var r=!1,n="",a=ZI;return t!=null&&(t.unstable_strictMode===!0&&(r=!0),t.identifierPrefix!==void 0&&(n=t.identifierPrefix),t.onRecoverableError!==void 0&&(a=t.onRecoverableError)),t=Q2(e,1,!1,null,null,r,!1,n,a),e[fi]=t.current,Nm(e.nodeType===8?e.parentNode:e),new eS(t)};Yn.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(ae(188)):(e=Object.keys(e).join(","),Error(ae(268,e)));return e=yR(t),e=e===null?null:e.stateNode,e};Yn.flushSync=function(e){return Ll(e)};Yn.hydrate=function(e,t,r){if(!by(t))throw Error(ae(200));return jy(null,e,t,!0,r)};Yn.hydrateRoot=function(e,t,r){if(!tS(e))throw Error(ae(405));var n=r!=null&&r.hydratedSources||null,a=!1,i="",o=ZI;if(r!=null&&(r.unstable_strictMode===!0&&(a=!0),r.identifierPrefix!==void 0&&(i=r.identifierPrefix),r.onRecoverableError!==void 0&&(o=r.onRecoverableError)),t=YI(t,null,e,1,r??null,a,!1,i,o),e[fi]=t.current,Nm(e),n)for(e=0;e<n.length;e++)r=n[e],a=r._getVersion,a=a(r._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[r,a]:t.mutableSourceEagerHydrationData.push(r,a);return new yy(t)};Yn.render=function(e,t,r){if(!by(t))throw Error(ae(200));return jy(null,e,t,!1,r)};Yn.unmountComponentAtNode=function(e){if(!by(e))throw Error(ae(40));return e._reactRootContainer?(Ll(function(){jy(null,null,e,!1,function(){e._reactRootContainer=null,e[fi]=null})}),!0):!1};Yn.unstable_batchedUpdates=K2;Yn.unstable_renderSubtreeIntoContainer=function(e,t,r,n){if(!by(r))throw Error(ae(200));if(e==null||e._reactInternals===void 0)throw Error(ae(38));return jy(e,t,r,!1,n)};Yn.version="18.3.1-next-f1338f8080-20240426";function QI(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(QI)}catch(e){console.error(e)}}QI(),QD.exports=Yn;var ic=QD.exports;const Cq=bt(ic);var JI,OT=ic;JI=OT.createRoot,OT.hydrateRoot;function Aq(e,t){if(e instanceof RegExp)return{keys:!1,pattern:e};var r,n,a,i,o=[],l="",c=e.split("/");for(c[0]||c.shift();a=c.shift();)r=a[0],r==="*"?(o.push(r),l+=a[1]==="?"?"(?:/(.*))?":"/(.*)"):r===":"?(n=a.indexOf("?",1),i=a.indexOf(".",1),o.push(a.substring(1,~n?n:~i?i:a.length)),l+=~n&&!~i?"(?:/([^/]+?))?":"/([^/]+?)",~i&&(l+=(~n?"?":"")+"\\"+a.substring(i))):l+="/"+a;return{keys:o,pattern:new RegExp("^"+l+(t?"(?=$|/)":"/?$"),"i")}}var e5={exports:{}},t5={};/** 41 * @license React 42 * use-sync-external-store-shim.production.min.js 43 * 44 * Copyright (c) Facebook, Inc. and its affiliates. 45 * 46 * This source code is licensed under the MIT license found in the 47 * LICENSE file in the root directory of this source tree. 48 */var Bu=b;function Tq(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Eq=typeof Object.is=="function"?Object.is:Tq,Oq=Bu.useState,_q=Bu.useEffect,kq=Bu.useLayoutEffect,Mq=Bu.useDebugValue;function Dq(e,t){var r=t(),n=Oq({inst:{value:r,getSnapshot:t}}),a=n[0].inst,i=n[1];
48return kq(function(){a.value=r,a.getSnapshot=t,Eb(a)&&i({inst:a})},[e,r,t]),_q(function(){return Eb(a)&&i({inst:a}),e(function(){Eb(a)&&i({inst:a})})},[e]),Mq(r),r}function Eb(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!Eq(e,r)}catch{return!0}}function Rq(e,t){return t()}var Iq=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Rq:Dq;t5.useSyncExternalStore=Bu.useSyncExternalStore!==void 0?Bu.useSyncExternalStore:Iq;e5.exports=t5;var $q=e5.exports;const Lq=YD.useInsertionEffect,Fq=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",r5=Fq?b.useLayoutEffect:b.useEffect,Vq=Lq||r5,rS=e=>{const t=b.useRef([e,(...r)=>t[0](...r)]).current;return Vq(()=>{t[0]=e}),t[1]},zq="popstate",nS="pushState",aS="replaceState",Bq="hashchange",_T=[zq,nS,aS,Bq],Uq=e=>{for(const t of _T)addEventListener(t,e);return()=>{for(const t of _T)removeEventListener(t,e)}},n5=(e,t)=>$q.useSyncExternalStore(Uq,e,t),Wq=()=>location.search,qq=({ssrSearch:e=""}={})=>n5(Wq,()=>e),kT=()=>location.pathname,Hq=({ssrPath:e}={})=>n5(kT,e?()=>e:kT),Gq=(e,{replace:t=!1,state:r=null}={})=>history[t?aS:nS](r,"",e),Kq=(e={})=>[Hq(e),Gq],MT=Symbol.for("wouter_v3");if(typeof history<"u"&&typeof window[MT]>"u"){for(const e of[nS,aS]){const t=history[e];history[e]=function(){const r=t.apply(this,arguments),n=new Event(e);return n.arguments=arguments,dispatchEvent(n),r}}Object.defineProperty(window,MT,{value:!0})}const Xq=(e,t)=>t.toLowerCase().indexOf(e.toLowerCase())?"~"+t:t.slice(e.length)||"/",a5=(e="")=>e==="/"?"":e,Yq=(e,t)=>e[0]==="~"?e.slice(1):a5(t)+e,Zq=(e="",t)=>Xq(DT(a5(e)),DT(t)),DT=e=>{try{return decodeURI(e)}catch{return e}},s5={hook:Kq,searchHook:qq,parser:Aq,base:"",ssrPath:void 0,ssrSearch:void 0,hrefs:e=>e},i5=b.createContext(s5),ap=()=>b.useContext(i5),o5={},l5=b.createContext(o5),Qq=()=>b.useContext(l5),wy=e=>{const[t,r]=e.hook(e);return[Zq(e.base,t),rS((n,a)=>r(Yq(n,e.base),a))]},wa=()=>wy(ap()),c5=(e,t,r,n)=>{const{pattern:a,keys:i}=t instanceof RegExp?{keys:!1,pattern:t}:e(t||"*",n),o=a.exec(r)||[],[l,...c]=o;return l!==void 0?[!0,(()=>{const u=i!==!1?Object.fromEntries(i.map((f,m)=>[f,c[m]])):o.groups;let d={...c};return u&&Object.assign(d,u),d})(),...n?[l]:[]]:[!1,null]},Jq=({children:e,...t})=>{var d,f;const r=ap(),n=t.hook?s5:r;let a=n;const[i,o]=((d=t.ssrPath)==null?void 0:d.split("?"))??[];o&&(t.ssrSearch=o,t.ssrPath=i),t.hrefs=t.hrefs??((f=t.hook)==null?void 0:f.hrefs);let l=b.useRef({}),c=l.current,u=c;for(let m in n){const p=m==="base"?n[m]+(t[m]||""):t[m]||n[m];c===u&&p!==u[m]&&(l.current=u={...u}),u[m]=p,p!==n[m]&&(a=u)}return b.createElement(i5.Provider,{value:a,children:e})},RT=({children:e,component:t},r)=>t?b.createElement(t,{params:r}):typeof e=="function"?e(r):e,eH=e=>{let t=b.useRef(o5),r=t.current;for(const n in e)e[n]!==r[n]&&(r=e);return Object.keys(e).length===0&&(r=e),t.current=r},ao=({path:e,nest:t,match:r,...n})=>{const a=ap(),[i]=wy(a),[o,l,c]=r??c5(a.parser,e,i,t),u=eH({...Qq(),...l});if(!o)return null;const d=c?b.createElement(Jq,{base:c},RT(n,u)):RT(n,u);return b.createElement(l5.Provider,{value:u,children:d})},Ny=b.forwardRef((e,t)=>{const r=ap(),[n,a]=wy(r),{to:i="",href:o=i,onClick:l,asChild:c,children:u,className:d,replace:f,state:m,...p}=e,v=rS(x=>{x.ctrlKey||x.metaKey||x.altKey||x.shiftKey||x.button!==0||(l==null||l(x),x.defaultPrevented||(x.preventDefault(),a(o,e)))}),h=r.hrefs(o[0]==="~"?o.slice(1):r.base+o,r);return c&&b.isValidElement(u)?b.cloneElement(u,{onClick:v,href:h}):b.createElement("a",{...p,onClick:v,href:h,className:d!=null&&d.call?d(n===o):d,children:u,ref:t})}),u5=e=>Array.isArray(e)?e.flatMap(t=>u5(t&&t.type===b.Fragment?t.props.children:t)):[e],tH=({children:e,location:t})=>{const r=ap(),[n]=wy(r);for(const a of u5(e)){let i=0;if(b.isValidElement(a)&&(i=c5(r.parser,a.props.path,t||n,a.props.nest))[0])return b.cloneElement(a,{match:i})}return null},E1=e=>{const{to:t,href:r=t}=e,[,n]=wa(),a=rS(()=>n(t||r,e));return r5(()=>{a()},[]),null},rH=1,nH=1e6;let Ob=0;function aH(){return Ob=(Ob+1)%Number.MAX_SAFE_INTEGER,Ob.toString()}const _b=new Map,IT=e=>{if(_b.has(e))return;const t=setTimeout(()=>{_b.delete(e),em({type:"REMOVE_TOAST",toastId:e})},nH);_b.set(e,t)},sH=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,rH)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(r=>r.id===t.toast.id?{...r,...t.toast}:r)};case"DISMISS_TOAST":{const{toastId:r}=t;
vendor: 9,604 bytes, line 48
48return r?IT(r):e.toasts.forEach(n=>{IT(n.id)}),{...e,toasts:e.toasts.map(n=>n.id===r||r===void 0?{...n,open:!1}:n)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(r=>r.id!==t.toastId)}}},zg=[];let Bg={toasts:[]};function em(e){Bg=sH(Bg,e),zg.forEach(t=>{t(Bg)})}function iH({...e}){const t=aH(),r=a=>em({type:"UPDATE_TOAST",toast:{...a,id:t}}),n=()=>em({type:"DISMISS_TOAST",toastId:t});return em({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:a=>{a||n()}}}),{id:t,dismiss:n,update:r}}function wn(){const[e,t]=b.useState(Bg);return b.useEffect(()=>(zg.push(t),()=>{const r=zg.indexOf(t);r>-1&&zg.splice(r,1)}),[e]),{...e,toast:iH,dismiss:r=>em({type:"DISMISS_TOAST",toastId:r})}}function ue(e,t,{checkForDefaultPrevented:r=!0}={}){return function(a){if(e==null||e(a),r===!1||!a.defaultPrevented)return t==null?void 0:t(a)}}function $T(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Sy(...e){return t=>{let r=!1;const n=e.map(a=>{const i=$T(a,t);return!r&&typeof i=="function"&&(r=!0),i});if(r)return()=>{for(let a=0;a<n.length;a++){const i=n[a];typeof i=="function"?i():$T(e[a],null)}}}}function it(...e){return b.useCallback(Sy(...e),e)}function oH(e,t){const r=b.createContext(t),n=i=>{const{children:o,...l}=i,c=b.useMemo(()=>l,Object.values(l));return s.jsx(r.Provider,{value:c,children:o})};n.displayName=e+"Provider";function a(i){const o=b.useContext(r);if(o)return o;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return[n,a]}function kr(e,t=[]){let r=[];function n(i,o){const l=b.createContext(o),c=r.length;r=[...r,o];const u=f=>{var y;const{scope:m,children:p,...v}=f,h=((y=m==null?void 0:m[e])==null?void 0:y[c])||l,x=b.useMemo(()=>v,Object.values(v));return s.jsx(h.Provider,{value:x,children:p})};u.displayName=i+"Provider";function d(f,m){var h;const p=((h=m==null?void 0:m[e])==null?void 0:h[c])||l,v=b.useContext(p);if(v)return v;if(o!==void 0)return o;throw new Error(`\`${f}\` must be used within \`${i}\``)}return[u,d]}const a=()=>{const i=r.map(o=>b.createContext(o));return function(l){const c=(l==null?void 0:l[e])||i;return b.useMemo(()=>({[`__scope${e}`]:{...l,[e]:c}}),[l,c])}};return a.scopeName=e,[n,lH(a,...t)]}function lH(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(a=>({useScope:a(),scopeName:a.scopeName}));return function(i){const o=n.reduce((l,{useScope:c,scopeName:u})=>{const f=c(i)[`__scope${u}`];return{...l,...f}},{});return b.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return r.scopeName=t.scopeName,r}function Fl(e){const t=cH(e),r=b.forwardRef((n,a)=>{const{children:i,...o}=n,l=b.Children.toArray(i),c=l.find(uH);if(c){const u=c.props.children,d=l.map(f=>f===c?b.Children.count(u)>1?b.Children.only(null):b.isValidElement(u)?u.props.children:null:f);return s.jsx(t,{...o,ref:a,children:b.isValidElement(u)?b.cloneElement(u,void 0,d):null})}return s.jsx(t,{...o,ref:a,children:i})});return r.displayName=`${e}.Slot`,r}var d5=Fl("Slot");function cH(e){const t=b.forwardRef((r,n)=>{const{children:a,...i}=r;if(b.isValidElement(a)){const o=fH(a),l=dH(i,a.props);return a.type!==b.Fragment&&(l.ref=n?Sy(n,o):o),b.cloneElement(a,l)}return b.Children.count(a)>1?b.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var f5=Symbol("radix.slottable");function m5(e){const t=({children:r})=>s.jsx(s.Fragment,{children:r});return t.displayName=`${e}.Slottable`,t.__radixId=f5,t}function uH(e){return b.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===f5}function dH(e,t){const r={...t};for(const n in t){const a=e[n],i=t[n];/^on[A-Z]/.test(n)?a&&i?r[n]=(...l)=>{i(...l),a(...l)}:a&&(r[n]=a):n==="style"?r[n]={...a,...i}:n==="className"&&(r[n]=[a,i].filter(Boolean).join(" "))}return{...e,...r}}function fH(e){var n,a;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(a=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:a.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}function sp(e){const t=e+"CollectionProvider",[r,n]=kr(t),[a,i]=r(t,{collectionRef:{current:null},itemMap:new Map}),o=h=>{const{scope:x,children:y}=h,g=_.useRef(null),j=_.useRef(new Map).current;return s.jsx(a,{scope:x,itemMap:j,collectionRef:g,children:y})};o.displayName=t;const l=e+"CollectionSlot",c=Fl(l),u=_.forwardRef((h,x)=>{const{scope:y,children:g}=h,j=i(l,y),S=it(x,j.collectionRef);return s.jsx(c,{ref:S,children:g})});u.displayName=l;const d=e+"CollectionItemSlot",f="data-radix-collection-item",m=Fl(d),p=_.forwardRef((h,x)=>{const{scope:y,children:g,...j}=h,S=_.useRef(null),w=it(x,S),N=i(d,y);return _.useEffect(()=>(N.itemMap.set(S,{ref:S,...j}),()=>void N.itemMap.delete(S))),s.jsx(m,{[f]:"",ref:w,children:g})});p.displayName=d;function v(h){const x=i(e+"CollectionConsumer",h);return _.useCallback(()=>{const g=x.collectionRef.current;if(!g)return[];const j=Array.from(g.querySelectorAll(`[${f}]`));return Array.from(x.itemMap.values()).sort((N,P)=>j.indexOf(N.ref.current)-j.indexOf(P.ref.current))},[x.collectionRef,x.itemMap])}return[{Provider:o,Slot:u,ItemSlot:p},v,n]}var mH=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Oe=mH.reduce((e,t)=>{const r=Fl(`Primitive.${t}`),n=b.forwardRef((a,i)=>{const{asChild:o,...l}=a,c=o?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),s.jsx(c,{...l,ref:i})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function sS(e,t){e&&ic.flushSync(()=>e.dispatchEvent(t))}function Ur(e){const t=b.useRef(e);return b.useEffect(()=>{t.current=e}),b.useMemo(()=>(...r)=>{var n;return(n=t.current)==null?void 0:n.call(t,...r)},[])}function hH(e,t=globalThis==null?void 0:globalThis.document){const r=Ur(e);b.useEffect(()=>{const n=a=>{a.key==="Escape"&&r(a)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}var pH="DismissableLayer",O1="dismissableLayer.update",gH="dismissableLayer.pointerDownOutside",vH="dismissableLayer.focusOutside",LT,h5=b.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Od=b.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:a,onFocusOutside:i,onInteractOutside:o,onDismiss:l,...c}=e,u=b.useContext(h5),[d,f]=b.useState(null),m=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,p]=b.useState({}),v=it(t,P=>f(P)),h=Array.from(u.layers),[x]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),y=h.indexOf(x),g=d?h.indexOf(d):-1,j=u.layersWithOutsidePointerEventsDisabled.size>0,S=g>=y,w=yH(P=>{const C=P.target,A=[...u.branches].some(O=>O.contains(C));!S||A||(a==null||a(P),o==null||o(P),P.defaultPrevented||l==null||l())},m),N=bH(P=>{const C=P.target;[...u.branches].some(O=>O.contains(C))||(i==null||i(P),o==null||o(P),P.defaultPrevented||l==null||l())},m);return hH(P=>{g===u.layers.size-1&&(n==null||n(P),!P.defaultPrevented&&l&&(P.preventDefault(),l()))},m),b.useEffect(()=>{if(d)return r&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(LT=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),FT(),()=>{r&&u.layersWithOutsidePointerEventsDisabled.size===1&&(m.body.style.pointerEvents=LT)}},[d,m,r,u]),b.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),FT())},[d,u]),b.useEffect(()=>{const P=()=>p({});return document.addEventListener(O1,P),()=>document.removeEventListener(O1,P)},[]),s.jsx(Oe.div,{...c,ref:v,style:{pointerEvents:j?S?"auto":"none":void 0,...e.style},onFocusCapture:ue(e.onFocusCapture,N.onFocusCapture),onBlurCapture:ue(e.onBlurCapture,N.onBlurCapture),onPointerDownCapture:ue(e.onPointerDownCapture,w.onPointerDownCapture)})});Od.displayName=pH;var xH="DismissableLayerBranch",p5=b.forwardRef((e,t)=>{const r=b.useContext(h5),n=b.useRef(null),a=it(t,n);return b.useEffect(()=>{const i=n.current;if(i)return r.branches.add(i),()=>{r.branches.delete(i)}},[r.branches]),s.jsx(Oe.div,{...e,ref:a})});p5.displayName=xH;function yH(e,t=globalThis==null?void 0:globalThis.document){const r=Ur(e),n=b.useRef(!1),a=b.useRef(()=>{});return b.useEffect(()=>{const i=l=>{if(l.target&&!n.current){let c=function(){g5(gH,r,u,{discrete:!0})};const u={originalEvent:l};l.pointerType==="touch"?(t.removeEventListener("click",a.current),a.current=c,t.addEventListener("click",a.current,{once:!0})):c()}else t.removeEventListener("click",a.current);n.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",i),t.removeEventListener("click",a.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function bH(e,t=globalThis==null?void 0:globalThis.document){const r=Ur(e),n=b.useRef(!1);return b.useEffect(()=>{const a=i=>{i.target&&!n.current&&g5(vH,r,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",a),()=>t.removeEventListener("focusin",a)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function FT(){const e=new CustomEvent(O1);document.dispatchEvent(e)}function g5(e,t,r,{discrete:n}){const a=r.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&a.addEventListener(e,t,{once:!0}),n?sS(a,i):a.dispatchEvent(i)}var jH=Od,wH=p5,gr=globalThis!=null&&globalThis.document?b.useLayoutEffect:()=>{},NH="Portal",ip=b.forwardRef((e,t)=>
48{var l;const{container:r,...n}=e,[a,i]=b.useState(!1);gr(()=>i(!0),[]);const o=r||a&&((l=globalThis==null?void 0:globalThis.document)==null?void 0:l.body);return o?Cq.createPortal(s.jsx(Oe.div,{...n,ref:t}),o):null});ip.displayName=NH;function SH(e,t){return b.useReducer((r,n)=>t[r][n]??r,e)}var Qn=e=>{const{present:t,children:r}=e,n=PH(t),a=typeof r=="function"?r({present:n.isPresent}):b.Children.only(r),i=it(n.ref,CH(a));return typeof r=="function"||n.isPresent?b.cloneElement(a,{ref:i}):null};Qn.displayName="Presence";function PH(e){const[t,r]=b.useState(),n=b.useRef({}),a=b.useRef(e),i=b.useRef("none"),o=e?"mounted":"unmounted",[l,c]=SH(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return b.useEffect(()=>{const u=Qp(n.current);i.current=l==="mounted"?u:"none"},[l]),gr(()=>{const u=n.current,d=a.current;if(d!==e){const m=i.current,p=Qp(u);e?c("MOUNT"):p==="none"||(u==null?void 0:u.display)==="none"?c("UNMOUNT"):c(d&&m!==p?"ANIMATION_OUT":"UNMOUNT"),a.current=e}},[e,c]),gr(()=>{if(t){let u;const d=t.ownerDocument.defaultView??window,f=p=>{const h=Qp(n.current).includes(p.animationName);if(p.target===t&&h&&(c("ANIMATION_END"),!a.current)){const x=t.style.animationFillMode;t.style.animationFillMode="forwards",u=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=x)})}},m=p=>{p.target===t&&(i.current=Qp(n.current))};return t.addEventListener("animationstart",m),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{d.clearTimeout(u),t.removeEventListener("animationstart",m),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:b.useCallback(u=>{u&&(n.current=getComputedStyle(u)),r(u)},[])}}function Qp(e){return(e==null?void 0:e.animationName)||"none"}function CH(e){var n,a;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(a=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:a.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}function ya({prop:e,defaultProp:t,onChange:r=()=>{}}){const[n,a]=AH({defaultProp:t,onChange:r}),i=e!==void 0,o=i?e:n,l=Ur(r),c=b.useCallback(u=>{if(i){const f=typeof u=="function"?u(e):u;f!==e&&l(f)}else a(u)},[i,e,a,l]);return[o,c]}function AH({defaultProp:e,onChange:t}){const r=b.useState(e),[n]=r,a=b.useRef(n),i=Ur(t);return b.useEffect(()=>{a.current!==n&&(i(n),a.current=n)},[n,a,i]),r}var TH="VisuallyHidden",op=b.forwardRef((e,t)=>s.jsx(Oe.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));op.displayName=TH;var EH=op,iS="ToastProvider",[oS,OH,_H]=sp("Toast"),[v5,uRe]=kr("Toast",[_H]),[kH,Py]=v5(iS),x5=e=>{const{__scopeToast:t,label:r="Notification",duration:n=5e3,swipeDirection:a="right",swipeThreshold:i=50,children:o}=e,[l,c]=b.useState(null),[u,d]=b.useState(0),f=b.useRef(!1),m=b.useRef(!1);return r.trim()||console.error(`Invalid prop \`label\` supplied to \`${iS}\`. Expected non-empty \`string\`.`),s.jsx(oS.Provider,{scope:t,children:s.jsx(kH,{scope:t,label:r,duration:n,swipeDirection:a,swipeThreshold:i,toastCount:u,viewport:l,onViewportChange:c,onToastAdd:b.useCallback(()=>d(p=>p+1),[]),onToastRemove:b.useCallback(()=>d(p=>p-1),[]),isFocusedToastEscapeKeyDownRef:f,isClosePausedRef:m,children:o})})};x5.displayName=iS;var y5="ToastViewport",MH=["F8"],_1="toast.viewportPause",k1="toast.viewportResume",b5=b.forwardRef((e,t)=>{const{__scopeToast:r,hotkey:n=MH,label:a="Notifications ({hotkey})",...i}=e,o=Py(y5,r),l=OH(r),c=b.useRef(null),u=b.useRef(null),d=b.useRef(null),f=b.useRef(null),m=it(t,f,o.onViewportChange),p=n.join("+").replace(/Key/g,"").replace(/Digit/g,""),v=o.toastCount>0;b.useEffect(()=>{const x=y=>{var j;n.length!==0&&n.every(S=>y[S]||y.code===S)&&((j=f.current)==null||j.focus())};return document.addEventListener("keydown",x),()=>document.removeEventListener("keydown",x)},[n]),b.useEffect(()=>{const x=c.current,y=f.current;if(v&&x&&y){const g=()=>{if(!o.isClosePausedRef.current){const N=new CustomEvent(_1);y.dispatchEvent(N),o.isClosePausedRef.current=!0}},j=()=>
48{if(o.isClosePausedRef.current){const N=new CustomEvent(k1);y.dispatchEvent(N),o.isClosePausedRef.current=!1}},S=N=>{!x.contains(N.relatedTarget)&&j()},w=()=>{x.contains(document.activeElement)||j()};return x.addEventListener("focusin",g),x.addEventListener("focusout",S),x.addEventListener("pointermove",g),x.addEventListener("pointerleave",w),window.addEventListener("blur",g),window.addEventListener("focus",j),()=>{x.removeEventListener("focusin",g),x.removeEventListener("focusout",S),x.removeEventListener("pointermove",g),x.removeEventListener("pointerleave",w),window.removeEventListener("blur",g),window.removeEventListener("focus",j)}}},[v,o.isClosePausedRef]);const h=b.useCallback(({tabbingDirection:x})=>{const g=l().map(j=>{const S=j.ref.current,w=[S,...HH(S)];return x==="forwards"?w:w.reverse()});return(x==="forwards"?g.reverse():g).flat()},[l]);return b.useEffect(()=>{const x=f.current;if(x){const y=g=>{var w,N,P;const j=g.altKey||g.ctrlKey||g.metaKey;if(g.key==="Tab"&&!j){const C=document.activeElement,A=g.shiftKey;if(g.target===x&&A){(w=u.current)==null||w.focus();return}const k=h({tabbingDirection:A?"backwards":"forwards"}),M=k.findIndex(D=>D===C);kb(k.slice(M+1))?g.preventDefault():A?(N=u.current)==null||N.focus():(P=d.current)==null||P.focus()}};return x.addEventListener("keydown",y),()=>x.removeEventListener("keydown",y)}},[l,h]),s.jsxs(wH,{ref:c,role:"region","aria-label":a.replace("{hotkey}",p),tabIndex:-1,style:{pointerEvents:v?void 0:"none"},children:[v&&s.jsx(M1,{ref:u,onFocusFromOutsideViewport:()=>{const x=h({tabbingDirection:"forwards"});kb(x)}}),s.jsx(oS.Slot,{scope:r,children:s.jsx(Oe.ol,{tabIndex:-1,...i,ref:m})}),v&&s.jsx(M1,{ref:d,onFocusFromOutsideViewport:()=>{const x=h({tabbingDirection:"backwards"});kb(x)}})]})});b5.displayName=y5;var j5="ToastFocusProxy",M1=b.forwardRef((e,t)=>{const{__scopeToast:r,onFocusFromOutsideViewport:n,...a}=e,i=Py(j5,r);return s.jsx(op,{"aria-hidden":!0,tabIndex:0,...a,ref:t,style:{position:"fixed"},onFocus:o=>{var u;const l=o.relatedTarget;!((u=i.viewport)!=null&&u.contains(l))&&n()}})});M1.displayName=j5;var Cy="Toast",DH="toast.swipeStart",RH="toast.swipeMove",IH="toast.swipeCancel",$H="toast.swipeEnd",w5=b.forwardRef((e,t)=>{const{forceMount:r,open:n,defaultOpen:a,onOpenChange:i,...o}=e,[l=!0,c]=ya({prop:n,defaultProp:a,onChange:i});return s.jsx(Qn,{present:r||l,children:s.jsx(VH,{open:l,...o,ref:t,onClose:()=>c(!1),onPause:Ur(e.onPause),onResume:Ur(e.onResume),onSwipeStart:ue(e.onSwipeStart,u=>{u.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:ue(e.onSwipeMove,u=>{const{x:d,y:f}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","move"),u.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${d}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${f}px`)}),onSwipeCancel:ue(e.onSwipeCancel,u=>{u.currentTarget.setAttribute("data-swipe","cancel"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:ue(e.onSwipeEnd,u=>{const{x:d,y:f}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","end"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${d}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${f}px`),c(!1)})})})});w5.displayName=Cy;var[LH,FH]=v5(Cy,{onClose(){}}),VH=b.forwardRef((e,t)=>{const{__scopeToast:r,type:n="foreground",duration:a,open:i,onClose:o,onEscapeKeyDown:l,onPause:c,onResume:u,onSwipeStart:d,onSwipeMove:f,onSwipeCancel:m,onSwipeEnd:p,...v}=e,h=Py(Cy,r),[x,y]=b.useState(null),g=it(t,D=>y(D)),j=b.useRef(null),S=b.useRef(null),w=a||h.duration,N=b.useRef(0),P=b.useRef(w),C=b.useRef(0),{onToastAdd:A,onToastRemove:O}=h,E=Ur(()=>{var F;(x==null?void 0:x.contains(document.activeElement))&&((F=h.viewport)==null||F.focus()),o()}),k=b.useCallback(D=>
vendor: 4,529 bytes, line 48
48{!D||D===1/0||(window.clearTimeout(C.current),N.current=new Date().getTime(),C.current=window.setTimeout(E,D))},[E]);b.useEffect(()=>{const D=h.viewport;if(D){const F=()=>{k(P.current),u==null||u()},L=()=>{const B=new Date().getTime()-N.current;P.current=P.current-B,window.clearTimeout(C.current),c==null||c()};return D.addEventListener(_1,L),D.addEventListener(k1,F),()=>{D.removeEventListener(_1,L),D.removeEventListener(k1,F)}}},[h.viewport,w,c,u,k]),b.useEffect(()=>{i&&!h.isClosePausedRef.current&&k(w)},[i,w,h.isClosePausedRef,k]),b.useEffect(()=>(A(),()=>O()),[A,O]);const M=b.useMemo(()=>x?E5(x):null,[x]);return h.viewport?s.jsxs(s.Fragment,{children:[M&&s.jsx(zH,{__scopeToast:r,role:"status","aria-live":n==="foreground"?"assertive":"polite","aria-atomic":!0,children:M}),s.jsx(LH,{scope:r,onClose:E,children:ic.createPortal(s.jsx(oS.ItemSlot,{scope:r,children:s.jsx(jH,{asChild:!0,onEscapeKeyDown:ue(l,()=>{h.isFocusedToastEscapeKeyDownRef.current||E(),h.isFocusedToastEscapeKeyDownRef.current=!1}),children:s.jsx(Oe.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":i?"open":"closed","data-swipe-direction":h.swipeDirection,...v,ref:g,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:ue(e.onKeyDown,D=>{D.key==="Escape"&&(l==null||l(D.nativeEvent),D.nativeEvent.defaultPrevented||(h.isFocusedToastEscapeKeyDownRef.current=!0,E()))}),onPointerDown:ue(e.onPointerDown,D=>{D.button===0&&(j.current={x:D.clientX,y:D.clientY})}),onPointerMove:ue(e.onPointerMove,D=>{if(!j.current)return;const F=D.clientX-j.current.x,L=D.clientY-j.current.y,B=!!S.current,R=["left","right"].includes(h.swipeDirection),I=["left","up"].includes(h.swipeDirection)?Math.min:Math.max,G=R?I(0,F):0,U=R?0:I(0,L),K=D.pointerType==="touch"?10:2,ce={x:G,y:U},pe={originalEvent:D,delta:ce};B?(S.current=ce,Jp(RH,f,pe,{discrete:!1})):VT(ce,h.swipeDirection,K)?(S.current=ce,Jp(DH,d,pe,{discrete:!1}),D.target.setPointerCapture(D.pointerId)):(Math.abs(F)>K||Math.abs(L)>K)&&(j.current=null)}),onPointerUp:ue(e.onPointerUp,D=>{const F=S.current,L=D.target;if(L.hasPointerCapture(D.pointerId)&&L.releasePointerCapture(D.pointerId),S.current=null,j.current=null,F){const B=D.currentTarget,R={originalEvent:D,delta:F};VT(F,h.swipeDirection,h.swipeThreshold)?Jp($H,p,R,{discrete:!0}):Jp(IH,m,R,{discrete:!0}),B.addEventListener("click",I=>I.preventDefault(),{once:!0})}})})})}),h.viewport)})]}):null}),zH=e=>{const{__scopeToast:t,children:r,...n}=e,a=Py(Cy,t),[i,o]=b.useState(!1),[l,c]=b.useState(!1);return WH(()=>o(!0)),b.useEffect(()=>{const u=window.setTimeout(()=>c(!0),1e3);return()=>window.clearTimeout(u)},[]),l?null:s.jsx(ip,{asChild:!0,children:s.jsx(op,{...n,children:i&&s.jsxs(s.Fragment,{children:[a.label," ",r]})})})},BH="ToastTitle",N5=b.forwardRef((e,t)=>{const{__scopeToast:r,...n}=e;return s.jsx(Oe.div,{...n,ref:t})});N5.displayName=BH;var UH="ToastDescription",S5=b.forwardRef((e,t)=>{const{__scopeToast:r,...n}=e;return s.jsx(Oe.div,{...n,ref:t})});S5.displayName=UH;var P5="ToastAction",C5=b.forwardRef((e,t)=>{const{altText:r,...n}=e;return r.trim()?s.jsx(T5,{altText:r,asChild:!0,children:s.jsx(lS,{...n,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${P5}\`. Expected non-empty \`string\`.`),null)});C5.displayName=P5;var A5="ToastClose",lS=b.forwardRef((e,t)=>{const{__scopeToast:r,...n}=e,a=FH(A5,r);return s.jsx(T5,{asChild:!0,children:s.jsx(Oe.button,{type:"button",...n,ref:t,onClick:ue(e.onClick,a.onClose)})})});lS.displayName=A5;var T5=b.forwardRef((e,t)=>{const{__scopeToast:r,altText:n,...a}=e;return s.jsx(Oe.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":n||void 0,...a,ref:t})});function E5(e){const t=[];return Array.from(e.childNodes).forEach(n=>{if(n.nodeType===n.TEXT_NODE&&n.textContent&&t.push(n.textContent),qH(n)){const a=n.ariaHidden||n.hidden||n.style.display==="none",i=n.dataset.radixToastAnnounceExclude==="";if(!a)if(i){const o=n.dataset.radixToastAnnounceAlt;o&&t.push(o)}else t.push(...E5(n))}}),t}function Jp(e,t,r,{discrete:n}){const a=r.originalEvent.currentTarget,i=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:r});t&&a.addEventListener(e,t,{once:!0}),n?sS(a,i):a.dispatchEvent(i)}var VT=(e,t,r=0)=>{const n=Math.abs(e.x),a=Math.abs(e.y),i=n>a;return t==="left"||t==="right"?i&&n>r:!i&&a>r};function WH(e=()=>{}){const t=Ur(e);gr(()=>{let r=0,n=0;return r=window.requestAnimationFrame(()=>n=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(r),window.cancelAnimationFrame(n)}},[t])}
vendor: 7,220 bytes, lines 48-128
48function qH(e){return e.nodeType===e.ELEMENT_NODE}function HH(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const a=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||a?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function kb(e){const t=document.activeElement;return e.some(r=>r===t?!0:(r.focus(),document.activeElement!==t))}var GH=x5,O5=b5,_5=w5,k5=N5,M5=S5,D5=C5,R5=lS;function I5(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(r=I5(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function rt(){for(var e,t,r=0,n="",a=arguments.length;r<a;r++)(e=arguments[r])&&(t=I5(e))&&(n&&(n+=" "),n+=t);return n}const zT=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,BT=rt,Ay=(e,t)=>r=>{var n;if((t==null?void 0:t.variants)==null)return BT(e,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:a,defaultVariants:i}=t,o=Object.keys(a).map(u=>{const d=r==null?void 0:r[u],f=i==null?void 0:i[u];if(d===null)return null;const m=zT(d)||zT(f);return a[u][m]}),l=r&&Object.entries(r).reduce((u,d)=>{let[f,m]=d;return m===void 0||(u[f]=m),u},{}),c=t==null||(n=t.compoundVariants)===null||n===void 0?void 0:n.reduce((u,d)=>{let{class:f,className:m,...p}=d;return Object.entries(p).every(v=>{let[h,x]=v;return Array.isArray(x)?x.includes({...i,...l}[h]):{...i,...l}[h]===x})?[...u,f,m]:u},[]);return BT(e,o,c,r==null?void 0:r.class,r==null?void 0:r.className)};/** 49 * @license lucide-react v0.453.0 - ISC 50 * 51 * This source code is licensed under the ISC license. 52 * See the LICENSE file in the root directory of this source tree. 53 */const KH=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),$5=(...e)=>e.filter((t,r,n)=>!!t&&n.indexOf(t)===r).join(" ");/** 54 * @license lucide-react v0.453.0 - ISC 55 * 56 * This source code is licensed under the ISC license. 57 * See the LICENSE file in the root directory of this source tree. 58 */var XH={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"};/** 59 * @license lucide-react v0.453.0 - ISC 60 * 61 * This source code is licensed under the ISC license. 62 * See the LICENSE file in the root directory of this source tree. 63 */const YH=b.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:a="",children:i,iconNode:o,...l},c)=>b.createElement("svg",{ref:c,...XH,width:t,height:t,stroke:e,strokeWidth:n?Number(r)*24/Number(t):r,className:$5("lucide",a),...l},[...o.map(([u,d])=>b.createElement(u,d)),...Array.isArray(i)?i:[i]]));/** 64 * @license lucide-react v0.453.0 - ISC 65 * 66 * This source code is licensed under the ISC license. 67 * See the LICENSE file in the root directory of this source tree. 68 */const J=(e,t)=>{const r=b.forwardRef(({className:n,...a},i)=>b.createElement(YH,{ref:i,iconNode:t,className:$5(`lucide-${KH(e)}`,n),...a}));return r.displayName=`${e}`,r};/** 69 * @license lucide-react v0.453.0 - ISC 70 * 71 * This source code is licensed under the ISC license. 72 * See the LICENSE file in the root directory of this source tree. 73 */const xc=J("ArrowDownRight",[["path",{d:"m7 7 10 10",key:"1fmybs"}],["path",{d:"M17 7v10H7",key:"6fjiku"}]]);/** 74 * @license lucide-react v0.453.0 - ISC 75 * 76 * This source code is licensed under the ISC license. 77 * See the LICENSE file in the root directory of this source tree. 78 */const ZH=J("ArrowDownToLine",[["path",{d:"M12 17V3",key:"1cwfxf"}],["path",{d:"m6 11 6 6 6-6",key:"12ii2o"}],["path",{d:"M19 21H5",key:"150jfl"}]]);/** 79 * @license lucide-react v0.453.0 - ISC 80 * 81 * This source code is licensed under the ISC license. 82 * See the LICENSE file in the root directory of this source tree. 83 */const QH=J("ArrowDown",[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]]);/** 84 * @license lucide-react v0.453.0 - ISC 85 * 86 * This source code is licensed under the ISC license. 87 * See the LICENSE file in the root directory of this source tree. 88 */const L5=J("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/** 89 * @license lucide-react v0.453.0 - ISC 90 * 91 * This source code is licensed under the ISC license. 92 * See the LICENSE file in the root directory of this source tree. 93 */const cS=J("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/** 94 * @license lucide-react v0.453.0 - ISC 95 * 96 * This source code is licensed under the ISC license. 97 * See the LICENSE file in the root directory of this source tree. 98 */const un=J("ArrowUpRight",[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]]);/** 99 * @license lucide-react v0.453.0 - ISC 100 * 101 * This source code is licensed under the ISC license. 102 * See the LICENSE file in the root directory of this source tree. 103 */const JH=J("ArrowUp",[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]]);/** 104 * @license lucide-react v0.453.0 - ISC 105 * 106 * This source code is licensed under the ISC license. 107 * See the LICENSE file in the root directory of this source tree. 108 */const _d=J("Award",[["path",{d:"m15.477 12.89 1.515 8.526a.5.5 0 0 1-.81.47l-3.58-2.687a1 1 0 0 0-1.197 0l-3.586 2.686a.5.5 0 0 1-.81-.469l1.514-8.526",key:"1yiouv"}],["circle",{cx:"12",cy:"8",r:"6",key:"1vp47v"}]]);/** 109 * @license lucide-react v0.453.0 - ISC 110 * 111 * This source code is licensed under the ISC license. 112 * See the LICENSE file in the root directory of this source tree. 113 */const Ty=J("Bell",[["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"}]]);/** 114 * @license lucide-react v0.453.0 - ISC 115 * 116 * This source code is licensed under the ISC license. 117 * See the LICENSE file in the root directory of this source tree. 118 */const eG=J("Bookmark",[["path",{d:"m19 21-7-4-7 4V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v16z",key:"1fy3hk"}]]);/** 119 * @license lucide-react v0.453.0 - ISC 120 * 121 * This source code is licensed under the ISC license. 122 * See the LICENSE file in the root directory of this source tree. 123 */const tG=J("Bot",[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]]);/** 124 * @license lucide-react v0.453.0 - ISC 125 * 126 * This source code is licensed under the ISC license. 127 * See the LICENSE file in the root directory of this source tree. 128 */const rG=J("BrainCircuit",[["path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z",key:"l5xja"}],["path",{d:"M9 13a4.5 4.5 0 0 0 3-4",key:"10igwf"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5",key:"105sqy"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396",key:"ql3yin"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M12 13h4",key:"1ku699"}],["path",{d:"M12 18h6a2 2 0 0 1 2 2v1",key:"105ag5"}],["path",{d:"M12 8h8",key:"1lhi5i"}
128],["path",{d:"M16 8V5a2 2 0 0 1 2-2",key:"u6izg6"}],["circle",{cx:"16",cy:"13",r:".5",key:"ry7gng"}],["circle",{cx:"18",cy:"3",r:".5",key:"1aiba7"}],["circle",{cx:"20",cy:"21",r:".5",key:"yhc1fs"}],["circle",{cx:"20",cy:"8",r:".5",key:"1e43v0"}]]);/** 129 * @license lucide-react v0.453.0 - ISC 130 * 131 * This source code is licensed under the ISC license. 132 * See the LICENSE file in the root directory of this source tree. 133 */const nG=J("Brush",[["path",{d:"m9.06 11.9 8.07-8.06a2.85 2.85 0 1 1 4.03 4.03l-8.06 8.08",key:"1styjt"}],["path",{d:"M7.07 14.94c-1.66 0-3 1.35-3 3.02 0 1.33-2.5 1.52-2 2.02 1.08 1.1 2.49 2.02 4 2.02 2.2 0 4-1.8 4-4.04a3.01 3.01 0 0 0-3-3.02z",key:"z0l1mu"}]]);/** 134 * @license lucide-react v0.453.0 - ISC 135 * 136 * This source code is licensed under the ISC license. 137 * See the LICENSE file in the root directory of this source tree. 138 */const F5=J("Building2",[["path",{d:"M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z",key:"1b4qmf"}],["path",{d:"M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2",key:"i71pzd"}],["path",{d:"M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2",key:"10jefs"}],["path",{d:"M10 6h4",key:"1itunk"}],["path",{d:"M10 10h4",key:"tcdvrf"}],["path",{d:"M10 14h4",key:"kelpxr"}],["path",{d:"M10 18h4",key:"1ulq68"}]]);/** 139 * @license lucide-react v0.453.0 - ISC 140 * 141 * This source code is licensed under the ISC license. 142 * See the LICENSE file in the root directory of this source tree. 143 */const V5=J("CalendarClock",[["path",{d:"M21 7.5V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h3.5",key:"1osxxc"}],["path",{d:"M16 2v4",key:"4m81vk"}],["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M3 10h5",key:"r794hk"}],["path",{d:"M17.5 17.5 16 16.3V14",key:"akvzfd"}],["circle",{cx:"16",cy:"16",r:"6",key:"qoo3c4"}]]);/** 144 * @license lucide-react v0.453.0 - ISC 145 * 146 * This source code is licensed under the ISC license. 147 * See the LICENSE file in the root directory of this source tree. 148 */const Ey=J("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"}]]);/** 149 * @license lucide-react v0.453.0 - ISC 150 * 151 * This source code is licensed under the ISC license. 152 * See the LICENSE file in the root directory of this source tree. 153 */const oc=J("ChartColumn",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]]);/** 154 * @license lucide-react v0.453.0 - ISC 155 * 156 * This source code is licensed under the ISC license. 157 * See the LICENSE file in the root directory of this source tree. 158 */const aG=J("ChartLine",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"m19 9-5 5-4-4-3 3",key:"2osh9i"}]]);/** 159 * @license lucide-react v0.453.0 - ISC 160 * 161 * This source code is licensed under the ISC license. 162 * See the LICENSE file in the root directory of this source tree. 163 */const sG=J("ChartPie",[["path",{d:"M21 12c.552 0 1.005-.449.95-.998a10 10 0 0 0-8.953-8.951c-.55-.055-.998.398-.998.95v8a1 1 0 0 0 1 1z",key:"pzmjnu"}],["path",{d:"M21.21 15.89A10 10 0 1 1 8 2.83",key:"k2fpak"}]]);/** 164 * @license lucide-react v0.453.0 - ISC 165 * 166 * This source code is licensed under the ISC license. 167 * See the LICENSE file in the root directory of this source tree. 168 */const uS=J("CheckCheck",[["path",{d:"M18 6 7 17l-5-5",key:"116fxf"}],["path",{d:"m22 10-7.5 7.5L13 16",key:"ke71qq"}]]);/** 169 * @license lucide-react v0.453.0 - ISC 170 * 171 * This source code is licensed under the ISC license. 172 * See the LICENSE file in the root directory of this source tree. 173 */const mn=J("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/** 174 * @license lucide-react v0.453.0 - ISC 175 * 176 * This source code is licensed under the ISC license. 177 * See the LICENSE file in the root directory of this source tree. 178 */const os=J("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/** 179 * @license lucide-react v0.453.0 - ISC 180 * 181 * This source code is licensed under the ISC license. 182 * See the LICENSE file in the root directory of this source tree. 183 */const iG=J("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/** 184 * @license lucide-react v0.453.0 - ISC 185 * 186 * This source code is licensed under the ISC license. 187 * See the LICENSE file in the root directory of this source tree. 188 */const km=J("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/** 189 * @license lucide-react v0.453.0 - ISC 190 * 191 * This source code is licensed under the ISC license. 192 * See the LICENSE file in the root directory of this source tree. 193 */const Oc=J("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/** 194 * @license lucide-react v0.453.0 - ISC 195 * 196 * This source code is licensed under the ISC license. 197 * See the LICENSE file in the root directory of this source tree. 198 */const dS=J("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"}]]);/** 199 * @license lucide-react v0.453.0 - ISC 200 * 201 * This source code is licensed under the ISC license. 202 * See the LICENSE file in the root directory of this source tree. 203 */const Sv=J("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/** 204 * @license lucide-react v0.453.0 - ISC 205 * 206 * This source code is licensed under the ISC license. 207 * See the LICENSE file in the root directory of this source tree. 208 */const Vl=J("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/** 209 * @license lucide-react v0.453.0 - ISC 210 * 211 * This source code is licensed under the ISC license. 212 * See the LICENSE file in the root directory of this source tree. 213 */const Pv=J("CircleDashed",[["path",{d:"M10.1 2.182a10 10 0 0 1 3.8 0",key:"5ilxe3"}],["path",{d:"M13.9 21.818a10 10 0 0 1-3.8 0",key:"11zvb9"}],["path",{d:"M17.609 3.721a10 10 0 0 1 2.69 2.7",key:"1iw5b2"}],["path",{d:"M2.182 13.9a10 10 0 0 1 0-3.8",key:"c0bmvh"}],["path",{d:"M20.279 17.609a10 10 0 0 1-2.7 2.69",key:"1ruxm7"}],["path",{d:"M21.818 10.1a10 10 0 0 1 0 3.8",key:"qkgqxc"}],["path",{d:"M3.721 6.391a10 10 0 0 1 2.7-2.69",key:"1mcia2"}],["path",{d:"M6.391 20.279a10 10 0 0 1-2.69-2.7",key:"1fvljs"}]]);/** 214 * @license lucide-react v0.453.0 - ISC 215 * 216 * This source code is licensed under the ISC license. 217 * See the LICENSE file in the root directory of this source tree. 218 */const UT=J("CircleX",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);/** 219 * @license lucide-react v0.453.0 - ISC 220 * 221 * This source code is licensed under the ISC license. 222 * See the LICENSE file in the root directory of this source tree. 223 */const z5=J("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/** 224 * @license lucide-react v0.453.0 - ISC 225 * 226 * This source code is licensed under the ISC license. 227 * See the LICENSE file in the root directory of this source tree.
228 */const B5=J("ClipboardList",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"M12 11h4",key:"1jrz19"}],["path",{d:"M12 16h4",key:"n85exb"}],["path",{d:"M8 11h.01",key:"1dfujw"}],["path",{d:"M8 16h.01",key:"18s6g9"}]]);/** 229 * @license lucide-react v0.453.0 - ISC 230 * 231 * This source code is licensed under the ISC license. 232 * See the LICENSE file in the root directory of this source tree. 233 */const Ps=J("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/** 234 * @license lucide-react v0.453.0 - ISC 235 * 236 * This source code is licensed under the ISC license. 237 * See the LICENSE file in the root directory of this source tree. 238 */const Mm=J("Code",[["polyline",{points:"16 18 22 12 16 6",key:"z7tu5w"}],["polyline",{points:"8 6 2 12 8 18",key:"1eg1df"}]]);/** 239 * @license lucide-react v0.453.0 - ISC 240 * 241 * This source code is licensed under the ISC license. 242 * See the LICENSE file in the root directory of this source tree. 243 */const oG=J("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"}]]);/** 244 * @license lucide-react v0.453.0 - ISC 245 * 246 * This source code is licensed under the ISC license. 247 * See the LICENSE file in the root directory of this source tree. 248 */const lG=J("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"}]]);/** 249 * @license lucide-react v0.453.0 - ISC 250 * 251 * This source code is licensed under the ISC license. 252 * See the LICENSE file in the root directory of this source tree. 253 */const ca=J("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]);/** 254 * @license lucide-react v0.453.0 - ISC 255 * 256 * This source code is licensed under the ISC license. 257 * See the LICENSE file in the root directory of this source tree. 258 */const Oy=J("EllipsisVertical",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["circle",{cx:"12",cy:"19",r:"1",key:"lyex9k"}]]);/** 259 * @license lucide-react v0.453.0 - ISC 260 * 261 * This source code is licensed under the ISC license. 262 * See the LICENSE file in the root directory of this source tree. 263 */const U5=J("Ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]]);/** 264 * @license lucide-react v0.453.0 - ISC 265 * 266 * This source code is licensed under the ISC license. 267 * See the LICENSE file in the root directory of this source tree. 268 */const gs=J("Eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/** 269 * @license lucide-react v0.453.0 - ISC 270 * 271 * This source code is licensed under the ISC license. 272 * See the LICENSE file in the root directory of this source tree. 273 */const Dm=J("Facebook",[["path",{d:"M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z",key:"1jg4f8"}]]);/** 274 * @license lucide-react v0.453.0 - ISC 275 * 276 * This source code is licensed under the ISC license. 277 * See the LICENSE file in the root directory of this source tree. 278 */const W5=J("Factory",[["path",{d:"M2 20a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8l-7 5V8l-7 5V4a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2Z",key:"159hny"}],["path",{d:"M17 18h1",key:"uldtlt"}],["path",{d:"M12 18h1",key:"s9uhes"}],["path",{d:"M7 18h1",key:"1neino"}]]);/** 279 * @license lucide-react v0.453.0 - ISC 280 * 281 * This source code is licensed under the ISC license. 282 * See the LICENSE file in the root directory of this source tree. 283 */const WT=J("FileCheck",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"m9 15 2 2 4-4",key:"1grp1n"}]]);/** 284 * @license lucide-react v0.453.0 - ISC 285 * 286 * This source code is licensed under the ISC license. 287 * See the LICENSE file in the root directory of this source tree. 288 */const cG=J("FilePenLine",[["path",{d:"m18 5-2.414-2.414A2 2 0 0 0 14.172 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2",ke
288y:"142zxg"}],["path",{d:"M21.378 12.626a1 1 0 0 0-3.004-3.004l-4.01 4.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z",key:"2t3380"}],["path",{d:"M8 18h1",key:"13wk12"}]]);/** 289 * @license lucide-react v0.453.0 - ISC 290 * 291 * This source code is licensed under the ISC license. 292 * See the LICENSE file in the root directory of this source tree. 293 */const Rm=J("FileSpreadsheet",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M8 13h2",key:"yr2amv"}],["path",{d:"M14 13h2",key:"un5t4a"}],["path",{d:"M8 17h2",key:"2yhykz"}],["path",{d:"M14 17h2",key:"10kma7"}]]);/** 294 * @license lucide-react v0.453.0 - ISC 295 * 296 * This source code is licensed under the ISC license. 297 * See the LICENSE file in the root directory of this source tree. 298 */const Lt=J("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/** 299 * @license lucide-react v0.453.0 - ISC 300 * 301 * This source code is licensed under the ISC license. 302 * See the LICENSE file in the root directory of this source tree. 303 */const uG=J("FileUp",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M12 12v6",key:"3ahymv"}],["path",{d:"m15 15-3-3-3 3",key:"15xj92"}]]);/** 304 * @license lucide-react v0.453.0 - ISC 305 * 306 * This source code is licensed under the ISC license. 307 * See the LICENSE file in the root directory of this source tree. 308 */const dG=J("File",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}]]);/** 309 * @license lucide-react v0.453.0 - ISC 310 * 311 * This source code is licensed under the ISC license. 312 * See the LICENSE file in the root directory of this source tree. 313 */const q5=J("Filter",[["polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3",key:"1yg77f"}]]);/** 314 * @license lucide-react v0.453.0 - ISC 315 * 316 * This source code is licensed under the ISC license. 317 * See the LICENSE file in the root directory of this source tree. 318 */const fG=J("Hash",[["line",{x1:"4",x2:"20",y1:"9",y2:"9",key:"4lhtct"}],["line",{x1:"4",x2:"20",y1:"15",y2:"15",key:"vyu0kd"}],["line",{x1:"10",x2:"8",y1:"3",y2:"21",key:"1ggp8o"}],["line",{x1:"16",x2:"14",y1:"3",y2:"21",key:"weycgp"}]]);/** 319 * @license lucide-react v0.453.0 - ISC 320 * 321 * This source code is licensed under the ISC license. 322 * See the LICENSE file in the root directory of this source tree. 323 */const mG=J("Headset",[["path",{d:"M3 11h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-5Zm0 0a9 9 0 1 1 18 0m0 0v5a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3Z",key:"12oyoe"}],["path",{d:"M21 16v2a4 4 0 0 1-4 4h-5",key:"1x7m43"}]]);/** 324 * @license lucide-react v0.453.0 - ISC 325 * 326 * This source code is licensed under the ISC license. 327 * See the LICENSE file in the root directory of this source tree. 328 */const qT=J("Image",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]);/** 329 * @license lucide-react v0.453.0 - ISC 330 * 331 * This source code is licensed under the ISC license. 332 * See the LICENSE file in the root directory of this source tree. 333 */const fS=J("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);/** 334 * @license lucide-react v0.453.0 - ISC 335 * 336 * This source code is licensed under the ISC license. 337 * See the LICENSE file in the root directory of this source tree. 338 */const hG=J("Instagram",[["rect",{width:"20",height:"20",x:"2",y:"2",rx:"5",ry:"5",key:"2e1cvw"}],["path",{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z",key:"9exkf1"}],["line",{x1:"17.5",x2:"17.51",y1:"6.5",y2:"6.5",key:"r4j83e"}]]);/** 339 * @license lucide-react v0.453.0 - ISC 340 * 341 * This source code is licensed under the ISC license. 342 * See the LICENSE file in the root directory of this source tree. 343 */const pG=J("KeyRound",[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]]);/** 344 * @license lucide-react v0.453.0 - ISC 345 * 346 * This source code is licensed under the ISC license. 347 * See the LICENSE file in the root directory of this source tree. 348 */const gG=J("KeySquare",[["path",{d:"M12.4 2.7a2.5 2.5 0 0 1 3.4 0l5.5 5.5a2.5 2.5 0 0 1 0 3.4l-3.7 3.7a2.5 2.5 0 0 1-3.4 0L8.7 9.8a2.5 2.5 0 0 1 0-3.4z",key:"165ttr"}],["path",{d:"m14 7 3 3",key:"1r5n42"}],["path",{d:"m9.4 10.6-6.814 6.814A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814",key:"1ubxi2"}]]);/** 349 * @license lucide-react v0.453.0 - ISC 350 * 351 * This source code is licensed under the ISC license. 352 * See the LICENSE file in the root directory of this source tree. 353 */const vG=J("Key",[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]]);/** 354 * @license lucide-react v0.453.0 - ISC 355 * 356 * This source code is licensed under the ISC license. 357 * See the LICENSE file in the root directory of this source tree.
358 */const mS=J("LayoutDashboard",[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]]);/** 359 * @license lucide-react v0.453.0 - ISC 360 * 361 * This source code is licensed under the ISC license. 362 * See the LICENSE file in the root directory of this source tree. 363 */const xG=J("Lightbulb",[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]]);/** 364 * @license lucide-react v0.453.0 - ISC 365 * 366 * This source code is licensed under the ISC license. 367 * See the LICENSE file in the root directory of this source tree. 368 */const hS=J("Linkedin",[["path",{d:"M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z",key:"c2jq9f"}],["rect",{width:"4",height:"12",x:"2",y:"9",key:"mk3on5"}],["circle",{cx:"4",cy:"4",r:"2",key:"bt5ra8"}]]);/** 369 * @license lucide-react v0.453.0 - ISC 370 * 371 * This source code is licensed under the ISC license. 372 * See the LICENSE file in the root directory of this source tree. 373 */const yG=J("ListChecks",[["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["path",{d:"m3 7 2 2 4-4",key:"1obspn"}],["path",{d:"M13 6h8",key:"15sg57"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 18h8",key:"oe0vm4"}]]);/** 374 * @license lucide-react v0.453.0 - ISC 375 * 376 * This source code is licensed under the ISC license. 377 * See the LICENSE file in the root directory of this source tree. 378 */const Im=J("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/** 379 * @license lucide-react v0.453.0 - ISC 380 * 381 * This source code is licensed under the ISC license. 382 * See the LICENSE file in the root directory of this source tree.
383 */const bG=J("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"}]]);/** 384 * @license lucide-react v0.453.0 - ISC 385 * 386 * This source code is licensed under the ISC license. 387 * See the LICENSE file in the root directory of this source tree. 388 */const pS=J("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"}]]);/** 389 * @license lucide-react v0.453.0 - ISC 390 * 391 * This source code is licensed under the ISC license. 392 * See the LICENSE file in the root directory of this source tree. 393 */const El=J("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]]);/** 394 * @license lucide-react v0.453.0 - ISC 395 * 396 * This source code is licensed under the ISC license. 397 * See the LICENSE file in the root directory of this source tree. 398 */const H5=J("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"}]]);/** 399 * @license lucide-react v0.453.0 - ISC 400 * 401 * This source code is licensed under the ISC license. 402 * See the LICENSE file in the root directory of this source tree. 403 */const jG=J("Map",[["path",{d:"M14.106 5.553a2 2 0 0 0 1.788 0l3.659-1.83A1 1 0 0 1 21 4.619v12.764a1 1 0 0 1-.553.894l-4.553 2.277a2 2 0 0 1-1.788 0l-4.212-2.106a2 2 0 0 0-1.788 0l-3.659 1.83A1 1 0 0 1 3 19.381V6.618a1 1 0 0 1 .553-.894l4.553-2.277a2 2 0 0 1 1.788 0z",key:"169xi5"}],["path",{d:"M15 5.764v15",key:"1pn4in"}],["path",{d:"M9 3.236v15",key:"1uimfh"}]]);/** 404 * @license lucide-react v0.453.0 - ISC 405 * 406 * This source code is licensed under the ISC license. 407 * See the LICENSE file in the root directory of this source tree. 408 */const HT=J("Megaphone",[["path",{d:"m3 11 18-5v12L3 14v-3z",key:"n962bs"}],["path",{d:"M11.6 16.8a3 3 0 1 1-5.8-1.6",key:"1yl0tm"}]]);/** 409 * @license lucide-react v0.453.0 - ISC 410 * 411 * This source code is licensed under the ISC license. 412 * See the LICENSE file in the root directory of this source tree. 413 */const wG=J("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"}]]);/** 414 * @license lucide-react v0.453.0 - ISC 415 * 416 * This source code is licensed under the ISC license. 417 * See the LICENSE file in the root directory of this source tree. 418 */const ba=J("MessageCircle",[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",key:"vv11sd"}]]);/** 419 * @license lucide-react v0.453.0 - ISC 420 * 421 * This source code is licensed under the ISC license. 422 * See the LICENSE file in the root directory of this source tree. 423 */const NG=J("MessageSquare",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]]);/** 424 * @license lucide-react v0.453.0 - ISC 425 * 426 * This source code is licensed under the ISC license. 427 * See the LICENSE file in the root directory of this source tree. 428 */const SG=J("Minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]);/** 429 * @license lucide-react v0.453.0 - ISC 430 * 431 * This source code is licensed under the ISC license. 432 * See the LICENSE file in the root directory of this source tree. 433 */const gS=J("PackageCheck",[["path",{d:"m16 16 2 2 4-4",key:"gfu2re"}],["path",{d:"M21 10V8a2 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.73l7 4a2 2 0 0 0 2 0l2-1.14",key:"e7tb2h"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["line",{x1:"12",x2:"12",y1:"22",y2:"12",key:"a4e8g8"}]]);/** 434 * @license lucide-react v0.453.0 - ISC 435 * 436 * This source code is licensed under the ISC license. 437 * See the LICENSE file in the root directory of this source tree. 438 */const Uu=J("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"}]]);/** 439 * @license lucide-react v0.453.0 - ISC 440 * 441 * This source code is licensed under the ISC license. 442 * See the LICENSE file in the root directory of this source tree. 443 */const PG=J("Paintbrush",[["path",{d:"m14.622 17.897-10.68-2.913",key:"vj2p1u"}],["path",{d:"M18.376 2.622a1 1 0 1 1 3.002 3.002L17.36 9.643a.5.5 0 0 0 0 .707l.944.944a2.41 2.41 0 0 1 0 3.408l-.944.944a.5.5 0 0 1-.707 0L8.354 7.348a.5.5 0 0 1 0-.707l.944-.944a2.41 2.41 0 0 1 3.408 0l.944.944a.5.5 0 0 0 .707 0z",ke
443y:"18tc5c"}],["path",{d:"M9 8c-1.804 2.71-3.97 3.46-6.583 3.948a.507.507 0 0 0-.302.819l7.32 8.883a1 1 0 0 0 1.185.204C12.735 20.405 16 16.792 16 15",key:"ytzfxy"}]]);/** 444 * @license lucide-react v0.453.0 - ISC 445 * 446 * This source code is licensed under the ISC license. 447 * See the LICENSE file in the root directory of this source tree. 448 */const CG=J("Palette",[["circle",{cx:"13.5",cy:"6.5",r:".5",fill:"currentColor",key:"1okk4w"}],["circle",{cx:"17.5",cy:"10.5",r:".5",fill:"currentColor",key:"f64h9f"}],["circle",{cx:"8.5",cy:"7.5",r:".5",fill:"currentColor",key:"fotxhn"}],["circle",{cx:"6.5",cy:"12.5",r:".5",fill:"currentColor",key:"qy21gx"}],["path",{d:"M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10c.926 0 1.648-.746 1.648-1.688 0-.437-.18-.835-.437-1.125-.29-.289-.438-.652-.438-1.125a1.64 1.64 0 0 1 1.668-1.668h1.996c3.051 0 5.555-2.503 5.555-5.554C21.965 6.012 17.461 2 12 2z",key:"12rzf8"}]]);/** 449 * @license lucide-react v0.453.0 - ISC 450 * 451 * This source code is licensed under the ISC license. 452 * See the LICENSE file in the root directory of this source tree. 453 */const _y=J("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"}]]);/** 454 * @license lucide-react v0.453.0 - ISC 455 * 456 * This source code is licensed under the ISC license. 457 * See the LICENSE file in the root directory of this source tree. 458 */const $m=J("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/** 459 * @license lucide-react v0.453.0 - ISC 460 * 461 * This source code is licensed under the ISC license. 462 * See the LICENSE file in the root directory of this source tree. 463 */const Lm=J("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"}]]);/** 464 * @license lucide-react v0.453.0 - ISC 465 * 466 * This source code is licensed under the ISC license. 467 * See the LICENSE file in the root directory of this source tree. 468 */const AG=J("Quote",[["path",{d:"M16 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"rib7q0"}],["path",{d:"M5 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"1ymkrd"}]]);/** 469 * @license lucide-react v0.453.0 - ISC 470 * 471 * This source code is licensed under the ISC license. 472 * See the LICENSE file in the root directory of this source tree. 473 */const fl=J("Receipt",[["path",{d:"M4 2v20l2-1 2 1 2-1 2 1 2-1 2 1 2-1 2 1V2l-2 1-2-1-2 1-2-1-2 1-2-1-2 1Z",key:"q3az6g"}],["path",{d:"M16 8h-6a2 2 0 1 0 0 4h4a2 2 0 1 1 0 4H8",key:"1h4pet"}],["path",{d:"M12 17.5v-11",key:"1jc1ny"}]]);/** 474 * @license lucide-react v0.453.0 - ISC 475 * 476 * This source code is licensed under the ISC license. 477 * See the LICENSE file in the root directory of this source tree. 478 */const Qr=J("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/** 479 * @license lucide-react v0.453.0 - ISC 480 * 481 * This source code is licensed under the ISC license. 482 * See the LICENSE file in the root directory of this source tree. 483 */const TG=J("Rocket",[["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z",key:"m3kijz"}],["path",{d:"m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z",key:"1fmvmk"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0",key:"1f8sc4"}],["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}]]);/** 484 * @license lucide-react v0.453.0 - ISC 485 * 486 * This source code is licensed under the ISC license. 487 * See the LICENSE file in the root directory of this source tree. 488 */const zl=J("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/** 489 * @license lucide-react v0.453.0 - ISC 490 * 491 * This source code is licensed under the ISC license. 492 * See the LICENSE file in the root directory of this source tree. 493 */const xo=J("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"}]]);/** 494 * @license lucide-react v0.453.0 - ISC 495 * 496 * This source code is licensed under the ISC license. 497 * See the LICENSE file in the root directory of this source tree. 498 */const vS=J("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"}]]);/** 499 * @license lucide-react v0.453.0 - ISC 500 * 501 * This source code is licensed under the ISC license. 502 * See the LICENSE file in the root directory of this source tree. 503 */const EG=J("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",ke
503y:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/** 504 * @license lucide-react v0.453.0 - ISC 505 * 506 * This source code is licensed under the ISC license. 507 * See the LICENSE file in the root directory of this source tree. 508 */const xS=J("Shield",[["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"}]]);/** 509 * @license lucide-react v0.453.0 - ISC 510 * 511 * This source code is licensed under the ISC license. 512 * See the LICENSE file in the root directory of this source tree. 513 */const Wu=J("Shirt",[["path",{d:"M20.38 3.46 16 2a4 4 0 0 1-8 0L3.62 3.46a2 2 0 0 0-1.34 2.23l.58 3.47a1 1 0 0 0 .99.84H6v10c0 1.1.9 2 2 2h8a2 2 0 0 0 2-2V10h2.15a1 1 0 0 0 .99-.84l.58-3.47a2 2 0 0 0-1.34-2.23z",key:"1wgbhj"}]]);/** 514 * @license lucide-react v0.453.0 - ISC 515 * 516 * This source code is licensed under the ISC license. 517 * See the LICENSE file in the root directory of this source tree. 518 */const Fm=J("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"}]]);/** 519 * @license lucide-react v0.453.0 - ISC 520 * 521 * This source code is licensed under the ISC license. 522 * See the LICENSE file in the root directory of this source tree. 523 */const OG=J("Smartphone",[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]]);/** 524 * @license lucide-react v0.453.0 - ISC 525 * 526 * This source code is licensed under the ISC license. 527 * See the LICENSE file in the root directory of this source tree. 528 */const hn=J("Sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]]);/** 529 * @license lucide-react v0.453.0 - ISC 530 * 531 * This source code is licensed under the ISC license. 532 * See the LICENSE file in the root directory of this source tree. 533 */const so=J("SquarePen",[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]]);/** 534 * @license lucide-react v0.453.0 - ISC 535 * 536 * This source code is licensed under the ISC license. 537 * See the LICENSE file in the root directory of this source tree. 538 */const _G=J("SquareScissors",[["rect",{width:"20",height:"20",x:"2",y:"2",rx:"2",key:"1btzen"}],["circle",{cx:"8",cy:"8",r:"2",key:"14cg06"}],["path",{d:"M9.414 9.414 12 12",key:"qz4lzr"}],["path",{d:"M14.8 14.8 18 18",key:"11flf1"}],["circle",{cx:"8",cy:"16",r:"2",key:"1acxsx"}],["path",{d:"m18 6-8.586 8.586",key:"11kzk1"}]]);/** 539 * @license lucide-react v0.453.0 - ISC 540 * 541 * This source code is licensed under the ISC license. 542 * See the LICENSE file in the root directory of this source tree. 543 */const io=J("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"}]]);/** 544 * @license lucide-react v0.453.0 - ISC 545 * 546 * This source code is licensed under the ISC license. 547 * See the LICENSE file in the root directory of this source tree. 548 */const yS=J("Tag",[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]]);/** 549 * @license lucide-react v0.453.0 - ISC 550 * 551 * This source code is licensed under the ISC license. 552 * See the LICENSE file in the root directory of this source tree. 553 */const D1=J("Target",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]]);/** 554 * @license lucide-react v0.453.0 - ISC 555 * 556 * This source code is licensed under the ISC license. 557 * See the LICENSE file in the root directory of this source tree. 558 */const kG=J("TextCursorInput",[["path",{d:"M5 4h1a3 3 0 0 1 3 3 3 3 0 0 1 3-3h1",key:"18xjzo"}],["path",{d:"M13 20h-1a3 3 0 0 1-3-3 3 3 0 0 1-3 3H5",key:"fj48gi"}],["path",{d:"M5 16H4a2 2 0 0 1-2-2v-4a2 2 0 0 1 2-2h1",key:"1n9rhb"}],["path",{d:"M13 8h7a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2h-7",key:"13ksps"}],["path",{d:"M9 7v10",key:"1vc8ob"}]]);/** 559 * @license lucide-react v0.453.0 - ISC 560 * 561 * This source code is licensed under the ISC license. 562 * See the LICENSE file in the root directory of this source tree. 563 */const MG=J("ThumbsUp",[["path",{d:"M7 10v12",key:"1qc93n"}],["path",{d:"M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z",key:"emmmcr"}]]);/** 564 * @license lucide-react v0.453.0 - ISC 565 * 566 * This source code is licensed under the ISC license. 567 * See the LICENSE file in the root directory of this source tree. 568 */const qu=J("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}
568],["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"}]]);/** 569 * @license lucide-react v0.453.0 - ISC 570 * 571 * This source code is licensed under the ISC license. 572 * See the LICENSE file in the root directory of this source tree. 573 */const DG=J("TrendingDown",[["polyline",{points:"22 17 13.5 8.5 8.5 13.5 2 7",key:"1r2t7k"}],["polyline",{points:"16 17 22 17 22 11",key:"11uiuu"}]]);/** 574 * @license lucide-react v0.453.0 - ISC 575 * 576 * This source code is licensed under the ISC license. 577 * See the LICENSE file in the root directory of this source tree. 578 */const tm=J("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"}]]);/** 579 * @license lucide-react v0.453.0 - ISC 580 * 581 * This source code is licensed under the ISC license. 582 * See the LICENSE file in the root directory of this source tree. 583 */const lp=J("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/** 584 * @license lucide-react v0.453.0 - ISC 585 * 586 * This source code is licensed under the ISC license. 587 * See the LICENSE file in the root directory of this source tree. 588 */const Vm=J("Truck",[["path",{d:"M14 18V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v11a1 1 0 0 0 1 1h2",key:"wrbu53"}],["path",{d:"M15 18H9",key:"1lyqi6"}],["path",{d:"M19 18h2a1 1 0 0 0 1-1v-3.65a1 1 0 0 0-.22-.624l-3.48-4.35A1 1 0 0 0 17.52 8H14",key:"lysw3i"}],["circle",{cx:"17",cy:"18",r:"2",key:"332jqn"}],["circle",{cx:"7",cy:"18",r:"2",key:"19iecd"}]]);/** 589 * @license lucide-react v0.453.0 - ISC 590 * 591 * This source code is licensed under the ISC license. 592 * See the LICENSE file in the root directory of this source tree. 593 */const rm=J("Upload",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]]);/** 594 * @license lucide-react v0.453.0 - ISC 595 * 596 * This source code is licensed under the ISC license. 597 * See the LICENSE file in the root directory of this source tree. 598 */const RG=J("UserPlus",[["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"}],["line",{x1:"19",x2:"19",y1:"8",y2:"14",key:"1bvyxn"}],["line",{x1:"22",x2:"16",y1:"11",y2:"11",key:"1shjgl"}]]);/** 599 * @license lucide-react v0.453.0 - ISC 600 * 601 * This source code is licensed under the ISC license. 602 * See the LICENSE file in the root directory of this source tree. 603 */const cp=J("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"}]]);/** 604 * @license lucide-react v0.453.0 - ISC 605 * 606 * This source code is licensed under the ISC license. 607 * See the LICENSE file in the root directory of this source tree. 608 */const zm=J("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"}]]);/** 609 * @license lucide-react v0.453.0 - ISC 610 * 611 * This source code is licensed under the ISC license. 612 * See the LICENSE file in the root directory of this source tree. 613 */const GT=J("Video",[["path",{d:"m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5",key:"ftymec"}],["rect",{x:"2",y:"6",width:"14",height:"12",rx:"2",key:"158x01"}]]);/** 614 * @license lucide-react v0.453.0 - ISC 615 * 616 * This source code is licensed under the ISC license. 617 * See the LICENSE file in the root directory of this source tree. 618 */const IG=J("WandSparkles",[["path",{d:"m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72",key:"ul74o6"}],["path",{d:"m14 7 3 3",key:"1r5n42"}],["path",{d:"M5 6v4",key:"ilb8ba"}],["path",{d:"M19 14v4",key:"blhpug"}],["path",{d:"M10 2v2",key:"7u0qdc"}],["path",{d:"M7 8H3",key:"zfb6yr"}],["path",{d:"M21 16h-4",key:"1cnmox"}],["path",{d:"M11 3H9",key:"1obp7u"}]]);/** 619 * @license lucide-react v0.453.0 - ISC 620 * 621 * This source code is licensed under the ISC license. 622 * See the LICENSE file in the root directory of this source tree. 623 */const No=J("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}
vendor: 6,035 bytes, lines 623-638
623],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/** 624 * @license lucide-react v0.453.0 - ISC 625 * 626 * This source code is licensed under the ISC license. 627 * See the LICENSE file in the root directory of this source tree. 628 */const Cv=J("Youtube",[["path",{d:"M2.5 17a24.12 24.12 0 0 1 0-10 2 2 0 0 1 1.4-1.4 49.56 49.56 0 0 1 16.2 0A2 2 0 0 1 21.5 7a24.12 24.12 0 0 1 0 10 2 2 0 0 1-1.4 1.4 49.55 49.55 0 0 1-16.2 0A2 2 0 0 1 2.5 17",key:"1q2vi4"}],["path",{d:"m10 15 5-3-5-3z",key:"1jp15x"}]]);/** 629 * @license lucide-react v0.453.0 - ISC 630 * 631 * This source code is licensed under the ISC license. 632 * See the LICENSE file in the root directory of this source tree. 633 */const kd=J("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]);/** 634 * @license lucide-react v0.453.0 - ISC 635 * 636 * This source code is licensed under the ISC license. 637 * See the LICENSE file in the root directory of this source tree. 638 */const $G=J("ZoomIn",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"11",x2:"11",y1:"8",y2:"14",key:"1vmskp"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]]),bS="-",LG=e=>{const t=VG(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:o=>{const l=o.split(bS);return l[0]===""&&l.length!==1&&l.shift(),G5(l,t)||FG(o)},getConflictingClassGroupIds:(o,l)=>{const c=r[o]||[];return l&&n[o]?[...c,...n[o]]:c}}},G5=(e,t)=>{var o;if(e.length===0)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),a=n?G5(e.slice(1),n):void 0;if(a)return a;if(t.validators.length===0)return;const i=e.join(bS);return(o=t.validators.find(({validator:l})=>l(i)))==null?void 0:o.classGroupId},KT=/^\[(.+)\]$/,FG=e=>{if(KT.test(e)){const t=KT.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},VG=e=>{const{theme:t,prefix:r}=e,n={nextPart:new Map,validators:[]};return BG(Object.entries(e.classGroups),r).forEach(([i,o])=>{R1(o,n,i,t)}),n},R1=(e,t,r,n)=>{e.forEach(a=>{if(typeof a=="string"){const i=a===""?t:XT(t,a);i.classGroupId=r;return}if(typeof a=="function"){if(zG(a)){R1(a(n),t,r,n);return}t.validators.push({validator:a,classGroupId:r});return}Object.entries(a).forEach(([i,o])=>{R1(o,XT(t,i),r,n)})})},XT=(e,t)=>{let r=e;return t.split(bS).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},zG=e=>e.isThemeGetter,BG=(e,t)=>t?e.map(([r,n])=>{const a=n.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([o,l])=>[t+o,l])):i);return[r,a]}):e,UG=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;const a=(i,o)=>{r.set(i,o),t++,t>e&&(t=0,n=r,r=new Map)};return{get(i){let o=r.get(i);if(o!==void 0)return o;if((o=n.get(i))!==void 0)return a(i,o),o},set(i,o){r.has(i)?r.set(i,o):a(i,o)}}},K5="!",WG=e=>{const{separator:t,experimentalParseClassName:r}=e,n=t.length===1,a=t[0],i=t.length,o=l=>{const c=[];let u=0,d=0,f;for(let x=0;x<l.length;x++){let y=l[x];if(u===0){if(y===a&&(n||l.slice(x,x+i)===t)){c.push(l.slice(d,x)),d=x+i;continue}if(y==="/"){f=x;continue}}y==="["?u++:y==="]"&&u--}const m=c.length===0?l:l.substring(d),p=m.startsWith(K5),v=p?m.substring(1):m,h=f&&f>d?f-d:void 0;return{modifiers:c,hasImportantModifier:p,baseClassName:v,maybePostfixModifierPosition:h}};return r?l=>r({className:l,parseClassName:o}):o},qG=e=>{if(e.length<=1)return e;const t=[];let r=[];return e.forEach(n=>{n[0]==="["?(t.push(...r.sort(),n),r=[]):r.push(n)}),t.push(...r.sort()),t},HG=e=>({cache:UG(e.cacheSize),parseClassName:WG(e),...LG(e)}),GG=/\s+/,KG=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:a}=t,i=[],o=e.trim().split(GG);let l="";for(let c=o.length-1;c>=0;c-=1){const u=o[c],{modifiers:d,hasImportantModifier:f,baseClassName:m,maybePostfixModifierPosition:p}=r(u);let v=!!p,h=n(v?m.substring(0,p):m);if(!h){if(!v){l=u+(l.length>0?" "+l:l);continue}if(h=n(m),!h){l=u+(l.length>0?" "+l:l);continue}v=!1}const x=qG(d).join(":"),y=f?x+K5:x,g=y+h;if(i.includes(g))continue;i.push(g);const j=a(h,v);for(let S=0;S<j.length;++S){const w=j[S];i.push(y+w)}l=u+(l.length>0?" "+l:l)}return l};function XG(){let e=0,t,r,n="";for(;e<arguments.length;)(t=arguments[e++])&&(r=X5(t))&&(n&&(n+=" "),n+=r);return n}const X5=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=X5(e[n]))&&(r&&(r+=" "),r+=t);return r};function YG(e,...t){let r,n,a,i=o;function o(c){const u=t.reduce((d,f)=>f(d),e());return r=HG(u),n=r.cache.get,a=r.cache.set,i=l,l(c)}function l(c){const u=n(c);if(u)return u;const d=KG(c,r);return a(c,d),d}return function(){return i(XG.apply(null,arguments))}}const Mt=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},Y5=/^\[(?:([a-z-]+):)?(.+)\]$/i,ZG=/^\d+\/\d+$/,QG=new Set(["px","full","screen"]),JG=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,eK=/\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$/,tK=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,rK=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,nK=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,$s=e=>cu(e)||QG.has(e)||ZG.test(e),ki=e=>Md(e,"length",dK),cu=e=>!!e&&!Number.isNaN(Number(e)),Mb=e=>Md(e,"number",cu),mf=e=>!!e&&Number.isInteger(Number(e)),aK=e=>e.endsWith("%")&&cu(e.slice(0,-1)),nt=e=>Y5.test(e),Mi=e=>JG.test(e),sK=new Set(["length","size","percentage"]),iK=e=>Md(e,sK,Z5),oK=e=>Md(e,"position",Z5),lK=new Set(["image","url"]),cK=e=>Md(e,lK,mK),uK=e=>Md(e,"",fK),hf=()=>!0,Md=(e,t,r)=>{const n=Y5.exec(e);return n?n[1]?typeof t=="string"?n[1]===t:t.has(n[1]):r(n[2]):!1},dK=e=>eK.test(e)&&!tK.test(e),Z5=()=>!1,fK=e=>rK.test(e),mK=e=>nK.test(e),hK=()=>{const e=Mt("colors"),t=Mt("spacing"),r=Mt("blur"),n=Mt("brightness"),a=Mt("borderColor"),i=Mt("borderRadius"),o=Mt("borderSpacing"),l=
vendor: 7,454 bytes, line 638
638Mt("borderWidth"),c=Mt("contrast"),u=Mt("grayscale"),d=Mt("hueRotate"),f=Mt("invert"),m=Mt("gap"),p=Mt("gradientColorStops"),v=Mt("gradientColorStopPositions"),h=Mt("inset"),x=Mt("margin"),y=Mt("opacity"),g=Mt("padding"),j=Mt("saturate"),S=Mt("scale"),w=Mt("sepia"),N=Mt("skew"),P=Mt("space"),C=Mt("translate"),A=()=>["auto","contain","none"],O=()=>["auto","hidden","clip","visible","scroll"],E=()=>["auto",nt,t],k=()=>[nt,t],M=()=>["",$s,ki],D=()=>["auto",cu,nt],F=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],L=()=>["solid","dashed","dotted","double","none"],B=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],R=()=>["start","end","center","between","around","evenly","stretch"],I=()=>["","0",nt],G=()=>["auto","avoid","all","avoid-page","page","left","right","column"],U=()=>[cu,nt];return{cacheSize:500,separator:":",theme:{colors:[hf],spacing:[$s,ki],blur:["none","",Mi,nt],brightness:U(),borderColor:[e],borderRadius:["none","","full",Mi,nt],borderSpacing:k(),borderWidth:M(),contrast:U(),grayscale:I(),hueRotate:U(),invert:I(),gap:k(),gradientColorStops:[e],gradientColorStopPositions:[aK,ki],inset:E(),margin:E(),opacity:U(),padding:k(),saturate:U(),scale:U(),sepia:I(),skew:U(),space:k(),translate:k()},classGroups:{aspect:[{aspect:["auto","square","video",nt]}],container:["container"],columns:[{columns:[Mi]}],"break-after":[{"break-after":G()}],"break-before":[{"break-before":G()}],"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"],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:[...F(),nt]}],overflow:[{overflow:O()}],"overflow-x":[{"overflow-x":O()}],"overflow-y":[{"overflow-y":O()}],overscroll:[{overscroll:A()}],"overscroll-x":[{"overscroll-x":A()}],"overscroll-y":[{"overscroll-y":A()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[h]}],"inset-x":[{"inset-x":[h]}],"inset-y":[{"inset-y":[h]}],start:[{start:[h]}],end:[{end:[h]}],top:[{top:[h]}],right:[{right:[h]}],bottom:[{bottom:[h]}],left:[{left:[h]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",mf,nt]}],basis:[{basis:E()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",nt]}],grow:[{grow:I()}],shrink:[{shrink:I()}],order:[{order:["first","last","none",mf,nt]}],"grid-cols":[{"grid-cols":[hf]}],"col-start-end":[{col:["auto",{span:["full",mf,nt]},nt]}],"col-start":[{"col-start":D()}],"col-end":[{"col-end":D()}],"grid-rows":[{"grid-rows":[hf]}],"row-start-end":[{row:["auto",{span:[mf,nt]},nt]}],"row-start":[{"row-start":D()}],"row-end":[{"row-end":D()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",nt]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",nt]}],gap:[{gap:[m]}],"gap-x":[{"gap-x":[m]}],"gap-y":[{"gap-y":[m]}],"justify-content":[{justify:["normal",...R()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...R(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...R(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[g]}],px:[{px:[g]}],py:[{py:[g]}],ps:[{ps:[g]}],pe:[{pe:[g]}],pt:[{pt:[g]}],pr:[{pr:[g]}],pb:[{pb:[g]}],pl:[{pl:[g]}],m:[{m:[x]}],mx:[{mx:[x]}],my:[{my:[x]}],ms:[{ms:[x]}],me:[{me:[x]}],mt:[{mt:[x]}],mr:[{mr:[x]}],mb:[{mb:[x]}],ml:[{ml:[x]}],"space-x":[{"space-x":[P]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[P]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",nt,t]}],"min-w":[{"min-w":[nt,t,"min","max","fit"]}],"max-w":[{"max-w":[nt,t,"none","full","min","max","fit","prose",{screen:[Mi]},Mi]}],h:[{h:[nt,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[nt,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[nt,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[nt,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Mi,ki]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Mb]}],"font-family":[{font:[hf]}],"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:["tighter","tight","normal","wide","wider","widest",nt]}],"line-clamp":[{"line-clamp":["none",cu,Mb]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",$s,nt]}],"list-image":[{"list-image":["none",nt]}],"list-style-type":[{list:["none","disc","decimal",nt]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[y]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...L(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",$s,ki]}],"underline-offset":[{"underline-offset":["auto",$s,nt]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:k()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",nt]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",nt]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[y]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...F(),oK]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",iK]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},cK]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[v]}
638],"gradient-via-pos":[{via:[v]}],"gradient-to-pos":[{to:[v]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[y]}],"border-style":[{border:[...L(),"hidden"]}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[y]}
vendor: 4,467 bytes, line 638
638],"divide-style":[{divide:L()}],"border-color":[{border:[a]}],"border-color-x":[{"border-x":[a]}],"border-color-y":[{"border-y":[a]}],"border-color-s":[{"border-s":[a]}],"border-color-e":[{"border-e":[a]}],"border-color-t":[{"border-t":[a]}],"border-color-r":[{"border-r":[a]}],"border-color-b":[{"border-b":[a]}],"border-color-l":[{"border-l":[a]}],"divide-color":[{divide:[a]}],"outline-style":[{outline:["",...L()]}],"outline-offset":[{"outline-offset":[$s,nt]}],"outline-w":[{outline:[$s,ki]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:M()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[y]}],"ring-offset-w":[{"ring-offset":[$s,ki]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Mi,uK]}],"shadow-color":[{shadow:[hf]}],opacity:[{opacity:[y]}],"mix-blend":[{"mix-blend":[...B(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":B()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",Mi,nt]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[f]}],saturate:[{saturate:[j]}],sepia:[{sepia:[w]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[y]}],"backdrop-saturate":[{"backdrop-saturate":[j]}],"backdrop-sepia":[{"backdrop-sepia":[w]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[o]}],"border-spacing-x":[{"border-spacing-x":[o]}],"border-spacing-y":[{"border-spacing-y":[o]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",nt]}],duration:[{duration:U()}],ease:[{ease:["linear","in","out","in-out",nt]}],delay:[{delay:U()}],animate:[{animate:["none","spin","ping","pulse","bounce",nt]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[S]}],"scale-x":[{"scale-x":[S]}],"scale-y":[{"scale-y":[S]}],rotate:[{rotate:[mf,nt]}],"translate-x":[{"translate-x":[C]}],"translate-y":[{"translate-y":[C]}],"skew-x":[{"skew-x":[N]}],"skew-y":[{"skew-y":[N]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",nt]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],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",nt]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":k()}],"scroll-mx":[{"scroll-mx":k()}],"scroll-my":[{"scroll-my":k()}],"scroll-ms":[{"scroll-ms":k()}],"scroll-me":[{"scroll-me":k()}],"scroll-mt":[{"scroll-mt":k()}],"scroll-mr":[{"scroll-mr":k()}],"scroll-mb":[{"scroll-mb":k()}],"scroll-ml":[{"scroll-ml":k()}],"scroll-p":[{"scroll-p":k()}],"scroll-px":[{"scroll-px":k()}],"scroll-py":[{"scroll-py":k()}],"scroll-ps":[{"scroll-ps":k()}],"scroll-pe":[{"scroll-pe":k()}],"scroll-pt":[{"scroll-pt":k()}],"scroll-pr":[{"scroll-pr":k()}],"scroll-pb":[{"scroll-pb":k()}],"scroll-pl":[{"scroll-pl":k()}],"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",nt]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[$s,ki,Mb]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","
638none"]}]},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-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-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"],"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"]}}},pK=YG(hK);function ie(...e){return pK(rt(e))}const gK=GH,Q5=b.forwardRef(({className:e,...t},r)=>s.jsx(O5,{ref:r,className:ie("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...t}));Q5.displayName=O5.displayName;const vK=Ay("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),J5=b.forwardRef(({className:e,variant:t,...r},n)=>s.jsx(_5,{ref:n,className:ie(vK({variant:t}),e),...r}));J5.displayName=_5.displayName;const xK=b.forwardRef(({className:e,...t},r)=>s.jsx(D5,{ref:r,className:ie("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",e),...t}));xK.displayName=D5.displayName;const e$=b.forwardRef(({className:e,...t},r)=>s.jsx(R5,{ref:r,className:ie("absolute right-2 top-2 rounded-md p-1 text-foreground
vendor: 4,170 bytes, line 638
638/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:s.jsx(No,{className:"h-4 w-4"})}));e$.displayName=R5.displayName;const t$=b.forwardRef(({className:e,...t},r)=>s.jsx(k5,{ref:r,className:ie("text-sm font-semibold",e),...t}));t$.displayName=k5.displayName;const r$=b.forwardRef(({className:e,...t},r)=>s.jsx(M5,{ref:r,className:ie("text-sm opacity-90",e),...t}));r$.displayName=M5.displayName;function yK(){const{toasts:e}=wn();return s.jsxs(gK,{children:[e.map(function({id:t,title:r,description:n,action:a,...i}){return s.jsxs(J5,{...i,children:[s.jsxs("div",{className:"grid gap-1",children:[r&&s.jsx(t$,{children:r}),n&&s.jsx(r$,{children:n})]}),a,s.jsx(e$,{})]},t)}),s.jsx(Q5,{})]})}var bK=YD[" useId ".trim().toString()]||(()=>{}),jK=0;function ha(e){const[t,r]=b.useState(bK());return gr(()=>{e||r(n=>n??String(jK++))},[e]),e||(t?`radix-${t}`:"")}const wK=["top","right","bottom","left"],So=Math.min,Fn=Math.max,Av=Math.round,eg=Math.floor,vs=e=>({x:e,y:e}),NK={left:"right",right:"left",bottom:"top",top:"bottom"},SK={start:"end",end:"start"};function I1(e,t,r){return Fn(e,So(t,r))}function pi(e,t){return typeof e=="function"?e(t):e}function gi(e){return e.split("-")[0]}function Dd(e){return e.split("-")[1]}function jS(e){return e==="x"?"y":"x"}function wS(e){return e==="y"?"height":"width"}function Po(e){return["top","bottom"].includes(gi(e))?"y":"x"}function NS(e){return jS(Po(e))}function PK(e,t,r){r===void 0&&(r=!1);const n=Dd(e),a=NS(e),i=wS(a);let o=a==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(o=Tv(o)),[o,Tv(o)]}function CK(e){const t=Tv(e);return[$1(e),t,$1(t)]}function $1(e){return e.replace(/start|end/g,t=>SK[t])}function AK(e,t,r){const n=["left","right"],a=["right","left"],i=["top","bottom"],o=["bottom","top"];switch(e){case"top":case"bottom":return r?t?a:n:t?n:a;case"left":case"right":return t?i:o;default:return[]}}function TK(e,t,r,n){const a=Dd(e);let i=AK(gi(e),r==="start",n);return a&&(i=i.map(o=>o+"-"+a),t&&(i=i.concat(i.map($1)))),i}function Tv(e){return e.replace(/left|right|bottom|top/g,t=>NK[t])}function EK(e){return{top:0,right:0,bottom:0,left:0,...e}}function n$(e){return typeof e!="number"?EK(e):{top:e,right:e,bottom:e,left:e}}function Ev(e){const{x:t,y:r,width:n,height:a}=e;return{width:n,height:a,top:r,left:t,right:t+n,bottom:r+a,x:t,y:r}}function YT(e,t,r){let{reference:n,floating:a}=e;const i=Po(t),o=NS(t),l=wS(o),c=gi(t),u=i==="y",d=n.x+n.width/2-a.width/2,f=n.y+n.height/2-a.height/2,m=n[l]/2-a[l]/2;let p;switch(c){case"top":p={x:d,y:n.y-a.height};break;case"bottom":p={x:d,y:n.y+n.height};break;case"right":p={x:n.x+n.width,y:f};break;case"left":p={x:n.x-a.width,y:f};break;default:p={x:n.x,y:n.y}}switch(Dd(t)){case"start":p[o]-=m*(r&&u?-1:1);break;case"end":p[o]+=m*(r&&u?-1:1);break}return p}const OK=async(e,t,r)=>{const{placement:n="bottom",strategy:a="absolute",middleware:i=[],platform:o}=r,l=i.filter(Boolean),c=await(o.isRTL==null?void 0:o.isRTL(t));let u=await o.getElementRects({reference:e,floating:t,strategy:a}),{x:d,y:f}=YT(u,n,c),m=n,p={},v=0;for(let h=0;h<l.length;h++){const{name:x,fn:y}=l[h],{x:g,y:j,data:S,reset:w}=await y({x:d,y:f,initialPlacement:n,placement:m,strategy:a,middlewareData:p,rects:u,platform:o,elements:{reference:e,floating:t}});d=g??d,f=j??f,p={...p,[x]:{...p[x],...S}},w&&v<=50&&(v++,typeof w=="object"&&(w.placement&&(m=w.placement),w.rects&&(u=w.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:a}):w.rects),{x:d,y:f}=YT(u,m,c)),h=-1)}return{x:d,y:f,placement:m,strategy:a,middlewareData:p}};async function Bm(e,t){var r;t===void 0&&(t={});const{x:n,y:a,platform:i,rects:o,elements:l,strategy:c}=e,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:m=!1,padding:p=0}=pi(t,e),v=n$(p),x=l[m?f==="floating"?"reference":"floating":f],y=Ev(await i.getClippingRect
vendor: 9,527 bytes, line 638
638({element:(r=await(i.isElement==null?void 0:i.isElement(x)))==null||r?x:x.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(l.floating)),boundary:u,rootBoundary:d,strategy:c})),g=f==="floating"?{x:n,y:a,width:o.floating.width,height:o.floating.height}:o.reference,j=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l.floating)),S=await(i.isElement==null?void 0:i.isElement(j))?await(i.getScale==null?void 0:i.getScale(j))||{x:1,y:1}:{x:1,y:1},w=Ev(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:g,offsetParent:j,strategy:c}):g);return{top:(y.top-w.top+v.top)/S.y,bottom:(w.bottom-y.bottom+v.bottom)/S.y,left:(y.left-w.left+v.left)/S.x,right:(w.right-y.right+v.right)/S.x}}const _K=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:a,rects:i,platform:o,elements:l,middlewareData:c}=t,{element:u,padding:d=0}=pi(e,t)||{};if(u==null)return{};const f=n$(d),m={x:r,y:n},p=NS(a),v=wS(p),h=await o.getDimensions(u),x=p==="y",y=x?"top":"left",g=x?"bottom":"right",j=x?"clientHeight":"clientWidth",S=i.reference[v]+i.reference[p]-m[p]-i.floating[v],w=m[p]-i.reference[p],N=await(o.getOffsetParent==null?void 0:o.getOffsetParent(u));let P=N?N[j]:0;(!P||!await(o.isElement==null?void 0:o.isElement(N)))&&(P=l.floating[j]||i.floating[v]);const C=S/2-w/2,A=P/2-h[v]/2-1,O=So(f[y],A),E=So(f[g],A),k=O,M=P-h[v]-E,D=P/2-h[v]/2+C,F=I1(k,D,M),L=!c.arrow&&Dd(a)!=null&&D!==F&&i.reference[v]/2-(D<k?O:E)-h[v]/2<0,B=L?D<k?D-k:D-M:0;return{[p]:m[p]+B,data:{[p]:F,centerOffset:D-F-B,...L&&{alignmentOffset:B}},reset:L}}}),kK=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:a,middlewareData:i,rects:o,initialPlacement:l,platform:c,elements:u}=t,{mainAxis:d=!0,crossAxis:f=!0,fallbackPlacements:m,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:h=!0,...x}=pi(e,t);if((r=i.arrow)!=null&&r.alignmentOffset)return{};const y=gi(a),g=Po(l),j=gi(l)===l,S=await(c.isRTL==null?void 0:c.isRTL(u.floating)),w=m||(j||!h?[Tv(l)]:CK(l)),N=v!=="none";!m&&N&&w.push(...TK(l,h,v,S));const P=[l,...w],C=await Bm(t,x),A=[];let O=((n=i.flip)==null?void 0:n.overflows)||[];if(d&&A.push(C[y]),f){const D=PK(a,o,S);A.push(C[D[0]],C[D[1]])}if(O=[...O,{placement:a,overflows:A}],!A.every(D=>D<=0)){var E,k;const D=(((E=i.flip)==null?void 0:E.index)||0)+1,F=P[D];if(F)return{data:{index:D,overflows:O},reset:{placement:F}};let L=(k=O.filter(B=>B.overflows[0]<=0).sort((B,R)=>B.overflows[1]-R.overflows[1])[0])==null?void 0:k.placement;if(!L)switch(p){case"bestFit":{var M;const B=(M=O.filter(R=>{if(N){const I=Po(R.placement);return I===g||I==="y"}return!0}).map(R=>[R.placement,R.overflows.filter(I=>I>0).reduce((I,G)=>I+G,0)]).sort((R,I)=>R[1]-I[1])[0])==null?void 0:M[0];B&&(L=B);break}case"initialPlacement":L=l;break}if(a!==L)return{reset:{placement:L}}}return{}}}};function ZT(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function QT(e){return wK.some(t=>e[t]>=0)}const MK=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:n="referenceHidden",...a}=pi(e,t);switch(n){case"referenceHidden":{const i=await Bm(t,{...a,elementContext:"reference"}),o=ZT(i,r.reference);return{data:{referenceHiddenOffsets:o,referenceHidden:QT(o)}}}case"escaped":{const i=await Bm(t,{...a,altBoundary:!0}),o=ZT(i,r.floating);return{data:{escapedOffsets:o,escaped:QT(o)}}}default:return{}}}}};async function DK(e,t){const{placement:r,platform:n,elements:a}=e,i=await(n.isRTL==null?void 0:n.isRTL(a.floating)),o=gi(r),l=Dd(r),c=Po(r)==="y",u=["left","top"].includes(o)?-1:1,d=i&&c?-1:1,f=pi(t,e);let{mainAxis:m,crossAxis:p,alignmentAxis:v}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return l&&typeof v=="number"&&(p=l==="end"?v*-1:v),c?{x:p*d,y:m*u}:{x:m*u,y:p*d}}const RK=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:a,y:i,placement:o,middlewareData:l}=t,c=await DK(t,e);return o===((r=l.offset)==null?void 0:r.placement)&&(n=l.arrow)!=null&&n.alignmentOffset?{}:{x:a+c.x,y:i+c.y,data:{...c,placement:o}}}}},IK=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:a}=t,{mainAxis:i=!0,crossAxis:o=!1,limiter:l={fn:x=>{let{x:y,y:g}=x;return{x:y,y:g}}},...c}=pi(e,t),u={x:r,y:n},d=await Bm(t,c),f=Po(gi(a)),m=jS(f);let p=u[m],v=u[f];if(i){const x=m==="y"?"top":"left",y=m==="y"?"bottom":"right",g=p+d[x],j=p-d[y];p=I1(g,p,j)}if(o){const x=f==="y"?"top":"left",y=f==="y"?"bottom":"right",g=v+d[x],j=v-d[y];v=I1(g,v,j)}const h=l.fn({...t,[m]:p,[f]:v});return{...h,data:{x:h.x-r,y:h.y-n,enabled:{[m]:i,[f]:o}}}}}},$K=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:a,rects:i,middlewareData:o}=t,{offset:l=0,mainAxis:c=!0,crossAxis:u=!0}=pi(e,t),d={x:r,y:n},f=Po(a),m=jS(f);let p=d[m],v=d[f];const h=pi(l,t),x=typeof h=="number"?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(c){const j=m==="y"?"height":"width",S=i.reference[m]-i.floating[j]+x.mainAxis,w=i.reference[m]+i.reference[j]-x.mainAxis;p<S?p=S:p>w&&(p=w)}if(u){var y,g;const j=m==="y"?"width":"height",S=["top","left"].includes(gi(a)),w=i.reference[f]-i.floating[j]+(S&&((y=o.offset)==null?void 0:y[f])||0)+(S?0:x.crossAxis),N=i.reference[f]+i.reference[j]+(S?0:((g=o.offset)==null?void 0:g[f])||0)-(S?x.crossAxis:0);v<w?v=w:v>N&&(v=N)}return{[m]:p,[f]:v}}}},LK=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,n;const{placement:a,rects:i,platform:o,elements:l}=t,{apply:c=()=>{},...u}=pi(e,t),d=await Bm(t,u),f=gi(a),m=Dd(a),p=Po(a)==="y",{width:v,height:h}=i.floating;let x,y;f==="top"||f==="bottom"?(x=f,y=m===(await(o.isRTL==null?void 0:o.isRTL(l.floating))?"start":"end")?"left":"right"):(y=f,x=m==="end"?"top":"bottom");const g=h-d.top-d.bottom,j=v-d.left-d.right,S=So(h-d[x],g),w=So(v-d[y],j),N=!t.middlewareData.shift;let P=S,C=w;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(C=j),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(P=g),N&&!m){const O=Fn(d.left,0),E=Fn(d.right,0),k=Fn(d.top,0),M=Fn(d.bottom,0);p?C=v-2*(O!==0||E!==0?O+E:Fn(d.left,d.right)):P=h-2*(k!==0||M!==0?k+M:Fn(d.top,d.bottom))}await c({...t,availableWidth:C,availableHeight:P});const A=await o.getDimensions(l.floating);return v!==A.width||h!==A.height?{reset:{rects:!0}}:{}}}};function ky(){return typeof window<"u"}function Rd(e){return a$(e)?(e.nodeName||"").toLowerCase():"#document"}function Wn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ms(e){var t;return(t=(a$(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function a$(e){return ky()?e instanceof Node||e instanceof Wn(e).Node:!1}function Ha(e){return ky()?e instanceof Element||e instanceof Wn(e).Element:!1}function Cs(e){return ky()?e instanceof HTMLElement||e instanceof Wn(e).HTMLElement:!1}function JT(e){return!ky()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Wn(e).ShadowRoot}function up(e){const{overflow:t,overflowX:r,overflowY:n,display:a}=Ga(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!["inline","contents"].includes(a)}function FK(e){return["table","td","th"].includes(Rd(e))}function My(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function SS(e){const t=PS(),r=Ha(e)?Ga(e):e;return["transform","translate","scale","rotate","perspective"].some(n=>r[n]?r[n]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(n=>(r.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(r.contain||"").includes(n))}function VK(e){let t=Co(e);for(;Cs(t)&&!Hu(t);){if(SS(t))return t;if(My(t))return null;t=Co(t)}return null}function PS(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Hu(e){return["html","body","#document"].includes(Rd(e))}function Ga(e){return Wn(e).getComputedStyle(e)}function Dy(e){return Ha(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Co(e){if(Rd(e)==="html")return e;const t=e.assignedSlot||e.parentNode||JT(e)&&e.host||Ms(e);return JT(t)?t.host:t}function s$(e){const t=Co(e);return Hu(t)?e.ownerDocument?e.ownerDocument.body:e.body:Cs(t)&&up(t)?t:s$(t)}function Um(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const a=s$(e),i=a===((n=e.ownerDocument)==null?void 0:n.body),o=Wn(a);if(i){const l=L1(o);return t.concat(o,o.visualViewport||[],up(a)?a:[],l&&r?Um(l):[])}return t.concat(a,Um(a,[],r))}function L1(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function i$(e){const t=Ga(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const a=Cs(e),i=a?e.offsetWidth:r,o=a?e.offsetHeight:n,l=Av(r)!==i||Av(n)!==o;return l&&(r=i,n=o),{width:r,height:n,$:l}}function CS(e){return Ha(e)?e:e.contextElement}function uu(e){const t=CS(e);if(!Cs(t))return vs(1);const r=t.getBoundingClientRect(),{width:n,height:a,$:i}=i$(t);let o=(i?Av(r.width):r.width)/n,l=(i?Av(r.height):r.height)/a;return(!o||!Number.isFinite(o))&&(o=1),(!l||!Number.isFinite(l))&&(l=1),{x:o,y:l}}const zK=vs(0);function o$(e){const t=Wn(e);
vendor: 6,604 bytes, line 638
638return!PS()||!t.visualViewport?zK:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function BK(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==Wn(e)?!1:t}function Bl(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const a=e.getBoundingClientRect(),i=CS(e);let o=vs(1);t&&(n?Ha(n)&&(o=uu(n)):o=uu(e));const l=BK(i,r,n)?o$(i):vs(0);let c=(a.left+l.x)/o.x,u=(a.top+l.y)/o.y,d=a.width/o.x,f=a.height/o.y;if(i){const m=Wn(i),p=n&&Ha(n)?Wn(n):n;let v=m,h=L1(v);for(;h&&n&&p!==v;){const x=uu(h),y=h.getBoundingClientRect(),g=Ga(h),j=y.left+(h.clientLeft+parseFloat(g.paddingLeft))*x.x,S=y.top+(h.clientTop+parseFloat(g.paddingTop))*x.y;c*=x.x,u*=x.y,d*=x.x,f*=x.y,c+=j,u+=S,v=Wn(h),h=L1(v)}}return Ev({width:d,height:f,x:c,y:u})}function AS(e,t){const r=Dy(e).scrollLeft;return t?t.left+r:Bl(Ms(e)).left+r}function l$(e,t,r){r===void 0&&(r=!1);const n=e.getBoundingClientRect(),a=n.left+t.scrollLeft-(r?0:AS(e,n)),i=n.top+t.scrollTop;return{x:a,y:i}}function UK(e){let{elements:t,rect:r,offsetParent:n,strategy:a}=e;const i=a==="fixed",o=Ms(n),l=t?My(t.floating):!1;if(n===o||l&&i)return r;let c={scrollLeft:0,scrollTop:0},u=vs(1);const d=vs(0),f=Cs(n);if((f||!f&&!i)&&((Rd(n)!=="body"||up(o))&&(c=Dy(n)),Cs(n))){const p=Bl(n);u=uu(n),d.x=p.x+n.clientLeft,d.y=p.y+n.clientTop}const m=o&&!f&&!i?l$(o,c,!0):vs(0);return{width:r.width*u.x,height:r.height*u.y,x:r.x*u.x-c.scrollLeft*u.x+d.x+m.x,y:r.y*u.y-c.scrollTop*u.y+d.y+m.y}}function WK(e){return Array.from(e.getClientRects())}function qK(e){const t=Ms(e),r=Dy(e),n=e.ownerDocument.body,a=Fn(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),i=Fn(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let o=-r.scrollLeft+AS(e);const l=-r.scrollTop;return Ga(n).direction==="rtl"&&(o+=Fn(t.clientWidth,n.clientWidth)-a),{width:a,height:i,x:o,y:l}}function HK(e,t){const r=Wn(e),n=Ms(e),a=r.visualViewport;let i=n.clientWidth,o=n.clientHeight,l=0,c=0;if(a){i=a.width,o=a.height;const u=PS();(!u||u&&t==="fixed")&&(l=a.offsetLeft,c=a.offsetTop)}return{width:i,height:o,x:l,y:c}}function GK(e,t){const r=Bl(e,!0,t==="fixed"),n=r.top+e.clientTop,a=r.left+e.clientLeft,i=Cs(e)?uu(e):vs(1),o=e.clientWidth*i.x,l=e.clientHeight*i.y,c=a*i.x,u=n*i.y;return{width:o,height:l,x:c,y:u}}function eE(e,t,r){let n;if(t==="viewport")n=HK(e,r);else if(t==="document")n=qK(Ms(e));else if(Ha(t))n=GK(t,r);else{const a=o$(e);n={x:t.x-a.x,y:t.y-a.y,width:t.width,height:t.height}}return Ev(n)}function c$(e,t){const r=Co(e);return r===t||!Ha(r)||Hu(r)?!1:Ga(r).position==="fixed"||c$(r,t)}function KK(e,t){const r=t.get(e);if(r)return r;let n=Um(e,[],!1).filter(l=>Ha(l)&&Rd(l)!=="body"),a=null;const i=Ga(e).position==="fixed";let o=i?Co(e):e;for(;Ha(o)&&!Hu(o);){const l=Ga(o),c=SS(o);!c&&l.position==="fixed"&&(a=null),(i?!c&&!a:!c&&l.position==="static"&&!!a&&["absolute","fixed"].includes(a.position)||up(o)&&!c&&c$(e,o))?n=n.filter(d=>d!==o):a=l,o=Co(o)}return t.set(e,n),n}function XK(e){let{element:t,boundary:r,rootBoundary:n,strategy:a}=e;const o=[...r==="clippingAncestors"?My(t)?[]:KK(t,this._c):[].concat(r),n],l=o[0],c=o.reduce((u,d)=>{const f=eE(t,d,a);return u.top=Fn(f.top,u.top),u.right=So(f.right,u.right),u.bottom=So(f.bottom,u.bottom),u.left=Fn(f.left,u.left),u},eE(t,l,a));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function YK(e){const{width:t,height:r}=i$(e);return{width:t,height:r}}function ZK(e,t,r){const n=Cs(t),a=Ms(t),i=r==="fixed",o=Bl(e,!0,i,t);let l={scrollLeft:0,scrollTop:0};const c=vs(0);if(n||!n&&!i)if((Rd(t)!=="body"||up(a))&&(l=Dy(t)),n){const m=Bl(t,!0,i,t);c.x=m.x+t.clientLeft,c.y=m.y+t.clientTop}else a&&(c.x=AS(a));const u=a&&!n&&!i?l$(a,l):vs(0),d=o.left+l.scrollLeft-c.x-u.x,f=o.top+l.scrollTop-c.y-u.y;return{x:d,y:f,width:o.width,height:o.height}}function Db(e){return Ga(e).position==="static"}function tE(e,t){if(!Cs(e)||Ga(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return Ms(e)===r&&(r=r.ownerDocument.body),r}function u$(e,t){const r=Wn(e);if(My(e))return r;if(!Cs(e)){let a=Co(e);for(;a&&!Hu(a);){if(Ha(a)&&!Db(a))return a;a=Co(a)}return r}let n=tE(e,t);for(;n&&FK(n)&&Db(n);)n=tE(n,t);return n&&Hu(n)&&Db(n)&&!SS(n)?r:n||VK(e)||r}const QK=async function(e){const t=this.getOffsetParent||u$,r=this.getDimensions,n=await r(e.floating);return{reference:ZK(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function JK(e){return Ga(e).direction==="rtl"}const eX={convertOffsetParentRelativeRectToViewportRelativeRect:UK,getDocumentElement:Ms,getClippingRect:XK,getOffsetParent:u$,getElementRects:QK,getClientRects:WK,getDimensions:YK,getScale:uu,isElement:Ha,isRTL:JK};function d$(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function tX(e,t){let r=null,n;const a=Ms(e);function i(){var l;clearTimeout(n),(l=r)==null||l.disconnect(),r=null}function o(l,c){l===void 0&&(l=!1),c===void 0&&(c=1),i();const u=e.getBoundingClientRect(),{left:d,top:f,width:m,height:p}=u;if(l||t(),!m||!p)return;const v=eg(f),h=eg(a.clientWidth-(d+m)),x=eg(a.clientHeight-(f+p)),y=eg(d),j={rootMargin:-v+"px "+-h+"px "+-x+"px "+-y+"px",threshold:Fn(0,So(1,c))||1};let S=!0;function w(N){const P=N[0].intersectionRatio;if(P!==c){if(!S)return o();P?o(!1,P):n=setTimeout(()=>{o(!1,1e-7)},1e3)}P===1&&!d$(u,e.getBoundingClientRect())&&o(),S=!1}try{r=new IntersectionObserver(w,{...j,root:a.ownerDocument})}catch{r=new IntersectionObserver(w,j)}r.observe(e)}return o(!0),i}function rX(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:a=!0,ancestorResize:i=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:c=!1}=n,u=CS(e),d=a||i?[...u?Um(u):[],...Um(t)]:[];d.forEach(y=>{a&&y.addEventListener("scroll",r,{passive:!0}),i&&y.addEventListener("resize",r)});const f=u&&l?tX(u,r):null;let m=-1,p=null;o&&(p=new ResizeObserver(y=>{let[g]=y;g&&g.target===u&&p&&(p.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var j;(j=p)==null||j.observe(t)})),r()}),u&&!c&&p.observe(u),p.observe(t));let v,h=c?Bl(e):null;c&&x();function x(){const y=Bl(e);h&&!d$(h,y)&&r(),h=y,v=requestAnimationFrame(x)}return r(),()=>{var y;d.forEach(g=>{a&&g.removeEventListener("scroll",r),i&&g.removeEventListener("resize",r)}),f==null||f(),(y=p)==null||y.disconnect(),p=null,c&&cancelAnimationFrame(v)}}const nX=RK,aX=IK,sX=kK,iX=LK,oX=MK,rE=_K,lX=$K,cX=(e,t,r)=>{const n=new Map,a={platform:eX,...r},i={...a.platform,_c:n};return OK(e,t,{...a,platform:i})};var Ug=typeof document<"u"?b.useLayoutEffect:b.useEffect;function Ov(e,t){if(e===t)return!0;
vendor: 6,507 bytes, line 638
638if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let r,n,a;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(n=r;n--!==0;)if(!Ov(e[n],t[n]))return!1;return!0}if(a=Object.keys(e),r=a.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(t,a[n]))return!1;for(n=r;n--!==0;){const i=a[n];if(!(i==="_owner"&&e.$$typeof)&&!Ov(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function f$(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function nE(e,t){const r=f$(e);return Math.round(t*r)/r}function Rb(e){const t=b.useRef(e);return Ug(()=>{t.current=e}),t}function uX(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:a,elements:{reference:i,floating:o}={},transform:l=!0,whileElementsMounted:c,open:u}=e,[d,f]=b.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[m,p]=b.useState(n);Ov(m,n)||p(n);const[v,h]=b.useState(null),[x,y]=b.useState(null),g=b.useCallback(R=>{R!==N.current&&(N.current=R,h(R))},[]),j=b.useCallback(R=>{R!==P.current&&(P.current=R,y(R))},[]),S=i||v,w=o||x,N=b.useRef(null),P=b.useRef(null),C=b.useRef(d),A=c!=null,O=Rb(c),E=Rb(a),k=Rb(u),M=b.useCallback(()=>{if(!N.current||!P.current)return;const R={placement:t,strategy:r,middleware:m};E.current&&(R.platform=E.current),cX(N.current,P.current,R).then(I=>{const G={...I,isPositioned:k.current!==!1};D.current&&!Ov(C.current,G)&&(C.current=G,ic.flushSync(()=>{f(G)}))})},[m,t,r,E,k]);Ug(()=>{u===!1&&C.current.isPositioned&&(C.current.isPositioned=!1,f(R=>({...R,isPositioned:!1})))},[u]);const D=b.useRef(!1);Ug(()=>(D.current=!0,()=>{D.current=!1}),[]),Ug(()=>{if(S&&(N.current=S),w&&(P.current=w),S&&w){if(O.current)return O.current(S,w,M);M()}},[S,w,M,O,A]);const F=b.useMemo(()=>({reference:N,floating:P,setReference:g,setFloating:j}),[g,j]),L=b.useMemo(()=>({reference:S,floating:w}),[S,w]),B=b.useMemo(()=>{const R={position:r,left:0,top:0};if(!L.floating)return R;const I=nE(L.floating,d.x),G=nE(L.floating,d.y);return l?{...R,transform:"translate("+I+"px, "+G+"px)",...f$(L.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:I,top:G}},[r,l,L.floating,d.x,d.y]);return b.useMemo(()=>({...d,update:M,refs:F,elements:L,floatingStyles:B}),[d,M,F,L,B])}const dX=e=>{function t(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){const{element:n,padding:a}=typeof e=="function"?e(r):e;return n&&t(n)?n.current!=null?rE({element:n.current,padding:a}).fn(r):{}:n?rE({element:n,padding:a}).fn(r):{}}}},fX=(e,t)=>({...nX(e),options:[e,t]}),mX=(e,t)=>({...aX(e),options:[e,t]}),hX=(e,t)=>({...lX(e),options:[e,t]}),pX=(e,t)=>({...sX(e),options:[e,t]}),gX=(e,t)=>({...iX(e),options:[e,t]}),vX=(e,t)=>({...oX(e),options:[e,t]}),xX=(e,t)=>({...dX(e),options:[e,t]});var yX="Arrow",m$=b.forwardRef((e,t)=>{const{children:r,width:n=10,height:a=5,...i}=e;return s.jsx(Oe.svg,{...i,ref:t,width:n,height:a,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:s.jsx("polygon",{points:"0,0 30,0 15,10"})})});m$.displayName=yX;var bX=m$;function TS(e){const[t,r]=b.useState(void 0);return gr(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const n=new ResizeObserver(a=>{if(!Array.isArray(a)||!a.length)return;const i=a[0];let o,l;if("borderBoxSize"in i){const c=i.borderBoxSize,u=Array.isArray(c)?c[0]:c;o=u.inlineSize,l=u.blockSize}else o=e.offsetWidth,l=e.offsetHeight;r({width:o,height:l})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}else r(void 0)},[e]),t}var ES="Popper",[h$,Id]=kr(ES),[jX,p$]=h$(ES),g$=e=>{const{__scopePopper:t,children:r}=e,[n,a]=b.useState(null);return s.jsx(jX,{scope:t,anchor:n,onAnchorChange:a,children:r})};g$.displayName=ES;var v$="PopperAnchor",x$=b.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:n,...a}=e,i=p$(v$,r),o=b.useRef(null),l=it(t,o);return b.useEffect(()=>{i.onAnchorChange((n==null?void 0:n.current)||o.current)}),n?null:s.jsx(Oe.div,{...a,ref:l})});x$.displayName=v$;var OS="PopperContent",[wX,NX]=h$(OS),y$=b.forwardRef((e,t)=>{var Q,we,Z,V,ee,H;const{__scopePopper:r,side:n="bottom",sideOffset:a=0,align:i="center",alignOffset:o=0,arrowPadding:l=0,avoidCollisions:c=!0,collisionBoundary:u=[],collisionPadding:d=0,sticky:f="partial",hideWhenDetached:m=!1,updatePositionStrategy:p="optimized",onPlaced:v,...h}=e,x=p$(OS,r),[y,g]=b.useState(null),j=it(t,Re=>g(Re)),[S,w]=b.useState(null),N=TS(S),P=(N==null?void 0:N.width)??0,C=(N==null?void 0:N.height)??0,A=n+(i!=="center"?"-"+i:""),O=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},E=Array.isArray(u)?u:[u],k=E.length>0,M={padding:O,boundary:E.filter(PX),altBoundary:k},{refs:D,floatingStyles:F,placement:L,isPositioned:B,middlewareData:R}=uX({strategy:"fixed",placement:A,whileElementsMounted:(...Re)=>rX(...Re,{animationFrame:p==="always"}),elements:{reference:x.anchor},middleware:[fX({mainAxis:a+C,alignmentAxis:o}),c&&mX({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?hX():void 0,...M}),c&&pX({...M}),gX({...M,apply:({elements:Re,rects:Pe,availableWidth:te,availableHeight:Ie})=>{const{width:jt,height:Dr}=Pe.reference,ur=Re.floating.style;ur.setProperty("--radix-popper-available-width",`${te}px`),ur.setProperty("--radix-popper-available-height",`${Ie}px`),ur.setProperty("--radix-popper-anchor-width",`${jt}px`),ur.setProperty("--radix-popper-anchor-height",`${Dr}px`)}}),S&&xX({element:S,padding:l}),CX({arrowWidth:P,arrowHeight:C}),m&&vX({strategy:"referenceHidden",...M})]}),[I,G]=w$(L),U=Ur(v);gr(()=>{B&&(U==null||U())},[B,U]);const K=(Q=R.arrow)==null?void 0:Q.x,ce=(we=R.arrow)==null?void 0:we.y,pe=((Z=R.arrow)==null?void 0:Z.centerOffset)!==0,[Ke,q]=b.useState();return gr(()=>{y&&q(window.getComputedStyle(y).zIndex)},[y]),s.jsx("div",{ref:D.setFloating,"data-radix-popper-content-wrapper":"",style:{...F,transform:B?F.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Ke,"--radix-popper-transform-origin":[(V=R.transformOrigin)==null?void 0:V.x,(ee=R.transformOrigin)==null?void 0:ee.y].join(" "),...((H=R.hide)==null?void 0:H.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:s.jsx(wX,{scope:r,placedSide:I,onArrowChange:w,arrowX:K,arrowY:ce,shouldHideArrow:pe,children:s.jsx(Oe.div,{"data-side":I,"data-align":G,...h,ref:j,style:{...h.style,animation:B?void 0:"none"}})})})});y$.displayName=OS;var b$="PopperArrow",SX={top:"bottom",right:"left",bottom:"top",left:"r
638ight"},j$=b.forwardRef(function(t,r){const{__scopePopper:n,...a}=t,i=NX(b$,n),o=SX[i.placedSide];return s.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:s.jsx(bX,{...a,ref:r,style:{...a.style,display:"block"}})})});j$.displayName=b$;function PX(e){return e!==null}var CX=e=>({name:"transformOrigin",options:e,fn(t){var x,y,g;const{placement:r,rects:n,middlewareData:a}=t,o=((x=a.arrow)==null?void 0:x.centerOffset)!==0,l=o?0:e.arrowWidth,c=o?0:e.arrowHeight,[u,d]=w$(r),f={start:"0%",center:"50%",end:"100%"}[d],m=(((y=a.arrow)==null?void 0:y.x)??0)+l/2,p=(((g=a.arrow)==null?void 0:g.y)??0)+c/2;let v="",h="";return u==="bottom"?(v=o?f:`${m}px`,h=`${-c}px`):u==="top"?(v=o?f:`${m}px`,h=`${n.floating.height+c}px`):u==="right"?(v=`${-c}px`,h=o?f:`${p}px`):u==="left"&&(v=`${n.floating.width+c}px`,h=o?f:`${p}px`),{data:{x:v,y:h}}}});function w$(e){const[t,r="center"]=e.split("-");return[t,r]}var N$=g$,_S=x$,kS=y$,MS=j$,[Ry,dRe]=kr("Tooltip",[Id]),DS=Id(),S$="TooltipProvider",AX=700,aE="tooltip.open",[TX,P$]=Ry(S$),C$=e=>{const{__scopeTooltip:t,delayDuration:r=AX,skipDelayDuration:n=300,disableHoverableContent:a=!1,children:i}=e,o=b.useRef(!0),l=b.useRef(!1),c=b.useRef(0);return b.useEffect(()=>{const u=c.current;return()=>window.clearTimeout(u)},[]),s.jsx(TX,{scope:t,isOpenDelayedRef:o,delayDuration:r,onOpen:b.useCallback(()=>{window.clearTimeout(c.current),o.current=!1},[]),onClose:b.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>o.current=!0,n)},[n]),isPointerInTransitRef:l,onPointerInTransitChange:b.useCallback(u=>{l.current=u},[]),disableHoverableContent:a,children:i})};C$.displayName=S$;var A$="Tooltip",[fRe,Iy]=Ry(A$),F1="TooltipTrigger",EX=b.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,a=Iy(F1,r),i=P$(F1,r),o=DS(r),l=b.useRef(null),c=it(t,l,a.onTriggerChange),u=b.useRef(!1),d=b.useRef(!1),f=b.useCallback(()=>u.current=!1,[]);return b.useEffect(()=>()=>document.removeEventListener("pointerup",f),[f]),s.jsx(_S,{asChild:!0,...o,children:s.jsx(Oe.button,{"aria-describedby":a.open?a.contentId:void 0,"data-state":a.stateAttribute,...n,ref:c,onPointerMove:ue(e.onPointerMove,m=>{m.pointerType!=="touch"&&!d.current&&!i.isPointerInTransitRef.current&&(a.onTriggerEnter(),d.current=!0)}),onPointerLeave:ue(e.onPointerLeave,()=>{a.onTriggerLeave(),d.current=!1}),onPointerDown:ue(e.onPointerDown,()=>{a.open&&a.onClose(),u.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:ue(e.onFocus,()=>{u.current||a.onOpen()}),onBlur:ue(e.onBlur,a.onClose),onClick:ue(e.onClick,a.onClose)})})});EX.displayName=F1;var OX="TooltipPortal",[mRe,_X]=Ry(OX,{forceMount:void 0}),Gu="TooltipContent",T$=b.forwardRef((e,t)=>{const r=_X(Gu,e.__scopeTooltip),{forceMount:n=r.forceMount,side:a="top",...i}=e,o=Iy(Gu,e.__scopeTooltip);return s.jsx(Qn,{present:n||o.open,children:o.disableHoverableContent?s.jsx(E$,{side:a,...i,ref:t}):s.jsx(kX,{side:a,...i,ref:t})})}),kX=b.forwardRef((e,t)=>{const r=Iy(Gu,e.__scopeTooltip),n=P$(Gu,e.__scopeTooltip),a=b.useRef(null),i=it(t,a),[o,l]=b.useState(null),{trigger:c,onClose:u}=r,d=a.current,{onPointerInTransitChange:f}=n,m=b.useCallback(()=>{l(null),f(!1)},[f]),p=b.useCallback((v,h)=>{const x=v.currentTarget,y={x:v.clientX,y:v.clientY},g=$X(y,x.getBoundingClientRect()),j=LX(y,g),S=FX(h.getBoundingClientRect()),w=zX([...j,...S]);l(w),f(!0)},[f]);return b.useEffect(()=>()=>m(),[m]),b.useEffect(()=>{if(c&&d){const v=x=>p(x,d),h=x=>p(x,c);return c.addEventListener("pointerleave",v),d.addEventListener("pointerleave",h),()=>{c.removeEventListener("pointerleave",v),d.removeEventListener("pointerleave",h)}}},[c,d,p,m]),b.useEffect(()=>{if(o){const v=h=>{const x=h.target,y={x:h.clientX,y:h.clientY},g=(c==null?void 0:c.contains(x))||(d==null?void 0:d.contains(x)),j=!VX(y,o);g?m():j&&(m(),u())};return document.addEventListener("pointermove",v),()=>document.removeEventListener("pointermove",v)}},[c,d,o,u,m]),s.jsx(E$,{...e,ref:i})}),[MX,DX]=Ry(A$,{isInside:!1}),RX=m5("TooltipContent"),E$=b.forwardRef((e,t)=>
638{const{__scopeTooltip:r,children:n,"aria-label":a,onEscapeKeyDown:i,onPointerDownOutside:o,...l}=e,c=Iy(Gu,r),u=DS(r),{onClose:d}=c;return b.useEffect(()=>(document.addEventListener(aE,d),()=>document.removeEventListener(aE,d)),[d]),b.useEffect(()=>{if(c.trigger){const f=m=>{const p=m.target;p!=null&&p.contains(c.trigger)&&d()};return window.addEventListener("scroll",f,{capture:!0}),()=>window.removeEventListener("scroll",f,{capture:!0})}},[c.trigger,d]),s.jsx(Od,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:f=>f.preventDefault(),onDismiss:d,children:s.jsxs(kS,{"data-state":c.stateAttribute,...u,...l,ref:t,style:{...l.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[s.jsx(RX,{children:n}),s.jsx(MX,{scope:r,isInside:!0,children:s.jsx(EH,{id:c.contentId,role:"tooltip",children:a||n})})]})})});T$.displayName=Gu;var O$="TooltipArrow",IX=b.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,a=DS(r);return DX(O$,r).isInside?null:s.jsx(MS,{...a,...n,ref:t})});IX.displayName=O$;function $X(e,t){const r=Math.abs(t.top-e.y),n=Math.abs(t.bottom-e.y),a=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(r,n,a,i)){case i:return"left";case a:return"right";case r:return"top";case n:return"bottom";default:throw new Error("unreachable")}}function LX(e,t,r=5){const n=[];switch(t){case"top":n.push({x:e.x-r,y:e.y+r},{x:e.x+r,y:e.y+r});break;case"bottom":n.push({x:e.x-r,y:e.y-r},{x:e.x+r,y:e.y-r});break;case"left":n.push({x:e.x+r,y:e.y-r},{x:e.x+r,y:e.y+r});break;case"right":n.push({x:e.x-r,y:e.y-r},{x:e.x-r,y:e.y+r});break}return n}function FX(e){const{top:t,right:r,bottom:n,left:a}=e;return[{x:a,y:t},{x:r,y:t},{x:r,y:n},{x:a,y:n}]}function VX(e,t){const{x:r,y:n}=e;let a=!1;for(let i=0,o=t.length-1;i<t.length;o=i++){const l=t[i].x,c=t[i].y,u=t[o].x,d=t[o].y;c>n!=d>n&&r<(u-l)*(n-c)/(d-c)+l&&(a=!a)}return a}function zX(e){const t=e.slice();return t.sort((r,n)=>r.x<n.x?-1:r.x>n.x?1:r.y<n.y?-1:r.y>n.y?1:0),BX(t)}function BX(e){if(e.length<=1)return e.slice();const t=[];for(let n=0;n<e.length;n++){const a=e[n];for(;t.length>=2;){const i=t[t.length-1],o=t[t.length-2];if((i.x-o.x)*(a.y-o.y)>=(i.y-o.y)*(a.x-o.x))t.pop();else break}t.push(a)}t.pop();const r=[];for(let n=e.length-1;n>=0;n--){const a=e[n];for(;r.length>=2;){const i=r[r.length-1],o=r[r.length-2];if((i.x-o.x)*(a.y-o.y)>=(i.y-o.y)*(a.x-o.x))r.pop();else break}r.push(a)}return r.pop(),t.length===1&&r.length===1&&t[0].x===r[0].x&&t[0].y===r[0].y?t:t.concat(r)}var UX=C$,_$=T$;const WX=UX,qX=b.forwardRef(({className:e,sideOffset:t=4,...r},n)=>s.jsx(_$,{ref:n,sideOffset:t,className:ie("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-tooltip-content-transform-origin]",e),...r}));qX.displayName=_$.displayName;var $d=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Ul=typeof window>"u"||"Deno"in globalThis;function ia(){}function HX(e,t){return typeof e=="function"?e(t):e}function V1(e){return typeof e=="number"&&e>=0&&e!==1/0}function k$(e,t){return Math.max(e+(t||0)-Date.now(),0)}function du(e,t){return typeof e=="function"?e(t):e}function Ra(e,t){return typeof e=="function"?e(t):e}function sE(e,t){const{type:r="all",exact:n,fetchStatus:a,predicate:i,queryKey:o,stale:l}=e;if(o){if(n){if(t.queryHash!==RS(o,t.options))return!1}else if(!Wm(t.queryKey,o))return!1}if(r!=="all"){const c=t.isActive();if(r==="active"&&!c||r==="inactive"&&c)return!1}return!(typeof l=="boolean"&&t.isStale()!==l||a&&a!==t.state.fetchStatus||i&&!i(t))}function iE(e,t){const{exact:r,status:n,predicate:a,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(r){if(Wl(t.options.mutationKey)!==Wl(i))return!1}else if(!Wm(t.options.mutationKey,i))return!1}return!(n&&t.state.status!==n||a&&!a(t))}function RS(e,t){return((t==null?void 0:t.queryKeyHashFn)||Wl)(e)}function Wl(e){return JSON.stringify(e,(t,r)=>z1(r)?Object.keys(r).sort().reduce((n,a)=>(n[a]=r[a],n),{}):r)}function Wm(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(r=>!Wm(e[r],t[r])):!1}function M$(e,t){if(e===t)return e;const r=oE(e)&&oE(t);if(r||z1(e)&&z1(t)){const n=r?e:Object.keys(e),a=n.length,i=r?t:Object.keys(t),o=i.length,l=r?[]:{};let c=0;for(let u=0;u<o;u++){const d=r?u:i[u];(!r&&n.includes(d)||r)&&e[d]===void 0&&t[d]===void 0?(l[d]=void 0,c++):(l[d]=M$(e[d],t[d]),l[d]===e[d]&&e[d]!==void 0&&c++)}return a===o&&c===a?e:l}return t}function _v(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(e[r]!==t[r])return!1;return!0}function oE(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function z1(e){if(!lE(e))return!1;const t=e.constructor;if(t===void 0)return!0;const r=t.prototype;return!(!lE(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function lE(e){return Object.prototype.toString.call(e)==="[object Object]"}function GX(e){return new Promise(t=>{setTimeout(t,e)})}function B1(e,t,r){return typeof r.structuralSharing=="function"?r.structuralSharing(e,t):r.structuralSharing!==!1?M$(e,t):t}function KX(e,t,r=0){const n=[...e,t];return r&&n.length>r?n.slice(1):n}function XX(e,t,r=0){const n=[t,...e];return r&&n.length>r?n.slice(0,-1):n}var IS=Symbol();function D$(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===IS?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var bl,Gi,wu,OD,YX=(OD=class extends $d{constructor(){super();Fe(this,bl);Fe(this,Gi);Fe(this,wu);be(this,wu,t=>{if(!Ul&&window.addEventListener){const r=()=>t();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){$(this,Gi)||this.setEventListener($(this,wu))}onUnsubscribe(){var t;this.hasListeners()||((t=$(this,Gi))==null||t.call(this),be(this,Gi,void 0))}setEventListener(t){var r;be(this,wu,t),(r=$(this,Gi))==null||r.call(this),be(this,Gi,t(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()}))}setFocused(t){$(this,bl)!==t&&(be(this,bl,t),this.onFocus())}onFocus(){const t=this.isFocused();
vendor: 35,409 bytes, line 638
638this.listeners.forEach(r=>{r(t)})}isFocused(){var t;return typeof $(this,bl)=="boolean"?$(this,bl):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},bl=new WeakMap,Gi=new WeakMap,wu=new WeakMap,OD),$S=new YX,Nu,Ki,Su,_D,ZX=(_D=class extends $d{constructor(){super();Fe(this,Nu,!0);Fe(this,Ki);Fe(this,Su);be(this,Su,t=>{if(!Ul&&window.addEventListener){const r=()=>t(!0),n=()=>t(!1);return window.addEventListener("online",r,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",n)}}})}onSubscribe(){$(this,Ki)||this.setEventListener($(this,Su))}onUnsubscribe(){var t;this.hasListeners()||((t=$(this,Ki))==null||t.call(this),be(this,Ki,void 0))}setEventListener(t){var r;be(this,Su,t),(r=$(this,Ki))==null||r.call(this),be(this,Ki,t(this.setOnline.bind(this)))}setOnline(t){$(this,Nu)!==t&&(be(this,Nu,t),this.listeners.forEach(n=>{n(t)}))}isOnline(){return $(this,Nu)}},Nu=new WeakMap,Ki=new WeakMap,Su=new WeakMap,_D),kv=new ZX;function U1(){let e,t;const r=new Promise((a,i)=>{e=a,t=i});r.status="pending",r.catch(()=>{});function n(a){Object.assign(r,a),delete r.resolve,delete r.reject}return r.resolve=a=>{n({status:"fulfilled",value:a}),e(a)},r.reject=a=>{n({status:"rejected",reason:a}),t(a)},r}function QX(e){return Math.min(1e3*2**e,3e4)}function R$(e){return(e??"online")==="online"?kv.isOnline():!0}var I$=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Ib(e){return e instanceof I$}function $$(e){let t=!1,r=0,n=!1,a;const i=U1(),o=h=>{var x;n||(m(new I$(h)),(x=e.abort)==null||x.call(e))},l=()=>{t=!0},c=()=>{t=!1},u=()=>$S.isFocused()&&(e.networkMode==="always"||kv.isOnline())&&e.canRun(),d=()=>R$(e.networkMode)&&e.canRun(),f=h=>{var x;n||(n=!0,(x=e.onSuccess)==null||x.call(e,h),a==null||a(),i.resolve(h))},m=h=>{var x;n||(n=!0,(x=e.onError)==null||x.call(e,h),a==null||a(),i.reject(h))},p=()=>new Promise(h=>{var x;a=y=>{(n||u())&&h(y)},(x=e.onPause)==null||x.call(e)}).then(()=>{var h;a=void 0,n||(h=e.onContinue)==null||h.call(e)}),v=()=>{if(n)return;let h;const x=r===0?e.initialPromise:void 0;try{h=x??e.fn()}catch(y){h=Promise.reject(y)}Promise.resolve(h).then(f).catch(y=>{var N;if(n)return;const g=e.retry??(Ul?0:3),j=e.retryDelay??QX,S=typeof j=="function"?j(r,y):j,w=g===!0||typeof g=="number"&&r<g||typeof g=="function"&&g(r,y);if(t||!w){m(y);return}r++,(N=e.onFail)==null||N.call(e,r,y),GX(S).then(()=>u()?void 0:p()).then(()=>{t?m(y):v()})})};return{promise:i,cancel:o,continue:()=>(a==null||a(),i),cancelRetry:l,continueRetry:c,canStart:d,start:()=>(d()?v():p().then(v),i)}}function JX(){let e=[],t=0,r=l=>{l()},n=l=>{l()},a=l=>setTimeout(l,0);const i=l=>{t?e.push(l):a(()=>{r(l)})},o=()=>{const l=e;e=[],l.length&&a(()=>{n(()=>{l.forEach(c=>{r(c)})})})};return{batch:l=>{let c;t++;try{c=l()}finally{t--,t||o()}return c},batchCalls:l=>(...c)=>{i(()=>{l(...c)})},schedule:i,setNotifyFunction:l=>{r=l},setBatchNotifyFunction:l=>{n=l},setScheduler:l=>{a=l}}}var jr=JX(),jl,kD,L$=(kD=class{constructor(){Fe(this,jl)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),V1(this.gcTime)&&be(this,jl,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Ul?1/0:5*60*1e3))}clearGcTimeout(){$(this,jl)&&(clearTimeout($(this,jl)),be(this,jl,void 0))}},jl=new WeakMap,kD),Pu,Cu,sa,Gr,Xh,wl,_a,Vs,MD,eY=(MD=class extends L${constructor(t){super();Fe(this,_a);Fe(this,Pu);Fe(this,Cu);Fe(this,sa);Fe(this,Gr);Fe(this,Xh);Fe(this,wl);be(this,wl,!1),be(this,Xh,t.defaultOptions),this.setOptions(t.options),this.observers=[],be(this,sa,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,be(this,Pu,tY(this.options)),this.state=t.state??$(this,Pu),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=$(this,Gr))==null?void 0:t.promise}setOptions(t){this.options={...$(this,Xh),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&$(this,sa).remove(this)}setData(t,r){const n=B1(this.state.data,t,this.options);return at(this,_a,Vs).call(this,{data:n,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),n}setState(t,r){at(this,_a,Vs).call(this,{type:"setState",state:t,setStateOptions:r})}cancel(t){var n,a;const r=(n=$(this,Gr))==null?void 0:n.promise;return(a=$(this,Gr))==null||a.cancel(t),r?r.then(ia).catch(ia):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState($(this,Pu))}isActive(){return this.observers.some(t=>Ra(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===IS||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!k$(this.state.dataUpdatedAt,t)}onFocus(){var r;const t=this.observers.find(n=>n.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(r=$(this,Gr))==null||r.continue()}onOnline(){var r;const t=this.observers.find(n=>n.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(r=$(this,Gr))==null||r.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),$(this,sa).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(r=>r!==t),this.observers.length||($(this,Gr)&&($(this,wl)?$(this,Gr).cancel({revert:!0}):$(this,Gr).cancelRetry()),this.scheduleGc()),$(this,sa).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||at(this,_a,Vs).call(this,{type:"invalidate"})}fetch(t,r){var c,u,d;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(r!=null&&r.cancelRefetch))this.cancel({silent:!0});else if($(this,Gr))return $(this,Gr).continueRetry(),$(this,Gr).promise}if(t&&this.setOptions(t),!this.options.queryFn){const f=this.observers.find(m=>m.options.queryFn);f&&this.setOptions(f.options)}const n=new AbortController,a=f=>{Object.defineProperty(f,"signal",{enumerable:!0,get:()=>(be(this,wl,!0),n.signal)})},i=()=>{const f=D$(this.options,r),m={queryKey:this.queryKey,meta:this.meta};return a(m),be(this,wl,!1),this.options.persister?this.options.persister(f,m,this):f(m)},o={fetchOptions:r,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:i};a(o),(c=this.options.behavior)==null||c.onFetch(o,this),be(this,Cu,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((u=o.fetchOptions)==null?void 0:u.meta))&&at(this,_a,Vs).call(this,{type:"fetch",meta:(d=o.fetchOptions)==null?void 0:d.meta});const l=f=>{var m,p,v,h;Ib(f)&&f.silent||at(this,_a,Vs).call(this,{type:"error",error:f}),Ib(f)||((p=(m=$(this,sa).config).onError)==null||p.call(m,f,this),(h=(v=$(this,sa).config).onSettled)==null||h.call(v,this.state.data,f,this)),this.scheduleGc()};return be(this,Gr,$$({initialPromise:r==null?void 0:r.initialPromise,fn:o.fetchFn,abort:n.abort.bind(n),onSuccess:f=>{var m,p,v,h;if(f===void 0){l(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(f)}catch(x){l(x);return}(p=(m=$(this,sa).config).onSuccess)==null||p.call(m,f,this),(h=(v=$(this,sa).config).onSettled)==null||h.call(v,f,this.state.error,this),this.scheduleGc()},onError:l,onFail:(f,m)=>{at(this,_a,Vs).call(this,{type:"failed",failureCount:f,error:m})},onPause:()=>{at(this,_a,Vs).call(this,{type:"pause"})},onContinue:()=>{at(this,_a,Vs).call(this,{type:"continue"})},retry:o.options.retry,retryDelay:o.options.retryDelay,networkMode:o.options.networkMode,canRun:()=>!0})),$(this,Gr).start()}},Pu=new WeakMap,Cu=new WeakMap,sa=new WeakMap,Gr=new WeakMap,Xh=new WeakMap,wl=new WeakMap,_a=new WeakSet,Vs=function(t){const r=n=>{switch(t.type){case"failed":return{...n,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...F$(n.data,this.options),fetchMeta:t.meta??null};case"success":return{...n,data:t.data,dataUpdateCount:n.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const a=t.error;return Ib(a)&&a.revert&&$(this,Cu)?{...$(this,Cu),fetchStatus:"idle"}:{...n,error:a,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error"};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...t.state}}};this.state=r(this.state),jr.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),$(this,sa).notify({query:this,type:"updated",action:t})})},MD);function F$(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:R$(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function tY(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,r=t!==void 0,n=r?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var rs,DD,rY=(DD=class extends $d{constructor(t={}){super();Fe(this,rs);this.config=t,be(this,rs,new Map)}build(t,r,n){const a=r.queryKey,i=r.queryHash??RS(a,r);let o=this.get(i);return o||(o=new eY({cache:this,queryKey:a,queryHash:i,options:t.defaultQueryOptions(r),state:n,defaultOptions:t.getQueryDefaults(a)}),this.add(o)),o}add(t){$(this,rs).has(t.queryHash)||($(this,rs).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const r=$(this,rs).get(t.queryHash);r&&(t.destroy(),r===t&&$(this,rs).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){jr.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return $(this,rs).get(t)}getAll(){return[...$(this,rs).values()]}find(t){const r={exact:!0,...t};return this.getAll().find(n=>sE(r,n))}findAll(t={}){const r=this.getAll();return Object.keys(t).length>0?r.filter(n=>sE(t,n)):r}notify(t){jr.batch(()=>{this.listeners.forEach(r=>{r(t)})})}onFocus(){jr.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){jr.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},rs=new WeakMap,DD),ns,sn,Nl,as,Ii,RD,nY=(RD=class extends L${constructor(t){super();Fe(this,as);Fe(this,ns);Fe(this,sn);Fe(this,Nl);this.mutationId=t.mutationId,be(this,sn,t.mutationCache),be(this,ns,[]),this.state=t.state||V$(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){$(this,ns).includes(t)||($(this,ns).push(t),this.clearGcTimeout(),$(this,sn).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){be(this,ns,$(this,ns).filter(r=>r!==t)),this.scheduleGc(),$(this,sn).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){$(this,ns).length||(this.state.status==="pending"?this.scheduleGc():$(this,sn).remove(this))}continue(){var t;return((t=$(this,Nl))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var a,i,o,l,c,u,d,f,m,p,v,h,x,y,g,j,S,w,N,P;be(this,Nl,$$({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(C,A)=>{at(this,as,Ii).call(this,{type:"failed",failureCount:C,error:A})},onPause:()=>{at(this,as,Ii).call(this,{type:"pause"})},onContinue:()=>{at(this,as,Ii).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>$(this,sn).canRun(this)}));const r=this.state.status==="pending",n=!$(this,Nl).canStart();try{if(!r){at(this,as,Ii).call(this,{type:"pending",variables:t,isPaused:n}),await((i=(a=$(this,sn).config).onMutate)==null?void 0:i.call(a,t,this));const A=await((l=(o=this.options).onMutate)==null?void 0:l.call(o,t));A!==this.state.context&&at(this,as,Ii).call(this,{type:"pending",context:A,variables:t,isPaused:n})}const C=await $(this,Nl).start();return await((u=(c=$(this,sn).config).onSuccess)==null?void 0:u.call(c,C,t,this.state.context,this)),await((f=(d=this.options).onSuccess)==null?void 0:f.call(d,C,t,this.state.context)),await((p=(m=$(this,sn).config).onSettled)==null?void 0:p.call(m,C,null,this.state.variables,this.state.context,this)),await((h=(v=this.options).onSettled)==null?void 0:h.call(v,C,null,t,this.state.context)),at(this,as,Ii).call(this,{type:"success",data:C}),C}catch(C){try{throw await((y=(x=$(this,sn).config).onError)==null?void 0:y.call(x,C,t,this.state.context,this)),await((j=(g=this.options).onError)==null?void 0:j.call(g,C,t,this.state.context)),await((w=(S=$(this,sn).config).onSettled)==null?void 0:w.call(S,void 0,C,this.state.variables,this.state.context,this)),await((P=(N=this.options).onSettled)==null?void 0:P.call(N,void 0,C,t,this.state.context)),C}finally{at(this,as,Ii).call(this,{type:"error",error:C})}}finally{$(this,sn).runNext(this)}}},ns=new WeakMap,sn=new WeakMap,Nl=new WeakMap,as=new WeakSet,Ii=function(t){const r=n=>{switch(t.type){case"failed":return{...n,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...n,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:t.error,failureCount:n.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=r(this.state),jr.batch(()=>{$(this,ns).forEach(n=>{n.onMutationUpdate(t)}),$(this,sn).notify({mutation:this,type:"updated",action:t})})},RD);function V$(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Rn,Yh,ID,aY=(ID=class extends $d{constructor(t={}){super();Fe(this,Rn);Fe(this,Yh);this.config=t,be(this,Rn,new Map),be(this,Yh,Date.now())}build(t,r,n){const a=new nY({mutationCache:this,mutationId:++Mp(this,Yh)._,options:t.defaultMutationOptions(r),state:n});return this.add(a),a}add(t){const r=tg(t),n=$(this,Rn).get(r)??[];n.push(t),$(this,Rn).set(r,n),this.notify({type:"added",mutation:t})}remove(t){var n;const r=tg(t);if($(this,Rn).has(r)){const a=(n=$(this,Rn).get(r))==null?void 0:n.filter(i=>i!==t);a&&(a.length===0?$(this,Rn).delete(r):$(this,Rn).set(r,a))}this.notify({type:"removed",mutation:t})}canRun(t){var n;const r=(n=$(this,Rn).get(tg(t)))==null?void 0:n.find(a=>a.state.status==="pending");return!r||r===t}runNext(t){var n;const r=(n=$(this,Rn).get(tg(t)))==null?void 0:n.find(a=>a!==t&&a.state.isPaused);return(r==null?void 0:r.continue())??Promise.resolve()}clear(){jr.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}getAll(){return[...$(this,Rn).values()].flat()}find(t){const r={exact:!0,...t};return this.getAll().find(n=>iE(r,n))}findAll(t={}){return this.getAll().filter(r=>iE(t,r))}notify(t){jr.batch(()=>{this.listeners.forEach(r=>{r(t)})})}resumePausedMutations(){const t=this.getAll().filter(r=>r.state.isPaused);return jr.batch(()=>Promise.all(t.map(r=>r.continue().catch(ia))))}},Rn=new WeakMap,Yh=new WeakMap,ID);function tg(e){var t;return((t=e.options.scope)==null?void 0:t.id)??String(e.mutationId)}function cE(e){return{onFetch:(t,r)=>{var d,f,m,p,v;const n=t.options,a=(m=(f=(d=t.fetchOptions)==null?void 0:d.meta)==null?void 0:f.fetchMore)==null?void 0:m.direction,i=((p=t.state.data)==null?void 0:p.pages)||[],o=((v=t.state.data)==null?void 0:v.pageParams)||[];let l={pages:[],pageParams:[]},c=0;const u=async()=>{let h=!1;const x=j=>{Object.defineProperty(j,"signal",{enumerable:!0,get:()=>(t.signal.aborted?h=!0:t.signal.addEventListener("abort",()=>{h=!0}),t.signal)})},y=D$(t.options,t.fetchOptions),g=async(j,S,w)=>{if(h)return Promise.reject();if(S==null&&j.pages.length)return Promise.resolve(j);const N={queryKey:t.queryKey,pageParam:S,direction:w?"backward":"forward",meta:t.options.meta};x(N);const P=await y(N),{maxPages:C}=t.options,A=w?XX:KX;return{pages:A(j.pages,P,C),pageParams:A(j.pageParams,S,C)}};if(a&&i.length){const j=a==="backward",S=j?sY:uE,w={pages:i,pageParams:o},N=S(n,w);l=await g(w,N,j)}else{const j=e??i.length;do{const S=c===0?o[0]??n.initialPageParam:uE(n,l);if(c>0&&S==null)break;l=await g(l,S),c++}while(c<j)}return l};t.options.persister?t.fetchFn=()=>{var h,x;return(x=(h=t.options).persister)==null?void 0:x.call(h,u,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r)}:t.fetchFn=u}}}function uE(e,{pages:t,pageParams:r}){const n=t.length-1;return t.length>0?e.getNextPageParam(t[n],t,r[n],r):void 0}function sY(e,{pages:t,pageParams:r}){var n;return t.length>0?(n=e.getPreviousPageParam)==null?void 0:n.call(e,t[0],t,r[0],r):void 0}var rr,Xi,Yi,Au,Tu,Zi,Eu,Ou,$D,iY=($D=class{constructor(e={}){Fe(this,rr);Fe(this,Xi);Fe(this,Yi);Fe(this,Au);Fe(this,Tu);Fe(this,Zi);Fe(this,Eu);Fe(this,Ou);be(this,rr,e.queryCache||new rY),be(this,Xi,e.mutationCache||new aY),be(this,Yi,e.defaultOptions||{}),be(this,Au,new Map),be(this,Tu,new Map),be(this,Zi,0)}mount(){Mp(this,Zi)._++,$(this,Zi)===1&&(be(this,Eu,$S.subscribe(async e=>{e&&(await this.resumePausedMutations(),$(this,rr).onFocus())})),be(this,Ou,kv.subscribe(async e=>{e&&(await this.resumePausedMutations(),$(this,rr).onOnline())})))}unmount(){var e,t;Mp(this,Zi)._--,$(this,Zi)===0&&((e=$(this,Eu))==null||e.call(this),be(this,Eu,void 0),(t=$(this,Ou))==null||t.call(this),be(this,Ou,void 0))}isFetching(e){return $(this,rr).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return $(this,Xi).findAll({...e,status:"pending"}).length}getQueryData(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=$(this,rr).get(t.queryHash))==null?void 0:r.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);if(t===void 0)return this.fetchQuery(e);{const r=this.defaultQueryOptions(e),n=$(this,rr).build(this,r);return e.revalidateIfStale&&n.isStaleByTime(du(r.staleTime,n))&&this.prefetchQuery(r),Promise.resolve(t)}}getQueriesData(e){return $(this,rr).findAll(e).map(({queryKey:t,state:r})=>{const n=r.data;return[t,n]})}setQueryData(e,t,r){const n=this.defaultQueryOptions({queryKey:e}),a=$(this,rr).get(n.queryHash),i=a==null?void 0:a.state.data,o=HX(t,i);if(o!==void 0)return $(this,rr).build(this,n).setData(o,{...r,manual:!0})}setQueriesData(e,t,r){return jr.batch(()=>$(this,rr).findAll(e).map(({queryKey:n})=>[n,this.setQueryData(n,t,r)]))}getQueryState(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=$(this,rr).get(t.queryHash))==null?void 0:r.state}removeQueries(e){const t=$(this,rr);jr.batch(()=>{t.findAll(e).forEach(r=>{t.remove(r)})})}resetQueries(e,t){const r=$(this,rr),n={type:"active",...e};return jr.batch(()=>(r.findAll(e).forEach(a=>{a.reset()}),this.refetchQueries(n,t)))}cancelQueries(e={},t={}){const r={revert:!0,...t},n=jr.batch(()=>$(this,rr).findAll(e).map(a=>a.cancel(r)));return Promise.all(n).then(ia).catch(ia)}invalidateQueries(e={},t={}){return jr.batch(()=>{if($(this,rr).findAll(e).forEach(n=>{n.invalidate()}),e.refetchType==="none")return Promise.resolve();const r={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(r,t)})}refetchQueries(e={},t){const r={...t,cancelRefetch:(t==null?void 0:t.cancelRefetch)??!0},n=jr.batch(()=>$(this,rr).findAll(e).filter(a=>!a.isDisabled()).map(a=>{let i=a.fetch(void 0,r);return r.throwOnError||(i=i.catch(ia)),a.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(n).then(ia)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const r=$(this,rr).build(this,t);return r.isStaleByTime(du(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(ia).catch(ia)}fetchInfiniteQuery(e){return e.behavior=cE(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(ia).catch(ia)}ensureInfiniteQueryData(e){return e.behavior=cE(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return kv.isOnline()?$(this,Xi).resumePausedMutations():Promise.resolve()}getQueryCache(){return $(this,rr)}getMutationCache(){return $(this,Xi)}getDefaultOptions(){return $(this,Yi)}setDefaultOptions(e){be(this,Yi,e)}setQueryDefaults(e,t){$(this,Au).set(Wl(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...$(this,Au).values()];let r={};return t.forEach(n=>{Wm(e,n.queryKey)&&(r={...r,...n.defaultOptions})}),r}setMutationDefaults(e,t){$(this,Tu).set(Wl(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...$(this,Tu).values()];let r={};return t.forEach(n=>{Wm(e,n.mutationKey)&&(r={...r,...n.defaultOptions})}),r}defaultQueryOptions(e){if(e._defaulted)return e;const t={...$(this,Yi).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=RS(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.enabled!==!0&&t.queryFn===IS&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...$(this,Yi).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){$(this,rr).clear(),$(this,Xi).clear()}},rr=new WeakMap,Xi=new WeakMap,Yi=new WeakMap,Au=new WeakMap,Tu=new WeakMap,Zi=new WeakMap,Eu=new WeakMap,Ou=new WeakMap,$D),Sn,lt,Zh,on,Sl,_u,Qi,ss,Qh,ku,Mu,Pl,Cl,Ji,Du,yt,If,W1,q1,H1,G1,K1,X1,Y1,z$,LD,oY=(LD=class extends $d{constructor(t,r){super();Fe(this,yt);Fe(this,Sn);Fe(this,lt);Fe(this,Zh);Fe(this,on);Fe(this,Sl);Fe(this,_u);Fe(this,Qi);Fe(this,ss);Fe(this,Qh);Fe(this,ku);Fe(this,Mu);Fe(this,Pl);Fe(this,Cl);Fe(this,Ji);Fe(this,Du,new Set);this.options=r,be(this,Sn,t),be(this,ss,null),be(this,Qi,U1()),this.options.experimental_prefetchInRender||$(this,Qi).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(r)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&($(this,lt).addObserver(this),dE($(this,lt),this.options)?at(this,yt,If).call(this):this.updateResult(),at(this,yt,G1).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Z1($(this,lt),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Z1($(this,lt),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,at(this,yt,K1).call(this),at(this,yt,X1).call(this),$(this,lt).removeObserver(this)}setOptions(t,r){const n=this.options,a=$(this,lt);if(this.options=$(this,Sn).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Ra(this.options.enabled,$(this,lt))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");at(this,yt,Y1).call(this),$(this,lt).setOptions(this.options),n._defaulted&&!_v(this.options,n)&&$(this,Sn).getQueryCache().notify({type:"observerOptionsUpdated",query:$(this,lt),observer:this});const i=this.hasListeners();i&&fE($(this,lt),a,this.options,n)&&at(this,yt,If).call(this),this.updateResult(r),i&&($(this,lt)!==a||Ra(this.options.enabled,$(this,lt))!==Ra(n.enabled,$(this,lt))||du(this.options.staleTime,$(this,lt))!==du(n.staleTime,$(this,lt)))&&at(this,yt,W1).call(this);const o=at(this,yt,q1).call(this);i&&($(this,lt)!==a||Ra(this.options.enabled,$(this,lt))!==Ra(n.enabled,$(this,lt))||o!==$(this,Ji))&&at(this,yt,H1).call(this,o)}getOptimisticResult(t){const r=$(this,Sn).getQueryCache().build($(this,Sn),t),n=this.createResult(r,t);return cY(this,n)&&(be(this,on,n),be(this,_u,this.options),be(this,Sl,$(this,lt).state)),n}getCurrentResult(){return $(this,on)}trackResult(t,r){const n={};return Object.keys(t).forEach(a=>{Object.defineProperty(n,a,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(a),r==null||r(a),t[a])})}),n}trackProp(t){$(this,Du).add(t)}getCurrentQuery(){return $(this,lt)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const r=$(this,Sn).defaultQueryOptions(t),n=$(this,Sn).getQueryCache().build($(this,Sn),r);return n.fetch().then(()=>this.createResult(n,r))}fetch(t){return at(this,yt,If).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),$(this,on)))}createResult(t,r){var C;const n=$(this,lt),a=this.options,i=$(this,on),o=$(this,Sl),l=$(this,_u),u=t!==n?t.state:$(this,Zh),{state:d}=t;let f={...d},m=!1,p;if(r._optimisticResults){const A=this.hasListeners(),O=!A&&dE(t,r),E=A&&fE(t,n,r,a);(O||E)&&(f={...f,...F$(d.data,t.options)}),r._optimisticResults==="isRestoring"&&(f.fetchStatus="idle")}let{error:v,errorUpdatedAt:h,status:x}=f;if(r.select&&f.data!==void 0)if(i&&f.data===(o==null?void 0:o.data)&&r.select===$(this,Qh))p=$(this,ku);else try{be(this,Qh,r.select),p=r.select(f.data),p=B1(i==null?void 0:i.data,p,r),be(this,ku,p),be(this,ss,null)}catch(A){be(this,ss,A)}else p=f.data;if(r.placeholderData!==void 0&&p===void 0&&x==="pending"){let A;if(i!=null&&i.isPlaceholderData&&r.placeholderData===(l==null?void 0:l.placeholderData))A=i.data;else if(A=typeof r.placeholderData=="function"?r.placeholderData((C=$(this,Mu))==null?void 0:C.state.data,$(this,Mu)):r.placeholderData,r.select&&A!==void 0)try{A=r.select(A),be(this,ss,null)}catch(O){be(this,ss,O)}A!==void 0&&(x="success",p=B1(i==null?void 0:i.data,A,r),m=!0)}$(this,ss)&&(v=$(this,ss),p=$(this,ku),h=Date.now(),x="error");const y=f.fetchStatus==="fetching",g=x==="pending",j=x==="error",S=g&&y,w=p!==void 0,P={status:x,fetchStatus:f.fetchStatus,isPending:g,isSuccess:x==="success",isError:j,isInitialLoading:S,isLoading:S,data:p,dataUpdatedAt:f.dataUpdatedAt,error:v,errorUpdatedAt:h,failureCount:f.fetchFailureCount,failureReason:f.fetchFailureReason,errorUpdateCount:f.errorUpdateCount,isFetched:f.dataUpdateCount>0||f.errorUpdateCount>0,isFetchedAfterMount:f.dataUpdateCount>u.dataUpdateCount||f.errorUpdateCount>u.errorUpdateCount,isFetching:y,isRefetching:y&&!g,isLoadingError:j&&!w,isPaused:f.fetchStatus==="paused",isPlaceholderData:m,isRefetchError:j&&w,isStale:LS(t,r),refetch:this.refetch,promise:$(this,Qi)};if(this.options.experimental_prefetchInRender){const A=k=>{P.status==="error"?k.reject(P.error):P.data!==void 0&&k.resolve(P.data)},O=()=>{const k=be(this,Qi,P.promise=U1());A(k)},E=$(this,Qi);switch(E.status){case"pending":t.queryHash===n.queryHash&&A(E);break;case"fulfilled":(P.status==="error"||P.data!==E.value)&&O();break;case"rejected":(P.status!=="error"||P.error!==E.reason)&&O();break}}return P}updateResult(t){const r=$(this,on),n=this.createResult($(this,lt),this.options);if(be(this,Sl,$(this,lt).state),be(this,_u,this.options),$(this,Sl).data!==void 0&&be(this,Mu,$(this,lt)),_v(n,r))return;be(this,on,n);const a={},i=()=>{if(!r)return!0;const{notifyOnChangeProps:o}=this.options,l=typeof o=="function"?o():o;if(l==="all"||!l&&!$(this,Du).size)return!0;const c=new Set(l??$(this,Du));return this.options.throwOnError&&c.add("error"),Object.keys($(this,on)).some(u=>{const d=u;return $(this,on)[d]!==r[d]&&c.has(d)})};(t==null?void 0:t.listeners)!==!1&&i()&&(a.listeners=!0),at(this,yt,z$).call(this,{...a,...t})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&at(this,yt,G1).call(this)}},Sn=new WeakMap,lt=new WeakMap,Zh=new WeakMap,on=new WeakMap,Sl=new WeakMap,_u=new WeakMap,Qi=new WeakMap,ss=new WeakMap,Qh=new WeakMap,ku=new WeakMap,Mu=new WeakMap,Pl=new WeakMap,Cl=new WeakMap,Ji=new WeakMap,Du=new WeakMap,yt=new WeakSet,If=function(t){at(this,yt,Y1).call(this);let r=$(this,lt).fetch(this.options,t);return t!=null&&t.throwOnError||(r=r.catch(ia)),r},W1=function(){at(this,yt,K1).call(this);const t=du(this.options.staleTime,$(this,lt));if(Ul||$(this,on).isStale||!V1(t))return;const n=k$($(this,on).dataUpdatedAt,t)+1;be(this,Pl,setTimeout(()=>{$(this,on).isStale||this.updateResult()},n))},q1=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval($(this,lt)):this.options.refetchInterval)??!1},H1=function(t){at(this,yt,X1).call(this),be(this,Ji,t),!(Ul||Ra(this.options.enabled,$(this,lt))===!1||!V1($(this,Ji))||$(this,Ji)===0)&&be(this,Cl,setInterval(()=>{(this.options.refetchIntervalInBackground||$S.isFocused())&&at(this,yt,If).call(this)},$(this,Ji)))},G1=function(){at(this,yt,W1).call(this),at(this,yt,H1).call(this,at(this,yt,q1).call(this))},K1=function(){$(this,Pl)&&(clearTimeout($(this,Pl)),be(this,Pl,void 0))},X1=function(){$(this,Cl)&&(clearInterval($(this,Cl)),be(this,Cl,void 0))},Y1=function(){const t=$(this,Sn).getQueryCache().build($(this,Sn),this.options);if(t===$(this,lt))return;const r=$(this,lt);be(this,lt,t),be(this,Zh,t.state),this.hasListeners()&&(r==null||r.removeObserver(this),t.addObserver(this))},z$=function(t){jr.batch(()=>{t.listeners&&this.listeners.forEach(r=>{r($(this,on))}),$(this,Sn).getQueryCache().notify({query:$(this,lt),type:"observerResultsUpdated"})})},LD);function lY(e,t){return Ra(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function dE(e,t){return lY(e,t)||e.state.data!==void 0&&Z1(e,t,t.refetchOnMount)}function Z1(e,t,r){if(Ra(t.enabled,e)!==!1){const n=typeof r=="function"?r(e):r;return n==="always"||n!==!1&&LS(e,t)}return!1}function fE(e,t,r,n){return(e!==t||Ra(n.enabled,e)===!1)&&(!r.suspense||e.state.status!=="error")&&LS(e,r)}function LS(e,t){return Ra(t.enabled,e)!==!1&&e.isStaleByTime(du(t.staleTime,e))}function cY(e,t){return!_v(e.getCurrentResult(),t)}var eo,to,Pn,Hs,ui,Wg,Q1,FD,uY=(FD=class extends $d{constructor(r,n){super();Fe(this,ui);Fe(this,eo);Fe(this,to);Fe(this,Pn);Fe(this,Hs);be(this,eo,r),this.setOptions(n),this.bindMethods(),at(this,ui,Wg).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(r){var a;const n=this.options;this.options=$(this,eo).defaultMutationOptions(r),_v(this.options,n)||$(this,eo).getMutationCache().notify({type:"observerOptionsUpdated",mutation:$(this,Pn),observer:this}),n!=null&&n.mutationKey&&this.options.mutationKey&&Wl(n.mutationKey)!==Wl(this.options.mutationKey)?this.reset():((a=$(this,Pn))==null?void 0:a.state.status)==="pending"&&$(this,Pn).setOptions(this.options)}onUnsubscribe(){var r;this.hasListeners()||(r=$(this,Pn))==null||r.removeObserver(this)}onMutationUpdate(r){at(this,ui,Wg).call(this),at(this,ui,Q1).call(this,r)}getCurrentResult(){return $(this,to)}reset(){var r;(r=$(this,Pn))==null||r.removeObserver(this),be(this,Pn,void 0),at(this,ui,Wg).call(this),at(this,ui,Q1).call(this)}mutate(r,n){var a;return be(this,Hs,n),(a=$(this,Pn))==null||a.removeObserver(this),be(this,Pn,$(this,eo).getMutationCache().build($(this,eo),this.options)),$(this,Pn).addObserver(this),$(this,Pn).execute(r)}},eo=new WeakMap,to=new WeakMap,Pn=new WeakMap,Hs=new WeakMap,ui=new WeakSet,Wg=function(){var n;const r=((n=$(this,Pn))==null?void 0:n.state)??V$();be(this,to,{...r,isPending:r.status==="pending",isSuccess:r.status==="success",isError:r.status==="error",isIdle:r.status==="idle",mutate:this.mutate,reset:this.reset})},Q1=function(r){jr.batch(()=>{var n,a,i,o,l,c,u,d;if($(this,Hs)&&this.hasListeners()){const f=$(this,to).variables,m=$(this,to).context;(r==null?void 0:r.type)==="success"?((a=(n=$(this,Hs)).onSuccess)==null||a.call(n,r.data,f,m),(o=(i=$(this,Hs)).onSettled)==null||o.call(i,r.data,null,f,m)):(r==null?void 0:r.type)==="error"&&((c=(l=$(this,Hs)).onError)==null||c.call(l,r.error,f,m),(d=(u=$(this,Hs)).onSettled)==null||d.call(u,void 0,r.error,f,m))}this.listeners.forEach(f=>{f($(this,to))})})},FD),B$=b.createContext(void 0),dp=e=>{const t=b.useContext(B$);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},U$=({client:e,children:t})=>(b.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),s.jsx(B$.Provider,{value:e,children:t})),W$=b.createContext(!1),dY=()=>b.useContext(W$);W$.Provider;function fY(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var mY=b.createContext(fY()),hY=()=>b.useContext(mY);function q$(e,t){return typeof e=="function"?e(...t):!!e}function J1(){}var pY=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},gY=e=>{b.useEffect(()=>{e.clearReset()},[e])},vY=({result:e,errorResetBoundary:t,throwOnError:r,query:n})=>e.isError&&!t.isReset()&&!e.isFetching&&n&&q$(r,[e.error,n]),xY=e=>{e.suspense&&(e.staleTime===void 0&&(e.staleTime=1e3),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3)))},yY=(e,t)=>e.isLoading&&e.isFetching&&!t,bY=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,mE=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()});function jY(e,t,r){var d,f,m,p,v;const n=dp(),a=dY(),i=hY(),o=n.defaultQueryOptions(e);(f=(d=n.getDefaultOptions().queries)==null?void 0:d._experimental_beforeQuery)==null||f.call(d,o),o._optimisticResults=a?"isRestoring":"optimistic",xY(o),pY(o,i),gY(i);const l=!n.getQueryCache().get(o.queryHash),[c]=b.useState(()=>new t(n,o)),u=c.getOptimisticResult(o);if(b.useSyncExternalStore(b.useCallback(h=>{const x=a?J1:c.subscribe(jr.batchCalls(h));return c.updateResult(),x},[c,a]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),b.useEffect(()=>{c.setOptions(o,{listeners:!1})},[o,c]),bY(o,u))throw mE(o,c,i);if(vY({result:u,errorResetBoundary:i,throwOnError:o.throwOnError,query:n.getQueryCache().get(o.queryHash)}))throw u.error;if((p=(m=n.getDefaultOptions().queries)==null?void 0:m._experimental_afterQuery)==null||p.call(m,o,u),o.experimental_prefetchInRender&&!Ul&&yY(u,a)){const h=l?mE(o,c,i):(v=n.getQueryCache().get(o.queryHash))==null?void 0:v.promise;h==null||h.catch(J1).finally(()=>{c.updateResult()})}return o.notifyOnChangeProps?u:c.trackResult(u)}function Gt(e,t){return jY(e,oY)}function Kt(e,t){const r=dp(),[n]=b.useState(()=>new uY(r,e));b.useEffect(()=>{n.setOptions(e)},[n,e]);const a=b.useSyncExternalStore(b.useCallback(o=>n.subscribe(jr.batchCalls(o)),[n]),()=>n.getCurrentResult(),()=>n.getCurrentResult()),i=b.useCallback((o,l)=>{n.mutate(o,l).catch(J1)},[n]);if(a.error&&q$(n.options.throwOnError,[a.error]))throw a.error;return{...a,mutate:i,mutateAsync:a.mutate}}async function H$(e){if(!e.ok){const t=await e.text()||e.statusText;throw new Error(`${e.status}: ${t}`)}}async function ft(e,t,r){const n=await fetch(t,{method:e,headers:r?{"Content-Type":"application/json"}:{},body:r?JSON.stringify(r):void 0,credentials:"include"});return await H$(n),n}const Er=({on401:e})=>async({queryKey:t})=>{const r=await fetch(t[0],{credentials:"include"});return e==="returnNull"&&r.status===401?null:(await H$(r),await r.json())}
638,hr=new iY({defaultOptions:{queries:{queryFn:Er({on401:"throw"}),refetchInterval:!1,refetchOnWindowFocus:!1,staleTime:1/0,retry:!1},mutations:{retry:!1}}}),G$=b.createContext(null);function wY({children:e}){const{toast:t}=wn(),{data:r,error:n,isLoading:a}=Gt({queryKey:["/api/user"],queryFn:Er({on401:"returnNull"})}),i=(r==null?void 0:r.user)||null,o=Kt({mutationFn:async u=>await(await ft("POST","/api/login",u)).json(),onSuccess:u=>{if(u.success)hr.setQueryData(["/api/user"],u),t({title:"Login realizado com sucesso",description:`Bem-vindo, ${u.user.fullName||u.user.username}!`});else throw new Error(u.message||"Erro no login")},onError:u=>{t({title:"Falha no login",description:u.message,variant:"destructive"})}}),l=Kt({mutationFn:async u=>await(await ft("POST","/api/register",u)).json(),onSuccess:u=>{if(u.success)hr.setQueryData(["/api/user"],u),t({title:"Registro realizado com sucesso",description:`Bem-vindo, ${u.user.fullName||u.user.username}!`});else throw new Error(u.message||"Erro no registro")},onError:u=>{t({title:"Falha no registro",description:u.message,variant:"destructive"})}}),c=Kt({mutationFn:async()=>await(await ft("POST","/api/logout")).json(),onSuccess:u=>{hr.setQueryData(["/api/user"],null),t({title:"Logout realizado com sucesso",description:"Você foi desconectado do sistema."})},onError:u=>{t({title:"Falha no logout",description:u.message,variant:"destructive"})}});return s.jsx(G$.Provider,{value:{user:i,isLoading:a,error:n,loginMutation:o,logoutMutation:c,registerMutation:l},children:e})}function Ld(){const e=b.useContext(G$);if(!e)throw new Error("useAuth deve ser usado dentro de um AuthProvider");return e}function yc({path:e,component:t,adminOnly:r=!1}){const{user:n,isLoading:a}=Ld();return a?s.jsx(ao,{path:e,children:s.jsx("div",{className:"flex items-center justify-center min-h-screen",children:s.jsx(Im,{className:"h-8 w-8 animate-spin text-primary"})})}):n?r&&n.role!=="admin"?s.jsx(ao,{path:e,children:s.jsxs("div",{className:"flex flex-col items-center justify-center min-h-screen p-4 text-center",children:[s.jsx("h1",{className:"text-2xl font-bold mb-4",children:"Acesso Restrito"}),s.jsx("p",{className:"mb-6",children:"Você não tem permissão para acessar esta área. Esta seção é restrita a administradores."}),s.jsx(E1,{to:"/admin"})]})}):s.jsx(ao,{path:e,children:s.jsx(t,{})}):s.jsx(ao,{path:e,children:s.jsx(E1,{to:"/admin"})})}function K$(){const[e]=wa();return b.useEffect(()=>{(async()=>{try{const r=document.referrer||null;await ft("POST","/api/track-visit",{page:e,referrer:r}),console.log("Visualização de página registrada:",e)}catch(r){console.warn("Erro ao registrar visualização de página:",r)}})()},[e]),null}const hE="G-Z9B50LWFSF",pE="1075008367322132";function NY(){return b.useEffect(()=>(gE(),SY(),PY(),()=>{gE()}),[]),null}function gE(){var e,t,r,n;(e=document.getElementById("google-tag-script"))==null||e.remove(),(t=document.getElementById("google-tag-config"))==null||t.remove(),(r=document.getElementById("facebook-pixel-script"))==null||r.remove(),(n=document.getElementById("facebook-pixel-noscript"))==null||n.remove()}function SY(){try{const e=document.createElement("script");e.id="google-tag-script",e.async=!0,e.src=`https://www.googletagmanager.com/gtag/js?id=${hE}`,document.head.appendChild(e);const t=document.createElement("script");t.id="google-tag-config",t.text=` 639 window.dataLayer = window.dataLayer || []; 640 function gtag(){dataLayer.push(arguments);} 641 gtag('js', new Date()); 642 gtag('config', '${hE}'); 643 `,document.head.appendChild(t)}catch(e){console.error("Erro ao carregar Google Tag:",e)}}function PY(){try{const e=document.createElement("script");e.id="facebook-pixel-script",e.text=` 644 !function(f,b,e,v,n,t,s) { 645 if(f.fbq)return;n=f.fbq=function(){n.callMethod? 646 n.callMethod.apply(n,arguments):n.queue.push(arguments)}; 647 if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0'; 648 n.queue=[];t=b.createElement(e);t.async=!0; 649 t.src=v;s=b.getElementsByTagName(e)[0]; 650 s.parentNode.insertBefore(t,s)}(window, document,'script', 651 'https://connect.facebook.net/en_US/fbevents.js'); 652 fbq('init', '${pE}'); 653 fbq('track', 'PageView'); 654 `,document.head.appendChild(e);const t=document.createElement("noscript");t.id="facebook-pixel-noscript";
654const r=document.createElement("img");r.height=1,r.width=1,r.style.display="none",r.src=`https://www.facebook.com/tr?id=${pE}&ev=PageView&noscript=1`,t.appendChild(r),document.head.appendChild(t)}catch(e){console.error("Erro ao carregar Facebook Pixel:",e)}}function X$(){const e=(c,u)=>{if(window.gtag)try{window.gtag("event",c,u)}catch(d){console.error("Erro ao rastrear evento do Google:",d)}},t=(c,u)=>{if(window.fbq)try{window.fbq("track",c,u)}catch(d){console.error("Erro ao rastrear evento do Facebook:",d)}},r=(c,u)=>{e(c,u),t(c,u)};return{trackEvent:r,trackConversion:()=>{r("conversion"),r("lead")},trackGoogleEvent:e,trackFacebookEvent:t,trackWhatsAppConversion:(c,u)=>{if(window.gtag)try{window.gtag("event","conversion",{send_to:"AW-17076577574/l_mvCO3548caEKbK384_",value:c,currency:"BRL",transaction_id:u})}catch(d){console.error("Erro ao rastrear conversão de WhatsApp:",d)}},trackFormSubmissionConversion:(c,u)=>{if(window.gtag)try{window.gtag("event","conversion",{send_to:"AW-17076577574/nRWGCOeZ5McaEKbK384_",value:c,currency:"BRL",transaction_id:u})}catch(d){console.error("Erro ao rastrear conversão de formulário:",d)}},trackProductViewConversion:()=>{if(window.gtag)try{window.gtag("event","conversion",{send_to:"AW-17076577574/mj5kCLCo5McaEKbK384_"})}catch(c){console.error("Erro ao rastrear conversão de visualização de produto:",c)}},trackPhoneCallConversion:()=>{if(window.gtag)try{window.gtag("event","conversion",{send_to:"AW-17076577574/hgUHCKat5McaEKbK384_"})}catch(c){console.error("Erro ao rastrear conversão de telefonema:",c)}}}}const Y$=()=>{window.dataLayer=window.dataLayer||[]},CY=(e,t={})=>{window.dataLayer||Y$(),window.dataLayer.push({event:e,...t})},AY=(e,t)=>{CY("page_view",{page_path:e,page_title:t,page_location:window.location.href})},TY=()=>{const[e]=wa(),t=b.useRef(e);return b.useEffect(()=>{Y$()},[]),b.useEffect(()=>{if(e!==t.current){let r="ConfecXpress";const n={"/":"ConfecXpress - InÃcio","/admin":"Login - ConfecXpress","/admin/dashboard":"Painel Administrativo - ConfecXpress","/admin/quotes":"Gerenciamento de Orçamentos - ConfecXpress","/admin/analytics":"Análises - ConfecXpress","/admin/settings":"Configurações - ConfecXpress","/admin/users":"Usuários - ConfecXpress"};n[e]&&(r=n[e]),AY(e,r),t.current=e}},[e]),null},EY=()=>(b.useEffect(()=>{if(typeof window<"u"){const{protocol:e,hostname:t,href:r}=window.location;if(e==="http:"&&!t.includes("localhost")&&!t.includes("127.0.0.1")&&!t.includes(".picard.replit.dev")){const a=r.replace("http:","https:");window.location.replace(a);return}(()=>{if(!document.querySelector('meta[name="referrer"]')){const a=document.createElement("meta");a.name="referrer",a.content="strict-origin-when-cross-origin",document.head.appendChild(a)}"serviceWorker"in navigator&&window.addEventListener("load",()=>{try{navigator.serviceWorker.register("/service-worker.js").catch(console.error)}catch(a){console.error("Service worker registration failed:",a)}})})()}},[]),null),OY="/assets/confec-logo-DOSk7WNY.png";function _Y(){return s.jsx("div",{className:"fixed inset-0 flex items-center justify-center bg-white z-50",children:s.jsxs("div",{className:"flex flex-col items-center",children:[s.jsx("div",{className:"w-32 h-32 relative mb-6 animate-pulse",children:s.jsx("img",{src:OY,alt:"ConfecXpress Logo",className:"w-full h-full object-contain"})}),s.jsxs("div",{className:"flex space-x-2",children:[s.jsx("div",{className:"w-3 h-3 bg-[#e94999] rounded-full animate-bounce",style:{animationDelay:"0s"}}),s.jsx("div",{className:"w-3 h-3 bg-[#e94999] rounded-full animate-bounce",style:{animationDelay:"0.2s"}}),s.jsx("div",{className:"w-3 h-3 bg-[#e94999] rounded-full animate-bounce",style:{animationDelay:"0.4s"}})]}),s.jsx("p",{className:"mt-4 text-gray-600 text-lg font-medium",children:"Carregando..."})]})})}const fe=b.forwardRef(({className:e,...t},r)=>s.jsx("div",{ref:r,className:ie("rounded-lg border bg-card text-card-foreground shadow-sm",e),...t}));fe.displayName="Card";const Me=b.forwardRef(({className:e,...t},r)=>s.jsx("div",{ref:r,className:ie("flex flex-col space-y-1.5 p-6",e),...t}));
vendor: 4,551 bytes, line 654
654Me.displayName="CardHeader";const De=b.forwardRef(({className:e,...t},r)=>s.jsx("div",{ref:r,className:ie("text-2xl font-semibold leading-none tracking-tight",e),...t}));De.displayName="CardTitle";const Ye=b.forwardRef(({className:e,...t},r)=>s.jsx("div",{ref:r,className:ie("text-sm text-muted-foreground",e),...t}));Ye.displayName="CardDescription";const me=b.forwardRef(({className:e,...t},r)=>s.jsx("div",{ref:r,className:ie("p-6 pt-0",e),...t}));me.displayName="CardContent";const FS=b.forwardRef(({className:e,...t},r)=>s.jsx("div",{ref:r,className:ie("flex items-center p-6 pt-0",e),...t}));FS.displayName="CardFooter";function kY(){return s.jsx("div",{className:"min-h-screen w-full flex items-center justify-center bg-gray-50",children:s.jsx(fe,{className:"w-full max-w-md mx-4",children:s.jsxs(me,{className:"pt-6",children:[s.jsxs("div",{className:"flex mb-4 gap-2",children:[s.jsx(dS,{className:"h-8 w-8 text-red-500"}),s.jsx("h1",{className:"text-2xl font-bold text-gray-900",children:"404 Page Not Found"})]}),s.jsx("p",{className:"mt-4 text-sm text-gray-600",children:"Did you forget to add the page to the router?"})]})})})}var MY=b.createContext(void 0);function Fd(e){const t=b.useContext(MY);return e||t||"ltr"}var $b="rovingFocusGroup.onEntryFocus",DY={bubbles:!1,cancelable:!0},$y="RovingFocusGroup",[ew,Z$,RY]=sp($y),[IY,Vd]=kr($y,[RY]),[$Y,LY]=IY($y),Q$=b.forwardRef((e,t)=>s.jsx(ew.Provider,{scope:e.__scopeRovingFocusGroup,children:s.jsx(ew.Slot,{scope:e.__scopeRovingFocusGroup,children:s.jsx(FY,{...e,ref:t})})}));Q$.displayName=$y;var FY=b.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:a=!1,dir:i,currentTabStopId:o,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:c,onEntryFocus:u,preventScrollOnEntryFocus:d=!1,...f}=e,m=b.useRef(null),p=it(t,m),v=Fd(i),[h=null,x]=ya({prop:o,defaultProp:l,onChange:c}),[y,g]=b.useState(!1),j=Ur(u),S=Z$(r),w=b.useRef(!1),[N,P]=b.useState(0);return b.useEffect(()=>{const C=m.current;if(C)return C.addEventListener($b,j),()=>C.removeEventListener($b,j)},[j]),s.jsx($Y,{scope:r,orientation:n,dir:v,loop:a,currentTabStopId:h,onItemFocus:b.useCallback(C=>x(C),[x]),onItemShiftTab:b.useCallback(()=>g(!0),[]),onFocusableItemAdd:b.useCallback(()=>P(C=>C+1),[]),onFocusableItemRemove:b.useCallback(()=>P(C=>C-1),[]),children:s.jsx(Oe.div,{tabIndex:y||N===0?-1:0,"data-orientation":n,...f,ref:p,style:{outline:"none",...e.style},onMouseDown:ue(e.onMouseDown,()=>{w.current=!0}),onFocus:ue(e.onFocus,C=>{const A=!w.current;if(C.target===C.currentTarget&&A&&!y){const O=new CustomEvent($b,DY);if(C.currentTarget.dispatchEvent(O),!O.defaultPrevented){const E=S().filter(L=>L.focusable),k=E.find(L=>L.active),M=E.find(L=>L.id===h),F=[k,M,...E].filter(Boolean).map(L=>L.ref.current);t3(F,d)}}w.current=!1}),onBlur:ue(e.onBlur,()=>g(!1))})})}),J$="RovingFocusGroupItem",e3=b.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:a=!1,tabStopId:i,...o}=e,l=ha(),c=i||l,u=LY(J$,r),d=u.currentTabStopId===c,f=Z$(r),{onFocusableItemAdd:m,onFocusableItemRemove:p}=u;return b.useEffect(()=>{if(n)return m(),()=>p()},[n,m,p]),s.jsx(ew.ItemSlot,{scope:r,id:c,focusable:n,active:a,children:s.jsx(Oe.span,{tabIndex:d?0:-1,"data-orientation":u.orientation,...o,ref:t,onMouseDown:ue(e.onMouseDown,v=>{n?u.onItemFocus(c):v.preventDefault()}),onFocus:ue(e.onFocus,()=>u.onItemFocus(c)),onKeyDown:ue(e.onKeyDown,v=>{if(v.key==="Tab"&&v.shiftKey){u.onItemShiftTab();return}if(v.target!==v.currentTarget)return;const h=BY(v,u.orientation,u.dir);if(h!==void 0){if(v.metaKey||v.ctrlKey||v.altKey||v.shiftKey)return;v.preventDefault();let y=f().filter(g=>g.focusable).map(g=>g.ref.current);if(h==="last")y.reverse();else if(h==="prev"||h==="next"){h==="prev"&&y.reverse();const g=y.indexOf(v.currentTarget);y=u.loop?UY(y,g+1):y.slice(g+1)}setTimeout(()=>t3(y))}})})})});e3.displayName=J$;var VY={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function zY(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function BY(e,t,r){const n=zY(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return VY[n]}function t3(e,t=!1){const r=document.activeElement;for(const n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}function UY(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var VS=Q$,zS=e3,BS="Tabs",[WY,pRe]=kr(BS,[Vd]),r3=Vd(),[qY,US]=WY(BS),n3=b.forwardRef((e,t)=>
vendor: 5,001 bytes, line 654
654{const{__scopeTabs:r,value:n,onValueChange:a,defaultValue:i,orientation:o="horizontal",dir:l,activationMode:c="automatic",...u}=e,d=Fd(l),[f,m]=ya({prop:n,onChange:a,defaultProp:i});return s.jsx(qY,{scope:r,baseId:ha(),value:f,onValueChange:m,orientation:o,dir:d,activationMode:c,children:s.jsx(Oe.div,{dir:d,"data-orientation":o,...u,ref:t})})});n3.displayName=BS;var a3="TabsList",s3=b.forwardRef((e,t)=>{const{__scopeTabs:r,loop:n=!0,...a}=e,i=US(a3,r),o=r3(r);return s.jsx(VS,{asChild:!0,...o,orientation:i.orientation,dir:i.dir,loop:n,children:s.jsx(Oe.div,{role:"tablist","aria-orientation":i.orientation,...a,ref:t})})});s3.displayName=a3;var i3="TabsTrigger",o3=b.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,disabled:a=!1,...i}=e,o=US(i3,r),l=r3(r),c=u3(o.baseId,n),u=d3(o.baseId,n),d=n===o.value;return s.jsx(zS,{asChild:!0,...l,focusable:!a,active:d,children:s.jsx(Oe.button,{type:"button",role:"tab","aria-selected":d,"aria-controls":u,"data-state":d?"active":"inactive","data-disabled":a?"":void 0,disabled:a,id:c,...i,ref:t,onMouseDown:ue(e.onMouseDown,f=>{!a&&f.button===0&&f.ctrlKey===!1?o.onValueChange(n):f.preventDefault()}),onKeyDown:ue(e.onKeyDown,f=>{[" ","Enter"].includes(f.key)&&o.onValueChange(n)}),onFocus:ue(e.onFocus,()=>{const f=o.activationMode!=="manual";!d&&!a&&f&&o.onValueChange(n)})})})});o3.displayName=i3;var l3="TabsContent",c3=b.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,forceMount:a,children:i,...o}=e,l=US(l3,r),c=u3(l.baseId,n),u=d3(l.baseId,n),d=n===l.value,f=b.useRef(d);return b.useEffect(()=>{const m=requestAnimationFrame(()=>f.current=!1);return()=>cancelAnimationFrame(m)},[]),s.jsx(Qn,{present:a||d,children:({present:m})=>s.jsx(Oe.div,{"data-state":d?"active":"inactive","data-orientation":l.orientation,role:"tabpanel","aria-labelledby":c,hidden:!m,id:u,tabIndex:0,...o,ref:t,style:{...e.style,animationDuration:f.current?"0s":void 0},children:m&&i})})});c3.displayName=l3;function u3(e,t){return`${e}-trigger-${t}`}function d3(e,t){return`${e}-content-${t}`}var HY=n3,f3=s3,m3=o3,h3=c3;const ql=HY,Ao=b.forwardRef(({className:e,...t},r)=>s.jsx(f3,{ref:r,className:ie("inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground",e),...t}));Ao.displayName=f3.displayName;const vt=b.forwardRef(({className:e,...t},r)=>s.jsx(m3,{ref:r,className:ie("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm",e),...t}));vt.displayName=m3.displayName;const xt=b.forwardRef(({className:e,...t},r)=>s.jsx(h3,{ref:r,className:ie("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...t}));xt.displayName=h3.displayName;const WS=Ay("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),W=b.forwardRef(({className:e,variant:t,size:r,asChild:n=!1,...a},i)=>{const o=n?d5:"button";return s.jsx(o,{className:ie(WS({variant:t,size:r,className:e})),ref:i,...a})});W.displayName="Button";function tr({className:e,...t}){return s.jsx("div",{className:ie("animate-pulse rounded-md bg-muted",e),...t})}const GY=Ay("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function Ue({className:e,variant:t,...r}){return s.jsx("div",{className:ie(GY({variant:t}),e),...r})}var KY="Separator",vE="horizontal",XY=["horizontal","vertical"],p3=b.forwardRef((e,t)=>
654{const{decorative:r,orientation:n=vE,...a}=e,i=YY(n)?n:vE,l=r?{role:"none"}:{"aria-orientation":i==="vertical"?i:void 0,role:"separator"};return s.jsx(Oe.div,{"data-orientation":i,...l,...a,ref:t})});p3.displayName=KY;function YY(e){return XY.includes(e)}var g3=p3;const ei=b.forwardRef(({className:e,orientation:t="horizontal",decorative:r=!0,...n},a)=>s.jsx(g3,{ref:a,decorative:r,orientation:t,className:ie("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...n}));ei.displayName=g3.displayName;function Jn(e){const t=Object.prototype.toString.call(e);return e instanceof Date||typeof e=="object"&&t==="[object Date]"?new e.constructor(+e):typeof e=="number"||t==="[object Number]"||typeof e=="string"||t==="[object String]"?new Date(e):new Date(NaN)}function Ka(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}function ZY(e,t){const r=Jn(e);return isNaN(t)?Ka(e,NaN):(t&&r.setDate(r.getDate()+t),r)}function QY(e,t){const r=Jn(e);if(isNaN(t))return Ka(e,NaN);if(!t)return r;const n=r.getDate(),a=Ka(e,r.getTime());a.setMonth(r.getMonth()+t+1,0);const i=a.getDate();return n>=i?a:(r.setFullYear(a.getFullYear(),a.getMonth(),n),r)}const v3=6048e5,JY=864e5,x3=6e4,y3=36e5;let eZ={};function Ly(){return eZ}function qm(e,t){var l,c,u,d;const r=Ly(),n=(t==null?void 0:t.weekStartsOn)??((c=(l=t==null?void 0:t.locale)==null?void 0:l.options)==null?void 0:c.weekStartsOn)??r.weekStartsOn??((d=(u=r.locale)==null?void 0:u.options)==null?void 0:d.weekStartsOn)??0,a=Jn(e),i=a.getDay(),o=(i<n?7:0)+i-n;return a.setDate(a.getDate()-o),a.setHours(0,0,0,0),a}function Mv(e){return qm(e,{weekStartsOn:1})}function b3(e){const t=Jn(e),r=t.getFullYear(),n=Ka(e,0);n.setFullYear(r+1,0,4),n.setHours(0,0,0,0);const a=Mv(n),i=Ka(e,0);i.setFullYear(r,0,4),i.setHours(0,0,0,0);const o=Mv(i);return t.getTime()>=a.getTime()?r+1:t.getTime()>=o.getTime()?r:r-1}function xE(e){const t=Jn(e);return t.setHours(0,0,0,0),t}function yE(e){const t=Jn(e),r=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return r.setUTCFullYear(t.getFullYear()),+e-+r}function tZ(e,t){const r=xE(e),n=xE(t),a=+r-yE(r),i=+n-yE(n);return Math.round((a-i)/JY)}function rZ(e){const t=b3(e),r=Ka(e,0);return r.setFullYear(t,0,4),r.setHours(0,0,0,0),Mv(r)}function nZ(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function aZ(e){if(!nZ(e)&&typeof e!="number")return!1;const t=Jn(e);return!isNaN(Number(t))}function sZ(e){const t=Jn(e),r=Ka(e,0);return r.setFullYear(t.getFullYear(),0,1),r.setHours(0,0,0,0),r}const iZ={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},oZ=(e,t,r)=>{let n;const a=iZ[e];return typeof a=="string"?n=a:t===1?n=a.one:n=a.other.replace("{{count}}",t.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+n:n+" ago":n};function fu(e){return(t={})=>{const r=t.width?String(t.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}const lZ={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},cZ={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},uZ={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},dZ={date:fu({formats:lZ,defaultWidth:"full"}),time:fu({formats:cZ,defaultWidth:"full"}),dateTime:fu({formats:uZ,defaultWidth:"full"})},fZ={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},mZ=(e,t,r,n)=>fZ[e];function ls(e){return(t,r)=>{const n=r!=null&&r.context?String(r.context):"standalone";let a;if(n==="formatting"&&e.formattingValues){const o=e.defaultFormattingWidth||e.defaultWidth,l=r!=null&&r.width?String(r.width):o;a=e.formattingValues[l]||e.formattingValues[o]}else{const o=e.defaultWidth,l=r!=null&&r.width?String(r.width):e.defaultWidth;a=e.values[l]||e.values[o]}const i=e.argumentCallback?e.argumentCallback(t):t;return a[i]}}const hZ={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},pZ={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},gZ={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},vZ={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
654ay","Saturday"]},xZ={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},yZ={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},bZ=(e,t)=>{const r=Number(e),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},jZ={ordinalNumber:bZ,era:ls({values:hZ,defaultWidth:"wide"}),quarter:ls({values:pZ,defaultWidth:"wide",argumentCallback:e=>e-1}),month:ls({values:gZ,defaultWidth:"wide"}),day:ls({values:vZ,defaultWidth:"wide"}),dayPeriod:ls({values:xZ,defaultWidth:"wide",formattingValues:yZ,defaultFormattingWidth:"wide"})};function cs(e){return(t,r={})=>{const n=r.width,a=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],i=t.match(a);if(!i)return null;const o=i[0],l=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(l)?NZ(l,f=>f.test(o)):wZ(l,f=>f.test(o));let u;u=e.valueCallback?e.valueCallback(c):c,u=r.valueCallback?r.valueCallback(u):u;const d=t.slice(o.length);return{value:u,rest:d}}}function wZ(e,t){for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t(e[r]))return r}function NZ(e,t){for(let r=0;r<e.length;r++)if(t(e[r]))return r}function j3(e){return(t,r={})=>{const n=t.match(e.matchPattern);if(!n)return null;const a=n[0],i=t.match(e.parsePattern);if(!i)return null;let o=e.valueCallback?e.valueCallback(i[0]):i[0];o=r.valueCallback?r.valueCallback(o):o;const l=t.slice(a.length);return{value:o,rest:l}}}const SZ=/^(\d+)(th|st|nd|rd)?/i,PZ=/\d+/i,CZ={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},AZ={any:[/^b/i,/^(a|c)/i]},TZ={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},EZ={any:[/1/i,/2/i,/3/i,/4/i]},OZ={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},_Z={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},kZ={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},MZ={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},DZ={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},RZ={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},IZ={ordinalNumber:j3({matchPattern:SZ,parsePattern:PZ,valueCallback:e=>parseInt(e,10)}),era:cs({matchPatterns:CZ,defaultMatchWidth:"wide",parsePatterns:AZ,defaultParseWidth:"any"}),quarter:cs({matchPatterns:TZ,defaultMatchWidth:"wide",parsePatterns:EZ,defaultParseWidth:"any",valueCallback:e=>e+1}),month:cs({matchPatterns:OZ,defaultMatchWidth:"wide",parsePatterns:_Z,defaultParseWidth:"any"}),day:cs({matchPatterns:kZ,defaultMatchWidth:"wide",parsePatterns:MZ,defaultParseWidth:"any"}),dayPeriod:cs({matchPatterns:DZ,defaultMatchWidth:"any",parsePatterns:RZ,defaultParseWidth:"any"})},$Z={code:"en-US",formatDistance:oZ,formatLong:dZ,formatRelative:mZ,localize:jZ,match:IZ,options:{weekStartsOn:0,firstWeekContainsDate:1}};function LZ(e){const t=Jn(e);return tZ(t,sZ(t))+1}function FZ(e){const t=Jn(e),r=+Mv(t)-+rZ(t);return Math.round(r/v3)+1}function w3(e,t){var d,f,m,p;const r=Jn(e),n=r.getFullYear(),a=Ly(),i=(t==null?void 0:t.firstWeekContainsDate)??((f=(d=t==null?void 0:t.locale)==null?void 0:d.options)==null?void 0:f.firstWeekContainsDate)??a.firstWeekContainsDate??((p=(m=a.locale)==null?void 0:m.options)==null?void 0:p.firstWeekContainsDate)??1,o=Ka(e,0);o.setFullYear(n+1,0,i),o.setHours(0,0,0,0);const l=qm(o,t),c=Ka(e,0);c.setFullYear(n,0,i),c.setHours(0,0,0,0);const u=qm(c,t);return r.getTime()>=l.getTime()?n+1:r.getTime()>=u.getTime()?n:n-1}function VZ(e,t){var l,c,u,d;const r=Ly(),n=(t==null?void 0:t.firstWeekContainsDate)??((c=(l=t==null?void 0:t.locale)==null?void 0:l.options)==null?void 0:c.firstWeekContainsDate)??r.firstWeekContainsDate??((d=(u=r.locale)==null?void 0:u.options)==null?void 0:d.firstWeekContainsDate)??1,a=w3(e,t),i=Ka(e,0);return i.setFullYear(a,0,n),i.setHours(0,0,0,0),qm(i,t)}function zZ(e,t){const r=Jn(e),n=+qm(r,t)-+VZ(r,t);return Math.round(n/v3)+1}function wt(e,t){const r=e<0?"-":"",n=Math.abs(e).toString().padStart(t,"0");return r+n}
vendor: 5,448 bytes, line 654
654const Di={y(e,t){const r=e.getFullYear(),n=r>0?r:1-r;return wt(t==="yy"?n%100:n,t.length)},M(e,t){const r=e.getMonth();return t==="M"?String(r+1):wt(r+1,2)},d(e,t){return wt(e.getDate(),t.length)},a(e,t){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h(e,t){return wt(e.getHours()%12||12,t.length)},H(e,t){return wt(e.getHours(),t.length)},m(e,t){return wt(e.getMinutes(),t.length)},s(e,t){return wt(e.getSeconds(),t.length)},S(e,t){const r=t.length,n=e.getMilliseconds(),a=Math.trunc(n*Math.pow(10,r-3));return wt(a,t.length)}},bc={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},bE={G:function(e,t,r){const n=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(n,{width:"abbreviated"});case"GGGGG":return r.era(n,{width:"narrow"});case"GGGG":default:return r.era(n,{width:"wide"})}},y:function(e,t,r){if(t==="yo"){const n=e.getFullYear(),a=n>0?n:1-n;return r.ordinalNumber(a,{unit:"year"})}return Di.y(e,t)},Y:function(e,t,r,n){const a=w3(e,n),i=a>0?a:1-a;if(t==="YY"){const o=i%100;return wt(o,2)}return t==="Yo"?r.ordinalNumber(i,{unit:"year"}):wt(i,t.length)},R:function(e,t){const r=b3(e);return wt(r,t.length)},u:function(e,t){const r=e.getFullYear();return wt(r,t.length)},Q:function(e,t,r){const n=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(n);case"QQ":return wt(n,2);case"Qo":return r.ordinalNumber(n,{unit:"quarter"});case"QQQ":return r.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(n,{width:"wide",context:"formatting"})}},q:function(e,t,r){const n=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(n);case"qq":return wt(n,2);case"qo":return r.ordinalNumber(n,{unit:"quarter"});case"qqq":return r.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(n,{width:"wide",context:"standalone"})}},M:function(e,t,r){const n=e.getMonth();switch(t){case"M":case"MM":return Di.M(e,t);case"Mo":return r.ordinalNumber(n+1,{unit:"month"});case"MMM":return r.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(n,{width:"wide",context:"formatting"})}},L:function(e,t,r){const n=e.getMonth();switch(t){case"L":return String(n+1);case"LL":return wt(n+1,2);case"Lo":return r.ordinalNumber(n+1,{unit:"month"});case"LLL":return r.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(n,{width:"wide",context:"standalone"})}},w:function(e,t,r,n){const a=zZ(e,n);return t==="wo"?r.ordinalNumber(a,{unit:"week"}):wt(a,t.length)},I:function(e,t,r){const n=FZ(e);return t==="Io"?r.ordinalNumber(n,{unit:"week"}):wt(n,t.length)},d:function(e,t,r){return t==="do"?r.ordinalNumber(e.getDate(),{unit:"date"}):Di.d(e,t)},D:function(e,t,r){const n=LZ(e);return t==="Do"?r.ordinalNumber(n,{unit:"dayOfYear"}):wt(n,t.length)},E:function(e,t,r){const n=e.getDay();switch(t){case"E":case"EE":case"EEE":return r.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(n,{width:"short",context:"formatting"});case"EEEE":default:return r.day(n,{width:"wide",context:"formatting"})}},e:function(e,t,r,n){const a=e.getDay(),i=(a-n.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return wt(i,2);case"eo":return r.ordinalNumber(i,{unit:"day"});case"eee":return r.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(a,{width:"short",context:"formatting"});case"eeee":default:return r.day(a,{width:"wide",context:"formatting"})}},c:function(e,t,r,n){const a=e.getDay(),i=(a-n.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return wt(i,t.length);case"co":return r.ordinalNumber(i,{unit:"day"});case"ccc":return r.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(a,{width:"narrow",context:"standalone"});case"cccccc":return r.day(a,{width:"short",context:"standalone"});case"cccc":default:return r.day(a,{width:"wide",context:"standalone"})}},i:function(e,t,r){const n=e.getDay(),a=n===0?7:n;switch(t){case"i":return String(a);case"ii":return wt(a,t.length);case"io":return r.ordinalNumber(a,{unit:"day"});case"iii":return r.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(n,{width:"short",context:"formatting"});case"iiii":default:return r.day(n,{width:"wide",context:"formatting"})}},a:function(e,t,r){const a=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(a,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(a,{width:"wide",context:"formatting"})}},b:function(e,t,r){const n=e.getHours();let a;switch(n===12?a=bc.noon:n===0?a=bc.midnight:a=n/12>
vendor: 4,693 bytes, line 654
654=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(a,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(a,{width:"wide",context:"formatting"})}},B:function(e,t,r){const n=e.getHours();let a;switch(n>=17?a=bc.evening:n>=12?a=bc.afternoon:n>=4?a=bc.morning:a=bc.night,t){case"B":case"BB":case"BBB":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(a,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(a,{width:"wide",context:"formatting"})}},h:function(e,t,r){if(t==="ho"){let n=e.getHours()%12;return n===0&&(n=12),r.ordinalNumber(n,{unit:"hour"})}return Di.h(e,t)},H:function(e,t,r){return t==="Ho"?r.ordinalNumber(e.getHours(),{unit:"hour"}):Di.H(e,t)},K:function(e,t,r){const n=e.getHours()%12;return t==="Ko"?r.ordinalNumber(n,{unit:"hour"}):wt(n,t.length)},k:function(e,t,r){let n=e.getHours();return n===0&&(n=24),t==="ko"?r.ordinalNumber(n,{unit:"hour"}):wt(n,t.length)},m:function(e,t,r){return t==="mo"?r.ordinalNumber(e.getMinutes(),{unit:"minute"}):Di.m(e,t)},s:function(e,t,r){return t==="so"?r.ordinalNumber(e.getSeconds(),{unit:"second"}):Di.s(e,t)},S:function(e,t){return Di.S(e,t)},X:function(e,t,r){const n=e.getTimezoneOffset();if(n===0)return"Z";switch(t){case"X":return wE(n);case"XXXX":case"XX":return rl(n);case"XXXXX":case"XXX":default:return rl(n,":")}},x:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"x":return wE(n);case"xxxx":case"xx":return rl(n);case"xxxxx":case"xxx":default:return rl(n,":")}},O:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+jE(n,":");case"OOOO":default:return"GMT"+rl(n,":")}},z:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+jE(n,":");case"zzzz":default:return"GMT"+rl(n,":")}},t:function(e,t,r){const n=Math.trunc(e.getTime()/1e3);return wt(n,t.length)},T:function(e,t,r){const n=e.getTime();return wt(n,t.length)}};function jE(e,t=""){const r=e>0?"-":"+",n=Math.abs(e),a=Math.trunc(n/60),i=n%60;return i===0?r+String(a):r+String(a)+t+wt(i,2)}function wE(e,t){return e%60===0?(e>0?"-":"+")+wt(Math.abs(e)/60,2):rl(e,t)}function rl(e,t=""){const r=e>0?"-":"+",n=Math.abs(e),a=wt(Math.trunc(n/60),2),i=wt(n%60,2);return r+a+t+i}const NE=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},N3=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},BZ=(e,t)=>{const r=e.match(/(P+)(p+)?/)||[],n=r[1],a=r[2];if(!a)return NE(e,t);let i;switch(n){case"P":i=t.dateTime({width:"short"});break;case"PP":i=t.dateTime({width:"medium"});break;case"PPP":i=t.dateTime({width:"long"});break;case"PPPP":default:i=t.dateTime({width:"full"});break}return i.replace("{{date}}",NE(n,t)).replace("{{time}}",N3(a,t))},UZ={p:N3,P:BZ},WZ=/^D+$/,qZ=/^Y+$/,HZ=["D","DD","YY","YYYY"];function GZ(e){return WZ.test(e)}function KZ(e){return qZ.test(e)}function XZ(e,t,r){const n=YZ(e,t,r);if(console.warn(n),HZ.includes(e))throw new RangeError(n)}function YZ(e,t,r){const n=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${n} to the input \`${r}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const ZZ=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,QZ=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,JZ=/^'([^]*?)'?$/,eQ=/''/g,tQ=/[a-zA-Z]/;function Hm(e,t,r){var d,f,m,p,v,h,x,y;const n=Ly(),a=(r==null?void 0:r.locale)??n.locale??$Z,i=(r==null?void 0:r.firstWeekContainsDate)??((f=(d=r==null?void 0:r.locale)==null?void 0:d.options)==null?void 0:f.firstWeekContainsDate)??n.firstWeekContainsDate??((p=(m=n.locale)==null?void 0:m.options)==null?void 0:p.firstWeekContainsDate)??1,o=(r==null?void 0:r.weekStartsOn)??((h=(v=r==null?void 0:r.locale)==null?void 0:v.options)==null?void 0:h.weekStartsOn)??n.weekStartsOn??((y=(x=n.locale)==null?void 0:x.options)==null?void 0:y.weekStartsOn)??0,l=Jn(e);if(!aZ(l))throw new RangeError("Invalid time value");let c=t.match(QZ).map(g=>{const j=g[0];if(j==="p"||j==="P"){const S=UZ[j];return S(g,a.formatLong)}return g}).join("").match(ZZ).map(g=>{if(g==="''")return{isToken:!1,value:"'"};const j=g[0];if(j==="'")return{isToken:!1,value:rQ(g)};if(bE[j])return{isToken:!0,value:g};
654if(j.match(tQ))throw new RangeError("Format string contains an unescaped latin alphabet character `"+j+"`");return{isToken:!1,value:g}});a.localize.preprocessor&&(c=a.localize.preprocessor(l,c));const u={firstWeekContainsDate:i,weekStartsOn:o,locale:a};return c.map(g=>{if(!g.isToken)return g.value;const j=g.value;(!(r!=null&&r.useAdditionalWeekYearTokens)&&KZ(j)||!(r!=null&&r.useAdditionalDayOfYearTokens)&&GZ(j))&&XZ(j,t,String(e));const S=bE[j[0]];return S(l,j,a.localize,u)}).join("")}function rQ(e){const t=e.match(JZ);return t?t[1].replace(eQ,"'"):e}function nQ(e,t){return ZY(e,-t)}function tw(e,t){const n=oQ(e);let a;if(n.date){const c=lQ(n.date,2);a=cQ(c.restDateString,c.year)}if(!a||isNaN(a.getTime()))return new Date(NaN);const i=a.getTime();let o=0,l;if(n.time&&(o=uQ(n.time),isNaN(o)))return new Date(NaN);if(n.timezone){if(l=dQ(n.timezone),isNaN(l))return new Date(NaN)}else{const c=new Date(i+o),u=new Date(0);return u.setFullYear(c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate()),u.setHours(c.getUTCHours(),c.getUTCMinutes(),c.getUTCSeconds(),c.getUTCMilliseconds()),u}return new Date(i+o+l)}const rg={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},aQ=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,sQ=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,iQ=/^([+-])(\d{2})(?::?(\d{2}))?$/;function oQ(e){const t={},r=e.split(rg.dateTimeDelimiter);let n;if(r.length>2)return t;if(/:/.test(r[0])?n=r[0]:(t.date=r[0],n=r[1],rg.timeZoneDelimiter.test(t.date)&&(t.date=e.split(rg.timeZoneDelimiter)[0],n=e.substr(t.date.length,e.length))),n){const a=rg.timezone.exec(n);a?(t.time=n.replace(a[1],""),t.timezone=a[1]):t.time=n}return t}function lQ(e,t){const r=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),n=e.match(r);if(!n)return{year:NaN,restDateString:""};const a=n[1]?parseInt(n[1]):null,i=n[2]?parseInt(n[2]):null;return{year:i===null?a:i*100,restDateString:e.slice((n[1]||n[2]).length)}}function cQ(e,t){if(t===null)return new Date(NaN);const r=e.match(aQ);if(!r)return new Date(NaN);const n=!!r[4],a=pf(r[1]),i=pf(r[2])-1,o=pf(r[3]),l=pf(r[4]),c=pf(r[5])-1;if(n)return gQ(t,l,c)?fQ(t,l,c):new Date(NaN);{const u=new Date(0);return!hQ(t,i,o)||!pQ(t,a)?new Date(NaN):(u.setUTCFullYear(t,i,Math.max(a,o)),u)}}function pf(e){return e?parseInt(e):1}function uQ(e){const t=e.match(sQ);if(!t)return NaN;const r=Lb(t[1]),n=Lb(t[2]),a=Lb(t[3]);return vQ(r,n,a)?r*y3+n*x3+a*1e3:NaN}function Lb(e){return e&&parseFloat(e.replace(",","."))||0}function dQ(e){if(e==="Z")return 0;const t=e.match(iQ);if(!t)return 0;const r=t[1]==="+"?-1:1,n=parseInt(t[2]),a=t[3]&&parseInt(t[3])||0;return xQ(n,a)?r*(n*y3+a*x3):NaN}function fQ(e,t,r){const n=new Date(0);n.setUTCFullYear(e,0,4);const a=n.getUTCDay()||7,i=(t-1)*7+r+1-a;return n.setUTCDate(n.getUTCDate()+i),n}const mQ=[31,null,31,30,31,30,31,31,30,31,30,31];function S3(e){return e%400===0||e%4===0&&e%100!==0}function hQ(e,t,r){return t>=0&&t<=11&&r>=1&&r<=(mQ[t]||(S3(e)?29:28))}function pQ(e,t){return t>=1&&t<=(S3(e)?366:365)}function gQ(e,t,r){return t>=1&&t<=53&&r>=0&&r<=6}function vQ(e,t,r){return e===24?t===0&&r===0:r>=0&&r<60&&t>=0&&t<60&&e>=0&&e<25}function xQ(e,t){return t>=0&&t<=59}function yQ(e,t){return QY(e,-t)}function ng(e,t){const{years:r=0,months:n=0,weeks:a=0,days:i=0,hours:o=0,minutes:l=0,seconds:c=0}=t,u=yQ(e,n+r*12),d=nQ(u,i+a*7),f=l+o*60,p=(c+f*60)*1e3;return Ka(e,d.getTime()-p)}var bQ=Array.isArray,Mn=bQ,jQ=typeof Dp=="object"&&Dp&&Dp.Object===Object&&Dp,P3=jQ,wQ=P3,NQ=typeof self=="object"&&self&&self.Object===Object&&self,SQ=wQ||NQ||Function("return this")(),Ds=SQ,PQ=Ds,CQ=PQ.Symbol,fp=CQ,SE=fp,C3=Object.prototype,AQ=C3.hasOwnProperty,TQ=C3.toString,gf=SE?SE.toStringTag:void 0;function EQ(e){var t=AQ.call(e,gf),r=e[gf];try{e[gf]=void 0;var n=!0}catch{}var a=TQ.call(e);return n&&(t?e[gf]=r:delete e[gf]),a}var OQ=EQ,_Q=Object.prototype,kQ=_Q.toString;function MQ(e){return kQ.call(e)}var DQ=MQ,PE=fp,RQ=OQ,IQ=DQ,$Q="[object Null]",LQ="[object Undefined]",CE=PE?PE.toStringTag:void 0;function FQ(e){return e==null?e===void 0?LQ:$Q:CE&&CE in Object(e)?RQ(e):IQ(e)}var Pi=FQ;function VQ(e){return e!=null&&typeof e=="object"}var Ci=VQ,zQ=Pi,BQ=Ci,UQ="[object Symbol]";function WQ(e){return typeof e=="symbol"||BQ(e)&&zQ(e)==UQ}var zd=WQ,qQ=Mn,HQ=zd,GQ=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,KQ=/^\w*$/;function XQ(e,t){if(qQ(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||HQ(e)?!0:KQ.test(e)||!GQ.test(e)||t!=null&&e in Object(t)}var qS=XQ;function YQ(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Bo=YQ;const Bd=bt(Bo);var ZQ=Pi,QQ=Bo,JQ="[object AsyncFunction]",eJ="[object Function]",tJ="[object GeneratorFunction]",rJ="[object Proxy]";function nJ(e){if(!QQ(e))return!1;var t=ZQ(e);return t==eJ||t==tJ||t==JQ||t==rJ}var HS=nJ;const We=bt(HS);var aJ=Ds,sJ=aJ["__core-js_shared__"],iJ=sJ,Fb=iJ,AE=function(){var e=/[^.]+$/.exec(Fb&&Fb.keys&&Fb.keys.IE_PROTO||"");
vendor: 4,007 bytes, line 654
654return e?"Symbol(src)_1."+e:""}();function oJ(e){return!!AE&&AE in e}var lJ=oJ,cJ=Function.prototype,uJ=cJ.toString;function dJ(e){if(e!=null){try{return uJ.call(e)}catch{}try{return e+""}catch{}}return""}var A3=dJ,fJ=HS,mJ=lJ,hJ=Bo,pJ=A3,gJ=/[\\^$.*+?()[\]{}|]/g,vJ=/^\[object .+?Constructor\]$/,xJ=Function.prototype,yJ=Object.prototype,bJ=xJ.toString,jJ=yJ.hasOwnProperty,wJ=RegExp("^"+bJ.call(jJ).replace(gJ,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function NJ(e){if(!hJ(e)||mJ(e))return!1;var t=fJ(e)?wJ:vJ;return t.test(pJ(e))}var SJ=NJ;function PJ(e,t){return e==null?void 0:e[t]}var CJ=PJ,AJ=SJ,TJ=CJ;function EJ(e,t){var r=TJ(e,t);return AJ(r)?r:void 0}var lc=EJ,OJ=lc,_J=OJ(Object,"create"),Fy=_J,TE=Fy;function kJ(){this.__data__=TE?TE(null):{},this.size=0}var MJ=kJ;function DJ(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var RJ=DJ,IJ=Fy,$J="__lodash_hash_undefined__",LJ=Object.prototype,FJ=LJ.hasOwnProperty;function VJ(e){var t=this.__data__;if(IJ){var r=t[e];return r===$J?void 0:r}return FJ.call(t,e)?t[e]:void 0}var zJ=VJ,BJ=Fy,UJ=Object.prototype,WJ=UJ.hasOwnProperty;function qJ(e){var t=this.__data__;return BJ?t[e]!==void 0:WJ.call(t,e)}var HJ=qJ,GJ=Fy,KJ="__lodash_hash_undefined__";function XJ(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=GJ&&t===void 0?KJ:t,this}var YJ=XJ,ZJ=MJ,QJ=RJ,JJ=zJ,eee=HJ,tee=YJ;function Ud(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Ud.prototype.clear=ZJ;Ud.prototype.delete=QJ;Ud.prototype.get=JJ;Ud.prototype.has=eee;Ud.prototype.set=tee;var ree=Ud;function nee(){this.__data__=[],this.size=0}var aee=nee;function see(e,t){return e===t||e!==e&&t!==t}var GS=see,iee=GS;function oee(e,t){for(var r=e.length;r--;)if(iee(e[r][0],t))return r;return-1}var Vy=oee,lee=Vy,cee=Array.prototype,uee=cee.splice;function dee(e){var t=this.__data__,r=lee(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():uee.call(t,r,1),--this.size,!0}var fee=dee,mee=Vy;function hee(e){var t=this.__data__,r=mee(t,e);return r<0?void 0:t[r][1]}var pee=hee,gee=Vy;function vee(e){return gee(this.__data__,e)>-1}var xee=vee,yee=Vy;function bee(e,t){var r=this.__data__,n=yee(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var jee=bee,wee=aee,Nee=fee,See=pee,Pee=xee,Cee=jee;function Wd(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Wd.prototype.clear=wee;Wd.prototype.delete=Nee;Wd.prototype.get=See;Wd.prototype.has=Pee;Wd.prototype.set=Cee;var zy=Wd,Aee=lc,Tee=Ds,Eee=Aee(Tee,"Map"),KS=Eee,EE=ree,Oee=zy,_ee=KS;function kee(){this.size=0,this.__data__={hash:new EE,map:new(_ee||Oee),string:new EE}}var Mee=kee;function Dee(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var Ree=Dee,Iee=Ree;function $ee(e,t){var r=e.__data__;return Iee(t)?r[typeof t=="string"?"string":"hash"]:r.map}var By=$ee,Lee=By;function Fee(e){var t=Lee(this,e).delete(e);return this.size-=t?1:0,t}var Vee=Fee,zee=By;function Bee(e){return zee(this,e).get(e)}var Uee=Bee,Wee=By;function qee(e){return Wee(this,e).has(e)}var Hee=qee,Gee=By;function Kee(e,t){var r=Gee(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var Xee=Kee,Yee=Mee,Zee=Vee,Qee=Uee,Jee=Hee,ete=Xee;function qd(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}qd.prototype.clear=Yee;qd.prototype.delete=Zee;qd.prototype.get=Qee;qd.prototype.has=Jee;qd.prototype.set=ete;var XS=qd,T3=XS,tte="Expected a function";function YS(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(tte);var r=function(){var n=arguments,a=t?t.apply(this,n):n[0],i=r.cache;if(i.has(a))return i.get(a);var o=e.apply(this,n);return r.cache=i.set(a,o)||i,o};return r.cache=new(YS.Cache||T3),r}YS.Cache=T3;var E3=YS;const rte=bt(E3);var nte=E3,ate=500;function ste(e){var t=nte(e,function(n){return r.size===ate&&r.clear(),n}
vendor: 6,545 bytes, lines 654-662
654),r=t.cache;return t}var ite=ste,ote=ite,lte=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,cte=/\\(\\)?/g,ute=ote(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(lte,function(r,n,a,i){t.push(a?i.replace(cte,"$1"):n||r)}),t}),dte=ute;function fte(e,t){for(var r=-1,n=e==null?0:e.length,a=Array(n);++r<n;)a[r]=t(e[r],r,e);return a}var ZS=fte,OE=fp,mte=ZS,hte=Mn,pte=zd,gte=1/0,_E=OE?OE.prototype:void 0,kE=_E?_E.toString:void 0;function O3(e){if(typeof e=="string")return e;if(hte(e))return mte(e,O3)+"";if(pte(e))return kE?kE.call(e):"";var t=e+"";return t=="0"&&1/e==-gte?"-0":t}var vte=O3,xte=vte;function yte(e){return e==null?"":xte(e)}var _3=yte,bte=Mn,jte=qS,wte=dte,Nte=_3;function Ste(e,t){return bte(e)?e:jte(e,t)?[e]:wte(Nte(e))}var k3=Ste,Pte=zd,Cte=1/0;function Ate(e){if(typeof e=="string"||Pte(e))return e;var t=e+"";return t=="0"&&1/e==-Cte?"-0":t}var Uy=Ate,Tte=k3,Ete=Uy;function Ote(e,t){t=Tte(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[Ete(t[r++])];return r&&r==n?e:void 0}var QS=Ote,_te=QS;function kte(e,t,r){var n=e==null?void 0:_te(e,t);return n===void 0?r:n}var M3=kte;const qn=bt(M3);function Mte(e){return e==null}var Dte=Mte;const et=bt(Dte);var Rte=Pi,Ite=Mn,$te=Ci,Lte="[object String]";function Fte(e){return typeof e=="string"||!Ite(e)&&$te(e)&&Rte(e)==Lte}var Vte=Fte;const mp=bt(Vte);var D3={exports:{}},St={};/** 655 * @license React 656 * react-is.production.min.js 657 * 658 * Copyright (c) Facebook, Inc. and its affiliates. 659 * 660 * This source code is licensed under the MIT license found in the 661 * LICENSE file in the root directory of this source tree. 662 */var JS=Symbol.for("react.element"),eP=Symbol.for("react.portal"),Wy=Symbol.for("react.fragment"),qy=Symbol.for("react.strict_mode"),Hy=Symbol.for("react.profiler"),Gy=Symbol.for("react.provider"),Ky=Symbol.for("react.context"),zte=Symbol.for("react.server_context"),Xy=Symbol.for("react.forward_ref"),Yy=Symbol.for("react.suspense"),Zy=Symbol.for("react.suspense_list"),Qy=Symbol.for("react.memo"),Jy=Symbol.for("react.lazy"),Bte=Symbol.for("react.offscreen"),R3;R3=Symbol.for("react.module.reference");function Na(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case JS:switch(e=e.type,e){case Wy:case Hy:case qy:case Yy:case Zy:return e;default:switch(e=e&&e.$$typeof,e){case zte:case Ky:case Xy:case Jy:case Qy:case Gy:return e;default:return t}}case eP:return t}}}St.ContextConsumer=Ky;St.ContextProvider=Gy;St.Element=JS;St.ForwardRef=Xy;St.Fragment=Wy;St.Lazy=Jy;St.Memo=Qy;St.Portal=eP;St.Profiler=Hy;St.StrictMode=qy;St.Suspense=Yy;St.SuspenseList=Zy;St.isAsyncMode=function(){return!1};St.isConcurrentMode=function(){return!1};St.isContextConsumer=function(e){return Na(e)===Ky};St.isContextProvider=function(e){return Na(e)===Gy};St.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===JS};St.isForwardRef=function(e){return Na(e)===Xy};St.isFragment=function(e){return Na(e)===Wy};St.isLazy=function(e){return Na(e)===Jy};St.isMemo=function(e){return Na(e)===Qy};St.isPortal=function(e){return Na(e)===eP};St.isProfiler=function(e){return Na(e)===Hy};St.isStrictMode=function(e){return Na(e)===qy};St.isSuspense=function(e){return Na(e)===Yy};St.isSuspenseList=function(e){return Na(e)===Zy};St.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Wy||e===Hy||e===qy||e===Yy||e===Zy||e===Bte||typeof e=="object"&&e!==null&&(e.$$typeof===Jy||e.$$typeof===Qy||e.$$typeof===Gy||e.$$typeof===Ky||e.$$typeof===Xy||e.$$typeof===R3||e.getModuleId!==void 0)};St.typeOf=Na;D3.exports=St;var Ute=D3.exports,Wte=Pi,qte=Ci,Hte="[object Number]";function Gte(e){return typeof e=="number"||qte(e)&&Wte(e)==Hte}var I3=Gte;const Kte=bt(I3);var Xte=I3;function Yte(e){return Xte(e)&&e!=+e}var Zte=Yte;const Hd=bt(Zte);var pn=function(t){return t===0?0:t>0?1:-1},ml=function(t){return mp(t)&&t.indexOf("%")===t.length-1},se=function(t){return Kte(t)&&!Hd(t)},Sr=function(t){return se(t)||mp(t)},Qte=0,Gd=function(t){var r=++Qte;return"".concat(t||"").concat(r)},gn=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!se(t)&&!mp(t))return n;var i;if(ml(t)){var o=t.indexOf("%");i=r*parseFloat(t.slice(0,o))/100}else i=+t;return Hd(i)&&(i=n),a&&i>r&&(i=r),i},qi=function(t){if(!t)return null;var r=Object.keys(t);return r&&r.length?t[r[0]]:null},Jte=function(t){if(!Array.isArray(t))return!1;for(var r=t.length,n={},a=0;a<r;a++)if(!n[t[a]])n[t[a]]=!0;else return!0;return!1},An=function(t,r){return se(t)&&se(r)?function(n){return t+n*(r-t)}:function(){return r}};function Dv(e,t,r){return!e||!e.length?null:e.find(function(n){return n&&(typeof t=="function"?t(n):qn(n,t))===r})}function mu(e,t){for(var r in e)if({}.hasOwnProperty.call(e,r)&&(!{}.hasOwnProperty.call(t,r)||e[r]!==t[r]))return!1;for(var n in t)if({}.hasOwnProperty.call(t,n)&&!{}.hasOwnProperty.call(e,n))return!1;return!0}function rw(e){"@babel/helpers - typeof";return rw=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},rw(e)}var ere=["viewBox","children"],tre=["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","colorRen
662dering","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"],ME=["points","pathLength"],Vb={svg:ere,polygon:ME,polyline:ME},tP=["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","onDrag
662Capture","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"],Rv=function(t,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var n=t;if(b.isValidElement(t)&&(n=t.props),!Bd(n))return null;var a={};return Object.keys(n).forEach(function(i){tP.includes(i)&&(a[i]=r||function(o){return n[i](n,o)})}),a},rre=function(t,r,n){return function(a){return t(r,n,a),null}},Hl=function(t,r,n){if(!Bd(t)||rw(t)!=="object")return null;var a=null;return Object.keys(t).forEach(function(i){var o=t[i];tP.includes(i)&&typeof o=="function"&&(a||(a={}),a[i]=rre(o,r,n))}),a},nre=["children"],are=["children"];function DE(e,t){if(e==null)return{};var r=sre(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function sre(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function nw(e){"@babel/helpers - typeof";return nw=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},nw(e)}var RE={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"},ti=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},IE=null,zb=null,rP=function e(t){if(t===IE&&Array.isArray(zb))return zb;var r=[];return b.Children.forEach(t,function(n){et(n)||(Ute.isFragment(n)?r=r.concat(e(n.props.children)):r.push(n))}),zb=r,IE=t,r};function pa(e,t){var r=[],n=[];return Array.isArray(t)?n=t.map(function(a){return ti(a)}):n=[ti(t)],rP(e).forEach(function(a){var i=qn(a,"type.displayName")||qn(a,"type.n
662ame");n.indexOf(i)!==-1&&r.push(a)}),r}function $n(e,t){var r=pa(e,t);return r&&r[0]}var $E=function(t){if(!t||!t.props)return!1;var r=t.props,n=r.width,a=r.height;return!(!se(n)||n<=0||!se(a)||a<=0)},ire=["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"],ore=function(t){return t&&t.type&&mp(t.type)&&ire.indexOf(t.type)>=0},lre=function(t){return t&&nw(t)==="object"&&"clipDot"in t},cre=function(t,r,n,a){var i,o=(i=Vb==null?void 0:Vb[a])!==null&&i!==void 0?i:[];return r.startsWith("data-")||!We(t)&&(a&&o.includes(r)||tre.includes(r))||n&&tP.includes(r)},$e=function(t,r,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var a=t;if(b.isValidElement(t)&&(a=t.props),!Bd(a))return null;var i={};return Object.keys(a).forEach(function(o){var l;cre((l=a)===null||l===void 0?void 0:l[o],o,r,n)&&(i[o]=a[o])}),i},aw=function e(t,r){if(t===r)return!0;var n=b.Children.count(t);if(n!==b.Children.count(r))return!1;if(n===0)return!0;if(n===1)return LE(Array.isArray(t)?t[0]:t,Array.isArray(r)?r[0]:r);for(var a=0;a<n;a++){var i=t[a],o=r[a];if(Array.isArray(i)||Array.isArray(o)){if(!e(i,o))return!1}else if(!LE(i,o))return!1}return!0},LE=function(t,r){if(et(t)&&et(r))return!0;if(!et(t)&&!et(r)){var n=t.props||{},a=n.children,i=DE(n,nre),o=r.props||{},l=o.children,c=DE(o,are);return a&&l?mu(i,c)&&aw(a,l):!a&&!l?mu(i,c):!1}return!1},FE=function(t,r){var n=[],a={};return rP(t).forEach(function(i,o){if(ore(i))n.push(i);else if(i){var l=ti(i.type),c=r[l]||{},u=c.handler,d=c.once;if(u&&(!d||!a[l])){var f=u(i,l,o);n.push(f),a[l]=!0}}}),n},ure=function(t){var r=t&&t.type;return r&&RE[r]?RE[r]:null},dre=function(t,r){return rP(r).indexOf(t)},fre=["children","width","height","viewBox","className","style","title","desc"];function sw(){return sw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},sw.apply(this,arguments)}function mre(e,t){if(e==null)return{};var r=hre(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function hre(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function iw(e){var t=e.children,r=e.width,n=e.height,a=e.viewBox,i=e.className,o=e.style,l=e.title,c=e.desc,u=mre(e,fre),d=a||{width:r,height:n,x:0,y:0},f=rt("recharts-surface",i);return _.createElement("svg",sw({},$e(u,!0,"svg"),{className:f,width:r,height:n,style:o,viewBox:"".concat(d.x," ").concat(d.y," ").concat(d.width," ").concat(d.height)}),_.createElement("title",null,l),_.createElement("desc",null,c),t)}var pre=["children","className"];function ow(){return ow=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ow.apply(this,arguments)}function gre(e,t){if(e==null)return{};var r=vre(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function vre(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var ut=_.forwardRef(function(e,t){var r=e.children,n=e.className,a=gre(e,pre),i=rt("recharts-layer",n);return _.createElement("g",ow({className:i},$e(a,!0),{ref:t}),r)}),Ua=function(t,r){for(var n=arguments.length,a=new Array(n>2?n-2:0),i=2;i<n;i++)a[i-2]=arguments[i]};function xre(e,t,r){var n=-1,a=e.length;t<0&&(t=-t>a?0:a+t),r=r>a?a:r,r<0&&(r+=a),a=t>r?0:r-t>>>0,t>>>=0;for(var i=Array(a);++n<a;)i[n]=e[n+t];return i}var yre=xre,bre=yre;function jre(e,t,r){var n=e.length;return r=r===void 0?n:r,!t&&r>=n?e:bre(e,t,r)}var wre=jre,Nre="\\ud800-\\udfff",Sre="\\u0300-\\u036f",Pre="\\ufe20-\\ufe2f",Cre="\\u20d0-\\u20ff",Are=Sre+Pre+Cre,Tre="\\ufe0e\\ufe0f",Ere="\\u200d",Ore=RegExp("["+Ere+Nre+Are+Tre+"]");function _re(e){return Ore.test(e)}var $3=_re;function kre(e){return e.split("")}var Mre=kre,L3="\\ud800-\\udfff",Dre="\\u0300-\\u036f",Rre="\\ufe20-\\ufe2f",Ire="\\u20d0-\\u20ff",$re=Dre+Rre+Ire,Lre="\\ufe0e\\ufe0f",Fre="["+L3+"]",lw="["+$re+"]",cw="\\ud83c[\\udffb-\\udfff]",Vre="(?:"+lw+"|"+cw+")",F3="[^"+L3+"]",V3="(?:\\ud83c[\\udde6-\\uddff]){2}",z3="[\\ud800-\\udbff][\\udc00-\\udfff]",zre="\\u200d",B3=Vre+"?",U3="["+Lre+"]?",Bre="(?:"+zre+"(?:"+[F3,V3,z3].join("|")+")"+U3+B3+")*",Ure=U3+B3+Bre,Wre="(?:"+[F3+lw+"?",lw,V3,z3,Fre].join("|")+")",qre=RegExp(cw+"(?="+cw+")|"+Wre+Ure,"g");function Hre(e){return e.match(qre)||[]}var Gre=Hre,Kre=Mre,Xre=$3,Yre=Gre;function Zre(e){return Xre(e)?Yre(e):Kre(e)}var Qre=Zre,Jre=wre,ene=$3,tne=Qre,rne=_3;function nne(e){return function(t){t=rne(t);var r=ene(t)?tne(t):void 0,n=r?r[0]:t.charAt(0),a=r?Jre(r,1).join(""):t.slice(1);return n[e]()+a}}var ane=nne,sne=ane,ine=sne("toUpperCase"),one=ine;const e0=bt(one);function Et(e){return function(){return e}}const W3=Math.cos,Iv=Math.sin,Ya=Math.sqrt,$v=Math.PI,t0=2*$v,uw=Math.PI,dw=2*uw,nl=1e-6,lne=dw-nl;function q3(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function cne(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return q3;const r=10**t;return function(n){this._+=n[0];for(let a=1,i=n.length;a<i;++a)this._+=Math.round(arguments[a]*r)/r+n[a]}}class une{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?q3:cne(t)}moveTo(t,r){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,r){this._append`L${this._x1=+t},${this._y1=+r}`}quadraticCurveTo(t,r,n,a){this._append`Q${+t},${+r},${this._x1=+n},${this._y1=+a}`}bezierCurveTo(t,r,n,a,i,o){this._append`C${+t},${+r},${+n}
662,${+a},${this._x1=+i},${this._y1=+o}`}arcTo(t,r,n,a,i){if(t=+t,r=+r,n=+n,a=+a,i=+i,i<0)throw new Error(`negative radius: ${i}`);let o=this._x1,l=this._y1,c=n-t,u=a-r,d=o-t,f=l-r,m=d*d+f*f;if(this._x1===null)this._append`M${this._x1=t},${this._y1=r}`;else if(m>nl)if(!(Math.abs(f*c-u*d)>nl)||!i)this._append`L${this._x1=t},${this._y1=r}`;else{let p=n-o,v=a-l,h=c*c+u*u,x=p*p+v*v,y=Math.sqrt(h),g=Math.sqrt(m),j=i*Math.tan((uw-Math.acos((h+m-x)/(2*y*g)))/2),S=j/g,w=j/y;Math.abs(S-1)>nl&&this._append`L${t+S*d},${r+S*f}`,this._append`A${i},${i},0,0,${+(f*p>d*v)},${this._x1=t+w*c},${this._y1=r+w*u}`}}arc(t,r,n,a,i,o){if(t=+t,r=+r,n=+n,o=!!o,n<0)throw new Error(`negative radius: ${n}`);let l=n*Math.cos(a),c=n*Math.sin(a),u=t+l,d=r+c,f=1^o,m=o?a-i:i-a;this._x1===null?this._append`M${u},${d}`:(Math.abs(this._x1-u)>nl||Math.abs(this._y1-d)>nl)&&this._append`L${u},${d}`,n&&(m<0&&(m=m%dw+dw),m>lne?this._append`A${n},${n},0,1,${f},${t-l},${r-c}A${n},${n},0,1,${f},${this._x1=u},${this._y1=d}`:m>nl&&this._append`A${n},${n},0,${+(m>=uw)},${f},${this._x1=t+n*Math.cos(i)},${this._y1=r+n*Math.sin(i)}`)}rect(t,r,n,a){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${n=+n}v${+a}h${-n}Z`}toString(){return this._}}function nP(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(r==null)t=null;else{const n=Math.floor(r);if(!(n>=0))throw new RangeError(`invalid digits: ${r}`);t=n}return e},()=>new une(t)}function aP(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function H3(e){this._context=e}H3.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 r0(e){return new H3(e)}function G3(e){return e[0]}function K3(e){return e[1]}function X3(e,t){var r=Et(!0),n=null,a=r0,i=null,o=nP(l);e=typeof e=="function"?e:e===void 0?G3:Et(e),t=typeof t=="function"?t:t===void 0?K3:Et(t);function l(c){var u,d=(c=aP(c)).length,f,m=!1,p;for(n==null&&(i=a(p=o())),u=0;u<=d;++u)!(u<d&&r(f=c[u],u,c))===m&&((m=!m)?i.lineStart():i.lineEnd()),m&&i.point(+e(f,u,c),+t(f,u,c));if(p)return i=null,p+""||null}return l.x=function(c){return arguments.length?(e=typeof c=="function"?c:Et(+c),l):e},l.y=function(c){return arguments.length?(t=typeof c=="function"?c:Et(+c),l):t},l.defined=function(c){return arguments.length?(r=typeof c=="function"?c:Et(!!c),l):r},l.curve=function(c){return arguments.length?(a=c,n!=null&&(i=a(n)),l):a},l.context=function(c){return arguments.length?(c==null?n=i=null:i=a(n=c),l):n},l}function ag(e,t,r){var n=null,a=Et(!0),i=null,o=r0,l=null,c=nP(u);e=typeof e=="function"?e:e===void 0?G3:Et(+e),t=typeof t=="function"?t:Et(t===void 0?0:+t),r=typeof r=="function"?r:r===void 0?K3:Et(+r);function u(f){var m,p,v,h=(f=aP(f)).length,x,y=!1,g,j=new Array(h),S=new Array(h);for(i==null&&(l=o(g=c())),m=0;m<=h;++m){if(!(m<h&&a(x=f[m],m,f))===y)if(y=!y)p=m,l.areaStart(),l.lineStart();else{for(l.lineEnd(),l.lineStart(),v=m-1;v>=p;--v)l.point(j[v],S[v]);l.lineEnd(),l.areaEnd()}y&&(j[m]=+e(x,m,f),S[m]=+t(x,m,f),l.point(n?+n(x,m,f):j[m],r?+r(x,m,f):S[m]))}if(g)return l=null,g+""||null}function d(){return X3().defined(a).curve(o).context(i)}return u.x=function(f){return arguments.length?(e=typeof f=="function"?f:Et(+f),n=null,u):e},u.x0=function(f){return arguments.length?(e=typeof f=="function"?f:Et(+f),u):e},u.x1=function(f){return arguments.length?(n=f==null?null:typeof f=="function"?f:Et(+f),u):n},u.y=function(f){return arguments.length?(t=typeof f=="function"?f:Et(+f),r=null,u):t},u.y0=function(f){return arguments.length?(t=typeof f=="function"?f:Et(+f),u):t},u.y1=function(f){return arguments.length?(r=f==null?null:typeof f=="function"?f:Et(+f),u):r},u.lineX0=u.lineY0=function(){return d().x(e).y(t)},u.lineY1=function(){return d().x(e).y(r)},u.lineX1=function(){return d().x(n).y(t)},u.defined=function(f){return arguments.length?(a=typeof f=="function"?f:Et(!!f),u):a},u.curve=function(f){return arguments.length?(o=f,i!=null&&(l=o(i)),u):o},u.context=function(f){return arguments.length?(f==null?i=l=null:l=o(i=f),u):i},u}class Y3{constructor(t,r){this._context=t,this._x=r}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,r){switch(t=+t,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,r):this._context.moveTo(t,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,r,t,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,t,this._y0,t,r);break}}this._x0=t,this._y0=r}}function dne(e){return new Y3(e,!0)}function fne(e){return new Y3(e,!1)}const sP={draw(e,t){const r=Ya(t/$v);e.moveTo(r,0),e.arc(0,0,r,0,t0)}},mne={draw(e,t){const r=Ya(t/5)/2;e.moveTo(-3*r,-r),e.lineTo(-r,-r),e.lineTo(-r,-3*r),e.lineTo(r,-3*r),e.lineTo(r,-r),e.lineTo(3*r,-r),e.lineTo(3*r,r),e.lineTo(r,r),e.lineTo(r,3*r),e.lineTo(-r,3*r),e.lineTo(-r,r),e.lineTo(-3*r,r),e.closePath()}},Z3=Ya(1/3),hne=Z3*2,pne={draw(e,t){const r=Ya(t/hne),n=r*Z3;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},gne={draw(e,t){const r=Ya(t),n=-r/2;e.rect(n,n,r,r)}},vne=.8908130915292852,Q3=Iv($v/10)/Iv(7*$v/10),xne=Iv(t0/10)*Q3,yne=-W3(t0/10)*Q3,bne={draw(e,t){const r=Ya(t*vne),n=xne*r,a=yne*r;e.moveTo(0,-r),e.lineTo(n,a);for(let i=1;i<5;++i){const o=t0*i/5,l=W3(o),c=Iv(o);e.lineTo(c*r,-l*r),e.lineTo(l*n-c*a,c*n+l*a)}e.closePath()}},Bb=Ya(3),jne={draw(e,t){const r=-Ya(t/(Bb*3));e.moveTo(0,r*2),e.lineTo(-Bb*r,-r),e.lineTo(Bb*r,-r),e.closePath()}},ea=-.5,ta=Ya(3)/2,fw=1/Ya(12),wne=(fw/2+1)*3,Nne={draw(e,t){const r=Ya(t/wne),n=r/2,a=r*fw,i=n,o=r*fw+r,l=-i,c=o;e.moveTo(n,a),e.lineTo(i,o),e.lineTo(l,c),e.lineTo(ea*n-ta*a,ta*n+ea*a),e.lineTo(ea*i-ta*o,ta*i+ea*o),e.lineTo(ea*l-ta*c,ta*l+ea*c),e.lineTo(ea*n+ta*a,ea*a-ta*n),e.lineTo(ea*i+ta*o,ea*o-ta*i),e.lineTo(ea*l+ta*c,ea*c-ta*l),e.closePath()}};function Sne(e,t){let r=null,n=nP(a);e=typeof e=="function"?e:Et(e||sP),t=typeof t=="function"?t:Et(t===void 0?64:+t);function a(){let i;if(r||(r=i=n()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),i)return r=null,i+""||null}return a.type=function(i){return arguments.length?(e=typeof i=="function"?i:Et(i),a):e},a.size=function(i){return arguments.length?(t=typeof i=="function"?i:Et(+i),a):t},a.context=function(i){return arguments.length?(r=i??null,a):r},a}function Lv(){}function Fv(e,t,r){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+r)/6)}function J3(e){this._context=e}J3.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:Fv(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:Fv(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Pne(e){return new J3(e)}function eL(e){this._context=e}eL.prototype={areaStart:Lv,areaEnd:Lv,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:Fv(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Cne(e){return new eL(e)}function tL(e){this._context=e}tL.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 r=(this._x0+4*this._x1+e)/6,n=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:Fv(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Ane(e){return new tL(e)}function rL(e){this._context=e}rL.prototype={areaStart:Lv,areaEnd:Lv,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 Tne(e){return new rL(e)}function VE(e){return e<0?-1:1}function zE(e,t,r){var n=e._x1-e._x0,a=t-e._x1,i=(e._y1-e._y0)/(n||a<0&&-0),o=(r-e._y1)/(a||n<0&&-0),l=(i*a+o*n)/(n+a);return(VE(i)+VE(o))*Math.min(Math.abs(i),Math.abs(o),.5*Math.abs(l))||0}function BE(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function Ub(e,t,r){var n=e._x0,a=e._y0,i=e._x1,o=e._y1,l=(i-n)/3;e._context.bezierCurveTo(n+l,a+l*t,i-l,o-l*r,i,o)}function Vv(e){this._context=e}Vv.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:Ub(this,this._t0,BE(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 r=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;
662case 2:this._point=3,Ub(this,BE(this,r=zE(this,e,t)),r);break;default:Ub(this,this._t0,r=zE(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function nL(e){this._context=new aL(e)}(nL.prototype=Object.create(Vv.prototype)).point=function(e,t){Vv.prototype.point.call(this,t,e)};function aL(e){this._context=e}aL.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,r,n,a,i){this._context.bezierCurveTo(t,e,n,r,i,a)}};function Ene(e){return new Vv(e)}function One(e){return new nL(e)}function sL(e){this._context=e}sL.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,r=e.length;if(r)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),r===2)this._context.lineTo(e[1],t[1]);else for(var n=UE(e),a=UE(t),i=0,o=1;o<r;++i,++o)this._context.bezierCurveTo(n[0][i],a[0][i],n[1][i],a[1][i],e[o],t[o]);(this._line||this._line!==0&&r===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 UE(e){var t,r=e.length-1,n,a=new Array(r),i=new Array(r),o=new Array(r);for(a[0]=0,i[0]=2,o[0]=e[0]+2*e[1],t=1;t<r-1;++t)a[t]=1,i[t]=4,o[t]=4*e[t]+2*e[t+1];for(a[r-1]=2,i[r-1]=7,o[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)n=a[t]/i[t-1],i[t]-=n,o[t]-=n*o[t-1];for(a[r-1]=o[r-1]/i[r-1],t=r-2;t>=0;--t)a[t]=(o[t]-a[t+1])/i[t];for(i[r-1]=(e[r]+a[r-1])/2,t=0;t<r-1;++t)i[t]=2*e[t+1]-a[t+1];return[a,i]}function _ne(e){return new sL(e)}function n0(e,t){this._context=e,this._t=t}n0.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 r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}break}}this._x=e,this._y=t}};function kne(e){return new n0(e,.5)}function Mne(e){return new n0(e,0)}function Dne(e){return new n0(e,1)}function Ku(e,t){if((o=e.length)>1)for(var r=1,n,a,i=e[t[0]],o,l=i.length;r<o;++r)for(a=i,i=e[t[r]],n=0;n<l;++n)i[n][1]+=i[n][0]=isNaN(a[n][1])?a[n][0]:a[n][1]}function mw(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}function Rne(e,t){return e[t]}function Ine(e){const t=[];return t.key=e,t}function $ne(){var e=Et([]),t=mw,r=Ku,n=Rne;function a(i){var o=Array.from(e.apply(this,arguments),Ine),l,c=o.length,u=-1,d;for(const f of i)for(l=0,++u;l<c;++l)(o[l][u]=[0,+n(f,o[l].key,u,i)]).data=f;for(l=0,d=aP(t(o));l<c;++l)o[d[l]].index=l;return r(o,d),o}return a.keys=function(i){return arguments.length?(e=typeof i=="function"?i:Et(Array.from(i)),a):e},a.value=function(i){return arguments.length?(n=typeof i=="function"?i:Et(+i),a):n},a.order=function(i){return arguments.length?(t=i==null?mw:typeof i=="function"?i:Et(Array.from(i)),a):t},a.offset=function(i){return arguments.length?(r=i??Ku,a):r},a}function Lne(e,t){if((n=e.length)>0){for(var r,n,a=0,i=e[0].length,o;a<i;++a){for(o=r=0;r<n;++r)o+=e[r][a][1]||0;if(o)for(r=0;r<n;++r)e[r][a][1]/=o}Ku(e,t)}}function Fne(e,t){if((a=e.length)>0){for(var r=0,n=e[t[0]],a,i=n.length;r<i;++r){for(var o=0,l=0;o<a;++o)l+=e[o][r][1]||0;n[r][1]+=n[r][0]=-l/2}Ku(e,t)}}function Vne(e,t){if(!(!((o=e.length)>0)||!((i=(a=e[t[0]]).length)>0))){for(var r=0,n=1,a,i,o;n<i;++n){for(var l=0,c=0,u=0;l<o;++l){for(var d=e[t[l]],f=d[n][1]||0,m=d[n-1][1]||0,p=(f-m)/2,v=0;v<l;++v){var h=e[t[v]],x=h[n][1]||0,y=h[n-1][1]||0;p+=x-y}c+=f,u+=p*f}a[n-1][1]+=a[n-1][0]=r,c&&(r-=u/c)}a[n-1][1]+=a[n-1][0]=r,Ku(e,t)}}function Gm(e){"@babel/helpers - typeof";return Gm=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},Gm(e)}var zne=["type","size","sizeType"];function hw(){return hw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];
vendor: 6,896 bytes, lines 662-665
662for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},hw.apply(this,arguments)}function WE(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function qE(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?WE(Object(r),!0).forEach(function(n){Bne(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):WE(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Bne(e,t,r){return t=Une(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Une(e){var t=Wne(e,"string");return Gm(t)=="symbol"?t:t+""}function Wne(e,t){if(Gm(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Gm(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function qne(e,t){if(e==null)return{};var r=Hne(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Hne(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var iL={symbolCircle:sP,symbolCross:mne,symbolDiamond:pne,symbolSquare:gne,symbolStar:bne,symbolTriangle:jne,symbolWye:Nne},Gne=Math.PI/180,Kne=function(t){var r="symbol".concat(e0(t));return iL[r]||sP},Xne=function(t,r,n){if(r==="area")return t;switch(n){case"cross":return 5*t*t/9;case"diamond":return .5*t*t/Math.sqrt(3);case"square":return t*t;case"star":{var a=18*Gne;return 1.25*t*t*(Math.tan(a)-Math.tan(a*2)*Math.pow(Math.tan(a),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}},Yne=function(t,r){iL["symbol".concat(e0(t))]=r},iP=function(t){var r=t.type,n=r===void 0?"circle":r,a=t.size,i=a===void 0?64:a,o=t.sizeType,l=o===void 0?"area":o,c=qne(t,zne),u=qE(qE({},c),{},{type:n,size:i,sizeType:l}),d=function(){var x=Kne(n),y=Sne().type(x).size(Xne(i,l,n));return y()},f=u.className,m=u.cx,p=u.cy,v=$e(u,!0);return m===+m&&p===+p&&i===+i?_.createElement("path",hw({},v,{className:rt("recharts-symbols",f),transform:"translate(".concat(m,", ").concat(p,")"),d:d()})):null};iP.registerSymbol=Yne;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 pw(){return pw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},pw.apply(this,arguments)}function HE(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Zne(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?HE(Object(r),!0).forEach(function(n){Km(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):HE(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Qne(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Jne(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,lL(n.key),n)}}function eae(e,t,r){return t&&Jne(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function tae(e,t,r){return t=zv(t),rae(e,oL()?Reflect.construct(t,r||[],zv(e).constructor):t.apply(e,r))}function rae(e,t){if(t&&(Xu(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return nae(e)}function nae(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function oL(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(oL=function(){return!!e})()}function zv(e){return zv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},zv(e)}function aae(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&&gw(e,t)}function gw(e,t){return gw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},gw(e,t)}function Km(e,t,r){return t=lL(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function lL(e){var t=sae(e,"string");return Xu(t)=="symbol"?t:t+""}function sae(e,t){if(Xu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Xu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ra=32,oP=function(e){function t(){return Qne(this,t),tae(this,t,arguments)}return aae(t,e),eae(t,[{key:"renderIcon",value:function(n){var a=this.props.inactiveColor,i=ra/2,o=ra/6,l=ra/3,c=n.inactive?a:n.color;if(n.type==="plainline")return _.createElement("line",{strokeWidth:4,fill:"none",stroke:c,strokeDasharray:n.payload.strokeDasharray,x1:0,y1:i,x2:ra,y2:i,className:"recharts-legend-icon"});if(n.type==="line")return _.createElement("path",{strokeWidth:4,fill:"none",stroke:c,d:"M0,".concat(i,"h").concat(l,` 663 A`).concat(o,",").concat(o,",0,1,1,").concat(2*l,",").concat(i,` 664 H`).concat(ra,"M").concat(2*l,",").concat(i,` 665 A`).concat(o,",").concat(o,",0,1,1,").concat(l,",").concat(i),className:"recharts-legend-icon"});if(n.type==="rect")return _.createElement("path",{stroke:"none",fill:c,d:"M0,".concat(ra/8,"h").concat(ra,"v").concat(ra*3/4,"h").concat(-ra,"z"),className:"recharts-legend-icon"});if(_.isValidElement(n.legendIcon)){var u=Zne({},n);return delete u.legendIcon,_.cloneElement(n.legendIcon,u)}return _.createElement(iP,{fill:c,cx:i,cy:i,size:ra,sizeType:"diameter",type:n.type})}},{key:"renderItems",value:function(){var n=this,a=this.props,i=a.payload,o=a.iconSize,l=a.layout,c=a.formatter,u=a.inactiveColor,d={x:0,y:0,width:ra,height:ra}
665,f={display:l==="horizontal"?"inline-block":"block",marginRight:10},m={display:"inline-block",verticalAlign:"middle",marginRight:4};return i.map(function(p,v){var h=p.formatter||c,x=rt(Km(Km({"recharts-legend-item":!0},"legend-item-".concat(v),!0),"inactive",p.inactive));if(p.type==="none")return null;var y=We(p.value)?null:p.value;Ua(!We(p.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 g=p.inactive?u:p.color;return _.createElement("li",pw({className:x,style:f,key:"legend-item-".concat(v)},Hl(n.props,p,v)),_.createElement(iw,{width:o,height:o,viewBox:d,style:m},n.renderIcon(p)),_.createElement("span",{className:"recharts-legend-item-text",style:{color:g}},h?h(y,p,v):y))})}},{key:"render",value:function(){var n=this.props,a=n.payload,i=n.layout,o=n.align;if(!a||!a.length)return null;var l={padding:0,margin:0,textAlign:i==="horizontal"?o:"left"};return _.createElement("ul",{className:"recharts-default-legend",style:l},this.renderItems())}}])}(b.PureComponent);Km(oP,"displayName","Legend");Km(oP,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var iae=zy;function oae(){this.__data__=new iae,this.size=0}var lae=oae;function cae(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var uae=cae;function dae(e){return this.__data__.get(e)}var fae=dae;function mae(e){return this.__data__.has(e)}var hae=mae,pae=zy,gae=KS,vae=XS,xae=200;function yae(e,t){var r=this.__data__;if(r instanceof pae){var n=r.__data__;if(!gae||n.length<xae-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new vae(n)}return r.set(e,t),this.size=r.size,this}var bae=yae,jae=zy,wae=lae,Nae=uae,Sae=fae,Pae=hae,Cae=bae;function Kd(e){var t=this.__data__=new jae(e);this.size=t.size}Kd.prototype.clear=wae;Kd.prototype.delete=Nae;Kd.prototype.get=Sae;Kd.prototype.has=Pae;Kd.prototype.set=Cae;var cL=Kd,Aae="__lodash_hash_undefined__";function Tae(e){return this.__data__.set(e,Aae),this}var Eae=Tae;function Oae(e){return this.__data__.has(e)}var _ae=Oae,kae=XS,Mae=Eae,Dae=_ae;function Bv(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new kae;++t<r;)this.add(e[t])}Bv.prototype.add=Bv.prototype.push=Mae;Bv.prototype.has=Dae;var uL=Bv;function Rae(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}var dL=Rae;function Iae(e,t){return e.has(t)}var fL=Iae,$ae=uL,Lae=dL,Fae=fL,Vae=1,zae=2;function Bae(e,t,r,n,a,i){var o=r&Vae,l=e.length,c=t.length;if(l!=c&&!(o&&c>l))return!1;var u=i.get(e),d=i.get(t);if(u&&d)return u==t&&d==e;var f=-1,m=!0,p=r&zae?new $ae:void 0;for(i.set(e,t),i.set(t,e);++f<l;){var v=e[f],h=t[f];if(n)var x=o?n(h,v,f,t,e,i):n(v,h,f,e,t,i);if(x!==void 0){if(x)continue;m=!1;break}if(p){if(!Lae(t,function(y,g){if(!Fae(p,g)&&(v===y||a(v,y,r,n,i)))return p.push(g)})){m=!1;break}}else if(!(v===h||a(v,h,r,n,i))){m=!1;break}}return i.delete(e),i.delete(t),m}var mL=Bae,Uae=Ds,Wae=Uae.Uint8Array,qae=Wae;function Hae(e){var t=-1,r=Array(e.size);return e.forEach(function(n,a){r[++t]=[a,n]}),r}var Gae=Hae;function Kae(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var lP=Kae,GE=fp,KE=qae,Xae=GS,Yae=mL,Zae=Gae,Qae=lP,Jae=1,ese=2,tse="[object Boolean]",rse="[object Date]",nse="[object Error]",ase="[object Map]",sse="[object Number]",ise="[object RegExp]",ose="[object Set]",lse="[object String]",cse="[object Symbol]",use="[object ArrayBuffer]",dse="[object DataView]",XE=GE?GE.prototype:void 0,Wb=XE?XE.valueOf:void 0;function fse(e,t,r,n,a,i,o){switch(r){case dse:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case use:return!(e.byteLength!=t.byteLength||!i(new KE(e),new KE(t)));case tse:case rse:case sse:return Xae(+e,+t);case nse:return e.name==t.name&&e.message==t.message;case ise:case lse:return e==t+"";case ase:var l=Zae;case ose:var c=n&Jae;if(l||(l=Qae),e.size!=t.size&&!c)return!1;var u=o.get(e);if(u)return u==t;n|=ese,o.set(e,t);var d=Yae(l(e),l(t),n,a,i,o);return o.delete(e),d;case cse:if(Wb)return Wb.call(e)==Wb.call(t)}return!1}var mse=fse;function hse(e,t){for(var r=-1,n=t.length,a=e.length;++r<n;)e[a+r]=t[r];return e}var hL=hse,pse=hL,gse=Mn;function vse(e,t,r){var n=t(e);return gse(e)?n:pse(n,r(e))}var xse=vse;function yse(e,t){for(var r=-1,n=e==null?0:e.length,a=0,i=[];++r<n;){var o=e[r];t(o,r,e)&&(i[a++]=o)}return i}var bse=yse;function jse(){return[]}var wse=jse,Nse=bse,Sse=wse,Pse=Object.prototype,Cse=Pse.propertyIsEnumerable,YE=Object.getOwnPropertySymbols,Ase=YE?function(e){return e==null?[]:(e=Object(e),Nse(YE(e),function(t){return Cse.call(e,t)}))}:Sse,Tse=Ase;function Ese(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var Ose=Ese,_se=Pi,kse=Ci,Mse="[object Arguments]";function Dse(e){return kse(e)&&_se(e)==Mse}var Rse=Dse,ZE=Rse,Ise=Ci,pL=Object.prototype,$se=pL.hasOwnProperty,Lse=pL.propertyIsEnumerable,Fse=ZE(function(){return arguments}())?ZE:function(e){return Ise(e)&&$se.call(e,"callee")&&!Lse.call(e,"callee")},cP=Fse,Uv={exports:{}};function Vse(){return!1}var zse=Vse;
vendor: 2,612 bytes, line 665
665Uv.exports;(function(e,t){var r=Ds,n=zse,a=t&&!t.nodeType&&t,i=a&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===a,l=o?r.Buffer:void 0,c=l?l.isBuffer:void 0,u=c||n;e.exports=u})(Uv,Uv.exports);var gL=Uv.exports,Bse=9007199254740991,Use=/^(?:0|[1-9]\d*)$/;function Wse(e,t){var r=typeof e;return t=t??Bse,!!t&&(r=="number"||r!="symbol"&&Use.test(e))&&e>-1&&e%1==0&&e<t}var uP=Wse,qse=9007199254740991;function Hse(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=qse}var dP=Hse,Gse=Pi,Kse=dP,Xse=Ci,Yse="[object Arguments]",Zse="[object Array]",Qse="[object Boolean]",Jse="[object Date]",eie="[object Error]",tie="[object Function]",rie="[object Map]",nie="[object Number]",aie="[object Object]",sie="[object RegExp]",iie="[object Set]",oie="[object String]",lie="[object WeakMap]",cie="[object ArrayBuffer]",uie="[object DataView]",die="[object Float32Array]",fie="[object Float64Array]",mie="[object Int8Array]",hie="[object Int16Array]",pie="[object Int32Array]",gie="[object Uint8Array]",vie="[object Uint8ClampedArray]",xie="[object Uint16Array]",yie="[object Uint32Array]",Rt={};Rt[die]=Rt[fie]=Rt[mie]=Rt[hie]=Rt[pie]=Rt[gie]=Rt[vie]=Rt[xie]=Rt[yie]=!0;Rt[Yse]=Rt[Zse]=Rt[cie]=Rt[Qse]=Rt[uie]=Rt[Jse]=Rt[eie]=Rt[tie]=Rt[rie]=Rt[nie]=Rt[aie]=Rt[sie]=Rt[iie]=Rt[oie]=Rt[lie]=!1;function bie(e){return Xse(e)&&Kse(e.length)&&!!Rt[Gse(e)]}var jie=bie;function wie(e){return function(t){return e(t)}}var vL=wie,Wv={exports:{}};Wv.exports;(function(e,t){var r=P3,n=t&&!t.nodeType&&t,a=n&&!0&&e&&!e.nodeType&&e,i=a&&a.exports===n,o=i&&r.process,l=function(){try{var c=a&&a.require&&a.require("util").types;return c||o&&o.binding&&o.binding("util")}catch{}}();e.exports=l})(Wv,Wv.exports);var Nie=Wv.exports,Sie=jie,Pie=vL,QE=Nie,JE=QE&&QE.isTypedArray,Cie=JE?Pie(JE):Sie,xL=Cie,Aie=Ose,Tie=cP,Eie=Mn,Oie=gL,_ie=uP,kie=xL,Mie=Object.prototype,Die=Mie.hasOwnProperty;function Rie(e,t){var r=Eie(e),n=!r&&Tie(e),a=!r&&!n&&Oie(e),i=!r&&!n&&!a&&kie(e),o=r||n||a||i,l=o?Aie(e.length,String):[],c=l.length;for(var u in e)(t||Die.call(e,u))&&!(o&&(u=="length"||a&&(u=="offset"||u=="parent")||i&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||_ie(u,c)))&&l.push(u);return l}var Iie=Rie,$ie=Object.prototype;function Lie(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||$ie;return e===r}var Fie=Lie;function Vie(e,t){return function(r){return e(t(r))}}var yL=Vie,zie=yL,Bie=zie(Object.keys,Object),Uie=Bie,Wie=Fie,qie=Uie,Hie=Object.prototype,Gie=Hie.hasOwnProperty;function Kie(e){if(!Wie(e))return qie(e);var t=[];for(var r in Object(e))Gie.call(e,r)&&r!="constructor"&&t.push(r);return t}var Xie=Kie,Yie=HS,Zie=dP;
vendor: 6,244 bytes, line 665
665function Qie(e){return e!=null&&Zie(e.length)&&!Yie(e)}var hp=Qie,Jie=Iie,eoe=Xie,toe=hp;function roe(e){return toe(e)?Jie(e):eoe(e)}var a0=roe,noe=xse,aoe=Tse,soe=a0;function ioe(e){return noe(e,soe,aoe)}var ooe=ioe,eO=ooe,loe=1,coe=Object.prototype,uoe=coe.hasOwnProperty;function doe(e,t,r,n,a,i){var o=r&loe,l=eO(e),c=l.length,u=eO(t),d=u.length;if(c!=d&&!o)return!1;for(var f=c;f--;){var m=l[f];if(!(o?m in t:uoe.call(t,m)))return!1}var p=i.get(e),v=i.get(t);if(p&&v)return p==t&&v==e;var h=!0;i.set(e,t),i.set(t,e);for(var x=o;++f<c;){m=l[f];var y=e[m],g=t[m];if(n)var j=o?n(g,y,m,t,e,i):n(y,g,m,e,t,i);if(!(j===void 0?y===g||a(y,g,r,n,i):j)){h=!1;break}x||(x=m=="constructor")}if(h&&!x){var S=e.constructor,w=t.constructor;S!=w&&"constructor"in e&&"constructor"in t&&!(typeof S=="function"&&S instanceof S&&typeof w=="function"&&w instanceof w)&&(h=!1)}return i.delete(e),i.delete(t),h}var foe=doe,moe=lc,hoe=Ds,poe=moe(hoe,"DataView"),goe=poe,voe=lc,xoe=Ds,yoe=voe(xoe,"Promise"),boe=yoe,joe=lc,woe=Ds,Noe=joe(woe,"Set"),bL=Noe,Soe=lc,Poe=Ds,Coe=Soe(Poe,"WeakMap"),Aoe=Coe,vw=goe,xw=KS,yw=boe,bw=bL,jw=Aoe,jL=Pi,Xd=A3,tO="[object Map]",Toe="[object Object]",rO="[object Promise]",nO="[object Set]",aO="[object WeakMap]",sO="[object DataView]",Eoe=Xd(vw),Ooe=Xd(xw),_oe=Xd(yw),koe=Xd(bw),Moe=Xd(jw),al=jL;(vw&&al(new vw(new ArrayBuffer(1)))!=sO||xw&&al(new xw)!=tO||yw&&al(yw.resolve())!=rO||bw&&al(new bw)!=nO||jw&&al(new jw)!=aO)&&(al=function(e){var t=jL(e),r=t==Toe?e.constructor:void 0,n=r?Xd(r):"";if(n)switch(n){case Eoe:return sO;case Ooe:return tO;case _oe:return rO;case koe:return nO;case Moe:return aO}return t});var Doe=al,qb=cL,Roe=mL,Ioe=mse,$oe=foe,iO=Doe,oO=Mn,lO=gL,Loe=xL,Foe=1,cO="[object Arguments]",uO="[object Array]",sg="[object Object]",Voe=Object.prototype,dO=Voe.hasOwnProperty;function zoe(e,t,r,n,a,i){var o=oO(e),l=oO(t),c=o?uO:iO(e),u=l?uO:iO(t);c=c==cO?sg:c,u=u==cO?sg:u;var d=c==sg,f=u==sg,m=c==u;if(m&&lO(e)){if(!lO(t))return!1;o=!0,d=!1}if(m&&!d)return i||(i=new qb),o||Loe(e)?Roe(e,t,r,n,a,i):Ioe(e,t,c,r,n,a,i);if(!(r&Foe)){var p=d&&dO.call(e,"__wrapped__"),v=f&&dO.call(t,"__wrapped__");if(p||v){var h=p?e.value():e,x=v?t.value():t;return i||(i=new qb),a(h,x,r,n,i)}}return m?(i||(i=new qb),$oe(e,t,r,n,a,i)):!1}var Boe=zoe,Uoe=Boe,fO=Ci;function wL(e,t,r,n,a){return e===t?!0:e==null||t==null||!fO(e)&&!fO(t)?e!==e&&t!==t:Uoe(e,t,r,n,wL,a)}var fP=wL,Woe=cL,qoe=fP,Hoe=1,Goe=2;function Koe(e,t,r,n){var a=r.length,i=a,o=!n;if(e==null)return!i;for(e=Object(e);a--;){var l=r[a];if(o&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++a<i;){l=r[a];var c=l[0],u=e[c],d=l[1];if(o&&l[2]){if(u===void 0&&!(c in e))return!1}else{var f=new Woe;if(n)var m=n(u,d,c,e,t,f);if(!(m===void 0?qoe(d,u,Hoe|Goe,n,f):m))return!1}}return!0}var Xoe=Koe,Yoe=Bo;function Zoe(e){return e===e&&!Yoe(e)}var NL=Zoe,Qoe=NL,Joe=a0;function ele(e){for(var t=Joe(e),r=t.length;r--;){var n=t[r],a=e[n];t[r]=[n,a,Qoe(a)]}return t}var tle=ele;function rle(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}var SL=rle,nle=Xoe,ale=tle,sle=SL;function ile(e){var t=ale(e);return t.length==1&&t[0][2]?sle(t[0][0],t[0][1]):function(r){return r===e||nle(r,e,t)}}var ole=ile;function lle(e,t){return e!=null&&t in Object(e)}var cle=lle,ule=k3,dle=cP,fle=Mn,mle=uP,hle=dP,ple=Uy;function gle(e,t,r){t=ule(t,e);for(var n=-1,a=t.length,i=!1;++n<a;){var o=ple(t[n]);if(!(i=e!=null&&r(e,o)))break;e=e[o]}return i||++n!=a?i:(a=e==null?0:e.length,!!a&&hle(a)&&mle(o,a)&&(fle(e)||dle(e)))}var vle=gle,xle=cle,yle=vle;function ble(e,t){return e!=null&&yle(e,t,xle)}var jle=ble,wle=fP,Nle=M3,Sle=jle,Ple=qS,Cle=NL,Ale=SL,Tle=Uy,Ele=1,Ole=2;function _le(e,t){return Ple(e)&&Cle(t)?Ale(Tle(e),t):function(r){var n=Nle(r,e);return n===void 0&&n===t?Sle(r,e):wle(t,n,Ele|Ole)}}var kle=_le;function Mle(e){return e}var Yd=Mle;function Dle(e){return function(t){return t==null?void 0:t[e]}}var Rle=Dle,Ile=QS;function $le(e){return function(t){return Ile(t,e)}}var Lle=$le,Fle=Rle,Vle=Lle,zle=qS,Ble=Uy;function Ule(e){return zle(e)?Fle(Ble(e)):Vle(e)}var Wle=Ule,qle=ole,Hle=kle,Gle=Yd,Kle=Mn,Xle=Wle;function Yle(e){return typeof e=="function"?e:e==null?Gle:typeof e=="object"?Kle(e)?Hle(e[0],e[1]):qle(e):Xle(e)}var Rs=Yle;function Zle(e,t,r,n){for(var a=e.length,i=r+(n?1:-1);n?i--:++i<a;)if(t(e[i],i,e))return i;return-1}var PL=Zle;function Qle(e){return e!==e}var Jle=Qle;function ece(e,t,r){for(var n=r-1,a=e.length;++n<a;)if(e[n]===t)return n;return-1}var tce=ece,rce=PL,nce=Jle,ace=tce;function sce(e,t,r){return t===t?ace(e,t,r):rce(e,nce,r)}var ice=sce,oce=ice;function lce(e,t){var r=e==null?0:e.length;return!!r&&oce(e,t,0)>-1}var cce=lce;function uce(e,t,r){for(var n=-1,a=e==null?0:e.length;++n<a;)if(r(t,e[n]))return!0;return!1}var dce=uce;function fce(){}var mce=fce,Hb=bL,hce=mce,pce=lP,gce=1/0,vce=Hb&&1/pce(new Hb([,-0]))[1]==gce?function(e){return new Hb(e)}:hce,xce=vce,yce=uL,bce=cce,jce=dce,wce=fL,Nce=xce,Sce=lP,Pce=200;function Cce(e,t,r){var n=-1,a=bce,i=e.length,o=!0,l=[],c=l;if(r)o=!1,a=jce;else if(i>=Pce){var u=t?null:Nce(e);if(u)return Sce(u);o=!1,a=wce,c=new yce}else c=t?[]:l;e:for(;++n<i;){var d=e[n],f=t?t(d):d;if(d=r||d!==0?d:0,o&&f===f){for(var m=c.length;m--;)if(c[m]===f)continue e;t&&c.push(f),l.push(d)}else a(c,f,r)||(c!==l&&c.push(f),l.push(d))}return l}var Ace=Cce,Tce=Rs,Ece=Ace;function Oce(e,t){return e&&e.length?Ece(e,Tce(t)):[]}var _ce=Oce;const mO=bt(_ce);function CL(e,t,r){return t===!0?mO(e,r):We(t)?mO(e,t):e}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 kce=["ref"];function hO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Ls(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?hO(Object(r),!0).forEach(function(n){s0(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):hO(Object(r)).forEac
vendor: 4,282 bytes, line 665
665h(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Mce(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function pO(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,TL(n.key),n)}}function Dce(e,t,r){return t&&pO(e.prototype,t),r&&pO(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Rce(e,t,r){return t=qv(t),Ice(e,AL()?Reflect.construct(t,r||[],qv(e).constructor):t.apply(e,r))}function Ice(e,t){if(t&&(Yu(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return $ce(e)}function $ce(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function AL(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(AL=function(){return!!e})()}function qv(e){return qv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},qv(e)}function Lce(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&&ww(e,t)}function ww(e,t){return ww=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},ww(e,t)}function s0(e,t,r){return t=TL(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function TL(e){var t=Fce(e,"string");return Yu(t)=="symbol"?t:t+""}function Fce(e,t){if(Yu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Yu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Vce(e,t){if(e==null)return{};var r=zce(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function zce(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Bce(e){return e.value}function Uce(e,t){if(_.isValidElement(e))return _.cloneElement(e,t);if(typeof e=="function")return _.createElement(e,t);t.ref;var r=Vce(t,kce);return _.createElement(oP,r)}var gO=1,yo=function(e){function t(){var r;Mce(this,t);for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return r=Rce(this,t,[].concat(a)),s0(r,"lastBoundingBox",{width:-1,height:-1}),r}return Lce(t,e),Dce(t,[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();return n.height=this.wrapperNode.offsetHeight,n.width=this.wrapperNode.offsetWidth,n}return null}},{key:"updateBBox",value:function(){var n=this.props.onBBoxUpdate,a=this.getBBox();a?(Math.abs(a.width-this.lastBoundingBox.width)>gO||Math.abs(a.height-this.lastBoundingBox.height)>gO)&&(this.lastBoundingBox.width=a.width,this.lastBoundingBox.height=a.height,n&&n(a)):(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,n&&n(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?Ls({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(n){var a=this.props,i=a.layout,o=a.align,l=a.verticalAlign,c=a.margin,u=a.chartWidth,d=a.chartHeight,f,m;if(!n||(n.left===void 0||n.left===null)&&(n.right===void 0||n.right===null))if(o==="center"&&i==="vertical"){var p=this.getBBoxSnapshot();f={left:((u||0)-p.width)/2}}else f=o==="right"?{right:c&&c.right||0}:{left:c&&c.left||0};if(!n||(n.top===void 0||n.top===null)&&(n.bottom===void 0||n.bottom===null))if(l==="middle"){var v=this.getBBoxSnapsh
665ot();m={top:((d||0)-v.height)/2}}else m=l==="bottom"?{bottom:c&&c.bottom||0}:{top:c&&c.top||0};return Ls(Ls({},f),m)}},{key:"render",value:function(){var n=this,a=this.props,i=a.content,o=a.width,l=a.height,c=a.wrapperStyle,u=a.payloadUniqBy,d=a.payload,f=Ls(Ls({position:"absolute",width:o||"auto",height:l||"auto"},this.getDefaultPosition(c)),c);return _.createElement("div",{className:"recharts-legend-wrapper",style:f,ref:function(p){n.wrapperNode=p}},Uce(i,Ls(Ls({},this.props),{},{payload:CL(d,u,Bce)})))}}],[{key:"getWithHeight",value:function(n,a){var i=Ls(Ls({},this.defaultProps),n.props),o=i.layout;return o==="vertical"&&se(n.props.height)?{height:n.props.height}:o==="horizontal"?{width:n.props.width||a}:null}}])}(b.PureComponent);s0(yo,"displayName","Legend");s0(yo,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var vO=fp,Wce=cP,qce=Mn,xO=vO?vO.isConcatSpreadable:void 0;function Hce(e){return qce(e)||Wce(e)||!!(xO&&e&&e[xO])}var Gce=Hce,Kce=hL,Xce=Gce;function EL(e,t,r,n,a){var i=-1,o=e.length;for(r||(r=Xce),a||(a=[]);++i<o;){var l=e[i];t>0&&r(l)?t>1?EL(l,t-1,r,n,a):Kce(a,l):n||(a[a.length]=l)}return a}var OL=EL;function Yce(e){return function(t,r,n){for(var a=-1,i=Object(t),o=n(t),l=o.length;l--;){var c=o[e?l:++a];if(r(i[c],c,i)===!1)break}return t}}var Zce=Yce,Qce=Zce,Jce=Qce(),eue=Jce,tue=eue,rue=a0;function nue(e,t){return e&&tue(e,t,rue)}var _L=nue,aue=hp;function sue(e,t){return function(r,n){if(r==null)return r;if(!aue(r))return e(r,n);for(var a=r.length,i=t?a:-1,o=Object(r);(t?i--:++i<a)&&n(o[i],i,o)!==!1;);return r}}var iue=sue,oue=_L,lue=iue,cue=lue(oue),mP=cue,uue=mP,due=hp;function fue(e,t){var r=-1,n=due(e)?Array(e.length):[];return uue(e,function(a,i,o){n[++r]=t(a,i,o)}),n}var kL=fue;function mue(e,t){var r=e.length;for(e.sort(t);r--;)e[r]=e[r].value;return e}var hue=mue,yO=zd;function pue(e,t){if(e!==t){var r=e!==void 0,n=e===null,a=e===e,i=yO(e),o=t!==void 0,l=t===null,c=t===t,u=yO(t);if(!l&&!u&&!i&&e>t||i&&o&&c&&!l&&!u||n&&o&&c||!r&&c||!a)return 1;if(!n&&!i&&!u&&e<t||u&&r&&a&&!n&&!i||l&&r&&a||!o&&a||!c)return-1}return 0}var gue=pue,vue=gue;function xue(e,t,r){for(var n=-1,a=e.criteria,i=t.criteria,o=a.length,l=r.length;++n<o;){var c=vue(a[n],i[n]);if(c){if(n>=l)return c;var u=r[n];return c*(u=="desc"?-1:1)}}return e.index-t.index}var yue=xue,Gb=ZS,bue=QS,jue=Rs,wue=kL,Nue=hue,Sue=vL,Pue=yue,Cue=Yd,Aue=Mn;function Tue(e,t,r){t.length?t=Gb(t,function(i){return Aue(i)?function(o){return bue(o,i.length===1?i[0]:i)}:i}):t=[Cue];var n=-1;t=Gb(t,Sue(jue));var a=wue(e,function(i,o,l){var c=Gb(t,function(u){return u(i)});return{criteria:c,index:++n,value:i}});return Nue(a,function(i,o){return Pue(i,o,r)})}var Eue=Tue;function Oue(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}var _ue=Oue,kue=_ue,bO=Math.max;function Mue(e,t,r){return t=bO(t===void 0?e.length-1:t,0),function(){for(var n=arguments,a=-1,i=bO(n.length-t,0),o=Array(i);++a<i;)o[a]=n[t+a];a=-1;for(var l=Array(t+1);++a<t;)l[a]=n[a];return l[t]=r(o),kue(e,this,l)}}var Due=Mue;function Rue(e){return function(){return e}}var Iue=Rue,$ue=lc,Lue=function(){try{var e=$ue(Object,"defineProperty");return e({},"",{}),e}catch{}}(),ML=Lue,Fue=Iue,jO=ML,Vue=Yd,zue=jO?function(e,t){return jO(e,"toString",{configurable:!0,enumerable:!1,value:Fue(t),writable:!0})}:Vue,Bue=zue,Uue=800,Wue=16,que=Date.now;function Hue(e){var t=0,r=0;return function(){var n=que(),a=Wue-(n-r);if(r=n,a>0){if(++t>=Uue)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var Gue=Hue,Kue=Bue,Xue=Gue,Yue=Xue(Kue),Zue=Yue,Que=Yd,Jue=Due,ede=Zue;function tde(e,t){return ede(Jue(e,t,Que),e+"")}var rde=tde,nde=GS,ade=hp,sde=uP,ide=Bo;function ode(e,t,r){if(!ide(r))return!1;var n=typeof t;return(n=="number"?ade(r)&&sde(t,r.length):n=="string"&&t in r)?nde(r[t],e):!1}var i0=ode,lde=OL,cde=Eue,ude=rde,wO=i0,dde=ude(function(e,t){if(e==null)return[];var r=t.length;return r>1&&wO(e,t[0],t[1])?t=[]:r>2&&wO(t[0],t[1],t[2])&&(t=[t[0]]),cde(e,lde(t,1),[])}),fde=dde;
vendor: 29,559 bytes, lines 665-672
665const hP=bt(fde);function Xm(e){"@babel/helpers - typeof";return Xm=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},Xm(e)}function Nw(){return Nw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Nw.apply(this,arguments)}function mde(e,t){return vde(e)||gde(e,t)||pde(e,t)||hde()}function hde(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 666In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function pde(e,t){if(e){if(typeof e=="string")return NO(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return NO(e,t)}}function NO(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function gde(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,a,i,o,l=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,t!==0)for(;!(c=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(d){u=!0,a=d}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}function vde(e){if(Array.isArray(e))return e}function SO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Kb(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?SO(Object(r),!0).forEach(function(n){xde(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):SO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function xde(e,t,r){return t=yde(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function yde(e){var t=bde(e,"string");return Xm(t)=="symbol"?t:t+""}function bde(e,t){if(Xm(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Xm(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function jde(e){return Array.isArray(e)&&Sr(e[0])&&Sr(e[1])?e.join(" ~ "):e}var wde=function(t){var r=t.separator,n=r===void 0?" : ":r,a=t.contentStyle,i=a===void 0?{}:a,o=t.itemStyle,l=o===void 0?{}:o,c=t.labelStyle,u=c===void 0?{}:c,d=t.payload,f=t.formatter,m=t.itemSorter,p=t.wrapperClassName,v=t.labelClassName,h=t.label,x=t.labelFormatter,y=t.accessibilityLayer,g=y===void 0?!1:y,j=function(){if(d&&d.length){var k={padding:0,margin:0},M=(m?hP(d,m):d).map(function(D,F){if(D.type==="none")return null;var L=Kb({display:"block",paddingTop:4,paddingBottom:4,color:D.color||"#000"},l),B=D.formatter||f||jde,R=D.value,I=D.name,G=R,U=I;if(B&&G!=null&&U!=null){var K=B(R,I,D,F,d);if(Array.isArray(K)){var ce=mde(K,2);G=ce[0],U=ce[1]}else G=K}return _.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(F),style:L},Sr(U)?_.createElement("span",{className:"recharts-tooltip-item-name"},U):null,Sr(U)?_.createElement("span",{className:"recharts-tooltip-item-separator"},n):null,_.createElement("span",{className:"recharts-tooltip-item-value"},G),_.createElement("span",{className:"recharts-tooltip-item-unit"},D.unit||""))});return _.createElement("ul",{className:"recharts-tooltip-item-list",style:k},M)}return null},S=Kb({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},i),w=Kb({margin:0},u),N=!et(h),P=N?h:"",C=rt("recharts-default-tooltip",p),A=rt("recharts-tooltip-label",v);N&&x&&d!==void 0&&d!==null&&(P=x(h,d));var O=g?{role:"status","aria-live":"assertive"}:{};return _.createElement("div",Nw({className:C,style:S},O),_.createElement("p",{className:A,style:w},_.isValidElement(P)?P:"".concat(P)),j())};function Ym(e){"@babel/helpers - typeof";return Ym=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},Ym(e)}function ig(e,t,r){return t=Nde(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Nde(e){var t=Sde(e,"string");return Ym(t)=="symbol"?t:t+""}function Sde(e,t){if(Ym(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Ym(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var vf="recharts-tooltip-wrapper",Pde={visibility:"hidden"};function Cde(e){var t=e.coordinate,r=e.translateX,n=e.translateY;return rt(vf,ig(ig(ig(ig({},"".concat(vf,"-right"),se(r)&&t&&se(t.x)&&r>=t.x),"".concat(vf,"-left"),se(r)&&t&&se(t.x)&&r<t.x),"".concat(vf,"-bottom"),se(n)&&t&&se(t.y)&&n>=t.y),"".concat(vf,"-top"),se(n)&&t&&se(t.y)&&n<t.y))}function PO(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.key,a=e.offsetTopLeft,i=e.position,o=e.reverseDirection,l=e.tooltipDimension,c=e.viewBox,u=e.viewBoxDimension;if(i&&se(i[n]))return i[n];var d=r[n]-l-a,f=r[n]+a;if(t[n])return o[n]?d:f;if(o[n]){var m=d,p=c[n];return m<p?Math.max(f,c[n]):Math.max(d,c[n])}var v=f+l,h=c[n]+u;return v>h?Math.max(d,c[n]):Math.max(f,c[n])}function Ade(e){var t=e.translateX,r=e.translateY,n=e.useTranslate3d;return{transform:n?"translate3d(".concat(t,"px, ").concat(r,"px, 0)"):"translate(".concat(t,"px, ").concat(r,"px)")}}function Tde(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.offsetTopLeft,a=e.position,i=e.reverseDirection,o=e.tooltipBox,l=e.useTranslate3d,c=e.viewBox,u,d,f;return o.height>0&&o.width>0&&r?(d=PO({allowEscapeViewBox:t,coordinate:r,key:"x",offsetTopLeft:n,position:a,reverseDirection:i,tooltipDimension:o.width,viewBox:c,viewBoxDimension:c.width}),f=PO({allowEscapeViewBox:t,coordinate:r,key:"y",offsetTopLeft:n,position:a,reverseDirection:i,tooltipDimension:o.height,viewBox:c,viewBoxDimension:c.height}),u=Ade({translateX:d,translateY:f,useTranslate3d:l})):u=Pde,{cssProperties:u,cssClasses:Cde({translateX:d,translateY:f,coordinate:r})}}function Zu(e){"@babel/helpers - typeof";return Zu=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},Zu(e)}function CO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function AO(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?CO(Object(r),!0).forEach(function(n){Pw(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):CO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Ede(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ode(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,RL(n.key),n)}}function _de(e,t,r){return t&&Ode(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function kde(e,t,r){return t=Hv(t),Mde(e,DL()?Reflect.construct(t,r||[],Hv(e).constructor):t.apply(e,r))}function Mde(e,t){if(t&&(Zu(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Dde(e)}function Dde(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function DL(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(DL=function(){return!!e})()}function Hv(e){return Hv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Hv(e)}function Rde(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&&Sw(e,t)}function Sw(e,t){return Sw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},Sw(e,t)}function Pw(e,t,r){return t=RL(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function RL(e){var t=Ide(e,"string");return Zu(t)=="symbol"?t:t+""}function Ide(e,t){if(Zu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Zu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var TO=1,$de=function(e){function t(){var r;Ede(this,t);for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return r=kde(this,t,[].concat(a)),Pw(r,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),Pw(r,"handleKeyDown",function(o){if(o.key==="Escape"){var l,c,u,d;r.setState({dismissed:!0,dismissedAtCoordinate:{x:(l=(c=r.props.coordinate)===null||c===void 0?void 0:c.x)!==null&&l!==void 0?l:0,y:(u=(d=r.props.coordinate)===null||d===void 0?void 0:d.y)!==null&&u!==void 0?u:0}})}}),r}return Rde(t,e),_de(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();(Math.abs(n.width-this.state.lastBoundingBox.width)>TO||Math.abs(n.height-this.state.lastBoundingBox.height)>TO)&&this.setState({lastBoundingBox:{width:n.width,height:n.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 n,a;this.props.active&&this.updateBBox(),this.state.dismissed&&(((n=this.props.coordinate)===null||n===void 0?void 0:n.x)!==this.state.dismissedAtCoordinate.x||((a=this.props.coordinate)===null||a===void 0?void 0:a.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var n=this,a=this.props,i=a.active,o=a.allowEscapeViewBox,l=a.animationDuration,c=a.animationEasing,u=a.children,d=a.coordinate,f=a.hasPayload,m=a.isAnimationActive,p=a.offset,v=a.position,h=a.reverseDirection,x=a.useTranslate3d,y=a.viewBox,g=a.wrapperStyle,j=Tde({allowEscapeViewBox:o,coordinate:d,offsetTopLeft:p,position:v,reverseDirection:h,tooltipBox:this.state.lastBoundingBox,useTranslate3d:x,viewBox:y}),S=j.cssClasses,w=j.cssProperties,N=AO(AO({transition:m&&i?"transform ".concat(l,"ms ").concat(c):void 0},w),{},{pointerEvents:"none",visibility:!this.state.dismissed&&i&&f?"visible":"hidden",position:"absolute",top:0,left:0},g);return _.createElement("div",{tabIndex:-1,className:S,style:N,ref:function(C){n.wrapperNode=C}},u)}}])}(b.PureComponent),Lde=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},xs={isSsr:Lde(),get:function(t){return xs[t]},set:function(t,r){if(typeof t=="string")xs[t]=r;else{var n=Object.keys(t);n&&n.length&&n.forEach(function(a){xs[a]=t[a]})}}};function Qu(e){"@babel/helpers - typeof";return Qu=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},Qu(e)}function EO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function OO(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?EO(Object(r),!0).forEach(function(n){pP(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):EO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Fde(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Vde(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,$L(n.key),n)}}function zde(e,t,r){return t&&Vde(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Bde(e,t,r){return t=Gv(t),Ude(e,IL()?Reflect.construct(t,r||[],Gv(e).constructor):t.apply(e,r))}function Ude(e,t){if(t&&(Qu(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Wde(e)}function Wde(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function IL(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(IL=function(){return!!e})()}function Gv(e){return Gv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Gv(e)}function qde(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&&Cw(e,t)}function Cw(e,t){return Cw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},Cw(e,t)}function pP(e,t,r){return t=$L(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $L(e){var t=Hde(e,"string");return Qu(t)=="symbol"?t:t+""}function Hde(e,t){if(Qu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Qu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Gde(e){return e.dataKey}function Kde(e,t){return _.isValidElement(e)?_.cloneElement(e,t):typeof e=="function"?_.createElement(e,t):_.createElement(wde,t)}var fn=function(e){function t(){return Fde(this,t),Bde(this,t,arguments)}return qde(t,e),zde(t,[{key:"render",value:function(){var n=this,a=this.props,i=a.active,o=a.allowEscapeViewBox,l=a.animationDuration,c=a.animationEasing,u=a.content,d=a.coordinate,f=a.filterNull,m=a.isAnimationActive,p=a.offset,v=a.payload,h=a.payloadUniqBy,x=a.position,y=a.reverseDirection,g=a.useTranslate3d,j=a.viewBox,S=a.wrapperStyle,w=v??[];f&&w.length&&(w=CL(v.filter(function(P){return P.value!=null&&(P.hide!==!0||n.props.includeHidden)}),h,Gde));var N=w.length>0;return _.createElement($de,{allowEscapeViewBox:o,animationDuration:l,animationEasing:c,isAnimationActive:m,active:i,coordinate:d,hasPayload:N,offset:p,position:x,reverseDirection:y,useTranslate3d:g,viewBox:j,wrapperStyle:S},Kde(u,OO(OO({},this.props),{},{payload:w})))}}])}(b.PureComponent);pP(fn,"displayName","Tooltip");pP(fn,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!xs.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 Xde=Ds,Yde=function(){return Xde.Date.now()},Zde=Yde,Qde=/\s/;function Jde(e){for(var t=e.length;t--&&Qde.test(e.charAt(t)););return t}var efe=Jde,tfe=efe,rfe=/^\s+/;function nfe(e){return e&&e.slice(0,tfe(e)+1).replace(rfe,"")}var afe=nfe,sfe=afe,_O=Bo,ife=zd,kO=NaN,ofe=/^[-+]0x[0-9a-f]+$/i,lfe=/^0b[01]+$/i,cfe=/^0o[0-7]+$/i,ufe=parseInt;function dfe(e){if(typeof e=="number")return e;if(ife(e))return kO;if(_O(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=_O(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=sfe(e);var r=lfe.test(e);return r||cfe.test(e)?ufe(e.slice(2),r?2:8):ofe.test(e)?kO:+e}var LL=dfe,ffe=Bo,Xb=Zde,MO=LL,mfe="Expected a function",hfe=Math.max,pfe=Math.min;function gfe(e,t,r){var n,a,i,o,l,c,u=0,d=!1,f=!1,m=!0;if(typeof e!="function")throw new TypeError(mfe);t=MO(t)||0,ffe(r)&&(d=!!r.leading,f="maxWait"in r,i=f?hfe(MO(r.maxWait)||0,t):i,m="trailing"in r?!!r.trailing:m);function p(N){var P=n,C=a;return n=a=void 0,u=N,o=e.apply(C,P),o}function v(N){return u=N,l=setTimeout(y,t),d?p(N):o}function h(N){var P=N-c,C=N-u,A=t-P;return f?pfe(A,i-C):A}function x(N){var P=N-c,C=N-u;return c===void 0||P>=t||P<0||f&&C>=i}function y(){var N=Xb();if(x(N))return g(N);l=setTimeout(y,h(N))}function g(N){return l=void 0,m&&n?p(N):(n=a=void 0,o)}function j(){l!==void 0&&clearTimeout(l),u=0,n=c=a=l=void 0}function S(){return l===void 0?o:g(Xb())}function w(){var N=Xb(),P=x(N);if(n=arguments,a=this,c=N,P){if(l===void 0)return v(c);if(f)return clearTimeout(l),l=setTimeout(y,t),p(c)}return l===void 0&&(l=setTimeout(y,t)),o}return w.cancel=j,w.flush=S,w}var vfe=gfe,xfe=vfe,yfe=Bo,bfe="Expected a function";function jfe(e,t,r){var n=!0,a=!0;if(typeof e!="function")throw new TypeError(bfe);return yfe(r)&&(n="leading"in r?!!r.leading:n,a="trailing"in r?!!r.trailing:a),xfe(e,t,{leading:n,maxWait:t,trailing:a})}var wfe=jfe;const FL=bt(wfe);function Zm(e){"@babel/helpers - typeof";return Zm=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},Zm(e)}function DO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function og(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?DO(Object(r),!0).forEach(function(n){Nfe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):DO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Nfe(e,t,r){return t=Sfe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Sfe(e){var t=Pfe(e,"string");return Zm(t)=="symbol"?t:t+""}function Pfe(e,t){if(Zm(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Zm(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Cfe(e,t){return Ofe(e)||Efe(e,t)||Tfe(e,t)||Afe()}function Afe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 667In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Tfe(e,t){if(e){if(typeof e=="string")return RO(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return RO(e,t)}}function RO(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Efe(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,a,i,o,l=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,t!==0)for(;!(c=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(d){u=!0,a=d}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}function Ofe(e){if(Array.isArray(e))return e}var hu=b.forwardRef(function(e,t){var r=e.aspect,n=e.initialDimension,a=n===void 0?{width:-1,height:-1}:n,i=e.width,o=i===void 0?"100%":i,l=e.height,c=l===void 0?"100%":l,u=e.minWidth,d=u===void 0?0:u,f=e.minHeight,m=e.maxHeight,p=e.children,v=e.debounce,h=v===void 0?0:v,x=e.id,y=e.className,g=e.onResize,j=e.style,S=j===void 0?{}:j,w=b.useRef(null),N=b.useRef();N.current=g,b.useImperativeHandle(t,function(){return Object.defineProperty(w.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),w.current},configurable:!0})});var P=b.useState({containerWidth:a.width,containerHeight:a.height}),C=Cfe(P,2),A=C[0],O=C[1],E=b.useCallback(function(M,D){O(function(F){var L=Math.round(M),B=Math.round(D);return F.containerWidth===L&&F.containerHeight===B?F:{containerWidth:L,containerHeight:B}})},[]);b.useEffect(function(){var M=function(I){var G,U=I[0].contentRect,K=U.width,ce=U.height;E(K,ce),(G=N.current)===null||G===void 0||G.call(N,K,ce)};h>0&&(M=FL(M,h,{trailing:!0,leading:!1}));var D=new ResizeObserver(M),F=w.current.getBoundingClientRect(),L=F.width,B=F.height;return E(L,B),D.observe(w.current),function(){D.disconnect()}},[E,h]);var k=b.useMemo(function(){var M=A.containerWidth,D=A.containerHeight;if(M<0||D<0)return null;Ua(ml(o)||ml(c),`The width(%s) and height(%s) are both fixed numbers, 668 maybe you don't need to use a ResponsiveContainer.`,o,c),Ua(!r||r>0,"The aspect(%s) must be greater than zero.",r);var F=ml(o)?M:o,L=ml(c)?D:c;r&&r>0&&(F?L=F/r:L&&(F=L*r),m&&L>m&&(L=m)),Ua(F>0||L>0,`The width(%s) and height(%s) of chart should be greater than 0, 669 please check the style of container, or the props width(%s) and height(%s), 670 or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the 671 height and width.`,F,L,o,c,d,f,r);var B=!Array.isArray(p)&&ti(p.type).endsWith("Chart");return _.Children.map(p,function(R){return _.isValidElement(R)?b.cloneElement(R,og({width:F,height:L},B?{style:og({height:"100%",width:"100%",maxHeight:L,maxWidth:F},R.props.style)}:{})):R})},[r,p,c,m,f,d,A,o]);return _.createElement("div",{id:x?"".concat(x):void 0,className:rt("recharts-responsive-container",y),style:og(og({},S),{},{width:o,height:c,minWidth:d,minHeight:f,maxHeight:m}),ref:w},k)}),Xs=function(t){return null};Xs.displayName="Cell";function Qm(e){"@babel/helpers - typeof";return Qm=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},Qm(e)}function IO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Aw(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?IO(Object(r),!0).forEach(function(n){_fe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):IO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function _fe(e,t,r){return t=kfe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function kfe(e){var t=Mfe(e,"string");return Qm(t)=="symbol"?t:t+""}function Mfe(e,t){if(Qm(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Qm(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var jc={widthCache:{},cacheCount:0},Dfe=2e3,Rfe={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},$O="recharts_measurement_span";function Ife(e){var t=Aw({},e);return Object.keys(t).forEach(function(r){t[r]||delete t[r]}),t}var nm=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||xs.isSsr)return{width:0,height:0};var n=Ife(r),a=JSON.stringify({text:t,copyStyle:n});if(jc.widthCache[a])return jc.widthCache[a];try{var i=document.getElementById($O);i||(i=document.createElement("span"),i.setAttribute("id",$O),i.setAttribute("aria-hidden","true"),document.body.appendChild(i));var o=Aw(Aw({},Rfe),n);Object.assign(i.style,o),i.textContent="".concat(t);var l=i.getBoundingClientRect(),c={width:l.width,height:l.height};return jc.widthCache[a]=c,++jc.cacheCount>Dfe&&(jc.cacheCount=0,jc.widthCache={}),c}catch{return{width:0,height:0}}},$fe=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function Jm(e){"@babel/helpers - typeof";return Jm=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},Jm(e)}function Kv(e,t){return zfe(e)||Vfe(e,t)||Ffe(e,t)||Lfe()}function Lfe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 672In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ffe(e,t){if(e){if(typeof e=="string")return LO(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return LO(e,t)}}function LO(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Vfe(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,a,i,o,l=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(d){u=!0,a=d}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}function zfe(e){if(Array.isArray(e))return e}function Bfe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function FO(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Wfe(n.key),n)}}function Ufe(e,t,r){return t&&FO(e.prototype,t),r&&FO(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Wfe(e){var t=qfe(e,"string");return Jm(t)=="symbol"?t:t+""}function qfe(e,t){if(Jm(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Jm(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var VO=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,zO=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,Hfe=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,Gfe=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,VL={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},Kfe=Object.keys(VL),Wc="NaN";function Xfe(e,t){return e*VL[t]}var lg=function(){function e(t,r){Bfe(this,e),this.num=t,this.unit=r,this.num=t,this.unit=r,Number.isNaN(t)&&(this.unit=""),r!==""&&!Hfe.test(r)&&(this.num=NaN,this.unit=""),Kfe.includes(r)&&(this.num=Xfe(t,r),this.unit="px")}return Ufe(e,[{key:"add",value:function(r){return this.unit!==r.unit?new e(NaN,""):new e(this.num+r.num,this.unit)}},{key:"subtract",value:function(r){return this.unit!==r.unit?new e(NaN,""):new e(this.num-r.num,this.unit)}},{key:"multiply",value:function(r){return this.unit!==""&&r.unit!==""&&this.unit!==r.unit?new e(NaN,""):new e(this.num*r.num,this.unit||r.unit)}},{key:"divide",value:function(r){return this.unit!==""&&r.unit!==""&&this.unit!==r.unit?new e(NaN,""):new e(this.num/r.num,this.unit||r.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(r){var n,a=(n=Gfe.exec(r))!==null&&n!==void 0?n:[],i=Kv(a,3),o=i[1],l=i[2];return new e(parseFloat(o),l??"")}}])}();function zL(e){if(e.includes(Wc))return Wc;for(var t=e;t.includes("*")||t.includes("/");){var r,n=(r=VO.exec(t))!==null&&r!==void 0?r:[],a=Kv(n,4),i=a[1],o=a[2],l=a[3],c=lg.parse(i??""),u=lg.parse(l??""),d=o==="*"?c.multiply(u):c.divide(u);if(d.isNaN())return Wc;t=t.replace(VO,d.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var f,m=(f=zO.exec(t))!==null&&f!==void 0?f:[],p=Kv(m,4),v=p[1],h=p[2],x=p[3],y=lg.parse(v??""),g=lg.parse(x??""),j=h==="+"?y.add(g):y.subtract(g);if(j.isNaN())return Wc;t=t.replace(zO,j.toString())}return t}var BO=/\(([^()]*)\)/;function Yfe(e){for(var t=e;t.includes("(");){var r=BO.exec(t),n=Kv(r,2),a=n[1];t=t.replace(BO,zL(a))}return t}function Zfe(e){var t=e.replace(/\s+/g,"");return t=Yfe(t),t=zL(t),t}function Qfe(e){try{return Zfe(e)}catch{return Wc}}function Yb(e){var t=Qfe(e.slice(5,-1));return t===Wc?"":t}var Jfe=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],eme=["dx","dy","angle","className","breakAll"];function Tw(){return Tw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];
672for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Tw.apply(this,arguments)}function UO(e,t){if(e==null)return{};var r=tme(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function tme(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function WO(e,t){return sme(e)||ame(e,t)||nme(e,t)||rme()}function rme(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 673In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function nme(e,t){if(e){if(typeof e=="string")return qO(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return qO(e,t)}}function qO(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function ame(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,a,i,o,l=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(d){u=!0,a=d}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}function sme(e){if(Array.isArray(e))return e}var BL=/[ \f\n\r\t\v\u2028\u2029]+/,UL=function(t){var r=t.children,n=t.breakAll,a=t.style;try{var i=[];et(r)||(n?i=r.toString().split(""):i=r.toString().split(BL));var o=i.map(function(c){return{word:c,width:nm(c,a).width}}),l=n?0:nm(" ",a).width;return{wordsWithComputedWidth:o,spaceWidth:l}}catch{return null}},ime=function(t,r,n,a,i){var o=t.maxLines,l=t.children,c=t.style,u=t.breakAll,d=se(o),f=l,m=function(){var F=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return F.reduce(function(L,B){var R=B.word,I=B.width,G=L[L.length-1];if(G&&(a==null||i||G.width+I+n<Number(a)))G.words.push(R),G.width+=I+n;else{var U={words:[R],width:I};L.push(U)}return L},[])},p=m(r),v=function(F){return F.reduce(function(L,B){return L.width>B.width?L:B})};if(!d)return p;for(var h="â¦",x=function(F){var L=f.slice(0,F),B=UL({breakAll:u,style:c,children:L+h}).wordsWithComputedWidth,R=m(B),I=R.length>o||v(R).width>Number(a);return[I,R]},y=0,g=f.length-1,j=0,S;y<=g&&j<=f.length-1;){var w=Math.floor((y+g)/2),N=w-1,P=x(N),C=WO(P,2),A=C[0],O=C[1],E=x(w),k=WO(E,1),M=k[0];if(!A&&!M&&(y=w+1),A&&M&&(g=w-1),!A&&M){S=O;break}j++}return S||p},HO=function(t){var r=et(t)?[]:t.toString().split(BL);return[{words:r}]},ome=function(t){var r=t.width,n=t.scaleToFit,a=t.children,i=t.style,o=t.breakAll,l=t.maxLines;if((r||n)&&!xs.isSsr){var c,u,d=UL({breakAll:o,children:a,style:i});if(d){var f=d.wordsWithComputedWidth,m=d.spaceWidth;c=f,u=m}else return HO(a);return ime({breakAll:o,children:a,maxLines:l,style:i},c,u,r,n)}return HO(a)},GO="#808080",Gl=function(t){var r=t.x,n=r===void 0?0:r,a=t.y,i=a===void 0?0:a,o=t.lineHeight,l=o===void 0?"1em":o,c=t.capHeight,u=c===void 0?"0.71em":c,d=t.scaleToFit,f=d===void 0?!1:d,m=t.textAnchor,p=m===void 0?"start":m,v=t.verticalAnchor,h=v===void 0?"end":v,x=t.fill,y=x===void 0?GO:x,g=UO(t,Jfe),j=b.useMemo(function(){return ome({breakAll:g.breakAll,children:g.children,maxLines:g.maxLines,scaleToFit:f,style:g.style,width:g.width})},[g.breakAll,g.children,g.maxLines,f,g.style,g.width]),S=g.dx,w=g.dy,N=g.angle,P=g.className,C=g.breakAll,A=UO(g,eme);if(!Sr(n)||!Sr(i))return null;var O=n+(se(S)?S:0),E=i+(se(w)?w:0),k;switch(h){case"start":k=Yb("calc(".concat(u,")"));break;case"middle":k=Yb("calc(".concat((j.length-1)/2," * -").concat(l," + (").concat(u," / 2))"));break;default:k=Yb("calc(".concat(j.length-1," * -").concat(l,")"));break}var M=[];if(f){var D=j[0].width,F=g.width;M.push("scale(".concat((se(F)?F/D:1)/D,")"))}return N&&M.push("rotate(".concat(N,", ").concat(O,", ").concat(E,")")),M.length&&(A.transform=M.join(" ")),_.createElement("text",Tw({},$e(A,!0),{x:O,y:E,className:rt("recharts-text",P),textAnchor:p,fill:y.includes("url")?GO:y}),j.map(function(L,B){var R=L.words.join(C?"":" ");return _.createElement("tspan",{x:O,dy:B===0?k:l,key:"".concat(R,"-").concat(B)},R)}))};function bo(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function lme(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function gP(e){let t,r,n;e.length!==2?(t=bo,r=(l,c)=>bo(e(l),c),n=(l,c)=>e(l)-c):(t=e===bo||e===lme?e:cme,r=e,n=e);function a(l,c,u=0,d=l.length){if(u<d){if(t(c,c)!==0)return d;do{const f=u+d>>>1;r(l[f],c)<0?u=f+1:d=f}while(u<d)}return u}function i(l,c,u=0,d=l.length){if(u<d){if(t(c,c)!==0)return d;do{const f=u+d>>>1;r(l[f],c)<=0?u=f+1:d=f}while(u<d)}return u}function o(l,c,u=0,d=l.length){const f=a(l,c,u,d-1);return f>u&&n(l[f-1],c)>-n(l[f],c)?f-1:f}return{left:a,center:o,right:i}}function cme(){return 0}function WL(e){return e===null?NaN:+e}function*ume(e,t){for(let r of e)r!=null&&(r=+r)>=r&&(yield r)}const dme=gP(bo),pp=dme.right;gP(WL).center;class KO extends Map{constructor(t,r=hme){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),t!=null)for(const[n,a]of t)this.set(n,a)}get(t){return super.get(XO(this,t))}has(t){return super.has(XO(this,t))}set(t,r){return super.set(fme(this,t),r)}delete(t){return super.delete(mme(this,t))}}function XO({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function fme({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function mme({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function hme(e){return e!==null&&typeof e=="object"?e.valueOf():e}function pme(e=bo){if(e===bo)return qL;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,r)=>{const n=e(t,r);return n||n===0?n:(e(r,r)===0)-(e(t,t)===0)}}function qL(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}
673const gme=Math.sqrt(50),vme=Math.sqrt(10),xme=Math.sqrt(2);function Xv(e,t,r){const n=(t-e)/Math.max(0,r),a=Math.floor(Math.log10(n)),i=n/Math.pow(10,a),o=i>=gme?10:i>=vme?5:i>=xme?2:1;let l,c,u;return a<0?(u=Math.pow(10,-a)/o,l=Math.round(e*u),c=Math.round(t*u),l/u<e&&++l,c/u>t&&--c,u=-u):(u=Math.pow(10,a)*o,l=Math.round(e/u),c=Math.round(t/u),l*u<e&&++l,c*u>t&&--c),c<l&&.5<=r&&r<2?Xv(e,t,r*2):[l,c,u]}function Ew(e,t,r){if(t=+t,e=+e,r=+r,!(r>0))return[];if(e===t)return[e];const n=t<e,[a,i,o]=n?Xv(t,e,r):Xv(e,t,r);if(!(i>=a))return[];const l=i-a+1,c=new Array(l);if(n)if(o<0)for(let u=0;u<l;++u)c[u]=(i-u)/-o;else for(let u=0;u<l;++u)c[u]=(i-u)*o;else if(o<0)for(let u=0;u<l;++u)c[u]=(a+u)/-o;else for(let u=0;u<l;++u)c[u]=(a+u)*o;return c}function Ow(e,t,r){return t=+t,e=+e,r=+r,Xv(e,t,r)[2]}function _w(e,t,r){t=+t,e=+e,r=+r;const n=t<e,a=n?Ow(t,e,r):Ow(e,t,r);return(n?-1:1)*(a<0?1/-a:a)}function YO(e,t){let r;for(const n of e)n!=null&&(r<n||r===void 0&&n>=n)&&(r=n);return r}function ZO(e,t){let r;for(const n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);return r}function HL(e,t,r=0,n=1/0,a){if(t=Math.floor(t),r=Math.floor(Math.max(0,r)),n=Math.floor(Math.min(e.length-1,n)),!(r<=t&&t<=n))return e;for(a=a===void 0?qL:pme(a);n>r;){if(n-r>600){const c=n-r+1,u=t-r+1,d=Math.log(c),f=.5*Math.exp(2*d/3),m=.5*Math.sqrt(d*f*(c-f)/c)*(u-c/2<0?-1:1),p=Math.max(r,Math.floor(t-u*f/c+m)),v=Math.min(n,Math.floor(t+(c-u)*f/c+m));HL(e,t,p,v,a)}const i=e[t];let o=r,l=n;for(xf(e,r,t),a(e[n],i)>0&&xf(e,r,n);o<l;){for(xf(e,o,l),++o,--l;a(e[o],i)<0;)++o;for(;a(e[l],i)>0;)--l}a(e[r],i)===0?xf(e,r,l):(++l,xf(e,l,n)),l<=t&&(r=l+1),t<=l&&(n=l-1)}return e}function xf(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function yme(e,t,r){if(e=Float64Array.from(ume(e)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return ZO(e);if(t>=1)return YO(e);var n,a=(n-1)*t,i=Math.floor(a),o=YO(HL(e,i).subarray(0,i+1)),l=ZO(e.subarray(i+1));return o+(l-o)*(a-i)}}function bme(e,t,r=WL){if(!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return+r(e[0],0,e);if(t>=1)return+r(e[n-1],n-1,e);var n,a=(n-1)*t,i=Math.floor(a),o=+r(e[i],i,e),l=+r(e[i+1],i+1,e);return o+(l-o)*(a-i)}}function jme(e,t,r){e=+e,t=+t,r=(a=arguments.length)<2?(t=e,e=0,1):a<3?1:+r;for(var n=-1,a=Math.max(0,Math.ceil((t-e)/r))|0,i=new Array(a);++n<a;)i[n]=e+n*r;return i}function Sa(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function Ai(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 kw=Symbol("implicit");function vP(){var e=new KO,t=[],r=[],n=kw;function a(i){let o=e.get(i);if(o===void 0){if(n!==kw)return n;e.set(i,o=t.push(i)-1)}return r[o%r.length]}return a.domain=function(i){if(!arguments.length)return t.slice();t=[],e=new KO;for(const o of i)e.has(o)||e.set(o,t.push(o)-1);return a},a.range=function(i){return arguments.length?(r=Array.from(i),a):r.slice()},a.unknown=function(i){return arguments.length?(n=i,a):n},a.copy=function(){return vP(t,r).unknown(n)},Sa.apply(a,arguments),a}function eh(){var e=vP().unknown(void 0),t=e.domain,r=e.range,n=0,a=1,i,o,l=!1,c=0,u=0,d=.5;delete e.unknown;function f(){var m=t().length,p=a<n,v=p?a:n,h=p?n:a;i=(h-v)/Math.max(1,m-c+u*2),l&&(i=Math.floor(i)),v+=(h-v-i*(m-c))*d,o=i*(1-c),l&&(v=Math.round(v),o=Math.round(o));var x=jme(m).map(function(y){return v+i*y});return r(p?x.reverse():x)}return e.domain=function(m){return arguments.length?(t(m),f()):t()},e.range=function(m){return arguments.length?([n,a]=m,n=+n,a=+a,f()):[n,a]},e.rangeRound=function(m){return[n,a]=m,n=+n,a=+a,l=!0,f()},e.bandwidth=function(){return o},e.step=function(){return i},e.round=function(m){return arguments.length?(l=!!m,f()):l},e.padding=function(m){return arguments.length?(c=Math.min(1,u=+m),f()):c},e.paddingInner=function(m){return arguments.length?(c=Math.min(1,m),f()):c},e.paddingOuter=function(m){return arguments.length?(u=+m,f()):u},e.align=function(m){return arguments.length?(d=Math.max(0,Math.min(1,m)),f()):d},e.copy=function(){return eh(t(),[n,a]).round(l).paddingInner(c).paddingOuter(u).align(d)},Sa.apply(f(),arguments)}function GL(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return GL(t())},e}function am(){return GL(eh.apply(null,arguments).paddingInner(1))}function xP(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function KL(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function gp(){}var th=.7,Yv=1/th,pu="\\s*([+-]?\\d+)\\s*",rh="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",ys="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",wme=/^#([0-9a-f]{3,8})$/,Nme=new RegExp(`^rgb\\(${pu},${pu},${pu}\\)$`),Sme=new RegExp(`^rgb\\(${ys},${ys},${ys}\\)$`),Pme=new RegExp(`^rgba\\(${pu},${pu},${pu},${rh}\\)$`),Cme=new RegExp(`^rgba\\(${ys},${ys},${ys},${rh}\\)$`),Ame=new RegExp(`^hsl\\(${rh},${ys},${ys}\\)$`),Tme=new RegExp(`^hsla\\(${rh},${ys},${ys},${rh}\\)$`),QO={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};xP(gp,nh,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:JO,formatHex:JO,formatHex8:Eme,formatHsl:Ome,formatRgb:e_,toString:e_});function JO(){return this.rgb().formatHex()}function Eme(){return this.rgb().formatHex8()}function Ome(){return XL(this).formatHsl()}function e_(){return this.rgb().formatRgb()}function nh(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=wme.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?t_(t):r===3?new En(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?cg(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?cg(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=Nme.exec(e))?new En(t[1],t[2],t[3],1):(t=Sme.exec(e))?new En(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Pme.exec(e))?cg(t[1],t[2],t[3],t[4]):(t=Cme.exec(e))?cg(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=Ame.exec(e))?a_(t[1],t[2]/100,t[3]/100,1):(t=Tme.exec(e))?a_(t[1],t[2]/100,t[3]/100,t[4]):QO.hasOwnProperty(e)?t_(QO[e]):e==="transparent"?new En(NaN,NaN,NaN,0):null}function t_(e){return new En(e>>16&255,e>>8&255,e&255,1)}function cg(e,t,r,n){return n<=0&&(e=t=r=NaN),new En(e,t,r,n)}function _me(e){return e instanceof gp||(e=nh(e)),e?(e=e.rgb(),new En(e.r,e.g,e.b,e.opacity)):new En}function Mw(e,t,r,n){return arguments.length===1?_me(e):new En(e,t,r,n??1)}function En(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}xP(En,Mw,KL(gp,{brighter(e){return e=e==null?Yv:Math.pow(Yv,e),new En(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?th:Math.pow(th,e),new En(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new En(Ol(this.r),Ol(this.g),Ol(this.b),Zv(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:r_,formatHex:r_,formatHex8:kme,formatRgb:n_,toString:n_}));function r_(){return`#${hl(this.r)}${hl(this.g)}${hl(this.b)}`}function kme(){return`#${hl(this.r)}${hl(this.g)}${hl(this.b)}${hl((isNaN(this.opacity)?1:this.opacity)*255)}`}function n_(){const e=Zv(this.opacity);return`${e===1?"rgb(":"rgba("}${Ol(this.r)}, ${Ol(this.g)}, ${Ol(this.b)}${e===1?")":`, ${e})`}`}function Zv(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Ol(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function hl(e){return e=Ol(e),(e<16?"0":"")+e.toString(16)}function a_(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Ia(e,t,r,n)}function XL(e){if(e instanceof Ia)return new Ia(e.h,e.s,e.l,e.opacity);if(e instanceof gp||(e=nh(e)),!e)return new Ia;if(e instanceof Ia)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,a=Math.min(t,r,n),i=Math.max(t,r,n),o=NaN,l=i-a,c=(i+a)/2;return l?(t===i?o=(r-n)/l+(r<n)*6:r===i?o=(n-t)/l+2:o=(t-r)/l+4,l/=c<.5?i+a:2-i-a,o*=60):l=c>0&&c<1?0:o,new Ia(o,l,c,e.opacity)}function Mme(e,t,r,n){return arguments.length===1?XL(e):new Ia(e,t,r,n??1)}function Ia(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}xP(Ia,Mme,KL(gp,{brighter(e){return e=e==null?Yv:Math.pow(Yv,e),new Ia(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?th:Math.pow(th,e),new Ia(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,r=this.l,n=r+(r<.5?r:1-r)*t,a=2*r-n;return new En(Zb(e>=240?e-240:e+120,a,n),Zb(e,a,n),Zb(e<120?e+240:e-120,a,n),this.opacity)},clamp(){return new Ia(s_(this.h),ug(this.s),ug(this.l),Zv(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=Zv(this.opacity);return`${e===1?"hsl(":"hsla("}${s_(this.h)}, ${ug(this.s)*100}%, ${ug(this.l)*100}%${e===1?")":`, ${e})`}`}}));function s_(e){return e=(e||0)%360,e<0?e+360:e}function ug(e){return Math.max(0,Math.min(1,e||0))}function Zb(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}const yP=e=>()=>e;function Dme(e,t){return function(r){return e+r*t}}function Rme(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}function Ime(e){return(e=+e)==1?YL:function(t,r){return r-t?Rme(t,r,e):yP(isNaN(t)?r:t)}}function YL(e,t){var r=t-e;return r?Dme(e,r):yP(isNaN(e)?t:e)}const i_=function e(t){var r=Ime(t);function n(a,i){var o=r((a=Mw(a)).r,(i=Mw(i)).r),l=r(a.g,i.g),c=r(a.b,i.b),u=YL(a.opacity,i.opacity);return function(d){return a.r=o(d),a.g=l(d),a.b=c(d),a.opacity=u(d),a+""}}return n.gamma=e,n}(1);function $me(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,n=t.slice(),a;return function(i){for(a=0;a<r;++a)n[a]=e[a]*(1-i)+t[a]*i;return n}}function Lme(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function Fme(e,t){var r=t?t.length:0,n=e?Math.min(r,e.length):0,a=new Array(n),i=new Array(r),o;for(o=0;o<n;++o)a[o]=Zd(e[o],t[o]);for(;o<r;
vendor: 5,216 bytes, line 673
673++o)i[o]=t[o];return function(l){for(o=0;o<n;++o)i[o]=a[o](l);return i}}function Vme(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}function Qv(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function zme(e,t){var r={},n={},a;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(a in t)a in e?r[a]=Zd(e[a],t[a]):n[a]=t[a];return function(i){for(a in r)n[a]=r[a](i);return n}}var Dw=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Qb=new RegExp(Dw.source,"g");function Bme(e){return function(){return e}}function Ume(e){return function(t){return e(t)+""}}function Wme(e,t){var r=Dw.lastIndex=Qb.lastIndex=0,n,a,i,o=-1,l=[],c=[];for(e=e+"",t=t+"";(n=Dw.exec(e))&&(a=Qb.exec(t));)(i=a.index)>r&&(i=t.slice(r,i),l[o]?l[o]+=i:l[++o]=i),(n=n[0])===(a=a[0])?l[o]?l[o]+=a:l[++o]=a:(l[++o]=null,c.push({i:o,x:Qv(n,a)})),r=Qb.lastIndex;return r<t.length&&(i=t.slice(r),l[o]?l[o]+=i:l[++o]=i),l.length<2?c[0]?Ume(c[0].x):Bme(t):(t=c.length,function(u){for(var d=0,f;d<t;++d)l[(f=c[d]).i]=f.x(u);return l.join("")})}function Zd(e,t){var r=typeof t,n;return t==null||r==="boolean"?yP(t):(r==="number"?Qv:r==="string"?(n=nh(t))?(t=n,i_):Wme:t instanceof nh?i_:t instanceof Date?Vme:Lme(t)?$me:Array.isArray(t)?Fme:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?zme:Qv)(e,t)}function bP(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}function qme(e,t){t===void 0&&(t=e,e=Zd);for(var r=0,n=t.length-1,a=t[0],i=new Array(n<0?0:n);r<n;)i[r]=e(a,a=t[++r]);return function(o){var l=Math.max(0,Math.min(n-1,Math.floor(o*=n)));return i[l](o-l)}}function Hme(e){return function(){return e}}function Jv(e){return+e}var o_=[0,1];function vn(e){return e}function Rw(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:Hme(isNaN(t)?NaN:.5)}function Gme(e,t){var r;return e>t&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function Kme(e,t,r){var n=e[0],a=e[1],i=t[0],o=t[1];return a<n?(n=Rw(a,n),i=r(o,i)):(n=Rw(n,a),i=r(i,o)),function(l){return i(n(l))}}function Xme(e,t,r){var n=Math.min(e.length,t.length)-1,a=new Array(n),i=new Array(n),o=-1;for(e[n]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<n;)a[o]=Rw(e[o],e[o+1]),i[o]=r(t[o],t[o+1]);return function(l){var c=pp(e,l,1,n)-1;return i[c](a[c](l))}}function vp(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function o0(){var e=o_,t=o_,r=Zd,n,a,i,o=vn,l,c,u;function d(){var m=Math.min(e.length,t.length);return o!==vn&&(o=Gme(e[0],e[m-1])),l=m>2?Xme:Kme,c=u=null,f}function f(m){return m==null||isNaN(m=+m)?i:(c||(c=l(e.map(n),t,r)))(n(o(m)))}return f.invert=function(m){return o(a((u||(u=l(t,e.map(n),Qv)))(m)))},f.domain=function(m){return arguments.length?(e=Array.from(m,Jv),d()):e.slice()},f.range=function(m){return arguments.length?(t=Array.from(m),d()):t.slice()},f.rangeRound=function(m){return t=Array.from(m),r=bP,d()},f.clamp=function(m){return arguments.length?(o=m?!0:vn,d()):o!==vn},f.interpolate=function(m){return arguments.length?(r=m,d()):r},f.unknown=function(m){return arguments.length?(i=m,f):i},function(m,p){return n=m,a=p,d()}}function jP(){return o0()(vn,vn)}function Yme(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function ex(e,t){if((r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var r,n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function Ju(e){return e=ex(Math.abs(e)),e?e[1]:NaN}function Zme(e,t){return function(r,n){for(var a=r.length,i=[],o=0,l=e[0],c=0;a>0&&l>0&&(c+l+1>n&&(l=Math.max(1,n-c)),i.push(r.substring(a-=l,a+l)),!((c+=l+1)>n));)l=e[o=(o+1)%e.length];return i.reverse().join(t)}}function Qme(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var Jme=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function ah(e){if(!(t=Jme.exec(e)))throw new Error("invalid format: "+e);var t;return new wP({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]})}ah.prototype=wP.prototype;function wP(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+""}wP.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 ehe(e){e:for(var t=e.length,r=1,n=-1,a;r<t;++r)switch(e[r]){case".":n=a=r;break;case"0":n===0&&(n=r),a=r;break;default:if(!+e[r])break e;n>0&&(n=0);break}return n>0?e.slice(0,n)+e.slice(a+1):e}var ZL;function the(e,t){var r=ex(e,t);if(!r)return e+"";var n=r[0],a=r[1],i=a-(ZL=Math.max(-8,Math.min(8,Math.floor(a/3)))*3)+1,o=n.length;return i===o?n:i>o?n+new Array(i-o+1).join("0"):i>
vendor: 2,334 bytes, line 673
6730?n.slice(0,i)+"."+n.slice(i):"0."+new Array(1-i).join("0")+ex(e,Math.max(0,t+i-1))[0]}function l_(e,t){var r=ex(e,t);if(!r)return e+"";var n=r[0],a=r[1];return a<0?"0."+new Array(-a).join("0")+n:n.length>a+1?n.slice(0,a+1)+"."+n.slice(a+1):n+new Array(a-n.length+2).join("0")}const c_={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:Yme,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)=>l_(e*100,t),r:l_,s:the,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function u_(e){return e}var d_=Array.prototype.map,f_=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function rhe(e){var t=e.grouping===void 0||e.thousands===void 0?u_:Zme(d_.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",n=e.currency===void 0?"":e.currency[1]+"",a=e.decimal===void 0?".":e.decimal+"",i=e.numerals===void 0?u_:Qme(d_.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",l=e.minus===void 0?"â":e.minus+"",c=e.nan===void 0?"NaN":e.nan+"";function u(f){f=ah(f);var m=f.fill,p=f.align,v=f.sign,h=f.symbol,x=f.zero,y=f.width,g=f.comma,j=f.precision,S=f.trim,w=f.type;w==="n"?(g=!0,w="g"):c_[w]||(j===void 0&&(j=12),S=!0,w="g"),(x||m==="0"&&p==="=")&&(x=!0,m="0",p="=");var N=h==="$"?r:h==="#"&&/[boxX]/.test(w)?"0"+w.toLowerCase():"",P=h==="$"?n:/[%p]/.test(w)?o:"",C=c_[w],A=/[defgprs%]/.test(w);j=j===void 0?6:/[gprs]/.test(w)?Math.max(1,Math.min(21,j)):Math.max(0,Math.min(20,j));function O(E){var k=N,M=P,D,F,L;if(w==="c")M=C(E)+M,E="";else{E=+E;var B=E<0||1/E<0;if(E=isNaN(E)?c:C(Math.abs(E),j),S&&(E=ehe(E)),B&&+E==0&&v!=="+"&&(B=!1),k=(B?v==="("?v:l:v==="-"||v==="("?"":v)+k,M=(w==="s"?f_[8+ZL/3]:"")+M+(B&&v==="("?")":""),A){for(D=-1,F=E.length;++D<F;)if(L=E.charCodeAt(D),48>L||L>57){M=(L===46?a+E.slice(D+1):E.slice(D))+M,E=E.slice(0,D);break}}}g&&!x&&(E=t(E,1/0));var R=k.length+E.length+M.length,I=R<y?new Array(y-R+1).join(m):"";switch(g&&x&&(E=t(I+E,I.length?y-M.length:1/0),I=""),p){case"<":E=k+E+M+I;break;case"=":E=k+I+E+M;break;case"^":E=I.slice(0,R=I.length>>1)+k+E+M+I.slice(R);break;default:E=I+k+E+M;break}return i(E)}return O.toString=function(){return f+""},O}function d(f,m){var p=u((f=ah(f),f.type="f",f)),v=Math.max(-8,Math.min(8,Math.floor(Ju
673(m)/3)))*3,h=Math.pow(10,-v),x=f_[8+v/3];return function(y){return p(h*y)+x}}return{format:u,formatPrefix:d}}var dg,NP,QL;nhe({thousands:",",grouping:[3],currency:["$",""]});function nhe(e){return dg=rhe(e),NP=dg.format,QL=dg.formatPrefix,dg}function ahe(e){return Math.max(0,-Ju(Math.abs(e)))}function she(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Ju(t)/3)))*3-Ju(Math.abs(e)))}function ihe(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Ju(t)-Ju(e))+1}function JL(e,t,r,n){var a=_w(e,t,r),i;switch(n=ah(n??",f"),n.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(i=she(a,o))&&(n.precision=i),QL(n,o)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(i=ihe(a,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=i-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(i=ahe(a))&&(n.precision=i-(n.type==="%")*2);break}}return NP(n)}function Uo(e){var t=e.domain;return e.ticks=function(r){var n=t();return Ew(n[0],n[n.length-1],r??10)},e.tickFormat=function(r,n){var a=t();return JL(a[0],a[a.length-1],r??10,n)},e.nice=function(r){r==null&&(r=10);var n=t(),a=0,i=n.length-1,o=n[a],l=n[i],c,u,d=10;for(l<o&&(u=o,o=l,l=u,u=a,a=i,i=u);d-- >0;){if(u=Ow(o,l,r),u===c)return n[a]=o,n[i]=l,t(n);if(u>0)o=Math.floor(o/u)*u,l=Math.ceil(l/u)*u;else if(u<0)o=Math.ceil(o*u)/u,l=Math.floor(l*u)/u;else break;c=u}return e},e}function tx(){var e=jP();return e.copy=function(){return vp(e,tx())},Sa.apply(e,arguments),Uo(e)}function eF(e){var t;function r(n){return n==null||isNaN(n=+n)?t:n}return r.invert=r,r.domain=r.range=function(n){return arguments.length?(e=Array.from(n,Jv),r):e.slice()},r.unknown=function(n){return arguments.length?(t=n,r):t},r.copy=function(){return eF(e).unknown(t)},e=arguments.length?Array.from(e,Jv):[0,1],Uo(r)}function tF(e,t){e=e.slice();var r=0,n=e.length-1,a=e[r],i=e[n],o;return i<a&&(o=r,r=n,n=o,o=a,a=i,i=o),e[r]=t.floor(a),e[n]=t.ceil(i),e}function m_(e){return Math.log(e)}function h_(e){return Math.exp(e)}function ohe(e){return-Math.log(-e)}function lhe(e){return-Math.exp(-e)}function che(e){return isFinite(e)?+("1e"+e):e<0?0:e}function uhe(e){return e===10?che:e===Math.E?Math.exp:t=>Math.pow(e,t)}function dhe(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 p_(e){return(t,r)=>-e(-t,r)}function SP(e){const t=e(m_,h_),r=t.domain;let n=10,a,i;function o(){return a=dhe(n),i=uhe(n),r()[0]<0?(a=p_(a),i=p_(i),e(ohe,lhe)):e(m_,h_),t}return t.base=function(l){return arguments.length?(n=+l,o()):n},t.domain=function(l){return arguments.length?(r(l),o()):r()},t.ticks=l=>{const c=r();let u=c[0],d=c[c.length-1];const f=d<u;f&&([u,d]=[d,u]);let m=a(u),p=a(d),v,h;const x=l==null?10:+l;let y=[];if(!(n%1)&&p-m<x){if(m=Math.floor(m),p=Math.ceil(p),u>0){for(;m<=p;++m)for(v=1;v<n;++v)if(h=m<0?v/i(-m):v*i(m),!(h<u)){if(h>d)break;y.push(h)}}else for(;m<=p;++m)for(v=n-1;v>=1;--v)if(h=m>0?v/i(-m):v*i(m),!(h<u)){if(h>d)break;y.push(h)}y.length*2<x&&(y=Ew(u,d,x))}else y=Ew(m,p,Math.min(p-m,x)).map(i);return f?y.reverse():y},t.tickFormat=(l,c)=>{if(l==null&&(l=10),c==null&&(c=n===10?"s":","),typeof c!="function"&&(!(n%1)&&(c=ah(c)).precision==null&&(c.trim=!0),c=NP(c)),l===1/0)return c;const u=Math.max(1,n*l/t.ticks().length);return d=>{let f=d/i(Math.round(a(d)));return f*n<n-.5&&(f*=n),f<=u?c(d):""}},t.nice=()=>r(tF(r(),{floor:l=>i(Math.floor(a(l))),ceil:l=>i(Math.ceil(a(l)))})),t}function rF(){const e=SP(o0()).domain([1,10]);return e.copy=()=>vp(e,rF()).base(e.base()),Sa.apply(e,arguments),e}function g_(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function v_(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function PP(e){var t=1,r=e(g_(t),v_(t));return r.constant=function(n){return arguments.length?e(g_(t=+n),v_(t)):t},Uo(r)}function nF(){var e=PP(o0());return e.copy=function(){return vp(e,nF()).constant(e.constant())},Sa.apply(e,arguments)}function x_(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function fhe(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function mhe(e){return e<0?-e*e:e*e}function CP(e){var t=e(vn,vn),r=1;function n(){return r===1?e(vn,vn):r===.5?e(fhe,mhe):e(x_(r),x_(1/r))}return t.exponent=function(a){return arguments.length?(r=+a,n()):r},Uo(t)}function AP(){var e=CP(o0());return e.copy=function(){return vp(e,AP()).exponent(e.exponent())},Sa.apply(e,arguments),e}function hhe(){return AP.apply(null,arguments).exponent(.5)}function y_(e){return Math.sign(e)*e*e}function phe(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function aF(){var e=jP(),t=[0,1],r=!1,n;function a(i){var o=phe(e(i));return isNaN(o)?n:r?Math.round(o):o}return a.invert=function(i){return e.invert(y_(i))},a.domain=function(i){return arguments.length?(e.domain(i),a):e.domain()},a.range=function(i){return arguments.length?(e.range((t=Array.from(i,Jv)).map(y_)),a):t.slice()}
673,a.rangeRound=function(i){return a.range(i).round(!0)},a.round=function(i){return arguments.length?(r=!!i,a):r},a.clamp=function(i){return arguments.length?(e.clamp(i),a):e.clamp()},a.unknown=function(i){return arguments.length?(n=i,a):n},a.copy=function(){return aF(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},Sa.apply(a,arguments),Uo(a)}function sF(){var e=[],t=[],r=[],n;function a(){var o=0,l=Math.max(1,t.length);for(r=new Array(l-1);++o<l;)r[o-1]=bme(e,o/l);return i}function i(o){return o==null||isNaN(o=+o)?n:t[pp(r,o)]}return i.invertExtent=function(o){var l=t.indexOf(o);return l<0?[NaN,NaN]:[l>0?r[l-1]:e[0],l<r.length?r[l]:e[e.length-1]]},i.domain=function(o){if(!arguments.length)return e.slice();e=[];for(let l of o)l!=null&&!isNaN(l=+l)&&e.push(l);return e.sort(bo),a()},i.range=function(o){return arguments.length?(t=Array.from(o),a()):t.slice()},i.unknown=function(o){return arguments.length?(n=o,i):n},i.quantiles=function(){return r.slice()},i.copy=function(){return sF().domain(e).range(t).unknown(n)},Sa.apply(i,arguments)}function iF(){var e=0,t=1,r=1,n=[.5],a=[0,1],i;function o(c){return c!=null&&c<=c?a[pp(n,c,0,r)]:i}function l(){var c=-1;for(n=new Array(r);++c<r;)n[c]=((c+1)*t-(c-r)*e)/(r+1);return o}return o.domain=function(c){return arguments.length?([e,t]=c,e=+e,t=+t,l()):[e,t]},o.range=function(c){return arguments.length?(r=(a=Array.from(c)).length-1,l()):a.slice()},o.invertExtent=function(c){var u=a.indexOf(c);return u<0?[NaN,NaN]:u<1?[e,n[0]]:u>=r?[n[r-1],t]:[n[u-1],n[u]]},o.unknown=function(c){return arguments.length&&(i=c),o},o.thresholds=function(){return n.slice()},o.copy=function(){return iF().domain([e,t]).range(a).unknown(i)},Sa.apply(Uo(o),arguments)}function oF(){var e=[.5],t=[0,1],r,n=1;function a(i){return i!=null&&i<=i?t[pp(e,i,0,n)]:r}return a.domain=function(i){return arguments.length?(e=Array.from(i),n=Math.min(e.length,t.length-1),a):e.slice()},a.range=function(i){return arguments.length?(t=Array.from(i),n=Math.min(e.length,t.length-1),a):t.slice()},a.invertExtent=function(i){var o=t.indexOf(i);return[e[o-1],e[o]]},a.unknown=function(i){return arguments.length?(r=i,a):r},a.copy=function(){return oF().domain(e).range(t).unknown(r)},Sa.apply(a,arguments)}const Jb=new Date,ej=new Date;function Cr(e,t,r,n){function a(i){return e(i=arguments.length===0?new Date:new Date(+i)),i}return a.floor=i=>(e(i=new Date(+i)),i),a.ceil=i=>(e(i=new Date(i-1)),t(i,1),e(i),i),a.round=i=>{const o=a(i),l=a.ceil(i);return i-o<l-i?o:l},a.offset=(i,o)=>(t(i=new Date(+i),o==null?1:Math.floor(o)),i),a.range=(i,o,l)=>{const c=[];if(i=a.ceil(i),l=l==null?1:Math.floor(l),!(i<o)||!(l>0))return c;let u;do c.push(u=new Date(+i)),t(i,l),e(i);while(u<i&&i<o);return c},a.filter=i=>Cr(o=>{if(o>=o)for(;e(o),!i(o);)o.setTime(o-1)},(o,l)=>{if(o>=o)if(l<0)for(;++l<=0;)for(;t(o,-1),!i(o););else for(;--l>=0;)for(;t(o,1),!i(o););}),r&&(a.count=(i,o)=>(Jb.setTime(+i),ej.setTime(+o),e(Jb),e(ej),Math.floor(r(Jb,ej))),a.every=i=>(i=Math.floor(i),!isFinite(i)||!(i>0)?null:i>1?a.filter(n?o=>n(o)%i===0:o=>a.count(0,o)%i===0):a)),a}const rx=Cr(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);rx.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Cr(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):rx);rx.range;const Ys=1e3,fa=Ys*60,Zs=fa*60,vi=Zs*24,TP=vi*7,b_=vi*30,tj=vi*365,pl=Cr(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*Ys)},(e,t)=>(t-e)/Ys,e=>e.getUTCSeconds());pl.range;const EP=Cr(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Ys)},(e,t)=>{e.setTime(+e+t*fa)},(e,t)=>(t-e)/fa,e=>e.getMinutes());EP.range;const OP=Cr(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*fa)},(e,t)=>(t-e)/fa,e=>e.getUTCMinutes());OP.range;const _P=Cr(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Ys-e.getMinutes()*fa)},(e,t)=>{e.setTime(+e+t*Zs)},(e,t)=>(t-e)/Zs,e=>e.getHours());_P.range;const kP=Cr(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*Zs)},(e,t)=>(t-e)/Zs,e=>e.getUTCHours());kP.range;const xp=Cr(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*fa)/vi,e=>e.getDate()-1);xp.range;const l0=Cr(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/vi,e=>e.getUTCDate()-1);l0.range;const lF=Cr(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/vi,e=>Math.floor(e/vi));lF.range;function cc(e){return Cr(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,r)=>{t.setDate(t.getDate()+r*7)},(t,r)=>(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*fa)/TP)}
vendor: 5,020 bytes, line 673
673const c0=cc(0),nx=cc(1),ghe=cc(2),vhe=cc(3),ed=cc(4),xhe=cc(5),yhe=cc(6);c0.range;nx.range;ghe.range;vhe.range;ed.range;xhe.range;yhe.range;function uc(e){return Cr(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCDate(t.getUTCDate()+r*7)},(t,r)=>(r-t)/TP)}const u0=uc(0),ax=uc(1),bhe=uc(2),jhe=uc(3),td=uc(4),whe=uc(5),Nhe=uc(6);u0.range;ax.range;bhe.range;jhe.range;td.range;whe.range;Nhe.range;const MP=Cr(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());MP.range;const DP=Cr(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());DP.range;const xi=Cr(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());xi.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Cr(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,r)=>{t.setFullYear(t.getFullYear()+r*e)});xi.range;const yi=Cr(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());yi.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Cr(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCFullYear(t.getUTCFullYear()+r*e)});yi.range;function cF(e,t,r,n,a,i){const o=[[pl,1,Ys],[pl,5,5*Ys],[pl,15,15*Ys],[pl,30,30*Ys],[i,1,fa],[i,5,5*fa],[i,15,15*fa],[i,30,30*fa],[a,1,Zs],[a,3,3*Zs],[a,6,6*Zs],[a,12,12*Zs],[n,1,vi],[n,2,2*vi],[r,1,TP],[t,1,b_],[t,3,3*b_],[e,1,tj]];function l(u,d,f){const m=d<u;m&&([u,d]=[d,u]);const p=f&&typeof f.range=="function"?f:c(u,d,f),v=p?p.range(u,+d+1):[];return m?v.reverse():v}function c(u,d,f){const m=Math.abs(d-u)/f,p=gP(([,,x])=>x).right(o,m);if(p===o.length)return e.every(_w(u/tj,d/tj,f));if(p===0)return rx.every(Math.max(_w(u,d,f),1));const[v,h]=o[m/o[p-1][2]<o[p][2]/m?p-1:p];return v.every(h)}return[l,c]}const[She,Phe]=cF(yi,DP,u0,lF,kP,OP),[Che,Ahe]=cF(xi,MP,c0,xp,_P,EP);function rj(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 nj(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 yf(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function The(e){var t=e.dateTime,r=e.date,n=e.time,a=e.periods,i=e.days,o=e.shortDays,l=e.months,c=e.shortMonths,u=bf(a),d=jf(a),f=bf(i),m=jf(i),p=bf(o),v=jf(o),h=bf(l),x=jf(l),y=bf(c),g=jf(c),j={a:B,A:R,b:I,B:G,c:null,d:C_,e:C_,f:Zhe,g:ope,G:cpe,H:Khe,I:Xhe,j:Yhe,L:uF,m:Qhe,M:Jhe,p:U,q:K,Q:E_,s:O_,S:epe,u:tpe,U:rpe,V:npe,w:ape,W:spe,x:null,X:null,y:ipe,Y:lpe,Z:upe,"%":T_},S={a:ce,A:pe,b:Ke,B:q,c:null,d:A_,e:A_,f:hpe,g:Spe,G:Cpe,H:dpe,I:fpe,j:mpe,L:fF,m:ppe,M:gpe,p:Q,q:we,Q:E_,s:O_,S:vpe,u:xpe,U:ype,V:bpe,w:jpe,W:wpe,x:null,X:null,y:Npe,Y:Ppe,Z:Ape,"%":T_},w={a:O,A:E,b:k,B:M,c:D,d:S_,e:S_,f:Whe,g:N_,G:w_,H:P_,I:P_,j:Vhe,L:Uhe,m:Fhe,M:zhe,p:A,q:Lhe,Q:Hhe,s:Ghe,S:Bhe,u:Mhe,U:Dhe,V:Rhe,w:khe,W:Ihe,x:F,X:L,y:N_,Y:w_,Z:$he,"%":qhe};j.x=N(r,j),j.X=N(n,j),j.c=N(t,j),S.x=N(r,S),S.X=N(n,S),S.c=N(t,S);function N(Z,V){return function(ee){var H=[],Re=-1,Pe=0,te=Z.length,Ie,jt,Dr;for(ee instanceof Date||(ee=new Date(+ee));++Re<te;)Z.charCodeAt(Re)===37&&(H.push(Z.slice(Pe,Re)),(jt=j_[Ie=Z.charAt(++Re)])!=null?Ie=Z.charAt(++Re):jt=Ie==="e"?" ":"0",(Dr=V[Ie])&&(Ie=Dr(ee,jt)),H.push(Ie),Pe=Re+1);return H.push(Z.slice(Pe,Re)),H.join("")}}function P(Z,V){return function(ee){var H=yf(1900,void 0,1),Re=C(H,Z,ee+="",0),Pe,te;if(Re!=ee.length)return null;if("Q"in H)return new Date(H.Q);if("s"in H)return new Date(H.s*1e3+("L"in H?H.L:0));if(V&&!("Z"in H)&&(H.Z=0),"p"in H&&(H.H=H.H%12+H.p*12),H.m===void 0&&(H.m="q"in H?H.q:0),"V"in H){if(H.V<1||H.V>53)return null;"w"in H||(H.w=1),"Z"in H?(Pe=nj(yf(H.y,0,1)),te=Pe.getUTCDay(),Pe=te>4||te===0?ax.ceil(Pe):ax(Pe),Pe=l0.offset(Pe,(H.V-1)*7),H.y=Pe.getUTCFullYear(),H.m=Pe.getUTCMonth(),H.d=Pe.getUTCDate()+(H.w+6)%7):(Pe=rj(yf(H.y,0,1)),te=Pe.getDay(),Pe=te>4||te===0?nx.ceil(Pe):nx(Pe),Pe=xp.offset(Pe,(H.V-1)*7),H.y=Pe.getFullYear(),H.m=Pe.getMonth(),H.d=Pe.getDate()+(H.w+6)%7)}else("W"in H||"U"in H)&&("w"in H||(H.w="u"in H?H.u%7:"W"in H?1:0),te="Z"in H?nj(yf(H.y,0,1)).getUTCDay():rj(yf(H.y,0,1)).getDay(),H.m=0,H.d="W"in H?(H.w+6)%7+H.W*7-(te+5)%7:H.w+H.U*7-(te+6)%7);return"Z"in H?(H.H+=H.Z/100|0,H.M+=H.Z%100,nj(H)):rj(H)}}function C(Z,V,ee,H){for(var Re=0,Pe=V.length,te=ee.length,Ie,jt;Re<Pe;){if(H>=te)return-1;if(Ie=V.charCodeAt(Re++),Ie===37){if(Ie=V.charAt(Re++),jt=w[Ie in j_?V.charAt(Re++):Ie],!jt||(H=jt(Z,ee,H))<0)return-1}else if(Ie!=ee.charCodeAt(H++))return-1}return H}function A(Z,V,ee){var H=u.exec(V.slice(ee));
vendor: 5,845 bytes, line 673
673return H?(Z.p=d.get(H[0].toLowerCase()),ee+H[0].length):-1}function O(Z,V,ee){var H=p.exec(V.slice(ee));return H?(Z.w=v.get(H[0].toLowerCase()),ee+H[0].length):-1}function E(Z,V,ee){var H=f.exec(V.slice(ee));return H?(Z.w=m.get(H[0].toLowerCase()),ee+H[0].length):-1}function k(Z,V,ee){var H=y.exec(V.slice(ee));return H?(Z.m=g.get(H[0].toLowerCase()),ee+H[0].length):-1}function M(Z,V,ee){var H=h.exec(V.slice(ee));return H?(Z.m=x.get(H[0].toLowerCase()),ee+H[0].length):-1}function D(Z,V,ee){return C(Z,t,V,ee)}function F(Z,V,ee){return C(Z,r,V,ee)}function L(Z,V,ee){return C(Z,n,V,ee)}function B(Z){return o[Z.getDay()]}function R(Z){return i[Z.getDay()]}function I(Z){return c[Z.getMonth()]}function G(Z){return l[Z.getMonth()]}function U(Z){return a[+(Z.getHours()>=12)]}function K(Z){return 1+~~(Z.getMonth()/3)}function ce(Z){return o[Z.getUTCDay()]}function pe(Z){return i[Z.getUTCDay()]}function Ke(Z){return c[Z.getUTCMonth()]}function q(Z){return l[Z.getUTCMonth()]}function Q(Z){return a[+(Z.getUTCHours()>=12)]}function we(Z){return 1+~~(Z.getUTCMonth()/3)}return{format:function(Z){var V=N(Z+="",j);return V.toString=function(){return Z},V},parse:function(Z){var V=P(Z+="",!1);return V.toString=function(){return Z},V},utcFormat:function(Z){var V=N(Z+="",S);return V.toString=function(){return Z},V},utcParse:function(Z){var V=P(Z+="",!0);return V.toString=function(){return Z},V}}}var j_={"-":"",_:" ",0:"0"},Mr=/^\s*\d+/,Ehe=/^%/,Ohe=/[\\^$*+?|[\]().{}]/g;function mt(e,t,r){var n=e<0?"-":"",a=(n?-e:e)+"",i=a.length;return n+(i<r?new Array(r-i+1).join(t)+a:a)}function _he(e){return e.replace(Ohe,"\\$&")}function bf(e){return new RegExp("^(?:"+e.map(_he).join("|")+")","i")}function jf(e){return new Map(e.map((t,r)=>[t.toLowerCase(),r]))}function khe(e,t,r){var n=Mr.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function Mhe(e,t,r){var n=Mr.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function Dhe(e,t,r){var n=Mr.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function Rhe(e,t,r){var n=Mr.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function Ihe(e,t,r){var n=Mr.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function w_(e,t,r){var n=Mr.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function N_(e,t,r){var n=Mr.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function $he(e,t,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function Lhe(e,t,r){var n=Mr.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function Fhe(e,t,r){var n=Mr.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function S_(e,t,r){var n=Mr.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function Vhe(e,t,r){var n=Mr.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function P_(e,t,r){var n=Mr.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function zhe(e,t,r){var n=Mr.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function Bhe(e,t,r){var n=Mr.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function Uhe(e,t,r){var n=Mr.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function Whe(e,t,r){var n=Mr.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function qhe(e,t,r){var n=Ehe.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function Hhe(e,t,r){var n=Mr.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function Ghe(e,t,r){var n=Mr.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function C_(e,t){return mt(e.getDate(),t,2)}function Khe(e,t){return mt(e.getHours(),t,2)}function Xhe(e,t){return mt(e.getHours()%12||12,t,2)}function Yhe(e,t){return mt(1+xp.count(xi(e),e),t,3)}function uF(e,t){return mt(e.getMilliseconds(),t,3)}function Zhe(e,t){return uF(e,t)+"000"}function Qhe(e,t){return mt(e.getMonth()+1,t,2)}function Jhe(e,t){return mt(e.getMinutes(),t,2)}function epe(e,t){return mt(e.getSeconds(),t,2)}function tpe(e){var t=e.getDay();return t===0?7:t}function rpe(e,t){return mt(c0.count(xi(e)-1,e),t,2)}function dF(e){var t=e.getDay();return t>=4||t===0?ed(e):ed.ceil(e)}function npe(e,t){return e=dF(e),mt(ed.count(xi(e),e)+(xi(e).getDay()===4),t,2)}function ape(e){return e.getDay()}function spe(e,t){return mt(nx.count(xi(e)-1,e),t,2)}function ipe(e,t){return mt(e.getFullYear()%100,t,2)}function ope(e,t){return e=dF(e),mt(e.getFullYear()%100,t,2)}function lpe(e,t){return mt(e.getFullYear()%1e4,t,4)}function cpe(e,t){var r=e.getDay();return e=r>=4||r===0?ed(e):ed.ceil(e),mt(e.getFullYear()%1e4,t,4)}function upe(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+mt(t/60|0,"0",2)+mt(t%60,"0",2)}function A_(e,t){return mt(e.getUTCDate(),t,2)}function dpe(e,t){return mt(e.getUTCHours(),t,2)}function fpe(e,t){return mt(e.getUTCHours()%12||12,t,2)}function mpe(e,t){return mt(1+l0.count(yi(e),e),t,3)}function fF(e,t){return mt(e.getUTCMilliseconds(),t,3)}function hpe(e,t){return fF(e,t)+"000"}function ppe(e,t){return mt(e.getUTCMonth()+1,t,2)}function gpe(e,t){return mt(e.getUTCMinutes(),t,2)}function vpe(e,t){return mt(e.getUTCSeconds(),t,2)}function xpe(e){var t=e.getUTCDay();return t===0?7:t}function ype(e,t){return mt(u0.count(yi(e)-1,e),t,2)}function mF(e){var t=e.getUTCDay();return t>=4||t===0?td(e):td.ceil(e)}function bpe(e,t){return e=mF(e),mt(td.count(yi(e),e)+(yi(e).getUTCDay()===4),t,2)}function jpe(e){return e.getUTCDay()}function wpe(e,t){return mt(ax.count(yi(e)-1,e),t,2)}function Npe(e,t){return mt(e.getUTCFullYear()%100,t,2)}function Spe(e,t){return e=mF(e),mt(e.getUTCFullYear()%100,t,2)}function Ppe(e,t){return mt(e.getUTCFullYear()%1e4,t,4)}function Cpe(e,t){var r=e.getUTCDay();return e=r>=4||r===0?td(e):td.ceil(e),mt(e.getUTCFullYear()%1e4,t,4)}function Ape(){return"+0000"}
673function T_(){return"%"}function E_(e){return+e}function O_(e){return Math.floor(+e/1e3)}var wc,hF,pF;Tpe({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 Tpe(e){return wc=The(e),hF=wc.format,wc.parse,pF=wc.utcFormat,wc.utcParse,wc}function Epe(e){return new Date(e)}function Ope(e){return e instanceof Date?+e:+new Date(+e)}function RP(e,t,r,n,a,i,o,l,c,u){var d=jP(),f=d.invert,m=d.domain,p=u(".%L"),v=u(":%S"),h=u("%I:%M"),x=u("%I %p"),y=u("%a %d"),g=u("%b %d"),j=u("%B"),S=u("%Y");function w(N){return(c(N)<N?p:l(N)<N?v:o(N)<N?h:i(N)<N?x:n(N)<N?a(N)<N?y:g:r(N)<N?j:S)(N)}return d.invert=function(N){return new Date(f(N))},d.domain=function(N){return arguments.length?m(Array.from(N,Ope)):m().map(Epe)},d.ticks=function(N){var P=m();return e(P[0],P[P.length-1],N??10)},d.tickFormat=function(N,P){return P==null?w:u(P)},d.nice=function(N){var P=m();return(!N||typeof N.range!="function")&&(N=t(P[0],P[P.length-1],N??10)),N?m(tF(P,N)):d},d.copy=function(){return vp(d,RP(e,t,r,n,a,i,o,l,c,u))},d}function _pe(){return Sa.apply(RP(Che,Ahe,xi,MP,c0,xp,_P,EP,pl,hF).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function kpe(){return Sa.apply(RP(She,Phe,yi,DP,u0,l0,kP,OP,pl,pF).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function d0(){var e=0,t=1,r,n,a,i,o=vn,l=!1,c;function u(f){return f==null||isNaN(f=+f)?c:o(a===0?.5:(f=(i(f)-r)*a,l?Math.max(0,Math.min(1,f)):f))}u.domain=function(f){return arguments.length?([e,t]=f,r=i(e=+e),n=i(t=+t),a=r===n?0:1/(n-r),u):[e,t]},u.clamp=function(f){return arguments.length?(l=!!f,u):l},u.interpolator=function(f){return arguments.length?(o=f,u):o};function d(f){return function(m){var p,v;return arguments.length?([p,v]=m,o=f(p,v),u):[o(0),o(1)]}}return u.range=d(Zd),u.rangeRound=d(bP),u.unknown=function(f){return arguments.length?(c=f,u):c},function(f){return i=f,r=f(e),n=f(t),a=r===n?0:1/(n-r),u}}function Wo(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function gF(){var e=Uo(d0()(vn));return e.copy=function(){return Wo(e,gF())},Ai.apply(e,arguments)}function vF(){var e=SP(d0()).domain([1,10]);return e.copy=function(){return Wo(e,vF()).base(e.base())},Ai.apply(e,arguments)}function xF(){var e=PP(d0());return e.copy=function(){return Wo(e,xF()).constant(e.constant())},Ai.apply(e,arguments)}function IP(){var e=CP(d0());return e.copy=function(){return Wo(e,IP()).exponent(e.exponent())},Ai.apply(e,arguments)}function Mpe(){return IP.apply(null,arguments).exponent(.5)}function yF(){var e=[],t=vn;function r(n){if(n!=null&&!isNaN(n=+n))return t((pp(e,n,1)-1)/(e.length-1))}return r.domain=function(n){if(!arguments.length)return e.slice();e=[];for(let a of n)a!=null&&!isNaN(a=+a)&&e.push(a);return e.sort(bo),r},r.interpolator=function(n){return arguments.length?(t=n,r):t},r.range=function(){return e.map((n,a)=>t(a/(e.length-1)))},r.quantiles=function(n){return Array.from({length:n+1},(a,i)=>yme(e,i/n))},r.copy=function(){return yF(t).domain(e)},Ai.apply(r,arguments)}function f0(){var e=0,t=.5,r=1,n=1,a,i,o,l,c,u=vn,d,f=!1,m;function p(h){return isNaN(h=+h)?m:(h=.5+((h=+d(h))-i)*(n*h<n*i?l:c),u(f?Math.max(0,Math.min(1,h)):h))}p.domain=function(h){return arguments.length?([e,t,r]=h,a=d(e=+e),i=d(t=+t),o=d(r=+r),l=a===i?0:.5/(i-a),c=i===o?0:.5/(o-i),n=i<a?-1:1,p):[e,t,r]},p.clamp=function(h){return arguments.length?(f=!!h,p):f},p.interpolator=function(h){return arguments.length?(u=h,p):u};function v(h){return function(x){var y,g,j;return arguments.length?([y,g,j]=x,u=qme(h,[y,g,j]),p):[u(0),u(.5),u(1)]}}return p.range=v(Zd),p.rangeRound=v(bP),p.unknown=function(h){return arguments.length?(m=h,p):m},function(h){return d=h,a=h(e),i=h(t),o=h(r),l=a===i?0:.5/(i-a),c=i===o?0:.5/(o-i),n=i<a?-1:1,p}}function bF(){var e=Uo(f0()(vn));return e.copy=function(){return Wo(e,bF())},Ai.apply(e,arguments)}function jF(){var e=SP(f0()).domain([.1,1,10]);return e.copy=function(){return Wo(e,jF()).base(e.base())},Ai.apply(e,arguments)}function wF(){var e=PP(f0());return e.copy=function(){return Wo(e,wF()).constant(e.constant())},Ai.apply(e,arguments)}function $P(){var e=CP(f0());return e.copy=function(){return Wo(e,$P()).exponent(e.exponent())},Ai.apply(e,arguments)}function Dpe(){return $P.apply(null,arguments).exponent(.5)}const __=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:eh,scaleDiverging:bF,scaleDivergingLog:jF,scaleDivergingPow:$P,scaleDivergingSqrt:Dpe,scaleDivergingSymlog:wF,scaleIdentity:eF,scaleImplicit:kw,scaleLinear:tx,scaleLog:rF,scaleOrdinal:vP,scalePoint:am,scalePow:AP,scaleQuantile:sF,scaleQuantize:iF,scaleRadial:aF,scaleSequential:gF,scaleSequentialLog:vF,scaleSequentialPow:IP,scaleSequentialQuantile:yF,scaleSequentialSqrt:Mpe,scaleSequentialSymlog:xF,scaleSqrt:hhe,scaleSymlog:nF,scaleThreshold:oF,scaleTime:_pe,scaleUtc:kpe,tickFormat:JL},Symbol.toStringTag,{value:"Module"}));var Rpe=zd;function Ipe(e,t,r){for(var n=-1,a=e.length;++n<a;){var i=e[n],o=t(i);if(o!=null&&(l===void 0?o===o&&!Rpe(o):r(o,l)))var l=o,c=i}return c}var m0=Ipe;function $pe(e,t){return e>t}var NF=$pe,Lpe=m0,Fpe=NF,Vpe=Yd;function zpe(e){return e&&e.length?Lpe(e,Vpe,Fpe):void 0}var Bpe=zpe;const oo=bt(Bpe);function Upe(e,t){return e<t}var SF=Upe,Wpe=m0,qpe=SF,Hpe=Yd;function Gpe(e){return e&&e.length?Wpe(e,Hpe,qpe):void 0}var Kpe=Gpe;const h0=bt(Kpe);var Xpe=ZS,Ype=Rs,Zpe=kL,Qpe=Mn;function Jpe(e,t){var r=Qpe(e)?Xpe:Zpe;return r(e,Ype(t))}var ege=Jpe,tge=OL,rge=ege;function nge(e,t){return tge(rge(e,t),1)}var age=nge;const sge=bt(age);var ige=fP;function oge(e,t){return ige(e,t)}var lge=oge;const rd=bt(lge);
vendor: 62,902 bytes, lines 673-700
673var Qd=1e9,cge={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},FP,Ut=!0,ja="[DecimalError] ",_l=ja+"Invalid argument: ",LP=ja+"Exponent out of range: ",Jd=Math.floor,sl=Math.pow,uge=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,zn,Ar=1e7,$t=7,PF=9007199254740991,sx=Jd(PF/$t),Se={};Se.absoluteValue=Se.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};Se.comparedTo=Se.cmp=function(e){var t,r,n,a,i=this;if(e=new i.constructor(e),i.s!==e.s)return i.s||-e.s;if(i.e!==e.e)return i.e>e.e^i.s<0?1:-1;for(n=i.d.length,a=e.d.length,t=0,r=n<a?n:a;t<r;++t)if(i.d[t]!==e.d[t])return i.d[t]>e.d[t]^i.s<0?1:-1;return n===a?0:n>a^i.s<0?1:-1};Se.decimalPlaces=Se.dp=function(){var e=this,t=e.d.length-1,r=(t-e.e)*$t;if(t=e.d[t],t)for(;t%10==0;t/=10)r--;return r<0?0:r};Se.dividedBy=Se.div=function(e){return ri(this,new this.constructor(e))};Se.dividedToIntegerBy=Se.idiv=function(e){var t=this,r=t.constructor;return At(ri(t,new r(e),0,1),r.precision)};Se.equals=Se.eq=function(e){return!this.cmp(e)};Se.exponent=function(){return pr(this)};Se.greaterThan=Se.gt=function(e){return this.cmp(e)>0};Se.greaterThanOrEqualTo=Se.gte=function(e){return this.cmp(e)>=0};Se.isInteger=Se.isint=function(){return this.e>this.d.length-2};Se.isNegative=Se.isneg=function(){return this.s<0};Se.isPositive=Se.ispos=function(){return this.s>0};Se.isZero=function(){return this.s===0};Se.lessThan=Se.lt=function(e){return this.cmp(e)<0};Se.lessThanOrEqualTo=Se.lte=function(e){return this.cmp(e)<1};Se.logarithm=Se.log=function(e){var t,r=this,n=r.constructor,a=n.precision,i=a+5;if(e===void 0)e=new n(10);else if(e=new n(e),e.s<1||e.eq(zn))throw Error(ja+"NaN");if(r.s<1)throw Error(ja+(r.s?"NaN":"-Infinity"));return r.eq(zn)?new n(0):(Ut=!1,t=ri(sh(r,i),sh(e,i),i),Ut=!0,At(t,a))};Se.minus=Se.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?TF(t,e):CF(t,(e.s=-e.s,e))};Se.modulo=Se.mod=function(e){var t,r=this,n=r.constructor,a=n.precision;if(e=new n(e),!e.s)throw Error(ja+"NaN");return r.s?(Ut=!1,t=ri(r,e,0,1).times(e),Ut=!0,r.minus(t)):At(new n(r),a)};Se.naturalExponential=Se.exp=function(){return AF(this)};Se.naturalLogarithm=Se.ln=function(){return sh(this)};Se.negated=Se.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};Se.plus=Se.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?CF(t,e):TF(t,(e.s=-e.s,e))};Se.precision=Se.sd=function(e){var t,r,n,a=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(_l+e);if(t=pr(a)+1,n=a.d.length-1,r=n*$t+1,n=a.d[n],n){for(;n%10==0;n/=10)r--;for(n=a.d[0];n>=10;n/=10)r++}return e&&t>r?t:r};Se.squareRoot=Se.sqrt=function(){var e,t,r,n,a,i,o,l=this,c=l.constructor;if(l.s<1){if(!l.s)return new c(0);throw Error(ja+"NaN")}for(e=pr(l),Ut=!1,a=Math.sqrt(+l),a==0||a==1/0?(t=ds(l.d),(t.length+e)%2==0&&(t+="0"),a=Math.sqrt(t),e=Jd((e+1)/2)-(e<0||e%2),a==1/0?t="5e"+e:(t=a.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),n=new c(t)):n=new c(a.toString()),r=c.precision,a=o=r+3;;)if(i=n,n=i.plus(ri(l,i,o+2)).times(.5),ds(i.d).slice(0,o)===(t=ds(n.d)).slice(0,o)){if(t=t.slice(o-3,o+1),a==o&&t=="4999"){if(At(i,r+1,0),i.times(i).eq(l)){n=i;break}}else if(t!="9999")break;o+=4}return Ut=!0,At(n,r)};Se.times=Se.mul=function(e){var t,r,n,a,i,o,l,c,u,d=this,f=d.constructor,m=d.d,p=(e=new f(e)).d;if(!d.s||!e.s)return new f(0);for(e.s*=d.s,r=d.e+e.e,c=m.length,u=p.length,c<u&&(i=m,m=p,p=i,o=c,c=u,u=o),i=[],o=c+u,n=o;n--;)i.push(0);for(n=u;--n>=0;){for(t=0,a=c+n;a>n;)l=i[a]+p[n]*m[a-n-1]+t,i[a--]=l%Ar|0,t=l/Ar|0;i[a]=(i[a]+t)%Ar|0}for(;!i[--o];)i.pop();return t?++r:i.shift(),e.d=i,e.e=r,Ut?At(e,f.precision):e};Se.toDecimalPlaces=Se.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),e===void 0?r:(As(e,0,Qd),t===void 0?t=n.rounding:As(t,0,8),At(r,e+pr(r)+1,t))};Se.toExponential=function(e,t){var r,n=this,a=n.constructor;return e===void 0?r=Kl(n,!0):(As(e,0,Qd),t===void 0?t=a.rounding:As(t,0,8),n=At(new a(n),e+1,t),r=Kl(n,!0,e+1)),r};Se.toFixed=function(e,t){var r,n,a=this,i=a.constructor;return e===void 0?Kl(a):(As(e,0,Qd),t===void 0?t=i.rounding:As(t,0,8),n=At(new i(a),e+pr(a)+1,t),r=Kl(n.abs(),!1,e+pr(n)+1),a.isneg()&&!a.isZero()?"-"+r:r)};Se.toInteger=Se.toint=function(){var e=this,t=e.constructor;return At(new t(e),pr(e)+1,t.rounding)};Se.toNumber=function(){return+this};Se.toPower=Se.pow=function(e){var t,r,n,a,i,o,l=this,c=l.constructor,u=12,d=+(e=new c(e));if(!e.s)return new c(zn);if(l=new c(l),!l.s){if(e.s<1)throw Error(ja+"Infinity");return l}if(l.eq(zn))return l;if(n=c.precision,e.eq(zn))return At(l,n);if(t=e.e,r=e.d.length-1,o=t>=r,i=l.s,o){if((r=d<0?-d:d)<=PF){for(a=new c(zn),t=Math.ceil(n/$t+4),Ut=!1;r%2&&(a=a.times(l),M_(a.d,t)),r=Jd(r/2),r!==0;)l=l.times(l),M_(l.d,t);return Ut=!0,e.s<0?new c(zn).div(a):At(a,n)}}else if(i<0)throw Error(ja+"NaN");return i=i<0&&e.d[Math.max(t,r)]&1?-1:1,l.s=1,Ut=!1,a=e.times(sh(l,n+u)),Ut=!0,a=AF(a),a.s=i,a};Se.toPrecision=function(e,t){var r,n,a=this,i=a.constructor;return e===void 0?(r=pr(a),n=Kl(a,r<=i.toExpNeg||r>=i.toExpPos)):(As(e,1,Qd),t===void 0?t=i.rounding:As(t,0,8),a=At(new i(a),e,t),r=pr(a),n=Kl(a,e<=r||r<=i.toExpNeg,e)),n};Se.toSignificantDigits=Se.tosd=function(e,t){var r=this,n=r.constructor;return e===void 0?(e=n.precision,t=n.rounding):(As(e,1,Qd),t===void 0?t=n.rounding:As(t,0,8)),At(new n(r),e,t)};Se.toString=Se.valueOf=Se.val=Se.toJSON=Se[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=pr(e),r=e.constructor;return Kl(e,t<=r.toExpNeg||t>=r.toExpPos)};function CF(e,t){var r,n,a,i,o,l,c,u,d=e.constructor,f=d.precision;if(!e.s||!t.s)return t.s||(t=new d(e)),Ut?At(t,f):t;if(c=e.d,u=t.d,o=e.e,a=t.e,c=c.slice(),i=o-a,i){for(i<0?(n=c,i=-i,l=u.length):(n=u,a=o,l=c.length),o=Math.ceil(f/$t),l=o>l?o+1:l+1,i>l&&(i=l,n.length=1),n.reverse();i--;)n.push(0);n.reverse()}for(l=c.length,i=u.length,l-i<0&&(i=l,n=u,u=c,c=n),r=0;i;)r=(c[--i]=c[i]+u[i]+r)/Ar|0,c[i]%=Ar;for(r&&(c.unshift(r),++a),l=c.length;c[--l]==0;)c.pop();return t.d=c,t.e=a,Ut?At(t,f):t}function As(e,t,r){if(e!==~~e||e<t||e>r)throw Error(_l+e)}function ds(e){var t,r,n,a=e.length-1,i="",o=e[0];if(a>0){for(i+=o,t=1;t<a;t++)n=e[t]+"",r=$t-n.length,r&&(i+=Bi(r)),i+=n;o=e[t],n=o+"",r=$t-n.length,r&&(i+=Bi(r))}else if(o===0)return"0";for(;o%10===0;)o/=10;return i+o}var ri=function(){function e(n,a){var i,o=0,l=n.length;for(n=n.slice();l--;)i=n[l]*a+o,n[l]=i%Ar|0,o=i/Ar|0;return o&&n.unshift(o),n}function t(n,a,i,o){var l,c;if(i!=o)c=i>o?1:-1;else for(l=c=0;l<i;l++)if(n[l]!=a[l]){c=n[l]>a[l]?1:-1;break}return c}function r(n,a,i){for(var o=0;i--;)n[i]-=o,o=n[i]<a[i]?1:0,n[i]=o*Ar+n[i]-a[i];for(;!n[0]&&n.length>1;)n.shift()}return function(n,a,i,o){var l,c,u,d,f,m,p,v,h,x,y,g,j,S,w,N,P,C,A=n.constructor,O=n.s==a.s?1:-1,E=n.d,k=a.d;if(!n.s)return new A(n);if(!a.s)throw Error(ja+"Division by zero");for(c=n.e-a.e,P=k.length,w=E.length,p=new A(O),v=p.d=[],u=0;k[u]==(E[u]||0);)++u;if(k[u]>(E[u]||0)&&--c,i==null?g=i=A.precision:o?g=i+(pr(n)-pr(a))+1:g=i,g<0)return new A(0);if(g=g/$t+2|0,u=0,P==1)for(d=0,k=k[0],g++;(u<w||d)&&g--;u++)j=d*Ar+(E[u]||0),v[u]=j/k|0,d=j%k|0;else{for(d=Ar/(k[0]+1)|0,d>1&&(k=e(k,d),E=e(E,d),P=k.length,w=E.length),S=P,h=E.slice(0,P),x=h.length;x<P;)h[x++]=0;C=k.slice(),C.unshift(0),N=k[0],k[1]>=Ar/2&&++N;do d=0,l=t(k,h,P,x),l<0?(y=h[0],P!=x&&(y=y*Ar+(h[1]||0)),d=y/N|0,d>1?(d>=Ar&&(d=Ar-1),f=e(k,d),m=f.length,x=h.length,l=t(f,h,m,x),l==1&&(d--,r(f,P<m?C:k,m))):(d==0&&(l=d=1),f=k.slice()),m=f.length,m<x&&f.unshift(0),r(h,f,x),l==-1&&(x=h.length,l=t(k,h,P,x),l<1&&(d++,r(h,P<x?C:k,x))),x=h.length):l===0&&(d++,h=[0]),v[u++]=d,l&&h[0]?h[x++]=E[S]||0:(h=[E[S]],x=1);while((S++<w||h[0]!==void 0)&&g--)}return v[0]||v.shift(),p.e=c,At(p,o?i+pr(p)+1:i)}}();function AF(e,t){var r,n,a,i,o,l,c=0,u=0,d=e.constructor,f=d.precision;if(pr(e)>16)throw Error(LP+pr(e));if(!e.s)return new d(zn);for(t==null?(Ut=!1,l=f):l=t,o=new d(.03125);e.abs().gte(.1);)e=e.times(o),u+=5;for(n=Math.log(sl(2,u))/Math.LN10*2+5|0,l+=n,r=a=i=new d(zn),d.precision=l;;){if(a=At(a.times(e),l),r=r.times(++c),o=i.plus(ri(a,r,l)),ds(o.d).slice(0,l)===ds(i.d).slice(0,l)){for(;u--;)i=At(i.times(i),l);return d.precision=f,t==null?(Ut=!0,At(i,f)):i}i=o}}function pr(e){for(var t=e.e*$t,r=e.d[0];r>=10;r/=10)t++;return t}function aj(e,t,r){if(t>e.LN10.sd())throw Ut=!0,r&&(e.precision=r),Error(ja+"LN10 precision limit exceeded");return At(new e(e.LN10),t)}function Bi(e){for(var t="";e--;)t+="0";return t}function sh(e,t){var r,n,a,i,o,l,c,u,d,f=1,m=10,p=e,v=p.d,h=p.constructor,x=h.precision;if(p.s<1)throw Error(ja+(p.s?"NaN":"-Infinity"));if(p.eq(zn))return new h(0);if(t==null?(Ut=!1,u=x):u=t,p.eq(10))return t==null&&(Ut=!0),aj(h,u);if(u+=m,h.precision=u,r=ds(v),n=r.charAt(0),i=pr(p),Math.abs(i)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)p=p.times(e),r=ds(p.d),n=r.charAt(0),f++;i=pr(p),n>1?(p=new h("0."+r),i++):p=new h(n+"."+r.slice(1))}else return c=aj(h,u+2,x).times(i+""),p=sh(new h(n+"."+r.slice(1)),u-m).plus(c),h.precision=x,t==null?(Ut=!0,At(p,x)):p;for(l=o=p=ri(p.minus(zn),p.plus(zn),u),d=At(p.times(p),u),a=3;;){if(o=At(o.times(d),u),c=l.plus(ri(o,new h(a),u)),ds(c.d).slice(0,u)===ds(l.d).slice(0,u))return l=l.times(2),i!==0&&(l=l.plus(aj(h,u+2,x).times(i+""))),l=ri(l,new h(f),u),h.precision=x,t==null?(Ut=!0,At(l,x)):l;l=c,a+=2}}function k_(e,t){var r,n,a;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length),n=0;t.charCodeAt(n)===48;)++n;for(a=t.length;t.charCodeAt(a-1)===48;)--a;if(t=t.slice(n,a),t){if(a-=n,r=r-n-1,e.e=Jd(r/$t),e.d=[],n=(r+1)%$t,r<0&&(n+=$t),n<a){for(n&&e.d.push(+t.slice(0,n)),a-=$t;n<a;)e.d.push(+t.slice(n,n+=$t));t=t.slice(n),n=$t-t.length}else n-=a;for(;n--;)t+="0";if(e.d.push(+t),Ut&&(e.e>sx||e.e<-sx))throw Error(LP+r)}else e.s=0,e.e=0,e.d=[0];return e}function At(e,t,r){var n,a,i,o,l,c,u,d,f=e.d;for(o=1,i=f[0];i>=10;i/=10)o++;if(n=t-o,n<0)n+=$t,a=t,u=f[d=0];else{if(d=Math.ceil((n+1)/$t),i=f.length,d>=i)return e;for(u=i=f[d],o=1;i>=10;i/=10)o++;n%=$t,a=n-$t+o}if(r!==void 0&&(i=sl(10,o-a-1),l=u/i%10|0,c=t<0||f[d+1]!==void 0||u%i,c=r<4?(l||c)&&(r==0||r==(e.s<0?3:2)):l>5||l==5&&(r==4||c||r==6&&(n>0?a>0?u/sl(10,o-a):0:f[d-1])%10&1||r==(e.s<0?8:7))),t<1||!f[0])return c?(i=pr(e),f.length=1,t=t-i-1,f[0]=sl(10,($t-t%$t)%$t),e.e=Jd(-t/$t)||0):(f.length=1,f[0]=e.e=e.s=0),e;if(n==0?(f.length=d,i=1,d--):(f.length=d+1,i=sl(10,$t-n),f[d]=a>0?(u/sl(10,o-a)%sl(10,a)|0)*i:0),c)for(;;)if(d==0){(f[0]+=i)==Ar&&(f[0]=1,++e.e);break}else{if(f[d]+=i,f[d]!=Ar)break;f[d--]=0,i=1}for(n=f.length;f[--n]===0;)f.pop();if(Ut&&(e.e>sx||e.e<-sx))throw Error(LP+pr(e));return e}function TF(e,t){var r,n,a,i,o,l,c,u,d,f,m=e.constructor,p=m.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new m(e),Ut?At(t,p):t;if(c=e.d,f=t.d,n=t.e,u=e.e,c=c.slice(),o=u-n,o){for(d=o<0,d?(r=c,o=-o,l=f.length):(r=f,n=u,l=c.length),a=Math.max(Math.ceil(p/$t),l)+2,o>a&&(o=a,r.length=1),r.reverse(),a=o;a--;)r.push(0);r.reverse()}else{for(a=c.length,l=f.length,d=a<l,d&&(l=a),a=0;a<l;a++)if(c[a]!=f[a]){d=c[a]<f[a];break}o=0}for(d&&(r=c,c=f,f=r,t.s=-t.s),l=c.length,a=f.length-l;a>0;--a)c[l++]=0;for(a=f.length;a>o;){if(c[--a]<f[a]){for(i=a;i&&c[--i]===0;)c[i]=Ar-1;--c[i],c[a]+=Ar}c[a]-=f[a]}for(;c[--l]===0;)c.pop();for(;c[0]===0;c.shift())--n;return c[0]?(t.d=c,t.e=n,Ut?At(t,p):t):new m(0)}function Kl(e,t,r){var n,a=pr(e),i=ds(e.d),o=i.length;return t?(r&&(n=r-o)>0?i=i.charAt(0)+"."+i.slice(1)+Bi(n):o>1&&(i=i.charAt(0)+"."+i.slice(1)),i=i+(a<0?"e":"e+")+a):a<0?(i="0."+Bi(-a-1)+i,r&&(n=r-o)>0&&(i+=Bi(n))):a>=o?(i+=Bi(a+1-o),r&&(n=r-a-1)>0&&(i=i+"."+Bi(n))):((n=a+1)<o&&(i=i.slice(0,n)+"."+i.slice(n)),r&&(n=r-o)>0&&(a+1===o&&(i+="."),i+=Bi(n))),e.s<0?"-"+i:i}function M_(e,t){if(e.length>t)return e.length=t,!0}function EF(e){var t,r,n;function a(i){var o=this;if(!(o instanceof a))return new a(i);if(o.constructor=a,i instanceof a){o.s=i.s,o.e=i.e,o.d=(i=i.d)?i.slice():i;return}if(typeof i=="number"){if(i*0!==0)throw Error(_l+i);if(i>0)o.s=1;else if(i<0)i=-i,o.s=-1;else{o.s=0,o.e=0,o.d=[0];return}if(i===~~i&&i<1e7){o.e=0,o.d=[i];return}return k_(o,i.toString())}else if(typeof i!="string")throw Error(_l+i);if(i.charCodeAt(0)===45?(i=i.slice(1),o.s=-1):o.s=1,uge.test(i))k_(o,i);else throw Error(_l+i)}if(a.prototype=Se,a.ROUND_UP=0,a.ROUND_DOWN=1,a.ROUND_CEIL=2,a.ROUND_FLOOR=3,a.ROUND_HALF_UP=4,a.ROUND_HALF_DOWN=5,a.ROUND_HALF_EVEN=6,a.ROUND_HALF_CEIL=7,a.ROUND_HALF_FLOOR=8,a.clone=EF,a.config=a.set=dge,e===void 0&&(e={}),e)for(n=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t<n.length;)e.hasOwnProperty(r=n[t++])||(e[r]=this[r]);return a.config(e),a}function dge(e){if(!e||typeof e!="object")throw Error(ja+"Object expected");var t,r,n,a=["precision",1,Qd,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<a.length;t+=3)if((n=e[r=a[t]])!==void 0)if(Jd(n)===n&&n>=a[t+1]&&n<=a[t+2])this[r]=n;else throw Error(_l+r+": "+n);if((n=e[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error(_l+r+": "+n);return this}var FP=EF(cge);zn=new FP(1);const Pt=FP;function fge(e){return gge(e)||pge(e)||hge(e)||mge()}function mge(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 674In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function hge(e,t){if(e){if(typeof e=="string")return Iw(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Iw(e,t)}}function pge(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function gge(e){if(Array.isArray(e))return Iw(e)}function Iw(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var vge=function(t){return t},OF={"@@functional/placeholder":!0},_F=function(t){return t===OF},D_=function(t){return function r(){return arguments.length===0||arguments.length===1&&_F(arguments.length<=0?void 0:arguments[0])?r:t.apply(void 0,arguments)}},xge=function e(t,r){return t===1?r:D_(function(){for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];var o=a.filter(function(l){return l!==OF}).length;return o>=t?r.apply(void 0,a):e(t-o,D_(function(){for(var l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];var d=a.map(function(f){return _F(f)?c.shift():f});return r.apply(void 0,fge(d).concat(c))}))})},p0=function(t){return xge(t.length,t)},$w=function(t,r){for(var n=[],a=t;a<r;++a)n[a-t]=a;return n},yge=p0(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(r){return t[r]}).map(e)}),bge=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];if(!r.length)return vge;var a=r.reverse(),i=a[0],o=a.slice(1);return function(){return o.reduce(function(l,c){return c(l)},i.apply(void 0,arguments))}},Lw=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},kF=function(t){var r=null,n=null;return function(){for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return r&&i.every(function(l,c){return l===r[c]})||(r=i,n=t.apply(void 0,i)),n}};function jge(e){var t;return e===0?t=1:t=Math.floor(new Pt(e).abs().log(10).toNumber())+1,t}function wge(e,t,r){for(var n=new Pt(e),a=0,i=[];n.lt(t)&&a<1e5;)i.push(n.toNumber()),n=n.add(r),a++;return i}var Nge=p0(function(e,t,r){var n=+e,a=+t;return n+r*(a-n)}),Sge=p0(function(e,t,r){var n=t-+e;return n=n||1/0,(r-e)/n}),Pge=p0(function(e,t,r){var n=t-+e;return n=n||1/0,Math.max(0,Math.min(1,(r-e)/n))});const g0={rangeStep:wge,getDigitCount:jge,interpolateNumber:Nge,uninterpolateNumber:Sge,uninterpolateTruncation:Pge};function Fw(e){return Tge(e)||Age(e)||MF(e)||Cge()}function Cge(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 675In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Age(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function Tge(e){if(Array.isArray(e))return Vw(e)}function ih(e,t){return _ge(e)||Oge(e,t)||MF(e,t)||Ege()}function Ege(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 676In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function MF(e,t){if(e){if(typeof e=="string")return Vw(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Vw(e,t)}}function Vw(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Oge(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var r=[],n=!0,a=!1,i=void 0;try{for(var o=e[Symbol.iterator](),l;!(n=(l=o.next()).done)&&(r.push(l.value),!(t&&r.length===t));n=!0);}catch(c){a=!0,i=c}finally{try{!n&&o.return!=null&&o.return()}finally{if(a)throw i}}return r}}function _ge(e){if(Array.isArray(e))return e}function DF(e){var t=ih(e,2),r=t[0],n=t[1],a=r,i=n;return r>n&&(a=n,i=r),[a,i]}function RF(e,t,r){if(e.lte(0))return new Pt(0);var n=g0.getDigitCount(e.toNumber()),a=new Pt(10).pow(n),i=e.div(a),o=n!==1?.05:.1,l=new Pt(Math.ceil(i.div(o).toNumber())).add(r).mul(o),c=l.mul(a);return t?c:new Pt(Math.ceil(c))}function kge(e,t,r){var n=1,a=new Pt(e);if(!a.isint()&&r){var i=Math.abs(e);i<1?(n=new Pt(10).pow(g0.getDigitCount(e)-1),a=new Pt(Math.floor(a.div(n).toNumber())).mul(n)):i>1&&(a=new Pt(Math.floor(e)))}else e===0?a=new Pt(Math.floor((t-1)/2)):r||(a=new Pt(Math.floor(e)));var o=Math.floor((t-1)/2),l=bge(yge(function(c){return a.add(new Pt(c-o).mul(n)).toNumber()}),$w);return l(0,t)}function IF(e,t,r,n){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((t-e)/(r-1)))return{step:new Pt(0),tickMin:new Pt(0),tickMax:new Pt(0)};var i=RF(new Pt(t).sub(e).div(r-1),n,a),o;e<=0&&t>=0?o=new Pt(0):(o=new Pt(e).add(t).div(2),o=o.sub(new Pt(o).mod(i)));var l=Math.ceil(o.sub(e).div(i).toNumber()),c=Math.ceil(new Pt(t).sub(o).div(i).toNumber()),u=l+c+1;return u>r?IF(e,t,r,n,a+1):(u<r&&(c=t>0?c+(r-u):c,l=t>0?l:l+(r-u)),{step:i,tickMin:o.sub(new Pt(l).mul(i)),tickMax:o.add(new Pt(c).mul(i))})}function Mge(e){var t=ih(e,2),r=t[0],n=t[1],a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=Math.max(a,2),l=DF([r,n]),c=ih(l,2),u=c[0],d=c[1];if(u===-1/0||d===1/0){var f=d===1/0?[u].concat(Fw($w(0,a-1).map(function(){return 1/0}))):[].concat(Fw($w(0,a-1).map(function(){return-1/0})),[d]);return r>n?Lw(f):f}if(u===d)return kge(u,a,i);var m=IF(u,d,o,i),p=m.step,v=m.tickMin,h=m.tickMax,x=g0.rangeStep(v,h.add(new Pt(.1).mul(p)),p);return r>n?Lw(x):x}function Dge(e,t){var r=ih(e,2),n=r[0],a=r[1],i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=DF([n,a]),l=ih(o,2),c=l[0],u=l[1];if(c===-1/0||u===1/0)return[n,a];if(c===u)return[c];var d=Math.max(t,2),f=RF(new Pt(u).sub(c).div(d-1),i,0),m=[].concat(Fw(g0.rangeStep(new Pt(c),new Pt(u).sub(new Pt(.99).mul(f)),f)),[u]);return n>a?Lw(m):m}var Rge=kF(Mge),Ige=kF(Dge),$ge="Invariant failed";function Xl(e,t){throw new Error($ge)}var Lge=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function nd(e){"@babel/helpers - typeof";return nd=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},nd(e)}function ix(){return ix=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ix.apply(this,arguments)}function Fge(e,t){return Uge(e)||Bge(e,t)||zge(e,t)||Vge()}function Vge(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 677In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function zge(e,t){if(e){if(typeof e=="string")return R_(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return R_(e,t)}}function R_(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Bge(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,a,i,o,l=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,t!==0)for(;!(c=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(d){u=!0,a=d}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}function Uge(e){if(Array.isArray(e))return e}function Wge(e,t){if(e==null)return{};var r=qge(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function qge(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Hge(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Gge(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,FF(n.key),n)}}function Kge(e,t,r){return t&&Gge(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Xge(e,t,r){return t=ox(t),Yge(e,$F()?Reflect.construct(t,r||[],ox(e).constructor):t.apply(e,r))}function Yge(e,t){if(t&&(nd(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Zge(e)}function Zge(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function $F(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return($F=function(){return!!e})()}function ox(e){return ox=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ox(e)}function Qge(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&&zw(e,t)}function zw(e,t){return zw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},zw(e,t)}function LF(e,t,r){return t=FF(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function FF(e){var t=Jge(e,"string");return nd(t)=="symbol"?t:t+""}function Jge(e,t){if(nd(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(nd(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var v0=function(e){function t(){return Hge(this,t),Xge(this,t,arguments)}return Qge(t,e),Kge(t,[{key:"render",value:function(){var n=this.props,a=n.offset,i=n.layout,o=n.width,l=n.dataKey,c=n.data,u=n.dataPointFormatter,d=n.xAxis,f=n.yAxis,m=Wge(n,Lge),p=$e(m,!1);this.props.direction==="x"&&d.type!=="number"&&Xl();var v=c.map(function(h){var x=u(h,l),y=x.x,g=x.y,j=x.value,S=x.errorVal;if(!S)return null;var w=[],N,P;if(Array.isArray(S)){var C=Fge(S,2);N=C[0],P=C[1]}else N=P=S;if(i==="vertical"){var A=d.scale,O=g+a,E=O+o,k=O-o,M=A(j-N),D=A(j+P);w.push({x1:D,y1:E,x2:D,y2:k}),w.push({x1:M,y1:O,x2:D,y2:O}),w.push({x1:M,y1:E,x2:M,y2:k})}else if(i==="horizontal"){var F=f.scale,L=y+a,B=L-o,R=L+o,I=F(j-N),G=F(j+P);w.push({x1:B,y1:G,x2:R,y2:G}),w.push({x1:L,y1:I,x2:L,y2:G}),w.push({x1:B,y1:I,x2:R,y2:I})}return _.createElement(ut,ix({className:"recharts-errorBar",key:"bar-".concat(w.map(function(U){return"".concat(U.x1,"-").concat(U.x2,"-").concat(U.y1,"-").concat(U.y2)}))},p),w.map(function(U){return _.createElement("line",ix({},U,{key:"line-".concat(U.x1,"-").concat(U.x2,"-").concat(U.y1,"-").concat(U.y2)}))}))});return _.createElement(ut,{className:"recharts-errorBars"},v)}}])}(_.Component);LF(v0,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});LF(v0,"displayName","ErrorBar");function oh(e){"@babel/helpers - typeof";return oh=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},oh(e)}function I_(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Yo(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?I_(Object(r),!0).forEach(function(n){eve(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):I_(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function eve(e,t,r){return t=tve(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function tve(e){var t=rve(e,"string");return oh(t)=="symbol"?t:t+""}function rve(e,t){if(oh(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(oh(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var VF=function(t){var r=t.children,n=t.formattedGraphicalItems,a=t.legendWidth,i=t.legendContent,o=$n(r,yo);if(!o)return null;var l=yo.defaultProps,c=l!==void 0?Yo(Yo({},l),o.props):{},u;return o.props&&o.props.payload?u=o.props&&o.props.payload:i==="children"?u=(n||[]).reduce(function(d,f){var m=f.item,p=f.props,v=p.sectors||p.data||[];return d.concat(v.map(function(h){return{type:o.props.iconType||m.props.legendType,value:h.name,color:h.fill,payload:h}}))},[]):u=(n||[]).map(function(d){var f=d.item,m=f.type.defaultProps,p=m!==void 0?Yo(Yo({},m),f.props):{},v=p.dataKey,h=p.name,x=p.legendType,y=p.hide;return{inactive:y,dataKey:v,type:c.iconType||x||"square",color:VP(f),value:h||v,payload:p}}),Yo(Yo(Yo({},c),yo.getWithHeight(o,a)),{},{payload:u,item:o})};function lh(e){"@babel/helpers - typeof";return lh=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},lh(e)}function $_(e){return ive(e)||sve(e)||ave(e)||nve()}function nve(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 678In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ave(e,t){if(e){if(typeof e=="string")return Bw(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Bw(e,t)}}function sve(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function ive(e){if(Array.isArray(e))return Bw(e)}function Bw(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function L_(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function sr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?L_(Object(r),!0).forEach(function(n){gu(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):L_(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function gu(e,t,r){return t=ove(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ove(e){var t=lve(e,"string");return lh(t)=="symbol"?t:t+""}function lve(e,t){if(lh(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(lh(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function wr(e,t,r){return et(e)||et(t)?r:Sr(t)?qn(e,t,r):We(t)?t(e):r}function sm(e,t,r,n){var a=sge(e,function(l){return wr(l,t)});if(r==="number"){var i=a.filter(function(l){return se(l)||parseFloat(l)});return i.length?[h0(i),oo(i)]:[1/0,-1/0]}var o=n?a.filter(function(l){return!et(l)}):a;return o.map(function(l){return Sr(l)||l instanceof Date?l:""})}var cve=function(t){var r,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],a=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,o=-1,l=(r=n==null?void 0:n.length)!==null&&r!==void 0?r:0;if(l<=1)return 0;if(i&&i.axisType==="angleAxis"&&Math.abs(Math.abs(i.range[1]-i.range[0])-360)<=1e-6)for(var c=i.range,u=0;u<l;u++){var d=u>0?a[u-1].coordinate:a[l-1].coordinate,f=a[u].coordinate,m=u>=l-1?a[0].coordinate:a[u+1].coordinate,p=void 0;if(pn(f-d)!==pn(m-f)){var v=[];if(pn(m-f)===pn(c[1]-c[0])){p=m;var h=f+c[1]-c[0];v[0]=Math.min(h,(h+d)/2),v[1]=Math.max(h,(h+d)/2)}else{p=d;var x=m+c[1]-c[0];v[0]=Math.min(f,(x+f)/2),v[1]=Math.max(f,(x+f)/2)}var y=[Math.min(f,(p+f)/2),Math.max(f,(p+f)/2)];if(t>y[0]&&t<=y[1]||t>=v[0]&&t<=v[1]){o=a[u].index;break}}else{var g=Math.min(d,m),j=Math.max(d,m);if(t>(g+f)/2&&t<=(j+f)/2){o=a[u].index;break}}}else for(var S=0;S<l;S++)if(S===0&&t<=(n[S].coordinate+n[S+1].coordinate)/2||S>0&&S<l-1&&t>(n[S].coordinate+n[S-1].coordinate)/2&&t<=(n[S].coordinate+n[S+1].coordinate)/2||S===l-1&&t>(n[S].coordinate+n[S-1].coordinate)/2){o=n[S].index;break}return o},VP=function(t){var r,n=t,a=n.type.displayName,i=(r=t.type)!==null&&r!==void 0&&r.defaultProps?sr(sr({},t.type.defaultProps),t.props):t.props,o=i.stroke,l=i.fill,c;switch(a){case"Line":c=o;break;case"Area":case"Radar":c=o&&o!=="none"?o:l;break;default:c=l;break}return c},uve=function(t){var r=t.barSize,n=t.totalSize,a=t.stackGroups,i=a===void 0?{}:a;if(!i)return{};for(var o={},l=Object.keys(i),c=0,u=l.length;c<u;c++)for(var d=i[l[c]].stackGroups,f=Object.keys(d),m=0,p=f.length;m<p;m++){var v=d[f[m]],h=v.items,x=v.cateAxisId,y=h.filter(function(P){return ti(P.type).indexOf("Bar")>=0});if(y&&y.length){var g=y[0].type.defaultProps,j=g!==void 0?sr(sr({},g),y[0].props):y[0].props,S=j.barSize,w=j[x];o[w]||(o[w]=[]);var N=et(S)?r:S;o[w].push({item:y[0],stackList:y.slice(1),barSize:et(N)?void 0:gn(N,n,0)})}}return o},dve=function(t){var r=t.barGap,n=t.barCategoryGap,a=t.bandSize,i=t.sizeList,o=i===void 0?[]:i,l=t.maxBarSize,c=o.length;if(c<1)return null;var u=gn(r,a,0,!0),d,f=[];if(o[0].barSize===+o[0].barSize){var m=!1,p=a/c,v=o.reduce(function(S,w){return S+w.barSize||0},0);v+=(c-1)*u,v>=a&&(v-=(c-1)*u,u=0),v>=a&&p>0&&(m=!0,p*=.9,v=c*p);var h=(a-v)/2>>0,x={offset:h-u,size:0};d=o.reduce(function(S,w){var N={item:w.item,position:{offset:x.offset+x.size+u,size:m?p:w.barSize}},P=[].concat($_(S),[N]);return x=P[P.length-1].position,w.stackList&&w.stackList.length&&w.stackList.forEach(function(C){P.push({item:C,position:x})}),P},f)}else{var y=gn(n,a,0,!0);a-2*y-(c-1)*u<=0&&(u=0);var g=(a-2*y-(c-1)*u)/c;g>1&&(g>>=0);var j=l===+l?Math.min(g,l):g;d=o.reduce(function(S,w,N){var P=[].concat($_(S),[{item:w.item,position:{offset:y+(g+u)*N+(g-j)/2,size:j}}]);return w.stackList&&w.stackList.length&&w.stackList.forEach(function(C){P.push({item:C,position:P[P.length-1].position})}),P},f)}return d},fve=function(t,r,n,a){var i=n.children,o=n.width,l=n.margin,c=o-(l.left||0)-(l.right||0),u=VF({children:i,legendWidth:c});if(u){var d=a||{},f=d.width,m=d.height,p=u.align,v=u.verticalAlign,h=u.layout;if((h==="vertical"||h==="horizontal"&&v==="middle")&&p!=="center"&&se(t[p]))return sr(sr({},t),{},gu({},p,t[p]+(f||0)));if((h==="horizontal"||h==="vertical"&&p==="center")&&v!=="middle"&&se(t[v]))return sr(sr({},t),{},gu({},v,t[v]+(m||0)))}return t},mve=function(t,r,n){return et(r)?!0:t==="horizontal"?r==="yAxis":t==="vertical"||n==="x"?r==="xAxis":n==="y"?r==="yAxis":!0},zF=function(t,r,n,a,i){var o=r.props.children,l=pa(o,v0).filter(function(u){return mve(a,i,u.props.direction)});if(l&&l.length){var c=l.map(function(u){return u.props.dataKey});return t.reduce(function(u,d){var f=wr(d,n);if(et(f))return u;var m=Array.isArray(f)?[h0(f),oo(f)]:[f,f],p=c.reduce(function(v,h){var x=wr(d,h,0),y=m[0]-Math.abs(Array.isArray(x)?x[0]:x),g=m[1]+Math.abs(Array.isArray(x)?x[1]:x);return[Math.min(y,v[0]),Math.max(g,v[1])]},[1/0,-1/0]);return[Math.min(p[0],u[0]),Math.max(p[1],u[1])]},[1/0,-1/0])}return null},hve=function(t,r,n,a,i){var o=r.map(function(l){return zF(t,l,n,i,a)}).filter(function(l){return!et(l)});return o&&o.length?o.reduce(function(l,c){return[Math.min(l[0],c[0]),Math.max(l[1],c[1])]},[1/0,-1/0]):null},BF=function(t,r,n,a,i){var o=r.map(function(c){var u=c.props.dataKey;return n==="number"&&u&&zF(t,c,u,a)||sm(t,u,n,i)});if(n==="number")return o.reduce(function(c,u){return[Math.min(c[0],u[0]),Math.max(c[1],u[1])]},[1/0,-1/0]);var l={};return o.reduce(function(c,u){for(var d=0,f=u.length;d<f;d++)l[u[d]]||(l[u[d]]=!0,c.push(u[d]));return c},[])},UF=function(t,r){return t==="horizontal"&&r==="xAxis"||t==="vertical"&&r==="yAxis"||t==="centric"&&r==="angleAxis"||t==="radial"&&r==="radiusAxis"},WF=function(t,r,n,a){if(a)return t.map(function(c){return c.coordinate});var i,o,l=t.map(function(c){return c.coordinate===r&&(i=!0),c.coordinate===n&&(o=!0),c.coordinate});return i||l.push(r),o||l.push(n),l},Qs=function(t,r,n){if(!t)return null;var a=t.scale,i=t.duplicateDomain,o=t.type,l=t.range,c=t.realScaleType==="scaleBand"?a.bandwidth()/2:2,u=(r||n)&&o==="category"&&a.bandwidth?a.bandwidth()/c:0;if(u=t.axisType==="angleAxis"&&(l==null?void 0:l.length)>=2?pn(l[0]-l[1])*2*u:u,r&&(t.ticks||t.niceTicks)){var d=(t.ticks||t.niceTicks).map(function(f){var m=i?i.indexOf(f):f;return{coordinate:a(m)+u,value:f,offset:u}});return d.filter(function(f){return!Hd(f.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(f,m){return{coordinate:a(f)+u,value:f,index:m,offset:u}}):a.ticks&&!n?a.ticks(t.tickCount).map(function(f){return{coordinate:a(f)+u,value:f,offset:u}}):a.domain().map(function(f,m){return{coordinate:a(f)+u,value:i?i[f]:f,index:m,offset:u}})},sj=new WeakMap,fg=function(t,r){if(typeof r!="function")return t;sj.has(t)||sj.set(t,new WeakMap);var n=sj.get(t);if(n.has(r))return n.get(r);var a=function(){t.apply(void 0,arguments),r.apply(void 0,arguments)};return n.set(r,a),a},qF=function(t,r,n){var a=t.scale,i=t.type,o=t.layout,l=t.axisType;if(a==="auto")return o==="radial"&&l==="radiusAxis"?{scale:eh(),realScaleType:"band"}:o==="radial"&&l==="angleAxis"?{scale:tx(),realScaleType:"linear"}:i==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!n)?{scale:am(),realScaleType:"point"}:i==="category"?{scale:eh(),realScaleType:"band"}:{scale:tx(),realScaleType:"linear"};if(mp(a)){var c="scale".concat(e0(a));return{scale:(__[c]||am)(),realScaleType:__[c]?c:"point"}}return We(a)?{scale:a}:{scale:am(),realScaleType:"point"}},F_=1e-4,HF=function(t){var r=t.domain();if(!(!r||r.length<=2)){var n=r.length,a=t.range(),i=Math.min(a[0],a[1])-F_,o=Math.max(a[0],a[1])+F_,l=t(r[0]),c=t(r[n-1]);(l<i||l>o||c<i||c>o)&&t.domain([r[0],r[n-1]])}},pve=function(t,r){if(!t)return null;for(var n=0,a=t.length;n<a;n++)if(t[n].item===r)return t[n].position;return null},gve=function(t,r){if(!r||r.length!==2||!se(r[0])||!se(r[1]))return t;var n=Math.min(r[0],r[1]),a=Math.max(r[0],r[1]),i=[t[0],t[1]];return(!se(t[0])||t[0]<n)&&(i[0]=n),(!se(t[1])||t[1]>a)&&(i[1]=a),i[0]>a&&(i[0]=a),i[1]<n&&(i[1]=n),i},vve=function(t){var r=t.length;if(!(r<=0))for(var n=0,a=t[0].length;n<a;++n)for(var i=0,o=0,l=0;l<r;++l){var c=Hd(t[l][n][1])?t[l][n][0]:t[l][n][1];c>=0?(t[l][n][0]=i,t[l][n][1]=i+c,i=t[l][n][1]):(t[l][n][0]=o,t[l][n][1]=o+c,o=t[l][n][1])}},xve=function(t){var r=t.length;if(!(r<=0))for(var n=0,a=t[0].length;n<a;++n)for(var i=0,o=0;o<r;++o){var l=Hd(t[o][n][1])?t[o][n][0]:t[o][n][1];l>=0?(t[o][n][0]=i,t[o][n][1]=i+l,i=t[o][n][1]):(t[o][n][0]=0,t[o][n][1]=0)}},yve={sign:vve,expand:Lne,none:Ku,silhouette:Fne,wiggle:Vne,positive:xve},bve=function(t,r,n){var a=r.map(function(l){return l.props.dataKey}),i=yve[n],o=$ne().keys(a).value(function(l,c){return+wr(l,c,0)}).order(mw).offset(i);return o(t)},jve=function(t,r,n,a,i,o){if(!t)return null;var l=o?r.reverse():r,c={},u=l.reduce(function(f,m){var p,v=(p=m.type)!==null&&p!==void 0&&p.defaultProps?sr(sr({},m.type.defaultProps),m.props):m.props,h=v.stackId,x=v.hide;if(x)return f;var y=v[n],g=f[y]||{hasStack:!1,stackGroups:{}};if(Sr(h)){var j=g.stackGroups[h]||{numericAxisId:n,cateAxisId:a,items:[]};j.items.push(m),g.hasStack=!0,g.stackGroups[h]=j}else g.stackGroups[Gd("_stackId_")]={numericAxisId:n,cateAxisId:a,items:[m]};return sr(sr({},f),{},gu({},y,g))},c),d={};return Object.keys(u).reduce(function(f,m){var p=u[m];if(p.hasStack){var v={};p.stackGroups=Object.keys(p.stackGroups).reduce(function(h,x){var y=p.stackGroups[x];return sr(sr({},h),{},gu({},x,{numericAxisId:n,cateAxisId:a,items:y.items,stackedData:bve(t,y.items,i)}))},v)}return sr(sr({},f),{},gu({},m,p))},d)},GF=function(t,r){var n=r.realScaleType,a=r.type,i=r.tickCount,o=r.originalDomain,l=r.allowDecimals,c=n||r.scale;if(c!=="auto"&&c!=="linear")return null;if(i&&a==="number"&&o&&(o[0]==="auto"||o[1]==="auto")){var u=t.domain();if(!u.length)return null;var d=Rge(u,i,l);return t.domain([h0(d),oo(d)]),{niceTicks:d}}if(i&&a==="number"){var f=t.domain(),m=Ige(f,i,l);return{niceTicks:m}}return null};function V_(e){var t=e.axis,r=e.ticks,n=e.bandSize,a=e.entry,i=e.index,o=e.dataKey;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!et(a[t.dataKey])){var l=Dv(r,"value",a[t.dataKey]);if(l)return l.coordinate+n/2}return r[i]?r[i].coordinate+n/2:null}var c=wr(a,et(o)?t.dataKey:o);return et(c)?null:t.scale(c)}var z_=function(t){var r=t.axis,n=t.ticks,a=t.offset,i=t.bandSize,o=t.entry,l=t.index;if(r.type==="category")return n[l]?n[l].coordinate+a:null;var c=wr(o,r.dataKey,r.domain[l]);return et(c)?null:r.scale(c)-i/2+a},wve=function(t){var r=t.numericAxis,n=r.scale.domain();if(r.type==="number"){var a=Math.min(n[0],n[1]),i=Math.max(n[0],n[1]);return a<=0&&i>=0?0:i<0?i:a}return n[0]},Nve=function(t,r){var n,a=(n=t.type)!==null&&n!==void 0&&n.defaultProps?sr(sr({},t.type.defaultProps),t.props):t.props,i=a.stackId;if(Sr(i)){var o=r[i];if(o){var l=o.items.indexOf(t);return l>=0?o.stackedData[l]:null}}return null},Sve=function(t){return t.reduce(function(r,n){return[h0(n.concat([r[0]]).filter(se)),oo(n.concat([r[1]]).filter(se))]},[1/0,-1/0])},KF=function(t,r,n){return Object.keys(t).reduce(function(a,i){var o=t[i],l=o.stackedData,c=l.reduce(function(u,d){var f=Sve(d.slice(r,n+1));return[Math.min(u[0],f[0]),Math.max(u[1],f[1])]},[1/0,-1/0]);return[Math.min(c[0],a[0]),Math.max(c[1],a[1])]},[1/0,-1/0]).map(function(a){return a===1/0||a===-1/0?0:a})},B_=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,U_=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Uw=function(t,r,n){if(We(t))return t(r,n);if(!Array.isArray(t))return r;var a=[];if(se(t[0]))a[0]=n?t[0]:Math.min(t[0],r[0]);else if(B_.test(t[0])){var i=+B_.exec(t[0])[1];a[0]=r[0]-i}else We(t[0])?a[0]=t[0](r[0]):a[0]=r[0];if(se(t[1]))a[1]=n?t[1]:Math.max(t[1],r[1]);else if(U_.test(t[1])){var o=+U_.exec(t[1])[1];a[1]=r[1]+o}else We(t[1])?a[1]=t[1](r[1]):a[1]=r[1];return a},lx=function(t,r,n){if(t&&t.scale&&t.scale.bandwidth){var a=t.scale.bandwidth();if(!n||a>0)return a}if(t&&r&&r.length>=2){for(var i=hP(r,function(f){return f.coordinate}),o=1/0,l=1,c=i.length;l<c;l++){var u=i[l],d=i[l-1];o=Math.min((u.coordinate||0)-(d.coordinate||0),o)}return o===1/0?0:o}return n?void 0:0},W_=function(t,r,n){return!t||!t.length||rd(t,qn(n,"type.defaultProps.domain"))?r:t},XF=function(t,r){var n=t.type.defaultProps?sr(sr({},t.type.defaultProps),t.props):t.props,a=n.dataKey,i=n.name,o=n.unit,l=n.formatter,c=n.tooltipType,u=n.chartType,d=n.hide;return sr(sr({},$e(t,!1)),{},{dataKey:a,unit:o,formatter:l,name:i||a,color:VP(t),value:wr(r,a),type:c,payload:r,chartType:u,hide:d})};function ch(e){"@babel/helpers - typeof";return ch=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},ch(e)}function q_(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Us(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?q_(Object(r),!0).forEach(function(n){YF(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):q_(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function YF(e,t,r){return t=Pve(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Pve(e){var t=Cve(e,"string");return ch(t)=="symbol"?t:t+""}function Cve(e,t){if(ch(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(ch(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ave(e,t){return _ve(e)||Ove(e,t)||Eve(e,t)||Tve()}function Tve(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 679In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Eve(e,t){if(e){if(typeof e=="string")return H_(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return H_(e,t)}}function H_(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Ove(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,a,i,o,l=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,t!==0)for(;!(c=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(d){u=!0,a=d}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}function _ve(e){if(Array.isArray(e))return e}var cx=Math.PI/180,kve=function(t){return t*180/Math.PI},_t=function(t,r,n,a){return{x:t+Math.cos(-cx*a)*n,y:r+Math.sin(-cx*a)*n}},ZF=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(t-(n.left||0)-(n.right||0)),Math.abs(r-(n.top||0)-(n.bottom||0)))/2},Mve=function(t,r,n,a,i){var o=t.width,l=t.height,c=t.startAngle,u=t.endAngle,d=gn(t.cx,o,o/2),f=gn(t.cy,l,l/2),m=ZF(o,l,n),p=gn(t.innerRadius,m,0),v=gn(t.outerRadius,m,m*.8),h=Object.keys(r);return h.reduce(function(x,y){var g=r[y],j=g.domain,S=g.reversed,w;if(et(g.range))a==="angleAxis"?w=[c,u]:a==="radiusAxis"&&(w=[p,v]),S&&(w=[w[1],w[0]]);else{w=g.range;var N=w,P=Ave(N,2);c=P[0],u=P[1]}var C=qF(g,i),A=C.realScaleType,O=C.scale;O.domain(j).range(w),HF(O);var E=GF(O,Us(Us({},g),{},{realScaleType:A})),k=Us(Us(Us({},g),E),{},{range:w,radius:v,realScaleType:A,scale:O,cx:d,cy:f,innerRadius:p,outerRadius:v,startAngle:c,endAngle:u});return Us(Us({},x),{},YF({},y,k))},{})},Dve=function(t,r){var n=t.x,a=t.y,i=r.x,o=r.y;return Math.sqrt(Math.pow(n-i,2)+Math.pow(a-o,2))},Rve=function(t,r){var n=t.x,a=t.y,i=r.cx,o=r.cy,l=Dve({x:n,y:a},{x:i,y:o});if(l<=0)return{radius:l};var c=(n-i)/l,u=Math.acos(c);return a>o&&(u=2*Math.PI-u),{radius:l,angle:kve(u),angleInRadian:u}},Ive=function(t){var r=t.startAngle,n=t.endAngle,a=Math.floor(r/360),i=Math.floor(n/360),o=Math.min(a,i);return{startAngle:r-o*360,endAngle:n-o*360}},$ve=function(t,r){var n=r.startAngle,a=r.endAngle,i=Math.floor(n/360),o=Math.floor(a/360),l=Math.min(i,o);return t+l*360},G_=function(t,r){var n=t.x,a=t.y,i=Rve({x:n,y:a},r),o=i.radius,l=i.angle,c=r.innerRadius,u=r.outerRadius;if(o<c||o>u)return!1;if(o===0)return!0;var d=Ive(r),f=d.startAngle,m=d.endAngle,p=l,v;if(f<=m){for(;p>m;)p-=360;for(;p<f;)p+=360;v=p>=f&&p<=m}else{for(;p>f;)p-=360;for(;p<m;)p+=360;v=p>=m&&p<=f}return v?Us(Us({},r),{},{radius:o,angle:$ve(p,r)}):null},QF=function(t){return!b.isValidElement(t)&&!We(t)&&typeof t!="boolean"?t.className:""};function uh(e){"@babel/helpers - typeof";return uh=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},uh(e)}var Lve=["offset"];function Fve(e){return Uve(e)||Bve(e)||zve(e)||Vve()}function Vve(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 680In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function zve(e,t){if(e){if(typeof e=="string")return Ww(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ww(e,t)}}function Bve(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Uve(e){if(Array.isArray(e))return Ww(e)}function Ww(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Wve(e,t){if(e==null)return{};var r=qve(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function qve(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function K_(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function vr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?K_(Object(r),!0).forEach(function(n){Hve(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):K_(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Hve(e,t,r){return t=Gve(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Gve(e){var t=Kve(e,"string");return uh(t)=="symbol"?t:t+""}function Kve(e,t){if(uh(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(uh(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function dh(){return dh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},dh.apply(this,arguments)}var Xve=function(t){var r=t.value,n=t.formatter,a=et(t.children)?r:t.children;return We(n)?n(a):a},Yve=function(t,r){var n=pn(r-t),a=Math.min(Math.abs(r-t),360);return n*a},Zve=function(t,r,n){var a=t.position,i=t.viewBox,o=t.offset,l=t.className,c=i,u=c.cx,d=c.cy,f=c.innerRadius,m=c.outerRadius,p=c.startAngle,v=c.endAngle,h=c.clockWise,x=(f+m)/2,y=Yve(p,v),g=y>=0?1:-1,j,S;a==="insideStart"?(j=p+g*o,S=h):a==="insideEnd"?(j=v-g*o,S=!h):a==="end"&&(j=v+g*o,S=h),S=y<=0?S:!S;var w=_t(u,d,x,j),N=_t(u,d,x,j+(S?1:-1)*359),P="M".concat(w.x,",").concat(w.y,` 681 A`).concat(x,",").concat(x,",0,1,").concat(S?0:1,`, 682 `).concat(N.x,",").concat(N.y),C=et(t.id)?Gd("recharts-radial-line-"):t.id;return _.createElement("text",dh({},n,{dominantBaseline:"central",className:rt("recharts-radial-bar-label",l)}),_.createElement("defs",null,_.createElement("path",{id:C,d:P})),_.createElement("textPath",{xlinkHref:"#".concat(C)},r))},Qve=function(t){var r=t.viewBox,n=t.offset,a=t.position,i=r,o=i.cx,l=i.cy,c=i.innerRadius,u=i.outerRadius,d=i.startAngle,f=i.endAngle,m=(d+f)/2;if(a==="outside"){var p=_t(o,l,u+n,m),v=p.x,h=p.y;return{x:v,y:h,textAnchor:v>=o?"start":"end",verticalAnchor:"middle"}}if(a==="center")return{x:o,y:l,textAnchor:"middle",verticalAnchor:"middle"};if(a==="centerTop")return{x:o,y:l,textAnchor:"middle",verticalAnchor:"start"};if(a==="centerBottom")return{x:o,y:l,textAnchor:"middle",verticalAnchor:"end"};var x=(c+u)/2,y=_t(o,l,x,m),g=y.x,j=y.y;return{x:g,y:j,textAnchor:"middle",verticalAnchor:"middle"}},Jve=function(t){var r=t.viewBox,n=t.parentViewBox,a=t.offset,i=t.position,o=r,l=o.x,c=o.y,u=o.width,d=o.height,f=d>=0?1:-1,m=f*a,p=f>0?"end":"start",v=f>0?"start":"end",h=u>=0?1:-1,x=h*a,y=h>0?"end":"start",g=h>0?"start":"end";if(i==="top"){var j={x:l+u/2,y:c-f*a,textAnchor:"middle",verticalAnchor:p};return vr(vr({},j),n?{height:Math.max(c-n.y,0),width:u}:{})}if(i==="bottom"){var S={x:l+u/2,y:c+d+m,textAnchor:"middle",verticalAnchor:v};return vr(vr({},S),n?{height:Math.max(n.y+n.height-(c+d),0),width:u}:{})}if(i==="left"){var w={x:l-x,y:c+d/2,textAnchor:y,verticalAnchor:"middle"};return vr(vr({},w),n?{width:Math.max(w.x-n.x,0),height:d}:{})}if(i==="right"){var N={x:l+u+x,y:c+d/2,textAnchor:g,verticalAnchor:"middle"};return vr(vr({},N),n?{width:Math.max(n.x+n.width-N.x,0),height:d}:{})}var P=n?{width:u,height:d}:{};return i==="insideLeft"?vr({x:l+x,y:c+d/2,textAnchor:g,verticalAnchor:"middle"},P):i==="insideRight"?vr({x:l+u-x,y:c+d/2,textAnchor:y,verticalAnchor:"middle"},P):i==="insideTop"?vr({x:l+u/2,y:c+m,textAnchor:"middle",verticalAnchor:v},P):i==="insideBottom"?vr({x:l+u/2,y:c+d-m,textAnchor:"middle",verticalAnchor:p},P):i==="insideTopLeft"?vr({x:l+x,y:c+m,textAnchor:g,verticalAnchor:v},P):i==="insideTopRight"?vr({x:l+u-x,y:c+m,textAnchor:y,verticalAnchor:v},P):i==="insideBottomLeft"?vr({x:l+x,y:c+d-m,textAnchor:g,verticalAnchor:p},P):i==="insideBottomRight"?vr({x:l+u-x,y:c+d-m,textAnchor:y,verticalAnchor:p},P):Bd(i)&&(se(i.x)||ml(i.x))&&(se(i.y)||ml(i.y))?vr({x:l+gn(i.x,u),y:c+gn(i.y,d),textAnchor:"end",verticalAnchor:"end"},P):vr({x:l+u/2,y:c+d/2,textAnchor:"middle",verticalAnchor:"middle"},P)},exe=function(t){return"cx"in t&&se(t.cx)};function Or(e){var t=e.offset,r=t===void 0?5:t,n=Wve(e,Lve),a=vr({offset:r},n),i=a.viewBox,o=a.position,l=a.value,c=a.children,u=a.content,d=a.className,f=d===void 0?"":d,m=a.textBreakAll;if(!i||et(l)&&et(c)&&!b.isValidElement(u)&&!We(u))return null;if(b.isValidElement(u))return b.cloneElement(u,a);var p;if(We(u)){if(p=b.createElement(u,a),b.isValidElement(p))return p}else p=Xve(a);var v=exe(i),h=$e(a,!0);if(v&&(o==="insideStart"||o==="insideEnd"||o==="end"))return Zve(a,p,h);var x=v?Qve(a):Jve(a);return _.createElement(Gl,dh({className:rt("recharts-label",f)},h,x,{breakAll:m}),p)}Or.displayName="Label";var JF=function(t){var r=t.cx,n=t.cy,a=t.angle,i=t.startAngle,o=t.endAngle,l=t.r,c=t.radius,u=t.innerRadius,d=t.outerRadius,f=t.x,m=t.y,p=t.top,v=t.left,h=t.width,x=t.height,y=t.clockWise,g=t.labelViewBox;if(g)return g;if(se(h)&&se(x)){if(se(f)&&se(m))return{x:f,y:m,width:h,height:x};if(se(p)&&se(v))return{x:p,y:v,width:h,height:x}}return se(f)&&se(m)?{x:f,y:m,width:0,height:0}:se(r)&&se(n)?{cx:r,cy:n,startAngle:i||a||0,endAngle:o||a||0,innerRadius:u||0,outerRadius:d||c||l||0,clockWise:y}:t.viewBox?t.viewBox:{}},txe=function(t,r){return t?t===!0?_.createElement(Or,{key:"label-implicit",viewBox:r}):Sr(t)?_.createElement(Or,{key:"label-implicit",viewBox:r,value:t}):b.isValidElement(t)?t.type===Or?b.cloneElement(t,{key:"label-implicit",viewBox:r}):_.createElement(Or,{key:"label-implicit",content:t,viewBox:r}):We(t)?_.createElement(Or,{key:"label-implicit",content:t,viewBox:r}):Bd(t)?_.createElement(Or,dh({viewBox:r},t,{key:"label-implicit"})):null:null},rxe=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!t||!t.children&&n&&!t.label)return null;var a=t.children,i=JF(t),o=pa(a,Or).map(function(c,u){return b.cloneElement(c,{viewBox:r||i,key:"label-".concat(u)})});if(!n)return o;var l=txe(t.label,r||i);return[l].concat(Fve(o))};Or.parseViewBox=JF;Or.renderCallByParent=rxe;function nxe(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var axe=nxe;const sxe=bt(axe);function fh(e){"@babel/helpers - typeof";return fh=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},fh(e)}var ixe=["valueAccessor"],oxe=["data","dataKey","clockWise","id","textBreakAll"];function lxe(e){return fxe(e)||dxe(e)||uxe(e)||cxe()}function cxe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 683In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function uxe(e,t){if(e){if(typeof e=="string")return qw(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return qw(e,t)}}function dxe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function fxe(e){if(Array.isArray(e))return qw(e)}function qw(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function ux(){return ux=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ux.apply(this,arguments)}function X_(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Y_(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?X_(Object(r),!0).forEach(function(n){mxe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):X_(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function mxe(e,t,r){return t=hxe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function hxe(e){var t=pxe(e,"string");return fh(t)=="symbol"?t:t+""}function pxe(e,t){if(fh(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(fh(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Z_(e,t){if(e==null)return{};var r=gxe(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function gxe(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var vxe=function(t){return Array.isArray(t.value)?sxe(t.value):t.value};function ni(e){var t=e.valueAccessor,r=t===void 0?vxe:t,n=Z_(e,ixe),a=n.data,i=n.dataKey,o=n.clockWise,l=n.id,c=n.textBreakAll,u=Z_(n,oxe);return!a||!a.length?null:_.createElement(ut,{className:"recharts-label-list"},a.map(function(d,f){var m=et(i)?r(d,f):wr(d&&d.payload,i),p=et(l)?{}:{id:"".concat(l,"-").concat(f)};return _.createElement(Or,ux({},$e(d,!0),u,p,{parentViewBox:d.parentViewBox,value:m,textBreakAll:c,viewBox:Or.parseViewBox(et(o)?d:Y_(Y_({},d),{},{clockWise:o})),key:"label-".concat(f),index:f}))}))}ni.displayName="LabelList";function xxe(e,t){return e?e===!0?_.createElement(ni,{key:"labelList-implicit",data:t}):_.isValidElement(e)||We(e)?_.createElement(ni,{key:"labelList-implicit",data:t,content:e}):Bd(e)?_.createElement(ni,ux({data:t},e,{key:"labelList-implicit"})):null:null}function yxe(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&r&&!e.label)return null;var n=e.children,a=pa(n,ni).map(function(o,l){return b.cloneElement(o,{data:t,key:"labelList-".concat(l)})});if(!r)return a;var i=xxe(e.label,t);return[i].concat(lxe(a))}ni.renderCallByParent=yxe;function mh(e){"@babel/helpers - typeof";return mh=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},mh(e)}function Hw(){return Hw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Hw.apply(this,arguments)}function Q_(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function J_(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Q_(Object(r),!0).forEach(function(n){bxe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Q_(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function bxe(e,t,r){return t=jxe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function jxe(e){var t=wxe(e,"string");return mh(t)=="symbol"?t:t+""}function wxe(e,t){if(mh(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(mh(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Nxe=function(t,r){var n=pn(r-t),a=Math.min(Math.abs(r-t),359.999);return n*a},mg=function(t){var r=t.cx,n=t.cy,a=t.radius,i=t.angle,o=t.sign,l=t.isExternal,c=t.cornerRadius,u=t.cornerIsExternal,d=c*(l?1:-1)+a,f=Math.asin(c/d)/cx,m=u?i:i+o*f,p=_t(r,n,d,m),v=_t(r,n,a,m),h=u?i-o*f:i,x=_t(r,n,d*Math.cos(f*cx),h);return{center:p,circleTangency:v,lineTangency:x,theta:f}},e6=function(t){var r=t.cx,n=t.cy,a=t.innerRadius,i=t.outerRadius,o=t.startAngle,l=t.endAngle,c=Nxe(o,l),u=o+c,d=_t(r,n,i,o),f=_t(r,n,i,u),m="M ".concat(d.x,",").concat(d.y,` 684 A `).concat(i,",").concat(i,`,0, 685 `).concat(+(Math.abs(c)>180),",").concat(+(o>u),`, 686 `).concat(f.x,",").concat(f.y,` 687 `);if(a>0){var p=_t(r,n,a,o),v=_t(r,n,a,u);m+="L ".concat(v.x,",").concat(v.y,` 688 A `).concat(a,",").concat(a,`,0, 689 `).concat(+(Math.abs(c)>180),",").concat(+(o<=u),`, 690 `).concat(p.x,",").concat(p.y," Z")}else m+="L ".concat(r,",").concat(n," Z");return m},Sxe=function(t){var r=t.cx,n=t.cy,a=t.innerRadius,i=t.outerRadius,o=t.cornerRadius,l=t.forceCornerRadius,c=t.cornerIsExternal,u=t.startAngle,d=t.endAngle,f=pn(d-u),m=mg({cx:r,cy:n,radius:i,angle:u,sign:f,cornerRadius:o,cornerIsExternal:c}),p=m.circleTangency,v=m.lineTangency,h=m.theta,x=mg({cx:r,cy:n,radius:i,angle:d,sign:-f,cornerRadius:o,cornerIsExternal:c}),y=x.circleTangency,g=x.lineTangency,j=x.theta,S=c?Math.abs(u-d):Math.abs(u-d)-h-j;if(S<0)return l?"M ".concat(v.x,",").concat(v.y,` 691 a`).concat(o,",").concat(o,",0,0,1,").concat(o*2,`,0 692 a`).concat(o,",").concat(o,",0,0,1,").concat(-o*2,`,0 693 `):e6({cx:r,cy:n,innerRadius:a,outerRadius:i,startAngle:u,endAngle:d});var w="M ".concat(v.x,",").concat(v.y,` 694 A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(p.x,",").concat(p.y,` 695 A`).concat(i,",").concat(i,",0,").concat(+(S>180),",").concat(+(f<0),",").concat(y.x,",").concat(y.y,` 696 A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(g.x,",").concat(g.y,` 697 `);if(a>0){var N=mg({cx:r,cy:n,radius:a,angle:u,sign:f,isExternal:!0,cornerRadius:o,cornerIsExternal:c}),P=N.circleTangency,C=N.lineTangency,A=N.theta,O=mg({cx:r,cy:n,radius:a,angle:d,sign:-f,isExternal:!0,cornerRadius:o,cornerIsExternal:c}),E=O.circleTangency,k=O.lineTangency,M=O.theta,D=c?Math.abs(u-d):Math.abs(u-d)-A-M;if(D<0&&o===0)return"".concat(w,"L").concat(r,",").concat(n,"Z");w+="L".concat(k.x,",").concat(k.y,` 698 A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(E.x,",").concat(E.y,` 699 A`).concat(a,",").concat(a,",0,").concat(+(D>180),",").concat(+(f>0),",").concat(P.x,",").concat(P.y,` 700 A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(C.x,",").concat(C.y,"Z")}else w+="L".concat(r,",").concat(n,"Z");return w},Pxe={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},t6=function(t){var r=J_(J_({},Pxe),t),n=r.cx,a=r.cy,i=r.innerRadius,o=r.outerRadius,l=r.cornerRadius,c=r.forceCornerRadius,u=r.cornerIsExternal,d=r.startAngle,f=r.endAngle,m=r.className;if(o<i||d===f)return null;var p=rt("recharts-sector",m),v=o-i,h=gn(l,v,0,!0),x;return h>0&&Math.abs(d-f)<360?x=Sxe({cx:n,cy:a,innerRadius:i,outerRadius:o,cornerRadius:Math.min(h,v/2),forceCornerRadius:c,cornerIsExternal:u,startAngle:d,endAngle:f}):x=e6({cx:n,cy:a,innerRadius:i,outerRadius:o,startAngle:d,endAngle:f}),_.createElement("path",Hw({},$e(r,!0),{className:p,d:x,role:"img"}))};function hh(e){"@babel/helpers - typeof";return hh=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},hh(e)}function Gw(){return Gw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Gw.apply(this,arguments)}function ek(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function tk(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ek(Object(r),!0).forEach(function(n){Cxe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ek(Object(r)).forEac
700h(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Cxe(e,t,r){return t=Axe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Axe(e){var t=Txe(e,"string");return hh(t)=="symbol"?t:t+""}function Txe(e,t){if(hh(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(hh(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var rk={curveBasisClosed:Cne,curveBasisOpen:Ane,curveBasis:Pne,curveBumpX:dne,curveBumpY:fne,curveLinearClosed:Tne,curveLinear:r0,curveMonotoneX:Ene,curveMonotoneY:One,curveNatural:_ne,curveStep:kne,curveStepAfter:Dne,curveStepBefore:Mne},hg=function(t){return t.x===+t.x&&t.y===+t.y},wf=function(t){return t.x},Nf=function(t){return t.y},Exe=function(t,r){if(We(t))return t;var n="curve".concat(e0(t));return(n==="curveMonotone"||n==="curveBump")&&r?rk["".concat(n).concat(r==="vertical"?"Y":"X")]:rk[n]||r0},Oxe=function(t){var r=t.type,n=r===void 0?"linear":r,a=t.points,i=a===void 0?[]:a,o=t.baseLine,l=t.layout,c=t.connectNulls,u=c===void 0?!1:c,d=Exe(n,l),f=u?i.filter(function(h){return hg(h)}):i,m;if(Array.isArray(o)){var p=u?o.filter(function(h){return hg(h)}):o,v=f.map(function(h,x){return tk(tk({},h),{},{base:p[x]})});return l==="vertical"?m=ag().y(Nf).x1(wf).x0(function(h){return h.base.x}):m=ag().x(wf).y1(Nf).y0(function(h){return h.base.y}),m.defined(hg).curve(d),m(v)}return l==="vertical"&&se(o)?m=ag().y(Nf).x1(wf).x0(o):se(o)?m=ag().x(wf).y1(Nf).y0(o):m=X3().x(wf).y(Nf),m.defined(hg).curve(d),m(f)},vu=function(t){var r=t.className,n=t.points,a=t.path,i=t.pathRef;if((!n||!n.length)&&!a)return null;var o=n&&n.length?Oxe(t):a;return _.createElement("path",Gw({},$e(t,!1),Rv(t),{className:rt("recharts-curve",r),d:o,ref:i}))},r6={exports:{}},_xe="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",kxe=_xe,Mxe=kxe;function n6(){}function a6(){}a6.resetWarningCache=n6;var Dxe=function(){function e(n,a,i,o,l,c){if(c!==Mxe){var u=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 u.name="Invariant Violation",u}}e.isRequired=e;function t(){return e}var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a6,resetWarningCache:n6};return r.PropTypes=r,r};r6.exports=Dxe();var Rxe=r6.exports;const pt=bt(Rxe);var Ixe=Object.getOwnPropertyNames,$xe=Object.getOwnPropertySymbols,Lxe=Object.prototype.hasOwnProperty;function nk(e,t){return function(n,a,i){return e(n,a,i)&&t(n,a,i)}}function pg(e){return function(r,n,a){if(!r||!n||typeof r!="object"||typeof n!="object")return e(r,n,a);var i=a.cache,o=i.get(r),l=i.get(n);if(o&&l)return o===n&&l===r;i.set(r,n),i.set(n,r);var c=e(r,n,a);return i.delete(r),i.delete(n),c}}function ak(e){return Ixe(e).concat($xe(e))}var Fxe=Object.hasOwn||function(e,t){return Lxe.call(e,t)};function dc(e,t){return e===t||!e&&!t&&e!==e&&t!==t}var Vxe="__v",zxe="__o",Bxe="_owner",sk=Object.getOwnPropertyDescriptor,ik=Object.keys;function Uxe(e,t,r){var n=e.length;if(t.length!==n)return!1;for(;n-- >0;)if(!r.equals(e[n],t[n],n,n,e,t,r))return!1;return!0}function Wxe(e,t){return dc(e.getTime(),t.getTime())}function qxe(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function Hxe(e,t){return e===t}function ok(e,t,r){var n=e.size;if(n!==t.size)return!1;if(!n)return!0;for(var a=new Array(n),i=e.entries(),o,l,c=0;(o=i.next())&&!o.done;){for(var u=t.entries(),d=!1,f=0;(l=u.next())&&!l.done;){if(a[f]){f++;continue}var m=o.value,p=l.value;if(r.equals(m[0],p[0],c,f,e,t,r)&&r.equals(m[1],p[1],m[0],p[0],e,t,r)){d=a[f]=!0;break}f++}if(!d)return!1;c++}return!0}var Gxe=dc;function Kxe(e,t,r){var n=ik(e),a=n.length;if(ik(t).length!==a)return!1;for(;a-- >0;)if(!s6(e,t,r,n[a]))return!1;return!0}function Sf(e,t,r){var n=ak(e),a=n.length;if(ak(t).length!==a)return!1;for(var i,o,l;a-- >0;)if(i=n[a],!s6(e,t,r,i)||(o=sk(e,i),l=sk(t,i),(o||l)&&(!o||!l||o.configurable!==l.configurable||o.enumerable!==l.enumerable||o.writable!==l.writable)))return!1;return!0}function Xxe(e,t){return dc(e.valueOf(),t.valueOf())}function Yxe(e,t){return e.source===t.source&&e.flags===t.flags}function lk(e,t,r){var n=e.size;if(n!==t.size)return!1;if(!n)return!0;for(var a=new Array(n),i=e.values(),o,l;(o=i.next())&&!o.done;){for(var c=t.values(),u=!1,d=0;(l=c.next())&&!l.done;){if(!a[d]&&r.equals(o.value,l.value,o.value,l.value,e,t,r)){u=a[d]=!0;break}d++}if(!u)return!1}return!0}function Zxe(e,t){var r=e.length;if(t.length!==r)return!1;for(;r-- >0;)if(e[r]!==t[r])return!1;return!0}function Qxe(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 s6(e,t,r,n){return(n===Bxe||n===zxe||n===Vxe)&&(e.$$typeof||t.$$typeof)?!0:Fxe(t,n)&&r.equals(e[n],t[n],n,n,e,t,r)}var Jxe="[object Arguments]",eye="[object Boolean]",tye="[object Date]",rye="[object Error]",nye="[object Map]",aye="[object Number]",
700sye="[object Object]",iye="[object RegExp]",oye="[object Set]",lye="[object String]",cye="[object URL]",uye=Array.isArray,ck=typeof ArrayBuffer=="function"&&ArrayBuffer.isView?ArrayBuffer.isView:null,uk=Object.assign,dye=Object.prototype.toString.call.bind(Object.prototype.toString);function fye(e){var t=e.areArraysEqual,r=e.areDatesEqual,n=e.areErrorsEqual,a=e.areFunctionsEqual,i=e.areMapsEqual,o=e.areNumbersEqual,l=e.areObjectsEqual,c=e.arePrimitiveWrappersEqual,u=e.areRegExpsEqual,d=e.areSetsEqual,f=e.areTypedArraysEqual,m=e.areUrlsEqual;return function(v,h,x){if(v===h)return!0;if(v==null||h==null)return!1;var y=typeof v;if(y!==typeof h)return!1;if(y!=="object")return y==="number"?o(v,h,x):y==="function"?a(v,h,x):!1;var g=v.constructor;if(g!==h.constructor)return!1;if(g===Object)return l(v,h,x);if(uye(v))return t(v,h,x);if(ck!=null&&ck(v))return f(v,h,x);if(g===Date)return r(v,h,x);if(g===RegExp)return u(v,h,x);if(g===Map)return i(v,h,x);if(g===Set)return d(v,h,x);var j=dye(v);return j===tye?r(v,h,x):j===iye?u(v,h,x):j===nye?i(v,h,x):j===oye?d(v,h,x):j===sye?typeof v.then!="function"&&typeof h.then!="function"&&l(v,h,x):j===cye?m(v,h,x):j===rye?n(v,h,x):j===Jxe?l(v,h,x):j===eye||j===aye||j===lye?c(v,h,x):!1}}function mye(e){var t=e.circular,r=e.createCustomConfig,n=e.strict,a={areArraysEqual:n?Sf:Uxe,areDatesEqual:Wxe,areErrorsEqual:qxe,areFunctionsEqual:Hxe,areMapsEqual:n?nk(ok,Sf):ok,areNumbersEqual:Gxe,areObjectsEqual:n?Sf:Kxe,arePrimitiveWrappersEqual:Xxe,areRegExpsEqual:Yxe,areSetsEqual:n?nk(lk,Sf):lk,areTypedArraysEqual:n?Sf:Zxe,areUrlsEqual:Qxe};if(r&&(a=uk({},a,r(a))),t){var i=pg(a.areArraysEqual),o=pg(a.areMapsEqual),l=pg(a.areObjectsEqual),c=pg(a.areSetsEqual);a=uk({},a,{areArraysEqual:i,areMapsEqual:o,areObjectsEqual:l,areSetsEqual:c})}return a}function hye(e){return function(t,r,n,a,i,o,l){return e(t,r,l)}}function pye(e){var t=e.circular,r=e.comparator,n=e.createState,a=e.equals,i=e.strict;if(n)return function(c,u){var d=n(),f=d.cache,m=f===void 0?t?new WeakMap:void 0:f,p=d.meta;return r(c,u,{cache:m,equals:a,meta:p,strict:i})};if(t)return function(c,u){return r(c,u,{cache:new WeakMap,equals:a,meta:void 0,strict:i})};var o={cache:void 0,equals:a,meta:void 0,strict:i};return function(c,u){return r(c,u,o)}}var gye=qo();qo({strict:!0});qo({circular:!0});qo({circular:!0,strict:!0});qo({createInternalComparator:function(){return dc}});qo({strict:!0,createInternalComparator:function(){return dc}});qo({circular:!0,createInternalComparator:function(){return dc}});qo({circular:!0,createInternalComparator:function(){return dc},strict:!0});function qo(e){e===void 0&&(e={});var t=e.circular,r=t===void 0?!1:t,n=e.createInternalComparator,a=e.createState,i=e.strict,o=i===void 0?!1:i,l=mye(e),c=fye(l),u=n?n(c):hye(c);return pye({circular:r,comparator:c,createState:a,equals:u,strict:o})}function vye(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function dk(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=-1,n=function a(i){r<0&&(r=i),i-r>t?(e(i),r=-1):vye(a)};requestAnimationFrame(n)}function Kw(e){"@babel/helpers - typeof";return Kw=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},Kw(e)}function xye(e){return wye(e)||jye(e)||bye(e)||yye()}function yye(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 701In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function bye(e,t){if(e){if(typeof e=="string")return fk(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return fk(e,t)}}function fk(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function jye(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function wye(e){if(Array.isArray(e))return e}function Nye(){var e={},t=function(){return null},r=!1,n=function a(i){if(!r){if(Array.isArray(i)){if(!i.length)return;var o=i,l=xye(o),c=l[0],u=l.slice(1);if(typeof c=="number"){dk(a.bind(null,u),c);return}a(c),dk(a.bind(null,u));return}Kw(i)==="object"&&(e=i,t(e)),typeof i=="function"&&i()}};return{stop:function(){r=!0},start:function(i){r=!1,n(i)},subscribe:function(i){return t=i,function(){t=function(){return null}}}}}function ph(e){"@babel/helpers - typeof";return ph=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},ph(e)}function mk(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function hk(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};
vendor: 58,702 bytes, lines 701-719
701t%2?mk(Object(r),!0).forEach(function(n){i6(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):mk(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function i6(e,t,r){return t=Sye(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Sye(e){var t=Pye(e,"string");return ph(t)==="symbol"?t:String(t)}function Pye(e,t){if(ph(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(ph(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Cye=function(t,r){return[Object.keys(t),Object.keys(r)].reduce(function(n,a){return n.filter(function(i){return a.includes(i)})})},Aye=function(t){return t},Tye=function(t){return t.replace(/([A-Z])/g,function(r){return"-".concat(r.toLowerCase())})},im=function(t,r){return Object.keys(r).reduce(function(n,a){return hk(hk({},n),{},i6({},a,t(a,r[a])))},{})},pk=function(t,r,n){return t.map(function(a){return"".concat(Tye(a)," ").concat(r,"ms ").concat(n)}).join(",")};function Eye(e,t){return kye(e)||_ye(e,t)||o6(e,t)||Oye()}function Oye(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 702In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _ye(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,a,i,o,l=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,t!==0)for(;!(c=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(d){u=!0,a=d}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}function kye(e){if(Array.isArray(e))return e}function Mye(e){return Iye(e)||Rye(e)||o6(e)||Dye()}function Dye(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 703In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function o6(e,t){if(e){if(typeof e=="string")return Xw(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Xw(e,t)}}function Rye(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Iye(e){if(Array.isArray(e))return Xw(e)}function Xw(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var dx=1e-4,l6=function(t,r){return[0,3*t,3*r-6*t,3*t-3*r+1]},c6=function(t,r){return t.map(function(n,a){return n*Math.pow(r,a)}).reduce(function(n,a){return n+a})},gk=function(t,r){return function(n){var a=l6(t,r);return c6(a,n)}},$ye=function(t,r){return function(n){var a=l6(t,r),i=[].concat(Mye(a.map(function(o,l){return o*l}).slice(1)),[0]);return c6(i,n)}},vk=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var a=r[0],i=r[1],o=r[2],l=r[3];if(r.length===1)switch(r[0]){case"linear":a=0,i=0,o=1,l=1;break;case"ease":a=.25,i=.1,o=.25,l=1;break;case"ease-in":a=.42,i=0,o=1,l=1;break;case"ease-out":a=.42,i=0,o=.58,l=1;break;case"ease-in-out":a=0,i=0,o=.58,l=1;break;default:{var c=r[0].split("(");if(c[0]==="cubic-bezier"&&c[1].split(")")[0].split(",").length===4){var u=c[1].split(")")[0].split(",").map(function(x){return parseFloat(x)}),d=Eye(u,4);a=d[0],i=d[1],o=d[2],l=d[3]}}}var f=gk(a,o),m=gk(i,l),p=$ye(a,o),v=function(y){return y>1?1:y<0?0:y},h=function(y){for(var g=y>1?1:y,j=g,S=0;S<8;++S){var w=f(j)-g,N=p(j);if(Math.abs(w-g)<dx||N<dx)return m(j);j=v(j-w/N)}return m(j)};return h.isStepper=!1,h},Lye=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.stiff,n=r===void 0?100:r,a=t.damping,i=a===void 0?8:a,o=t.dt,l=o===void 0?17:o,c=function(d,f,m){var p=-(d-f)*n,v=m*i,h=m+(p-v)*l/1e3,x=m*l/1e3+d;return Math.abs(x-f)<dx&&Math.abs(h)<dx?[f,0]:[x,h]};return c.isStepper=!0,c.dt=l,c},Fye=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var a=r[0];if(typeof a=="string")switch(a){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return vk(a);case"spring":return Lye();default:if(a.split("(")[0]==="cubic-bezier")return vk(a)}return typeof a=="function"?a:null};function gh(e){"@babel/helpers - typeof";return gh=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},gh(e)}function xk(e){return Bye(e)||zye(e)||u6(e)||Vye()}function Vye(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 704In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function zye(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Bye(e){if(Array.isArray(e))return Zw(e)}function yk(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Ir(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?yk(Object(r),!0).forEach(function(n){Yw(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):yk(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Yw(e,t,r){return t=Uye(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Uye(e){var t=Wye(e,"string");return gh(t)==="symbol"?t:String(t)}function Wye(e,t){if(gh(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(gh(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function qye(e,t){return Kye(e)||Gye(e,t)||u6(e,t)||Hye()}function Hye(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 705In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function u6(e,t){if(e){if(typeof e=="string")return Zw(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Zw(e,t)}}function Zw(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Gye(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,a,i,o,l=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,t!==0)for(;!(c=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(d){u=!0,a=d}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}function Kye(e){if(Array.isArray(e))return e}var fx=function(t,r,n){return t+(r-t)*n},Qw=function(t){var r=t.from,n=t.to;return r!==n},Xye=function e(t,r,n){var a=im(function(i,o){if(Qw(o)){var l=t(o.from,o.to,o.velocity),c=qye(l,2),u=c[0],d=c[1];return Ir(Ir({},o),{},{from:u,velocity:d})}return o},r);return n<1?im(function(i,o){return Qw(o)?Ir(Ir({},o),{},{velocity:fx(o.velocity,a[i].velocity,n),from:fx(o.from,a[i].from,n)}):o},r):e(t,a,n-1)};const Yye=function(e,t,r,n,a){var i=Cye(e,t),o=i.reduce(function(x,y){return Ir(Ir({},x),{},Yw({},y,[e[y],t[y]]))},{}),l=i.reduce(function(x,y){return Ir(Ir({},x),{},Yw({},y,{from:e[y],velocity:0,to:t[y]}))},{}),c=-1,u,d,f=function(){return null},m=function(){return im(function(y,g){return g.from},l)},p=function(){return!Object.values(l).filter(Qw).length},v=function(y){u||(u=y);var g=y-u,j=g/r.dt;l=Xye(r,l,j),a(Ir(Ir(Ir({},e),t),m())),u=y,p()||(c=requestAnimationFrame(f))},h=function(y){d||(d=y);var g=(y-d)/n,j=im(function(w,N){return fx.apply(void 0,xk(N).concat([r(g)]))},o);if(a(Ir(Ir(Ir({},e),t),j)),g<1)c=requestAnimationFrame(f);else{var S=im(function(w,N){return fx.apply(void 0,xk(N).concat([r(1)]))},o);a(Ir(Ir(Ir({},e),t),S))}};return f=r.isStepper?v:h,function(){return requestAnimationFrame(f),function(){cancelAnimationFrame(c)}}};function ad(e){"@babel/helpers - typeof";return ad=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},ad(e)}var Zye=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function Qye(e,t){if(e==null)return{};var r=Jye(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Jye(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,i;for(i=0;i<n.length;i++)a=n[i],!(t.indexOf(a)>=0)&&(r[a]=e[a]);return r}function ij(e){return n0e(e)||r0e(e)||t0e(e)||e0e()}function e0e(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 706In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function t0e(e,t){if(e){if(typeof e=="string")return Jw(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Jw(e,t)}}function r0e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function n0e(e){if(Array.isArray(e))return Jw(e)}function Jw(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function bk(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Ca(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?bk(Object(r),!0).forEach(function(n){$f(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):bk(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function $f(e,t,r){return t=d6(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a0e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s0e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,d6(n.key),n)}}function i0e(e,t,r){return t&&s0e(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function d6(e){var t=o0e(e,"string");return ad(t)==="symbol"?t:String(t)}function o0e(e,t){if(ad(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(ad(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function l0e(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&&eN(e,t)}function eN(e,t){return eN=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},eN(e,t)}function c0e(e){var t=u0e();return function(){var n=mx(e),a;if(t){var i=mx(this).constructor;a=Reflect.construct(n,arguments,i)}else a=n.apply(this,arguments);return tN(this,a)}}function tN(e,t){if(t&&(ad(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return rN(e)}function rN(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function u0e(){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 mx(e){return mx=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},mx(e)}var Ts=function(e){l0e(r,e);var t=c0e(r);function r(n,a){var i;a0e(this,r),i=t.call(this,n,a);var o=i.props,l=o.isActive,c=o.attributeName,u=o.from,d=o.to,f=o.steps,m=o.children,p=o.duration;if(i.handleStyleChange=i.handleStyleChange.bind(rN(i)),i.changeStyle=i.changeStyle.bind(rN(i)),!l||p<=0)return i.state={style:{}},typeof m=="function"&&(i.state={style:d}),tN(i);if(f&&f.length)i.state={style:f[0].style};else if(u){if(typeof m=="function")return i.state={style:u},tN(i);i.state={style:c?$f({},c,u):u}}else i.state={style:{}};return i}return i0e(r,[{key:"componentDidMount",value:function(){var a=this.props,i=a.isActive,o=a.canBegin;this.mounted=!0,!(!i||!o)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(a){var i=this.props,o=i.isActive,l=i.canBegin,c=i.attributeName,u=i.shouldReAnimate,d=i.to,f=i.from,m=this.state.style;if(l){if(!o){var p={style:c?$f({},c,d):d};this.state&&m&&(c&&m[c]!==d||!c&&m!==d)&&this.setState(p);return}if(!(gye(a.to,d)&&a.canBegin&&a.isActive)){var v=!a.canBegin||!a.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var h=v||u?f:a.to;if(this.state&&m){var x={style:c?$f({},c,h):h};(c&&m[c]!==h||!c&&m!==h)&&this.setState(x)}this.runAnimation(Ca(Ca({},this.props),{},{from:h,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var a=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),a&&a()}},{key:"handleStyleChange",value:function(a){this.changeStyle(a)}},{key:"changeStyle",value:function(a){this.mounted&&this.setState({style:a})}},{key:"runJSAnimation",value:function(a){var i=this,o=a.from,l=a.to,c=a.duration,u=a.easing,d=a.begin,f=a.onAnimationEnd,m=a.onAnimationStart,p=Yye(o,l,Fye(u),c,this.changeStyle),v=function(){i.stopJSAnimation=p()};this.manager.start([m,d,v,c,f])}},{key:"runStepAnimation",value:function(a){var i=this,o=a.steps,l=a.begin,c=a.onAnimationStart,u=o[0],d=u.style,f=u.duration,m=f===void 0?0:f,p=function(h,x,y){if(y===0)return h;var g=x.duration,j=x.easing,S=j===void 0?"ease":j,w=x.style,N=x.properties,P=x.onAnimationEnd,C=y>0?o[y-1]:x,A=N||Object.keys(w);if(typeof S=="function"||S==="spring")return[].concat(ij(h),[i.runJSAnimation.bind(i,{from:C.style,to:w,duration:g,easing:S}),g]);var O=pk(A,g,S),E=Ca(Ca(Ca({},C.style),w),{},{transition:O});return[].concat(ij(h),[E,g,P]).filter(Aye)};return this.manager.start([c].concat(ij(o.reduce(p,[d,Math.max(m,l)])),[a.onAnimationEnd]))}},{key:"runAnimation",value:function(a){this.manager||(this.manager=Nye());var i=a.begin,o=a.duration,l=a.attributeName,c=a.to,u=a.easing,d=a.onAnimationStart,f=a.onAnimationEnd,m=a.steps,p=a.children,v=this.manager;if(this.unSubscribe=v.subscribe(this.handleStyleChange),typeof u=="function"||typeof p=="function"||u==="spring"){this.runJSAnimation(a);return}if(m.length>1){this.runStepAnimation(a);return}var h=l?$f({},l,c):c,x=pk(Object.keys(h),o,u);v.start([d,i,Ca(Ca({},h),{},{transition:x}),o,f])}},{key:"render",value:function(){var a=this.props,i=a.children;a.begin;var o=a.duration;a.attributeName,a.easing;var l=a.isActive;a.steps,a.from,a.to,a.canBegin,a.onAnimationEnd,a.shouldReAnimate,a.onAnimationReStart;var c=Qye(a,Zye),u=b.Children.count(i),d=this.state.style;if(typeof i=="function")return i(d);if(!l||u===0||o<=0)return i;var f=function(p){var v=p.props,h=v.style,x=h===void 0?{}:h,y=v.className,g=b.cloneElement(p,Ca(Ca({},c),{},{style:Ca(Ca({},x),d),className:y}));return g};return u===1?f(b.Children.only(i)):_.createElement("div",null,b.Children.map(i,function(m){return f(m)}))}}]),r}(b.PureComponent);Ts.displayName="Animate";Ts.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};Ts.propTypes={from:pt.oneOfType([pt.object,pt.string]),to:pt.oneOfType([pt.object,pt.string]),attributeName:pt.string,duration:pt.number,begin:pt.number,easing:pt.oneOfType([pt.string,pt.func]),steps:pt.arrayOf(pt.shape({duration:pt.number.isRequired,style:pt.object.isRequired,easing:pt.oneOfType([pt.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),pt.func]),properties:pt.arrayOf("string"),onAnimationEnd:pt.func})),children:pt.oneOfType([pt.node,pt.func]),isActive:pt.bool,canBegin:pt.bool,onAnimationEnd:pt.func,shouldReAnimate:pt.bool,onAnimationStart:pt.func,onAnimationReStart:pt.func};function vh(e){"@babel/helpers - typeof";return vh=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},vh(e)}function hx(){return hx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},hx.apply(this,arguments)}function d0e(e,t){return p0e(e)||h0e(e,t)||m0e(e,t)||f0e()}function f0e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 707In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function m0e(e,t){if(e){if(typeof e=="string")return jk(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return jk(e,t)}}function jk(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function h0e(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,a,i,o,l=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,t!==0)for(;!(c=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(d){u=!0,a=d}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}function p0e(e){if(Array.isArray(e))return e}function wk(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Nk(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?wk(Object(r),!0).forEach(function(n){g0e(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):wk(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function g0e(e,t,r){return t=v0e(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function v0e(e){var t=x0e(e,"string");return vh(t)=="symbol"?t:t+""}function x0e(e,t){if(vh(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(vh(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Sk=function(t,r,n,a,i){var o=Math.min(Math.abs(n)/2,Math.abs(a)/2),l=a>=0?1:-1,c=n>=0?1:-1,u=a>=0&&n>=0||a<0&&n<0?1:0,d;if(o>0&&i instanceof Array){for(var f=[0,0,0,0],m=0,p=4;m<p;m++)f[m]=i[m]>o?o:i[m];d="M".concat(t,",").concat(r+l*f[0]),f[0]>0&&(d+="A ".concat(f[0],",").concat(f[0],",0,0,").concat(u,",").concat(t+c*f[0],",").concat(r)),d+="L ".concat(t+n-c*f[1],",").concat(r),f[1]>0&&(d+="A ".concat(f[1],",").concat(f[1],",0,0,").concat(u,`, 708 `).concat(t+n,",").concat(r+l*f[1])),d+="L ".concat(t+n,",").concat(r+a-l*f[2]),f[2]>0&&(d+="A ".concat(f[2],",").concat(f[2],",0,0,").concat(u,`, 709 `).concat(t+n-c*f[2],",").concat(r+a)),d+="L ".concat(t+c*f[3],",").concat(r+a),f[3]>0&&(d+="A ".concat(f[3],",").concat(f[3],",0,0,").concat(u,`, 710 `).concat(t,",").concat(r+a-l*f[3])),d+="Z"}else if(o>0&&i===+i&&i>0){var v=Math.min(o,i);d="M ".concat(t,",").concat(r+l*v,` 711 A `).concat(v,",").concat(v,",0,0,").concat(u,",").concat(t+c*v,",").concat(r,` 712 L `).concat(t+n-c*v,",").concat(r,` 713 A `).concat(v,",").concat(v,",0,0,").concat(u,",").concat(t+n,",").concat(r+l*v,` 714 L `).concat(t+n,",").concat(r+a-l*v,` 715 A `).concat(v,",").concat(v,",0,0,").concat(u,",").concat(t+n-c*v,",").concat(r+a,` 716 L `).concat(t+c*v,",").concat(r+a,` 717 A `).concat(v,",").concat(v,",0,0,").concat(u,",").concat(t,",").concat(r+a-l*v," Z")}else d="M ".concat(t,",").concat(r," h ").concat(n," v ").concat(a," h ").concat(-n," Z");return d},y0e=function(t,r){if(!t||!r)return!1;var n=t.x,a=t.y,i=r.x,o=r.y,l=r.width,c=r.height;if(Math.abs(l)>0&&Math.abs(c)>0){var u=Math.min(i,i+l),d=Math.max(i,i+l),f=Math.min(o,o+c),m=Math.max(o,o+c);return n>=u&&n<=d&&a>=f&&a<=m}return!1},b0e={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},zP=function(t){var r=Nk(Nk({},b0e),t),n=b.useRef(),a=b.useState(-1),i=d0e(a,2),o=i[0],l=i[1];b.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var S=n.current.getTotalLength();S&&l(S)}catch{}},[]);var c=r.x,u=r.y,d=r.width,f=r.height,m=r.radius,p=r.className,v=r.animationEasing,h=r.animationDuration,x=r.animationBegin,y=r.isAnimationActive,g=r.isUpdateAnimationActive;if(c!==+c||u!==+u||d!==+d||f!==+f||d===0||f===0)return null;var j=rt("recharts-rectangle",p);return g?_.createElement(Ts,{canBegin:o>0,from:{width:d,height:f,x:c,y:u},to:{width:d,height:f,x:c,y:u},duration:h,animationEasing:v,isActive:g},function(S){var w=S.width,N=S.height,P=S.x,C=S.y;return _.createElement(Ts,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:x,duration:h,isActive:y,easing:v},_.createElement("path",hx({},$e(r,!0),{className:j,d:Sk(P,C,w,N,m),ref:n})))}):_.createElement("path",hx({},$e(r,!0),{className:j,d:Sk(c,u,d,f,m)}))},j0e=["points","className","baseLinePoints","connectNulls"];function qc(){return qc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},qc.apply(this,arguments)}function w0e(e,t){if(e==null)return{};var r=N0e(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function N0e(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Pk(e){return A0e(e)||C0e(e)||P0e(e)||S0e()}function S0e(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 718In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function P0e(e,t){if(e){if(typeof e=="string")return nN(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return nN(e,t)}}function C0e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function A0e(e){if(Array.isArray(e))return nN(e)}function nN(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Ck=function(t){return t&&t.x===+t.x&&t.y===+t.y},T0e=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=[[]];return t.forEach(function(n){Ck(n)?r[r.length-1].push(n):r[r.length-1].length>0&&r.push([])}),Ck(t[0])&&r[r.length-1].push(t[0]),r[r.length-1].length<=0&&(r=r.slice(0,-1)),r},om=function(t,r){var n=T0e(t);r&&(n=[n.reduce(function(i,o){return[].concat(Pk(i),Pk(o))},[])]);var a=n.map(function(i){return i.reduce(function(o,l,c){return"".concat(o).concat(c===0?"M":"L").concat(l.x,",").concat(l.y)},"")}).join("");return n.length===1?"".concat(a,"Z"):a},E0e=function(t,r,n){var a=om(t,n);return"".concat(a.slice(-1)==="Z"?a.slice(0,-1):a,"L").concat(om(r.reverse(),n).slice(1))},O0e=function(t){var r=t.points,n=t.className,a=t.baseLinePoints,i=t.connectNulls,o=w0e(t,j0e);if(!r||!r.length)return null;var l=rt("recharts-polygon",n);if(a&&a.length){var c=o.stroke&&o.stroke!=="none",u=E0e(r,a,i);return _.createElement("g",{className:l},_.createElement("path",qc({},$e(o,!0),{fill:u.slice(-1)==="Z"?o.fill:"none",stroke:"none",d:u})),c?_.createElement("path",qc({},$e(o,!0),{fill:"none",d:om(r,i)})):null,c?_.createElement("path",qc({},$e(o,!0),{fill:"none",d:om(a,i)})):null)}var d=om(r,i);return _.createElement("path",qc({},$e(o,!0),{fill:d.slice(-1)==="Z"?o.fill:"none",className:l,d}))};function aN(){return aN=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},aN.apply(this,arguments)}var x0=function(t){var r=t.cx,n=t.cy,a=t.r,i=t.className,o=rt("recharts-dot",i);return r===+r&&n===+n&&a===+a?_.createElement("circle",aN({},$e(t,!1),Rv(t),{className:o,cx:r,cy:n,r:a})):null};function xh(e){"@babel/helpers - typeof";return xh=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},xh(e)}var _0e=["x","y","top","left","width","height","className"];function sN(){return sN=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},sN.apply(this,arguments)}function Ak(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function k0e(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ak(Object(r),!0).forEach(function(n){M0e(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ak(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function M0e(e,t,r){return t=D0e(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function D0e(e){var t=R0e(e,"string");return xh(t)=="symbol"?t:t+""}function R0e(e,t){if(xh(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(xh(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function I0e(e,t){if(e==null)return{};var r=$0e(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function $0e(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var L0e=function(t,r,n,a,i,o){return"M".concat(t,",").concat(i,"v").concat(a,"M").concat(o,",").concat(r,"h").concat(n)},F0e=function(t){var r=t.x,n=r===void 0?0:r,a=t.y,i=a===void 0?0:a,o=t.top,l=o===void 0?0:o,c=t.left,u=c===void 0?0:c,d=t.width,f=d===void 0?0:d,m=t.height,p=m===void 0?0:m,v=t.className,h=I0e(t,_0e),x=k0e({x:n,y:i,top:l,left:u,width:f,height:p},h);return!se(n)||!se(i)||!se(f)||!se(p)||!se(l)||!se(u)?null:_.createElement("path",sN({},$e(x,!0),{className:rt("recharts-cross",v),d:L0e(n,i,f,p,l,u)}))},V0e=m0,z0e=NF,B0e=Rs;function U0e(e,t){return e&&e.length?V0e(e,B0e(t),z0e):void 0}var W0e=U0e;const q0e=bt(W0e);var H0e=m0,G0e=Rs,K0e=SF;function X0e(e,t){return e&&e.length?H0e(e,G0e(t),K0e):void 0}var Y0e=X0e;const Z0e=bt(Y0e);var Q0e=["cx","cy","angle","ticks","axisLine"],J0e=["ticks","tick","angle","tickFormatter","stroke"];function sd(e){"@babel/helpers - typeof";return sd=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},sd(e)}function lm(){return lm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},lm.apply(this,arguments)}function Tk(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Zo(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Tk(Object(r),!0).forEach(function(n){y0(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Tk(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Ek(e,t){if(e==null)return{};var r=ebe(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function ebe(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function tbe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ok(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,m6(n.key),n)}}function rbe(e,t,r){return t&&Ok(e.prototype,t),r&&Ok(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function nbe(e,t,r){return t=px(t),abe(e,f6()?Reflect.construct(t,r||[],px(e).constructor):t.apply(e,r))}function abe(e,t){if(t&&(sd(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return sbe(e)}function sbe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function f6(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(f6=function(){return!!e})()}function px(e){return px=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},px(e)}function ibe(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&&iN(e,t)}function iN(e,t){return iN=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},iN(e,t)}function y0(e,t,r){return t=m6(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function m6(e){var t=obe(e,"string");return sd(t)=="symbol"?t:t+""}function obe(e,t){if(sd(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(sd(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var b0=function(e){function t(){return tbe(this,t),nbe(this,t,arguments)}return ibe(t,e),rbe(t,[{key:"getTickValueCoord",value:function(n){var a=n.coordinate,i=this.props,o=i.angle,l=i.cx,c=i.cy;return _t(l,c,a,o)}},{key:"getTickTextAnchor",value:function(){var n=this.props.orientation,a;switch(n){case"left":a="end";break;case"right":a="start";break;default:a="middle";break}return a}},{key:"getViewBox",value:function(){var n=this.props,a=n.cx,i=n.cy,o=n.angle,l=n.ticks,c=q0e(l,function(d){return d.coordinate||0}),u=Z0e(l,function(d){return d.coordinate||0});return{cx:a,cy:i,startAngle:o,endAngle:o,innerRadius:u.coordinate||0,outerRadius:c.coordinate||0}}},{key:"renderAxisLine",value:function(){var n=this.props,a=n.cx,i=n.cy,o=n.angle,l=n.ticks,c=n.axisLine,u=Ek(n,Q0e),d=l.reduce(function(v,h){return[Math.min(v[0],h.coordinate),Math.max(v[1],h.coordinate)]},[1/0,-1/0]),f=_t(a,i,d[0],o),m=_t(a,i,d[1],o),p=Zo(Zo(Zo({},$e(u,!1)),{},{fill:"none"},$e(c,!1)),{},{x1:f.x,y1:f.y,x2:m.x,y2:m.y});return _.createElement("line",lm({className:"recharts-polar-radius-axis-line"},p))}},{key:"renderTicks",value:function(){var n=this,a=this.props,i=a.ticks,o=a.tick,l=a.angle,c=a.tickFormatter,u=a.stroke,d=Ek(a,J0e),f=this.getTickTextAnchor(),m=$e(d,!1),p=$e(o,!1),v=i.map(function(h,x){var y=n.getTickValueCoord(h),g=Zo(Zo(Zo(Zo({textAnchor:f,transform:"rotate(".concat(90-l,", ").concat(y.x,", ").concat(y.y,")")},m),{},{stroke:"none",fill:u},p),{},{index:x},y),{},{payload:h});return _.createElement(ut,lm({className:rt("recharts-polar-radius-axis-tick",QF(o)),key:"tick-".concat(h.coordinate)},Hl(n.props,h,x)),t.renderTickItem(o,g,c?c(h.value,x):h.value))});return _.createElement(ut,{className:"recharts-polar-radius-axis-ticks"},v)}},{key:"render",value:function(){var n=this.props,a=n.ticks,i=n.axisLine,o=n.tick;return!a||!a.length?null:_.createElement(ut,{className:rt("recharts-polar-radius-axis",this.props.className)},i&&this.renderAxisLine(),o&&this.renderTicks(),Or.renderCallByParent(this.props,this.getViewBox()))}}],[{key:"renderTickItem",value:function(n,a,i){var o;return _.isValidElement(n)?o=_.cloneElement(n,a):We(n)?o=n(a):o=_.createElement(Gl,lm({},a,{className:"recharts-polar-radius-axis-tick-value"}),i),o}}])}(b.PureComponent);y0(b0,"displayName","PolarRadiusAxis");y0(b0,"axisType","radiusAxis");y0(b0,"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 id(e){"@babel/helpers - typeof";return id=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},id(e)}function ll(){return ll=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ll.apply(this,arguments)}function _k(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Qo(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?_k(Object(r),!0).forEach(function(n){j0(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_k(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function lbe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function kk(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,p6(n.key),n)}}function cbe(e,t,r){return t&&kk(e.prototype,t),r&&kk(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function ube(e,t,r){return t=gx(t),dbe(e,h6()?Reflect.construct(t,r||[],gx(e).constructor):t.apply(e,r))}function dbe(e,t){if(t&&(id(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return fbe(e)}function fbe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function h6(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(h6=function(){return!!e})()}function gx(e){return gx=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},gx(e)}function mbe(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&&oN(e,t)}function oN(e,t){return oN=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},oN(e,t)}function j0(e,t,r){return t=p6(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function p6(e){var t=hbe(e,"string");return id(t)=="symbol"?t:t+""}function hbe(e,t){if(id(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(id(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var pbe=Math.PI/180,Mk=1e-5,w0=function(e){function t(){return lbe(this,t),ube(this,t,arguments)}return mbe(t,e),cbe(t,[{key:"getTickLineCoord",value:function(n){var a=this.props,i=a.cx,o=a.cy,l=a.radius,c=a.orientation,u=a.tickSize,d=u||8,f=_t(i,o,l,n.coordinate),m=_t(i,o,l+(c==="inner"?-1:1)*d,n.coordinate);return{x1:f.x,y1:f.y,x2:m.x,y2:m.y}}},{key:"getTickTextAnchor",value:function(n){var a=this.props.orientation,i=Math.cos(-n.coordinate*pbe),o;return i>Mk?o=a==="outer"?"start":"end":i<-Mk?o=a==="outer"?"end":"start":o="middle",o}},{key:"renderAxisLine",value:function(){var n=this.props,a=n.cx,i=n.cy,o=n.radius,l=n.axisLine,c=n.axisLineType,u=Qo(Qo({},$e(this.props,!1)),{},{fill:"none"},$e(l,!1));if(c==="circle")return _.createElement(x0,ll({className:"recharts-polar-angle-axis-line"},u,{cx:a,cy:i,r:o}));var d=this.props.ticks,f=d.map(function(m){return _t(a,i,o,m.coordinate)});return _.createElement(O0e,ll({className:"recharts-polar-angle-axis-line"},u,{points:f}))}},{key:"renderTicks",value:function(){var n=this,a=this.props,i=a.ticks,o=a.tick,l=a.tickLine,c=a.tickFormatter,u=a.stroke,d=$e(this.props,!1),f=$e(o,!1),m=Qo(Qo({},d),{},{fill:"none"},$e(l,!1)),p=i.map(function(v,h){var x=n.getTickLineCoord(v),y=n.getTickTextAnchor(v),g=Qo(Qo(Qo({textAnchor:y},d),{},{stroke:"none",fill:u},f),{},{index:h,payload:v,x:x.x2,y:x.y2});return _.createElement(ut,ll({className:rt("recharts-polar-angle-axis-tick",QF(o)),key:"tick-".concat(v.coordinate)},Hl(n.props,v,h)),l&&_.createElement("line",ll({className:"recharts-polar-angle-axis-tick-line"},m,x)),o&&t.renderTickItem(o,g,c?c(v.value,h):v.value))});return _.createElement(ut,{className:"recharts-polar-angle-axis-ticks"},p)}},{key:"render",value:function(){var n=this.props,a=n.ticks,i=n.radius,o=n.axisLine;return i<=0||!a||!a.length?null:_.createElement(ut,{className:rt("recharts-polar-angle-axis",this.props.className)},o&&this.renderAxisLine(),this.renderTicks())}}],[{key:"renderTickItem",value:function(n,a,i){var o;return _.isValidElement(n)?o=_.cloneElement(n,a):We(n)?o=n(a):o=_.createElement(Gl,ll({},a,{className:"recharts-polar-angle-axis-tick-value"}),i),o}}])}(b.PureComponent);j0(w0,"displayName","PolarAngleAxis");j0(w0,"axisType","angleAxis");j0(w0,"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 gbe=yL,vbe=gbe(Object.getPrototypeOf,Object),xbe=vbe,ybe=Pi,bbe=xbe,jbe=Ci,wbe="[object Object]",Nbe=Function.prototype,Sbe=Object.prototype,g6=Nbe.toString,Pbe=Sbe.hasOwnProperty,Cbe=g6.call(Object);function Abe(e){if(!jbe(e)||ybe(e)!=wbe)return!1;var t=bbe(e);if(t===null)return!0;var r=Pbe.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&g6.call(r)==Cbe}var Tbe=Abe;const Ebe=bt(Tbe);var Obe=Pi,_be=Ci,kbe="[object Boolean]";function Mbe(e){return e===!0||e===!1||_be(e)&&Obe(e)==kbe}var Dbe=Mbe;const Rbe=bt(Dbe);function yh(e){"@babel/helpers - typeof";return yh=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},yh(e)}function vx(){return vx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},vx.apply(this,arguments)}function Ibe(e,t){return Vbe(e)||Fbe(e,t)||Lbe(e,t)||$be()}function $be(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 719In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Lbe(e,t){if(e){if(typeof e=="string")return Dk(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Dk(e,t)}}function Dk(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Fbe(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,a,i,o,l=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,t!==0)for(;!(c=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(d){u=!0,a=d}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}function Vbe(e){if(Array.isArray(e))return e}function Rk(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Ik(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Rk(Object(r),!0).forEach(function(n){zbe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Rk(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function zbe(e,t,r){return t=Bbe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Bbe(e){var t=Ube(e,"string");return yh(t)=="symbol"?t:t+""}function Ube(e,t){if(yh(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(yh(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var $k=function(t,r,n,a,i){var o=n-a,l;return l="M ".concat(t,",").concat(r),l+="L ".concat(t+n,",").concat(r),l+="L ".concat(t+n-o/2,",").concat(r+i),l+="L ".concat(t+n-o/2-a,",").concat(r+i),l+="L ".concat(t,",").concat(r," Z"),l},Wbe={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},qbe=function(t){var r=Ik(Ik({},Wbe),t),n=b.useRef(),a=b.useState(-1),i=Ibe(a,2),o=i[0],l=i[1];b.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var j=n.current.getTotalLength();j&&l(j)}catch{}},[]);var c=r.x,u=r.y,d=r.upperWidth,f=r.lowerWidth,m=r.height,p=r.className,v=r.animationEasing,h=r.animationDuration,x=r.animationBegin,y=r.isUpdateAnimationActive;if(c!==+c||u!==+u||d!==+d||f!==+f||m!==+m||d===0&&f===0||m===0)return null;var g=rt("recharts-trapezoid",p);return y?_.createElement(Ts,{canBegin:o>0,from:{upperWidth:0,lowerWidth:0,height:m,x:c,y:u},to:{upperWidth:d,lowerWidth:f,height:m,x:c,y:u},duration:h,animationEasing:v,isActive:y},function(j){var S=j.upperWidth,w=j.lowerWidth,N=j.height,P=j.x,C=j.y;return _.createElement(Ts,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:x,duration:h,easing:v},_.createElement("path",vx({},$e(r,!0),{className:g,d:$k(P,C,S,w,N),ref:n})))}):_.createElement("g",null,_.createElement("path",vx({},$e(r,!0),{className:g,d:$k(c,u,d,f,m)})))},Hbe=["option","shapeType","propTransformer","activeClassName","isActive"];function bh(e){"@babel/helpers - typeof";return bh=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},bh(e)}function Gbe(e,t){if(e==null)return{};var r=Kbe(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Kbe(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Lk(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function xx(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Lk(Object(r),!0).forEach(function(n){Xbe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Lk(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Xbe(e,t,r){return t=Ybe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ybe(e){var t=Zbe(e,"string");return bh(t)=="symbol"?t:t+""}function Zbe(e,t){if(bh(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(bh(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Qbe(e,t){return xx(xx({},t),e)}function Jbe(e,t){return e==="symbols"}function Fk(e){var t=e.shapeType,r=e.elementProps;switch(t){case"rectangle":return _.createElement(zP,r);case"trapezoid":return _.createElement(qbe,r);case"sector":return _.createElement(t6,r);case"symbols":if(Jbe(t))return _.createElement(iP,r);break;default:return null}}function eje(e){return b.isValidElement(e)?e.props:e}function v6(e){var t=e.option,r=e.shapeType,n=e.propTransformer,a=n===void 0?Qbe:n,i=e.activeClassName,o=i===void 0?"recharts-active-shape":i,l=e.isActive,c=Gbe(e,Hbe),u;if(b.isValidElement(t))u=b.cloneElement(t,xx(xx({},c),eje(t)));else if(We(t))u=t(c);else if(Ebe(t)&&!Rbe(t)){var d=a(t,c);u=_.createElement(Fk,{shapeType:r,elementProps:d})}else{var f=c;u=_.createElement(Fk,{shapeType:r,elementProps:f})}return l?_.createElement(ut,{className:o},u):u}function N0(e,t){return t!=null&&"trapezoids"in e.props}function S0(e,t){return t!=null&&"sectors"in e.props}function jh(e,t){return t!=null&&"points"in e.props}function tje(e,t){var r,n,a=e.x===(t==null||(r=t.labelViewBox)===null||r===void 0?void 0:r.x)||e.x===t.x,i=e.y===(t==null||(n=t.labelViewBox)===null||n===void 0?void 0:n.y)||e.y===t.y;return a&&i}function rje(e,t){var r=e.endAngle===t.endAngle,n=e.startAngle===t.startAngle;return r&&n}function nje(e,t){var r=e.x===t.x,n=e.y===t.y,a=e.z===t.z;return r&&n&&a}function aje(e,t){var r;return N0(e,t)?r=tje:S0(e,t)?r=rje:jh(e,t)&&(r=nje),r}function sje(e,t){var r;return N0(e,t)?r="trapezoids":S0(e,t)?r="sectors":jh(e,t)&&(r="points"),r}function ije(e,t){if(N0(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}if(S0(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}return jh(e,t)?t.payload:{}}function oje(e){var t=e.activeTooltipItem,r=e.graphicalItem,n=e.itemData,a=sje(r,t),i=ije(r,t),o=n.filter(function(c,u){var d=rd(i,c),f=r.props[a].filter(function(v){var h=aje(r,t);return h(v,t)}),m=r.props[a].indexOf(f[f.length-1]),p=u===m;return d&&p}),l=n.indexOf(o[o.length-1]);return l}var qg;function od(e){"@babel/helpers - typeof";return od=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},od(e)}function Hc(){return Hc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Hc.apply(this,arguments)}function Vk(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Tt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Vk(Object(r),!0).forEach(function(n){ua(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Vk(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function lje(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function zk(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,y6(n.key),n)}}function cje(e,t,r){return t&&zk(e.prototype,t),r&&zk(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function uje(e,t,r){return t=yx(t),dje(e,x6()?Reflect.construct(t,r||[],yx(e).constructor):t.apply(e,r))}function dje(e,t){if(t&&(od(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return fje(e)}function fje(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function x6(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(x6=function(){return!!e})()}function yx(e){return yx=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},yx(e)}function mje(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&&lN(e,t)}function lN(e,t){return lN=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},lN(e,t)}function ua(e,t,r){return t=y6(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function y6(e){var t=hje(e,"string");return od(t)=="symbol"?t:t+""}function hje(e,t){if(od(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(od(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Is=function(e){function t(r){var n;return lje(this,t),n=uje(this,t,[r]),ua(n,"pieRef",null),ua(n,"sectorRefs",[]),ua(n,"id",Gd("recharts-pie-")),ua(n,"handleAnimationEnd",function(){var a=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),We(a)&&a()}),ua(n,"handleAnimationStart",function(){var a=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),We(a)&&a()}),n.state={isAnimationFinished:!r.isAnimationActive,prevIsAnimationActive:r.isAnimationActive,prevAnimationId:r.animationId,sectorToFocus:0},n}return mje(t,e),cje(t,[{key:"isActiveIndex",value:function(n){var a=this.props.activeIndex;return Array.isArray(a)?a.indexOf(n)!==-1:n===a}},{key:"hasActiveIndex",value:function(){var n=this.props.activeIndex;return Array.isArray(n)?n.length!==0:n||n===0}},{key:"renderLabels",value:function(n){var a=this.props.isAnimationActive;if(a&&!this.state.isAnimationFinished)return null;var i=this.props,o=i.label,l=i.labelLine,c=i.dataKey,u=i.valueKey,d=$e(this.props,!1),f=$e(o,!1),m=$e(l,!1),p=o&&o.offsetRadius||20,v=n.map(function(h,x){var y=(h.startAngle+h.endAngle)/2,g=_t(h.cx,h.cy,h.outerRadius+p,y),j=Tt(Tt(Tt(Tt({},d),h),{},{stroke:"none"},f),{},{index:x,textAnchor:t.getTextAnchor(g.x,h.cx)},g),S=Tt(Tt(Tt(Tt({},d),h),{},{fill:"none",stroke:h.fill},m),{},{index:x,points:[_t(h.cx,h.cy,h.outerRadius,y),g]}),w=c;return et(c)&&et(u)?w="value":et(c)&&(w=u),_.createElement(ut,{key:"label-".concat(h.startAngle,"-").concat(h.endAngle,"-").concat(h.midAngle,"-").concat(x)},l&&t.renderLabelLineItem(l,S,"line"),t.renderLabelItem(o,j,wr(h,w)))});return _.createElement(ut,{className:"recharts-pie-labels"},v)}},{key:"renderSectorsStatically",value:function(n){var a=this,i=this.props,o=i.activeShape,l=i.blendStroke,c=i.inactiveShape;return n.map(function(u,d){if((u==null?void 0:u.startAngle)===0&&(u==null?void 0:u.endAngle)===0&&n.length!==1)return null;var f=a.isActiveIndex(d),m=c&&a.hasActiveIndex()?c:null,p=f?o:m,v=Tt(Tt({},u),{},{stroke:l?u.fill:u.stroke,tabIndex:-1});return _.createElement(ut,Hc({ref:function(x){x&&!a.sectorRefs.includes(x)&&a.sectorRefs.push(x)},tabIndex:-1,className:"recharts-pie-sector"},Hl(a.props,u,d),{key:"sector-".concat(u==null?void 0:u.startAngle,"-").concat(u==null?void 0:u.endAngle,"-").concat(u.midAngle,"-").concat(d)}),_.createElement(v6,Hc({option:p,isActive:f,shapeType:"sector"},v)))})}},{key:"renderSectorsWithAnimation",value:function(){var n=this,a=this.props,i=a.sectors,o=a.isAnimationActive,l=a.animationBegin,c=a.animationDuration,u=a.animationEasing,d=a.animationId,f=this.state,m=f.prevSectors,p=f.prevIsAnimationActive;return _.createElement(Ts,{begin:l,duration:c,isActive:o,easing:u,from:{t:0},to:{t:1},key:"pie-".concat(d,"-").concat(p),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},function(v){var h=v.t,x=[],y=i&&i[0],g=y.startAngle;return i.forEach(function(j,S){var w=m&&m[S],N=S>0?qn(j,"paddingAngle",0):0;if(w){var P=An(w.endAngle-w.startAngle,j.endAngle-j.startAngle),C=Tt(Tt({},j),{},{startAngle:g+N,endAngle:g+P(h)+N});x.push(C),g=C.endAngle}else{var A=j.endAngle,O=j.startAngle,E=An(0,A-O),k=E(h),M=Tt(Tt({},j),{},{startAngle:g+N,endAngle:g+k+N});x.push(M),g=M.endAngle}}),_.createElement(ut,null,n.renderSectorsStatically(x))})}},{key:"attachKeyboardHandlers",value:function(n){var a=this;n.onkeydown=function(i){if(!i.altKey)switch(i.key){case"ArrowLeft":{var o=++a.state.sectorToFocus%a.sectorRefs.length;a.sectorRefs[o].focus(),a.setState({sectorToFocus:o});break}case"ArrowRight":{var l=--a.state.sectorToFocus<0?a.sectorRefs.length-1:a.state.sectorToFocus%a.sectorRefs.length;a.sectorRefs[l].focus(),a.setState({sectorToFocus:l});break}case"Escape":{a.sectorRefs[a.state.sectorToFocus].blur(),a.setState({sectorToFocus:0});break}}}}},{key:"renderSectors",value:function(){var n=this.props,a=n.sectors,i=n.isAnimationActive,o=this.state.prevSectors;return i&&a&&a.length&&(!o||!rd(o,a))?this.renderSectorsWithAnimation():this.renderSectorsStatically(a)}},{key:"componentDidMount",value:function(){this.pieRef&&this.attachKeyboardHandlers(this.pieRef)}},{key:"render",value:function(){var n=this,a=this.props,i=a.hide,o=a.sectors,l=a.className,c=a.label,u=a.cx,d=a.cy,f=a.innerRadius,m=a.outerRadius,p=a.isAnimationActive,v=this.state.isAnimationFinished;if(i||!o||!o.length||!se(u)||!se(d)||!se(f)||!se(m))return null;var h=rt("recharts-pie",l);return _.createElement(ut,{tabIndex:this.props.rootTabIndex,className:h,ref:function(y){n.pieRef=y}},this.renderSectors(),c&&this.renderLabels(o),Or.renderCallByParent(this.props,null,!1),(!p||v)&&ni.renderCallByParent(this.props,o,!1))}}],[{key:"getDerivedStateFromProps",value:function(n,a){return a.prevIsAnimationActive!==n.isAnimationActive?{prevIsAnimationActive:n.isAnimationActive,prevAnimationId:n.animationId,curSectors:n.sectors,prevSectors:[],isAnimationFinished:!0}:n.isAnimationActive&&n.animationId!==a.prevAnimationId?{prevAnimationId:n.animationId,curSectors:n.sectors,prevSectors:a.curSectors,isAnimationFinished:!0}:n.sectors!==a.curSectors?{curSectors:n.sectors,isAnimationFinished:!0}:null}},{key:"getTextAnchor",value:function(n,a){return n>a?"start":n<a?"end":"middle"}},{key:"renderLabelLineItem",value:function(n,a,i){if(_.isValidElement(n))return _.cloneElement(n,a);if(We(n))return n(a);var o=rt("recharts-pie-label-line",typeof n!="boolean"?n.className:"");return _.createElement(vu,Hc({},a,{key:i,type:"linear",className:o}))}},{key:"renderLabelItem",value:function(n,a,i){if(_.isValidElement(n))return _.cloneElement(n,a);var o=i;if(We(n)&&(o=n(a),_.isValidElement(o)))return o;var l=rt("recharts-pie-label-text",typeof n!="boolean"&&!We(n)?n.className:"");return _.createElement(Gl,Hc({},a,{alignmentBaseline:"middle",className:l}),o)}}])}(b.PureComponent);qg=Is;ua(Is,"displayName","Pie");ua(Is,"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:!xs.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1,rootTabIndex:0});ua(Is,"parseDeltaAngle",function(e,t){var r=pn(t-e),n=Math.min(Math.abs(t-e),360);return r*n});ua(Is,"getRealPieData",function(e){var t=e.data,r=e.children,n=$e(e,!1),a=pa(r,Xs);return t&&t.length?t.map(function(i,o){return Tt(Tt(Tt({payload:i},n),i),a&&a[o]&&a[o].props)}):a&&a.length?a.map(function(i){return Tt(Tt({},n),i.props)}):[]});ua(Is,"parseCoordinateOfPie",function(e,t){var r=t.top,n=t.left,a=t.width,i=t.height,o=ZF(a,i),l=n+gn(e.cx,a,a/2),c=r+gn(e.cy,i,i/2),u=gn(e.innerRadius,o,0),d=gn(e.outerRadius,o,o*.8),f=e.maxRadius||Math.sqrt(a*a+i*i)/2;return{cx:l,cy:c,innerRadius:u,outerRadius:d,maxRadius:f}});ua(Is,"getComposedData",function(e){var t=e.item,r=e.offset,n=t.type.defaultProps!==void 0?Tt(Tt({},t.type.defaultProps),t.props):t.props,a=qg.getRealPieData(n);if(!a||!a.length)return null;var i=n.cornerRadius,o=n.startAngle,l=n.endAngle,c=n.paddingAngle,u=n.dataKey,d=n.nameKey,f=n.valueKey,m=n.tooltipType,p=Math.abs(n.minAngle),v=qg.parseCoordinateOfPie(n,r),h=qg.parseDeltaAngle(o,l),x=Math.abs(h),y=u;et(u)&&et(f)?(Ua(!1,`Use "dataKey" to specify the value of pie,
720 the props "valueKey" will be deprecated in 1.1.0`),y="value"):et(u)&&(Ua(!1,`Use "dataKey" to specify the value of pie, 721 the props "valueKey" will be deprecated in 1.1.0`),y=f);var g=a.filter(function(C){return wr(C,y,0)!==0}).length,j=(x>=360?g:g-1)*c,S=x-g*p-j,w=a.reduce(function(C,A){var O=wr(A,y,0);return C+(se(O)?O:0)},0),N;if(w>0){var P;N=a.map(function(C,A){var O=wr(C,y,0),E=wr(C,d,A),k=(se(O)?O:0)/w,M;A?M=P.endAngle+pn(h)*c*(O!==0?1:0):M=o;var D=M+pn(h)*((O!==0?p:0)+k*S),F=(M+D)/2,L=(v.innerRadius+v.outerRadius)/2,B=[{name:E,value:O,payload:C,dataKey:y,type:m}],R=_t(v.cx,v.cy,L,F);return P=Tt(Tt(Tt({percent:k,cornerRadius:i,name:E,tooltipPayload:B,midAngle:F,middleRadius:L,tooltipPosition:R},C),v),{},{value:wr(C,y),startAngle:M,endAngle:D,payload:C,paddingAngle:pn(h)*c}),P})}return Tt(Tt({},v),{},{sectors:N,data:a})});var pje=Math.ceil,gje=Math.max;function vje(e,t,r,n){for(var a=-1,i=gje(pje((t-e)/(r||1)),0),o=Array(i);i--;)o[n?i:++a]=e,e+=r;return o}var xje=vje,yje=LL,Bk=1/0,bje=17976931348623157e292;function jje(e){if(!e)return e===0?e:0;if(e=yje(e),e===Bk||e===-Bk){var t=e<0?-1:1;return t*bje}return e===e?e:0}var b6=jje,wje=xje,Nje=i0,oj=b6;function Sje(e){return function(t,r,n){return n&&typeof n!="number"&&Nje(t,r,n)&&(r=n=void 0),t=oj(t),r===void 0?(r=t,t=0):r=oj(r),n=n===void 0?t<r?1:-1:oj(n),wje(t,r,n,e)}}var Pje=Sje,Cje=Pje,Aje=Cje(),Tje=Aje;const bx=bt(Tje);function wh(e){"@babel/helpers - typeof";return wh=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},wh(e)}function Uk(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Wk(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Uk(Object(r),!0).forEach(function(n){j6(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Uk(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function j6(e,t,r){return t=Eje(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Eje(e){var t=Oje(e,"string");return wh(t)=="symbol"?t:t+""}function Oje(e,t){if(wh(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(wh(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var _je=["Webkit","Moz","O","ms"],kje=function(t,r){var n=t.replace(/(\w)/,function(i){return i.toUpperCase()}),a=_je.reduce(function(i,o){return Wk(Wk({},i),{},j6({},o+n,r))},{});return a[t]=r,a};function ld(e){"@babel/helpers - typeof";return ld=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},ld(e)}function jx(){return jx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},jx.apply(this,arguments)}function qk(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function lj(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?qk(Object(r),!0).forEach(function(n){Dn(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qk(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Mje(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Hk(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,N6(n.key),n)}}function Dje(e,t,r){return t&&Hk(e.prototype,t),r&&Hk(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Rje(e,t,r){return t=wx(t),Ije(e,w6()?Reflect.construct(t,r||[],wx(e).constructor):t.apply(e,r))}function Ije(e,t){if(t&&(ld(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return $je(e)}function $je(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})()}
vendor: 10,193 bytes, line 721
721function wx(e){return wx=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},wx(e)}function Lje(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&&cN(e,t)}function cN(e,t){return cN=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},cN(e,t)}function Dn(e,t,r){return t=N6(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function N6(e){var t=Fje(e,"string");return ld(t)=="symbol"?t:t+""}function Fje(e,t){if(ld(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(ld(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Vje=function(t){var r=t.data,n=t.startIndex,a=t.endIndex,i=t.x,o=t.width,l=t.travellerWidth;if(!r||!r.length)return{};var c=r.length,u=am().domain(bx(0,c)).range([i,i+o-l]),d=u.domain().map(function(f){return u(f)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:u(n),endX:u(a),scale:u,scaleValues:d}},Gk=function(t){return t.changedTouches&&!!t.changedTouches.length},cd=function(e){function t(r){var n;return Mje(this,t),n=Rje(this,t,[r]),Dn(n,"handleDrag",function(a){n.leaveTimer&&(clearTimeout(n.leaveTimer),n.leaveTimer=null),n.state.isTravellerMoving?n.handleTravellerMove(a):n.state.isSlideMoving&&n.handleSlideDrag(a)}),Dn(n,"handleTouchMove",function(a){a.changedTouches!=null&&a.changedTouches.length>0&&n.handleDrag(a.changedTouches[0])}),Dn(n,"handleDragEnd",function(){n.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var a=n.props,i=a.endIndex,o=a.onDragEnd,l=a.startIndex;o==null||o({endIndex:i,startIndex:l})}),n.detachDragEndListener()}),Dn(n,"handleLeaveWrapper",function(){(n.state.isTravellerMoving||n.state.isSlideMoving)&&(n.leaveTimer=window.setTimeout(n.handleDragEnd,n.props.leaveTimeOut))}),Dn(n,"handleEnterSlideOrTraveller",function(){n.setState({isTextActive:!0})}),Dn(n,"handleLeaveSlideOrTraveller",function(){n.setState({isTextActive:!1})}),Dn(n,"handleSlideDragStart",function(a){var i=Gk(a)?a.changedTouches[0]:a;n.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:i.pageX}),n.attachDragEndListener()}),n.travellerDragStartHandlers={startX:n.handleTravellerDragStart.bind(n,"startX"),endX:n.handleTravellerDragStart.bind(n,"endX")},n.state={},n}return Lje(t,e),Dje(t,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(n){var a=n.startX,i=n.endX,o=this.state.scaleValues,l=this.props,c=l.gap,u=l.data,d=u.length-1,f=Math.min(a,i),m=Math.max(a,i),p=t.getIndexInRange(o,f),v=t.getIndexInRange(o,m);return{startIndex:p-p%c,endIndex:v===d?d:v-v%c}}},{key:"getTextOfTick",value:function(n){var a=this.props,i=a.data,o=a.tickFormatter,l=a.dataKey,c=wr(i[n],l,n);return We(o)?o(c,n):c}},{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(n){var a=this.state,i=a.slideMoveStartX,o=a.startX,l=a.endX,c=this.props,u=c.x,d=c.width,f=c.travellerWidth,m=c.startIndex,p=c.endIndex,v=c.onChange,h=n.pageX-i;h>0?h=Math.min(h,u+d-f-l,u+d-f-o):h<0&&(h=Math.max(h,u-o,u-l));var x=this.getIndex({startX:o+h,endX:l+h});(x.startIndex!==m||x.endIndex!==p)&&v&&v(x),this.setState({startX:o+h,endX:l+h,slideMoveStartX:n.pageX})}},{key:"handleTravellerDragStart",value:function(n,a){var i=Gk(a)?a.changedTouches[0]:a;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:n,brushMoveStartX:i.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(n){var a=this.state,i=a.brushMoveStartX,o=a.movingTravellerId,l=a.endX,c=a.startX,u=this.state[o],d=this.props,f=d.x,m=d.width,p=d.travellerWidth,v=d.onChange,h=d.gap,x=d.data,y={startX:this.state.startX,endX:this.state.endX},g=n.pageX-i;g>0?g=Math.min(g,f+m-p-u):g<0&&(g=Math.max(g,f-u)),y[o]=u+g;var j=this.getIndex(y),S=j.startIndex,w=j.endIndex,N=function(){var C=x.length-1;return o==="startX"&&(l>c?S%h===0:w%h===0)||l<c&&w===C||o==="endX"&&(l>c?w%h===0:S%h===0)||l>c&&w===C};this.setState(Dn(Dn({},o,u+g),"brushMoveStartX",n.pageX),function(){v&&N()&&v(j)})}},{key:"handleTravellerMoveKeyboard",value:function(n,a){var i=this,o=this.state,l=o.scaleValues,c=o.startX,u=o.endX,d=this.state[a],f=l.indexOf(d);if(f!==-1){var m=f+n;if(!(m===-1||m>=l.length)){var p=l[m];a==="startX"&&p>=u||a==="endX"&&p<=c||this.setState(Dn({},a,p),function(){i.props.onChange(i.getIndex({startX:i.state.startX,endX:i.state.endX}))})}}}},{key:"renderBackground",value:function(){var n=this.props,a=n.x,i=n.y,o=n.width,l=n.height,c=n.fill,u=n.stroke;return _.createElement("rect",{stroke:u,fill:c,x:a,y:i,width:o,height:l})}},{key:"renderPanorama",value:function(){var n=this.props,a=n.x,i=n.y,o=n.width,l=n.height,c=n.data,u=n.children,d=n.padding,f=b.Children.only(u);return f?_.cloneElement(f,{x:a,y:i,width:o,height:l,margin:d,compact:!0,data:c}):null}},{key:"renderTravellerLayer",value:function(n,a){var i,o,l=this,c=this.props,u=c.y,d=c.travellerWidth,f=c.height,m=c.traveller,p=c.ariaLabel,v=c.data,h=c.startIndex,x=c.endIndex,y=Math.max(n,this.props.x),g=lj(lj({},$e(this.props,!1)),{},{x:y,y:u,width:d,height:f}),j=p||"Min value: ".concat((i=v[h])===null||i===void 0?void 0:i.name,", Max value: ").concat((o=v[x])===null||o===void 0?void 0:o.name);return _.createElement(ut,{tabIndex:0,role:"slider","aria-label":j,"aria-valuenow":n,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[a],onTouchStart:this.travellerDragStartHandlers[a],onKeyDown:function(w){["ArrowLeft","ArrowRight"].includes(w.key)&&(w.preventDefault(),w.stopPropagation(),l.handleTravellerMoveKeyboard(w.key==="ArrowRight"?1:-1,a))},onFocus:function(){l.setState({isTravellerFocused:!0})},onBlur:function(){l.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(m,g))}},{key:"renderSlide",value:function(n,a){var i=this.props,o=i.y,l=i.height,c=i.stroke,u=i.travellerWidth,d=Math.min(n,a)+u,f=Math.max(Math.abs(a-n)-u,0);return _.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:c,fillOpacity:.2,x:d,y:o,width:f,height:l})}},{key:"renderText",value:function(){var n=this.props,a=n.startIndex,i=n.endIndex,o=n.y,l=n.height,c=n.travellerWidth,u=n.stroke,d=this.state,f=d.startX,m=d.endX,p=5,v={pointerEvents:"none",fill:u};return _.createElement(ut,{className:"recharts-brush-texts"},_.createElement(Gl,jx({textAnchor:"end",verticalAnchor:"middle",x:Math.min(f,m)-p,y:o+l/2},v),this.getTextOfTick(a)),_.createElement(Gl,jx({textAnchor:"start",verticalAnchor:"middle",x:Math.max(f,m)+c+p,y:o+l/2},v),this.getTextOfTick(i)))}},{key:"render",value:function(){var n=this.props,a=n.data,i=n.className,o=n.children,l=n.x,c=n.y,u=n.width,d=n.height,f=n.alwaysShowText,m=this.state,p=m.startX,v=m.endX,h=m.isTextActive,x=m.isSlideMoving,y=m.isTravellerMoving,g=m.isTravellerFocused;if(!a||!a.length||!se(l)||!se(c)||!se(u)||!se(d)||u<=0||d<=0)return null;var j=rt("recharts-brush",i),S=_.Children.count(o)===1,w=kje("userSelect","none");return _.createElement(ut,{className:j,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:w},this.renderBackground(),S&&this.renderPanorama(),this.renderSlide(p,v),this.renderTravellerLayer(p,"startX"),this.renderTravellerLayer(v,"endX"),(h||x||y||g||f)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(n){var a=n.x,i=n.y,o=n.width,l=n.height,c=n.stroke,u=Math.floor(i+l/2)-1;return _.createElement(_.Fragment,null,_.createElement("rect",{x:a,y:i,width:o,height:l,fill:c,stroke:"none"}),_.createElement("line",{x1:a+1,y1:u,x2:a+o-1,y2:u,fill:"none",stroke:"#fff"}),_.createElement("line",{x1:a+1,y1:u+2,x2:a+o-1,y2:u+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(n,a){var i;return _.isValidElement(n)?i=_.cloneElement(n,a):We(n)?i=n(a):i=t.renderDefaultTraveller(a),i}},{key:"getDerivedStateFromProps",value:function(n,a){var i=n.data,o=n.width,l=n.x,c=n.travellerWidth,u=n.updateId,d=n.startIndex,f=n.endIndex;if(i!==a.prevData||u!==a.prevUpdateId)return lj({prevData:i,prevTravellerWidth:c,prevUpdateId:u,prevX:l,prevWidth:o},i&&i.length?Vje({data:i,width:o,x:l,travellerWidth:c,startIndex:d,endIndex:f}):{scale:null,scaleValues:null});if(a.scale&&(o!==a.prevWidth||l!==a.prevX||c!==a.prevTravellerWidth)){a.scale.range([l,l+o-c]);var m=a.scale.domain().map(function(p){return a.scale(p)});return{prevData:i,prevTravellerWidth:c,prevUpdateId:u,prevX:l,prevWidth:o,startX:a.scale(n.startIndex),endX:a.scale(n.endIndex),scaleValues:m}}return null}},{key:"getIndexInRange",value:function(n,a){for(var i=n.length,o=0,l=i-1;l-o>1;){var c=Math.floor((o+l)/2);n[c]>a?l=c:o=c}return a>=n[l]?l:o}}])}(b.PureComponent);Dn(cd,"displayName","Brush");Dn(cd,"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 zje=mP;function Bje(e,t){var r;return zje(e,function(n,a,i){return r=t(n,a,i),!r}),!!r}var Uje=Bje,Wje=dL,qje=Rs,Hje=Uje,Gje=Mn,Kje=i0;function Xje(e,t,r){var n=Gje(e)?Wje:Hje;return r&&Kje(e,t,r)&&(t=void 0),n(e,qje(t))}var Yje=Xje;
721const Zje=bt(Yje);var bs=function(t,r){var n=t.alwaysShow,a=t.ifOverflow;return n&&(a="extendDomain"),a===r},Kk=ML;function Qje(e,t,r){t=="__proto__"&&Kk?Kk(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var Jje=Qje,e1e=Jje,t1e=_L,r1e=Rs;function n1e(e,t){var r={};return t=r1e(t),t1e(e,function(n,a,i){e1e(r,a,t(n,a,i))}),r}var a1e=n1e;const s1e=bt(a1e);function i1e(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(!t(e[r],r,e))return!1;return!0}var o1e=i1e,l1e=mP;function c1e(e,t){var r=!0;return l1e(e,function(n,a,i){return r=!!t(n,a,i),r}),r}var u1e=c1e,d1e=o1e,f1e=u1e,m1e=Rs,h1e=Mn,p1e=i0;function g1e(e,t,r){var n=h1e(e)?d1e:f1e;return r&&p1e(e,t,r)&&(t=void 0),n(e,m1e(t))}var v1e=g1e;const S6=bt(v1e);var x1e=["x","y"];function Nh(e){"@babel/helpers - typeof";return Nh=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},Nh(e)}function uN(){return uN=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},uN.apply(this,arguments)}function Xk(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Pf(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Xk(Object(r),!0).forEach(function(n){y1e(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Xk(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function y1e(e,t,r){return t=b1e(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function b1e(e){var t=j1e(e,"string");return Nh(t)=="symbol"?t:t+""}function j1e(e,t){if(Nh(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Nh(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function w1e(e,t){if(e==null)return{};var r=N1e(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function N1e(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function S1e(e,t){var r=e.x,n=e.y,a=w1e(e,x1e),i="".concat(r),o=parseInt(i,10),l="".concat(n),c=parseInt(l,10),u="".concat(t.height||a.height),d=parseInt(u,10),f="".concat(t.width||a.width),m=parseInt(f,10);return Pf(Pf(Pf(Pf(Pf({},t),a),o?{x:o}:{}),c?{y:c}:{}),{},{height:d,width:m,name:t.name,radius:t.radius})}function Yk(e){return _.createElement(v6,uN({shapeType:"rectangle",propTransformer:S1e,activeClassName:"recharts-active-bar"},e))}var P1e=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return function(n,a){if(typeof t=="number")return t;var i=typeof n=="number";return i?t(n,a):(i||Xl(),r)}},C1e=["value","background"],P6;function ud(e){"@babel/helpers - typeof";return ud=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},ud(e)}function A1e(e,t){if(e==null)return{};var r=T1e(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function T1e(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Nx(){return Nx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];
vendor: 110,062 bytes, lines 721-725
721for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Nx.apply(this,arguments)}function Zk(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function fr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Zk(Object(r),!0).forEach(function(n){lo(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Zk(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function E1e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Qk(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,A6(n.key),n)}}function O1e(e,t,r){return t&&Qk(e.prototype,t),r&&Qk(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function _1e(e,t,r){return t=Sx(t),k1e(e,C6()?Reflect.construct(t,r||[],Sx(e).constructor):t.apply(e,r))}function k1e(e,t){if(t&&(ud(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return M1e(e)}function M1e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function C6(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(C6=function(){return!!e})()}function Sx(e){return Sx=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Sx(e)}function D1e(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&&dN(e,t)}function dN(e,t){return dN=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},dN(e,t)}function lo(e,t,r){return t=A6(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function A6(e){var t=R1e(e,"string");return ud(t)=="symbol"?t:t+""}function R1e(e,t){if(ud(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(ud(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Ho=function(e){function t(){var r;E1e(this,t);for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return r=_1e(this,t,[].concat(a)),lo(r,"state",{isAnimationFinished:!1}),lo(r,"id",Gd("recharts-bar-")),lo(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),o&&o()}),lo(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),o&&o()}),r}return D1e(t,e),O1e(t,[{key:"renderRectanglesStatically",value:function(n){var a=this,i=this.props,o=i.shape,l=i.dataKey,c=i.activeIndex,u=i.activeBar,d=$e(this.props,!1);return n&&n.map(function(f,m){var p=m===c,v=p?u:o,h=fr(fr(fr({},d),f),{},{isActive:p,option:v,index:m,dataKey:l,onAnimationStart:a.handleAnimationStart,onAnimationEnd:a.handleAnimationEnd});return _.createElement(ut,Nx({className:"recharts-bar-rectangle"},Hl(a.props,f,m),{key:"rectangle-".concat(f==null?void 0:f.x,"-").concat(f==null?void 0:f.y,"-").concat(f==null?void 0:f.value,"-").concat(m)}),_.createElement(Yk,h))})}},{key:"renderRectanglesWithAnimation",value:function(){var n=this,a=this.props,i=a.data,o=a.layout,l=a.isAnimationActive,c=a.animationBegin,u=a.animationDuration,d=a.animationEasing,f=a.animationId,m=this.state.prevData;return _.createElement(Ts,{begin:c,duration:u,isActive:l,easing:d,from:{t:0},to:{t:1},key:"bar-".concat(f),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(p){var v=p.t,h=i.map(function(x,y){var g=m&&m[y];if(g){var j=An(g.x,x.x),S=An(g.y,x.y),w=An(g.width,x.width),N=An(g.height,x.height);return fr(fr({},x),{},{x:j(v),y:S(v),width:w(v),height:N(v)})}if(o==="horizontal"){var P=An(0,x.height),C=P(v);return fr(fr({},x),{},{y:x.y+x.height-C,height:C})}var A=An(0,x.width),O=A(v);return fr(fr({},x),{},{width:O})});return _.createElement(ut,null,n.renderRectanglesStatically(h))})}},{key:"renderRectangles",value:function(){var n=this.props,a=n.data,i=n.isAnimationActive,o=this.state.prevData;return i&&a&&a.length&&(!o||!rd(o,a))?this.renderRectanglesWithAnimation():this.renderRectanglesStatically(a)}},{key:"renderBackground",value:function(){var n=this,a=this.props,i=a.data,o=a.dataKey,l=a.activeIndex,c=$e(this.props.background,!1);return i.map(function(u,d){u.value;var f=u.background,m=A1e(u,C1e);if(!f)return null;var p=fr(fr(fr(fr(fr({},m),{},{fill:"#eee"},f),c),Hl(n.props,u,d)),{},{onAnimationStart:n.handleAnimationStart,onAnimationEnd:n.handleAnimationEnd,dataKey:o,index:d,className:"recharts-bar-background-rectangle"});return _.createElement(Yk,Nx({key:"background-bar-".concat(d),option:n.props.background,isActive:d===l},p))})}},{key:"renderErrorBar",value:function(n,a){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var i=this.props,o=i.data,l=i.xAxis,c=i.yAxis,u=i.layout,d=i.children,f=pa(d,v0);if(!f)return null;var m=u==="vertical"?o[0].height/2:o[0].width/2,p=function(x,y){var g=Array.isArray(x.value)?x.value[1]:x.value;return{x:x.x,y:x.y,value:g,errorVal:wr(x,y)}},v={clipPath:n?"url(#clipPath-".concat(a,")"):null};return _.createElement(ut,v,f.map(function(h){return _.cloneElement(h,{key:"error-bar-".concat(a,"-").concat(h.props.dataKey),data:o,xAxis:l,yAxis:c,layout:u,offset:m,dataPointFormatter:p})}))}},{key:"render",value:function(){var n=this.props,a=n.hide,i=n.data,o=n.className,l=n.xAxis,c=n.yAxis,u=n.left,d=n.top,f=n.width,m=n.height,p=n.isAnimationActive,v=n.background,h=n.id;if(a||!i||!i.length)return null;var x=this.state.isAnimationFinished,y=rt("recharts-bar",o),g=l&&l.allowDataOverflow,j=c&&c.allowDataOverflow,S=g||j,w=et(h)?this.id:h;return _.createElement(ut,{className:y},g||j?_.createElement("defs",null,_.createElement("clipPath",{id:"clipPath-".concat(w)},_.createElement("rect",{x:g?u:u-f/2,y:j?d:d-m/2,width:g?f:f*2,height:j?m:m*2}))):null,_.createElement(ut,{className:"recharts-bar-rectangles",clipPath:S?"url(#clipPath-".concat(w,")"):null},v?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(S,w),(!p||x)&&ni.renderCallByParent(this.props,i))}}],[{key:"getDerivedStateFromProps",value:function(n,a){return n.animationId!==a.prevAnimationId?{prevAnimationId:n.animationId,curData:n.data,prevData:a.curData}:n.data!==a.curData?{curData:n.data}:null}}])}(b.PureComponent);P6=Ho;lo(Ho,"displayName","Bar");lo(Ho,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!xs.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});lo(Ho,"getComposedData",function(e){var t=e.props,r=e.item,n=e.barPosition,a=e.bandSize,i=e.xAxis,o=e.yAxis,l=e.xAxisTicks,c=e.yAxisTicks,u=e.stackedData,d=e.dataStartIndex,f=e.displayedData,m=e.offset,p=pve(n,r);if(!p)return null;var v=t.layout,h=r.type.defaultProps,x=h!==void 0?fr(fr({},h),r.props):r.props,y=x.dataKey,g=x.children,j=x.minPointSize,S=v==="horizontal"?o:i,w=u?S.scale.domain():null,N=wve({numericAxis:S}),P=pa(g,Xs),C=f.map(function(A,O){var E,k,M,D,F,L;u?E=gve(u[d+O],w):(E=wr(A,y),Array.isArray(E)||(E=[N,E]));var B=P1e(j,P6.defaultProps.minPointSize)(E[1],O);if(v==="horizontal"){var R,I=[o.scale(E[0]),o.scale(E[1])],G=I[0],U=I[1];k=z_({axis:i,ticks:l,bandSize:a,offset:p.offset,entry:A,index:O}),M=(R=U??G)!==null&&R!==void 0?R:void 0,D=p.size;var K=G-U;if(F=Number.isNaN(K)?0:K,L={x:k,y:o.y,width:D,height:o.height},Math.abs(B)>0&&Math.abs(F)<Math.abs(B)){var ce=pn(F||B)*(Math.abs(B)-Math.abs(F));M-=ce,F+=ce}}else{var pe=[i.scale(E[0]),i.scale(E[1])],Ke=pe[0],q=pe[1];if(k=Ke,M=z_({axis:o,ticks:c,bandSize:a,offset:p.offset,entry:A,index:O}),D=q-Ke,F=p.size,L={x:i.x,y:M,width:i.width,height:F},Math.abs(B)>0&&Math.abs(D)<Math.abs(B)){var Q=pn(D||B)*(Math.abs(B)-Math.abs(D));D+=Q}}return fr(fr(fr({},A),{},{x:k,y:M,width:D,height:F,value:u?E:E[1],payload:A,background:L},P&&P[O]&&P[O].props),{},{tooltipPayload:[XF(r,A)],tooltipPosition:{x:k+D/2,y:M+F/2}})});return fr({data:C,layout:v},m)});function Sh(e){"@babel/helpers - typeof";return Sh=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},Sh(e)}function I1e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Jk(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,T6(n.key),n)}}function $1e(e,t,r){return t&&Jk(e.prototype,t),r&&Jk(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function eM(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Ma(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?eM(Object(r),!0).forEach(function(n){P0(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):eM(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function P0(e,t,r){return t=T6(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function T6(e){var t=L1e(e,"string");return Sh(t)=="symbol"?t:t+""}function L1e(e,t){if(Sh(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Sh(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var E6=function(t,r,n,a,i){var o=t.width,l=t.height,c=t.layout,u=t.children,d=Object.keys(r),f={left:n.left,leftMirror:n.left,right:o-n.right,rightMirror:o-n.right,top:n.top,topMirror:n.top,bottom:l-n.bottom,bottomMirror:l-n.bottom},m=!!$n(u,Ho);return d.reduce(function(p,v){var h=r[v],x=h.orientation,y=h.domain,g=h.padding,j=g===void 0?{}:g,S=h.mirror,w=h.reversed,N="".concat(x).concat(S?"Mirror":""),P,C,A,O,E;if(h.type==="number"&&(h.padding==="gap"||h.padding==="no-gap")){var k=y[1]-y[0],M=1/0,D=h.categoricalDomain.sort();if(D.forEach(function(pe,Ke){Ke>0&&(M=Math.min((pe||0)-(D[Ke-1]||0),M))}),Number.isFinite(M)){var F=M/k,L=h.layout==="vertical"?n.height:n.width;if(h.padding==="gap"&&(P=F*L/2),h.padding==="no-gap"){var B=gn(t.barCategoryGap,F*L),R=F*L/2;P=R-B-(R-B)/L*B}}}a==="xAxis"?C=[n.left+(j.left||0)+(P||0),n.left+n.width-(j.right||0)-(P||0)]:a==="yAxis"?C=c==="horizontal"?[n.top+n.height-(j.bottom||0),n.top+(j.top||0)]:[n.top+(j.top||0)+(P||0),n.top+n.height-(j.bottom||0)-(P||0)]:C=h.range,w&&(C=[C[1],C[0]]);var I=qF(h,i,m),G=I.scale,U=I.realScaleType;G.domain(y).range(C),HF(G);var K=GF(G,Ma(Ma({},h),{},{realScaleType:U}));a==="xAxis"?(E=x==="top"&&!S||x==="bottom"&&S,A=n.left,O=f[N]-E*h.height):a==="yAxis"&&(E=x==="left"&&!S||x==="right"&&S,A=f[N]-E*h.width,O=n.top);var ce=Ma(Ma(Ma({},h),K),{},{realScaleType:U,x:A,y:O,scale:G,width:a==="xAxis"?n.width:h.width,height:a==="yAxis"?n.height:h.height});return ce.bandSize=lx(ce,K),!h.hide&&a==="xAxis"?f[N]+=(E?-1:1)*ce.height:h.hide||(f[N]+=(E?-1:1)*ce.width),Ma(Ma({},p),{},P0({},v,ce))},{})},O6=function(t,r){var n=t.x,a=t.y,i=r.x,o=r.y;return{x:Math.min(n,i),y:Math.min(a,o),width:Math.abs(i-n),height:Math.abs(o-a)}},F1e=function(t){var r=t.x1,n=t.y1,a=t.x2,i=t.y2;return O6({x:r,y:n},{x:a,y:i})},_6=function(){function e(t){I1e(this,e),this.scale=t}return $1e(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(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=n.bandAware,i=n.position;if(r!==void 0){if(i)switch(i){case"start":return this.scale(r);case"middle":{var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+o}case"end":{var l=this.bandwidth?this.bandwidth():0;return this.scale(r)+l}default:return this.scale(r)}if(a){var c=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+c}return this.scale(r)}}},{key:"isInRange",value:function(r){var n=this.range(),a=n[0],i=n[n.length-1];return a<=i?r>=a&&r<=i:r>=i&&r<=a}}],[{key:"create",value:function(r){return new e(r)}}])}();P0(_6,"EPS",1e-4);var BP=function(t){var r=Object.keys(t).reduce(function(n,a){return Ma(Ma({},n),{},P0({},a,_6.create(t[a])))},{});return Ma(Ma({},r),{},{apply:function(a){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=i.bandAware,l=i.position;return s1e(a,function(c,u){return r[u].apply(c,{bandAware:o,position:l})})},isInRange:function(a){return S6(a,function(i,o){return r[o].isInRange(i)})}})};function V1e(e){return(e%180+180)%180}var z1e=function(t){var r=t.width,n=t.height,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,i=V1e(a),o=i*Math.PI/180,l=Math.atan(n/r),c=o>l&&o<Math.PI-l?n/Math.sin(o):r/Math.cos(o);return Math.abs(c)},B1e=Rs,U1e=hp,W1e=a0;function q1e(e){return function(t,r,n){var a=Object(t);if(!U1e(t)){var i=B1e(r);t=W1e(t),r=function(l){return i(a[l],l,a)}}var o=e(t,r,n);return o>-1?a[i?t[o]:o]:void 0}}var H1e=q1e,G1e=b6;function K1e(e){var t=G1e(e),r=t%1;return t===t?r?t-r:t:0}var X1e=K1e,Y1e=PL,Z1e=Rs,Q1e=X1e,J1e=Math.max;function ewe(e,t,r){var n=e==null?0:e.length;if(!n)return-1;var a=r==null?0:Q1e(r);return a<0&&(a=J1e(n+a,0)),Y1e(e,Z1e(t),a)}var twe=ewe,rwe=H1e,nwe=twe,awe=rwe(nwe),swe=awe;const iwe=bt(swe);var owe=rte(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("")}),UP=b.createContext(void 0),WP=b.createContext(void 0),k6=b.createContext(void 0),M6=b.createContext({}),D6=b.createContext(void 0),R6=b.createContext(0),I6=b.createContext(0),tM=function(t){var r=t.state,n=r.xAxisMap,a=r.yAxisMap,i=r.offset,o=t.clipPathId,l=t.children,c=t.width,u=t.height,d=owe(i);return _.createElement(UP.Provider,{value:n},_.createElement(WP.Provider,{value:a},_.createElement(M6.Provider,{value:i},_.createElement(k6.Provider,{value:d},_.createElement(D6.Provider,{value:o},_.createElement(R6.Provider,{value:u},_.createElement(I6.Provider,{value:c},l)))))))},lwe=function(){return b.useContext(D6)},$6=function(t){var r=b.useContext(UP);r==null&&Xl();var n=r[t];return n==null&&Xl(),n},cwe=function(){var t=b.useContext(UP);return qi(t)},uwe=function(){var t=b.useContext(WP),r=iwe(t,function(n){return S6(n.domain,Number.isFinite)});return r||qi(t)},L6=function(t){var r=b.useContext(WP);r==null&&Xl();var n=r[t];return n==null&&Xl(),n},dwe=function(){var t=b.useContext(k6);return t},fwe=function(){return b.useContext(M6)},qP=function(){return b.useContext(I6)},HP=function(){return b.useContext(R6)};function dd(e){"@babel/helpers - typeof";return dd=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},dd(e)}function mwe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function hwe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,V6(n.key),n)}}function pwe(e,t,r){return t&&hwe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function gwe(e,t,r){return t=Px(t),vwe(e,F6()?Reflect.construct(t,r||[],Px(e).constructor):t.apply(e,r))}function vwe(e,t){if(t&&(dd(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return xwe(e)}function xwe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function F6(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(F6=function(){return!!e})()}function Px(e){return Px=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Px(e)}function ywe(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&&fN(e,t)}function fN(e,t){return fN=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},fN(e,t)}function rM(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function nM(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?rM(Object(r),!0).forEach(function(n){GP(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rM(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function GP(e,t,r){return t=V6(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function V6(e){var t=bwe(e,"string");return dd(t)=="symbol"?t:t+""}function bwe(e,t){if(dd(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(dd(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function jwe(e,t){return Pwe(e)||Swe(e,t)||Nwe(e,t)||wwe()}function wwe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 722In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Nwe(e,t){if(e){if(typeof e=="string")return aM(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return aM(e,t)}}function aM(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Swe(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,a,i,o,l=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,t!==0)for(;!(c=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(d){u=!0,a=d}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}function Pwe(e){if(Array.isArray(e))return e}function mN(){return mN=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},mN.apply(this,arguments)}var Cwe=function(t,r){var n;return _.isValidElement(t)?n=_.cloneElement(t,r):We(t)?n=t(r):n=_.createElement("line",mN({},r,{className:"recharts-reference-line-line"})),n},Awe=function(t,r,n,a,i,o,l,c,u){var d=i.x,f=i.y,m=i.width,p=i.height;if(n){var v=u.y,h=t.y.apply(v,{position:o});if(bs(u,"discard")&&!t.y.isInRange(h))return null;var x=[{x:d+m,y:h},{x:d,y:h}];return c==="left"?x.reverse():x}if(r){var y=u.x,g=t.x.apply(y,{position:o});if(bs(u,"discard")&&!t.x.isInRange(g))return null;var j=[{x:g,y:f+p},{x:g,y:f}];return l==="top"?j.reverse():j}if(a){var S=u.segment,w=S.map(function(N){return t.apply(N,{position:o})});return bs(u,"discard")&&Zje(w,function(N){return!t.isInRange(N)})?null:w}return null};function Twe(e){var t=e.x,r=e.y,n=e.segment,a=e.xAxisId,i=e.yAxisId,o=e.shape,l=e.className,c=e.alwaysShow,u=lwe(),d=$6(a),f=L6(i),m=dwe();if(!u||!m)return null;Ua(c===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var p=BP({x:d.scale,y:f.scale}),v=Sr(t),h=Sr(r),x=n&&n.length===2,y=Awe(p,v,h,x,m,e.position,d.orientation,f.orientation,e);if(!y)return null;var g=jwe(y,2),j=g[0],S=j.x,w=j.y,N=g[1],P=N.x,C=N.y,A=bs(e,"hidden")?"url(#".concat(u,")"):void 0,O=nM(nM({clipPath:A},$e(e,!0)),{},{x1:S,y1:w,x2:P,y2:C});return _.createElement(ut,{className:rt("recharts-reference-line",l)},Cwe(o,O),Or.renderCallByParent(e,F1e({x1:S,y1:w,x2:P,y2:C})))}var KP=function(e){function t(){return mwe(this,t),gwe(this,t,arguments)}return ywe(t,e),pwe(t,[{key:"render",value:function(){return _.createElement(Twe,this.props)}}])}(_.Component);GP(KP,"displayName","ReferenceLine");GP(KP,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function hN(){return hN=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},hN.apply(this,arguments)}function fd(e){"@babel/helpers - typeof";return fd=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},fd(e)}function sM(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function iM(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?sM(Object(r),!0).forEach(function(n){C0(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):sM(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Ewe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Owe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,B6(n.key),n)}}function _we(e,t,r){return t&&Owe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function kwe(e,t,r){return t=Cx(t),Mwe(e,z6()?Reflect.construct(t,r||[],Cx(e).constructor):t.apply(e,r))}function Mwe(e,t){if(t&&(fd(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Dwe(e)}function Dwe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function z6(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(z6=function(){return!!e})()}function Cx(e){return Cx=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Cx(e)}function Rwe(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&&pN(e,t)}function pN(e,t){return pN=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},pN(e,t)}function C0(e,t,r){return t=B6(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function B6(e){var t=Iwe(e,"string");return fd(t)=="symbol"?t:t+""}function Iwe(e,t){if(fd(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(fd(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var $we=function(t){var r=t.x,n=t.y,a=t.xAxis,i=t.yAxis,o=BP({x:a.scale,y:i.scale}),l=o.apply({x:r,y:n},{bandAware:!0});return bs(t,"discard")&&!o.isInRange(l)?null:l},A0=function(e){function t(){return Ewe(this,t),kwe(this,t,arguments)}return Rwe(t,e),_we(t,[{key:"render",value:function(){var n=this.props,a=n.x,i=n.y,o=n.r,l=n.alwaysShow,c=n.clipPathId,u=Sr(a),d=Sr(i);if(Ua(l===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!u||!d)return null;var f=$we(this.props);if(!f)return null;var m=f.x,p=f.y,v=this.props,h=v.shape,x=v.className,y=bs(this.props,"hidden")?"url(#".concat(c,")"):void 0,g=iM(iM({clipPath:y},$e(this.props,!0)),{},{cx:m,cy:p});return _.createElement(ut,{className:rt("recharts-reference-dot",x)},t.renderDot(h,g),Or.renderCallByParent(this.props,{x:m-o,y:p-o,width:2*o,height:2*o}))}}])}(_.Component);C0(A0,"displayName","ReferenceDot");C0(A0,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});C0(A0,"renderDot",function(e,t){var r;return _.isValidElement(e)?r=_.cloneElement(e,t):We(e)?r=e(t):r=_.createElement(x0,hN({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),r});function gN(){return gN=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},gN.apply(this,arguments)}function md(e){"@babel/helpers - typeof";return md=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},md(e)}function oM(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function lM(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?oM(Object(r),!0).forEach(function(n){T0(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):oM(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Lwe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Fwe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,W6(n.key),n)}}function Vwe(e,t,r){return t&&Fwe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function zwe(e,t,r){return t=Ax(t),Bwe(e,U6()?Reflect.construct(t,r||[],Ax(e).constructor):t.apply(e,r))}function Bwe(e,t){if(t&&(md(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Uwe(e)}function Uwe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function U6(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(U6=function(){return!!e})()}function Ax(e){return Ax=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ax(e)}function Wwe(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&&vN(e,t)}function vN(e,t){return vN=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},vN(e,t)}function T0(e,t,r){return t=W6(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function W6(e){var t=qwe(e,"string");return md(t)=="symbol"?t:t+""}function qwe(e,t){if(md(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(md(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Hwe=function(t,r,n,a,i){var o=i.x1,l=i.x2,c=i.y1,u=i.y2,d=i.xAxis,f=i.yAxis;if(!d||!f)return null;var m=BP({x:d.scale,y:f.scale}),p={x:t?m.x.apply(o,{position:"start"}):m.x.rangeMin,y:n?m.y.apply(c,{position:"start"}):m.y.rangeMin},v={x:r?m.x.apply(l,{position:"end"}):m.x.rangeMax,y:a?m.y.apply(u,{position:"end"}):m.y.rangeMax};return bs(i,"discard")&&(!m.isInRange(p)||!m.isInRange(v))?null:O6(p,v)},E0=function(e){function t(){return Lwe(this,t),zwe(this,t,arguments)}return Wwe(t,e),Vwe(t,[{key:"render",value:function(){var n=this.props,a=n.x1,i=n.x2,o=n.y1,l=n.y2,c=n.className,u=n.alwaysShow,d=n.clipPathId;Ua(u===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var f=Sr(a),m=Sr(i),p=Sr(o),v=Sr(l),h=this.props.shape;if(!f&&!m&&!p&&!v&&!h)return null;var x=Hwe(f,m,p,v,this.props);if(!x&&!h)return null;var y=bs(this.props,"hidden")?"url(#".concat(d,")"):void 0;return _.createElement(ut,{className:rt("recharts-reference-area",c)},t.renderRect(h,lM(lM({clipPath:y},$e(this.props,!0)),x)),Or.renderCallByParent(this.props,x))}}])}(_.Component);T0(E0,"displayName","ReferenceArea");T0(E0,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});T0(E0,"renderRect",function(e,t){var r;return _.isValidElement(e)?r=_.cloneElement(e,t):We(e)?r=e(t):r=_.createElement(zP,gN({},t,{className:"recharts-reference-area-rect"})),r});function q6(e,t,r){if(t<1)return[];if(t===1&&r===void 0)return e;for(var n=[],a=0;a<e.length;a+=t)n.push(e[a]);return n}function Gwe(e,t,r){var n={width:e.width+t.width,height:e.height+t.height};return z1e(n,r)}function Kwe(e,t,r){var n=r==="width",a=e.x,i=e.y,o=e.width,l=e.height;return t===1?{start:n?a:i,end:n?a+o:i+l}:{start:n?a+o:i+l,end:n?a:i}}function Tx(e,t,r,n,a){if(e*t<e*n||e*t>e*a)return!1;var i=r();return e*(t-e*i/2-n)>=0&&e*(t+e*i/2-a)<=0}function Xwe(e,t){return q6(e,t+1)}function Ywe(e,t,r,n,a){for(var i=(n||[]).slice(),o=t.start,l=t.end,c=0,u=1,d=o,f=function(){var v=n==null?void 0:n[c];if(v===void 0)return{v:q6(n,u)};var h=c,x,y=function(){return x===void 0&&(x=r(v,h)),x},g=v.coordinate,j=c===0||Tx(e,g,y,d,l);j||(c=0,d=o,u+=1),j&&(d=g+e*(y()/2+a),c+=u)},m;u<=i.length;)if(m=f(),m)return m.v;return[]}function Ph(e){"@babel/helpers - typeof";return Ph=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},Ph(e)}function cM(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Kr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?cM(Object(r),!0).forEach(function(n){Zwe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):cM(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Zwe(e,t,r){return t=Qwe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Qwe(e){var t=Jwe(e,"string");return Ph(t)=="symbol"?t:t+""}function Jwe(e,t){if(Ph(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Ph(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function eNe(e,t,r,n,a){for(var i=(n||[]).slice(),o=i.length,l=t.start,c=t.end,u=function(m){var p=i[m],v,h=function(){return v===void 0&&(v=r(p,m)),v};if(m===o-1){var x=e*(p.coordinate+e*h()/2-c);i[m]=p=Kr(Kr({},p),{},{tickCoord:x>0?p.coordinate-x*e:p.coordinate})}else i[m]=p=Kr(Kr({},p),{},{tickCoord:p.coordinate});var y=Tx(e,p.tickCoord,h,l,c);y&&(c=p.tickCoord-e*(h()/2+a),i[m]=Kr(Kr({},p),{},{isShow:!0}))},d=o-1;d>=0;d--)u(d);return i}function tNe(e,t,r,n,a,i){var o=(n||[]).slice(),l=o.length,c=t.start,u=t.end;if(i){var d=n[l-1],f=r(d,l-1),m=e*(d.coordinate+e*f/2-u);o[l-1]=d=Kr(Kr({},d),{},{tickCoord:m>0?d.coordinate-m*e:d.coordinate});var p=Tx(e,d.tickCoord,function(){return f},c,u);p&&(u=d.tickCoord-e*(f/2+a),o[l-1]=Kr(Kr({},d),{},{isShow:!0}))}for(var v=i?l-1:l,h=function(g){var j=o[g],S,w=function(){return S===void 0&&(S=r(j,g)),S};if(g===0){var N=e*(j.coordinate-e*w()/2-c);o[g]=j=Kr(Kr({},j),{},{tickCoord:N<0?j.coordinate-N*e:j.coordinate})}else o[g]=j=Kr(Kr({},j),{},{tickCoord:j.coordinate});var P=Tx(e,j.tickCoord,w,c,u);P&&(c=j.tickCoord+e*(w()/2+a),o[g]=Kr(Kr({},j),{},{isShow:!0}))},x=0;x<v;x++)h(x);return o}function XP(e,t,r){var n=e.tick,a=e.ticks,i=e.viewBox,o=e.minTickGap,l=e.orientation,c=e.interval,u=e.tickFormatter,d=e.unit,f=e.angle;if(!a||!a.length||!n)return[];if(se(c)||xs.isSsr)return Xwe(a,typeof c=="number"&&se(c)?c:0);var m=[],p=l==="top"||l==="bottom"?"width":"height",v=d&&p==="width"?nm(d,{fontSize:t,letterSpacing:r}):{width:0,height:0},h=function(j,S){var w=We(u)?u(j.value,S):j.value;return p==="width"?Gwe(nm(w,{fontSize:t,letterSpacing:r}),v,f):nm(w,{fontSize:t,letterSpacing:r})[p]},x=a.length>=2?pn(a[1].coordinate-a[0].coordinate):1,y=Kwe(i,x,p);return c==="equidistantPreserveStart"?Ywe(x,y,h,a,o):(c==="preserveStart"||c==="preserveStartEnd"?m=tNe(x,y,h,a,o,c==="preserveStartEnd"):m=eNe(x,y,h,a,o),m.filter(function(g){return g.isShow}))}var rNe=["viewBox"],nNe=["viewBox"],aNe=["ticks"];function hd(e){"@babel/helpers - typeof";return hd=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},hd(e)}function Gc(){return Gc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Gc.apply(this,arguments)}function uM(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function an(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?uM(Object(r),!0).forEach(function(n){YP(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):uM(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function cj(e,t){if(e==null)return{};var r=sNe(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function sNe(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function iNe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function dM(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,G6(n.key),n)}}function oNe(e,t,r){return t&&dM(e.prototype,t),r&&dM(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function lNe(e,t,r){return t=Ex(t),cNe(e,H6()?Reflect.construct(t,r||[],Ex(e).constructor):t.apply(e,r))}function cNe(e,t){if(t&&(hd(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return uNe(e)}function uNe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function H6(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(H6=function(){return!!e})()}function Ex(e){return Ex=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ex(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&&xN(e,t)}function xN(e,t){return xN=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},xN(e,t)}function YP(e,t,r){return t=G6(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function G6(e){var t=fNe(e,"string");return hd(t)=="symbol"?t:t+""}function fNe(e,t){if(hd(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(hd(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ef=function(e){function t(r){var n;return iNe(this,t),n=lNe(this,t,[r]),n.state={fontSize:"",letterSpacing:""},n}return dNe(t,e),oNe(t,[{key:"shouldComponentUpdate",value:function(n,a){var i=n.viewBox,o=cj(n,rNe),l=this.props,c=l.viewBox,u=cj(l,nNe);return!mu(i,c)||!mu(o,u)||!mu(a,this.state)}},{key:"componentDidMount",value:function(){var n=this.layerReference;if(n){var a=n.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];a&&this.setState({fontSize:window.getComputedStyle(a).fontSize,letterSpacing:window.getComputedStyle(a).letterSpacing})}}},{key:"getTickLineCoord",value:function(n){var a=this.props,i=a.x,o=a.y,l=a.width,c=a.height,u=a.orientation,d=a.tickSize,f=a.mirror,m=a.tickMargin,p,v,h,x,y,g,j=f?-1:1,S=n.tickSize||d,w=se(n.tickCoord)?n.tickCoord:n.coordinate;switch(u){case"top":p=v=n.coordinate,x=o+ +!f*c,h=x-j*S,g=h-j*m,y=w;break;case"left":h=x=n.coordinate,v=i+ +!f*l,p=v-j*S,y=p-j*m,g=w;break;case"right":h=x=n.coordinate,v=i+ +f*l,p=v+j*S,y=p+j*m,g=w;break;default:p=v=n.coordinate,x=o+ +f*c,h=x+j*S,g=h+j*m,y=w;break}return{line:{x1:p,y1:h,x2:v,y2:x},tick:{x:y,y:g}}}},{key:"getTickTextAnchor",value:function(){var n=this.props,a=n.orientation,i=n.mirror,o;switch(a){case"left":o=i?"start":"end";break;case"right":o=i?"end":"start";break;default:o="middle";break}return o}},{key:"getTickVerticalAnchor",value:function(){var n=this.props,a=n.orientation,i=n.mirror,o="end";switch(a){case"left":case"right":o="middle";break;case"top":o=i?"start":"end";break;default:o=i?"end":"start";break}return o}},{key:"renderAxisLine",value:function(){var n=this.props,a=n.x,i=n.y,o=n.width,l=n.height,c=n.orientation,u=n.mirror,d=n.axisLine,f=an(an(an({},$e(this.props,!1)),$e(d,!1)),{},{fill:"none"});if(c==="top"||c==="bottom"){var m=+(c==="top"&&!u||c==="bottom"&&u);f=an(an({},f),{},{x1:a,y1:i+m*l,x2:a+o,y2:i+m*l})}else{var p=+(c==="left"&&!u||c==="right"&&u);f=an(an({},f),{},{x1:a+p*o,y1:i,x2:a+p*o,y2:i+l})}return _.createElement("line",Gc({},f,{className:rt("recharts-cartesian-axis-line",qn(d,"className"))}))}},{key:"renderTicks",value:function(n,a,i){var o=this,l=this.props,c=l.tickLine,u=l.stroke,d=l.tick,f=l.tickFormatter,m=l.unit,p=XP(an(an({},this.props),{},{ticks:n}),a,i),v=this.getTickTextAnchor(),h=this.getTickVerticalAnchor(),x=$e(this.props,!1),y=$e(d,!1),g=an(an({},x),{},{fill:"none"},$e(c,!1)),j=p.map(function(S,w){var N=o.getTickLineCoord(S),P=N.line,C=N.tick,A=an(an(an(an({textAnchor:v,verticalAnchor:h},x),{},{stroke:"none",fill:u},y),C),{},{index:w,payload:S,visibleTicksCount:p.length,tickFormatter:f});return _.createElement(ut,Gc({className:"recharts-cartesian-axis-tick",key:"tick-".concat(S.value,"-").concat(S.coordinate,"-").concat(S.tickCoord)},Hl(o.props,S,w)),c&&_.createElement("line",Gc({},g,P,{className:rt("recharts-cartesian-axis-tick-line",qn(c,"className"))})),d&&t.renderTickItem(d,A,"".concat(We(f)?f(S.value,w):S.value).concat(m||"")))});return _.createElement("g",{className:"recharts-cartesian-axis-ticks"},j)}},{key:"render",value:function(){var n=this,a=this.props,i=a.axisLine,o=a.width,l=a.height,c=a.ticksGenerator,u=a.className,d=a.hide;if(d)return null;var f=this.props,m=f.ticks,p=cj(f,aNe),v=m;return We(c)&&(v=m&&m.length>0?c(this.props):c(p)),o<=0||l<=0||!v||!v.length?null:_.createElement(ut,{className:rt("recharts-cartesian-axis",u),ref:function(x){n.layerReference=x}},i&&this.renderAxisLine(),this.renderTicks(v,this.state.fontSize,this.state.letterSpacing),Or.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(n,a,i){var o;return _.isValidElement(n)?o=_.cloneElement(n,a):We(n)?o=n(a):o=_.createElement(Gl,Gc({},a,{className:"recharts-cartesian-axis-tick-value"}),i),o}}])}(b.Component);YP(ef,"displayName","CartesianAxis");YP(ef,"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 mNe=["x1","y1","x2","y2","key"],hNe=["offset"];function Yl(e){"@babel/helpers - typeof";return Yl=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},Yl(e)}function fM(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Zr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?fM(Object(r),!0).forEach(function(n){pNe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):fM(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function pNe(e,t,r){return t=gNe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function gNe(e){var t=vNe(e,"string");return Yl(t)=="symbol"?t:t+""}function vNe(e,t){if(Yl(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Yl(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function gl(){return gl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},gl.apply(this,arguments)}function mM(e,t){if(e==null)return{};var r=xNe(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function xNe(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var yNe=function(t){var r=t.fill;if(!r||r==="none")return null;var n=t.fillOpacity,a=t.x,i=t.y,o=t.width,l=t.height,c=t.ry;return _.createElement("rect",{x:a,y:i,ry:c,width:o,height:l,stroke:"none",fill:r,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function K6(e,t){var r;if(_.isValidElement(e))r=_.cloneElement(e,t);else if(We(e))r=e(t);else{var n=t.x1,a=t.y1,i=t.x2,o=t.y2,l=t.key,c=mM(t,mNe),u=$e(c,!1);u.offset;var d=mM(u,hNe);r=_.createElement("line",gl({},d,{x1:n,y1:a,x2:i,y2:o,fill:"none",key:l}))}return r}function bNe(e){var t=e.x,r=e.width,n=e.horizontal,a=n===void 0?!0:n,i=e.horizontalPoints;if(!a||!i||!i.length)return null;var o=i.map(function(l,c){var u=Zr(Zr({},e),{},{x1:t,y1:l,x2:t+r,y2:l,key:"line-".concat(c),index:c});return K6(a,u)});return _.createElement("g",{className:"recharts-cartesian-grid-horizontal"},o)}function jNe(e){var t=e.y,r=e.height,n=e.vertical,a=n===void 0?!0:n,i=e.verticalPoints;if(!a||!i||!i.length)return null;var o=i.map(function(l,c){var u=Zr(Zr({},e),{},{x1:l,y1:t,x2:l,y2:t+r,key:"line-".concat(c),index:c});return K6(a,u)});return _.createElement("g",{className:"recharts-cartesian-grid-vertical"},o)}function wNe(e){var t=e.horizontalFill,r=e.fillOpacity,n=e.x,a=e.y,i=e.width,o=e.height,l=e.horizontalPoints,c=e.horizontal,u=c===void 0?!0:c;if(!u||!t||!t.length)return null;var d=l.map(function(m){return Math.round(m+a-a)}).sort(function(m,p){return m-p});a!==d[0]&&d.unshift(0);var f=d.map(function(m,p){var v=!d[p+1],h=v?a+o-m:d[p+1]-m;if(h<=0)return null;var x=p%t.length;return _.createElement("rect",{key:"react-".concat(p),y:m,x:n,height:h,width:i,stroke:"none",fill:t[x],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return _.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},f)}function NNe(e){var t=e.vertical,r=t===void 0?!0:t,n=e.verticalFill,a=e.fillOpacity,i=e.x,o=e.y,l=e.width,c=e.height,u=e.verticalPoints;if(!r||!n||!n.length)return null;var d=u.map(function(m){return Math.round(m+i-i)}).sort(function(m,p){return m-p});i!==d[0]&&d.unshift(0);var f=d.map(function(m,p){var v=!d[p+1],h=v?i+l-m:d[p+1]-m;if(h<=0)return null;var x=p%n.length;return _.createElement("rect",{key:"react-".concat(p),x:m,y:o,width:h,height:c,stroke:"none",fill:n[x],fillOpacity:a,className:"recharts-cartesian-grid-bg"})});return _.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},f)}var SNe=function(t,r){var n=t.xAxis,a=t.width,i=t.height,o=t.offset;return WF(XP(Zr(Zr(Zr({},ef.defaultProps),n),{},{ticks:Qs(n,!0),viewBox:{x:0,y:0,width:a,height:i}})),o.left,o.left+o.width,r)},PNe=function(t,r){var n=t.yAxis,a=t.width,i=t.height,o=t.offset;return WF(XP(Zr(Zr(Zr({},ef.defaultProps),n),{},{ticks:Qs(n,!0),viewBox:{x:0,y:0,width:a,height:i}})),o.top,o.top+o.height,r)},Nc={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function Ch(e){var t,r,n,a,i,o,l=qP(),c=HP(),u=fwe(),d=Zr(Zr({},e),{},{stroke:(t=e.stroke)!==null&&t!==void 0?t:Nc.stroke,fill:(r=e.fill)!==null&&r!==void 0?r:Nc.fill,horizontal:(n=e.horizontal)!==null&&n!==void 0?n:Nc.horizontal,horizontalFill:(a=e.horizontalFill)!==null&&a!==void 0?a:Nc.horizontalFill,vertical:(i=e.vertical)!==null&&i!==void 0?i:Nc.vertical,verticalFill:(o=e.verticalFill)!==null&&o!==void 0?o:Nc.verticalFill,x:se(e.x)?e.x:u.left,y:se(e.y)?e.y:u.top,width:se(e.width)?e.width:u.width,height:se(e.height)?e.height:u.height}),f=d.x,m=d.y,p=d.width,v=d.height,h=d.syncWithTicks,x=d.horizontalValues,y=d.verticalValues,g=cwe(),j=uwe();if(!se(p)||p<=0||!se(v)||v<=0||!se(f)||f!==+f||!se(m)||m!==+m)return null;var S=d.verticalCoordinatesGenerator||SNe,w=d.horizontalCoordinatesGenerator||PNe,N=d.horizontalPoints,P=d.verticalPoints;if((!N||!N.length)&&We(w)){var C=x&&x.length,A=w({yAxis:j?Zr(Zr({},j),{},{ticks:C?x:j.ticks}):void 0,width:l,height:c,offset:u},C?!0:h);Ua(Array.isArray(A),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(Yl(A),"]")),Array.isArray(A)&&(N=A)}if((!P||!P.length)&&We(S)){var O=y&&y.length,E=S({xAxis:g?Zr(Zr({},g),{},{ticks:O?y:g.ticks}):void 0,width:l,height:c,offset:u},O?!0:h);Ua(Array.isArray(E),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(Yl(E),"]")),Array.isArray(E)&&(P=E)}return _.createElement("g",{className:"recharts-cartesian-grid"},_.createElement(yNe,{fill:d.fill,fillOpacity:d.fillOpacity,x:d.x,y:d.y,width:d.width,height:d.height,ry:d.ry}),_.createElement(bNe,gl({},d,{offset:u,horizontalPoints:N,xAxis:g,yAxis:j})),_.createElement(jNe,gl({},d,{offset:u,verticalPoints:P,xAxis:g,yAxis:j})),_.createElement(wNe,gl({},d,{horizontalPoints:N})),_.createElement(NNe,gl({},d,{verticalPoints:P})))}Ch.displayName="CartesianGrid";var CNe=["layout","type","stroke","connectNulls","isRange","ref"],ANe=["key"],X6;function pd(e){"@babel/helpers - typeof";return pd=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},pd(e)}function Y6(e,t){if(e==null)return{};var r=TNe(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function TNe(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function vl(){return vl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},vl.apply(this,arguments)}function hM(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function $i(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?hM(Object(r),!0).forEach(function(n){fs(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):hM(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ENe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function pM(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Q6(n.key),n)}}function ONe(e,t,r){return t&&pM(e.prototype,t),r&&pM(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function _Ne(e,t,r){return t=Ox(t),kNe(e,Z6()?Reflect.construct(t,r||[],Ox(e).constructor):t.apply(e,r))}function kNe(e,t){if(t&&(pd(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return MNe(e)}function MNe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Z6(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Z6=function(){return!!e})()}function Ox(e){return Ox=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ox(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&&yN(e,t)}function yN(e,t){return yN=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},yN(e,t)}function fs(e,t,r){return t=Q6(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Q6(e){var t=RNe(e,"string");return pd(t)=="symbol"?t:t+""}function RNe(e,t){if(pd(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(pd(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Es=function(e){function t(){var r;ENe(this,t);for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return r=_Ne(this,t,[].concat(a)),fs(r,"state",{isAnimationFinished:!0}),fs(r,"id",Gd("recharts-area-")),fs(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),We(o)&&o()}),fs(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),We(o)&&o()}),r}return DNe(t,e),ONe(t,[{key:"renderDots",value:function(n,a,i){var o=this.props.isAnimationActive,l=this.state.isAnimationFinished;if(o&&!l)return null;var c=this.props,u=c.dot,d=c.points,f=c.dataKey,m=$e(this.props,!1),p=$e(u,!0),v=d.map(function(x,y){var g=$i($i($i({key:"dot-".concat(y),r:3},m),p),{},{index:y,cx:x.x,cy:x.y,dataKey:f,value:x.value,payload:x.payload,points:d});return t.renderDotItem(u,g)}),h={clipPath:n?"url(#clipPath-".concat(a?"":"dots-").concat(i,")"):null};return _.createElement(ut,vl({className:"recharts-area-dots"},h),v)}},{key:"renderHorizontalRect",value:function(n){var a=this.props,i=a.baseLine,o=a.points,l=a.strokeWidth,c=o[0].x,u=o[o.length-1].x,d=n*Math.abs(c-u),f=oo(o.map(function(m){return m.y||0}));return se(i)&&typeof i=="number"?f=Math.max(i,f):i&&Array.isArray(i)&&i.length&&(f=Math.max(oo(i.map(function(m){return m.y||0})),f)),se(f)?_.createElement("rect",{x:c<u?c:c-d,y:0,width:d,height:Math.floor(f+(l?parseInt("".concat(l),10):1))}):null}},{key:"renderVerticalRect",value:function(n){var a=this.props,i=a.baseLine,o=a.points,l=a.strokeWidth,c=o[0].y,u=o[o.length-1].y,d=n*Math.abs(c-u),f=oo(o.map(function(m){return m.x||0}));return se(i)&&typeof i=="number"?f=Math.max(i,f):i&&Array.isArray(i)&&i.length&&(f=Math.max(oo(i.map(function(m){return m.x||0})),f)),se(f)?_.createElement("rect",{x:0,y:c<u?c:c-d,width:f+(l?parseInt("".concat(l),10):1),height:Math.floor(d)}):null}},{key:"renderClipRect",value:function(n){var a=this.props.layout;return a==="vertical"?this.renderVerticalRect(n):this.renderHorizontalRect(n)}},{key:"renderAreaStatically",value:function(n,a,i,o){var l=this.props,c=l.layout,u=l.type,d=l.stroke,f=l.connectNulls,m=l.isRange;l.ref;var p=Y6(l,CNe);return _.createElement(ut,{clipPath:i?"url(#clipPath-".concat(o,")"):null},_.createElement(vu,vl({},$e(p,!0),{points:n,connectNulls:f,type:u,baseLine:a,layout:c,stroke:"none",className:"recharts-area-area"})),d!=="none"&&_.createElement(vu,vl({},$e(this.props,!1),{className:"recharts-area-curve",layout:c,type:u,connectNulls:f,fill:"none",points:n})),d!=="none"&&m&&_.createElement(vu,vl({},$e(this.props,!1),{className:"recharts-area-curve",layout:c,type:u,connectNulls:f,fill:"none",points:a})))}},{key:"renderAreaWithAnimation",value:function(n,a){var i=this,o=this.props,l=o.points,c=o.baseLine,u=o.isAnimationActive,d=o.animationBegin,f=o.animationDuration,m=o.animationEasing,p=o.animationId,v=this.state,h=v.prevPoints,x=v.prevBaseLine;return _.createElement(Ts,{begin:d,duration:f,isActive:u,easing:m,from:{t:0},to:{t:1},key:"area-".concat(p),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(y){var g=y.t;if(h){var j=h.length/l.length,S=l.map(function(C,A){var O=Math.floor(A*j);if(h[O]){var E=h[O],k=An(E.x,C.x),M=An(E.y,C.y);return $i($i({},C),{},{x:k(g),y:M(g)})}return C}),w;if(se(c)&&typeof c=="number"){var N=An(x,c);w=N(g)}else if(et(c)||Hd(c)){var P=An(x,0);w=P(g)}else w=c.map(function(C,A){var O=Math.floor(A*j);if(x[O]){var E=x[O],k=An(E.x,C.x),M=An(E.y,C.y);return $i($i({},C),{},{x:k(g),y:M(g)})}return C});return i.renderAreaStatically(S,w,n,a)}return _.createElement(ut,null,_.createElement("defs",null,_.createElement("clipPath",{id:"animationClipPath-".concat(a)},i.renderClipRect(g))),_.createElement(ut,{clipPath:"url(#animationClipPath-".concat(a,")")},i.renderAreaStatically(l,c,n,a)))})}},{key:"renderArea",value:function(n,a){var i=this.props,o=i.points,l=i.baseLine,c=i.isAnimationActive,u=this.state,d=u.prevPoints,f=u.prevBaseLine,m=u.totalLength;return c&&o&&o.length&&(!d&&m>0||!rd(d,o)||!rd(f,l))?this.renderAreaWithAnimation(n,a):this.renderAreaStatically(o,l,n,a)}},{key:"render",value:function(){var n,a=this.props,i=a.hide,o=a.dot,l=a.points,c=a.className,u=a.top,d=a.left,f=a.xAxis,m=a.yAxis,p=a.width,v=a.height,h=a.isAnimationActive,x=a.id;if(i||!l||!l.length)return null;var y=this.state.isAnimationFinished,g=l.length===1,j=rt("recharts-area",c),S=f&&f.allowDataOverflow,w=m&&m.allowDataOverflow,N=S||w,P=et(x)?this.id:x,C=(n=$e(o,!1))!==null&&n!==void 0?n:{r:3,strokeWidth:2},A=C.r,O=A===void 0?3:A,E=C.strokeWidth,k=E===void 0?2:E,M=lre(o)?o:{},D=M.clipDot,F=D===void 0?!0:D,L=O*2+k;return _.createElement(ut,{className:j},S||w?_.createElement("defs",null,_.createElement("clipPath",{id:"clipPath-".concat(P)},_.createElement("rect",{x:S?d:d-p/2,y:w?u:u-v/2,width:S?p:p*2,height:w?v:v*2})),!F&&_.createElement("clipPath",{id:"clipPath-dots-".concat(P)},_.createElement("rect",{x:d-L/2,y:u-L/2,width:p+L,height:v+L}))):null,g?null:this.renderArea(N,P),(o||g)&&this.renderDots(N,F,P),(!h||y)&&ni.renderCallByParent(this.props,l))}}],[{key:"getDerivedStateFromProps",value:function(n,a){return n.animationId!==a.prevAnimationId?{prevAnimationId:n.animationId,curPoints:n.points,curBaseLine:n.baseLine,prevPoints:a.curPoints,prevBaseLine:a.curBaseLine}:n.points!==a.curPoints||n.baseLine!==a.curBaseLine?{curPoints:n.points,curBaseLine:n.baseLine}:null}}])}(b.PureComponent);X6=Es;fs(Es,"displayName","Area");fs(Es,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!xs.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"});fs(Es,"getBaseValue",function(e,t,r,n){var a=e.layout,i=e.baseValue,o=t.props.baseValue,l=o??i;if(se(l)&&typeof l=="number")return l;var c=a==="horizontal"?n:r,u=c.scale.domain();if(c.type==="number"){var d=Math.max(u[0],u[1]),f=Math.min(u[0],u[1]);return l==="dataMin"?f:l==="dataMax"||d<0?d:Math.max(Math.min(u[0],u[1]),0)}return l==="dataMin"?u[0]:l==="dataMax"?u[1]:u[0]});fs(Es,"getComposedData",function(e){var t=e.props,r=e.item,n=e.xAxis,a=e.yAxis,i=e.xAxisTicks,o=e.yAxisTicks,l=e.bandSize,c=e.dataKey,u=e.stackedData,d=e.dataStartIndex,f=e.displayedData,m=e.offset,p=t.layout,v=u&&u.length,h=X6.getBaseValue(t,r,n,a),x=p==="horizontal",y=!1,g=f.map(function(S,w){var N;v?N=u[d+w]:(N=wr(S,c),Array.isArray(N)?y=!0:N=[h,N]);var P=N[1]==null||v&&wr(S,c)==null;return x?{x:V_({axis:n,ticks:i,bandSize:l,entry:S,index:w}),y:P?null:a.scale(N[1]),value:N,payload:S}:{x:P?null:n.scale(N[1]),y:V_({axis:a,ticks:o,bandSize:l,entry:S,index:w}),value:N,payload:S}}),j;return v||y?j=g.map(function(S){var w=Array.isArray(S.value)?S.value[0]:null;return x?{x:S.x,y:w!=null&&S.y!=null?a.scale(w):null}:{x:w!=null?n.scale(w):null,y:S.y}}):j=x?a.scale(h):n.scale(h),$i({points:g,baseLine:j,layout:p,isRange:y},m)});fs(Es,"renderDotItem",function(e,t){var r;if(_.isValidElement(e))r=_.cloneElement(e,t);else if(We(e))r=e(t);else{var n=rt("recharts-area-dot",typeof e!="boolean"?e.className:""),a=t.key,i=Y6(t,ANe);r=_.createElement(x0,vl({},i,{key:a,className:n}))}return r});function gd(e){"@babel/helpers - typeof";return gd=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},gd(e)}function INe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $Ne(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,t8(n.key),n)}}function LNe(e,t,r){return t&&$Ne(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function FNe(e,t,r){return t=_x(t),VNe(e,J6()?Reflect.construct(t,r||[],_x(e).constructor):t.apply(e,r))}function VNe(e,t){if(t&&(gd(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return zNe(e)}function zNe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function J6(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(J6=function(){return!!e})()}function _x(e){return _x=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},_x(e)}function BNe(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&&bN(e,t)}function bN(e,t){return bN=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},bN(e,t)}function e8(e,t,r){return t=t8(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function t8(e){var t=UNe(e,"string");return gd(t)=="symbol"?t:t+""}function UNe(e,t){if(gd(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(gd(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function jN(){return jN=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},jN.apply(this,arguments)}function WNe(e){var t=e.xAxisId,r=qP(),n=HP(),a=$6(t);return a==null?null:_.createElement(ef,jN({},a,{className:rt("recharts-".concat(a.axisType," ").concat(a.axisType),a.className),viewBox:{x:0,y:0,width:r,height:n},ticksGenerator:function(o){return Qs(o,!0)}}))}var To=function(e){function t(){return INe(this,t),FNe(this,t,arguments)}return BNe(t,e),LNe(t,[{key:"render",value:function(){return _.createElement(WNe,this.props)}}])}(_.Component);e8(To,"displayName","XAxis");e8(To,"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 vd(e){"@babel/helpers - typeof";return vd=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},vd(e)}function qNe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function HNe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,a8(n.key),n)}}function GNe(e,t,r){return t&&HNe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function KNe(e,t,r){return t=kx(t),XNe(e,r8()?Reflect.construct(t,r||[],kx(e).constructor):t.apply(e,r))}function XNe(e,t){if(t&&(vd(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return YNe(e)}function YNe(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 kx(e){return kx=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},kx(e)}function ZNe(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&&wN(e,t)}function wN(e,t){return wN=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},wN(e,t)}function n8(e,t,r){return t=a8(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a8(e){var t=QNe(e,"string");return vd(t)=="symbol"?t:t+""}function QNe(e,t){if(vd(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(vd(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function NN(){return NN=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},NN.apply(this,arguments)}var JNe=function(t){var r=t.yAxisId,n=qP(),a=HP(),i=L6(r);return i==null?null:_.createElement(ef,NN({},i,{className:rt("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:n,height:a},ticksGenerator:function(l){return Qs(l,!0)}}))},Eo=function(e){function t(){return qNe(this,t),KNe(this,t,arguments)}return ZNe(t,e),GNe(t,[{key:"render",value:function(){return _.createElement(JNe,this.props)}}])}(_.Component);n8(Eo,"displayName","YAxis");n8(Eo,"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 gM(e){return n2e(e)||r2e(e)||t2e(e)||e2e()}function e2e(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 723In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function t2e(e,t){if(e){if(typeof e=="string")return SN(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return SN(e,t)}}function r2e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function n2e(e){if(Array.isArray(e))return SN(e)}function SN(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var PN=function(t,r,n,a,i){var o=pa(t,KP),l=pa(t,A0),c=[].concat(gM(o),gM(l)),u=pa(t,E0),d="".concat(a,"Id"),f=a[0],m=r;if(c.length&&(m=c.reduce(function(h,x){if(x.props[d]===n&&bs(x.props,"extendDomain")&&se(x.props[f])){var y=x.props[f];return[Math.min(h[0],y),Math.max(h[1],y)]}return h},m)),u.length){var p="".concat(f,"1"),v="".concat(f,"2");m=u.reduce(function(h,x){if(x.props[d]===n&&bs(x.props,"extendDomain")&&se(x.props[p])&&se(x.props[v])){var y=x.props[p],g=x.props[v];return[Math.min(h[0],y,g),Math.max(h[1],y,g)]}return h},m)}return i&&i.length&&(m=i.reduce(function(h,x){return se(x)?[Math.min(h[0],x),Math.max(h[1],x)]:h},m)),m},s8={exports:{}};(function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function a(c,u,d){this.fn=c,this.context=u,this.once=d||!1}function i(c,u,d,f,m){if(typeof d!="function")throw new TypeError("The listener must be a function");var p=new a(d,f||c,m),v=r?r+u:u;return c._events[v]?c._events[v].fn?c._events[v]=[c._events[v],p]:c._events[v].push(p):(c._events[v]=p,c._eventsCount++),c}function o(c,u){--c._eventsCount===0?c._events=new n:delete c._events[u]}function l(){this._events=new n,this._eventsCount=0}l.prototype.eventNames=function(){var u=[],d,f;if(this._eventsCount===0)return u;for(f in d=this._events)t.call(d,f)&&u.push(r?f.slice(1):f);return Object.getOwnPropertySymbols?u.concat(Object.getOwnPropertySymbols(d)):u},l.prototype.listeners=function(u){var d=r?r+u:u,f=this._events[d];if(!f)return[];if(f.fn)return[f.fn];for(var m=0,p=f.length,v=new Array(p);m<p;m++)v[m]=f[m].fn;return v},l.prototype.listenerCount=function(u){var d=r?r+u:u,f=this._events[d];return f?f.fn?1:f.length:0},l.prototype.emit=function(u,d,f,m,p,v){var h=r?r+u:u;if(!this._events[h])return!1;var x=this._events[h],y=arguments.length,g,j;if(x.fn){switch(x.once&&this.removeListener(u,x.fn,void 0,!0),y){case 1:return x.fn.call(x.context),!0;case 2:return x.fn.call(x.context,d),!0;case 3:return x.fn.call(x.context,d,f),!0;case 4:return x.fn.call(x.context,d,f,m),!0;case 5:return x.fn.call(x.context,d,f,m,p),!0;case 6:return x.fn.call(x.context,d,f,m,p,v),!0}for(j=1,g=new Array(y-1);j<y;j++)g[j-1]=arguments[j];x.fn.apply(x.context,g)}else{var S=x.length,w;for(j=0;j<S;j++)switch(x[j].once&&this.removeListener(u,x[j].fn,void 0,!0),y){case 1:x[j].fn.call(x[j].context);break;case 2:x[j].fn.call(x[j].context,d);break;case 3:x[j].fn.call(x[j].context,d,f);break;case 4:x[j].fn.call(x[j].context,d,f,m);break;default:if(!g)for(w=1,g=new Array(y-1);w<y;w++)g[w-1]=arguments[w];x[j].fn.apply(x[j].context,g)}}return!0},l.prototype.on=function(u,d,f){return i(this,u,d,f,!1)},l.prototype.once=function(u,d,f){return i(this,u,d,f,!0)},l.prototype.removeListener=function(u,d,f,m){var p=r?r+u:u;if(!this._events[p])return this;if(!d)return o(this,p),this;var v=this._events[p];if(v.fn)v.fn===d&&(!m||v.once)&&(!f||v.context===f)&&o(this,p);else{for(var h=0,x=[],y=v.length;h<y;h++)(v[h].fn!==d||m&&!v[h].once||f&&v[h].context!==f)&&x.push(v[h]);x.length?this._events[p]=x.length===1?x[0]:x:o(this,p)}return this},l.prototype.removeAllListeners=function(u){var d;return u?(d=r?r+u:u,this._events[d]&&o(this,d)):(this._events=new n,this._eventsCount=0),this},l.prototype.off=l.prototype.removeListener,l.prototype.addListener=l.prototype.on,l.prefixed=r,l.EventEmitter=l,e.exports=l})(s8);var a2e=s8.exports;const s2e=bt(a2e);var uj=new s2e,dj="recharts.syncMouseEvents";function Ah(e){"@babel/helpers - typeof";return Ah=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},Ah(e)}function i2e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o2e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,i8(n.key),n)}}function l2e(e,t,r){return t&&o2e(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function fj(e,t,r){return t=i8(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function i8(e){var t=c2e(e,"string");return Ah(t)=="symbol"?t:t+""}function c2e(e,t){if(Ah(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ah(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var u2e=function(){function e(){i2e(this,e),fj(this,"activeIndex",0),fj(this,"coordinateList",[]),fj(this,"layout","horizontal")}return l2e(e,[{key:"setDetails",value:function(r){var n,a=r.coordinateList,i=a===void 0?null:a,o=r.container,l=o===void 0?null:o,c=r.layout,u=c===void 0?null:c,d=r.offset,f=d===void 0?null:d,m=r.mouseHandlerCallback,p=m===void 0?null:m;this.coordinateList=(n=i??this.coordinateList)!==null&&n!==void 0?n:[],this.container=l??this.container,this.layout=u??this.layout,this.offset=f??this.offset,this.mouseHandlerCallback=p??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(r){if(this.coordinateList.length!==0)switch(r.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(r){this.activeIndex=r}},{key:"spoofMouse",value:function(){var r,n;if(this.layout==="horizontal"&&this.coordinateList.length!==0){var a=this.container.getBoundingClientRect(),i=a.x,o=a.y,l=a.height,c=this.coordinateList[this.activeIndex].coordinate,u=((r=window)===null||r===void 0?void 0:r.scrollX)||0,d=((n=window)===null||n===void 0?void 0:n.scrollY)||0,f=i+c+u,m=o+this.offset.top+l/2+d;this.mouseHandlerCallback({pageX:f,pageY:m})}}}])}();function d2e(e,t,r){if(r==="number"&&t===!0&&Array.isArray(e)){var n=e==null?void 0:e[0],a=e==null?void 0:e[1];if(n&&a&&se(n)&&se(a))return!0}return!1}function f2e(e,t,r,n){var a=n/2;return{stroke:"none",fill:"#ccc",x:e==="horizontal"?t.x-a:r.left+.5,y:e==="horizontal"?r.top+.5:t.y-a,width:e==="horizontal"?n:r.width-1,height:e==="horizontal"?r.height-1:n}}function o8(e){var t=e.cx,r=e.cy,n=e.radius,a=e.startAngle,i=e.endAngle,o=_t(t,r,n,a),l=_t(t,r,n,i);return{points:[o,l],cx:t,cy:r,radius:n,startAngle:a,endAngle:i}}function m2e(e,t,r){var n,a,i,o;if(e==="horizontal")n=t.x,i=n,a=r.top,o=r.top+r.height;else if(e==="vertical")a=t.y,o=a,n=r.left,i=r.left+r.width;else if(t.cx!=null&&t.cy!=null)if(e==="centric"){var l=t.cx,c=t.cy,u=t.innerRadius,d=t.outerRadius,f=t.angle,m=_t(l,c,u,f),p=_t(l,c,d,f);n=m.x,a=m.y,i=p.x,o=p.y}else return o8(t);return[{x:n,y:a},{x:i,y:o}]}function Th(e){"@babel/helpers - typeof";return Th=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},Th(e)}function vM(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function gg(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?vM(Object(r),!0).forEach(function(n){h2e(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):vM(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function h2e(e,t,r){return t=p2e(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function p2e(e){var t=g2e(e,"string");return Th(t)=="symbol"?t:t+""}function g2e(e,t){if(Th(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Th(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function v2e(e){var t,r,n=e.element,a=e.tooltipEventType,i=e.isActive,o=e.activeCoordinate,l=e.activePayload,c=e.offset,u=e.activeTooltipIndex,d=e.tooltipAxisBandSize,f=e.layout,m=e.chartName,p=(t=n.props.cursor)!==null&&t!==void 0?t:(r=n.type.defaultProps)===null||r===void 0?void 0:r.cursor;if(!n||!p||!i||!o||m!=="ScatterChart"&&a!=="axis")return null;var v,h=vu;if(m==="ScatterChart")v=o,h=F0e;else if(m==="BarChart")v=f2e(f,o,c,d),h=zP;else if(f==="radial"){var x=o8(o),y=x.cx,g=x.cy,j=x.radius,S=x.startAngle,w=x.endAngle;v={cx:y,cy:g,startAngle:S,endAngle:w,innerRadius:j,outerRadius:j},h=t6}else v={points:m2e(f,o,c)},h=vu;var N=gg(gg(gg(gg({stroke:"#ccc",pointerEvents:"none"},c),v),$e(p,!1)),{},{payload:l,payloadIndex:u,className:rt("recharts-tooltip-cursor",p.className)});return b.isValidElement(p)?b.cloneElement(p,N):b.createElement(h,N)}var x2e=["item"],y2e=["children","className","width","height","style","compact","title","desc"];function xd(e){"@babel/helpers - typeof";return xd=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},xd(e)}function Kc(){return Kc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Kc.apply(this,arguments)}function xM(e,t){return w2e(e)||j2e(e,t)||c8(e,t)||b2e()}function b2e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 724In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function j2e(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,a,i,o,l=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,t!==0)for(;!(c=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(d){u=!0,a=d}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}function w2e(e){if(Array.isArray(e))return e}function yM(e,t){if(e==null)return{};var r=N2e(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function N2e(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function S2e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function P2e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,u8(n.key),n)}}function C2e(e,t,r){return t&&P2e(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function A2e(e,t,r){return t=Mx(t),T2e(e,l8()?Reflect.construct(t,r||[],Mx(e).constructor):t.apply(e,r))}function T2e(e,t){if(t&&(xd(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return E2e(e)}function E2e(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 Mx(e){return Mx=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Mx(e)}function O2e(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&&CN(e,t)}function CN(e,t){return CN=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},CN(e,t)}function yd(e){return M2e(e)||k2e(e)||c8(e)||_2e()}function _2e(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 725In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function c8(e,t){if(e){if(typeof e=="string")return AN(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return AN(e,t)}}function k2e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function M2e(e){if(Array.isArray(e))return AN(e)}function AN(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function bM(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Y(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?bM(Object(r),!0).forEach(function(n){Ve(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):bM(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Ve(e,t,r){return t=u8(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function u8(e){var t=D2e(e,"string");return xd(t)=="symbol"?t:t+""}function D2e(e,t){if(xd(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(xd(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var R2e={xAxis:["bottom","top"],yAxis:["left","right"]},I2e={width:"100%",height:"100%"},d8={x:0,y:0};function vg(e){return e}var $2e=function(t,r){return r==="horizontal"?t.x:r==="vertical"?t.y:r==="centric"?t.angle:t.radius},L2e=function(t,r,n,a){var i=r.find(function(d){return d&&d.index===n});if(i){if(t==="horizontal")return{x:i.coordinate,y:a.y};if(t==="vertical")return{x:a.x,y:i.coordinate};if(t==="centric"){var o=i.coordinate,l=a.radius;return Y(Y(Y({},a),_t(a.cx,a.cy,l,o)),{},{angle:o,radius:l})}var c=i.coordinate,u=a.angle;return Y(Y(Y({},a),_t(a.cx,a.cy,c,u)),{},{angle:u,radius:c})}return d8},O0=function(t,r){var n=r.graphicalItems,a=r.dataStartIndex,i=r.dataEndIndex,o=(n??[]).reduce(function(l,c){var u=c.props.data;return u&&u.length?[].concat(yd(l),yd(u)):l},[]);return o.length>0?o:t&&t.length&&se(a)&&se(i)?t.slice(a,i+1):[]};function f8(e){return e==="number"?[0,"auto"]:void 0}var TN=function(t,r,n,a){var i=t.graphicalItems,o=t.tooltipAxis,l=O0(r,t);return n<0||!i||!i.length||n>=l.length?null:i.reduce(function(c,u){var d,f=(d=u.props.data)!==null&&d!==void 0?d:r;f&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=n&&(f=f.slice(t.dataStartIndex,t.dataEndIndex+1));var m;if(o.dataKey&&!o.allowDuplicatedCategory){var p=f===void 0?l:f;m=Dv(p,o.dataKey,a)}else m=f&&f[n]||l[n];return m?[].concat(yd(c),[XF(u,m)]):c},[])},jM=function(t,r,n,a){var i=a||{x:t.chartX,y:t.chartY},o=$2e(i,n),l=t.orderedTooltipTicks,c=t.tooltipAxis,u=t.tooltipTicks,d=cve(o,l,u,c);if(d>=0&&u){var f=u[d]&&u[d].value,m=TN(t,r,d,f),p=L2e(n,l,d,i);return{activeTooltipIndex:d,activeLabel:f,activePayload:m,activeCoordinate:p}}return null},F2e=function(t,r){var n=r.axes,a=r.graphicalItems,i=r.axisType,o=r.axisIdKey,l=r.stackGroups,c=r.dataStartIndex,u=r.dataEndIndex,d=t.layout,f=t.children,m=t.stackOffset,p=UF(d,i);return n.reduce(function(v,h){var x,y=h.type.defaultProps!==void 0?Y(Y({},h.type.defaultProps),h.props):h.props,g=y.type,j=y.dataKey,S=y.allowDataOverflow,w=y.allowDuplicatedCategory,N=y.scale,P=y.ticks,C=y.includeHidden,A=y[o];if(v[A])return v;var O=O0(t.data,{graphicalItems:a.filter(function(K){var ce,pe=o in K.props?K.props[o]:(ce=K.type.defaultProps)===null||ce===void 0?void 0:ce[o];return pe===A}),dataStartIndex:c,dataEndIndex:u}),E=O.length,k,M,D;d2e(y.domain,S,g)&&(k=Uw(y.domain,null,S),p&&(g==="number"||N!=="auto")&&(D=sm(O,j,"category")));var F=f8(g);if(!k||k.length===0){var L,B=(L=y.domain)!==null&&L!==void 0?L:F;if(j){if(k=sm(O,j,g),g==="category"&&p){var R=Jte(k);w&&R?(M=k,k=bx(0,E)):w||(k=W_(B,k,h).reduce(function(K,ce){return K.indexOf(ce)>=0?K:[].concat(yd(K),[ce])},[]))}else if(g==="category")w?k=k.filter(function(K){return K!==""&&!et(K)}):k=W_(B,k,h).reduce(function(K,ce){return K.indexOf(ce)>=0||ce===""||et(ce)?K:[].concat(yd(K),[ce])},[]);else if(g==="number"){var I=hve(O,a.filter(function(K){var ce,pe,Ke=o in K.props?K.props[o]:(ce=K.type.defaultProps)===null||ce===void 0?void 0:ce[o],q="hide"in K.props?K.props.hide:(pe=K.type.defaultProps)===null||pe===void 0?void 0:pe.hide;return Ke===A&&(C||!q)}),j,i,d);I&&(k=I)}p&&(g==="number"||N!=="auto")&&(D=sm(O,j,"category"))}else p?k=bx(0,E):l&&l[A]&&l[A].hasStack&&g==="number"?k=m==="expand"?[0,1]:KF(l[A].stackGroups,c,u):k=BF(O,a.filter(function(K){var ce=o in K.props?K.props[o]:K.type.defaultProps[o],pe="hide"in K.props?K.props.hide:K.type.defaultProps.hide;return ce===A&&(C||!pe)}),g,d,!0);if(g==="number")k=PN(f,k,A,i,P),B&&(k=Uw(B,k,S));else if(g==="category"&&B){var G=B,U=k.every(function(K){return G.indexOf(K)>=0});U&&(k=G)}}return Y(Y({},v),{},Ve({},A,Y(Y({},y),{},{axisType:i,domain:k,categoricalDomain:D,duplicateDomain:M,originalDomain:(x=y.domain)!==null&&x!==void 0?x:F,isCategorical:p,layout:d})))},{})},V2e=function(t,r){var n=r.graphicalItems,a=r.Axis,i=r.axisType,o=r.axisIdKey,l=r.stackGroups,c=r.dataStartIndex,u=r.dataEndIndex,d=t.layout,f=t.children,m=O0(t.data,{graphicalItems:n,dataStartIndex:c,dataEndIndex:u}),p=m.length,v=UF(d,i),h=-1;return n.reduce(function(x,y){var g=y.type.defaultProps!==void 0?Y(Y({},y.type.defaultProps),y.props):y.props,j=g[o],S=f8("number");if(!x[j]){h++;var w;return v?w=bx(0,p):l&&l[j]&&l[j].hasStack?(w=KF(l[j].stackGroups,c,u),w=PN(f,w,j,i)):(w=Uw(S,BF(m,n.filter(function(N){var P,C,A=o in N.props?N.props[o]:(P=N.type.defaultProps)===null||P===void 0?void 0:P[o],O="hide"in N.props?N.props.hide:(C=N.type.defaultProps)===null||C===void 0?void 0:C.hide;return A===j&&!O}),"number",d),a.defaultProps.allowDataOverflow),w=PN(f,w,j,i)),Y(Y({},x),{},Ve({},j,Y(Y({axisType:i},a.defaultProps),{},{hide:!0,orientation:qn(R2e,"".concat(i,".").concat(h%2),null),domain:w,originalDomain:S,isCategorical:v,layout:d})))}return x},{})},z2e=function(t,r){var n=r.axisType,a=n===void 0?"xAxis":n,i=r.AxisComp,o=r.graphicalItems,l=r.stackGroups,c=r.dataStartIndex,u=r.dataEndIndex,d=t.children,f="".concat(a,"Id"),m=pa(d,i),p={};return m&&m.length?p=F2e(t,{axes:m,graphicalItems:o,axisType:a,axisIdKey:f,stackGroups:l,dataStartIndex:c,dataEndIndex:u}):o&&o.length&&(p=V2e(t,{Axis:i,graphicalItems:o,axisType:a,axisIdKey:f,stackGroups:l,dataStartIndex:c,dataEndIndex:u})),p},B2e=function(t){var r=qi(t),n=Qs(r,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:hP(n,function(a){return a.coordinate}),tooltipAxis:r,tooltipAxisBandSize:lx(r,n)}},wM=function(t){var r=t.children,n=t.defaultShowTooltip,a=$n(r,cd),i=0,o=0;return t.data&&t.data.length!==0&&(o=t.data.length-1),a&&a.props&&(a.props.startIndex>=0&&(i=a.props.startIndex),a.props.endIndex>=0&&(o=a.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:i,dataEndIndex:o,activeTooltipIndex:-1,isTooltipActive:!!n}},U2e=function(t){return!t||!t.length?!1:t.some(function(r){var n=ti(r&&r.type);return n&&n.indexOf("Bar")>=0})},NM=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"}},W2e=function(t,r){var n=t.props,a=t.graphicalItems,i=t.xAxisMap,o=i===void 0?{}:i,l=t.yAxisMap,c=l===void 0?{}:l,u=n.width,d=n.height,f=n.children,m=n.margin||{},p=$n(f,cd),v=$n(f,yo),h=Object.keys(c).reduce(function(w,N){var P=c[N],C=P.orientation;return!P.mirror&&!P.hide?Y(Y({},w),{},Ve({},C,w[C]+P.width)):w},{left:m.left||0,right:m.right||0}),x=Object.keys(o).reduce(function(w,N){var P=o[N],C=P.orientation;return!P.mirror&&!P.hide?Y(Y({},w),{},Ve({},C,qn(w,"".concat(C))+P.height)):w},{top:m.top||0,bottom:m.bottom||0}),y=Y(Y({},x),h),g=y.bottom;p&&(y.bottom+=p.props.height||cd.defaultProps.height),v&&r&&(y=fve(y,a,n,r));var j=u-y.left-y.right,S=d-y.top-y.bottom;return Y(Y({brushBottom:g},y),{},{width:Math.max(j,0),height:Math.max(S,0)})},q2e=function(t,r){if(r==="xAxis")return t[r].width;if(r==="yAxis")return t[r].height},ZP=function(t){var r=t.chartName,n=t.GraphicalChild,a=t.defaultTooltipEventType,i=a===void 0?"axis":a,o=t.validateTooltipEventTypes,l=o===void 0?["axis"]:o,c=t.axisComponents,u=t.legendContent,d=t.formatAxisMap,f=t.defaultProps,m=function(y,g){var j=g.graphicalItems,S=g.stackGroups,w=g.offset,N=g.updateId,P=g.dataStartIndex,C=g.dataEndIndex,A=y.barSize,O=y.layout,E=y.barGap,k=y.barCategoryGap,M=y.maxBarSize,D=NM(O),F=D.numericAxisName,L=D.cateAxisName,B=U2e(j),R=[];return j.forEach(function(I,G){var U=O0(y.data,{graphicalItems:[I],dataStartIndex:P,dataEndIndex:C}),K=I.type.defaultProps!==void 0?Y(Y({},I.type.defaultProps),I.props):I.props,ce=K.dataKey,pe=K.maxBarSize,Ke=K["".concat(F,"Id")],q=K["".concat(L,"Id")],Q={},we=c.reduce(function(Wr,T){var z=g["".concat(T.axisType,"Map")],X=K["".concat(T.axisType,"Id")];z&&z[X]||T.axisType==="zAxis"||Xl();var oe=z[X];return Y(Y({},Wr),{},Ve(Ve({},T.axisType,oe),"".concat(T.axisType,"Ticks"),Qs(oe)))},Q),Z=we[L],V=we["".concat(L,"Ticks")],ee=S&&S[Ke]&&S[Ke].hasStack&&Nve(I,S[Ke].stackGroups),H=ti(I.type).indexOf("Bar")>=0,Re=lx(Z,V),Pe=[],te=B&&uve({barSize:A,stackGroups:S,totalSize:q2e(we,L)});if(H){var Ie,jt,Dr=et(pe)?M:pe,ur=(Ie=(jt=lx(Z,V,!0))!==null&&jt!==void 0?jt:Dr)!==null&&Ie!==void 0?Ie:0;Pe=dve({barGap:E,barCategoryGap:k,bandSize:ur!==Re?ur:Re,sizeList:te[q],maxBarSize:Dr}),ur!==Re&&(Pe=Pe.map(function(Wr){return Y(Y({},Wr),{},{position:Y(Y({},Wr.position),{},{offset:Wr.position.offset-ur/2})})}))}var Qa=I&&I.type&&I.type.getComposedData;Qa&&R.push({props:Y(Y({},Qa(Y(Y({},we),{},{displayedData:U,props:y,dataKey:ce,item:I,bandSize:Re,barPosition:Pe,offset:w,stackedData:ee,layout:O,dataStartIndex:P,dataEndIndex:C}))),{},Ve(Ve(Ve({key:I.key||"item-".concat(G)},F,we[F]),L,we[L]),"animationId",N)),childIndex:dre(I,y.children),item:I})}),R},p=function(y,g){var j=y.props,S=y.dataStartIndex,w=y.dataEndIndex,N=y.updateId;if(!$E({props:j}))return null;var P=j.children,C=j.layout,A=j.stackOffset,O=j.data,E=j.reverseStackOrder,k=NM(C),M=k.numericAxisName,D=k.cateAxisName,F=pa(P,n),L=jve(O,F,"".concat(M,"Id"),"".concat(D,"Id"),A,E),B=c.reduce(function(K,ce){var pe="".concat(ce.axisType,"Map");return Y(Y({},K),{},Ve({},pe,z2e(j,Y(Y({},ce),{},{graphicalItems:F,stackGroups:ce.axisType===M&&L,dataStartIndex:S,dataEndIndex:w}))))},{}),R=W2e(Y(Y({},B),{},{props:j,graphicalItems:F}),g==null?void 0:g.legendBBox);Object.keys(B).forEach(function(K){B[K]=d(j,B[K],R,K.replace("Map",""),r)});var I=B["".concat(D,"Map")],G=B2e(I),U=m(j,Y(Y({},B),{},{dataStartIndex:S,dataEndIndex:w,updateId:N,graphicalItems:F,stackGroups:L,offset:R}));return Y(Y({formattedGraphicalItems:U,graphicalItems:F,offset:R,stackGroups:L},G),B)},v=function(x){function y(g){var j,S,w;return S2e(this,y),w=A2e(this,y,[g]),Ve(w,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),Ve(w,"accessibilityManager",new u2e),Ve(w,"handleLegendBBoxUpdate",function(N){if(N){var P=w.state,C=P.dataStartIndex,A=P.dataEndIndex,O=P.updateId;w.setState(Y({legendBBox:N},p({props:w.props,dataStartIndex:C,dataEndIndex:A,updateId:O},Y(Y({},w.state),{},{legendBBox:N}))))}}),Ve(w,"handleReceiveSyncEvent",function(N,P,C){if(w.props.syncId===N){if(C===w.eventEmitterSymbol&&typeof w.props.syncMethod!="function")return;w.applySyncEvent(P)}}),Ve(w,"handleBrushChange",function(N){var P=N.startIndex,C=N.endIndex;if(P!==w.state.dataStartIndex||C!==w.state.dataEndIndex){var A=w.state.updateId;w.setState(function(){return Y({dataStartIndex:P,dataEndIndex:C},p({props:w.props,dataStartIndex:P,dataEndIndex:C,updateId:A},w.state))}),w.triggerSyncEvent({dataStartIndex:P,dataEndIndex:C})}}),Ve(w,"handleMouseEnter",function(N){var P=w.getMouseInfo(N);if(P){var C=Y(Y({},P),{},{isTooltipActive:!0});w.setState(C),w.triggerSyncEvent(C);var A=w.props.onMouseEnter;We(A)&&A(C,N)}}),Ve(w,"triggeredAfterMouseMove",function(N){var P=w.getMouseInfo(N),C=P?Y(Y({},P),{},{isTooltipActive:!0}):{isTooltipActive:!1};w.setState(C),w.triggerSyncEvent(C);var A=w.props.onMouseMove;We(A)&&A(C,N)}),Ve(w,"handleItemMouseEnter",function(N){w.setState(function(){return{isTooltipActive:!0,activeItem:N,activePayload:N.tooltipPayload,activeCoordinate:N.tooltipPosition||{x:N.cx,y:N.cy}}})}),Ve(w,"handleItemMouseLeave",function(){w.setState(function(){return{isTooltipActive:!1}})}),Ve(w,"handleMouseMove",function(N){N.persist(),w.throttleTriggeredAfterMouseMove(N)}),Ve(w,"handleMouseLeave",function(N){w.throttleTriggeredAfterMouseMove.cancel();var P={isTooltipActive:!1};w.setState(P),w.triggerSyncEvent(P);var C=w.props.onMouseLeave;We(C)&&C(P,N)}),Ve(w,"handleOuterEvent",function(N){var P=ure(N),C=qn(w.props,"".concat(P));if(P&&We(C)){var A,O;/.*touch.*/i.test(P)?O=w.getMouseInfo(N.changedTouches[0]):O=w.getMouseInfo(N),C((A=O)!==null&&A!==void 0?A:{},N)}}),Ve(w,"handleClick",function(N){var P=w.getMouseInfo(N);if(P){var C=Y(Y({},P),{},{isTooltipActive:!0});w.setState(C),w.triggerSyncEvent(C);var A=w.props.onClick;We(A)&&A(C,N)}}),Ve(w,"handleMouseDown",function(N){var P=w.props.onMouseDown;if(We(P)){var C=w.getMouseInfo(N);P(C,N)}}),Ve(w,"handleMouseUp",function(N){var P=w.props.onMouseUp;if(We(P)){var C=w.getMouseInfo(N);P(C,N)}}),Ve(w,"handleTouchMove",function(N){N.changedTouches!=null&&N.changedTouches.length>0&&w.throttleTriggeredAfterMouseMove(N.changedTouches[0])}),Ve(w,"handleTouchStart",function(N){N.changedTouches!=null&&N.changedTouches.length>0&&w.handleMouseDown(N.changedTouches[0])}),Ve(w,"handleTouchEnd",function(N){N.changedTouches!=null&&N.changedTouches.length>0&&w.handleMouseUp(N.changedTouches[0])}),Ve(w,"handleDoubleClick",function(N){var P=w.props.onDoubleClick;if(We(P)){var C=w.getMouseInfo(N);P(C,N)}}),Ve(w,"handleContextMenu",function(N){var P=w.props.onContextMenu;if(We(P)){var C=w.getMouseInfo(N);P(C,N)}}),Ve(w,"triggerSyncEvent",function(N){w.props.syncId!==void 0&&uj.emit(dj,w.props.syncId,N,w.eventEmitterSymbol)}),Ve(w,"applySyncEvent",function(N){var P=w.props,C=P.layout,A=P.syncMethod,O=w.state.updateId,E=N.dataStartIndex,k=N.dataEndIndex;if(N.dataStartIndex!==void 0||N.dataEndIndex!==void 0)w.setState(Y({dataStartIndex:E,dataEndIndex:k},p({props:w.props,dataStartIndex:E,dataEndIndex:k,updateId:O},w.state)));else if(N.activeTooltipIndex!==void 0){var M=N.chartX,D=N.chartY,F=N.activeTooltipIndex,L=w.state,B=L.offset,R=L.tooltipTicks;if(!B)return;if(typeof A=="function")F=A(R,N);else if(A==="value"){F=-1;for(var I=0;I<R.length;I++)if(R[I].value===N.activeLabel){F=I;break}}var G=Y(Y({},B),{},{x:B.left,y:B.top}),U=Math.min(M,G.x+G.width),K=Math.min(D,G.y+G.height),ce=R[F]&&R[F].value,pe=TN(w.state,w.props.data,F),Ke=R[F]?{x:C==="horizontal"?R[F].coordinate:U,y:C==="horizontal"?K:R[F].coordinate}:d8;w.setState(Y(Y({},N),{},{activeLabel:ce,activeCoordinate:Ke,activePayload:pe,activeTooltipIndex:F}))}else w.setState(N)}),Ve(w,"renderCursor",function(N){var P,C=w.state,A=C.isTooltipActive,O=C.activeCoordinate,E=C.activePayload,k=C.offset,M=C.activeTooltipIndex,D=C.tooltipAxisBandSize,F=w.getTooltipEventType(),L=(P=N.props.active)!==null&&P!==void 0?P:A,B=w.props.layout,R=N.key||"_recharts-cursor";return _.createElement(v2e,{key:R,activeCoordinate:O,activePayload:E,activeTooltipIndex:M,chartName:r,element:N,isActive:L,layout:B,offset:k,tooltipAxisBandSize:D,tooltipEventType:F})}),Ve(w,"renderPolarAxis",function(N,P,C){var A=qn(N,"type.axisType"),O=qn(w.state,"".concat(A,"Map")),E=N.type.defaultProps,k=E!==void 0?Y(Y({},E),N.props):N.props,M=O&&O[k["".concat(A,"Id")]];return b.cloneElement(N,Y(Y({},M),{},{className:rt(A,M.className),key:N.key||"".concat(P,"-").concat(C),ticks:Qs(M,!0)}))}),Ve(w,"renderPolarGrid",function(N){var P=N.props,C=P.radialLines,A=P.polarAngles,O=P.polarRadius,E=w.state,k=E.radiusAxisMap,M=E.angleAxisMap,D=qi(k),F=qi(M),L=F.cx,B=F.cy,R=F.innerRadius,I=F.outerRadius;return b.cloneElement(N,{polarAngles:Array.isArray(A)?A:Qs(F,!0).map(function(G){return G.coordinate}),polarRadius:Array.isArray(O)?O:Qs(D,!0).map(function(G){return G.coordinate}),cx:L,cy:B,innerRadius:R,outerRadius:I,key:N.key||"polar-grid",radialLines:C})}),Ve(w,"renderLegend",function(){var N=w.state.formattedGraphicalItems,P=w.props,C=P.children,A=P.width,O=P.height,E=w.props.margin||{},k=A-(E.left||0)-(E.right||0),M=VF({children:C,formattedGraphicalItems:N,legendWidth:k,legendContent:u});if(!M)return null;var D=M.item,F=yM(M,x2e);return b.cloneElement(D,Y(Y({},F),{},{chartWidth:A,chartHeight:O,margin:E,onBBoxUpdate:w.handleLegendBBoxUpdate}))}),Ve(w,"renderTooltip",function(){var N,P=w.props,C=P.children,A=P.accessibilityLayer,O=$n(C,fn);if(!O)return null;var E=w.state,k=E.isTooltipActive,M=E.activeCoordinate,D=E.activePayload,F=E.activeLabel,L=E.offset,B=(N=O.props.active)!==null&&N!==void 0?N:k;return b.cloneElement(O,{viewBox:Y(Y({},L),{},{x:L.left,y:L.top}),active:B,label:F,payload:B?D:[],coordinate:M,accessibilityLayer:A})}),Ve(w,"renderBrush",function(N){var P=w.props,C=P.margin,A=P.data,O=w.state,E=O.offset,k=O.dataStartIndex,M=O.dataEndIndex,D=O.updateId;return b.cloneElement(N,{key:N.key||"_recharts-brush",onChange:fg(w.handleBrushChange,N.props.onChange),data:A,x:se(N.props.x)?N.props.x:E.left,y:se(N.props.y)?N.props.y:E.top+E.height+E.brushBottom-(C.bottom||0),width:se(N.props.width)?N.props.width:E.width,startIndex:k,endIndex:M,updateId:"brush-".concat(D)})}),Ve(w,"renderReferenceElement",function(N,P,C){if(!N)return null;var A=w,O=A.clipPathId,E=w.state,k=E.xAxisMap,M=E.yAxisMap,D=E.offset,F=N.type.defaultProps||{},L=N.props,B=L.xAxisId,R=B===void 0?F.xAxisId:B,I=L.yAxisId,G=I===void 0?F.yAxisId:I;return b.cloneElement(N,{key:N.key||"".concat(P,"-").concat(C),xAxis:k[R],yAxis:M[G],viewBox:{x:D.left,y:D.top,width:D.width,height:D.height},clipPathId:O})}),Ve(w,"renderActivePoints",function(N){var P=N.item,C=N.activePoint,A=N.basePoint,O=N.childIndex,E=N.isRange,k=[],M=P.props.key,D=P.item.type.defaultProps!==void 0?Y(Y({},P.item.type.defaultProps),P.item.props):P.item.props,F=D.activeDot,L=D.dataKey,B=Y(Y({index:O,dataKey:L,cx:C.x,cy:C.y,r:4,fill:VP(P.item),strokeWidth:2,stroke:"#fff",payload:C.payload,value:C.value},$e(F,!1)),Rv(F));return k.push(y.renderActiveDot(F,B,"".concat(M,"-activePoint-").concat(O))),A?k.push(y.renderActiveDot(F,Y(Y({},B),{},{cx:A.x,cy:A.y}),"".concat(M,"-basePoint-").concat(O))):E&&k.push(null),k}),Ve(w,"renderGraphicChild",function(N,P,C){var A=w.filterFormatItem(N,P,C);if(!A)return null;var O=w.getTooltipEventType(),E=w.state,k=E.isTooltipActive,M=E.tooltipAxis,D=E.activeTooltipIndex,F=E.activeLabel,L=w.props.children,B=$n(L,fn),R=A.props,I=R.points,G=R.isRange,U=R.baseLine,K=A.item.type.defaultProps!==void 0?Y(Y({},A.item.type.defaultProps),A.item.props):A.item.props,ce=K.activeDot,pe=K.hide,Ke=K.activeBar,q=K.activeShape,Q=!!(!pe&&k&&B&&(ce||Ke||q)),we={};O!=="axis"&&B&&B.props.trigger==="click"?we={onClick:fg(w.handleItemMouseEnter,N.props.onClick)}:O!=="axis"&&(we={onMouseLeave:fg(w.handleItemMouseLeave,N.props.onMouseLeave),onMouseEnter:fg(w.handleItemMouseEnter,N.props.onMouseEnter)});var Z=b.cloneElement(N,Y(Y({},A.props),we));function V(T){return typeof M.dataKey=="function"?M.dataKey(T.payload):null}if(Q)if(D>=0){var ee,H;if(M.dataKey&&!M.allowDuplicatedCategory){var Re=typeof M.dataKey=="function"?V:"payload.".concat(M.dataKey.toString());ee=Dv(I,Re,F),H=G&&U&&Dv(U,Re,F)}else ee=I==null?void 0:I[D],H=G&&U&&U[D];if(q||Ke){var Pe=N.props.activeIndex!==void 0?N.props.activeIndex:D;return[b.cloneElement(N,Y(Y(Y({},A.props),we),{},{activeIndex:Pe})),null,null]}if(!et(ee))return[Z].concat(yd(w.renderActivePoints({item:A,activePoint:ee,basePoint:H,childIndex:D,isRange:G})))}else{var te,Ie=(te=w.getItemByXY(w.state.activeCoordinate))!==null&&te!==void 0?te:{graphicalItem:Z},jt=Ie.graphicalItem,Dr=jt.item,ur=Dr===void 0?N:Dr,Qa=jt.childIndex,Wr=Y(Y(Y({},A.props),we),{},{activeIndex:Qa});return[b.cloneElement(ur,Wr),null,null]}return G?[Z,null,null]:[Z,null]}),Ve(w,"renderCustomized",function(N,P,C){return b.cloneElement(N,Y(Y({key:"recharts-customized-".concat(C)},w.props),w.state))}),Ve(w,"renderMap",{CartesianGrid:{handler:vg,once:!0},ReferenceArea:{handler:w.renderReferenceElement},ReferenceLine:{handler:vg},ReferenceDot:{handler:w.renderReferenceElement},XAxis:{handler:vg},YAxis:{handler:vg},Brush:{handler:w.renderBrush,once:!0},Bar:{handler:w.renderGraphicChild},Line:{handler:w.renderGraphicChild},Area:{handler:w.renderGraphicChild},Radar:{handler:w.renderGraphicChild},RadialBar:{handler:w.renderGraphicChild},Scatter:{handler:w.renderGraphicChild},Pie:{handler:w.renderGraphicChild},Funnel:{handler:w.renderGraphicChild},Tooltip:{handler:w.renderCursor,once:!0},PolarGrid:{handler:w.renderPolarGrid,once:!0},PolarAngleAxis:{handler:w.renderPolarAxis},PolarRadiusAxis:{handler:w.renderPolarAxis},Customized:{handler:w.renderCustomized}}),w.clipPathId="".concat((j=g.id)!==null&&j!==void 0?j:Gd("recharts"),"-clip"),w.throttleTriggeredAfterMouseMove=FL(w.triggeredAfterMouseMove,(S=g.throttleDelay)!==null&&S!==void 0?S:1e3/60),w.state={},w}return O2e(y,x),C2e(y,[{key:"componentDidMount",value:function(){var j,S;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(j=this.props.margin.left)!==null&&j!==void 0?j:0,top:(S=this.props.margin.top)!==null&&S!==void 0?S:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var j=this.props,S=j.children,w=j.data,N=j.height,P=j.layout,C=$n(S,fn);if(C){var A=C.props.defaultIndex;if(!(typeof A!="number"||A<0||A>this.state.tooltipTicks.length-1)){var O=this.state.tooltipTicks[A]&&this.state.tooltipTicks[A].value,E=TN(this.state,w,A,O),k=this.state.tooltipTicks[A].coordinate,M=(this.state.offset.top+N)/2,D=P==="horizontal",F=D?{x:k,y:M}:{y:k,x:M},L=this.state.formattedGraphicalItems.find(function(R){var I=R.item;return I.type.name==="Scatter"});L&&(F=Y(Y({},F),L.props.points[A].tooltipPosition),E=L.props.points[A].tooltipPayload);var B={activeTooltipIndex:A,isTooltipActive:!0,activeLabel:O,activePayload:E,activeCoordinate:F};this.setState(B),this.renderCursor(C),this.accessibilityManager.setIndex(A)}}}},{key:"getSnapshotBeforeUpdate",value:function(j,S){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==S.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==j.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==j.margin){var w,N;this.accessibilityManager.setDetails({offset:{left:(w=this.props.margin.left)!==null&&w!==void 0?w:0,top:(N=this.props.margin.top)!==null&&N!==void 0?N:0}})}return null}},{key:"componentDidUpdate",value:function(j){aw([$n(j.children,fn)],[$n(this.props.children,fn)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var j=$n(this.props.children,fn);if(j&&typeof j.props.shared=="boolean"){var S=j.props.shared?"axis":"item";return l.indexOf(S)>=0?S:i}return i}},{key:"getMouseInfo",value:function(j){if(!this.container)return null;var S=this.container,w=S.getBoundingClientRect(),N=$fe(w),P={chartX:Math.round(j.pageX-N.left),chartY:Math.round(j.pageY-N.top)},C=w.width/S.offsetWidth||1,A=this.inRange(P.chartX,P.chartY,C);if(!A)return null;var O=this.state,E=O.xAxisMap,k=O.yAxisMap,M=this.getTooltipEventType(),D=jM(this.state,this.props.data,this.props.layout,A);if(M!=="axis"&&E&&k){var F=qi(E).scale,L=qi(k).scale,B=F&&F.invert?F.invert(P.chartX):null,R=L&&L.invert?L.invert(P.chartY):null;return Y(Y({},P),{},{xValue:B,yValue:R},D)}return D?Y(Y({},P),D):null}},{key:"inRange",value:function(j,S){var w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,N=this.props.layout,P=j/w,C=S/w;if(N==="horizontal"||N==="vertical"){var A=this.state.offset,O=P>=A.left&&P<=A.left+A.width&&C>=A.top&&C<=A.top+A.height;return O?{x:P,y:C}:null}var E=this.state,k=E.angleAxisMap,M=E.radiusAxisMap;if(k&&M){var D=qi(k);return G_({x:P,y:C},D)}return null}},{key:"parseEventsOfWrapper",value:function(){var j=this.props.children,S=this.getTooltipEventType(),w=$n(j,fn),N={};w&&S==="axis"&&(w.props.trigger==="click"?N={onClick:this.handleClick}:N={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 P=Rv(this.props,this.handleOuterEvent);return Y(Y({},P),N)}},{key:"addListener",value:function(){uj.on(dj,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){uj.removeListener(dj,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(j,S,w){for(var N=this.state.formattedGraphicalItems,P=0,C=N.length;P<C;P++){var A=N[P];if(A.item===j||A.props.key===j.key||S===ti(A.item.type)&&w===A.childIndex)return A}return null}},{key:"renderClipPath",value:function(){var j=this.clipPathId,S=this.state.offset,w=S.left,N=S.top,P=S.height,C=S.width;return _.createElement("defs",null,_.createElement("clipPath",{id:j},_.createElement("rect",{x:w,y:N,height:P,width:C})))}},{key:"getXScales",value:function(){var j=this.state.xAxisMap;return j?Object.entries(j).reduce(function(S,w){var N=xM(w,2),P=N[0],C=N[1];return Y(Y({},S),{},Ve({},P,C.scale))},{}):null}},{key:"getYScales",value:function(){var j=this.state.yAxisMap;return j?Object.entries(j).reduce(function(S,w){var N=xM(w,2),P=N[0],C=N[1];return Y(Y({},S),{},Ve({},P,C.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(j){var S;return(S=this.state.xAxisMap)===null||S===void 0||(S=S[j])===null||S===void 0?void 0:S.scale}},{key:"getYScaleByAxisId",value:function(j){var S;return(S=this.state.yAxisMap)===null||S===void 0||(S=S[j])===null||S===void 0?void 0:S.scale}},{key:"getItemByXY",value:function(j){var S=this.state,w=S.formattedGraphicalItems,N=S.activeItem;if(w&&w.length)for(var P=0,C=w.length;P<C;P++){var A=w[P],O=A.props,E=A.item,k=E.type.defaultProps!==void 0?Y(Y({},E.type.defaultProps),E.props):E.props,M=ti(E.type);if(M==="Bar"){var D=(O.data||[]).find(function(R){return y0e(j,R)});if(D)return{graphicalItem:A,payload:D}}else if(M==="RadialBar"){var F=(O.data||[]).find(function(R){return G_(j,R)});if(F)return{graphicalItem:A,payload:F}}else if(N0(A,N)||S0(A,N)||jh(A,N)){var L=oje({graphicalItem:A,activeTooltipItem:N,itemData:k.data}),B=k.activeIndex===void 0?L:k.activeIndex;return{graphicalItem:Y(Y({},A),{},{childIndex:B}),payload:jh(A,N)?k.data[L]:A.props.data[L]}}}return null}},{key:"render",value:function(){var j=this;if(!$E(this))return null;var S=this.props,w=S.children,N=S.className,P=S.width,C=S.height,A=S.style,O=S.compact,E=S.title,k=S.desc,M=yM(S,y2e),D=$e(M,!1);if(O)return _.createElement(tM,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},_.createElement(iw,Kc({},D,{width:P,height:C,title:E,desc:k}),this.renderClipPath(),FE(w,this.renderMap)));if(this.props.accessibilityLayer){var F,L;D.tabIndex=(F=this.props.tabIndex)!==null&&F!==void 0?F:0,D.role=(L=this.props.role)!==null&&L!==void 0?L:"application",D.onKeyDown=function(R){j.accessibilityManager.keyboardEvent(R)},D.onFocus=function(){j.accessibilityManager.focus()}}var B=this.parseEventsOfWrapper();return _.createElement(tM,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},_.createElement("div",Kc({className:rt("recharts-wrapper",N),style:Y({position:"relative",cursor:"default",width:P,height:C},A)},B,{ref:function(I){j.container=I}}),_.createElement(iw,Kc({},D,{width:P,height:C,title:E,desc:k,style:I2e}),this.renderClipPath(),FE(w,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])}(b.Component);Ve(v,"displayName",r),Ve(v,"defaultProps",Y({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},f)),Ve(v,"getDerivedStateFromProps",function(x,y){var g=x.dataKey,j=x.data,S=x.children,w=x.width,N=x.height,P=x.layout,C=x.stackOffset,A=x.margin,O=y.dataStartIndex,E=y.dataEndIndex;if(y.updateId===void 0){var k=wM(x);return Y(Y(Y({},k),{},{updateId:0},p(Y(Y({props:x},k),{},{updateId:0}),y)),{},{prevDataKey:g,prevData:j,prevWidth:w,prevHeight:N,prevLayout:P,prevStackOffset:C,prevMargin:A,prevChildren:S})}if(g!==y.prevDataKey||j!==y.prevData||w!==y.prevWidth||N!==y.prevHeight||P!==y.prevLayout||C!==y.prevStackOffset||!mu(A,y.prevMargin)){var M=wM(x),D={chartX:y.chartX,chartY:y.chartY,isTooltipActive:y.isTooltipActive},F=Y(Y({},jM(y,j,P)),{},{updateId:y.updateId+1}),L=Y(Y(Y({},M),D),F);return Y(Y(Y({},L),p(Y({props:x},L),y)),{},{prevDataKey:g,prevData:j,prevWidth:w,prevHeight:N,prevLayout:P,prevStackOffset:C,prevMargin:A,prevChildren:S})}if(!aw(S,y.prevChildren)){var B,R,I,G,U=$n(S,cd),K=U&&(B=(R=U.props)===null||R===void 0?void 0:R.startIndex)!==null&&B!==void 0?B:O,ce=U&&(I=(G=U.props)===null||G===void 0?void 0:G.endIndex)!==null&&I!==void 0?I:E,pe=K!==O||ce!==E,Ke=!et(j),q=Ke&&!pe?y.updateId:y.updateId+1;return Y(Y({updateId:q},p(Y(Y({props:x},y),{},{updateId:q,dataStartIndex:K,dataEndIndex:ce}),y)),{},{prevChildren:S,dataStartIndex:K,dataEndIndex:ce})}return null}),Ve(v,"renderActiveDot",function(x,y,g){var j;return b.isValidElement(x)?j=b.cloneElement(x,y):We(x)?j=x(y):j=_.createElement(x0,y),_.createElement(ut,{className:"recharts-active-dot",key:g},j)});var h=b.forwardRef(function(y,g){return _.createElement(v,Kc({},y,{ref:g}))});return h.displayName=v.displayName,h},m8=ZP({chartName:"BarChart",GraphicalChild:Ho,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:To},{axisType:"yAxis",AxisComp:Eo}],formatAxisMap:E6}),h8=ZP({chartName:"PieChart",GraphicalChild:Is,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:w0},{axisType:"radiusAxis",AxisComp:b0}],formatAxisMap:Mve,defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}}),p8=ZP({chartName:"AreaChart",GraphicalChild:Es,axisComponents:[{axisType:"xAxis",AxisComp:To},{axisType:"yAxis",AxisComp:Eo}],formatAxisMap:E6});const H2e={lessThanXSeconds:{one:"menos de um segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"meio minuto",lessThanXMinutes:{one:"menos de um minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"cerca de 1 hora",other:"cerca de {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 dia",other:"{{count}} dias"},aboutXWeeks:{one:"cerca de 1 semana",other:"cerca de {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"cerca de 1 mês",other:"cerca de {{count}} meses"},xMonths:{one:"1 mês",other:"{{count}} meses"},aboutXYears:{one:"cerca de 1 ano",other:"cerca de {{count}} anos"},xYears:{one:"1 ano",other:"{{count}} anos"},overXYears:{one:"mais de 1 ano",other:"mais de {{count}} anos"},almostXYears:{one:"quase 1 ano",other:"quase {{count}} anos"}},G2e=(e,t,r)=>{let n;const a=H2e[e];
725return typeof a=="string"?n=a:t===1?n=a.one:n=a.other.replace("{{count}}",String(t)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"em "+n:"há "+n:n},K2e={full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/yyyy"},X2e={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},Y2e={full:"{{date}} 'à s' {{time}}",long:"{{date}} 'à s' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Z2e={date:fu({formats:K2e,defaultWidth:"full"}),time:fu({formats:X2e,defaultWidth:"full"}),dateTime:fu({formats:Y2e,defaultWidth:"full"})},Q2e={lastWeek:e=>{const t=e.getDay();return"'"+(t===0||t===6?"último":"última")+"' eeee 'à s' p"},yesterday:"'ontem à s' p",today:"'hoje à s' p",tomorrow:"'amanhã à s' p",nextWeek:"eeee 'à s' p",other:"P"},J2e=(e,t,r,n)=>{const a=Q2e[e];return typeof a=="function"?a(t):a},eSe={narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","depois de cristo"]},tSe={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},rSe={narrow:["j","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["jan","fev","mar","abr","mai","jun","jul","ago","set","out","nov","dez"],wide:["janeiro","fevereiro","março","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"]},nSe={narrow:["D","S","T","Q","Q","S","S"],short:["dom","seg","ter","qua","qui","sex","sab"],abbreviated:["domingo","segunda","terça","quarta","quinta","sexta","sábado"],wide:["domingo","segunda-feira","terça-feira","quarta-feira","quinta-feira","sexta-feira","sábado"]},aSe={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"manhã",afternoon:"tarde",evening:"tarde",night:"noite"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"manhã",afternoon:"tarde",evening:"tarde",night:"noite"},wide:{am:"a.m.",pm:"p.m.",midnight:"meia-noite",noon:"meio-dia",morning:"manhã",afternoon:"tarde",evening:"tarde",night:"noite"}},sSe={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"da manhã",afternoon:"da tarde",evening:"da tarde",night:"da noite"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"da manhã",afternoon:"da tarde",evening:"da tarde",night:"da noite"},wide:{am:"a.m.",pm:"p.m.",midnight:"meia-noite",noon:"meio-dia",morning:"da manhã",afternoon:"da tarde",evening:"da tarde",night:"da noite"}},iSe=(e,t)=>{const r=Number(e);return(t==null?void 0:t.unit)==="week"?r+"ª":r+"º"},oSe={ordinalNumber:iSe,era:ls({values:eSe,defaultWidth:"wide"}),quarter:ls({values:tSe,defaultWidth:"wide",argumentCallback:e=>e-1}),month:ls({values:rSe,defaultWidth:"wide"}),day:ls({values:nSe,defaultWidth:"wide"}),dayPeriod:ls({values:aSe,defaultWidth:"wide",formattingValues:sSe,defaultFormattingWidth:"wide"})},lSe=/^(\d+)[ºªo]?/i,cSe=/\d+/i,uSe={narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|d\.?\s?c\.?)/i,wide:/^(antes de cristo|depois de cristo)/i},dSe={any:[/^ac/i,/^dc/i],wide:[/^antes de cristo/i,/^depois de cristo/i]},fSe={narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},mSe={any:[/1/i,/2/i,/3/i,/4/i]},hSe={narrow:/^[jfmajsond]/i,abbreviated:/^(jan|fev|mar|abr|mai|jun|jul|ago|set|out|nov|dez)/i,wide:/^(janeiro|fevereiro|março|abril|maio|junho|julho|agosto|setembro|outubro|novembro|dezembro)/i},pSe={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^fev/i,/^mar/i,/^abr/i,/^mai/i,/^jun/i,/^jul/i,/^ago/i,/^set/i,/^out/i,/^nov/i,/^dez/i]},gSe={narrow:/^(dom|[23456]ª?|s[aá]b)/i,short:/^(dom|[23456]ª?|s[aá]b)/i,abbreviated:/^(dom|seg|ter|qua|qui|sex|s[aá]b)/i,wide:/^(domingo|(segunda|ter[cç]a|quarta|quinta|sexta)([- ]feira)?|s[aá]bado)/i},vSe={short:[/^d/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^s[aá]/i],narrow:[/^d/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^s[aá]/i],any:[/^d/i,/^seg/i,/^t/i,/^qua/i,/^qui/i,/^sex/i,/^s[aá]b/i]},xSe={narrow:/^(a|p|mn|md|(da) (manhã|tarde|noite))/i,any:/^([ap]\.?\s?m\.?|meia[-\s]noite|meio[-\s]dia|(d
725a) (manhã|tarde|noite))/i},ySe={any:{am:/^a/i,pm:/^p/i,midnight:/^mn|^meia[-\s]noite/i,noon:/^md|^meio[-\s]dia/i,morning:/manhã/i,afternoon:/tarde/i,evening:/tarde/i,night:/noite/i}},bSe={ordinalNumber:j3({matchPattern:lSe,parsePattern:cSe,valueCallback:e=>parseInt(e,10)}),era:cs({matchPatterns:uSe,defaultMatchWidth:"wide",parsePatterns:dSe,defaultParseWidth:"any"}),quarter:cs({matchPatterns:fSe,defaultMatchWidth:"wide",parsePatterns:mSe,defaultParseWidth:"any",valueCallback:e=>e+1}),month:cs({matchPatterns:hSe,defaultMatchWidth:"wide",parsePatterns:pSe,defaultParseWidth:"any"}),day:cs({matchPatterns:gSe,defaultMatchWidth:"wide",parsePatterns:vSe,defaultParseWidth:"any"}),dayPeriod:cs({matchPatterns:xSe,defaultMatchWidth:"any",parsePatterns:ySe,defaultParseWidth:"any"})},g8={code:"pt-BR",formatDistance:G2e,formatLong:Z2e,formatRelative:J2e,localize:oSe,match:bSe,options:{weekStartsOn:0,firstWeekContainsDate:1}},Dx=["#0088FE","#00C49F","#FFBB28","#FF8042","#8884d8","#F87171","#3B82F6","#10B981"];function SM({data:e}){const t=e.map(n=>({...n,date:n.date,formattedDate:Hm(typeof n.date=="string"?tw(n.date):new Date(n.date),"dd/MM",{locale:g8})})),r=({active:n,payload:a,label:i})=>n&&a&&a.length?s.jsx(fe,{className:"p-2 shadow-md bg-white border",children:s.jsxs(me,{className:"p-2",children:[s.jsx("p",{className:"font-semibold text-sm",children:a[0].payload.formattedDate}),s.jsxs("p",{className:"text-xs text-[#0088FE]",children:["Sessões: ",s.jsx("span",{className:"font-medium",children:a[0].value})]}),s.jsxs("p",{className:"text-xs text-[#00C49F]",children:["Visualizações: ",s.jsx("span",{className:"font-medium",children:a[1].value})]})]})}):null;return s.jsx(hu,{width:"100%",height:"100%",children:s.jsxs(p8,{data:t,margin:{top:10,right:30,left:0,bottom:0},children:[s.jsxs("defs",{children:[s.jsxs("linearGradient",{id:"colorVisits",x1:"0",y1:"0",x2:"0",y2:"1",children:[s.jsx("stop",{offset:"5%",stopColor:"#0088FE",stopOpacity:.8}),s.jsx("stop",{offset:"95%",stopColor:"#0088FE",stopOpacity:.1})]}),s.jsxs("linearGradient",{id:"colorPageviews",x1:"0",y1:"0",x2:"0",y2:"1",children:[s.jsx("stop",{offset:"5%",stopColor:"#00C49F",stopOpacity:.8}),s.jsx("stop",{offset:"95%",stopColor:"#00C49F",stopOpacity:.1})]})]}),s.jsx(Ch,{strokeDasharray:"3 3",vertical:!1}),s.jsx(To,{dataKey:"formattedDate",tick:{fontSize:12},tickMargin:10}),s.jsx(Eo,{tick:{fontSize:12}}),s.jsx(fn,{content:s.jsx(r,{})}),s.jsx(yo,{}),s.jsx(Es,{type:"monotone",dataKey:"visits",name:"Sessões",stroke:"#0088FE",fillOpacity:1,fill:"url(#colorVisits)"}),s.jsx(Es,{type:"monotone",dataKey:"pageviews",name:"Visualizações",stroke:"#00C49F",fillOpacity:1,fill:"url(#colorPageviews)"})]})})}function PM({data:e}){const t=({active:r,payload:n,label:a})=>r&&n&&n.length?s.jsx(fe,{className:"p-2 shadow-md bg-white border",children:s.jsxs(me,{className:"p-2",children:[s.jsxs("p",{className:"font-semibold text-sm",children:[n[0].name,": ",n[0].value]}),n[0].payload.percentage&&s.jsxs("p",{className:"text-xs text-gray-600",children:[n[0].payload.percentage,"% do total"]}),n[0].payload.rate&&s.jsxs("p",{className:"text-xs text-gray-600",children:["Taxa de conversão: ",n[0].payload.rate.toFixed(1),"%"]})]})}):null;return s.jsx(hu,{width:"100%",height:"100%",children:s.jsxs(m8,{data:e,layout:"vertical",margin:{top:5,right:30,left:20,bottom:5},children:[s.jsx(Ch,{strokeDasharray:"3 3",horizontal:!0,vertical:!1}),s.jsx(To,{type:"number",tick:{fontSize:12}}),s.jsx(Eo,{dataKey:"name",type:"category",tick:{fontSize:12},width:100}),s.jsx(fn,{content:s.jsx(t,{})}),s.jsx(Ho,{dataKey:"value",fill:"#0088FE",children:e.map((r,n)=>s.jsx(Xs,{fill:Dx[n%Dx.length]},`cell-${n}`))})]})})}function CM({data:e}){const t=({active:r,payload:n,label:a})=>{if(r&&n&&n.length){const i=e.reduce((l,c)=>l+c.value,0),o=(n[0].value/i*100).toFixed(1);return s.jsx(fe,{className:"p-2 shadow-md bg-white border",children:s.jsxs(me,{className:"p-2",children:[s.jsx("p",{className:"font-semibold text-sm",children:n[0].name}),s.jsxs("p",{className:"text-xs text-gray-600",children:[o,"% (",n[0].value,")"]})]})})}return null};return s.jsx(hu,{width:"100%",height:"100%",children:s.jsxs(h8,{children:[s.jsx(Is,{data:e,cx:"50%",cy:"50%",innerRadius:30,outerRadius:60,fill:"#8884d8",paddingAngle:5,dataKey:"value",label:({name:r,percent:n})=>`${r}: ${(n*100).toFixed(1)}%`,labelLine:!1,children:e.map((r,n)=>s.jsx(Xs,{fill:Dx[n%Dx.length]},`cell-${n}`))}),s.jsx(fn,{content:s.jsx(t,{})}),s.jsx(yo,{})]})})}function jSe({data:e}){const t=[...e].sort((r,n)=>n.value-r.value);return s.jsxs("div",{className:"h-full",children:[s.jsxs("div",{className:"flex items-center justify-between mb-4",children:[s.jsx("h3",{className:"text-sm font-medium",children:"Estados"}),s.jsx("p",{className:"text-xs text-gray-500",children:"Porcentagem do total de visitas"})]}),s.jsx("div",{className:"space-y-3 overflow-y-auto max-h-[calc(100%-2rem)]",children:t.map((r,n)=>s.jsxs("div",{className:"space-y-1",children:[s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsx("span",{className:"text-sm font-medium",children:r.region}),s.jsxs("span",{className:"text-sm",children:[r.value," visitas"]})]}),s.jsx("div",{className:"h-2 bg-gray-100 rounded-full overflow-hidden",children:s.jsx("div",{className:"h-full bg-primary",style:{width:`${r.percentage}%`}})}),s.jsxs("div",{className:"flex justify-between text-xs text-gray-500",children:[s.jsxs("span",{children:[r.percentage,"% do total"]}),r.conversionRate&&s.jsxs("span",{children:["Taxa de conversão: ",r.conversionRate.toFixed(1),"%"]})]})]},n))})]})}function wSe({data:e,isLoading:t,onGenerateNew:r}){const[n,a]=b.useState({insights:!0,recommendations:!1,metrics:!1,improvements:!1,actions:!1});if(t)return s.jsxs("div",{className:"h-full flex flex-col items-center justify-center text-gray-500 p-8",children:[s.jsx("div",{className:"h-8 w-8 border-4 border-primary border-t-transparent roun
725ded-full animate-spin mb-4"}),s.jsx("p",{className:"text-center",children:"Carregando análise de IA..."})]});if(!e||e.length===0)return s.jsxs("div",{className:"h-full flex flex-col items-center justify-center text-gray-500 p-8",children:[s.jsx(rG,{className:"h-12 w-12 mb-4 text-gray-300"}),s.jsx("p",{className:"text-center",children:"Nenhuma análise de IA disponÃvel"}),s.jsx("p",{className:"text-sm text-center mt-1",children:"Gere uma nova análise para obter insights"}),r&&s.jsx(W,{variant:"outline",size:"sm",className:"mt-4",onClick:r,children:"Gerar análise"})]});const i={latest:e[0],history:e.slice(1)},o=i.latest;if(!o)return s.jsxs("div",{className:"h-full flex flex-col items-center justify-center text-gray-500",children:[s.jsx(dS,{className:"h-12 w-12 mb-4 text-yellow-500"}),s.jsx("p",{className:"text-center",children:"Erro ao carregar análises"}),s.jsx("p",{className:"text-sm text-center mt-1",children:"Tente novamente mais tarde"})]});const l=p=>{try{return Hm(tw(p),"dd 'de' MMMM, yyyy 'à s' HH:mm",{locale:g8})}catch{return p}},c=p=>{a({...n,[p]:!n[p]})},u=p=>{if(!p)return null;try{const v=JSON.parse(p);return Array.isArray(v)?s.jsx("ul",{className:"space-y-3 my-2",children:v.map((h,x)=>typeof h=="string"?s.jsxs("li",{className:"flex items-start gap-2",children:[s.jsx("div",{className:"mt-1 w-2 h-2 rounded-full bg-primary flex-shrink-0"}),s.jsx("span",{children:h})]},x):typeof h=="object"?s.jsx("li",{className:"mb-3 bg-gray-50 p-3 rounded-md border border-gray-100",children:Object.entries(h).map(([y,g],j)=>y==="keyword"||y==="segment"?s.jsx("div",{className:"font-medium text-base text-primary mb-1",children:String(g)},y):y==="volume"||y==="potentialSize"?s.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[s.jsxs("span",{className:"text-xs bg-gray-200 px-2 py-0.5 rounded-full",children:[y,":"]}),s.jsx("span",{className:"font-medium",children:String(g)})]},y):s.jsxs("div",{className:"flex items-center gap-2 text-sm text-gray-600 mb-1",children:[s.jsxs("span",{className:"capitalize text-xs",children:[y,":"]}),s.jsx("span",{children:String(g)})]},y))},x):null)}):typeof v=="object"?s.jsx("div",{className:"space-y-4 mt-2",children:Object.entries(v).map(([h,x])=>Array.isArray(x)?s.jsxs("div",{className:"bg-gray-50 p-3 rounded-md border border-gray-100",children:[s.jsx("h5",{className:"text-sm font-medium text-primary capitalize mb-2",children:h}),s.jsx("ul",{className:"space-y-2",children:x.map((y,g)=>s.jsxs("li",{className:"flex items-start gap-2 text-sm",children:[s.jsx("div",{className:"mt-1.5 w-1.5 h-1.5 rounded-full bg-gray-400 flex-shrink-0"}),s.jsx("span",{children:y})]},g))})]},h):s.jsxs("div",{className:"mb-1 flex flex-wrap items-center gap-2",children:[s.jsxs("span",{className:"font-medium text-sm bg-gray-100 px-2 py-0.5 rounded-md",children:[h,":"]}),s.jsx("span",{className:"text-sm",children:String(x)})]},h))}):p.split(` 726`).map((h,x)=>s.jsx("p",{className:"mb-2 last:mb-0",children:h},x))}catch{return p.split(` 727`).map((h,x)=>s.jsx("p",{className:"mb-2 last:mb-0",children:h},x))}},d={high:"bg-red-100 text-red-800 hover:bg-red-200",medium:"bg-yellow-100 text-yellow-800 hover:bg-yellow-200",low:"bg-green-100 text-green-800 hover:bg-green-200"},f={high:"Alta",medium:"Média",low:"Baixa"},m=p=>{switch(p.toLowerCase()){case"traffic":return s.jsx(Ue,{variant:"outline",className:"bg-blue-50",children:"Tráfego"});case"conversion":return s.jsx(Ue,{variant:"outline",className:"bg-green-50",children:"Conversão"});case"audience":return s.jsx(Ue,{variant:"outline",className:"bg-purple-50",children:"Público"});case"campaign":return s.jsx(Ue,{variant:"outline",className:"bg-amber-50",children:"Campanha"});case"keyword_segmentation":return s.jsx(Ue,{variant:"outline",className:"bg-indigo-50",children:"Palavras-chave & Segmentação"});default:return s.jsx(Ue,{variant:"outline",className:"bg-gray-50",children:"Análise"})}};return s.jsxs("div",{className:"space-y-4",children:[s.jsxs("div",{className:"flex justify-between items-start",children:[s.jsxs("div",{children:[s.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[s.jsx(hn,{className:"h-4 w-4 text-primary"}),s.jsx("h3",{className:"font-medium",children:"Análise de IA"}),m(o.analysisType)]}),s.jsxs("p",{className:"text-xs text-gray-500",children:["Gerado em ",l(o.generatedAt)]})]}
727),s.jsxs(Ue,{className:d[o.priority],children:["Prioridade ",f[o.priority]]})]}),s.jsx(ei,{}),s.jsxs("div",{className:"space-y-4",children:[s.jsxs("div",{className:"bg-white rounded-lg border shadow-sm",children:[s.jsxs("button",{className:"w-full flex justify-between items-center p-3 hover:bg-gray-50 transition-colors rounded-t-lg",onClick:()=>c("insights"),children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx("div",{className:"w-1 h-5 bg-blue-500 rounded-full"}),s.jsx("h4",{className:"font-medium text-blue-900",children:"Principais Insights"})]}),n.insights?s.jsx(Oc,{className:"h-4 w-4 text-gray-500"}):s.jsx(os,{className:"h-4 w-4 text-gray-500"})]}),n.insights&&s.jsx("div",{className:"p-4 pt-2 text-gray-700 border-t",children:u(o.insights)})]}),s.jsxs("div",{className:"bg-white rounded-lg border shadow-sm",children:[s.jsxs("button",{className:"w-full flex justify-between items-center p-3 hover:bg-gray-50 transition-colors rounded-t-lg",onClick:()=>c("recommendations"),children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx("div",{className:"w-1 h-5 bg-green-500 rounded-full"}),s.jsx("h4",{className:"font-medium text-blue-900",children:"Recomendações"})]}),n.recommendations?s.jsx(Oc,{className:"h-4 w-4 text-gray-500"}):s.jsx(os,{className:"h-4 w-4 text-gray-500"})]}),n.recommendations&&s.jsx("div",{className:"p-4 pt-2 text-gray-700 border-t",children:u(o.recommendations)})]}),o.metricsSummary&&s.jsxs("div",{className:"bg-white rounded-lg border shadow-sm",children:[s.jsxs("button",{className:"w-full flex justify-between items-center p-3 hover:bg-gray-50 transition-colors rounded-t-lg",onClick:()=>c("metrics"),children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx("div",{className:"w-1 h-5 bg-purple-500 rounded-full"}),s.jsx("h4",{className:"font-medium text-blue-900",children:"Resumo das Métricas"})]}),n.metrics?s.jsx(Oc,{className:"h-4 w-4 text-gray-500"}):s.jsx(os,{className:"h-4 w-4 text-gray-500"})]}),n.metrics&&s.jsx("div",{className:"p-4 pt-2 text-gray-700 border-t",children:u(o.metricsSummary)})]}),o.improvementAreas&&s.jsxs("div",{className:"bg-white rounded-lg border shadow-sm",children:[s.jsxs("button",{className:"w-full flex justify-between items-center p-3 hover:bg-gray-50 transition-colors rounded-t-lg",onClick:()=>c("improvements"),children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx("div",{className:"w-1 h-5 bg-yellow-500 rounded-full"}),s.jsx("h4",{className:"font-medium text-blue-900",children:"Ãreas de Melhoria"})]}),n.improvements?s.jsx(Oc,{className:"h-4 w-4 text-gray-500"}):s.jsx(os,{className:"h-4 w-4 text-gray-500"})]}),n.improvements&&s.jsx("div",{className:"p-4 pt-2 text-gray-700 border-t",children:u(o.improvementAreas)})]}),o.automaticActions&&s.jsxs("div",{className:"bg-white rounded-lg border shadow-sm",children:[s.jsxs("button",{className:"w-full flex justify-between items-center p-3 hover:bg-gray-50 transition-colors rounded-t-lg",onClick:()=>c("actions"),children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx("div",{className:"w-1 h-5 bg-rose-500 rounded-full"}),s.jsx("h4",{className:"font-medium text-blue-900",children:"Ações Sugeridas"})]}),n.actions?s.jsx(Oc,{className:"h-4 w-4 text-gray-500"}):s.jsx(os,{className:"h-4 w-4 text-gray-500"})]}),n.actions&&s.jsx("div",{className:"p-4 pt-2 text-gray-700 border-t",children:u(o.automaticActions)})]})]}),i.history&&i.history.length>0&&s.jsxs("div",{className:"mt-4 pt-4 border-t",children:[s.jsxs("div",{className:"flex items-center justify-between mb-2",children:[s.jsx("h4",{className:"text-sm font-medium",children:"Histórico de Análises"}),s.jsxs(W,{variant:"ghost",size:"sm",className:"text-xs",children:["Ver todos ",s.jsx(cS,{className:"h-3 w-3 ml-1"})]})]}),s.jsx("div",{className:"space-y-2 max-h-40 overflow-y-auto pr-2",children:i.history.map((p,v)=>s.jsxs("div",{className:"text-xs p-2 bg-gray-50 rounded",children:[s.jsxs("div",{className:"flex justify-between",children:[s.jsx("span",{children:Hm(tw(p.generatedAt),"dd/MM/yyyy")}),s.jsx(Ue,{className:`text-xs ${d[p.priority]}`,children:f[p.priority]})]}),s.jsx("p",{className:"mt-1 text-gray-700 line-clamp-2",children:p.insights})]},v))})]})]})}function NSe({onGenerateAiAnalysis:e}){var C,A,O,E,k,M,D,F,L,B,R,I,G,U,K,ce,pe,Ke,q,Q,we,Z,V,ee,H,Re,Pe,te,Ie,jt,Dr,ur,Qa,Wr,T,z,X,oe,le,ne,ye,Qe,ht,Wt,Oi;const[t,r]=wa(),[n,a]=b.useState("30days"),[i,o]=b.useState("overview"),[l,c]=b.useState("all"),u=()=>{const de=new Date;let kt=new Date;switch(n){case"today":kt.setHours(0,0,0,0);break;case"7days":kt=ng(de,{days:7});break;case"30days":kt=ng(de,{days:30});break;case"90days":kt=ng(de,{days:90});break;
727case"custom":kt=ng(de,{days:30});break}return{startDate:Hm(kt,"yyyy-MM-dd"),endDate:Hm(de,"yyyy-MM-dd")}},{startDate:d,endDate:f}=u(),{data:m,isLoading:p}=Gt({queryKey:["/api/admin/analytics/traffic",d,f],queryFn:async()=>(await ft("GET",`/api/admin/analytics/traffic?startDate=${d}&endDate=${f}`)).json()}),{data:v,isLoading:h}=Gt({queryKey:["/api/admin/analytics/conversions",d,f],queryFn:async()=>(await ft("GET",`/api/admin/analytics/conversions?startDate=${d}&endDate=${f}`)).json()}),{data:x,isLoading:y}=Gt({queryKey:["/api/admin/analytics/devices",d,f],queryFn:async()=>(await ft("GET",`/api/admin/analytics/devices?startDate=${d}&endDate=${f}`)).json()}),{data:g,isLoading:j}=Gt({queryKey:["/api/admin/analytics/regions",d,f],queryFn:async()=>(await ft("GET",`/api/admin/analytics/regions?startDate=${d}&endDate=${f}`)).json()}),{data:S,isLoading:w}=Gt({queryKey:["/api/admin/analytics/ai-insights",n],queryFn:async()=>(await ft("GET",`/api/admin/analytics/ai-insights?period=${n}`)).json()}),N=de=>de>=1e6?(de/1e6).toFixed(1)+"M":de>=1e3?(de/1e3).toFixed(1)+"k":de.toString(),P=()=>{switch(n){case"today":return"Hoje";case"7days":return"Ãltimos 7 dias";case"30days":return"Ãltimos 30 dias";case"90days":return"Ãltimos 90 dias";case"custom":return"PerÃodo personalizado"}};return s.jsxs("div",{className:"space-y-6",children:[s.jsxs("div",{className:"flex flex-col sm:flex-row justify-between items-start sm:items-center gap-4",children:[s.jsxs("div",{children:[s.jsx("h2",{className:"text-2xl font-bold",children:"Análises Avançadas"}),s.jsx("p",{className:"text-gray-500",children:"Monitoramento detalhado do desempenho do site"})]}),s.jsxs("div",{className:"flex items-center gap-2 self-end",children:[s.jsx(Ey,{className:"h-4 w-4 text-gray-500"}),s.jsx("span",{className:"text-sm font-medium",children:P()}),s.jsx(W,{variant:"outline",size:"sm",className:"ml-2",children:s.jsx(os,{className:"h-4 w-4"})}),s.jsxs("div",{className:"ml-4",children:[s.jsxs(W,{size:"sm",variant:"outline",className:"mr-2",children:[s.jsx(ca,{className:"h-4 w-4 mr-1"}),"Exportar"]}),s.jsxs(W,{size:"sm",onClick:de=>{de.preventDefault(),de.stopPropagation(),console.log("Botão 'Analisar com IA' clicado - função chamada"),sessionStorage.setItem("openAnalysisModal","true"),console.log("Redirecionando para página de análises completas e iniciando modal de análise"),r("/admin/analytics")},className:"bg-gradient-to-r from-blue-600 to-indigo-600 hover:from-blue-700 hover:to-indigo-700 text-white shadow-md animate-pulse-subtle",children:[s.jsx(hn,{className:"h-4 w-4 mr-1.5 text-yellow-200 animate-sparkle"}),"Analisar com IA"]})]})]})]}),s.jsxs("div",{className:"flex overflow-auto gap-2 pb-2 sm:hidden",children:[s.jsx(W,{variant:n==="today"?"default":"outline",size:"sm",onClick:()=>a("today"),children:"Hoje"}),s.jsx(W,{variant:n==="7days"?"default":"outline",size:"sm",onClick:()=>a("7days"),children:"7 dias"}),s.jsx(W,{variant:n==="30days"?"default":"outline",size:"sm",onClick:()=>a("30days"),children:"30 dias"}),s.jsx(W,{variant:n==="90days"?"default":"outline",size:"sm",onClick:()=>a("90days"),children:"90 dias"})]}),s.jsxs(ql,{defaultValue:"overview",onValueChange:o,className:"w-full",children:[s.jsxs(Ao,{className:"mb-4",children:[s.jsx(vt,{value:"overview",children:"Visão Geral"}),s.jsx(vt,{value:"traffic",children:"Tráfego"}),s.jsx(vt,{value:"conversion",children:"Conversão"}),s.jsx(vt,{value:"audience",children:"Audiência"}),s.jsx(vt,{value:"ads",children:"Campanhas Publicitárias"}),s.jsx(vt,{value:"ai-insights",children:"Insights de IA"})]}),s.jsxs(xt,{value:"overview",className:"p-0",children:[s.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4 mb-6",children:[s.jsx(fe,{children:s.jsx(me,{className:"py-4",children:p?s.jsx(tr,{className:"h-24"}):s.jsxs("div",{children:[s.jsx("p",{className:"text-sm text-gray-500",children:"Visitantes"}),s.jsx("h3",{className:"text-2xl font-bold mt-1",children:N(((C=m==null?void 0:m.data)==null?void 0:C.totalVisits)||0)}),s.jsxs("div",{className:"flex items-center mt-2",children:[(((A=m==null?void 0:m.data)==null?void 0:A.previousPeriodChange)||0)>=0?s.jsxs(Ue,{className:"bg-green-100 text-green-800 hover:bg-green-200",children:[s.jsx(un,{className:"h-3 w-3 mr-1"}),"+",((O=m==null?void 0:m.data)==null?void 0:O.previousPeriodChange)||0,"%"]}):s.jsxs(Ue,{className:"bg-red-100 text-red-800 hover:bg-red-200",children:[s.jsx(xc,{className:"h-3 w-3 mr-1"}),((E=m==null?void 0:m.data)==null?void 0:E.previousPeriodChange)||0,"%"]}),s.jsx("span",{className:"text-xs text-gray-500 ml-2",children:"vs. perÃodo anterior"})]})]})})}),s.jsx(fe,{children:s.jsx(me,{className:"py-4",children:h?s.jsx(tr,{className:"h-24"}):s.jsxs("div",{children:[s.jsx("p",{className:"text-sm text-gray-500",children:"Taxa de Conversão"}),s.jsxs("h3",{className:"text-2xl font-bold mt-1",children:[(((k=v==null?void 0:v.data)==null?void 0:k.conversionRate)||0).toFixed(2),"%"]}),s.jsxs("div",{className:"flex items-center mt-2",children:[(((M=v==null?void 0:v.data)==null?void 0:M.previousPeriodChange)||0)>=0?s.jsxs(Ue,{className:"bg-green-100 text-green-800 hover:bg-green-200",children:[s.jsx(un,{className:"h-3 w-3 mr-1"}),"+",((D=v==null?void 0:v.data)==null?void 0:D.previousPeriodChange)||0,"%"]}):s.jsxs(Ue,{className:"bg-red-100 text-red-800 hover:bg-red-200",children:[s.jsx(xc,{className:"h-3 w-3 mr-1"}),((F=v==null?void 0:v.data)==null?void 0:F.previousPeriodChange)||0,"%"]}),s.jsx("span",{className:"text-xs text-gray-500 ml-2",children:"vs. perÃodo anterior"})]})]})})}),s.jsx(fe,{children:s.jsx(me,{className:"py-4",children:p?s.jsx(tr,{className:"h-24"}):s.jsxs("div",{children:[s.jsx("p",{className:"text-sm text-gray-500",children:"Tempo Médio no Site"}),s.jsx("h3",{className:"text-2xl font-bold mt-1",children:((L=m==null?void 0:m.data)==null?void 0:L.avgTimeOnSite)||"0:00"}),s.jsxs("div",{className:"flex items-center mt-2",children:[(((B=m==null?void 0:m.data)==null?void 0:B.timeOnSiteChange)||0)>=0?s.jsxs(Ue,{className:"bg-green-100 text-green-800 hover:bg-green-200",children:[s.jsx(un,{className:"h-3 w-3 mr-1"}),"+",((R=m==null?void 0:m.data)==null?void 0:R.timeOnSiteChange)||0,"%"]}):s.jsxs(Ue,{className:"bg-red-100 text-red-800 hover:bg-red-200",children:[s.jsx(xc,{className:"h-3 w-3 mr-1"}),((I=m==null?void 0:m.data)==null?void 0:I.timeOnSiteChange)||0,"%"]}),s.jsx("span",{className:"text-xs text-gray-500 ml-2",children:"vs. perÃodo anterior"})]})]})})}),s.jsx(fe,{children:s.jsx(me,{className:"py-4",children:p?s.jsx(tr,{className:"h-24"}):s.jsxs("div",{children:[s.jsx("p",{className:"text-sm text-gray-500",children:"Taxa de Rejeição"}),s.jsxs("h3",{className:"text-2xl font-bold mt-1",children:[(((G=m==null?void 0:m.data)==null?void 0:G.bounceRate)||0).toFixed(2),"%"]}),s.jsxs("div",{className:"flex items-center mt-2",children:[(((U=m==null?void 0:m.data)==null?void 0:U.bounceRateChange)||0)<=0?s.jsxs(Ue,{className:"bg-green-100 text-green-800 hover:bg-green-200",children:[s.jsx(un,{className:"h-3 w-3 mr-1"}),"-",Math.abs(((K=m==null?void 0:m.data)==null?void 0:K.bounceRateChange)||0),"%"]}):s.jsxs(Ue,{className:"bg-red-100 text-red-800 hover:bg-red-200",children:[s.jsx(xc,{className:"h-3 w-3 mr-1"}),"+",((ce=m==null?void 0:m.data)==null?void 0:ce.bounceRateChange)||0,"%"]}),s.jsx("span",{className:"text-xs text-gray-500 ml-2",children:"vs. perÃodo anterior"})]})]})})})]}),s.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6",children:[s.jsxs(fe,{className:"lg:col-span-3",children:[s.jsxs(Me,{className:"pb-2",children:[s.jsx(De,{className:"text-lg",children:"Tendência de Tráfego"}),s.jsx(Ye,{children:"Visitas e visualizações ao longo do tempo"})]}),s.jsx(me,{className:"h-[300px]",children:p?s.jsx("div",{className:"h-full flex items-center justify-center",children:s.jsx(tr,{className:"h-[250px] w-full"})}):s.jsx(SM,{data:((pe=m==null?void 0:m.data)==null?void 0:pe.dailyStats)||[]})})]}),s.jsxs(fe,{className:"lg:col-span-2",children:[s.jsxs(Me,{className:"pb-2",children:[s.jsx(De,{className:"text-lg",children:"Conversões por Origem"}),s.jsx(Ye,{children:"Número de conversões por canal de marketing"})]}),s.jsx(me,{className:"h-[300px]",children:h?s.jsx("div",{className:"h-full flex items-center justify-center",children:s.jsx(tr,{className:"h-[250px] w-full"})}):s.jsx(PM,{data:((q=(Ke=v==null?void 0:v.data)==null?void 0:Ke.conversionsBySource)==null?void 0:q.map(de=>({name:de.source,value:de.conversions,rate:de.rate})))||[]})})]}),s.jsxs(fe,{children:[s.jsxs(Me,{className:"pb-2",children:[s.jsx(De,{className:"text-lg",children:"Dispositivos"}),s.jsx(Ye,{children:"Distribuição por tipo de dispositivo"})]}),s.jsx(me,{className:"h-[300px]",children:y?s.jsx("div",{className:"h-full flex items-center justify-center",children:s.jsx(tr,{className:"h-[250px] w-full rounded-full"})}):s.jsx(CM,{data:((we=(Q=x==null?void 0:x.data)==null?void 0:Q.devices)==null?void 0:we.map(de=>({name:de.deviceType,value:de.count})))||[]})})]})]})]}),s.jsx(xt,{value:"traffic",className:"p-0",children:s.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6",children:[s.jsxs(fe,{className:"lg:col-span-3",children:[s.jsxs(Me,{className:"pb-2",children:[s.jsx(De,{className:"text-lg",children:"Tendência de Tráfego"}),s.jsx(Ye,{children:"Visitas e visualizações ao longo do tempo"})]}),s.jsx(me,{className:"h-[400px]",children:p?s.jsx("div",{className:"h-full flex items-center justify-center",children:s.jsx(tr,{className:"h-[350px] w-full"})}):s.jsx(SM,{data:((Z=m==null?void 0:m.data)==null?void 0:Z.dailyStats)||[]})})]}),s.jsxs(fe,{children:[s.jsxs(Me,{className:"pb-2",children:[s.jsx(De,{className:"text-lg",children:"Fontes de Tráfego"}),s.jsx(Ye,{children:"Origem dos visitantes"})]}),s.jsx(me,{children:p?s.jsx("div",{className:"space-y-2",children:[1,2,3,4,5].map(de=>s.jsx(tr,{className:"h-6"},de))}):s.jsx("div",{className:"space-y-4",children:(ee=(V=m==null?void 0:m.data)==null?void 0:V.sources)==null?void 0:ee.map((de,kt)=>s.jsxs("div",{className:"space-y-1",children:[s.jsxs("div",{className:"flex justify-between items-center",children:[s.jsx("span",{className:"text-sm font-medium",children:de.source}),s.jsxs("span",{className:"text-sm",children:[de.count," visitas"]})]}),s.jsx("div",{className:"h-2 bg-gray-100 rounded-full overflow-hidden",children:s.jsx("div",{className:"h-full bg-primary",style:{width:`${de.percentage}%`}})})]},kt))})})]}),s.jsxs(fe,{className:"lg:col-span-2",children:[s.jsxs(Me,{className:"pb-2",children:[s.jsx(De,{className:"text-lg",children:"Páginas Mais Visitadas"}),s.jsx(Ye,{children:"Páginas com maior tráfego"})]}),s.jsx(me,{children:p?s.jsx("div",{className:"space-y-2",children:[1,2,3,4,5].map(de=>s.jsx(tr,{className:"h-10"},de))}):s.jsxs("div",{className:"space-y-3",children:[s.jsxs("div",{className:"grid grid-cols-12 text-xs text-gray-500 pb-2",children:[s.jsx("div",{className:"col-span-5",children:"Página"}),s.jsx("div",{className:"col-span-2 text-right",children:"Visitas"}),s.jsx("div",{className:"col-span-3 text-right",children:"Tempo médio"}),s.jsx("div",{className:"col-span-2 text-right",children:"Taxa de rejeição"})]}),s.jsx(ei,{}),(((H=m==null?void 0:m.data)==null?void 0:H.topPages)||[]).map((de,kt)=>s.jsxs("div",{className:"grid grid-cols-12 items-center py-1",children:[s.jsx("div",{className:"col-span-5 text-sm",children:de.page}),s.jsx("div",{className:"col-span-2 text-right text-sm",children:de.visits}),s.jsx("div",{className:"col-span-3 text-right text-sm",children:de.avgTime||"0:00"}),s.jsxs("div",{className:"col-span-2 text-right text-sm",children:[de.bounceRate||0,"%"]})]},kt))]})})]})]})}),s.jsx(xt,{value:"conversion",className:"p-0",children:s.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6",children:[s.jsxs("div",{className:"lg:col-span-3 grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4",children:[s.jsx(fe,{children:s.jsx(me,{className:"py-4",children:h?s.jsx(tr,{className:"h-24"}):s.jsxs("div",{children:[s.jsx("p",{className:"text-sm text-gray-500",children:"Total de Conversões"}),s.jsx("h3",{className:"text-2xl font-bold mt-1",children:N(((Re=v==null?void 0:v.data)==null?void 0:Re.totalConversions)||0)}),s.jsx("div",{className:"flex items-center mt-2",children:(((Pe=v==null?void 0:v.data)==null?void 0:Pe.previousPeriodChange)||0)>=0?s.jsxs(Ue,{className:"bg-green-100 text-green-800 hover:bg-green-200",children:[s.jsx(un,{className:"h-3 w-3 mr-1"}),"+",((te=v==null?void 0:v.data)==null?void 0:te.previousPeriodChange)||0,"%"]}):s.jsxs(Ue,{className:"bg-red-100 text-red-800 hover:bg-red-200",children:[s.jsx(xc,{className:"h-3 w-3 mr-1"}),((Ie=v==null?void 0:v.data)==null?void 0:Ie.previousPeriodChange)||0,"%"]})})]})})}),s.jsx(fe,{children:s.jsx(me,{className:"py-4",children:h?s.jsx(tr,{className:"h-24"}):s.jsxs("div",{children:[s.jsx("p",{className:"text-sm text-gray-500",children:"Taxa de Conversão"}),s.jsxs("h3",{className:"text-2xl font-bold mt-1",children:[(((jt=v==null?void 0:v.data)==null?void 0:jt.conversionRate)||0).toFixed(2),"%"]}),s.jsx("p",{className:"text-xs text-gray-500 mt-2",children:"Média do perÃodo"})]})})}),s.jsx(fe,{children:s.jsx(me,{className:"py-4",children:h?s.jsx(tr,{className:"h-24"}):s.jsxs("div",{children:[s.jsx("p",{className:"text-sm text-gray-500",children:"Valor Médio"}),s.jsxs("h3",{className:"text-2xl font-bold mt-1",children:["R$ ",(((Dr=v==null?void 0:v.data)==null?void 0:Dr.avgValue)||0).toFixed(2)]}),s.jsx("p",{className:"text-xs text-gray-500 mt-2",children:"Por conversão"})]})})}),s.jsx(fe,{children:s.jsx(me,{className:"py-4",children:h?s.jsx(tr,{className:"h-24"}):s.jsxs("div",{children:[s.jsx("p",{className:"text-sm text-gray-500",children:"Custo por Aquisição"}),s.jsxs("h3",{className:"text-2xl font-bold mt-1",children:["R$ ",(((ur=v==null?void 0:v.data)==null?void 0:ur.cpa)||0).toFixed(2)]}),s.jsx("p",{className:"text-xs text-gray-500 mt-2",children:"Estimado para o perÃodo"})]})})})]}),s.jsxs(fe,{className:"lg:col-span-3",children:[s.jsxs(Me,{className:"pb-2",children:[s.jsx(De,{className:"text-lg",children:"Funil de Conversão"}),s.jsx(Ye,{children:"Taxa de conversão em cada etapa"})]}),s.jsx(me,{className:"h-[300px]",children:h?s.jsx("div",{className:"h-full flex items-center justify-center",children:s.jsx(tr,{className:"h-[250px] w-full"})}):s.jsx(PM,{data:((Wr=(Qa=v==null?void 0:v.data)==null?void 0:Qa.funnelStages)==null?void 0:Wr.map(de=>({name:de.name,value:de.users,percentage:de.dropoffRate})))||[]})})]}),s.jsxs(fe,{className:"lg:col-span-2",children:[s.jsxs(Me,{className:"pb-2",children:[s.jsx(De,{className:"text-lg",children:"Conversões por Origem"}),s.jsx(Ye,{children:"Desempenho por canal de marketing"})]}),s.jsx(me,{children:h?s.jsx("div",{className:"space-y-2",children:[1,2,3,4,5].map(de=>s.jsx(tr,{className:"h-10"},de))}):s.jsxs("div",{className:"space-y-3",children:[s.jsxs("div",{className:"grid grid-cols-12 text-xs text-gray-500 pb-2",children:[s.jsx("div",{className:"col-span-4",children:"Origem"}),s.jsx("div",{className:"col-span-3 text-right",children:"Conversões"}),s.jsx("div",{className:"col-span-2 text-right",children:"Taxa"}),s.jsx("div",{className:"col-span-3 text-right",children:"Valor (R$)"})]}),s.jsx(ei,{}),(((T=v==null?void 0:v.data)==null?void 0:T.conversionsBySource)||[]).map((de,kt)=>s.jsxs("div",{className:"grid grid-cols-12 items-center py-1",children:[s.jsx("div",{className:"col-span-4 text-sm",children:de.source}),s.jsx("div",{className:"col-span-3 text-right text-sm",children:de.conversions}),s.jsxs("div",{className:"col-span-2 text-right text-sm",children:[de.rate.toFixed(1),"%"]}),s.jsx("div",{className:"col-span-3 text-right text-sm",children:de.value?de.value.toFixed(2):"0.00"})]},kt))]})})]}),s.jsxs(fe,{children:[s.jsxs(Me,{className:"pb-2",children:[s.jsx(De,{className:"text-lg",children:"Conversão por Hora"}),s.jsx(Ye,{children:"Melhores horários para conversão"})]}),s.jsx(me,{children:h?s.jsx("div",{className:"space-y-2",children:[1,2,3,4,5].map(de=>s.jsx(tr,{className:"h-6"},de))}):s.jsx("div",{className:"grid grid-cols-12 gap-1",children:Array.from({length:24}).map((de,kt)=>{var _p;const Op=(((_p=v==null?void 0:v.data)==null?void 0:_p.conversionsByHour)||[]).find(kp=>kp.hour===kt),gc=Op?Math.min(Math.max(Op.rate*10,10),100):0;return s.jsxs("div",{className:"col-span-2 sm:col-span-1 h-14 flex
727 flex-col items-center justify-end",children:[s.jsx("div",{className:"w-full bg-primary",style:{height:`${gc}%`,opacity:gc?.2+gc/100*.8:.1}}),s.jsxs("span",{className:"text-xs mt-1",children:[kt,"h"]})]},kt)})})})]})]})}),s.jsx(xt,{value:"audience",className:"p-0",children:s.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6",children:[s.jsxs(fe,{children:[s.jsxs(Me,{className:"pb-2",children:[s.jsx(De,{className:"text-lg",children:"Dispositivos"}),s.jsx(Ye,{children:"Distribuição por tipo de dispositivo"})]}),s.jsx(me,{className:"h-[300px]",children:y?s.jsx("div",{className:"h-full flex items-center justify-center",children:s.jsx(tr,{className:"h-[250px] w-full rounded-full"})}):s.jsx(CM,{data:((X=(z=x==null?void 0:x.data)==null?void 0:z.devices)==null?void 0:X.map(de=>({name:de.deviceType,value:de.count})))||[]})})]}),s.jsxs(fe,{children:[s.jsxs(Me,{className:"pb-2",children:[s.jsx(De,{className:"text-lg",children:"Novos vs. Recorrentes"}),s.jsx(Ye,{children:"Distribuição de visitantes"})]}),s.jsx(me,{className:"h-[300px]",children:y?s.jsx("div",{className:"h-full flex items-center justify-center",children:s.jsx(tr,{className:"h-[250px] w-full rounded-full"})}):s.jsxs("div",{className:"h-full flex flex-col justify-center items-center",children:[s.jsxs("div",{className:"relative h-36 w-36",children:[s.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:s.jsxs("div",{className:"text-center",children:[s.jsx("p",{className:"text-xs text-gray-500",children:"Total"}),s.jsx("p",{className:"text-xl font-bold",children:N((((oe=x==null?void 0:x.data)==null?void 0:oe.newVisitorsPercentage)||0)+(((le=x==null?void 0:x.data)==null?void 0:le.returningVisitorsPercentage)||0))})]})}),s.jsxs("svg",{viewBox:"0 0 36 36",className:"h-full w-full transform -rotate-90",children:[s.jsx("path",{d:"M18 2.0845 a 15.9155 15.9155 0 0 1 0 31.831 a 15.9155 15.9155 0 0 1 0 -31.831",fill:"none",stroke:"#E5E7EB",strokeWidth:"3",strokeDasharray:"100, 100"}),s.jsx("path",{d:"M18 2.0845 a 15.9155 15.9155 0 0 1 0 31.831 a 15.9155 15.9155 0 0 1 0 -31.831",fill:"none",stroke:"#3B82F6",strokeWidth:"3",strokeDasharray:`${((ne=x==null?void 0:x.data)==null?void 0:ne.newVisitorsPercentage)||0}, 100`})]})]}),s.jsxs("div",{className:"grid grid-cols-2 gap-6 mt-6",children:[s.jsxs("div",{className:"flex items-center",children:[s.jsx("div",{className:"h-3 w-3 bg-primary mr-2"}),s.jsxs("div",{children:[s.jsx("p",{className:"text-sm font-medium",children:"Novos"}),s.jsxs("p",{className:"text-xs text-gray-500",children:[((ye=x==null?void 0:x.data)==null?void 0:ye.newVisitorsPercentage)||0,"%"]})]})]}),s.jsxs("div",{className:"flex items-center",children:[s.jsx("div",{className:"h-3 w-3 bg-gray-200 mr-2"}),s.jsxs("div",{children:[s.jsx("p",{className:"text-sm font-medium",children:"Recorrentes"}),s.jsxs("p",{className:"text-xs text-gray-500",children:[((Qe=x==null?void 0:x.data)==null?void 0:Qe.returningVisitorsPercentage)||0,"%"]})]})]})]})]})})]}),s.jsxs(fe,{children:[s.jsxs(Me,{className:"pb-2",children:[s.jsx(De,{className:"text-lg",children:"Navegadores"}),s.jsx(Ye,{children:"Distribuição por tipo de navegador"})]}),s.jsx(me,{children:y?s.jsx("div",{className:"space-y-2",children:[1,2,3,4,5].map(de=>s.jsx(tr,{className:"h-6"},de))}):s.jsx("div",{className:"space-y-4",children:(((ht=x==null?void 0:x.data)==null?void 0:ht.browsers)||[]).map((de,kt)=>s.jsxs("div",{className:"space-y-1",children:[s.jsxs("div",{className:"flex justify-between items-center",children:[s.jsx("span",{className:"text-sm font-medium",children:de.name}),s.jsxs("span",{className:"text-sm",children:[de.percentage,"%"]})]}),s.jsx("div",{className:"h-2 bg-gray-100 rounded-full overflow-hidden",children:s.jsx("div",{className:"h-full bg-primary",style:{width:`${de.percentage}%`}})})]},kt))})})]}),s.jsxs(fe,{className:"lg:col-span-3",children:[s.jsxs(Me,{className:"pb-2",children:[s.jsx(De,{className:"text-lg",children:"Distribuição por Estado"}),s.jsx(Ye,{children:"Análise de tráfego por região"})]}),s.jsx(me,{className:"h-[400px]",children:j?s.jsx("div",{className:"h-full flex items-center justify-center",children:s.jsx(tr,{className:"h-[350px] w-full"})}):s.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4 h-full",children:[s.jsx("div",{className:"h-full",children:s.jsx("div",{className:"flex items-center justify-center h-full text-gray-400",children:s.jsxs("p",{className:"text-center",children:[s.jsx(jG,{className:"h-16 w-16 mx-auto mb-4 opacity-30"}),"Mapa interativo seria exibido aqui"]})})}),s.jsx("div",{className:"h-full",children:s.jsx(jSe,{data:(((Wt=g==null?void 0:g.data)==null?void 0:Wt.regions)||[]).map(de=>({region:de.region,value:de.count,percentage:de.percentage,conversionRate:de.conversionRate}))})})]})})]}),s.jsxs(fe,{className:"lg:col-span-3",children:[s.jsxs(Me,{className:"pb-2",children:[s.jsx(De,{className:"text-lg",children:"Principais Cidades"}),s.jsx(Ye,{children:"Cidades com maior engajamento"})]}),s.jsx(me,{children:j?s.jsx("div",{className:"space-y-2",children:[1,2,3,4,5].map(de=>s.jsx(tr,{className:"h-10"},de))}):s.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-x-8 gap-y-2",children:(((Oi=g==null?void 0:g.data)==null?void 0:Oi.cities)||[]).slice(0,10).map((de,kt)=>s.jsxs("div",{className:"flex items-center justify-between py-1",children:[s.jsxs("div",{className:"flex items-center",children:[s.jsxs("span",{className:"text-gray-400 text-sm mr-3 w-4 text-right",children:[kt+1,"."]}),s.jsx("span",{className:"text-sm",children:de.city})]}),s.jsx("div",{className:"flex items-center",children:s.jsxs(Ue,{className:"bg-blue-50 text-blue-800 hover:bg-blue-100 border-0",children:[de.percentage,"%"]})})]},kt))})})]})]})}),s.jsx(xt,{value:"ads",className:"p-0",children:s.jsxs("div",{className:"space-y-6",children:[s.jsxs("div",{className:"bg-background p-2 rounded-lg border inline-flex",children:[s.jsx(W,{variant:l==="all"?"default":"ghost",size:"sm",onClick:()=>c("all"),children:"Todas"}),s.jsxs(W,{variant:l==="meta"?"default":"ghost",size:"sm",onClick:()=>c("meta"),children:[s.jsx(Dm,{className:"h-4 w-4 mr-2"}),"Meta Ads"]}),s.jsxs(W,{variant:l==="google"?"default":"ghost",size:"sm",onClick:()=>c("google"),children:[s.jsx(Cv,{className:"h-4 w-4 mr-2"}),"Google Ads"]}),s.jsxs(W,{variant:l==="tiktok"?"default":"ghost",size:"sm",onClick:()=>
727c("tiktok"),children:[s.jsx(GT,{className:"h-4 w-4 mr-2"}),"TikTok Ads"]})]}),s.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4",children:[s.jsx(fe,{children:s.jsx(me,{className:"py-4",children:s.jsxs("div",{children:[s.jsx("p",{className:"text-sm text-gray-500",children:"Custo Total"}),s.jsx("h3",{className:"text-2xl font-bold mt-1",children:"R$ 1.345,00"}),s.jsxs("div",{className:"flex items-center mt-2",children:[s.jsxs(Ue,{className:"bg-red-100 text-red-800 hover:bg-red-200",children:[s.jsx(un,{className:"h-3 w-3 mr-1"}),"+8,5%"]}),s.jsx("span",{className:"text-xs text-gray-500 ml-2",children:"vs. perÃodo anterior"})]})]})})}),s.jsx(fe,{children:s.jsx(me,{className:"py-4",children:s.jsxs("div",{children:[s.jsx("p",{className:"text-sm text-gray-500",children:"Conversões de Anúncios"}),s.jsx("h3",{className:"text-2xl font-bold mt-1",children:"127"}),s.jsxs("div",{className:"flex items-center mt-2",children:[s.jsxs(Ue,{className:"bg-green-100 text-green-800 hover:bg-green-200",children:[s.jsx(un,{className:"h-3 w-3 mr-1"}),"+12,3%"]}),s.jsx("span",{className:"text-xs text-gray-500 ml-2",children:"vs. perÃodo anterior"})]})]})})}),s.jsx(fe,{children:s.jsx(me,{className:"py-4",children:s.jsxs("div",{children:[s.jsx("p",{className:"text-sm text-gray-500",children:"Custo por Conversão"}),s.jsx("h3",{className:"text-2xl font-bold mt-1",children:"R$ 10,59"}),s.jsxs("div",{className:"flex items-center mt-2",children:[s.jsxs(Ue,{className:"bg-green-100 text-green-800 hover:bg-green-200",children:[s.jsx(xc,{className:"h-3 w-3 mr-1"}),"-3,2%"]}),s.jsx("span",{className:"text-xs text-gray-500 ml-2",children:"vs. perÃodo anterior"})]})]})})}),s.jsx(fe,{children:s.jsx(me,{className:"py-4",children:s.jsxs("div",{children:[s.jsx("p",{className:"text-sm text-gray-500",children:"ROI Estimado"}),s.jsx("h3",{className:"text-2xl font-bold mt-1",children:"324%"}),s.jsxs("div",{className:"flex items-center mt-2",children:[s.jsxs(Ue,{className:"bg-green-100 text-green-800 hover:bg-green-200",children:[s.jsx(un,{className:"h-3 w-3 mr-1"}),"+15,7%"]}),s.jsx("span",{className:"text-xs text-gray-500 ml-2",children:"vs. perÃodo anterior"})]})]})})})]}),s.jsxs(fe,{children:[s.jsxs(Me,{children:[s.jsx(De,{children:"Campanhas Ativas"}),s.jsx(Ye,{children:"Visão geral das campanhas em andamento"})]}),s.jsx(me,{children:s.jsx("div",{className:"overflow-x-auto",children:s.jsxs("table",{className:"w-full border-collapse",children:[s.jsx("thead",{children:s.jsxs("tr",{className:"border-b",children:[s.jsx("th",{className:"text-left p-3 text-gray-700 font-medium",children:"Campanha"}),s.jsx("th",{className:"text-left p-3 text-gray-700 font-medium",children:"Plataforma"}),s.jsx("th",{className:"text-left p-3 text-gray-700 font-medium",children:"Status"}),s.jsx("th",{className:"text-left p-3 text-gray-700 font-medium",children:"Orçamento"}),s.jsx("th",{className:"text-left p-3 text-gray-700 font-medium",children:"Gasto"}),s.jsx("th",{className:"text-left p-3 text-gray-700 font-medium",children:"Conversões"}),s.jsx("th",{className:"text-left p-3 text-gray-700 font-medium",children:"CPC"}),s.jsx("th",{className:"text-left p-3 text-gray-700 font-medium",children:"Ações"})]})}),s.jsxs("tbody",{children:[s.jsxs("tr",{className:"border-b hover:bg-gray-50",children:[s.jsxs("td",{className:"p-3",children:[s.jsx("div",{className:"font-medium",children:"Campanha Inverno 2025"}),s.jsx("div",{className:"text-gray-500 text-sm",children:"camisetas promocionais"})]}),s.jsx("td",{className:"p-3",children:s.jsxs("div",{className:"flex items-center",children:[s.jsx(Dm,{className:"h-4 w-4 mr-1 text-blue-600"}),s.jsx("span",{children:"Meta Ads"})]})}),s.jsx("td",{className:"p-3",children:s.jsx(Ue,{className:"bg-green-100 text-green-800 hover:bg-green-200",children:"Ativa"})}),s.jsx("td",{className:"p-3",children:"R$ 500,00"}),s.jsx("td",{className:"p-3",children:"R$ 320,45"}),s.jsx("td",{className:"p-3",children:"32"}),s.jsx("td",{className:"p-3",children:"R$ 10,01"}),s.jsx("td",{className:"p-3",children:s.jsx("div",{className:"flex space-x-2",children:s.jsx(W,{variant:"outline",size:"sm",children:s.jsx(xo,{className:"h-4 w-4"})})})})]}),s.jsxs("tr",{className:"border-b hover:bg-gray-50",children:[s.jsxs("td",{className:"p-3",children:[s.jsx("div",{className:"font-medium",children:"Uniformes Corporativos"}),s.jsx("div",{className:"text-gray-500 text-sm",children:"polos personalizadas"})]}),s.jsx("td",{className:"p-3",children:s.jsxs("div",{className:"flex items-center",children:[s.jsx(Cv,{className:"h-4 w-4 mr-1 text-red-600"}),s.jsx("span",{children:"Google Ads"})]})}),s.jsx("td",{className:"p-3",children:s.jsx(Ue,{className:"bg-green-100 text-green-800 hover:bg-green-200",children:"Ativa"})}),s.jsx("td",{className:"p-3",children:"R$ 800,00"}),s.jsx("td",{className:"p-3",children:"R$ 425,78"}),s.jsx("td",{className:"p-3",children:"45"}),s.jsx("td",{className:"p-3",children:"R$ 9,46"}),s.jsx("td",{className:"p-3",children:s.jsx("div",{className:"flex space-x-2",children:s.jsx(W,{variant:"outline",size:"sm",children:s.jsx(xo,{className:"h-4 w-4"})})})})]}),s.jsxs("tr",{className:"border-b hover:bg-gray-50",children:[s.jsxs("td",{className:"p-3",children:[s.jsx("div",{className:"font-medium",children:"Coleção Jovem"}),s.jsx("div",{className:"text-gray-500 text-sm",children:"moletons personalizados"})]}),s.jsx("td",{className:"p-3",children:s.jsxs("div",{className:"flex items-center",children:[s.jsx(GT,{className:"h-4 w-4 mr-1 text-black"}),s.jsx("span",{children:"TikTok Ads"})]})}),s.jsx("td",{className:"p-3",children:s.jsx(Ue,{className:"bg-amber-100 text-amber-800 hover:bg-amber-200",children:"Em revisão"})}),s.jsx("td",{className:"p-3",children:"R$ 600,00"}),s.jsx("td",{className:"p-3",children:"R$ 0,00"}),s.jsx("td",{className:"p-3",children:"0"}),s.jsx("td",{className:"p-3",children:"-"}),s.jsx("td",{className:"p-3",children:s.jsx("div",{className:"flex space-x-2",children:s.jsx(W,{variant:"outline",size:"sm",children:s.jsx(xo,{className:"h-4 w-4"})})})})]})]})]})})}),s.jsx("div",{className:"p-4 flex justify-end",children:s.jsxs(W,{children:[s.jsx($m,{className:"h-4 w-4 mr-2"}),"Nova Campanha"]})})]}),s.jsxs(fe,{children:[s.jsxs(Me,{children:[s.jsx(De,{children:"Sugestões para Otimização"}),s.jsx(Ye,{children:"Recomendações baseadas em IA para melhorar o desempenho"})]}),s.jsx(me,{children:s.jsxs("div",{className:"space-y-4",children:[s.jsx("div",{className:"bg-blue-50 p-4 rounded-lg border border-blue-200",children:s.jsxs("div",{className:"flex items-start",children:[s.jsx("div",{className:"bg-blue-100 p-2 rounded-full mr-3",children:s.jsx(xG,{className:"h-4 w-4 text-blue-700"})}),s.jsxs("div",{children:[s.jsx("h4",{className:"font-medium mb-1",children:'Aumentar orçamento para "Uniformes Corporativos"'}),s.jsx("p",{className:"text-sm text-gray-700",children:"Esta campanha tem o melhor CPC e taxa de conversão. Um investimento adicional pode aumentar os resultados em até 20%."})]})]})}),s.jsx("div",{className:"bg-amber-50 p-4 rounded-lg border border-amber-200",children:s.jsxs("div",{className:"flex items-start",children:[s.jsx("div",{className:"bg-amber-100 p-2 rounded-full mr-3",children:s.jsx(dS,{className:"h-4 w-4 text-amber-700"})}),s.jsxs("div",{children:[s.jsx("h4",{className:"font-medium mb-1",children:'Revisar segmentação da campanha "Inverno 2025"'}),s.jsx("p",{className:"text-sm text-gray-700",children:"A taxa de cliques está abaixo da média. Considere ajustar a segmentação demográfica para público entre 25-45 anos."})]})]})}),s.jsx("div",{className:"bg-green-50 p-4 rounded-lg border border-green-200",children:s.jsxs("div",{className:"flex items-start",children:[s.jsx("div",{className:"bg-green-100 p-2 rounded-full mr-3",children:s.jsx(_d,{className:"h-4 w-4 text-green-700"})}),s.jsxs("div",{children:[s.jsx("h4",{className:"font-medium mb-1",children:"Nova oportunidade: anúncios para Linkedin"}),s.jsx("p",{className:"text-sm text-gray-700",children:"Com base no perfil de clientes B2B, campanhas no LinkedIn podem gerar leads de maior valor para produtos corporativos."})]})]})})]})})]})]})}),s.jsx(xt,{value:"ai-insights",className:"p-0",children:s.jsx(wSe,{data:S!=null&&S.latest?[S.latest,...S.history||[]]:[],isLoading:w,onGenerateNew:e})})]})]})}const ai=b.forwardRef(({className:e,...t},r)=>s.jsx("div",{className:"relative w-full overflow-auto",children:s.jsx("table",{ref:r,className:ie("w-full caption-bottom text-sm",e),...t})}));ai.displayName="Table";const si=b.forwardRef(({className:e,...t},r)=>s.jsx("thead",{ref:r,className:ie("[&_tr]:border-b",e),...t}));si.displayName="TableHeader";const ii=b.forwardRef(({className:e,...t},r)=>s.jsx("tbody",{ref:r,className:ie("[&_tr:last-child]:border-0",e),...t}));ii.displayName="TableBody";const SSe=b.forwardRef(({className:e,...t},r)=>s.jsx("tfoot",{ref:r,className:ie("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e),...t}));SSe.displayName="TableFooter";const br=b.forwardRef(({className:e,...t},r)=>s.jsx("tr",{ref:r,className:ie("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",e),...t}));br.displayName="TableRow";const Ze=b.forwardRef(({className:e,...t},r)=>s.jsx("th",{ref:r,className:ie("h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",e),...t}));Ze.displayName="TableHead";const Le=b.forwardRef(({className:e,...t},r)=>s.jsx("td",{ref:r,className:ie("p-4 align-middle [&:has([role=checkbox])]:pr-0",e),...t}));
vendor: 5,399 bytes, line 727
727Le.displayName="TableCell";const PSe=b.forwardRef(({className:e,...t},r)=>s.jsx("caption",{ref:r,className:ie("mt-4 text-sm text-muted-foreground",e),...t}));PSe.displayName="TableCaption";var mj="focusScope.autoFocusOnMount",hj="focusScope.autoFocusOnUnmount",AM={bubbles:!1,cancelable:!0},CSe="FocusScope",_0=b.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:a,onUnmountAutoFocus:i,...o}=e,[l,c]=b.useState(null),u=Ur(a),d=Ur(i),f=b.useRef(null),m=it(t,h=>c(h)),p=b.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;b.useEffect(()=>{if(n){let h=function(j){if(p.paused||!l)return;const S=j.target;l.contains(S)?f.current=S:Li(f.current,{select:!0})},x=function(j){if(p.paused||!l)return;const S=j.relatedTarget;S!==null&&(l.contains(S)||Li(f.current,{select:!0}))},y=function(j){if(document.activeElement===document.body)for(const w of j)w.removedNodes.length>0&&Li(l)};document.addEventListener("focusin",h),document.addEventListener("focusout",x);const g=new MutationObserver(y);return l&&g.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",h),document.removeEventListener("focusout",x),g.disconnect()}}},[n,l,p.paused]),b.useEffect(()=>{if(l){EM.add(p);const h=document.activeElement;if(!l.contains(h)){const y=new CustomEvent(mj,AM);l.addEventListener(mj,u),l.dispatchEvent(y),y.defaultPrevented||(ASe(kSe(v8(l)),{select:!0}),document.activeElement===h&&Li(l))}return()=>{l.removeEventListener(mj,u),setTimeout(()=>{const y=new CustomEvent(hj,AM);l.addEventListener(hj,d),l.dispatchEvent(y),y.defaultPrevented||Li(h??document.body,{select:!0}),l.removeEventListener(hj,d),EM.remove(p)},0)}}},[l,u,d,p]);const v=b.useCallback(h=>{if(!r&&!n||p.paused)return;const x=h.key==="Tab"&&!h.altKey&&!h.ctrlKey&&!h.metaKey,y=document.activeElement;if(x&&y){const g=h.currentTarget,[j,S]=TSe(g);j&&S?!h.shiftKey&&y===S?(h.preventDefault(),r&&Li(j,{select:!0})):h.shiftKey&&y===j&&(h.preventDefault(),r&&Li(S,{select:!0})):y===g&&h.preventDefault()}},[r,n,p.paused]);return s.jsx(Oe.div,{tabIndex:-1,...o,ref:m,onKeyDown:v})});_0.displayName=CSe;function ASe(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(Li(n,{select:t}),document.activeElement!==r)return}function TSe(e){const t=v8(e),r=TM(t,e),n=TM(t.reverse(),e);return[r,n]}function v8(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const a=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||a?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function TM(e,t){for(const r of e)if(!ESe(r,{upTo:t}))return r}function ESe(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 OSe(e){return e instanceof HTMLInputElement&&"select"in e}function Li(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&OSe(e)&&t&&e.select()}}var EM=_Se();function _Se(){let e=[];return{add(t){const r=e[0];t!==r&&(r==null||r.pause()),e=OM(e,t),e.unshift(t)},remove(t){var r;e=OM(e,t),(r=e[0])==null||r.resume()}}}function OM(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function kSe(e){return e.filter(t=>t.tagName!=="A")}var pj=0;function QP(){b.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??_M()),document.body.insertAdjacentElement("beforeend",e[1]??_M()),pj++,()=>{pj===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),pj--}},[])}function _M(){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 us=function(){return us=Object.assign||function(t){for(var r,n=1,a=arguments.length;n<a;n++){r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},us.apply(this,arguments)};function x8(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r}function MSe(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,i;n<a;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))}var Hg="right-scroll-bar-position",Gg="width-before-scroll-bar",DSe="with-scroll-bars-hidden",RSe="--removed-body-scroll-bar-size";function gj(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function ISe(e,t){var r=b.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var a=r.value;a!==n&&(r.value=n,r.callback(n,a))}}}})[0];return r.callback=t,r.facade}var $Se=typeof window<"u"?b.useLayoutEffect:b.useEffect,kM=new WeakMap;function LSe(e,t){var r=ISe(null,function(n){return e.forEach(function(a){return gj(a,n)})});return $Se(function(){var n=kM.get(r);if(n){var a=new Set(n),i=new Set(e),o=r.current;a.forEach(function(l){i.has(l)||gj(l,null)}
vendor: 4,140 bytes, lines 727-742
727),i.forEach(function(l){a.has(l)||gj(l,o)})}kM.set(r,e)},[e]),r}function FSe(e){return e}function VSe(e,t){t===void 0&&(t=FSe);var r=[],n=!1,a={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(i){var o=t(i,n);return r.push(o),function(){r=r.filter(function(l){return l!==o})}},assignSyncMedium:function(i){for(n=!0;r.length;){var o=r;r=[],o.forEach(i)}r={push:function(l){return i(l)},filter:function(){return r}}},assignMedium:function(i){n=!0;var o=[];if(r.length){var l=r;r=[],l.forEach(i),o=r}var c=function(){var d=o;o=[],d.forEach(i)},u=function(){return Promise.resolve().then(c)};u(),r={push:function(d){o.push(d),u()},filter:function(d){return o=o.filter(d),r}}}};return a}function zSe(e){e===void 0&&(e={});var t=VSe(null);return t.options=us({async:!0,ssr:!1},e),t}var y8=function(e){var t=e.sideCar,r=x8(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return b.createElement(n,us({},r))};y8.isSideCarExport=!0;function BSe(e,t){return e.useMedium(t),y8}var b8=zSe(),vj=function(){},k0=b.forwardRef(function(e,t){var r=b.useRef(null),n=b.useState({onScrollCapture:vj,onWheelCapture:vj,onTouchMoveCapture:vj}),a=n[0],i=n[1],o=e.forwardProps,l=e.children,c=e.className,u=e.removeScrollBar,d=e.enabled,f=e.shards,m=e.sideCar,p=e.noIsolation,v=e.inert,h=e.allowPinchZoom,x=e.as,y=x===void 0?"div":x,g=e.gapMode,j=x8(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=m,w=LSe([r,t]),N=us(us({},j),a);return b.createElement(b.Fragment,null,d&&b.createElement(S,{sideCar:b8,removeScrollBar:u,shards:f,noIsolation:p,inert:v,setCallbacks:i,allowPinchZoom:!!h,lockRef:r,gapMode:g}),o?b.cloneElement(b.Children.only(l),us(us({},N),{ref:w})):b.createElement(y,us({},N,{className:c,ref:w}),l))});k0.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};k0.classNames={fullWidth:Gg,zeroRight:Hg};var USe=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function WSe(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=USe();return t&&e.setAttribute("nonce",t),e}function qSe(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function HSe(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var GSe=function(){var e=0,t=null;return{add:function(r){e==0&&(t=WSe())&&(qSe(t,r),HSe(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},KSe=function(){var e=GSe();return function(t,r){b.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},j8=function(){var e=KSe(),t=function(r){var n=r.styles,a=r.dynamic;return e(n,a),null};return t},XSe={left:0,top:0,right:0,gap:0},xj=function(e){return parseInt(e||"",10)||0},YSe=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],a=t[e==="padding"?"paddingRight":"marginRight"];return[xj(r),xj(n),xj(a)]},ZSe=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return XSe;var t=YSe(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},QSe=j8(),xu="data-scroll-locked",JSe=function(e,t,r,n){var a=e.left,i=e.top,o=e.right,l=e.gap;return r===void 0&&(r="margin"),` 728 .`.concat(DSe,` { 729 overflow: hidden `).concat(n,`; 730 padding-right: `).concat(l,"px ").concat(n,`; 731 } 732 body[`).concat(xu,`] { 733 overflow: hidden `).concat(n,`; 734 overscroll-behavior: contain; 735 `).concat([t&&"position: relative ".concat(n,";"),r==="margin"&&` 736 padding-left: `.concat(a,`px; 737 padding-top: `).concat(i,`px; 738 padding-right: `).concat(o,`px; 739 margin-left:0; 740 margin-top:0; 741 margin-right: `).concat(l,"px ").concat(n,`; 742 `),r==="padding"&&"padding-right: ".concat(l,"px ").concat(n,";
742")].filter(Boolean).join(""),` 743 } 744 745 .`).concat(Hg,` { 746 right: `).concat(l,"px ").concat(n,`; 747 } 748 749 .`).concat(Gg,` { 750 margin-right: `).concat(l,"px ").concat(n,`; 751 } 752 753 .`).concat(Hg," .").concat(Hg,` { 754 right: 0 `).concat(n,`; 755 } 756 757 .`).concat(Gg," .").concat(Gg,` { 758 margin-right: 0 `).concat(n,`; 759 } 760 761 body[`).concat(xu,`] { 762 `).concat(RSe,": ").concat(l,`px; 763 } 764`)},MM=function(){var e=parseInt(document.body.getAttribute(xu)||"0",10);return isFinite(e)?e:0},ePe=function(){b.useEffect(function(){return document.body.setAttribute(xu,(MM()+1).toString()),function(){var e=MM()-1;e<=0?document.body.removeAttribute(xu):document.body.setAttribute(xu,e.toString())}},[])},tPe=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,a=n===void 0?"margin":n;ePe();var i=b.useMemo(function(){return ZSe(a)},[a]);return b.createElement(QSe,{styles:JSe(i,!t,a,r?"":"!important")})},EN=!1;if(typeof window<"u")try{var xg=Object.defineProperty({},"passive",{get:function(){return EN=!0,!0}});window.addEventListener("test",xg,xg),window.removeEventListener("test",xg,xg)}catch{EN=!1}var Sc=EN?{passive:!1}:!1,rPe=function(e){return e.tagName==="TEXTAREA"},w8=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!rPe(e)&&r[t]==="visible")},nPe=function(e){return w8(e,"overflowY")},aPe=function(e){return w8(e,"overflowX")},DM=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var a=N8(e,n);if(a){var i=S8(e,n),o=i[1],l=i[2];if(o>l)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},sPe=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},iPe=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},N8=function(e,t){return e==="v"?nPe(t):aPe(t)},S8=function(e,t){return e==="v"?sPe(t):iPe(t)},oPe=function(e,t){return e==="h"&&t==="rtl"?-1:1},lPe=function(e,t,r,n,a){var i=oPe(e,window.getComputedStyle(t).direction),o=i*n,l=r.target,c=t.contains(l),u=!1,d=o>0,f=0,m=0;do{var p=S8(e,l),v=p[0],h=p[1],x=p[2],y=h-x-i*v;(v||y)&&N8(e,l)&&(f+=y,m+=v),l instanceof ShadowRoot?l=l.host:l=l.parentNode}while(!c&&l!==document.body||c&&(t.contains(l)||t===l));return(d&&(Math.abs(f)<1||!a)||!d&&(Math.abs(m)<1||!a))&&(u=!0),u},yg=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},RM=function(e){return[e.deltaX,e.deltaY]},IM=function(e){return e&&"current"in e?e.current:e},cPe=function(e,t){return e[0]===t[0]&&e[1]===t[1]},uPe=function(e){return` 765 .block-interactivity-`.concat(e,` {pointer-events: none;} 766 .allow-interactivity-`).concat(e,` {pointer-events: all;} 767`)},dPe=0,Pc=[];function fPe(e){var t=b.useRef([]),r=b.useRef([0,0]),n=b.useRef(),a=b.useState(dPe++)[0],i=b.useState(j8)[0],o=b.useRef(e);b.useEffect(function(){o.current=e},[e]),b.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var h=MSe([e.lockRef.current],(e.shards||[]).map(IM),!0).filter(Boolean);return h.forEach(function(x){return x.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),h.forEach(function(x){return x.classList.remove("allow-interactivity-".concat(a))})}}},[e.inert,e.lockRef.current,e.shards]);var l=b.useCallback(function(h,x){if("touches"in h&&h.touches.length===2||h.type==="wheel"&&h.ctrlKey)return!o.current.allowPinchZoom;var y=yg(h),g=r.current,j="deltaX"in h?h.deltaX:g[0]-y[0],S="deltaY"in h?h.deltaY:g[1]-y[1],w,N=h.target,P=Math.abs(j)>Math.abs(S)?"h":"v";if("touches"in h&&P==="h"&&N.type==="range")return!1;var C=DM(P,N);if(!C)return!0;if(C?w=P:(w=P==="v"?"h":"v",C=DM(P,N)),!C)return!1;if(!n.current&&"changedTouches"in h&&(j||S)&&(n.current=w),!w)return!0;var A=n.current||w;return lPe(A,x,h,A==="h"?j:S,!0)},[]),c=b.useCallback(function(h){var x=h;if(!(!Pc.length||Pc[Pc.length-1]!==i)){var y="deltaY"in x?RM(x):yg(x),g=t.current.filter(function(w){return w.name===x.type&&(w.target===x.target||x.target===w.shadowParent)&&cPe(w.delta,y)})[0];if(g&&g.should){x.cancelable&&x.preventDefault();return}
vendor: 8,973 bytes, lines 767-771
767if(!g){var j=(o.current.shards||[]).map(IM).filter(Boolean).filter(function(w){return w.contains(x.target)}),S=j.length>0?l(x,j[0]):!o.current.noIsolation;S&&x.cancelable&&x.preventDefault()}}},[]),u=b.useCallback(function(h,x,y,g){var j={name:h,delta:x,target:y,should:g,shadowParent:mPe(y)};t.current.push(j),setTimeout(function(){t.current=t.current.filter(function(S){return S!==j})},1)},[]),d=b.useCallback(function(h){r.current=yg(h),n.current=void 0},[]),f=b.useCallback(function(h){u(h.type,RM(h),h.target,l(h,e.lockRef.current))},[]),m=b.useCallback(function(h){u(h.type,yg(h),h.target,l(h,e.lockRef.current))},[]);b.useEffect(function(){return Pc.push(i),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:m}),document.addEventListener("wheel",c,Sc),document.addEventListener("touchmove",c,Sc),document.addEventListener("touchstart",d,Sc),function(){Pc=Pc.filter(function(h){return h!==i}),document.removeEventListener("wheel",c,Sc),document.removeEventListener("touchmove",c,Sc),document.removeEventListener("touchstart",d,Sc)}},[]);var p=e.removeScrollBar,v=e.inert;return b.createElement(b.Fragment,null,v?b.createElement(i,{styles:uPe(a)}):null,p?b.createElement(tPe,{gapMode:e.gapMode}):null)}function mPe(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const hPe=BSe(b8,fPe);var M0=b.forwardRef(function(e,t){return b.createElement(k0,us({},e,{ref:t,sideCar:hPe}))});M0.classNames=k0.classNames;var pPe=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Cc=new WeakMap,bg=new WeakMap,jg={},yj=0,P8=function(e){return e&&(e.host||P8(e.parentNode))},gPe=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=P8(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},vPe=function(e,t,r,n){var a=gPe(t,Array.isArray(e)?e:[e]);jg[r]||(jg[r]=new WeakMap);var i=jg[r],o=[],l=new Set,c=new Set(a),u=function(f){!f||l.has(f)||(l.add(f),u(f.parentNode))};a.forEach(u);var d=function(f){!f||c.has(f)||Array.prototype.forEach.call(f.children,function(m){if(l.has(m))d(m);else try{var p=m.getAttribute(n),v=p!==null&&p!=="false",h=(Cc.get(m)||0)+1,x=(i.get(m)||0)+1;Cc.set(m,h),i.set(m,x),o.push(m),h===1&&v&&bg.set(m,!0),x===1&&m.setAttribute(r,"true"),v||m.setAttribute(n,"true")}catch(y){console.error("aria-hidden: cannot operate on ",m,y)}})};return d(t),l.clear(),yj++,function(){o.forEach(function(f){var m=Cc.get(f)-1,p=i.get(f)-1;Cc.set(f,m),i.set(f,p),m||(bg.has(f)||f.removeAttribute(n),bg.delete(f)),p||f.removeAttribute(r)}),yj--,yj||(Cc=new WeakMap,Cc=new WeakMap,bg=new WeakMap,jg={})}},JP=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),a=pPe(e);return a?(n.push.apply(n,Array.from(a.querySelectorAll("[aria-live]"))),vPe(n,a,r,"aria-hidden")):function(){return null}},eC="Dialog",[C8,A8]=kr(eC),[xPe,Za]=C8(eC),T8=e=>{const{__scopeDialog:t,children:r,open:n,defaultOpen:a,onOpenChange:i,modal:o=!0}=e,l=b.useRef(null),c=b.useRef(null),[u=!1,d]=ya({prop:n,defaultProp:a,onChange:i});return s.jsx(xPe,{scope:t,triggerRef:l,contentRef:c,contentId:ha(),titleId:ha(),descriptionId:ha(),open:u,onOpenChange:d,onOpenToggle:b.useCallback(()=>d(f=>!f),[d]),modal:o,children:r})};T8.displayName=eC;var E8="DialogTrigger",O8=b.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,a=Za(E8,r),i=it(t,a.triggerRef);return s.jsx(Oe.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":nC(a.open),...n,ref:i,onClick:ue(e.onClick,a.onOpenToggle)})});O8.displayName=E8;var tC="DialogPortal",[yPe,_8]=C8(tC,{forceMount:void 0}),k8=e=>{const{__scopeDialog:t,forceMount:r,children:n,container:a}=e,i=Za(tC,t);return s.jsx(yPe,{scope:t,forceMount:r,children:b.Children.map(n,o=>s.jsx(Qn,{present:r||i.open,children:s.jsx(ip,{asChild:!0,container:a,children:o})}))})};k8.displayName=tC;var Rx="DialogOverlay",M8=b.forwardRef((e,t)=>{const r=_8(Rx,e.__scopeDialog),{forceMount:n=r.forceMount,...a}=e,i=Za(Rx,e.__scopeDialog);return i.modal?s.jsx(Qn,{present:n||i.open,children:s.jsx(jPe,{...a,ref:t})}):null});M8.displayName=Rx;var bPe=Fl("DialogOverlay.RemoveScroll"),jPe=b.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,a=Za(Rx,r);return s.jsx(M0,{as:bPe,allowPinchZoom:!0,shards:[a.contentRef],children:s.jsx(Oe.div,{"data-state":nC(a.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),Zl="DialogContent",D8=b.forwardRef((e,t)=>{const r=_8(Zl,e.__scopeDialog),{forceMount:n=r.forceMount,...a}=e,i=Za(Zl,e.__scopeDialog);return s.jsx(Qn,{present:n||i.open,children:i.modal?s.jsx(wPe,{...a,ref:t}):s.jsx(NPe,{...a,ref:t})})});D8.displayName=Zl;var wPe=b.forwardRef((e,t)=>{const r=Za(Zl,e.__scopeDialog),n=b.useRef(null),a=it(t,r.contentRef,n);return b.useEffect(()=>{const i=n.current;if(i)return JP(i)},[]),s.jsx(R8,{...e,ref:a,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ue(e.onCloseAutoFocus,i=>{var o;i.preventDefault(),(o=r.triggerRef.current)==null||o.focus()}),onPointerDownOutside:ue(e.onPointerDownOutside,i=>{const o=i.detail.originalEvent,l=o.button===0&&o.ctrlKey===!0;(o.button===2||l)&&i.preventDefault()}),onFocusOutside:ue(e.onFocusOutside,i=>i.preventDefault())})}),NPe=b.forwardRef((e,t)=>{const r=Za(Zl,e.__scopeDialog),n=b.useRef(!1),a=b.useRef(!1);return s.jsx(R8,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var o,l;(o=e.onCloseAutoFocus)==null||o.call(e,i),i.defaultPrevented||(n.current||(l=r.triggerRef.current)==null||l.focus(),i.preventDefault()),n.current=!1,a.current=!1},onInteractOutside:i=>{var c,u;(c=e.onInteractOutside)==null||c.call(e,i),i.defaultPrevented||(n.current=!0,i.detail.originalEvent.type==="pointerdown"&&(a.current=!0));const o=i.target;((u=r.triggerRef.current)==null?void 0:u.contains(o))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&a.current&&i.preventDefault()}})}),R8=b.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:a,onCloseAutoFocus:i,...o}=e,l=Za(Zl,r),c=b.useRef(null),u=it(t,c);return QP(),s.jsxs(s.Fragment,{children:[s.jsx(_0,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:a,onUnmountAutoFocus:i,children:s.jsx(Od,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":nC(l.open),...o,ref:u,onDismiss:()=>l.onOpenChange(!1)})}),s.jsxs(s.Fragment,{children:[s.jsx(PPe,{titleId:l.titleId}),s.jsx(APe,{contentRef:c,descriptionId:l.descriptionId})]})]})}),rC="DialogTitle",I8=b.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,a=Za(rC,r);return s.jsx(Oe.h2,{id:a.titleId,...n,ref:t})});I8.displayName=rC;var $8="DialogDescription",L8=b.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,a=Za($8,r);return s.jsx(Oe.p,{id:a.descriptionId,...n,ref:t})});L8.displayName=$8;var F8="DialogClose",V8=b.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,a=Za(F8,r);return s.jsx(Oe.button,{type:"button",...n,ref:t,onClick:ue(e.onClick,()=>a.onOpenChange(!1))})});V8.displayName=F8;function nC(e){return e?"open":"closed"}var z8="DialogTitleWarning",[SPe,B8]=oH(z8,{contentName:Zl,titleName:rC,docsSlug:"dialog"}),PPe=({titleId:e})=>{const t=B8(z8),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users. 768 769If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component. 770 771For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return b.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},CPe="DialogDescriptionWarning",APe=({contentRef:e,descriptionId:t})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${B8(CPe).contentName}}.`;return b.useEffect(()=>{var i;const a=(i=e.current)==null?void 0:i.getAttribute("aria-describedby");t&&a&&(document.getElementById(t)||console.warn(n))},[n,e,t]),null},U8=T8,W8=O8,q8=k8,aC=M8,sC=D8,iC=I8,oC=L8,lC=V8;const Ct=U8,Xc=W8,TPe=q8,H8=b.forwardRef(({className:e,...t},r)=>s.jsx(aC,{ref:r,className:ie("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));H8.displayName=aC.displayName;const Bt=b.forwardRef(({className:e,children:t,...r},n)=>s.jsxs(TPe,{children:[s.jsx(H8,{}),s.jsxs(sC,{ref:n,className:ie("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 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 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rou
771nded-lg",e),...r,children:[t,s.jsxs(lC,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[s.jsx(No,{className:"h-4 w-4"}),s.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));Bt.displayName=sC.displayName;const Xt=({className:e,...t})=>s.jsx("div",{className:ie("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});Xt.displayName="DialogHeader";const Pr=({className:e,...t})=>s.jsx("div",{className:ie("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});Pr.displayName="DialogFooter";const Yt=b.forwardRef(({className:e,...t},r)=>s.jsx(iC,{ref:r,className:ie("text-lg font-semibold leading-none tracking-tight",e),...t}));Yt.displayName=iC.displayName;const Zt=b.forwardRef(({className:e,...t},r)=>s.jsx(oC,{ref:r,className:ie("text-sm text-muted-foreground",e),...t}));Zt.displayName=oC.displayName;var ON=["Enter"," "],EPe=["ArrowDown","PageUp","Home"],G8=["ArrowUp","PageDown","End"],OPe=[...EPe,...G8],_Pe={ltr:[...ON,"ArrowRight"],rtl:[...ON,"ArrowLeft"]},kPe={ltr:["ArrowLeft"],rtl:["ArrowRight"]},yp="Menu",[Eh,MPe,DPe]=sp(yp),[fc,K8]=kr(yp,[DPe,Id,Vd]),D0=Id(),X8=Vd(),[RPe,mc]=fc(yp),[IPe,bp]=fc(yp),Y8=e=>{const{__scopeMenu:t,open:r=!1,children:n,dir:a,onOpenChange:i,modal:o=!0}=e,l=D0(t),[c,u]=b.useState(null),d=b.useRef(!1),f=Ur(i),m=Fd(a);return b.useEffect(()=>{const p=()=>{d.current=!0,document.addEventListener("pointerdown",v,{capture:!0,once:!0}),document.addEventListener("pointermove",v,{capture:!0,once:!0})},v=()=>d.current=!1;return document.addEventListener("keydown",p,{capture:!0}),()=>{document.removeEventListener("keydown",p,{capture:!0}),document.removeEventListener("pointerdown",v,{capture:!0}),document.removeEventListener("pointermove",v,{capture:!0})}},[]),s.jsx(N$,{...l,children:s.jsx(RPe,{scope:t,open:r,onOpenChange:f,content:c,onContentChange:u,children:s.jsx(IPe,{scope:t,onClose:b.useCallback(()=>f(!1),[f]),isUsingKeyboardRef:d,dir:m,modal:o,children:n})})})};Y8.displayName=yp;var $Pe="MenuAnchor",cC=b.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e,a=D0(r);return s.jsx(_S,{...a,...n,ref:t})});cC.displayName=$Pe;var uC="MenuPortal",[LPe,Z8]=fc(uC,{forceMount:void 0}),Q8=e=>{const{__scopeMenu:t,forceMount:r,children:n,container:a}=e,i=mc(uC,t);return s.jsx(LPe,{scope:t,forceMount:r,children:s.jsx(Qn,{present:r||i.open,children:s.jsx(ip,{asChild:!0,container:a,children:n})})})};Q8.displayName=uC;var ga="MenuContent",[FPe,dC]=fc(ga),J8=b.forwardRef((e,t)=>{const r=Z8(ga,e.__scopeMenu),{forceMount:n=r.forceMount,...a}=e,i=mc(ga,e.__scopeMenu),o=bp(ga,e.__scopeMenu);return s.jsx(Eh.Provider,{scope:e.__scopeMenu,children:s.jsx(Qn,{present:n||i.open,children:s.jsx(Eh.Slot,{scope:e.__scopeMenu,children:o.modal?s.jsx(VPe,{...a,ref:t}):s.jsx(zPe,{...a,ref:t})})})})}),VPe=b.forwardRef((e,t)=>{const r=mc(ga,e.__scopeMenu),n=b.useRef(null),a=it(t,n);return b.useEffect(()=>{const i=n.current;if(i)return JP(i)},[]),s.jsx(fC,{...e,ref:a,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:ue(e.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)})}),zPe=b.forwardRef((e,t)=>{const r=mc(ga,e.__scopeMenu);return s.jsx(fC,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)})}),BPe=Fl("MenuContent.ScrollLock"),fC=b.forwardRef((e,t)=>{const{__scopeMenu:r,loop:n=!1,trapFocus:a,onOpenAutoFocus:i,onCloseAutoFocus:o,disableOutsidePointerEvents:l,onEntryFocus:c,onEscapeKeyDown:u,onPointerDownOutside:d,onFocusOutside:f,onInteractOutside:m,onDismiss:p,disableOutsideScroll:v,...h}=e,x=mc(ga,r),y=bp(ga,r),g=D0(r),j=X8(r),S=MPe(r),[w,N]=b.useState(null),P=b.useRef(null),C=it(t,P,x.onContentChange),A=b.useRef(0),O=b.useRef(""),E=b.useRef(0),k=b.useRef(null),M=b.useRef("right"),D=b.useRef(0),F=v?M0:b.Fragment,L=v?{as:BPe,allowPinchZoom:!0}:void 0,B=I=>{var Q,we;const G=O.current+I,U=S().filter(Z=>!Z.disabled),K=document.activeElement,ce=(Q=U.find(Z=>Z.ref.current===K))==null?void 0:Q.textValue,pe=U.map(Z=>Z.textValue),Ke=eCe(pe,G,ce),q=(we=U.find(Z=>Z.textValue===Ke))==null?void 0:we.ref.current;(function Z(V){O.current=V,window.clearTimeout(A.current),V!==""&&(A.current=window.setTimeout(()=>Z(""),1e3))})(G),q&&setTimeout(()=>q.focus())};b.useEffect(()=>()=>window.clearTimeout(A.current),[]),QP();const R=b.useCallback(I=>{var U,K;return M.current===((U=k.current)==null?void 0:U.side)&&rCe(I,(K=k.current)==null?void 0:K.area)},[]);return s.jsx(FPe,{scope:r,searchRef:O,onItemEnter:b.useCallback(I=>{R(I)&&I.preventDefault()},[R]),onItemLeave:b.useCallback(I=>{var G;R(I)||((G=P.current)==null||G.focus(),N(null))},[R]),onTriggerLeave:b.useCallback(I=>{R(I)&&I.preventDefault()},[R]),pointerGraceTimerRef:E,onPointerGraceIntentChange:b.useCallback(I=>{k.current=I},[]),children:s.jsx(F,{...L,children:s.jsx(_0,{asChild:!0,trapped:a,onMountAutoFocus:ue(i,I=>{var G;I.preventDefault(),(G=P.current)==null||G.focus({preventScroll:!0})}),onUnmountAutoFocus:o,children:s.jsx(Od,{asChild:!0,disableOutsidePointerEvents:l,onEscapeKeyDown:u,onPointerDownOutside:d,onFocusOutside:f,onInteractOutside:m,onDismiss:p,children:s.jsx(VS,{asChild:!0,...j,dir:y.dir,orientation:"vertical",loop:n,currentTabStopId:w,onCurrentTabStopIdChange:N,onEntryFocus:ue(c,I=>{y.isUsingKeyboardRef.current||I.preventDefault()}),preventScrollOnEntryFocus:!0,children:s.jsx(kS,{role:"menu","aria-orientation":"vertical","data-state":pV(x.open),"data-radix-menu-content":"",dir:y.dir,...g,...h,ref:C,style:{outline:"none",...h.style},onKeyDown:ue(h.onKeyDown,I=>{const U=I.target.closest("[data-radix-menu-content]")===I.currentTarget,K=I.ctrlKey||I.altKey||I.metaKey,ce=I.key.length===1;U&&(I.key==="Tab"&&I.preventDefault(),!K&&ce&&B(I.key));const pe=P.current;if(I.target!==pe||!OPe.includes(I.key))return;I.preventDefault();const q=S().filter(Q=>!Q.disabled).map(Q=>Q.ref.current);G8.includes(I.key)&&q.reverse(),QPe(q)}),onBlur:ue(e.onBlur,I=>{I.currentTarget.contains(I.target)||(window.clearTimeout(A.current),O.current="")}),onPointerMove:ue(e.onPointerMove,Oh(I=>{const G=I.target,U=D.current!==I.clientX;if(I.currentTarget.contains(G)&&U){const K=I.clientX>D.current?"right":"left";M.current=K,D.current=I.clientX}}))})})})})})})});J8.displayName=ga;var UPe="MenuGroup",mC=b.forwardRef((e,t)=>
vendor: 12,627 bytes, line 771
771{const{__scopeMenu:r,...n}=e;return s.jsx(Oe.div,{role:"group",...n,ref:t})});mC.displayName=UPe;var WPe="MenuLabel",eV=b.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e;return s.jsx(Oe.div,{...n,ref:t})});eV.displayName=WPe;var Ix="MenuItem",$M="menu.itemSelect",R0=b.forwardRef((e,t)=>{const{disabled:r=!1,onSelect:n,...a}=e,i=b.useRef(null),o=bp(Ix,e.__scopeMenu),l=dC(Ix,e.__scopeMenu),c=it(t,i),u=b.useRef(!1),d=()=>{const f=i.current;if(!r&&f){const m=new CustomEvent($M,{bubbles:!0,cancelable:!0});f.addEventListener($M,p=>n==null?void 0:n(p),{once:!0}),sS(f,m),m.defaultPrevented?u.current=!1:o.onClose()}};return s.jsx(tV,{...a,ref:c,disabled:r,onClick:ue(e.onClick,d),onPointerDown:f=>{var m;(m=e.onPointerDown)==null||m.call(e,f),u.current=!0},onPointerUp:ue(e.onPointerUp,f=>{var m;u.current||(m=f.currentTarget)==null||m.click()}),onKeyDown:ue(e.onKeyDown,f=>{const m=l.searchRef.current!=="";r||m&&f.key===" "||ON.includes(f.key)&&(f.currentTarget.click(),f.preventDefault())})})});R0.displayName=Ix;var tV=b.forwardRef((e,t)=>{const{__scopeMenu:r,disabled:n=!1,textValue:a,...i}=e,o=dC(Ix,r),l=X8(r),c=b.useRef(null),u=it(t,c),[d,f]=b.useState(!1),[m,p]=b.useState("");return b.useEffect(()=>{const v=c.current;v&&p((v.textContent??"").trim())},[i.children]),s.jsx(Eh.ItemSlot,{scope:r,disabled:n,textValue:a??m,children:s.jsx(zS,{asChild:!0,...l,focusable:!n,children:s.jsx(Oe.div,{role:"menuitem","data-highlighted":d?"":void 0,"aria-disabled":n||void 0,"data-disabled":n?"":void 0,...i,ref:u,onPointerMove:ue(e.onPointerMove,Oh(v=>{n?o.onItemLeave(v):(o.onItemEnter(v),v.defaultPrevented||v.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:ue(e.onPointerLeave,Oh(v=>o.onItemLeave(v))),onFocus:ue(e.onFocus,()=>f(!0)),onBlur:ue(e.onBlur,()=>f(!1))})})})}),qPe="MenuCheckboxItem",rV=b.forwardRef((e,t)=>{const{checked:r=!1,onCheckedChange:n,...a}=e;return s.jsx(oV,{scope:e.__scopeMenu,checked:r,children:s.jsx(R0,{role:"menuitemcheckbox","aria-checked":$x(r)?"mixed":r,...a,ref:t,"data-state":pC(r),onSelect:ue(a.onSelect,()=>n==null?void 0:n($x(r)?!0:!r),{checkForDefaultPrevented:!1})})})});rV.displayName=qPe;var nV="MenuRadioGroup",[HPe,GPe]=fc(nV,{value:void 0,onValueChange:()=>{}}),aV=b.forwardRef((e,t)=>{const{value:r,onValueChange:n,...a}=e,i=Ur(n);return s.jsx(HPe,{scope:e.__scopeMenu,value:r,onValueChange:i,children:s.jsx(mC,{...a,ref:t})})});aV.displayName=nV;var sV="MenuRadioItem",iV=b.forwardRef((e,t)=>{const{value:r,...n}=e,a=GPe(sV,e.__scopeMenu),i=r===a.value;return s.jsx(oV,{scope:e.__scopeMenu,checked:i,children:s.jsx(R0,{role:"menuitemradio","aria-checked":i,...n,ref:t,"data-state":pC(i),onSelect:ue(n.onSelect,()=>{var o;return(o=a.onValueChange)==null?void 0:o.call(a,r)},{checkForDefaultPrevented:!1})})})});iV.displayName=sV;var hC="MenuItemIndicator",[oV,KPe]=fc(hC,{checked:!1}),lV=b.forwardRef((e,t)=>{const{__scopeMenu:r,forceMount:n,...a}=e,i=KPe(hC,r);return s.jsx(Qn,{present:n||$x(i.checked)||i.checked===!0,children:s.jsx(Oe.span,{...a,ref:t,"data-state":pC(i.checked)})})});lV.displayName=hC;var XPe="MenuSeparator",cV=b.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e;return s.jsx(Oe.div,{role:"separator","aria-orientation":"horizontal",...n,ref:t})});cV.displayName=XPe;var YPe="MenuArrow",uV=b.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e,a=D0(r);return s.jsx(MS,{...a,...n,ref:t})});uV.displayName=YPe;var ZPe="MenuSub",[gRe,dV]=fc(ZPe),Lf="MenuSubTrigger",fV=b.forwardRef((e,t)=>{const r=mc(Lf,e.__scopeMenu),n=bp(Lf,e.__scopeMenu),a=dV(Lf,e.__scopeMenu),i=dC(Lf,e.__scopeMenu),o=b.useRef(null),{pointerGraceTimerRef:l,onPointerGraceIntentChange:c}=i,u={__scopeMenu:e.__scopeMenu},d=b.useCallback(()=>{o.current&&window.clearTimeout(o.current),o.current=null},[]);return b.useEffect(()=>d,[d]),b.useEffect(()=>{const f=l.current;return()=>{window.clearTimeout(f),c(null)}},[l,c]),s.jsx(cC,{asChild:!0,...u,children:s.jsx(tV,{id:a.triggerId,"aria-haspopup":"menu","aria-expanded":r.open,"aria-controls":a.contentId,"data-state":pV(r.open),...e,ref:Sy(t,a.onTriggerChange),onClick:f=>{var m;(m=e.onClick)==null||m.call(e,f),!(e.disabled||f.defaultPrevented)&&(f.currentTarget.focus(),r.open||r.onOpenChange(!0))},onPointerMove:ue(e.onPointerMove,Oh(f=>{i.onItemEnter(f),!f.defaultPrevented&&!e.disabled&&!r.open&&!o.current&&(i.onPointerGraceIntentChange(null),o.current=window.setTimeout(()=>{r.onOpenChange(!0),d()},100))})),onPointerLeave:ue(e.onPointerLeave,Oh(f=>{var p,v;d();const m=(p=r.content)==null?void 0:p.getBoundingClientRect();if(m){const h=(v=r.content)==null?void 0:v.dataset.side,x=h==="right",y=x?-5:5,g=m[x?"left":"right"],j=m[x?"right":"left"];i.onPointerGraceIntentChange({area:[{x:f.clientX+y,y:f.clientY},{x:g,y:m.top},{x:j,y:m.top},{x:j,y:m.bottom},{x:g,y:m.bottom}],side:h}),window.clearTimeout(l.current),l.current=window.setTimeout(()=>i.onPointerGraceIntentChange(null),300)}else{if(i.onTriggerLeave(f),f.defaultPrevented)return;i.onPointerGraceIntentChange(null)}})),onKeyDown:ue(e.onKeyDown,f=>{var p;const m=i.searchRef.current!=="";e.disabled||m&&f.key===" "||_Pe[n.dir].includes(f.key)&&(r.onOpenChange(!0),(p=r.content)==null||p.focus(),f.preventDefault())})})})});fV.displayName=Lf;var mV="MenuSubContent",hV=b.forwardRef((e,t)=>{const r=Z8(ga,e.__scopeMenu),{forceMount:n=r.forceMount,...a}=e,i=mc(ga,e.__scopeMenu),o=bp(ga,e.__scopeMenu),l=dV(mV,e.__scopeMenu),c=b.useRef(null),u=it(t,c);return s.jsx(Eh.Provider,{scope:e.__scopeMenu,children:s.jsx(Qn,{present:n||i.open,children:s.jsx(Eh.Slot,{scope:e.__scopeMenu,children:s.jsx(fC,{id:l.contentId,"aria-labelledby":l.triggerId,...a,ref:u,align:"start",side:o.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:d=>{var f;o.isUsingKeyboardRef.current&&((f=c.current)==null||f.focus()),d.preventDefault()},onCloseAutoFocus:d=>d.preventDefault(),onFocusOutside:ue(e.onFocusOutside,d=>{d.target!==l.trigger&&i.onOpenChange(!1)}),onEscapeKeyDown:ue(e.onEscapeKeyDown,d=>{o.onClose(),d.preventDefault()}),onKeyDown:ue(e.onKeyDown,d=>{var p;const f=d.currentTarget.contains(d.target),m=kPe[o.dir].includes(d.key);f&&m&&(i.onOpenChange(!1),(p=l.trigger)==null||p.focus(),d.preventDefault())})})})})})});hV.displayName=mV;function pV(e){return e?"open":"closed"}function $x(e){return e==="indeterminate"}function pC(e){return $x(e)?"indeterminate":e?"checked":"unchecked"}function QPe(e){const t=document.activeElement;for(const r of e)if(r===t||(r.focus(),document.activeElement!==t))return}function JPe(e,t){return e.map((r,n)=>e[(t+n)%e.length])}function eCe(e,t,r){const a=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,i=r?e.indexOf(r):-1;let o=JPe(e,Math.max(i,0));a.length===1&&(o=o.filter(u=>u!==r));const c=o.find(u=>u.toLowerCase().startsWith(a.toLowerCase()));return c!==r?c:void 0}function tCe(e,t){const{x:r,y:n}=e;let a=!1;for(let i=0,o=t.length-1;i<t.length;o=i++){const l=t[i].x,c=t[i].y,u=t[o].x,d=t[o].y;c>n!=d>n&&r<(u-l)*(n-c)/(d-c)+l&&(a=!a)}return a}function rCe(e,t){if(!t)return!1;const r={x:e.clientX,y:e.clientY};return tCe(r,t)}function Oh(e){return t=>t.pointerType==="mouse"?e(t):void 0}var nCe=Y8,aCe=cC,sCe=Q8,iCe=J8,oCe=mC,lCe=eV,cCe=R0,uCe=rV,dCe=aV,fCe=iV,mCe=lV,hCe=cV,pCe=uV,gCe=fV,vCe=hV,gC="DropdownMenu",[xCe,vRe]=kr(gC,[K8]),Nn=K8(),[yCe,gV]=xCe(gC),vV=e=>{const{__scopeDropdownMenu:t,children:r,dir:n,open:a,defaultOpen:i,onOpenChange:o,modal:l=!0}=e,c=Nn(t),u=b.useRef(null),[d=!1,f]=ya({prop:a,defaultProp:i,onChange:o});return s.jsx(yCe,{scope:t,triggerId:ha(),triggerRef:u,contentId:ha(),open:d,onOpenChange:f,onOpenToggle:b.useCallback(()=>f(m=>!m),[f]),modal:l,children:s.jsx(nCe,{...c,open:d,onOpenChange:f,dir:n,modal:l,children:r})})};vV.displayName=gC;var xV="DropdownMenuTrigger",yV=b.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,disabled:n=!1,...a}=e,i=gV(xV,r),o=Nn(r);return s.jsx(aCe,{asChild:!0,...o,children:s.jsx(Oe.button,{type:"button",id:i.triggerId,"aria-haspopup":"menu","aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":i.open?"open":"closed","data-disabled":n?"":void 0,disabled:n,...a,ref:Sy(t,i.triggerRef),onPointerDown:ue(e.onPointerDown,l=>{!n&&l.button===0&&l.ctrlKey===!1&&(i.onOpenToggle(),i.open||l.preventDefault())}),onKeyDown:ue(e.onKeyDown,l=>{n||(["Enter"," "].includes(l.key)&&i.onOpenToggle(),l.key==="ArrowDown"&&i.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(l.key)&&l.preventDefault())})})})});yV.displayName=xV;var bCe="DropdownMenuPortal",bV=e=>{const{__scopeDropdownMenu:t,...r}=e,n=Nn(t);return s.jsx(sCe,{...n,...r})};bV.displayName=bCe;var jV="DropdownMenuContent",wV=b.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,a=gV(jV,r),i=Nn(r),o=b.useRef(!1);return s.jsx(iCe,{id:a.contentId,"aria-labelledby":a.triggerId,...i,...n,ref:t,onCloseAutoFocus:ue(e.onCloseAutoFocus,l=>{var c;o.current||(c=a.triggerRef.current)==null||c.focus(),o.current=!1,l.preventDefault()}),onInteractOutside:ue(e.onInteractOutside,l=>{const c=l.detail.originalEvent,u=c.button===0&&c.ctrlKey===!0,d=c.button===2||u;(!a.modal||d)&&(o.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});wV.displayName=jV;var jCe="DropdownMenuGroup",wCe=b.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,a=Nn(r);return s.jsx(oCe,{...a,...n,ref:t})});wCe.displayName=jCe;var NCe="DropdownMenuLabel",NV=b.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,a=Nn(r);return s.jsx(lCe,{...a,...n,ref:t})});NV.displayName=NCe;var SCe="DropdownMenuItem",SV=b.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,a=Nn(r);return s.jsx(cCe,{...a,...n,ref:t})});SV.displayName=SCe;var PCe="DropdownMenuCheckboxItem",PV=b.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,a=Nn(r);return s.jsx(uCe,{...a,...n,ref:t})});PV.displayName=PCe;var CCe="DropdownMenuRadioGroup",ACe=b.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,a=Nn(r);return s.jsx(dCe,{...a,...n,ref:t})});ACe.displayName=CCe;var TCe="DropdownMenuRadioItem",CV=b.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,a=Nn(r);return s.jsx(fCe,{...a,...n,ref:t})});CV.displayName=TCe;var ECe="DropdownMenuItemIndicator",AV=b.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,a=Nn(r);return s.jsx(mCe,{...a,...n,ref:t})});AV.displayName=ECe;var OCe="DropdownMenuSeparator",TV=b.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,a=Nn(r);return s.jsx(hCe,{...a,...n,ref:t})});TV.displayName=OCe;var _Ce="DropdownMenuArrow",kCe=b.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,a=Nn(r);return s.jsx(pCe,{...a,...n,ref:t})});kCe.displayName=_Ce;var MCe="DropdownMenuSubTrigger",EV=b.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,a=Nn(r);return s.jsx(gCe,{...a,...n,ref:t})});EV.displayName=MCe;var DCe="DropdownMenuSubContent",OV=b.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,a=Nn(r);return s.jsx(vCe,{...a,...n,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});OV.displayName=DCe;var RCe=vV,ICe=yV,$Ce=bV,_V=wV,kV=NV,MV=SV,DV=PV,RV=CV,IV=AV,$V=TV,LV=EV,FV=OV;const Oo=RCe,_o=ICe,LCe=b.forwardRef(({className:e,inset:t,children:r,...n},a)=>s.jsxs(LV,{ref:a,className:ie("flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",t&&"pl-8",e),...n,children:[r,s.jsx(km,{className:"ml-auto"})]}));LCe.displayName=LV.displayName;const FCe=b.forwardRef(({className:e,...t},r)=>s.jsx(FV,{ref:r,className:ie("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg 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 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:sli
771de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-dropdown-menu-content-transform-origin]",e),...t}));FCe.displayName=FV.displayName;const bi=b.forwardRef(({className:e,sideOffset:t=4,...r},n)=>s.jsx($Ce,{children:s.jsx(_V,{ref:n,sideOffset:t,className:ie("z-50 max-h-[var(--radix-dropdown-menu-content-available-height)] min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md 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 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-dropdown-menu-content-transform-origin]",e),...r})}));bi.displayName=_V.displayName;const Je=b.forwardRef(({className:e,inset:t,...r},n)=>s.jsx(MV,{ref:n,className:ie("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",t&&"pl-8",e),...r}));Je.displayName=MV.displayName;const VCe=b.forwardRef(({className:e,children:t,checked:r,...n},a)=>s.jsxs(DV,{ref:a,className:ie("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:r,...n,children:[s.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:s.jsx(IV,{children:s.jsx(mn,{className:"h-4 w-4"})})}),t]}));VCe.displayName=DV.displayName;const zCe=b.forwardRef(({className:e,children:t,...r},n)=>s.jsxs(RV,{ref:n,className:ie("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...r,children:[s.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:s.jsx(IV,{children:s.jsx(z5,{className:"h-2 w-2 fill-current"})})}),t]}));zCe.displayName=RV.displayName;const hc=b.forwardRef(({className:e,inset:t,...r},n)=>s.jsx(kV,{ref:n,className:ie("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...r}));hc.displayName=kV.displayName;const js=b.forwardRef(({className:e,...t},r)=>s.jsx($V,{ref:r,className:ie("-mx-1 my-1 h-px bg-muted",e),...t}));js.displayName=$V.displayName;function LM(e,[t,r]){return Math.min(r,Math.max(t,e))}function vC(e){const t=b.useRef({value:e,previous:e});return b.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var BCe=[" ","Enter","ArrowUp","ArrowDown"],UCe=[" ","Enter"],jp="Select",[I0,$0,WCe]=sp(jp),[tf,xRe]=kr(jp,[WCe,Id]),L0=Id(),[qCe,Go]=tf(jp),[HCe,GCe]=tf(jp),VV=e=>{const{__scopeSelect:t,children:r,open:n,defaultOpen:a,onOpenChange:i,value:o,defaultValue:l,onValueChange:c,dir:u,name:d,autoComplete:f,disabled:m,required:p,form:v}=e,h=L0(t),[x,y]=b.useState(null),[g,j]=b.useState(null),[S,w]=b.useState(!1),N=Fd(u),[P=!1,C]=ya({prop:n,defaultProp:a,onChange:i}),[A,O]=ya({prop:o,defaultProp:l,onChange:c}),E=b.useRef(null),k=x?v||!!x.closest("form"):!0,[M,D]=b.useState(new Set),F=Array.from(M).map(L=>L.props.value).join(";");return s.jsx(N$,{...h,children:s.jsxs(qCe,{required:p,scope:t,trigger:x,onTriggerChange:y,valueNode:g,onValueNodeChange:j,valueNodeHasChildren:S,onValueNodeHasChildrenChange:w,contentId:ha(),value:A,onValueChange:O,open:P,onOpenChange:C,dir:N,triggerPointerDownPosRef:E,disabled:m,children:[s.jsx(I0.Provider,{scope:t,children:s.jsx(HCe,{scope:e.__scopeSelect,onNativeOptionAdd:b.useCallback(L=>{D(B=>new Set(B).add(L))},[]),onNativeOptionRemove:b.useCallback(L=>{D(B=>{const R=new Set(B);return R.delete(L),R})},[]),children:r})}),k?s.jsxs(dz,{"aria-hidden":!0,required:p,tabIndex:-1,name:d,autoComplete:f,value:A,onChange:L=>O(L.target.value),disabled:m,form:v,children:[A===void 0?s.jsx("option",{value:""}):null,Array.from(M)]},F):null]})})};VV.displayName=jp;var zV="SelectTrigger",BV=b.forwardRef((e,t)=>
vendor: 16,761 bytes, line 771
771{const{__scopeSelect:r,disabled:n=!1,...a}=e,i=L0(r),o=Go(zV,r),l=o.disabled||n,c=it(t,o.onTriggerChange),u=$0(r),d=b.useRef("touch"),[f,m,p]=fz(h=>{const x=u().filter(j=>!j.disabled),y=x.find(j=>j.value===o.value),g=mz(x,h,y);g!==void 0&&o.onValueChange(g.value)}),v=h=>{l||(o.onOpenChange(!0),p()),h&&(o.triggerPointerDownPosRef.current={x:Math.round(h.pageX),y:Math.round(h.pageY)})};return s.jsx(_S,{asChild:!0,...i,children:s.jsx(Oe.button,{type:"button",role:"combobox","aria-controls":o.contentId,"aria-expanded":o.open,"aria-required":o.required,"aria-autocomplete":"none",dir:o.dir,"data-state":o.open?"open":"closed",disabled:l,"data-disabled":l?"":void 0,"data-placeholder":uz(o.value)?"":void 0,...a,ref:c,onClick:ue(a.onClick,h=>{h.currentTarget.focus(),d.current!=="mouse"&&v(h)}),onPointerDown:ue(a.onPointerDown,h=>{d.current=h.pointerType;const x=h.target;x.hasPointerCapture(h.pointerId)&&x.releasePointerCapture(h.pointerId),h.button===0&&h.ctrlKey===!1&&h.pointerType==="mouse"&&(v(h),h.preventDefault())}),onKeyDown:ue(a.onKeyDown,h=>{const x=f.current!=="";!(h.ctrlKey||h.altKey||h.metaKey)&&h.key.length===1&&m(h.key),!(x&&h.key===" ")&&BCe.includes(h.key)&&(v(),h.preventDefault())})})})});BV.displayName=zV;var UV="SelectValue",WV=b.forwardRef((e,t)=>{const{__scopeSelect:r,className:n,style:a,children:i,placeholder:o="",...l}=e,c=Go(UV,r),{onValueNodeHasChildrenChange:u}=c,d=i!==void 0,f=it(t,c.onValueNodeChange);return gr(()=>{u(d)},[u,d]),s.jsx(Oe.span,{...l,ref:f,style:{pointerEvents:"none"},children:uz(c.value)?s.jsx(s.Fragment,{children:o}):i})});WV.displayName=UV;var KCe="SelectIcon",qV=b.forwardRef((e,t)=>{const{__scopeSelect:r,children:n,...a}=e;return s.jsx(Oe.span,{"aria-hidden":!0,...a,ref:t,children:n||"â¼"})});qV.displayName=KCe;var XCe="SelectPortal",HV=e=>s.jsx(ip,{asChild:!0,...e});HV.displayName=XCe;var Ql="SelectContent",GV=b.forwardRef((e,t)=>{const r=Go(Ql,e.__scopeSelect),[n,a]=b.useState();if(gr(()=>{a(new DocumentFragment)},[]),!r.open){const i=n;return i?ic.createPortal(s.jsx(KV,{scope:e.__scopeSelect,children:s.jsx(I0.Slot,{scope:e.__scopeSelect,children:s.jsx("div",{children:e.children})})}),i):null}return s.jsx(XV,{...e,ref:t})});GV.displayName=Ql;var Ta=10,[KV,Ko]=tf(Ql),YCe="SelectContentImpl",ZCe=Fl("SelectContent.RemoveScroll"),XV=b.forwardRef((e,t)=>{const{__scopeSelect:r,position:n="item-aligned",onCloseAutoFocus:a,onEscapeKeyDown:i,onPointerDownOutside:o,side:l,sideOffset:c,align:u,alignOffset:d,arrowPadding:f,collisionBoundary:m,collisionPadding:p,sticky:v,hideWhenDetached:h,avoidCollisions:x,...y}=e,g=Go(Ql,r),[j,S]=b.useState(null),[w,N]=b.useState(null),P=it(t,Q=>S(Q)),[C,A]=b.useState(null),[O,E]=b.useState(null),k=$0(r),[M,D]=b.useState(!1),F=b.useRef(!1);b.useEffect(()=>{if(j)return JP(j)},[j]),QP();const L=b.useCallback(Q=>{const[we,...Z]=k().map(H=>H.ref.current),[V]=Z.slice(-1),ee=document.activeElement;for(const H of Q)if(H===ee||(H==null||H.scrollIntoView({block:"nearest"}),H===we&&w&&(w.scrollTop=0),H===V&&w&&(w.scrollTop=w.scrollHeight),H==null||H.focus(),document.activeElement!==ee))return},[k,w]),B=b.useCallback(()=>L([C,j]),[L,C,j]);b.useEffect(()=>{M&&B()},[M,B]);const{onOpenChange:R,triggerPointerDownPosRef:I}=g;b.useEffect(()=>{if(j){let Q={x:0,y:0};const we=V=>{var ee,H;Q={x:Math.abs(Math.round(V.pageX)-(((ee=I.current)==null?void 0:ee.x)??0)),y:Math.abs(Math.round(V.pageY)-(((H=I.current)==null?void 0:H.y)??0))}},Z=V=>{Q.x<=10&&Q.y<=10?V.preventDefault():j.contains(V.target)||R(!1),document.removeEventListener("pointermove",we),I.current=null};return I.current!==null&&(document.addEventListener("pointermove",we),document.addEventListener("pointerup",Z,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",we),document.removeEventListener("pointerup",Z,{capture:!0})}}},[j,R,I]),b.useEffect(()=>{const Q=()=>R(!1);return window.addEventListener("blur",Q),window.addEventListener("resize",Q),()=>{window.removeEventListener("blur",Q),window.removeEventListener("resize",Q)}},[R]);const[G,U]=fz(Q=>{const we=k().filter(ee=>!ee.disabled),Z=we.find(ee=>ee.ref.current===document.activeElement),V=mz(we,Q,Z);V&&setTimeout(()=>V.ref.current.focus())}),K=b.useCallback((Q,we,Z)=>{const V=!F.current&&!Z;(g.value!==void 0&&g.value===we||V)&&(A(Q),V&&(F.current=!0))},[g.value]),ce=b.useCallback(()=>j==null?void 0:j.focus(),[j]),pe=b.useCallback((Q,we,Z)=>{const V=!F.current&&!Z;(g.value!==void 0&&g.value===we||V)&&E(Q)},[g.value]),Ke=n==="popper"?_N:YV,q=Ke===_N?{side:l,sideOffset:c,align:u,alignOffset:d,arrowPadding:f,collisionBoundary:m,collisionPadding:p,sticky:v,hideWhenDetached:h,avoidCollisions:x}:{};return s.jsx(KV,{scope:r,content:j,viewport:w,onViewportChange:N,itemRefCallback:K,selectedItem:C,onItemLeave:ce,itemTextRefCallback:pe,focusSelectedItem:B,selectedItemText:O,position:n,isPositioned:M,searchRef:G,children:s.jsx(M0,{as:ZCe,allowPinchZoom:!0,children:s.jsx(_0,{asChild:!0,trapped:g.open,onMountAutoFocus:Q=>{Q.preventDefault()},onUnmountAutoFocus:ue(a,Q=>{var we;(we=g.trigger)==null||we.focus({preventScroll:!0}),Q.preventDefault()}),children:s.jsx(Od,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:Q=>Q.preventDefault(),onDismiss:()=>g.onOpenChange(!1),children:s.jsx(Ke,{role:"listbox",id:g.contentId,"data-state":g.open?"open":"closed",dir:g.dir,onContextMenu:Q=>Q.preventDefault(),...y,...q,onPlaced:()=>D(!0),ref:P,style:{display:"flex",flexDirection:"column",outline:"none",...y.style},onKeyDown:ue(y.onKeyDown,Q=>{const we=Q.ctrlKey||Q.altKey||Q.metaKey;if(Q.key==="Tab"&&Q.preventDefault(),!we&&Q.key.length===1&&U(Q.key),["ArrowUp","ArrowDown","Home","End"].includes(Q.key)){let V=k().filter(ee=>!ee.disabled).map(ee=>ee.ref.current);if(["ArrowUp","End"].includes(Q.key)&&(V=V.slice().reverse()),["ArrowUp","ArrowDown"].includes(Q.key)){const ee=Q.target,H=V.indexOf(ee);V=V.slice(H+1)}setTimeout(()=>L(V)),Q.preventDefault()}})})})})})})});XV.displayName=YCe;var QCe="SelectItemAlignedPosition",YV=b.forwardRef((e,t)=>{const{__scopeSelect:r,onPlaced:n,...a}=e,i=Go(Ql,r),o=Ko(Ql,r),[l,c]=b.useState(null),[u,d]=b.useState(null),f=it(t,P=>d(P)),m=$0(r),p=b.useRef(!1),v=b.useRef(!0),{viewport:h,selectedItem:x,selectedItemText:y,focusSelectedItem:g}=o,j=b.useCallback(()=>{if(i.trigger&&i.valueNode&&l&&u&&h&&x&&y){const P=i.trigger.getBoundingClientRect(),C=u.getBoundingClientRect(),A=i.valueNode.getBoundingClientRect(),O=y.getBoundingClientRect();if(i.dir!=="rtl"){const ee=O.left-C.left,H=A.left-ee,Re=P.left-H,Pe=P.width+Re,te=Math.max(Pe,C.width),Ie=window.innerWidth-Ta,jt=LM(H,[Ta,Math.max(Ta,Ie-te)]);l.style.minWidth=Pe+"px",l.style.left=jt+"px"}else{const ee=C.right-O.right,H=window.innerWidth-A.right-ee,Re=window.innerWidth-P.right-H,Pe=P.width+Re,te=Math.max(Pe,C.width),Ie=window.innerWidth-Ta,jt=LM(H,[Ta,Math.max(Ta,Ie-te)]);l.style.minWidth=Pe+"px",l.style.right=jt+"px"}const E=m(),k=window.innerHeight-Ta*2,M=h.scrollHeight,D=window.getComputedStyle(u),F=parseInt(D.borderTopWidth,10),L=parseInt(D.paddingTop,10),B=parseInt(D.borderBottomWidth,10),R=parseInt(D.paddingBottom,10),I=F+L+M+R+B,G=Math.min(x.offsetHeight*5,I),U=window.getComputedStyle(h),K=parseInt(U.paddingTop,10),ce=parseInt(U.paddingBottom,10),pe=P.top+P.height/2-Ta,Ke=k-pe,q=x.offsetHeight/2,Q=x.offsetTop+q,we=F+L+Q,Z=I-we;if(we<=pe){const ee=E.length>0&&x===E[E.length-1].ref.current;l.style.bottom="0px";const H=u.clientHeight-h.offsetTop-h.offsetHeight,Re=Math.max(Ke,q+(ee?ce:0)+H+B),Pe=we+Re;l.style.height=Pe+"px"}else{const ee=E.length>0&&x===E[0].ref.current;l.style.top="0px";const Re=Math.max(pe,F+h.offsetTop+(ee?K:0)+q)+Z;l.style.height=Re+"px",h.scrollTop=we-pe+h.offsetTop}l.style.margin=`${Ta}px 0`,l.style.minHeight=G+"px",l.style.maxHeight=k+"px",n==null||n(),requestAnimationFrame(()=>p.current=!0)}},[m,i.trigger,i.valueNode,l,u,h,x,y,i.dir,n]);gr(()=>j(),[j]);const[S,w]=b.useState();gr(()=>{u&&w(window.getComputedStyle(u).zIndex)},[u]);const N=b.useCallback(P=>{P&&v.current===!0&&(j(),g==null||g(),v.current=!1)},[j,g]);return s.jsx(eAe,{scope:r,contentWrapper:l,shouldExpandOnScrollRef:p,onScrollButtonChange:N,children:s.jsx("div",{ref:c,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:S},children:s.jsx(Oe.div,{...a,ref:f,style:{boxSizing:"border-box",maxHeight:"100%",...a.style}})})})});YV.displayName=QCe;var JCe="SelectPopperPosition",_N=b.forwardRef((e,t)=>{const{__scopeSelect:r,align:n="start",collisionPadding:a=Ta,...i}=e,o=L0(r);return s.jsx(kS,{...o,...i,ref:t,align:n,collisionPadding:a,style:{boxSizing:"border-box",...i.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});_N.displayName=JCe;var[eAe,xC]=tf(Ql,{}),kN="SelectViewport",ZV=b.forwardRef((e,t)=>{const{__scopeSelect:r,nonce:n,...a}=e,i=Ko(kN,r),o=xC(kN,r),l=it(t,i.onViewportChange),c=b.useRef(0);return s.jsxs(s.Fragment,{children:[s.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:n}),s.jsx(I0.Slot,{scope:r,children:s.jsx(Oe.div,{"data-radix-select-viewport":"",role:"presentation",...a,ref:l,style:{position:"relative",flex:1,overflow:"hidden auto",...a.style},onScroll:ue(a.onScroll,u=>{const d=u.currentTarget,{contentWrapper:f,shouldExpandOnScrollRef:m}=o;if(m!=null&&m.current&&f){const p=Math.abs(c.current-d.scrollTop);if(p>0){const v=window.innerHeight-Ta*2,h=parseFloat(f.style.minHeight),x=parseFloat(f.style.height),y=Math.max(h,x);if(y<v){const g=y+p,j=Math.min(v,g),S=g-j;f.style.height=j+"px",f.style.bottom==="0px"&&(d.scrollTop=S>0?S:0,f.style.justifyContent="flex-end")}}}c.current=d.scrollTop})})})]})});ZV.displayName=kN;var QV="SelectGroup",[tAe,rAe]=tf(QV),nAe=b.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,a=ha();return s.jsx(tAe,{scope:r,id:a,children:s.jsx(Oe.div,{role:"group","aria-labelledby":a,...n,ref:t})})});nAe.displayName=QV;var JV="SelectLabel",ez=b.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,a=rAe(JV,r);return s.jsx(Oe.div,{id:a.id,...n,ref:t})});ez.displayName=JV;var Lx="SelectItem",[aAe,tz]=tf(Lx),rz=b.forwardRef((e,t)=>{const{__scopeSelect:r,value:n,disabled:a=!1,textValue:i,...o}=e,l=Go(Lx,r),c=Ko(Lx,r),u=l.value===n,[d,f]=b.useState(i??""),[m,p]=b.useState(!1),v=it(t,g=>{var j;return(j=c.itemRefCallback)==null?void 0:j.call(c,g,n,a)}),h=ha(),x=b.useRef("touch"),y=()=>{a||(l.onValueChange(n),l.onOpenChange(!1))};if(n==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return s.jsx(aAe,{scope:r,value:n,disabled:a,textId:h,isSelected:u,onItemTextChange:b.useCallback(g=>{f(j=>j||((g==null?void 0:g.textContent)??"").trim())},[]),children:s.jsx(I0.ItemSlot,{scope:r,value:n,disabled:a,textValue:d,children:s.jsx(Oe.div,{role:"option","aria-labelledby":h,"data-highlighted":m?"":void 0,"aria-selected":u&&m,"data-state":u?"checked":"unchecked","aria-disabled":a||void 0,"data-disabled":a?"":void 0,tabIndex:a?void 0:-1,...o,ref:v,onFocus:ue(o.onFocus,()=>p(!0)),onBlur:ue(o.onBlur,()=>p(!1)),onClick:ue(o.onClick,()=>{x.current!=="mouse"&&y()}),onPointerUp:ue(o.onPointerUp,()=>{x.current==="mouse"&&y()}),onPointerDown:ue(o.onPointerDown,g=>{x.current=g.pointerType}),onPointerMove:ue(o.onPointerMove,g=>{var j;x.current=g.pointerType,a?(j=c.onItemLeave)==null||j.call(c):x.current==="mouse"&&g.currentTarget.focus({preventScroll:!0})}),onPointerLeave:ue(o.onPointerLeave,g=>{var j;g.currentTarget===document.activeElement&&((j=c.onItemLeave)==null||j.call(c))}),onKeyDown:ue(o.onKeyDown,g=>{var S;((S=c.searchRef)==null?void 0:S.current)!==""&&g.key===" "||(UCe.includes(g.key)&&y(),g.key===" "&&g.preventDefault())})})})})});rz.displayName=Lx;var Ff="SelectItemText",nz=b.forwardRef((e,t)=>{const{__scopeSelect:r,className:n,style:a,...i}=e,o=Go(Ff,r),l=Ko(Ff,r),c=tz(Ff,r),u=GCe(Ff,r),[d,f]=b.useState(null),m=it(t,y=>f(y),c.onItemTextChange,y=>{var g;return(g=l.itemTextRefCallback)==null?void 0:g.call(l,y,c.value,c.disabled)}),p=d==null?void 0:d.textContent,v=b.useMemo(()=>s.jsx("option",{value:c.value,disabled:c.disabled,children:p},c.value),[c.disabled,c.value,p]),{onNativeOptionAdd:h,onNativeOptionRemove:x}=u;return gr(()=>(h(v),()=>x(v)),[h,x,v]),s.jsxs(s.Fragment,{children:[s.jsx(Oe.span,{id:c.textId,...i,ref:m}),c.isSelected&&o.valueNode&&!o.valueNodeHasChildren?ic.createPortal(i.children,o.valueNode):null]})});nz.displayName=Ff;var az="SelectItemIndicator",sz=b.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e;return tz(az,r).isSelected?s.jsx(Oe.span,{"aria-hidden":!0,...n,ref:t}):null});sz.displayName=az;var MN="SelectScrollUpButton",iz=b.forwardRef((e,t)=>{const r=Ko(MN,e.__scopeSelect),n=xC(MN,e.__scopeSelect),[a,i]=b.useState(!1),o=it(t,n.onScrollButtonChange);return gr(()=>{if(r.viewport&&r.isPositioned){let l=function(){const u=c.scrollTop>0;i(u)};const c=r.viewport;return l(),c.addEventListener("scroll",l),()=>c.removeEventListener("scroll",l)}},[r.viewport,r.isPositioned]),a?s.jsx(lz,{...e,ref:o,onAutoScroll:()=>{const{viewport:l,selectedItem:c}=r;l&&c&&(l.scrollTop=l.scrollTop-c.offsetHeight)}}):null});iz.displayName=MN;var DN="SelectScrollDownButton",oz=b.forwardRef((e,t)=>{const r=Ko(DN,e.__scopeSelect),n=xC(DN,e.__scopeSelect),[a,i]=b.useState(!1),o=it(t,n.onScrollButtonChange);return gr(()=>{if(r.viewport&&r.isPositioned){let l=function(){const u=c.scrollHeight-c.clientHeight,d=Math.ceil(c.scrollTop)<u;i(d)};const c=r.viewport;return l(),c.addEventListener("scroll",l),()=>c.removeEventListener("scroll",l)}},[r.viewport,r.isPositioned]),a?s.jsx(lz,{...e,ref:o,onAutoScroll:()=>{const{viewport:l,selectedItem:c}=r;l&&c&&(l.scrollTop=l.scrollTop+c.offsetHeight)}}):null});oz.displayName=DN;var lz=b.forwardRef((e,t)=>{const{__scopeSelect:r,onAutoScroll:n,...a}=e,i=Ko("SelectScrollButton",r),o=b.useRef(null),l=$0(r),c=b.useCallback(()=>{o.current!==null&&(window.clearInterval(o.current),o.current=null)},[]);return b.useEffect(()=>()=>c(),[c]),gr(()=>{var d;const u=l().find(f=>f.ref.current===document.activeElement);(d=u==null?void 0:u.ref.current)==null||d.scrollIntoView({block:"nearest"})},[l]),s.jsx(Oe.div,{"aria-hidden":!0,...a,ref:t,style:{flexShrink:0,...a.style},onPointerDown:ue(a.onPointerDown,()=>{o.current===null&&(o.current=window.setInterval(n,50))}),onPointerMove:ue(a.onPointerMove,()=>{var u;(u=i.onItemLeave)==null||u.call(i),o.current===null&&(o.current=window.setInterval(n,50))}),onPointerLeave:ue(a.onPointerLeave,()=>{c()})})}),sAe="SelectSeparator",cz=b.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e;return s.jsx(Oe.div,{"aria-hidden":!0,...n,ref:t})});cz.displayName=sAe;var RN="SelectArrow",iAe=b.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,a=L0(r),i=Go(RN,r),o=Ko(RN,r);return i.open&&o.position==="popper"?s.jsx(MS,{...a,...n,ref:t}):null});iAe.displayName=RN;function uz(e){return e===""||e===void 0}var dz=b.forwardRef((e,t)=>{const{value:r,...n}=e,a=b.useRef(null),i=it(t,a),o=vC(r);return b.useEffect(()=>{const l=a.current,c=window.HTMLSelectElement.prototype,d=Object.getOwnPropertyDescriptor(c,"value").set;if(o!==r&&d){const f=new Event("change",{bubbles:!0});d.call(l,r),l.dispatchEvent(f)}},[o,r]),s.jsx(op,{asChild:!0,children:s.jsx("select",{...n,ref:i,defaultValue:r})})});dz.displayName="BubbleSelect";function fz(e){const t=Ur(e),r=b.useRef(""),n=b.useRef(0),a=b.useCallback(o=>{const l=r.current+o;t(l),function c(u){r.current=u,window.clearTimeout(n.current),u!==""&&(n.current=window.setTimeout(()=>c(""),1e3))}(l)},[t]),i=b.useCallback(()=>{r.current="",window.clearTimeout(n.current)},[]);return b.useEffect(()=>()=>window.clearTimeout(n.current),[]),[r,a,i]}function mz(e,t,r){const a=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,i=r?e.indexOf(r):-1;let o=oAe(e,Math.max(i,0));a.length===1&&(o=o.filter(u=>u!==r));const c=o.find(u=>u.textValue.toLowerCase().startsWith(a.toLowerCase()));return c!==r?c:void 0}function oAe(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var lAe=VV,hz=BV,cAe=WV,uAe=qV,dAe=HV,pz=GV,fAe=ZV,gz=ez,vz=rz,mAe=nz,hAe=sz,xz=iz,yz=oz,bz=cz;const Jr=lAe,en=cAe,Fr=b.forwardRef(({className:e,children:t,...r},n)=>s.jsxs(hz,{ref:n,className:ie("flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm r
771ing-offset-background data-[placeholder]:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...r,children:[t,s.jsx(uAe,{asChild:!0,children:s.jsx(os,{className:"h-4 w-4 opacity-50"})})]}));Fr.displayName=hz.displayName;const jz=b.forwardRef(({className:e,...t},r)=>s.jsx(xz,{ref:r,className:ie("flex cursor-default items-center justify-center py-1",e),...t,children:s.jsx(Oc,{className:"h-4 w-4"})}));jz.displayName=xz.displayName;const wz=b.forwardRef(({className:e,...t},r)=>s.jsx(yz,{ref:r,className:ie("flex cursor-default items-center justify-center py-1",e),...t,children:s.jsx(os,{className:"h-4 w-4"})}));wz.displayName=yz.displayName;const Vr=b.forwardRef(({className:e,children:t,position:r="popper",...n},a)=>s.jsx(dAe,{children:s.jsxs(pz,{ref:a,className:ie("relative z-50 max-h-[--radix-select-content-available-height] min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border bg-popover text-popover-foreground shadow-md 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 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-select-content-transform-origin]",r==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:r,...n,children:[s.jsx(jz,{}),s.jsx(fAe,{className:ie("p-1",r==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),s.jsx(wz,{})]})}));Vr.displayName=pz.displayName;const pAe=b.forwardRef(({className:e,...t},r)=>s.jsx(gz,{ref:r,className:ie("py-1.5 pl-8 pr-2 text-sm font-semibold",e),...t}));pAe.displayName=gz.displayName;const xe=b.forwardRef(({className:e,children:t,...r},n)=>s.jsxs(vz,{ref:n,className:ie("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...r,children:[s.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:s.jsx(hAe,{children:s.jsx(mn,{className:"h-4 w-4"})})}),s.jsx(mAe,{children:t})]}));xe.displayName=vz.displayName;const gAe=b.forwardRef(({className:e,...t},r)=>s.jsx(bz,{ref:r,className:ie("-mx-1 my-1 h-px bg-muted",e),...t}));gAe.displayName=bz.displayName;const Os=b.forwardRef(({className:e,...t},r)=>s.jsx("textarea",{className:ie("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:r,...t}));Os.displayName="Textarea";const ve=b.forwardRef(({className:e,type:t,...r},n)=>s.jsx("input",{type:t,className:ie("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:n,...r}));ve.displayName="Input";function FM(e){const t=typeof e=="string"?new Date(e):e;return new Intl.DateTimeFormat("pt-BR",{day:"2-digit",month:"2-digit",year:"numeric",hour:"2-digit",minute:"2-digit"}).format(t)}const vAe={novo:"bg-blue-100 text-blue-800 border-blue-200",em_analise:"bg-yellow-100 text-yellow-800 border-yellow-200",enviado:"bg-orange-100 text-orange-800 border-orange-200",concluido:"bg-green-100 text-green-800 border-green-200",cancelado:"bg-red-100 text-red-800 border-red-200"}
771,xAe={novo:"Novo",em_analise:"Em Análise",enviado:"Orçamento Enviado",concluido:"ConcluÃdo",cancelado:"Cancelado"};function yAe({quotes:e}){const{data:t,isLoading:r}=Gt({queryKey:["/api/admin/quotes"],queryFn:Er({on401:"throw"}),refetchInterval:6e4}),n=e||(t!=null&&t.success?t.data:[]),{toast:a}=wn(),[i,o]=wa(),[l,c]=b.useState(null),[u,d]=b.useState(!1),[f,m]=b.useState(""),[p,v]=b.useState(null),[h,x]=b.useState(!1),y=Kt({mutationFn:async({id:N,status:P,notes:C})=>(await ft("PATCH",`/api/admin/quotes/${N}`,{status:P,notes:C})).json(),onSuccess:()=>{a({title:"Status atualizado",description:"O status do formulário foi atualizado com sucesso."}),hr.invalidateQueries({queryKey:["/api/admin/quotes"]}),d(!1)},onError:N=>{a({title:"Erro ao atualizar status",description:N.message,variant:"destructive"})}}),g=Kt({mutationFn:async N=>(await ft("POST",`/api/admin/orders/from-quote/${N}`)).json(),onSuccess:N=>{a({title:"Pedido criado com sucesso",description:`O orçamento foi convertido em pedido com ID #${N.data.id}`}),hr.invalidateQueries({queryKey:["/api/admin/quotes"]}),hr.invalidateQueries({queryKey:["/api/admin/orders"]}),d(!1),o(`/admin/orders?highlight=${N.data.id}`)},onError:N=>{a({title:"Erro ao converter em pedido",description:N.message,variant:"destructive"})}}),j=N=>{window.confirm("Tem certeza que deseja converter este orçamento em pedido? Esta ação não pode ser desfeita.")&&g.mutate(N)},S=n.filter(N=>{var P,C,A,O;if(p&&N.status!==p)return!1;if(f){const E=f.toLowerCase();return((P=N.name)==null?void 0:P.toLowerCase().includes(E))||((C=N.email)==null?void 0:C.toLowerCase().includes(E))||((A=N.phone)==null?void 0:A.toLowerCase().includes(E))||N.company&&N.company.toLowerCase().includes(E)||N.details&&N.details.toLowerCase().includes(E)||((O=N.productType)==null?void 0:O.toLowerCase().includes(E))}return!0}).sort((N,P)=>{const C=N.createdAt?new Date(N.createdAt).getTime():0;return(P.createdAt?new Date(P.createdAt).getTime():0)-C}),w=N=>{l&&y.mutate({id:l.id,status:N,notes:l.notes||void 0})};return s.jsxs("div",{className:"space-y-6",children:[s.jsxs("div",{className:"flex flex-col md:flex-row md:items-center justify-between gap-4",children:[s.jsx("h2",{className:"text-2xl font-bold",children:"Gerenciamento de Formulários"}),s.jsxs("div",{className:"flex flex-col sm:flex-row gap-3",children:[s.jsxs("div",{className:"relative",children:[s.jsx(zl,{className:"absolute left-2.5 top-2.5 h-4 w-4 text-gray-500"}),s.jsx(ve,{placeholder:"Buscar formulários...",className:"pl-9",value:f,onChange:N=>m(N.target.value)})]}),s.jsxs(Jr,{value:p||"todos",onValueChange:N=>v(N==="todos"?null:N),children:[s.jsx(Fr,{className:"w-[180px]",children:s.jsx(en,{placeholder:"Filtrar por status"})}),s.jsxs(Vr,{children:[s.jsx(xe,{value:"todos",children:"Todos os status"}),s.jsx(xe,{value:"novo",children:"Novos"}),s.jsx(xe,{value:"em_analise",children:"Em Análise"}),s.jsx(xe,{value:"enviado",children:"Orçamento Enviado"}),s.jsx(xe,{value:"concluido",children:"ConcluÃdos"}),s.jsx(xe,{value:"cancelado",children:"Cancelados"})]})]}),s.jsx(W,{variant:"outline",size:"icon",onClick:()=>{m(""),v(null)},title:"Limpar filtros",children:s.jsx(qu,{className:"h-4 w-4"})}),s.jsxs(W,{variant:"outline",onClick:()=>{a({title:"Exportando formulários",description:"Funcionalidade em desenvolvimento"})},children:[s.jsx(Rm,{className:"h-4 w-4 mr-2"}),"Exportar"]}),!1]})]}),s.jsxs(fe,{children:[s.jsxs(Me,{className:"pb-3",children:[s.jsx(De,{children:"Formulários Recebidos"}),s.jsx(Ye,{children:h||r?"Carregando formulários...":`Total de ${S.length} formulários`})]}),s.jsx(me,{children:h||r?s.jsx("div",{className:"flex items-center justify-center h-64",children:s.jsx("div",{className:"animate-spin h-8 w-8 border-4 border-primary border-t-transparent rounded-full"})}):S.length===0?s.jsxs("div",{className:"text-center py-8",children:[s.jsx(Lt,{className:"h-12 w-12 mx-auto text-gray-400 mb-3"}),s.jsx("h3",{className:"text-lg font-medium text-gray-800",children:"Nenhum formulário encontrado"}),s.jsx("p",{className:"text-gray-500 mt-1 max-w-md mx-auto",children:f||p?"Tente ajustar os filtros para ver mais resultados.":"Quando os clientes preencherem formulários, eles aparecerão aqui."})]}):s.jsx("div",{className:"overflow-x-auto",children:s.jsxs(ai,{children:[s.jsx(si,{children:s.jsxs(br,{className:"bg-gray-50",children:[s.jsx(Ze,{className:"w-[80px]",children:"ID"}),s.jsx(Ze,{children:"Cliente"}),s.jsx(Ze,{children:"Produto"}),s.jsx(Ze,{children:"Data"}),s.jsx(Ze,{children:"Status"}),s.jsx(Ze,{className:"w-[100px]",children:"Ações"})]})}),s.jsx(ii,{children:S.map(N=>s.jsxs(br,{children:[s.jsx(Le,{className:"font-medium",children:N.id}),s.jsx(Le,{children:s.jsxs("div",{className:"flex flex-col",children:[s.jsx("span",{className:"font-medium",children:N.name}),s.jsx("span",{className:"text-xs text-gray-500",children:N.email})]})}),s.jsx(Le,{children:s.jsxs("div",{className:"flex flex-col",children:[s.jsx("span",{children:N.productType}),s.jsxs("span",{className:"text-xs text-gray-500",children:["Qtd: ",N.quantity]})]})}),s.jsx(Le,{children:FM(N.createdAt)}),s.jsx(Le,{children:s.jsx(Ue,{variant:"outline",className:vAe[N.status]||"",children:xAe[N.status]||N.status})}),s.jsx(Le,{children:s.jsxs(Oo,{children:[s.jsx(_o,{asChild:!0,children:s.jsx(W,{variant:"ghost",size:"icon",children:s.jsx(Oy,{className:"h-4 w-4"})})}),s.jsxs(bi,{align:"end",children:[s.jsx(hc,{children:"Ações"}),s.jsxs(Je,{onClick:()=>{c(N),d(!0)},children:[s.jsx(gs,{className:"h-4 w-4 mr-2"}),"Ver detalhes"]}),s.jsxs(Je,{onClick:()=>{const P=N.phone.replace(/\D/g,""),C=encodeURIComponent(`Olá ${N.name}, estou entrando em contato sobre seu orçamento de ${N.productType} solicitado na ConfecXpress. Podemos conversar?`);window.open(`https://wa.me/${P}?text=${C}`,"_blank")},children:[s.jsx(ba,{className:"h-4 w-4 mr-2"}),"Contatar cliente"]}),s.jsxs(Je,{onClick:()=>{window.open(`/api/quotes/${N.id}/pdf`,"_blank")},children:[s.jsx(Lm,{className:"h-4 w-4 mr-2"}),"Baixar Formulário PDF"]}),s.jsx(js,{}),s.jsxs(Je,{onClick:()=>{c(N),w("em_analise")},disabled:N.status==="em_analise",children:[s.jsx(so,{className:"h-4 w-4 mr-2"}),"Marcar em análise"]}),s.jsxs(Je,{onClick:()=>{c(N),w("enviado")},disabled:N.status==="enviado",children:[s.jsx(Vl,{className:"h-4 w-4 mr-2"}),"Marcar orçamento enviado"]}),s.jsxs(Je,{onClick:()=>{c(N),w("concluido")},disabled:N.status==="concluido",children:[s.jsx(Fm,{className:"h-4 w-4 mr-2"}),"Marcar como concluÃdo"]}),s.jsx(js,{}),s.jsxs(Je,{onClick:()=>{window.confirm("Tem certeza que deseja cancelar este orçamento?")&&(c(N),w("cancelado"))},className:"text-red-600",disabled:N.status==="cancelado",children:[s.jsx(qu,{className:"h-4 w-4 mr-2"}),"Cancelar orçamento"]})]})]})})]},N.id))})]})})})]}),s.jsx(Ct,{open:u,onOpenChange:d,children:s.jsxs(Bt,{className:"max-w-3xl overflow-y-auto max-h-[90vh]",children:[s.jsxs(Xt,{children:[s.jsxs(Yt,{children:["Detalhes do Formulário #",l==null?void 0:l.id]}),s.jsxs(Zt,{children:["Solicitado em ",l?FM(l.createdAt):""]})]}),l&&s.jsxs("div",{className:"space-y-6",children:[s.jsxs("div",{children:[s.jsxs("h3",{className:"text-lg font-semibold flex items-center mb-3",children:[s.jsx(cp,{className:"h-5 w-5 mr-2 text-primary"}),"Informações do Cliente"]}),s.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[s.jsxs("div",{className:"space-y-2",children:[s.jsx("p",{className:"text-sm font-medium text-gray-500",children:"Nome"}),s.jsx("p",{children:l.name})]}),s.jsxs("div",{className:"space-y-2",children:[s.jsx("p",{className:"text-sm font-medium text-gray-500",children:"Empresa"}),s.jsx("p",{children:l.company||"N/A"})]}),s.jsxs("div",{className:"space-y-2",children:[s.jsxs("p",{className:"text-sm font-medium text-gray-500 flex items-center",children:[s.jsx(El,{className:"h-4 w-4 mr-1"})," Email"]}),s.jsx("p",{children:l.email})]}),s.jsxs("div",{className:"space-y-2",children:[s.jsxs("p",{className:"text-sm font-medium text-gray-500 flex items-center",children:[s.jsx(_y,{className:"h-4 w-4 mr-1"})," Telefone"]}),s.jsx("p",{children:l.phone})]})]})]}),s.jsxs("div",{className:"border-t pt-4",children:[s.jsxs("h3",{className:"text-lg font-semibold flex items-center mb-3",children:[s.jsx(Uu,{className:"h-5 w-5 mr-2 text-primary"}),"Detalhes do Pedido"]}),s.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[s.jsxs("div",{className:"space-y-2",children:[s.jsx("p",{className:"text-sm font-medium text-gray-500",children:"Produto"}),s.jsx("p",{children:l.productType})]}),s.jsxs("div",{className:"space-y-2",children:[s.jsx("p",{className:"text-sm font-medium text-gray-500",children:"Quantidade"}),s.jsxs("p",{children:[l.quantity," unidades"]})]}),s.jsxs("div",{className:"space-y-2",children:[s.jsx("p",{className:"text-sm font-medium text-gray-500",children:"Prazo Desejado"}),s.jsx("p",{children:l.deliveryTime||"Não especificado"})]}),s.jsxs("div",{className:"space-y-2",children:[s.jsx("p",{className:"text-sm font-medium text-gray-500",children:"Status"}),s.jsxs(Jr,{value:l.status,onValueChange:N=>{c({...l,status:N})},children:[s.jsx(Fr,{children:s.jsx(en,{placeholder:"Status do orçamento"})}),s.jsxs(Vr,{children:[s.jsx(xe,{value:"novo",children:"Novo"}),s.jsx(xe,{value:"em_analise",children:"Em Análise"}),s.jsx(xe,{value:"enviado",children:"Orçamento Enviado"}),s.jsx(xe,{value:"concluido",children:"ConcluÃdo"}),s.jsx(xe,{value:"cancelado",children:"Cancelado"})]})]})]})]})]}),s.jsxs("div",{className:"border-t pt-4",children:[s.jsxs("h3",{className:"text-lg font-semibold flex items-center mb-3",children:[s.jsx(Wu,{className:"h-5 w-5 mr-2 text-primary"}),"Especificações do Produto"]}),s.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[s.jsxs("div",{className:"space-y-2",children:[s.jsx("p",{className:"text-sm font-medium text-gray-500",children:"Tamanhos"}),s.jsx("p",{children:l.sizes||"Não especificado"})]}),s.jsxs("div",{className:"space-y-2",children:[s.jsx("p",{className:"text-sm font-medium text-gray-500",children:"Cores"}),s.jsx("p",{children:l.colors||"Não especificado"})]}),s.jsxs("div",{className:"space-y-2",children:[s.jsx("p",{className:"text-sm font-medium text-gray-500",children:"Tecido"}),s.jsx("p",{children:l.fabric||"Não especificado"})]}),s.jsxs("div",{className:"space-y-2",children:[s.jsx("p",{className:"text-sm font-medium text-gray-500",children:"Tipo de Estampa"}),s.jsx("p",{children:l.printType||"Não especificado"})]}),s.jsxs("div",{className:"space-y-2",children:[s.jsx("p",{className:"text-sm font-medium text-gray-500",children:"Cores da Estampa"}),s.jsx("p",{children:l.printColors||"Não especificado"})]}),s.jsxs("div",{className:"space-y-2",children:[s.jsx("p",{className:"text-sm font-medium text-gray-500",children:"Tamanho da Estampa"}),s.jsx("p",{children:l.printSize||"Não especificado"})]})]})]}),s.jsxs("div",{className:"border-t pt-4",children:[s.jsxs("h3",{className:"text-lg font-semibold flex items-center mb-3",children:[s.jsx(Lt,{className:"h-5 w-5 mr-2 text-primary"}),"Detalhes Adicionais"]}),s.jsxs("div",{className:"space-y-3",children:[s.jsxs("div",{className:"space-y-2",children:[s.jsx("p",{className:"text-sm font-medium text-gray-500",children:"Descrição do Pedido"}),s.jsx("p",{className:"bg-gray-50 p-3 rounded-md whitespace-pre-wrap",children:l.details||"Nenhuma descrição fornecida"})]}),l.fileUrl&&s.jsxs("div",{className:"space-y-2",children:[s.jsx("p",{className:"text-sm font-medium text-gray-500",children:"Arquivos Anexad
771os"}),s.jsx("div",{className:"flex flex-wrap gap-2",children:l.fileUrl.split(",").map((N,P)=>{var C;return s.jsxs("a",{href:N.trim(),target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center bg-blue-50 text-blue-700 px-3 py-1.5 rounded-md text-sm hover:bg-blue-100 transition-colors",children:[s.jsx(Lt,{className:"h-4 w-4 mr-2"}),l.fileName?((C=l.fileName.split(",")[P])==null?void 0:C.trim())||`Arquivo ${P+1}`:`Arquivo ${P+1}`]},P)})})]}),s.jsxs("div",{className:"space-y-2",children:[s.jsx("p",{className:"text-sm font-medium text-gray-500",children:"Notas Internas"}),s.jsx(Os,{placeholder:"Adicione notas internas sobre este orçamento...",className:"min-h-24",value:l.notes||"",onChange:N=>c({...l,notes:N.target.value})})]})]})]}),s.jsxs("div",{className:"border-t pt-4",children:[s.jsxs("h3",{className:"text-lg font-semibold flex items-center mb-3",children:[s.jsx(V5,{className:"h-5 w-5 mr-2 text-primary"}),"Próximos Passos"]}),s.jsx("div",{className:"space-y-3",children:s.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[s.jsxs(W,{className:"w-full",onClick:()=>{const N=l.phone.replace(/\D/g,""),P=encodeURIComponent(`Olá ${l.name}, sobre seu orçamento de ${l.productType} solicitado na ConfecXpress. Podemos conversar sobre os detalhes?`);window.open(`https://wa.me/${N}?text=${P}`,"_blank")},children:[s.jsx(ba,{className:"h-4 w-4 mr-2"}),"Contatar via WhatsApp"]}),s.jsxs(W,{variant:"outline",className:"w-full",onClick:()=>{a({title:"Email de orçamento",description:"Funcionalidade em desenvolvimento"})},children:[s.jsx(El,{className:"h-4 w-4 mr-2"}),"Preparar Email"]})]})})]})]}),s.jsxs(Pr,{className:"flex flex-col-reverse sm:flex-row sm:justify-between sm:space-x-2",children:[s.jsxs("div",{className:"flex flex-col sm:flex-row gap-2",children:[s.jsx(W,{variant:"outline",onClick:()=>d(!1),children:"Fechar"}),(l==null?void 0:l.status)==="aprovado"&&!(l!=null&&l.orderId)&&s.jsxs(W,{variant:"default",className:"bg-green-600 hover:bg-green-700",onClick:()=>j(l.id),disabled:g.isPending,children:[g.isPending?s.jsx("div",{className:"animate-spin h-4 w-4 mr-2 border-2 border-white border-t-transparent rounded-full"}):s.jsx(gS,{className:"h-4 w-4 mr-2"}),"Converter em Pedido"]}),(l==null?void 0:l.orderId)&&s.jsxs(W,{variant:"secondary",onClick:()=>{d(!1),o(`/admin/orders?highlight=${l.orderId}`)},children:[s.jsx(Uu,{className:"h-4 w-4 mr-2"}),"Ver Pedido #",l.orderId]})]}),s.jsxs(W,{onClick:()=>w((l==null?void 0:l.status)||"novo"),disabled:y.isPending,children:[y.isPending?s.jsx("div",{className:"animate-spin h-4 w-4 mr-2 border-2 border-white border-t-transparent rounded-full"}):s.jsx(Vl,{className:"h-4 w-4 mr-2"}),"Salvar Alterações"]})]})]})})]})}var yC="Avatar",[bAe,yRe]=kr(yC),[jAe,Nz]=bAe(yC),Sz=b.forwardRef((e,t)=>{const{__scopeAvatar:r,...n}=e,[a,i]=b.useState("idle");return s.jsx(jAe,{scope:r,imageLoadingStatus:a,onImageLoadingStatusChange:i,children:s.jsx(Oe.span,{...n,ref:t})})});Sz.displayName=yC;var Pz="AvatarImage",Cz=b.forwardRef((e,t)=>{const{__scopeAvatar:r,src:n,onLoadingStatusChange:a=()=>{},...i}=e,o=Nz(Pz,r),l=wAe(n,i),c=Ur(u=>{a(u),o.onImageLoadingStatusChange(u)});return gr(()=>{l!=="idle"&&c(l)},[l,c]),l==="loaded"?s.jsx(Oe.img,{...i,ref:t,src:n}):null});Cz.displayName=Pz;var Az="AvatarFallback",Tz=b.forwardRef((e,t)=>{const{__scopeAvatar:r,delayMs:n,...a}=e,i=Nz(Az,r),[o,l]=b.useState(n===void 0);return b.useEffect(()=>{if(n!==void 0){const c=window.setTimeout(()=>l(!0),n);return()=>window.clearTimeout(c)}},[n]),o&&i.imageLoadingStatus!=="loaded"?s.jsx(Oe.span,{...a,ref:t}):null});Tz.displayName=Az;
771function VM(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}function wAe(e,{referrerPolicy:t,crossOrigin:r}){const n=SAe(),a=b.useRef(null),i=n?(a.current||(a.current=new window.Image),a.current):null,[o,l]=b.useState(()=>VM(i,e));return gr(()=>{l(VM(i,e))},[i,e]),gr(()=>{const c=f=>()=>{l(f)};if(!i)return;const u=c("loaded"),d=c("error");return i.addEventListener("load",u),i.addEventListener("error",d),t&&(i.referrerPolicy=t),typeof r=="string"&&(i.crossOrigin=r),()=>{i.removeEventListener("load",u),i.removeEventListener("error",d)}},[i,r,t]),o}function NAe(){return()=>{}}function SAe(){return b.useSyncExternalStore(NAe,()=>!0,()=>!1)}var Ez=Sz,Oz=Cz,_z=Tz;const wp=b.forwardRef(({className:e,...t},r)=>s.jsx(Ez,{ref:r,className:ie("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));wp.displayName=Ez.displayName;const bC=b.forwardRef(({className:e,...t},r)=>s.jsx(Oz,{ref:r,className:ie("aspect-square h-full w-full",e),...t}));bC.displayName=Oz.displayName;const Np=b.forwardRef(({className:e,...t},r)=>s.jsx(_z,{ref:r,className:ie("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t}));Np.displayName=_z.displayName;const wg=["#4F46E5","#EC4899","#10B981","#F59E0B","#6366F1"],PAe={novo:"bg-blue-100 text-blue-800 border-blue-200",em_analise:"bg-yellow-100 text-yellow-800 border-yellow-200",enviado:"bg-orange-100 text-orange-800 border-orange-200",concluido:"bg-green-100 text-green-800 border-green-200",cancelado:"bg-red-100 text-red-800 border-red-200"},CAe={novo:"Novo",em_analise:"Em Análise",enviado:"Orçamento Enviado",concluido:"ConcluÃdo",cancelado:"Cancelado"};function AAe(e){const t=typeof e=="string"?new Date(e):e;return new Intl.DateTimeFormat("pt-BR",{day:"2-digit",month:"2-digit",year:"numeric",hour:"2-digit",minute:"2-digit"}).format(t)}function TAe({setActiveTab:e}){const{toast:t}=wn(),[r,n]=b.useState(!1),{data:a,isLoading:i}=Gt({queryKey:["/api/admin/stats/visits"],queryFn:Er({on401:"throw"})}),{data:o,isLoading:l}=Gt({queryKey:["/api/admin/quotes"],queryFn:Er({on401:"throw"}),refetchInterval:6e4}),c=o!=null&&o.success?o.data:[],u=a!=null&&a.success&&a.data?a.data.map(f=>({name:f.page,value:f.count})):[],d=async()=>{try{n(!0);const m=await(await ft("POST","/api/admin/create-test-quote",{})).json();if(m.success)t({title:"Orçamento de teste criado",description:"Um novo orçamento de teste foi criado com sucesso"}),hr.invalidateQueries({queryKey:["/api/admin/quotes"]});else throw new Error(m.message||"Erro ao criar orçamento de teste")}catch(f){t({title:"Erro",description:(f==null?void 0:f.message)||"Erro ao criar orçamento de teste",variant:"destructive"})}finally{n(!1)}};return s.jsxs("div",{children:[s.jsxs("div",{className:"flex justify-between items-center mb-6",children:[s.jsx("h1",{className:"text-3xl font-bold",children:"Dashboard"}),s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsxs(W,{variant:"outline",size:"sm",onClick:()=>hr.invalidateQueries(),children:[s.jsx(Qr,{className:"h-4 w-4 mr-2"}),"Atualizar Dados"]}),s.jsxs(Oo,{children:[s.jsx(_o,{asChild:!0,children:s.jsxs(W,{variant:"outline",size:"sm",children:[s.jsx(q5,{className:"h-4 w-4 mr-2"}),"PerÃodo"]})}),s.jsxs(bi,{align:"end",children:[s.jsx(hc,{children:"Filtrar por perÃodo"}),s.jsx(Je,{children:"Hoje"}),s.jsx(Je,{children:"Ãltimos 7 dias"}),s.jsx(Je,{children:"Ãltimos 30 dias"}),s.jsx(Je,{children:"Este mês"}),s.jsx(Je,{children:"Este ano"}),s.jsx(js,{}),s.jsx(Je,{children:"PerÃodo personalizado"})]})]})]})]}),s.jsxs("div",{className:"grid gap-6 md:grid-cols-2 lg:grid-cols-4 mb-8",children:[s.jsxs(fe,{className:"border-l-4 border-l-blue-500",children:[s.jsx(Me,{className:"pb-2",children:s.jsxs(De,{className:"text-sm font-medium text-gray-500 flex items-center justify-between",children:[s.jsx("span",{children:"Total de Orçamentos"}),s.jsx(Lt,{className:"h-4 w-4 text-blue-500"})]})}),s.jsxs(me,{children:[s.jsx("div",{className:"text-3xl font-bold",children:c.length}),s.jsxs("div",{className:"flex items-center text-xs text-gray-500 mt-1",children:[s.jsx("span",{children:"Desde o inÃcio"}),c.length>0&&s.jsxs(Ue,{variant:"outline",className:"ml-2 bg-blue-50 text-blue-600 border-blue-200",children:[s.jsx(tm,{className:"h-3 w-3 mr-1"}),"100%"]})]})]})]}),s.jsxs(fe,{className:"border-l-4 border-l-purple-500",children:[s.jsx(Me,{className:"pb-2",children:s.jsxs(De,{className:"text-sm font-medium text-gray-500 flex items-center justify-between",children:[s.jsx("span",{children:"Páginas Visitadas"}),s.jsx(gs,{className:"h-4 w-4 text-purple-500"})]})}),s.jsxs(me,{children:[s.jsx("div",{className:"text-3xl font-bold",children:a!=null&&a.success&&a.data?a.data.reduce((f,m)=>f+m.count,0):0}),s.jsxs("div",{className:"flex items-center text-xs text-gray-500 mt-1",children:[s.jsx("span",{children:"Total de visualizações"}),s.jsxs(Ue,{variant:"outline",className:"ml-2 bg-purple-50 text-purple-600 border-purple-200",children:[s.jsx(tm,{className:"h-3 w-3 mr-1"}),"12.5%"]})]})]})]}),s.jsxs(fe,{className:"border-l-4 border-l-green-500",children:[s.jsx(Me,{className:"pb-2",children:s.jsxs(De,{className:"text-sm font-medium text-gray-500 flex items-center justify-between",children:[s.jsx("span",{children:"Formulários Recentes"}),s.jsx(V5,{className:"h-4 w-4 text-green-500"})]})}),s.jsxs(me,{children:[s.jsx("div",{className:"text-3xl font-bold",children:c.filter(f=>{const m=new Date(f.createdAt),v=Math.abs(new Date().getTime()-m.getTime());return Math.ceil(v/(1e3*60*60*24))<=7}).length}),s.jsxs("div",{className:"flex items-center text-xs text-gray-500 mt-1",children:[s.jsx("span",{children:"Ãltimos 7 dias"}),c.length>0&&s.jsxs(Ue,{variant:"outline",className:"ml-2 bg-green-50 text-green-600 border-green-200",children:[s.jsx(tm,{className:"h-3 w-3 mr-1"}),"Novo"]})]})]})]}),s.jsxs(fe,{className:"border-l-4 border-l-amber-500",children:[s.jsx(Me,{className:"pb-2",children:s.jsxs(De,{className:"text-sm font-medium text-gray-500 flex items-center justify-between",children:[s.jsx("span",{children:"Produtos Mais Orçados"}),s.jsx(Fm,{className:"h-4 w-4 text-amber-500"})]})}),s.jsxs(me,{children:[s.jsx("div",{className:"text-3xl font-bold",children:c.length>0?(()=>{const m=c.map(v=>v.productType).reduce((v,h)=>(v[h]=(v[h]||0)+1,v),{}),p=Object.entries(m).sort((v,h)=>h[1]-v[1]);return p.length>0?p[0][0]:"N/A"})():"N/A"}),s.jsx("p",{className:"text-xs text-gray-500 mt-1",children:"Tipo mais solicitado"})]})]})]}),s.jsxs("div",{className:"grid gap-6 lg:grid-cols-3 mb-8",children:[s.jsxs(fe,{className:"lg:col-span-2",children:[s.jsxs(Me,{children:[s.jsx(De,{children:"Visitas ao Site"}),s.jsx(Ye,{children:"Análise de tráfego nas últimas semanas"})]}),s.jsx(me,{children:i?s.jsx("div",{className:"flex items-center justify-center h-64",children:s.jsx("div",{className:"animate-spin h-8 w-8 border-4 border-primary border-t-transparent roun
771ded-full"})}):s.jsx("div",{className:"h-64",children:s.jsx(hu,{width:"100%",height:"100%",children:s.jsxs(p8,{data:[{name:"Seg",visits:120},{name:"Ter",visits:145},{name:"Qua",visits:135},{name:"Qui",visits:185},{name:"Sex",visits:220},{name:"Sáb",visits:210},{name:"Dom",visits:170}],margin:{top:10,right:30,left:0,bottom:0},children:[s.jsx(Ch,{strokeDasharray:"3 3"}),s.jsx(To,{dataKey:"name"}),s.jsx(Eo,{}),s.jsx(fn,{}),s.jsx(Es,{type:"monotone",dataKey:"visits",stroke:"#8884d8",fill:"#8884d8"})]})})})})]}),s.jsxs(fe,{children:[s.jsxs(Me,{children:[s.jsx(De,{children:"EstatÃsticas de Acesso"}),s.jsx(Ye,{children:"Visualizações por página"})]}),s.jsx(me,{children:i?s.jsx("div",{className:"flex items-center justify-center h-64",children:s.jsx("div",{className:"animate-spin h-8 w-8 border-4 border-primary border-t-transparent rounded-full"})}):!(a!=null&&a.success)||!a.data||a.data.length===0?s.jsxs("div",{className:"text-center py-8",children:[s.jsx(oc,{className:"h-12 w-12 mx-auto text-gray-400 mb-3"}),s.jsx("h3",{className:"text-lg font-medium text-gray-800",children:"Nenhuma estatÃstica disponÃvel"}),s.jsx("p",{className:"text-gray-500 mt-1 max-w-md mx-auto",children:"As estatÃsticas de acesso aparecerão aqui conforme os visitantes navegam pelo site."})]}):s.jsxs("div",{className:"h-64 flex flex-col",children:[s.jsx("div",{className:"flex-1",children:s.jsx(hu,{width:"100%",height:"100%",children:s.jsxs(h8,{children:[s.jsx(Is,{data:u,cx:"50%",cy:"50%",labelLine:!1,outerRadius:60,innerRadius:0,fill:"#8884d8",dataKey:"value",label:({percent:f})=>`${(f*100).toFixed(0)}%`,children:u.map((f,m)=>s.jsx(Xs,{fill:wg[m%wg.length]},`cell-${m}`))}),s.jsx(fn,{formatter:f=>[`${f} visualizações`]})]})})}),s.jsx("div",{className:"mt-4 text-xs flex flex-wrap justify-center gap-4",children:u.map((f,m)=>s.jsxs("div",{className:"flex items-center gap-1",children:[s.jsx("div",{className:"w-3 h-3 rounded-sm",style:{backgroundColor:wg[m%wg.length]}}),s.jsx("span",{children:f.name})]},m))})]})})]})]}),s.jsxs("div",{className:"grid gap-6 lg:grid-cols-2 mb-8",children:[s.jsxs(fe,{children:[s.jsxs(Me,{className:"pb-3",children:[s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsx(De,{children:"Formulários Recentes"}),s.jsxs(W,{variant:"ghost",size:"sm",onClick:()=>e("quotes"),children:["Ver todos",s.jsx(km,{className:"h-4 w-4 ml-1"})]})]}),s.jsx(Ye,{children:"Ãltimas solicitações recebidas"})]}),s.jsx(me,{children:l?s.jsx("div",{className:"flex items-center justify-center h-64",children:s.jsx("div",{className:"animate-spin h-8 w-8 border-4 border-primary border-t-transparent rounded-full"})}):c.length===0?s.jsxs("div",{className:"text-center py-8",children:[s.jsx(Lt,{className:"h-12 w-12 mx-auto text-gray-400 mb-3"}),s.jsx("h3",{className:"text-lg font-medium text-gray-800",children:"Nenhum formulário encontrado"}),s.jsx("p",{className:"text-gray-500 mt-1 max-w-md mx-auto",children:"Quando os clientes preencherem formulários, eles aparecerão aqui."}),s.jsx(W,{variant:"outline",className:"mt-4",onClick:d,disabled:r,children:r?s.jsxs("span",{className:"flex items-center",children:[s.jsx("span",{className:"h-4 w-4 mr-2 border-2 border-primary border-t-transparent rounded-full animate-spin"}),"Criando..."]}):s.jsxs("span",{className:"flex items-center",children:[s.jsx(Lt,{className:"h-4 w-4 mr-2"}),"Criar orçamento de teste"]})})]}):s.jsx("div",{className:"divide-y",children:c.slice(0,5).map(f=>s.jsxs("div",{className:"py-3 flex items-start justify-between gap-4",children:[s.jsxs("div",{className:"flex gap-3",children:[s.jsx(wp,{className:"h-9 w-9",children:s.jsx(Np,{className:"bg-primary/10 text-primary",children:f.name.substring(0,2).toUpperCase()})}),s.jsxs("div",{children:[s.jsxs("div",{className:"font-medium flex items-center",children:[f.name,f.company&&s.jsxs("span",{className:"text-xs text-gray-500 ml-2",children:["(",f.company,")"]})]}),s.jsxs("div",{className:"text-sm text-gray-500 flex items-center gap-2",children:[s.jsx("span",{children:f.productType}),s.jsx("span",{className:"text-gray-300",children:"â¢"}),s.jsxs("span",{children:[f.quantity," unidades"]})]}),s.jsx("div",{className:"text-xs text-gray-400 mt-1",children:AAe(f.createdAt)})]})]}),s.jsx(Ue,{className:PAe[f.status]||"",children:CAe[f.status]||f.status})]},f.id))})})]}),s.jsxs(fe,{children:[s.jsxs(Me,{children:[s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsx(De,{children:"Dispositivos"}),s.jsxs(W,{variant:"ghost",size:"sm",onClick:()=>e("analytics"),children:["Mais detalhes",s.jsx(km,{className:"h-4 w-4 ml-1"})]})]}),s.jsx(Ye,{children:"Tipos de dispositivos dos visitantes"})]}),s.jsx(me,{children:i?s.jsx("div",{className:"flex items-center justify-center h-64",children:s.jsx("div",{className:"animate-spin h-8 w-8 border-4 border-primary border-t-transparent roun
771ded-full"})}):s.jsx("div",{className:"h-72",children:s.jsx(hu,{width:"100%",height:"100%",children:s.jsxs(m8,{data:[{name:"Desktop",valor:65},{name:"Mobile",valor:30},{name:"Tablet",valor:5}],margin:{top:10,right:10,left:0,bottom:20},children:[s.jsx(Ch,{strokeDasharray:"3 3",vertical:!1}),s.jsx(To,{dataKey:"name",tick:{fontSize:12}}),s.jsx(Eo,{tick:{fontSize:12}}),s.jsx(fn,{formatter:f=>[`${f}%`,"Porcentagem"],cursor:{fill:"rgba(0, 0, 0, 0.05)"}}),s.jsxs(Ho,{dataKey:"valor",name:"Porcentagem",radius:[4,4,0,0],barSize:40,children:[s.jsx(Xs,{fill:"#4F46E5"},"cell-0"),s.jsx(Xs,{fill:"#EC4899"},"cell-1"),s.jsx(Xs,{fill:"#10B981"},"cell-2")]})]})})})})]})]}),s.jsxs("div",{className:"grid gap-6 lg:grid-cols-2",children:[s.jsxs(fe,{children:[s.jsxs(Me,{children:[s.jsx(De,{children:"Fontes de Tráfego"}),s.jsx(Ye,{children:"De onde vêm os visitantes"})]}),s.jsx(me,{children:s.jsxs("div",{className:"space-y-4",children:[s.jsxs("div",{className:"flex items-center",children:[s.jsx("div",{className:"w-1/3 text-sm font-medium",children:"Direto"}),s.jsx("div",{className:"w-2/3",children:s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx("div",{className:"w-full bg-gray-100 rounded-full h-2.5",children:s.jsx("div",{className:"bg-blue-600 h-2.5 rounded-full",style:{width:"70%"}})}),s.jsx("span",{className:"text-sm font-medium",children:"70%"})]})})]}),s.jsxs("div",{className:"flex items-center",children:[s.jsx("div",{className:"w-1/3 text-sm font-medium",children:"Google"}),s.jsx("div",{className:"w-2/3",children:s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx("div",{className:"w-full bg-gray-100 rounded-full h-2.5",children:s.jsx("div",{className:"bg-green-500 h-2.5 rounded-full",style:{width:"15%"}})}),s.jsx("span",{className:"text-sm font-medium",children:"15%"})]})})]}),s.jsxs("div",{className:"flex items-center",children:[s.jsx("div",{className:"w-1/3 text-sm font-medium",children:"Redes Sociais"}),s.jsx("div",{className:"w-2/3",children:s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx("div",{className:"w-full bg-gray-100 rounded-full h-2.5",children:s.jsx("div",{className:"bg-purple-500 h-2.5 rounded-full",style:{width:"10%"}})}),s.jsx("span",{className:"text-sm font-medium",children:"10%"})]})})]}),s.jsxs("div",{className:"flex items-center",children:[s.jsx("div",{className:"w-1/3 text-sm font-medium",children:"Email"}),s.jsx("div",{className:"w-2/3",children:s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx("div",{className:"w-full bg-gray-100 rounded-full h-2.5",children:s.jsx("div",{className:"bg-yellow-500 h-2.5 rounded-full",style:{width:"5%"}})}),s.jsx("span",{className:"text-sm font-medium",children:"5%"})]})})]})]})}),s.jsx(FS,{children:s.jsx(W,{variant:"outline",className:"w-full",onClick:()=>e("analytics"),children:"Ver relatório completo"})})]}),s.jsxs(fe,{children:[s.jsxs(Me,{children:[s.jsx(De,{children:"Ãltimas Atividades"}),s.jsx(Ye,{children:"Histórico recente do sistema"})]}),s.jsx(me,{children:s.jsxs("div",{className:"relative",children:[s.jsx("div",{className:"absolute top-0 bottom-0 left-6 border-l-2 border-gray-200"}),s.jsxs("ul",{className:"space-y-4",children:[s.jsx("li",{className:"ml-6",children:s.jsxs("div",{className:"flex items-center",children:[s.jsx("span",{className:"absolute flex items-center justify-center w-4 h-4 bg-blue-100 rounded-full -left-[7px] ring-4 ring-white",children:s.jsx(cp,{className:"w-2 h-2 text-blue-600"})}),s.jsxs("div",{className:"flex flex-col ml-2",children:[s.jsx("p",{className:"text-sm font-medium",children:"Login do administrador"}),s.jsx("p",{className:"text-xs text-gray-500",children:"Há 15 minutos"})]})]})}),s.jsx("li",{className:"ml-6",children:s.jsxs("div",{className:"flex items-center",children:[s.jsx("span",{className:"absolute flex items-center justify-center w-4 h-4 bg-green-100 rounded-full -left-[7px] ring-4 ring-white",children:s.jsx(Lt,{className:"w-2 h-2 text-green-600"})}),s.jsxs("div",{className:"flex flex-col ml-2",children:[s.jsx("p",{className:"text-sm font-medium",children:"Novo orçamento recebido"}),s.jsx("p",{className:"text-xs text-gray-500",children:"Há 1 hora"})]})]})}),s.jsx("li",{className:"ml-6",children:s.jsxs("div",{className:"flex items-center",children:[s.jsx("span",{className:"absolute flex items-center justify-center w-4 h-4 bg-yellow-100 rounded-full -left-[7px] ring-4 ring-white",children:s.jsx(Ty,{className:"w-2 h-2 text-yellow-600"})}),s.jsxs("div",{className:"flex flex-col ml-2",children:[s.jsx("p",{className:"text-sm font-medium",children:"Atualização de status de orçamento"}),s.jsx("p",{className:"text-xs text-gray-500",children:"Há 2 horas"})]})]})}),s.jsx("li",{className:"ml-6",children:s.jsxs("div",{className:"flex items-center",children:[s.jsx("span",{className:"absolute flex items-center justify-center w-4 h-4 bg-purple-100 rounded-full -left-[7px] ring-4 ring-white",children:s.jsx(xo,{className:"w-2 h-2 text-purple-600"})}),s.jsxs("div",{className:"flex flex-col ml-2",children:[s.jsx("p",{className:"text-sm font-medium",children:"Atualização de configurações"}),s.jsx("p",{className:"text-xs text-gray-500",children:"Há 1 dia"})]})]})})]})]})})]})]})]})}var EAe="Label",kz=b.forwardRef((e,t)=>
771s.jsx(Oe.label,{...e,ref:t,onMouseDown:r=>{var a;r.target.closest("button, input, select, textarea")||((a=e.onMouseDown)==null||a.call(e,r),!r.defaultPrevented&&r.detail>1&&r.preventDefault())}}));kz.displayName=EAe;var Mz=kz;const OAe=Ay("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Be=b.forwardRef(({className:e,...t},r)=>s.jsx(Mz,{ref:r,className:ie(OAe(),e),...t}));Be.displayName=Mz.displayName;function _Ae(e){if(e==null)return 0;if(typeof e=="number")return e;if(typeof e=="string"){const t=parseFloat(e.replace(/[^\d.-]/g,""));return isNaN(t)?0:t}return 0}function zM(e){const t=_Ae(e);return new Intl.NumberFormat("pt-BR",{style:"currency",currency:"BRL"}).format(t)}function bj(e){if(!e)return"N/A";try{const t=typeof e=="string"?new Date(e):e;return new Intl.DateTimeFormat("pt-BR",{day:"2-digit",month:"2-digit",year:"numeric"}).format(t)}catch(t){return console.error("Erro ao formatar data:",t),"N/A"}}function kAe(){const{toast:e}=wn(),[t,r]=b.useState(""),[n,a]=b.useState(null),[i,o]=b.useState(!1),[l,c]=b.useState(!1),[u,d]=b.useState(""),{data:f,isLoading:m}=Gt({queryKey:["/api/admin/invoices"],queryFn:Er({on401:"returnNull"})}),v=((f==null?void 0:f.data)||[]).filter(g=>{var S,w;const j=t.toLowerCase();return((S=g.invoiceNumber)==null?void 0:S.toLowerCase().includes(j))||((w=g.orderId)==null?void 0:w.toString().includes(j))}),h=Kt({mutationFn:async({id:g,reason:j})=>await(await ft("POST",`/api/admin/invoices/${g}/cancel`,{reason:j})).json(),onSuccess:()=>{c(!1),d(""),e({title:"Nota fiscal cancelada",description:"A nota fiscal foi cancelada com sucesso."}),hr.invalidateQueries({queryKey:["/api/admin/invoices"]}),hr.invalidateQueries({queryKey:["/api/admin/orders"]})},onError:g=>{e({title:"Erro ao cancelar nota fiscal",description:g.message||"Ocorreu um erro ao cancelar a nota fiscal.",variant:"destructive"})}}),x=()=>{if(n){if(!u){e({title:"Motivo obrigatório",description:"Informe o motivo do cancelamento da nota fiscal.",variant:"destructive"});return}h.mutate({id:n.id,reason:u})}},y=g=>{switch(g){case"emitida":return s.jsx(Ue,{className:"bg-green-100 text-green-800 hover:bg-green-100",children:"Emitida"});case"cancelada":return s.jsx(Ue,{className:"bg-red-100 text-red-800 hover:bg-red-100",children:"Cancelada"});default:return s.jsx(Ue,{variant:"outline",children:g})}};return s.jsxs("div",{className:"space-y-6",children:[s.jsxs("div",{className:"flex flex-col md:flex-row md:items-center justify-between gap-4",children:[s.jsx("h2",{className:"text-2xl font-bold",children:"Gerenciamento de Notas Fiscais"}),s.jsxs("div",{className:"flex flex-col sm:flex-row gap-3",children:[s.jsxs("div",{className:"relative",children:[s.jsx(zl,{className:"absolute left-2.5 top-2.5 h-4 w-4 text-gray-500"}),s.jsx(ve,{placeholder:"Buscar notas fiscais...",className:"pl-9",value:t,onChange:g=>r(g.target.value)})]}),s.jsxs(W,{variant:"outline",children:[s.jsx(Rm,{className:"h-4 w-4 mr-2"}),"Exportar"]})]})]}),s.jsxs(fe,{children:[s.jsxs(Me,{className:"pb-3",children:[s.jsx(De,{children:"Notas Fiscais"}),s.jsx(Ye,{children:"Gerenciamento e controle de notas fiscais eletrônicas"})]}),s.jsx(me,{children:m?s.jsx("div",{className:"flex justify-center py-8",children:s.jsx(Qr,{className:"h-8 w-8 animate-spin text-primary"})}):v.length===0?s.jsxs("div",{className:"text-center py-8",children:[s.jsx(fl,{className:"h-12 w-12 mx-auto text-gray-400 mb-3"}),s.jsx("h3",{className:"text-lg font-medium text-gray-800",children:"Nenhuma nota fiscal encontrada"}),s.jsx("p",{className:"text-gray-500 mt-1 max-w-md mx-auto",children:t?"Tente ajustar os filtros para ver mais resultados.":"Quando você emitir notas fiscais, elas aparecerão aqui."})]}):s.jsx("div",{className:"overflow-x-auto",children:s.jsxs(ai,{children:[s.jsx(si,{children:s.jsxs(br,{className:"bg-gray-50",children:[s.jsx(Ze,{children:"Número"}),s.jsx(Ze,{children:"Pedido"}),s.jsx(Ze,{children:"Data de Emissão"}),s.jsx(Ze,{children:"Valor Total"}),s.jsx(Ze,{children:"Status"}),s.jsx(Ze,{className:"w-[100px]",children:"Ações"})]})}),s.jsx(ii,{children:v.map(g=>s.jsxs(br,{children:[s.jsxs(Le,{children:[s.jsx("div",{className:"font-medium",children:g.invoiceNumber}),s.jsxs("div",{className:"text-xs text-gray-500",children:["Chave: ",g.invoiceKey.slice(0,15),"..."]})]}),s.jsx(Le,{children:s.jsxs("div",{className:"font-medium",children:["#",g.orderId]})}),s.jsx(Le,{children:bj(g.issueDate)}),s.jsx(Le,{children:zM(g.totalAmount)}),s.jsx(Le,{children:y(g.status)}),s.jsx(Le,{children:s.jsxs(Oo,{children:[s.jsx(_o,{asChild:!0,children:s.jsxs(W,{variant:"ghost",className:"h-8 w-8 p-0",children:[s.jsx("span",{className:"sr-only",children:"Abrir menu"}),s.jsx(Oy,{className:"h-4 w-4"})]})}),s.jsxs(bi,{align:"end",children:[s.jsxs(Je,{onClick:()=>{a(g),o(!0)},children:[s.jsx(gs,{className:"h-4 w-4 mr-2"}),"Ver detalhes"]}),s.jsxs(Je,{onClick:()=>{e({title:"Download XML",description:"Iniciando download do XML da nota fiscal."})},children:[s.jsx(Lt,{className:"h-4 w-4 mr-2"}),"Download XML"]}),s.jsxs(Je,{onClick:()=>{e({title:"Download PDF",description:"Iniciando download do PDF da nota fiscal."})},children:[s.jsx(ca,{className:"h-4 w-4 mr-2"}),"Download DANFE"]}
771),g.status!=="cancelada"&&s.jsxs(Je,{onClick:()=>{a(g),d(""),c(!0)},className:"text-red-600",children:[s.jsx(UT,{className:"h-4 w-4 mr-2"}),"Cancelar NF-e"]})]})]})})]},g.id))})]})})})]}),s.jsx(Ct,{open:i,onOpenChange:o,children:s.jsxs(Bt,{className:"max-w-3xl max-h-[90vh] overflow-y-auto",children:[s.jsxs(Xt,{children:[s.jsxs(Yt,{className:"flex items-center",children:[s.jsx(fl,{className:"h-5 w-5 mr-2"}),"Nota Fiscal ",n==null?void 0:n.invoiceNumber]}),s.jsx(Zt,{children:"Detalhes completos da nota fiscal"})]}),n&&s.jsxs("div",{className:"mt-4 space-y-6",children:[s.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[s.jsxs("div",{className:"space-y-4",children:[s.jsx("h3",{className:"font-medium text-gray-900",children:"Informações da NF-e"}),s.jsxs("div",{className:"space-y-2",children:[s.jsxs("div",{className:"flex justify-between text-sm",children:[s.jsx("span",{className:"text-gray-500",children:"Número:"}),s.jsx("span",{className:"font-medium",children:n.invoiceNumber})]}),s.jsxs("div",{className:"flex justify-between text-sm",children:[s.jsx("span",{className:"text-gray-500",children:"Chave de Acesso:"}),s.jsx("span",{className:"font-medium",children:n.invoiceKey})]}),s.jsxs("div",{className:"flex justify-between text-sm",children:[s.jsx("span",{className:"text-gray-500",children:"Data de Emissão:"}),s.jsx("span",{className:"font-medium",children:bj(n.issueDate)})]}),s.jsxs("div",{className:"flex justify-between text-sm",children:[s.jsx("span",{className:"text-gray-500",children:"Status:"}),s.jsx("span",{className:"font-medium",children:y(n.status)})]}),s.jsxs("div",{className:"flex justify-between text-sm",children:[s.jsx("span",{className:"text-gray-500",children:"Valor Total:"}),s.jsx("span",{className:"font-medium",children:zM(n.totalAmount)})]})]})]}),s.jsxs("div",{className:"space-y-4",children:[s.jsx("h3",{className:"font-medium text-gray-900",children:"Informações do Pedido"}),s.jsxs("div",{className:"space-y-2",children:[s.jsxs("div",{className:"flex justify-between text-sm",children:[s.jsx("span",{className:"text-gray-500",children:"Número do Pedido:"}),s.jsxs("span",{className:"font-medium",children:["#",n.orderId]})]}),n.cancellationDate&&s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"flex justify-between text-sm",children:[s.jsx("span",{className:"text-gray-500",children:"Data de Cancelamento:"}),s.jsx("span",{className:"font-medium",children:bj(n.cancellationDate)})]}),s.jsxs("div",{className:"flex justify-between text-sm",children:[s.jsx("span",{className:"text-gray-500",children:"Motivo do Cancelamento:"}),s.jsx("span",{className:"font-medium",children:n.cancellationReason})]})]})]})]})]}),s.jsxs("div",{className:"flex justify-end gap-3 mt-6",children:[s.jsx(W,{variant:"outline",onClick:()=>o(!1),children:"Fechar"}),s.jsxs(W,{variant:"outline",onClick:()=>{e({title:"Download XML",description:"Iniciando download do XML da nota fiscal."})},children:[s.jsx(Lt,{className:"h-4 w-4 mr-2"}),"Download XML"]}),s.jsxs(W,{onClick:()=>{e({title:"Download DANFE",description:"Iniciando download do DANFE da nota fiscal."})},children:[s.jsx(ca,{className:"h-4 w-4 mr-2"}),"Download DANFE"]})]})]})]})}),s.jsx(Ct,{open:l,onOpenChange:c,children:s.jsxs(Bt,{className:"max-w-md",children:[s.jsxs(Xt,{children:[s.jsxs(Yt,{className:"flex items-center text-red-600",children:[s.jsx(lp,{className:"h-5 w-5 mr-2"}),"Cancelar Nota Fiscal"]}),s.jsxs(Zt,{children:["Informe o motivo do cancelamento da nota fiscal ",n==null?void 0:n.invoiceNumber,". Esta operação não pode ser desfeita."]})]}),s.jsx("div",{className:"mt-4 space-y-4",children:s.jsxs("div",{className:"space-y-2",children:[s.jsx(Be,{htmlFor:"cancellationReason",children:"Motivo do Cancelamento"}),s.jsx(Os,{id:"cancellationReason",placeholder:"Descreva o motivo do cancelamento...",value:u,onChange:g=>d(g.target.value),className:"min-h-24"})]})}),s.jsxs(Pr,{className:"mt-6",children:[s.jsx(W,{variant:"outline",onClick:()=>c(!1),children:"Cancelar"}),s.jsx(W,{variant:"destructive",onClick:x,disabled:h.isPending,children:h.isPending?s.jsxs(s.Fragment,{children:[s.jsx(Qr,{className:"h-4 w-4 mr-2 animate-spin"}),"Processando..."]}):s.jsxs(s.Fragment,{children:[s.jsx(UT,{className:"h-4 w-4 mr-2"}),"Confirmar Cancelamento"]})})]})]})})]})}var Sp=e=>e.type==="checkbox",xl=e=>e instanceof Date,dn=e=>e==null;const Dz=e=>typeof e=="object";var cr=e=>!dn(e)&&!Array.isArray(e)&&Dz(e)&&!xl(e),Rz=e=>cr(e)&&e.target?Sp(e.target)?e.target.checked:e.target.value:e,MAe=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,Iz=(e,t)=>
vendor: 15,378 bytes, line 771
771e.has(MAe(t)),DAe=e=>{const t=e.constructor&&e.constructor.prototype;return cr(t)&&t.hasOwnProperty("isPrototypeOf")},jC=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Rr(e){let t;const r=Array.isArray(e),n=typeof FileList<"u"?e instanceof FileList:!1;if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(jC&&(e instanceof Blob||n))&&(r||cr(e)))if(t=r?[]:{},!r&&!DAe(e))t=e;else for(const a in e)e.hasOwnProperty(a)&&(t[a]=Rr(e[a]));else return e;return t}var F0=e=>Array.isArray(e)?e.filter(Boolean):[],or=e=>e===void 0,he=(e,t,r)=>{if(!t||!cr(e))return r;const n=F0(t.split(/[,[\].]+?/)).reduce((a,i)=>dn(a)?a:a[i],e);return or(n)||n===e?or(e[t])?r:e[t]:n},Ln=e=>typeof e=="boolean",wC=e=>/^\w*$/.test(e),$z=e=>F0(e.replace(/["|']|\]/g,"").split(/\.|\[/)),gt=(e,t,r)=>{let n=-1;const a=wC(t)?[t]:$z(t),i=a.length,o=i-1;for(;++n<i;){const l=a[n];let c=r;if(n!==o){const u=e[l];c=cr(u)||Array.isArray(u)?u:isNaN(+a[n+1])?{}:[]}if(l==="__proto__"||l==="constructor"||l==="prototype")return;e[l]=c,e=e[l]}};const Fx={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},$a={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},Fs={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},Lz=_.createContext(null),V0=()=>_.useContext(Lz),RAe=e=>{const{children:t,...r}=e;return _.createElement(Lz.Provider,{value:r},t)};var Fz=(e,t,r,n=!0)=>{const a={defaultValues:t._defaultValues};for(const i in e)Object.defineProperty(a,i,{get:()=>{const o=i;return t._proxyFormState[o]!==$a.all&&(t._proxyFormState[o]=!n||$a.all),r&&(r[o]=!0),e[o]}});return a};function IAe(e){const t=V0(),{control:r=t.control,disabled:n,name:a,exact:i}=e||{},[o,l]=_.useState(r._formState),c=_.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),u=_.useRef(a);return u.current=a,_.useEffect(()=>r._subscribe({name:u.current,formState:c.current,exact:i,callback:d=>{!n&&l({...r._formState,...d})}}),[r,n,i]),_.useEffect(()=>{c.current.isValid&&r._setValid(!0)},[r]),_.useMemo(()=>Fz(o,r,c.current,!1),[o,r])}var ms=e=>typeof e=="string",Vz=(e,t,r,n,a)=>ms(e)?(n&&t.watch.add(e),he(r,e,a)):Array.isArray(e)?e.map(i=>(n&&t.watch.add(i),he(r,i))):(n&&(t.watchAll=!0),r);function $Ae(e){const t=V0(),{control:r=t.control,name:n,defaultValue:a,disabled:i,exact:o}=e||{},l=_.useRef(n),c=_.useRef(a);l.current=n,_.useEffect(()=>r._subscribe({name:l.current,formState:{values:!0},exact:o,callback:f=>!i&&d(Vz(l.current,r._names,f.values||r._formValues,!1,c.current))}),[r,i,o]);const[u,d]=_.useState(r._getWatch(n,a));return _.useEffect(()=>r._removeUnmounted()),u}function LAe(e){const t=V0(),{name:r,disabled:n,control:a=t.control,shouldUnregister:i}=e,o=Iz(a._names.array,r),l=$Ae({control:a,name:r,defaultValue:he(a._formValues,r,he(a._defaultValues,r,e.defaultValue)),exact:!0}),c=IAe({control:a,name:r,exact:!0}),u=_.useRef(e),d=_.useRef(a.register(r,{...e.rules,value:l,...Ln(e.disabled)?{disabled:e.disabled}:{}})),f=_.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!he(c.errors,r)},isDirty:{enumerable:!0,get:()=>!!he(c.dirtyFields,r)},isTouched:{enumerable:!0,get:()=>!!he(c.touchedFields,r)},isValidating:{enumerable:!0,get:()=>!!he(c.validatingFields,r)},error:{enumerable:!0,get:()=>he(c.errors,r)}}),[c,r]),m=_.useCallback(x=>d.current.onChange({target:{value:Rz(x),name:r},type:Fx.CHANGE}),[r]),p=_.useCallback(()=>d.current.onBlur({target:{value:he(a._formValues,r),name:r},type:Fx.BLUR}),[r,a._formValues]),v=_.useCallback(x=>{const y=he(a._fields,r);y&&x&&(y._f.ref={focus:()=>x.focus(),select:()=>x.select(),setCustomValidity:g=>x.setCustomValidity(g),reportValidity:()=>x.reportValidity()})},[a._fields,r]),h=_.useMemo(()=>({name:r,value:l,...Ln(n)||c.disabled?{disabled:c.disabled||n}:{},onChange:m,onBlur:p,ref:v}),[r,n,c.disabled,m,p,v,l]);return _.useEffect(()=>{const x=a._options.shouldUnregister||i;a.register(r,{...u.current.rules,...Ln(u.current.disabled)?{disabled:u.current.disabled}:{}});const y=(g,j)=>{const S=he(a._fields,g);S&&S._f&&(S._f.mount=j)};if(y(r,!0),x){const g=Rr(he(a._options.defaultValues,r));gt(a._defaultValues,r,g),or(he(a._formValues,r))&>(a._formValues,r,g)}return!o&&a.register(r),()=>{(o?x&&!a._state.action:x)?a.unregister(r):y(r,!1)}},[r,a,o,i]),_.useEffect(()=>{a._setDisabledField({disabled:n,name:r})},[n,r,a]),_.useMemo(()=>({field:h,formState:c,fieldState:f}),[h,c,f])}const FAe=e=>e.render(LAe(e));var zz=(e,t,r,n,a)=>t?{...r[e],types:{...r[e]&&r[e].types?r[e].types:{},[n]:a||!0}}:{},cm=e=>Array.isArray(e)?e:[e],BM=()=>{let e=[];return{get observers(){return e},next:a=>{for(const i of e)i.next&&i.next(a)},subscribe:a=>(e.push(a),{unsubscribe:()=>{e=e.filter(i=>i!==a)}}),unsubscribe:()=>{e=[]}}},IN=e=>dn(e)||!Dz(e);function Hi(e,t){if(IN(e)||IN(t))return e===t;if(xl(e)&&xl(t))return e.getTime()===t.getTime();const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(const a of r){const i=e[a];if(!n.includes(a))return!1;if(a!=="ref"){const o=t[a];if(xl(i)&&xl(o)||cr(i)&&cr(o)||Array.isArray(i)&&Array.isArray(o)?!Hi(i,o):i!==o)return!1}}return!0}var ln=e=>cr(e)&&!Object.keys(e).length,NC=e=>e.type==="file",La=e=>typeof e=="function",Vx=e=>{if(!jC)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},Bz=e=>e.type==="select-multiple",SC=e=>e.type==="radio",VAe=e=>SC(e)||Sp(e),jj=e=>Vx(e)&&e.isConnected;function zAe(e,t){const r=t.slice(0,-1).length;let n=0;for(;n<r;)e=or(e)?n++:e[t[n++]];return e}function BAe(e){for(const t in e)if(e.hasOwnProperty(t)&&!or(e[t]))return!1;return!0}function xr(e,t){const r=Array.isArray(t)?t:wC(t)?[t]:$z(t),n=r.length===1?e:zAe(e,r),a=r.length-1,i=r[a];return n&&delete n[i],a!==0&&(cr(n)&&ln(n)||Array.isArray(n)&&BAe(n))&&xr(e,r.slice(0,-1)),e}var Uz=e=>{for(const t in e)if(La(e[t]))return!0;return!1};function zx(e,t={}){const r=Array.isArray(e);if(cr(e)||r)for(const n in e)Array.isArray(e[n])||cr(e[n])&&!Uz(e[n])?(t[n]=Array.isArray(e[n])?[]:{},zx(e[n],t[n])):dn(e[n])||(t[n]=!0);return t}function Wz(e,t,r){const n=Array.isArray(e);if(cr(e)||n)for(const a in e)Array.isArray(e[a])||cr(e[a])&&!Uz(e[a])?or(t)||IN(r[a])?r[a]=Array.isArray(e[a])?zx(e[a],[]):{...zx(e[a])}:Wz(e[a],dn(t)?{}:t[a],r[a]):r[a]=!Hi(e[a],t[a]);return r}var Cf=(e,t)=>Wz(e,t,zx(t));const UM={value:!1,isValid:!1},WM={value:!0,isValid:!0};var qz=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(r=>r&&r.checked&&!r.disabled).map(r=>r.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!or(e[0].attributes.value)?or(e[0].value)||e[0].value===""?WM:{value:e[0].value,isValid:!0}:WM:UM}return UM},Hz=(e,{valueAsNumber:t,valueAsDate:r,setValueAs:n})=>or(e)?e:t?e===""?NaN:e&&+e:r&&ms(e)?new Date(e):n?n(e):e;const qM={isValid:!1,value:null};var Gz=e=>Array.isArray(e)?e.reduce((t,r)=>r&&r.checked&&!r.disabled?{isValid:!0,value:r.value}:t,qM):qM;function HM(e){const t=e.ref;return NC(t)?t.files:SC(t)?Gz(e.refs).value:Bz(t)?[...t.selectedOptions].map(({value:r})=>r):Sp(t)?qz(e.refs).value:Hz(or(t.value)?e.ref.value:t.value,e)}var UAe=(e,t,r,n)=>{const a={};for(const i of e){const o=he(t,i);o&>(a,i,o._f)}return{criteriaMode:r,names:[...e],fields:a,shouldUseNativeValidation:n}},Bx=e=>e instanceof RegExp,Af=e=>or(e)?e:Bx(e)?e.source:cr(e)?Bx(e.value)?e.value.source:e.value:e,GM=e=>({isOnSubmit:!e||e===$a.onSubmit,isOnBlur:e===$a.onBlur,isOnChange:e===$a.onChange,isOnAll:e===$a.all,isOnTouch:e===$a.onTouched});const KM="AsyncFunction";var WAe=e=>!!e&&!!e.validate&&!!(La(e.validate)&&e.validate.constructor.name===KM||cr(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===KM)),qAe=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),XM=(e,t,r)=>!r&&(t.watchAll||t.watch.has(e)||[...t.watch].some(n=>e.startsWith(n)&&/^\.\w+/.test(e.slice(n.length))));const um=(e,t,r,n)=>{for(const a of r||Object.keys(e)){const i=he(e,a);if(i){const{_f:o,...l}=i;if(o){if(o.refs&&o.refs[0]&&t(o.refs[0],a)&&!n)return!0;if(o.ref&&t(o.ref,o.name)&&!n)return!0;if(um(l,t))break}else if(cr(l)&&um(l,t))break}}};function YM(e,t,r){const n=he(e,r);if(n||wC(r))return{error:n,name:r};const a=r.split(".");for(;a.length;){const i=a.join("."),o=he(t,i),l=he(e,i);if(o&&!Array.isArray(o)&&r!==i)return{name:r};if(l&&l.type)return{name:i,error:l};a.pop()}return{name:r}}var HAe=(e,t,r,n)=>{r(e);const{name:a,...i}=e;return ln(i)||Object.keys(i).length>=Object.keys(t).length||Object.keys(i).find(o=>t[o]===(!n||$a.all))},GAe=(e,t,r)=>!e||!t||e===t||cm(e).some(n=>n&&(r?n===t:n.startsWith(t)||t.startsWith(n))),KAe=(e,t,r,n,a)=>a.isOnAll?!1:!r&&a.isOnTouch?!(t||e):(r?n.isOnBlur:a.isOnBlur)?!e:(r?n.isOnChange:a.isOnChange)?e:!0,XAe=(e,t)=>!F0(he(e,t)).length&&xr(e,t),YAe=(e,t,r)=>{const n=cm(he(e,r));return gt(n,"root",t[r]),gt(e,r,n),e},Kg=e=>ms(e);function ZM(e,t,r="validate"){if(Kg(e)||Array.isArray(e)&&e.every(Kg)||Ln(e)&&!e)return{type:r,message:Kg(e)?e:"",ref:t}}var Ac=e=>cr(e)&&!Bx(e)?e:{value:e,message:""},QM=async(e,t,r,n,a,i)=>{const{ref:o,refs:l,required:c,maxLength:u,minLength:d,min:f,max:m,pattern:p,validate:v,name:h,valueAsNumber:x,mount:y}=e._f,g=he(r,h);if(!y||t.has(h))return{};const j=l?l[0]:o,S=k=>{a&&j.reportValidity&&(j.setCustomValidity(Ln(k)?"":k||""),j.reportValidity())},w={},N=SC(o),P=Sp(o),C=N||P,A=(x||NC(o))&&or(o.value)&&or(g)||Vx(o)&&o.value===""||g===""||Array.isArray(g)&&!g.length,O=zz.bind(null,h,n,w),E=(k,M,D,F=Fs.maxLength,L=Fs.minLength)=>{const B=k?M:D;w[h]={type:k?F:L,message:B,ref:o,...O(k?F:L,B)}};if(i?!Array.isArray(g)||!g.length:c&&(!C&&(A||dn(g))||Ln(g)&&!g||P&&!qz(l).isValid||N&&!Gz(l).isValid)){const{value:k,message:M}=Kg(c)?{value:!!c,message:c}:Ac(c);if(k&&(w[h]={type:Fs.required,message:M,ref:j,...O(Fs.required,M)},!n))return S(M),w}if(!A&&(!dn(f)||!dn(m))){let k,M;const D=Ac(m),F=Ac(f);if(!dn(g)&&!isNaN(g)){const L=o.valueAsNumber||g&&+g;dn(D.value)||(k=L>D.value),dn(F.value)||(M=L<F.value)}else{const L=o.valueAsDate||new Date(g),B=G=>new Date(new Date().toDateString()+" "+G),R=o.type=="time",I=o.type=="week";ms(D.value)&&g&&(k=R?B(g)>B(D.value):I?g>D.value:L>new Date(D.value)),ms(F.value)&&g&&(M=R?B(g)<B(F.value):I?g<F.value:L<new Date(F.value))}if((k||M)&&(E(!!k,D.message,F.message,Fs.max,Fs.min),!n))return S(w[h].message),w}if((u||d)&&!A&&(ms(g)||i&&Array.isArray(g))){const k=Ac(u),M=Ac(d),D=!dn(k.value)&&g.length>+k.value,F=!dn(M.value)&&g.length<+M.value;if((D||F)&&(E(D,k.message,M.message),!n))return S(w[h].message),w}if(p&&!A&&ms(g)){const{value:k,message:M}=Ac(p);if(Bx(k)&&!g.match(k)&&(w[h]={type:Fs.pattern,message:M,ref:o,...O(Fs.pattern,M)},!n))return S(M),w}if(v){if(La(v)){const k=await v(g,r),M=ZM(k,j);if(M&&(w[h]={...M,...O(Fs.validate,M.message)},!n))return S(M.message),w}else if(cr(v)){let k={};for(const M in v){if(!ln(k)&&!n)break;const D=ZM(await v[M](g,r),j,M);D&&(k={...D,...O(M,D.message)},S(D.message),n&&(w[h]=k))}if(!ln(k)&&(w[h]={ref:j,...k},!n))return w}}return S(!0),w};const ZAe={mode:$a.onSubmit,reValidateMode:$a.onChange,shouldFocusError:!0};function QAe(e={}){let t={...ZAe,...e},r={submitCount:0,isDirty:!1,isLoading:La(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1};const n={};let a=cr(t.defaultValues)||cr(t.values)?Rr(t.values||t.defaultValues)||{}:{},i=t.shouldUnregister?{}:Rr(a),o={action:!1,mount:!1,watch:!1},l={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},c,u=0;const d={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1};let f={...d};const m={array:BM(),state:BM()},p=GM(t.mode),v=GM(t.reValidateMode),h=t.criteriaMode===$a.all,x=T=>z=>{clearTimeout(u),u=setTimeout(T,z)},y=async T=>{if(!t.disabled&&(d.isValid||f.isValid||T)){const z=t.resolver?ln((await A()).errors):await E(n,!0);z!==r.isValid&&m.state.next({isValid:z})}},g=(T,z)=>{!t.disabled&&(d.isValidating||d.validatingFields||f.isValidating||f.validatingFields)&&((T||Array.from(l.mount)).forEach(X=>{X&&(z?gt(r.validatingFields,X,z):xr(r.validatingFields,X))}),m.state.next({validatingFields:r.validatingFields,isValidating:!ln(r.validatingFields)}))},j=(T,z=[],X,oe,le=!0,ne=!0)=>{if(oe&&X&&!t.disabled){if(o.action=!0,ne&&Array.isArray(he(n,T))){const ye=X(he(n,T),oe.argA,oe.argB);le&>(n,T,ye)}if(ne&&Array.isArray(he(r.errors,T))){const ye=X(he(r.errors,T),oe.argA,oe.argB);le&>(r.errors,T,ye),XAe(r.errors,T)}if((d.touchedFields||f.touchedFields)&&ne&&Array.isArray(he(r.touchedFields,T))){const ye=X(he(r.touchedFields,T),oe.argA,oe.argB);le&>(r.touchedFields,T,ye)}(d.dirtyFields||f.dirtyFields)&&(r.dirtyFields=Cf(a,i)),m.state.next({name:T,isDirty:M(T,z),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else gt(i,T,z)},S=(T,z)=>{gt(r.errors,T,z),m.state.next({errors:r.errors})},w=T=>{r.errors=T,m.state.next({errors:r.errors,isValid:!1})},N=(T,z,X,oe)=>{const le=he(n,T);if(le){const ne=he(i,T,or(X)?he(a,T):X);or(ne)||oe&&oe.defaultChecked||z?gt(i,T,z?ne:HM(le._f)):L(T,ne),o.mount&&y()}},P=(T,z,X,oe,le)=>{let ne=!1,ye=!1;const Qe={name:T};if(!t.disabled){if(!X||oe){(d.isDirty||f.isDirty)&&(ye=r.isDirty,r.isDirty=Qe.isDirty=M(),ne=ye!==Qe.isDirty);const ht=Hi(he(a,T),z);ye=!!he(r.dirtyFields,T),ht?xr(r.dirtyFields,T):gt(r.dirtyFields,T,!0),Qe.dirtyFields=r.dirtyFields,ne=ne||(d.dirtyFields||f.dirtyFields)&&ye!==!ht}if(X){const ht=he(r.touchedFields,T);ht||(gt(r.touchedFields,T,X),Qe.touchedFields=r.touchedFields,ne=ne||(d.touchedFields||f.touchedFields)&&ht!==X)}ne&&le&&m.state.next(Qe)}return ne?Qe:{}},C=(T,z,X,oe)=>{const le=he(r.errors,T),ne=(d.isValid||f.isValid)&&Ln(z)&&r.isValid!==z;if(t.delayError&&X?(c=x(()=>S(T,X)),c(t.delayError)):(clearTimeout(u),c=null,X?gt(r.errors,T,X):xr(r.errors,T)),(X?!Hi(le,X):le)||!ln(oe)||ne){const ye={...oe,...ne&&Ln(z)?{isValid:z}:{},errors:r.errors,name:T};r={...r,...ye},m.state.next(ye)}},A=async T=>{g(T,!0);const z=await t.resolver(i,t.context,UAe(T||l.mount,n,t.criteriaMode,t.shouldUseNativeValidation));return g(T),z},O=async T=>{const{errors:z}=await A(T);if(T)for(const X of T){const oe=he(z,X);oe?gt(r.errors,X,oe):xr(r.errors,X)}else r.errors=z;return z},E=async(T,z,X={valid:!0})=>{for(const oe in T){const le=T[oe];if(le){const{_f:ne,...ye}=le;if(ne){const Qe=l.array.has(ne.name),ht=le._f&&WAe(le._f);ht&&d.validatingFields&&g([oe],!0);const Wt=await QM(le,l.disabled,i,h,t.shouldUseNativeValidation&&!z,Qe);if(ht&&d.validatingFields&&g([oe]),Wt[ne.name]&&(X.valid=!1,z))break;!z&&(he(Wt,ne.name)?Qe?YAe(r.errors,Wt,ne.name):gt(r.errors,ne.name,Wt[ne.name]):xr(r.errors,ne.name))}!ln(ye)&&await E(ye,z,X)}}return X.valid},k=()=>{for(const T of l.unMount){const z=he(n,T);z&&(z._f.refs?z._f.refs.every(X=>!jj(X)):!jj(z._f.ref))&&Z(T)}l.unMount=new Set},M=(T,z)=>!t.disabled&&(T&&z&>(i,T,z),!Hi(K(),a)),D=(T,z,X)=>Vz(T,l,{...o.mount?i:or(z)?a:ms(T)?{[T]:z}:z},X,z),F=T=>F0(he(o.mount?i:a,T,t.shouldUnregister?he(a,T,[]):[])),L=(T,z,X={})=>{const oe=he(n,T);let le=z;if(oe){const ne=oe._f;ne&&(!ne.disabled&>(i,T,Hz(z,ne)),le=Vx(ne.ref)&&dn(z)?"":z,Bz(ne.ref)?[...ne.ref.options].forEac
vendor: 2,109 bytes, line 771
771h(ye=>ye.selected=le.includes(ye.value)):ne.refs?Sp(ne.ref)?ne.refs.length>1?ne.refs.forEach(ye=>(!ye.defaultChecked||!ye.disabled)&&(ye.checked=Array.isArray(le)?!!le.find(Qe=>Qe===ye.value):le===ye.value)):ne.refs[0]&&(ne.refs[0].checked=!!le):ne.refs.forEach(ye=>ye.checked=ye.value===le):NC(ne.ref)?ne.ref.value="":(ne.ref.value=le,ne.ref.type||m.state.next({name:T,values:Rr(i)})))}(X.shouldDirty||X.shouldTouch)&&P(T,le,X.shouldTouch,X.shouldDirty,!0),X.shouldValidate&&U(T)},B=(T,z,X)=>{for(const oe in z){const le=z[oe],ne=`${T}.${oe}`,ye=he(n,ne);(l.array.has(T)||cr(le)||ye&&!ye._f)&&!xl(le)?B(ne,le,X):L(ne,le,X)}},R=(T,z,X={})=>{const oe=he(n,T),le=l.array.has(T),ne=Rr(z);gt(i,T,ne),le?(m.array.next({name:T,values:Rr(i)}),(d.isDirty||d.dirtyFields||f.isDirty||f.dirtyFields)&&X.shouldDirty&&m.state.next({name:T,dirtyFields:Cf(a,i),isDirty:M(T,ne)})):oe&&!oe._f&&!dn(ne)?B(T,ne,X):L(T,ne,X),XM(T,l)&&m.state.next({...r}),m.state.next({name:o.mount?T:void 0,values:Rr(i)})},I=async T=>{o.mount=!0;const z=T.target;let X=z.name,oe=!0;const le=he(n,X),ne=ye=>{oe=Number.isNaN(ye)||xl(ye)&&isNaN(ye.getTime())||Hi(ye,he(i,X,ye))};if(le){let ye,Qe;const ht=z.type?HM(le._f):Rz(T),Wt=T.type===Fx.BLUR||T.type===Fx.FOCUS_OUT,Oi=!qAe(le._f)&&!t.resolver&&!he(r.errors,X)&&!le._f.deps||KAe(Wt,he(r.touchedFields,X),r.isSubmitted,v,p),de=XM(X,l,Wt);gt(i,X,ht),Wt?(le._f.onBlur&&le._f.onBlur(T),c&&c(0)):le._f.onChange&&le._f.onChange(T);const kt=P(X,ht,Wt),Op=!ln(kt)||de;if(!Wt&&m.state.next({name:X,type:T.type,values:Rr(i)}),Oi)return(d.isValid||f.isValid)&&(t.mode==="onBlur"?Wt&&y():Wt||y()),Op&&m.state.next({name:X,...de?{}:kt});if(!Wt&&de&&m.state.next({...r}),t.resolver){const{errors:gc}=await A([X]);if(ne(ht),oe){const _p=YM(r.errors,n,X),kp=YM(gc,n,_p.name||X);ye=kp.error,X=kp.name,Qe=ln(gc)}}else g([X],!0),ye=(await QM(le,l.disabled,i,h,t.shouldUseNativeValidation))[X],g([X]),ne(ht),oe&&(ye?Qe=!1:(d.isValid||f.isValid)&&(Qe=await E(n,!0)));oe&&(le._f.deps&&U(le._f.deps),C(X,Qe,ye,kt))}},G=(T,z)=>{if(he(r.errors,z)&&T.focus)return T.focus(),1},U=async(T,z={})=>{let X,oe;const le=cm(T);
vendor: 16,844 bytes, line 771
771if(t.resolver){const ne=await O(or(T)?T:le);X=ln(ne),oe=T?!le.some(ye=>he(ne,ye)):X}else T?(oe=(await Promise.all(le.map(async ne=>{const ye=he(n,ne);return await E(ye&&ye._f?{[ne]:ye}:ye)}))).every(Boolean),!(!oe&&!r.isValid)&&y()):oe=X=await E(n);return m.state.next({...!ms(T)||(d.isValid||f.isValid)&&X!==r.isValid?{}:{name:T},...t.resolver||!T?{isValid:X}:{},errors:r.errors}),z.shouldFocus&&!oe&&um(n,G,T?le:l.mount),oe},K=T=>{const z={...o.mount?i:a};return or(T)?z:ms(T)?he(z,T):T.map(X=>he(z,X))},ce=(T,z)=>({invalid:!!he((z||r).errors,T),isDirty:!!he((z||r).dirtyFields,T),error:he((z||r).errors,T),isValidating:!!he(r.validatingFields,T),isTouched:!!he((z||r).touchedFields,T)}),pe=T=>{T&&cm(T).forEach(z=>xr(r.errors,z)),m.state.next({errors:T?r.errors:{}})},Ke=(T,z,X)=>{const oe=(he(n,T,{_f:{}})._f||{}).ref,le=he(r.errors,T)||{},{ref:ne,message:ye,type:Qe,...ht}=le;gt(r.errors,T,{...ht,...z,ref:oe}),m.state.next({name:T,errors:r.errors,isValid:!1}),X&&X.shouldFocus&&oe&&oe.focus&&oe.focus()},q=(T,z)=>La(T)?m.state.subscribe({next:X=>T(D(void 0,z),X)}):D(T,z,!0),Q=T=>m.state.subscribe({next:z=>{GAe(T.name,z.name,T.exact)&&HAe(z,T.formState||d,ur,T.reRenderRoot)&&T.callback({values:{...i},...r,...z})}}).unsubscribe,we=T=>(o.mount=!0,f={...f,...T.formState},Q({...T,formState:f})),Z=(T,z={})=>{for(const X of T?cm(T):l.mount)l.mount.delete(X),l.array.delete(X),z.keepValue||(xr(n,X),xr(i,X)),!z.keepError&&xr(r.errors,X),!z.keepDirty&&xr(r.dirtyFields,X),!z.keepTouched&&xr(r.touchedFields,X),!z.keepIsValidating&&xr(r.validatingFields,X),!t.shouldUnregister&&!z.keepDefaultValue&&xr(a,X);m.state.next({values:Rr(i)}),m.state.next({...r,...z.keepDirty?{isDirty:M()}:{}}),!z.keepIsValid&&y()},V=({disabled:T,name:z})=>{(Ln(T)&&o.mount||T||l.disabled.has(z))&&(T?l.disabled.add(z):l.disabled.delete(z))},ee=(T,z={})=>{let X=he(n,T);const oe=Ln(z.disabled)||Ln(t.disabled);return gt(n,T,{...X||{},_f:{...X&&X._f?X._f:{ref:{name:T}},name:T,mount:!0,...z}}),l.mount.add(T),X?V({disabled:Ln(z.disabled)?z.disabled:t.disabled,name:T}):N(T,!0,z.value),{...oe?{disabled:z.disabled||t.disabled}:{},...t.progressive?{required:!!z.required,min:Af(z.min),max:Af(z.max),minLength:Af(z.minLength),maxLength:Af(z.maxLength),pattern:Af(z.pattern)}:{},name:T,onChange:I,onBlur:I,ref:le=>{if(le){ee(T,z),X=he(n,T);const ne=or(le.value)&&le.querySelectorAll&&le.querySelectorAll("input,select,textarea")[0]||le,ye=VAe(ne),Qe=X._f.refs||[];if(ye?Qe.find(ht=>ht===ne):ne===X._f.ref)return;gt(n,T,{_f:{...X._f,...ye?{refs:[...Qe.filter(jj),ne,...Array.isArray(he(a,T))?[{}]:[]],ref:{type:ne.type,name:T}}:{ref:ne}}}),N(T,!1,void 0,ne)}else X=he(n,T,{}),X._f&&(X._f.mount=!1),(t.shouldUnregister||z.shouldUnregister)&&!(Iz(l.array,T)&&o.action)&&l.unMount.add(T)}}},H=()=>t.shouldFocusError&&um(n,G,l.mount),Re=T=>{Ln(T)&&(m.state.next({disabled:T}),um(n,(z,X)=>{const oe=he(n,X);oe&&(z.disabled=oe._f.disabled||T,Array.isArray(oe._f.refs)&&oe._f.refs.forEach(le=>{le.disabled=oe._f.disabled||T}))},0,!1))},Pe=(T,z)=>async X=>{let oe;X&&(X.preventDefault&&X.preventDefault(),X.persist&&X.persist());let le=Rr(i);if(m.state.next({isSubmitting:!0}),t.resolver){const{errors:ne,values:ye}=await A();r.errors=ne,le=ye}else await E(n);if(l.disabled.size)for(const ne of l.disabled)gt(le,ne,void 0);if(xr(r.errors,"root"),ln(r.errors)){m.state.next({errors:{}});try{await T(le,X)}catch(ne){oe=ne}}else z&&await z({...r.errors},X),H(),setTimeout(H);if(m.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:ln(r.errors)&&!oe,submitCount:r.submitCount+1,errors:r.errors}),oe)throw oe},te=(T,z={})=>{he(n,T)&&(or(z.defaultValue)?R(T,Rr(he(a,T))):(R(T,z.defaultValue),gt(a,T,Rr(z.defaultValue))),z.keepTouched||xr(r.touchedFields,T),z.keepDirty||(xr(r.dirtyFields,T),r.isDirty=z.defaultValue?M(T,Rr(he(a,T))):M()),z.keepError||(xr(r.errors,T),d.isValid&&y()),m.state.next({...r}))},Ie=(T,z={})=>{const X=T?Rr(T):a,oe=Rr(X),le=ln(T),ne=le?a:oe;if(z.keepDefaultValues||(a=X),!z.keepValues){if(z.keepDirtyValues){const ye=new Set([...l.mount,...Object.keys(Cf(a,i))]);for(const Qe of Array.from(ye))he(r.dirtyFields,Qe)?gt(ne,Qe,he(i,Qe)):R(Qe,he(ne,Qe))}else{if(jC&&or(T))for(const ye of l.mount){const Qe=he(n,ye);if(Qe&&Qe._f){const ht=Array.isArray(Qe._f.refs)?Qe._f.refs[0]:Qe._f.ref;if(Vx(ht)){const Wt=ht.closest("form");if(Wt){Wt.reset();break}}}}for(const ye of l.mount)R(ye,he(ne,ye))}i=Rr(ne),m.array.next({values:{...ne}}),m.state.next({values:{...ne}})}l={mount:z.keepDirtyValues?l.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},o.mount=!d.isValid||!!z.keepIsValid||!!z.keepDirtyValues,o.watch=!!t.shouldUnregister,m.state.next({submitCount:z.keepSubmitCount?r.submitCount:0,isDirty:le?!1:z.keepDirty?r.isDirty:!!(z.keepDefaultValues&&!Hi(T,a)),isSubmitted:z.keepIsSubmitted?r.isSubmitted:!1,dirtyFields:le?{}:z.keepDirtyValues?z.keepDefaultValues&&i?Cf(a,i):r.dirtyFields:z.keepDefaultValues&&T?Cf(a,T):z.keepDirty?r.dirtyFields:{},touchedFields:z.keepTouched?r.touchedFields:{},errors:z.keepErrors?r.errors:{},isSubmitSuccessful:z.keepIsSubmitSuccessful?r.isSubmitSuccessful:!1,isSubmitting:!1})},jt=(T,z)=>Ie(La(T)?T(i):T,z),Dr=(T,z={})=>{const X=he(n,T),oe=X&&X._f;if(oe){const le=oe.refs?oe.refs[0]:oe.ref;le.focus&&(le.focus(),z.shouldSelect&&La(le.select)&&le.select())}},ur=T=>{r={...r,...T}},Wr={control:{register:ee,unregister:Z,getFieldState:ce,handleSubmit:Pe,setError:Ke,_subscribe:Q,_runSchema:A,_getWatch:D,_getDirty:M,_setValid:y,_setFieldArray:j,_setDisabledField:V,_setErrors:w,_getFieldArray:F,_reset:Ie,_resetDefaultValues:()=>La(t.defaultValues)&&t.defaultValues().then(T=>{jt(T,t.resetOptions),m.state.next({isLoading:!1})}),_removeUnmounted:k,_disableForm:Re,_subjects:m,_proxyFormState:d,get _fields(){return n},get _formValues(){return i},get _state(){return o},set _state(T){o=T},get _defaultValues(){return a},get _names(){return l},set _names(T){l=T},get _formState(){return r},get _options(){return t},set _options(T){t={...t,...T}}},subscribe:we,trigger:U,register:ee,handleSubmit:Pe,watch:q,setValue:R,getValues:K,reset:jt,resetField:te,clearErrors:pe,unregister:Z,setError:Ke,setFocus:Dr,getFieldState:ce};return{...Wr,formControl:Wr}}function ko(e={}){const t=_.useRef(void 0),r=_.useRef(void 0),[n,a]=_.useState({isDirty:!1,isValidating:!1,isLoading:La(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:La(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...e.formControl?e.formControl:QAe(e),formState:n},e.formControl&&e.defaultValues&&!La(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions));const i=t.current.control;return i._options=e,_.useLayoutEffect(()=>i._subscribe({formState:i._proxyFormState,callback:()=>a({...i._formState}),reRenderRoot:!0}),[i]),_.useEffect(()=>i._disableForm(e.disabled),[i,e.disabled]),_.useEffect(()=>{if(i._proxyFormState.isDirty){const o=i._getDirty();o!==n.isDirty&&i._subjects.state.next({isDirty:o})}},[i,n.isDirty]),_.useEffect(()=>{e.values&&!Hi(e.values,r.current)?(i._reset(e.values,i._options.resetOptions),r.current=e.values,a(o=>({...o}))):i._resetDefaultValues()},[e.values,i]),_.useEffect(()=>{e.errors&&!ln(e.errors)&&i._setErrors(e.errors)},[e.errors,i]),_.useEffect(()=>{i._state.mount||(i._setValid(),i._state.mount=!0),i._state.watch&&(i._state.watch=!1,i._subjects.state.next({...i._formState})),i._removeUnmounted()}),_.useEffect(()=>{e.shouldUnregister&&i._subjects.state.next({values:i._getWatch()})},[e.shouldUnregister,i]),t.current.formState=Fz(n,i),t.current}const oi=RAe,Kz=b.createContext({}),ke=({...e})=>s.jsx(Kz.Provider,{value:{name:e.name},children:s.jsx(FAe,{...e})}),z0=()=>{const e=b.useContext(Kz),t=b.useContext(Xz),{getFieldState:r,formState:n}=V0(),a=r(e.name,n);if(!e)throw new Error("useFormField should be used within <FormField>");const{id:i}=t;return{id:i,name:e.name,formItemId:`${i}-form-item`,formDescriptionId:`${i}-form-item-description`,formMessageId:`${i}-form-item-message`,...a}},Xz=b.createContext({}),Te=b.forwardRef(({className:e,...t},r)=>{const n=b.useId();return s.jsx(Xz.Provider,{value:{id:n},children:s.jsx("div",{ref:r,className:ie("space-y-2",e),...t})})});Te.displayName="FormItem";const Ae=b.forwardRef(({className:e,...t},r)=>{const{error:n,formItemId:a}=z0();return s.jsx(Be,{ref:r,className:ie(n&&"text-destructive",e),htmlFor:a,...t})});Ae.displayName="FormLabel";const Ee=b.forwardRef(({...e},t)=>{const{error:r,formItemId:n,formDescriptionId:a,formMessageId:i}=z0();return s.jsx(d5,{ref:t,id:n,"aria-describedby":r?`${a} ${i}`:`${a}`,"aria-invalid":!!r,...e})});Ee.displayName="FormControl";const Xg=b.forwardRef(({className:e,...t},r)=>{const{formDescriptionId:n}=z0();return s.jsx("p",{ref:r,id:n,className:ie("text-sm text-muted-foreground",e),...t})});Xg.displayName="FormDescription";const He=b.forwardRef(({className:e,children:t,...r},n)=>{const{error:a,formMessageId:i}=z0(),o=a?String((a==null?void 0:a.message)??""):t;return o?s.jsx("p",{ref:n,id:i,className:ie("text-sm font-medium text-destructive",e),...r,children:o}):null});He.displayName="FormMessage";const JM=(e,t,r)=>{if(e&&"reportValidity"in e){const n=he(r,t);e.setCustomValidity(n&&n.message||""),e.reportValidity()}},Yz=(e,t)=>{for(const r in t.fields){const n=t.fields[r];n&&n.ref&&"reportValidity"in n.ref?JM(n.ref,r,e):n.refs&&n.refs.forEach(a=>JM(a,r,e))}},JAe=(e,t)=>{t.shouldUseNativeValidation&&Yz(e,t);const r={};for(const n in e){const a=he(t.fields,n),i=Object.assign(e[n]||{},{ref:a&&a.ref});if(eTe(t.names||Object.keys(e),n)){const o=Object.assign({},he(r,n));gt(o,"root",i),gt(r,n,o)}else gt(r,n,i)}return r},eTe=(e,t)=>e.some(r=>r.startsWith(t+"."));var tTe=function(e,t){for(var r={};e.length;){var n=e[0],a=n.code,i=n.message,o=n.path.join(".");if(!r[o])if("unionErrors"in n){var l=n.unionErrors[0].errors[0];r[o]={message:l.message,type:l.code}}else r[o]={message:i,type:a};if("unionErrors"in n&&n.unionErrors.forEach(function(d){return d.errors.forEach(function(f){return e.push(f)})}),t){var c=r[o].types,u=c&&c[n.code];r[o]=zz(o,t,r,a,u?[].concat(u,n.message):n.message)}e.shift()}return r},Jl=function(e,t,r){return r===void 0&&(r={}),function(n,a,i){try{return Promise.resolve(function(o,l){try{var c=Promise.resolve(e[r.mode==="sync"?"parse":"parseAsync"](n,t)).then(function(u){return i.shouldUseNativeValidation&&Yz({},i),{errors:{},values:r.raw?n:u}})}catch(u){return l(u)}return c&&c.then?c.then(void 0,l):c}(0,function(o){if(function(l){return Array.isArray(l==null?void 0:l.errors)}(o))return{values:{},errors:JAe(tTe(o.errors,!i.shouldUseNativeValidation&&i.criteriaMode==="all"),i)};throw o}))}catch(o){return Promise.reject(o)}}},ct;(function(e){e.assertEqual=a=>a;function t(a){}e.assertIs=t;function r(a){throw new Error}e.assertNever=r,e.arrayToEnum=a=>{const i={};for(const o of a)i[o]=o;return i},e.getValidEnumValues=a=>{const i=e.objectKeys(a).filter(l=>typeof a[a[l]]!="number"),o={};for(const l of i)o[l]=a[l];return e.objectValues(o)},e.objectValues=a=>e.objectKeys(a).map(function(i){return a[i]}),e.objectKeys=typeof Object.keys=="function"?a=>Object.keys(a):a=>{const i=[];for(const o in a)Object.prototype.hasOwnProperty.call(a,o)&&i.push(o);return i},e.find=(a,i)=>{for(const o of a)if(i(o))return o},e.isInteger=typeof Number.isInteger=="function"?a=>Number.isInteger(a):a=>typeof a=="number"&&isFinite(a)&&Math.floor(a)===a;function n(a,i=" | "){return a.map(o=>typeof o=="string"?`'${o}'`:o).join(i)}e.joinValues=n,e.jsonStringifyReplacer=(a,i)=>typeof i=="bigint"?i.toString():i})(ct||(ct={}));var $N;(function(e){e.mergeShapes=(t,r)=>({...t,...r})})($N||($N={}));const je=ct.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),qs=e=>{switch(typeof e){case"undefined":return je.undefined;case"string":return je.string;case"number":return isNaN(e)?je.nan:je.number;case"boolean":return je.boolean;case"function":return je.function;case"bigint":return je.bigint;case"symbol":return je.symbol;case"object":return Array.isArray(e)?je.array:e===null?je.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?je.promise:typeof Map<"u"&&e instanceof Map?je.map:typeof Set<"u"&&e instanceof Set?je.set:typeof Date<"u"&&e instanceof Date?je.date:je.object;default:return je.unknown}},re=ct.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),rTe=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:");class Hn extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=n=>{this.issues=[...this.issues,n]},this.addIssues=(n=[])=>{this.issues=[...this.issues,...n]};const r=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,r):this.__proto__=r,this.name="ZodError",this.issues=t}format(t){const r=t||function(i){return i.message},n={_errors:[]},a=i=>{for(const o of i.issues)if(o.code==="invalid_union")o.unionErrors.map(a);else if(o.code==="invalid_return_type")a(o.returnTypeError);else if(o.code==="invalid_arguments")a(o.argumentsError);else if(o.path.length===0)n._errors.push(r(o));else{let l=n,c=0;for(;c<o.path.length;){const u=o.path[c];c===o.path.length-1?(l[u]=l[u]||{_errors:[]},l[u]._errors.push(r(o))):l[u]=l[u]||{_errors:[]},l=l[u],c++}}};return a(this),n}static assert(t){if(!(t instanceof Hn))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,ct.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=r=>r.message){const r={},n=[];for(const a of this.issues)a.path.length>0?(r[a.path[0]]=r[a.path[0]]||[],r[a.path[0]].push(t(a))):n.push(t(a));return{formErrors:n,fieldErrors:r}}get formErrors(){return this.flatten()}}Hn.create=e=>new Hn(e);const bd=(e,t)=>{let r;switch(e.code){case re.invalid_type:e.received===je.undefined?r="Required":r=`Expected ${e.expected}, received ${e.received}`;break;case re.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(e.expected,ct.jsonStringifyReplacer)}`;break;case re.unrecognized_keys:r=`Unrecognized key(s) in object: ${ct.joinValues(e.keys,", ")}`;break;case re.invalid_union:r="Invalid input";break;case re.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${ct.joinValues(e.options)}`;break;case re.invalid_enum_value:r=`Invalid enum value. Expected ${ct.joinValues(e.options)}, received '${e.received}'`;break;case re.invalid_arguments:r="Invalid function arguments";break;case re.invalid_return_type:r="Invalid function return type";break;case re.invalid_date:r="Invalid date";break;case re.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(r=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(r=`${r} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?r=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?r=`Invalid input: must end with "${e.validation.endsWith}"`:ct.assertNever(e.validation):e.validation!=="regex"?r=`Invalid ${e.validation}`:r="Invalid";break;case re.too_small:e.type==="array"?r=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?r=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?r=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?r=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:r="Invalid input";break;case re.too_big:e.type==="array"?r=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?r=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?r=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?r=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?r=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:r="Invalid input";break;case re.custom:r="Invalid input";break;
vendor: 4,100 bytes, line 771
771case re.invalid_intersection_types:r="Intersection results could not be merged";break;case re.not_multiple_of:r=`Number must be a multiple of ${e.multipleOf}`;break;case re.not_finite:r="Number must be finite";break;default:r=t.defaultError,ct.assertNever(e)}return{message:r}};let Zz=bd;function nTe(e){Zz=e}function Ux(){return Zz}const Wx=e=>{const{data:t,path:r,errorMaps:n,issueData:a}=e,i=[...r,...a.path||[]],o={...a,path:i};if(a.message!==void 0)return{...a,path:i,message:a.message};let l="";const c=n.filter(u=>!!u).slice().reverse();for(const u of c)l=u(o,{data:t,defaultError:l}).message;return{...a,path:i,message:l}},aTe=[];function ge(e,t){const r=Ux(),n=Wx({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,r,r===bd?void 0:bd].filter(a=>!!a)});e.common.issues.push(n)}class nn{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,r){const n=[];for(const a of r){if(a.status==="aborted")return Ge;a.status==="dirty"&&t.dirty(),n.push(a.value)}return{status:t.value,value:n}}static async mergeObjectAsync(t,r){const n=[];for(const a of r){const i=await a.key,o=await a.value;n.push({key:i,value:o})}return nn.mergeObjectSync(t,n)}static mergeObjectSync(t,r){const n={};for(const a of r){const{key:i,value:o}=a;if(i.status==="aborted"||o.status==="aborted")return Ge;i.status==="dirty"&&t.dirty(),o.status==="dirty"&&t.dirty(),i.value!=="__proto__"&&(typeof o.value<"u"||a.alwaysSet)&&(n[i.value]=o.value)}return{status:t.value,value:n}}}const Ge=Object.freeze({status:"aborted"}),Yc=e=>({status:"dirty",value:e}),yn=e=>({status:"valid",value:e}),LN=e=>e.status==="aborted",FN=e=>e.status==="dirty",ec=e=>e.status==="valid",_h=e=>typeof Promise<"u"&&e instanceof Promise;function qx(e,t,r,n){if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t.get(e)}function Qz(e,t,r,n,a){if(typeof t=="function"?e!==t||!a:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return t.set(e,r),r}var _e;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(_e||(_e={}));var Vf,zf;class _s{constructor(t,r,n,a){this._cachedPath=[],this.parent=t,this.data=r,this._path=n,this._key=a}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const e4=(e,t)=>{if(ec(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const r=new Hn(e.common.issues);return this._error=r,this._error}}};function tt(e){if(!e)return{};const{errorMap:t,invalid_type_error:r,required_error:n,description:a}=e;if(t&&(r||n))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:a}:{errorMap:(o,l)=>{var c,u;const{message:d}=e;return o.code==="invalid_enum_value"?{message:d??l.defaultError}:typeof l.data>"u"?{message:(c=d??n)!==null&&c!==void 0?c:l.defaultError}:o.code!=="invalid_type"?{message:l.defaultError}:{message:(u=d??r)!==null&&u!==void 0?u:l.defaultError}},description:a}}class st{get description(){return this._def.description}_getType(t){return qs(t.data)}_getOrReturnCtx(t,r){return r||{common:t.parent.common,data:t.data,parsedType:qs(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new nn,ctx:{common:t.parent.common,data:t.data,parsedType:qs(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const r=this._parse(t);if(_h(r))throw new Error("Synchronous parse encountered promise.");return r}_parseAsync(t){const r=this._parse(t);return Promise.resolve(r)}parse(t,r){const n=this.safeParse(t,r);
vendor: 46,109 bytes, line 771
771if(n.success)return n.data;throw n.error}safeParse(t,r){var n;const a={common:{issues:[],async:(n=r==null?void 0:r.async)!==null&&n!==void 0?n:!1,contextualErrorMap:r==null?void 0:r.errorMap},path:(r==null?void 0:r.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:qs(t)},i=this._parseSync({data:t,path:a.path,parent:a});return e4(a,i)}"~validate"(t){var r,n;const a={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:qs(t)};if(!this["~standard"].async)try{const i=this._parseSync({data:t,path:[],parent:a});return ec(i)?{value:i.value}:{issues:a.common.issues}}catch(i){!((n=(r=i==null?void 0:i.message)===null||r===void 0?void 0:r.toLowerCase())===null||n===void 0)&&n.includes("encountered")&&(this["~standard"].async=!0),a.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:a}).then(i=>ec(i)?{value:i.value}:{issues:a.common.issues})}async parseAsync(t,r){const n=await this.safeParseAsync(t,r);if(n.success)return n.data;throw n.error}async safeParseAsync(t,r){const n={common:{issues:[],contextualErrorMap:r==null?void 0:r.errorMap,async:!0},path:(r==null?void 0:r.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:qs(t)},a=this._parse({data:t,path:n.path,parent:n}),i=await(_h(a)?a:Promise.resolve(a));return e4(n,i)}refine(t,r){const n=a=>typeof r=="string"||typeof r>"u"?{message:r}:typeof r=="function"?r(a):r;return this._refinement((a,i)=>{const o=t(a),l=()=>i.addIssue({code:re.custom,...n(a)});return typeof Promise<"u"&&o instanceof Promise?o.then(c=>c?!0:(l(),!1)):o?!0:(l(),!1)})}refinement(t,r){return this._refinement((n,a)=>t(n)?!0:(a.addIssue(typeof r=="function"?r(n,a):r),!1))}_refinement(t){return new Xa({schema:this,typeName:qe.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:r=>this["~validate"](r)}}optional(){return ws.create(this,this._def)}nullable(){return Io.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Wa.create(this)}promise(){return wd.create(this,this._def)}or(t){return Rh.create([this,t],this._def)}and(t){return Ih.create(this,t,this._def)}transform(t){return new Xa({...tt(this._def),schema:this,typeName:qe.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const r=typeof t=="function"?t:()=>t;return new zh({...tt(this._def),innerType:this,defaultValue:r,typeName:qe.ZodDefault})}brand(){return new PC({typeName:qe.ZodBranded,type:this,...tt(this._def)})}catch(t){const r=typeof t=="function"?t:()=>t;return new Bh({...tt(this._def),innerType:this,catchValue:r,typeName:qe.ZodCatch})}describe(t){const r=this.constructor;return new r({...this._def,description:t})}pipe(t){return Pp.create(this,t)}readonly(){return Uh.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const sTe=/^c[^\s-]{8,}$/i,iTe=/^[0-9a-z]+$/,oTe=/^[0-9A-HJKMNP-TV-Z]{26}$/i,lTe=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,cTe=/^[a-z0-9_-]{21}$/i,uTe=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,dTe=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,fTe=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,mTe="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let wj;const hTe=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,pTe=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,gTe=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,vTe=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,xTe=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,yTe=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,Jz="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",bTe=new RegExp(`^${Jz}$`);function eB(e){let t="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`),t}function jTe(e){return new RegExp(`^${eB(e)}$`)}function tB(e){let t=`${Jz}T${eB(e)}`;const r=[];return r.push(e.local?"Z?":"Z"),e.offset&&r.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${r.join("|")})`,new RegExp(`^${t}$`)}function wTe(e,t){return!!((t==="v4"||!t)&&hTe.test(e)||(t==="v6"||!t)&&gTe.test(e))}function NTe(e,t){if(!uTe.test(e))return!1;try{const[r]=e.split("."),n=r.replace(/-/g,"+").replace(/_/g,"/").padEnd(r.length+(4-r.length%4)%4,"="),a=JSON.parse(atob(n));return!(typeof a!="object"||a===null||!a.typ||!a.alg||t&&a.alg!==t)}catch{return!1}}function STe(e,t){return!!((t==="v4"||!t)&&pTe.test(e)||(t==="v6"||!t)&&vTe.test(e))}class Va extends st{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==je.string){const i=this._getOrReturnCtx(t);return ge(i,{code:re.invalid_type,expected:je.string,received:i.parsedType}),Ge}const n=new nn;let a;for(const i of this._def.checks)if(i.kind==="min")t.data.length<i.value&&(a=this._getOrReturnCtx(t,a),ge(a,{code:re.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),n.dirty());else if(i.kind==="max")t.data.length>i.value&&(a=this._getOrReturnCtx(t,a),ge(a,{code:re.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),n.dirty());else if(i.kind==="length"){const o=t.data.length>i.value,l=t.data.length<i.value;(o||l)&&(a=this._getOrReturnCtx(t,a),o?ge(a,{code:re.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}):l&&ge(a,{code:re.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}),n.dirty())}else if(i.kind==="email")fTe.test(t.data)||(a=this._getOrReturnCtx(t,a),ge(a,{validation:"email",code:re.invalid_string,message:i.message}),n.dirty());else if(i.kind==="emoji")wj||(wj=new RegExp(mTe,"u")),wj.test(t.data)||(a=this._getOrReturnCtx(t,a),ge(a,{validation:"emoji",code:re.invalid_string,message:i.message}),n.dirty());else if(i.kind==="uuid")lTe.test(t.data)||(a=this._getOrReturnCtx(t,a),ge(a,{validation:"uuid",code:re.invalid_string,message:i.message}),n.dirty());else if(i.kind==="nanoid")cTe.test(t.data)||(a=this._getOrReturnCtx(t,a),ge(a,{validation:"nanoid",code:re.invalid_string,message:i.message}),n.dirty());else if(i.kind==="cuid")sTe.test(t.data)||(a=this._getOrReturnCtx(t,a),ge(a,{validation:"cuid",code:re.invalid_string,message:i.message}),n.dirty());else if(i.kind==="cuid2")iTe.test(t.data)||(a=this._getOrReturnCtx(t,a),ge(a,{validation:"cuid2",code:re.invalid_string,message:i.message}),n.dirty());else if(i.kind==="ulid")oTe.test(t.data)||(a=this._getOrReturnCtx(t,a),ge(a,{validation:"ulid",code:re.invalid_string,message:i.message}),n.dirty());else if(i.kind==="url")try{new URL(t.data)}catch{a=this._getOrReturnCtx(t,a),ge(a,{validation:"url",code:re.invalid_string,message:i.message}),n.dirty()}else i.kind==="regex"?(i.regex.lastIndex=0,i.regex.test(t.data)||(a=this._getOrReturnCtx(t,a),ge(a,{validation:"regex",code:re.invalid_string,message:i.message}),n.dirty())):i.kind==="trim"?t.data=t.data.trim():i.kind==="includes"?t.data.includes(i.value,i.position)||(a=this._getOrReturnCtx(t,a),ge(a,{code:re.invalid_string,validation:{includes:i.value,position:i.position},message:i.message}),n.dirty()):i.kind==="toLowerCase"?t.data=t.data.toLowerCase():i.kind==="toUpperCase"?t.data=t.data.toUpperCase():i.kind==="startsWith"?t.data.startsWith(i.value)||(a=this._getOrReturnCtx(t,a),ge(a,{code:re.invalid_string,validation:{startsWith:i.value},message:i.message}),n.dirty()):i.kind==="endsWith"?t.data.endsWith(i.value)||(a=this._getOrReturnCtx(t,a),ge(a,{code:re.invalid_string,validation:{endsWith:i.value},message:i.message}),n.dirty()):i.kind==="datetime"?tB(i).test(t.data)||(a=this._getOrReturnCtx(t,a),ge(a,{code:re.invalid_string,validation:"datetime",message:i.message}),n.dirty()):i.kind==="date"?bTe.test(t.data)||(a=this._getOrReturnCtx(t,a),ge(a,{code:re.invalid_string,validation:"date",message:i.message}),n.dirty()):i.kind==="time"?jTe(i).test(t.data)||(a=this._getOrReturnCtx(t,a),ge(a,{code:re.invalid_string,validation:"time",message:i.message}),n.dirty()):i.kind==="duration"?dTe.test(t.data)||(a=this._getOrReturnCtx(t,a),ge(a,{validation:"duration",code:re.invalid_string,message:i.message}),n.dirty()):i.kind==="ip"?wTe(t.data,i.version)||(a=this._getOrReturnCtx(t,a),ge(a,{validation:"ip",code:re.invalid_string,message:i.message}),n.dirty()):i.kind==="jwt"?NTe(t.data,i.alg)||(a=this._getOrReturnCtx(t,a),ge(a,{validation:"jwt",code:re.invalid_string,message:i.message}),n.dirty()):i.kind==="cidr"?STe(t.data,i.version)||(a=this._getOrReturnCtx(t,a),ge(a,{validation:"cidr",code:re.invalid_string,message:i.message}),n.dirty()):i.kind==="base64"?xTe.test(t.data)||(a=this._getOrReturnCtx(t,a),ge(a,{validation:"base64",code:re.invalid_string,message:i.message}),n.dirty()):i.kind==="base64url"?yTe.test(t.data)||(a=this._getOrReturnCtx(t,a),ge(a,{validation:"base64url",code:re.invalid_string,message:i.message}),n.dirty()):ct.assertNever(i);return{status:n.value,value:t.data}}_regex(t,r,n){return this.refinement(a=>t.test(a),{validation:r,code:re.invalid_string,..._e.errToObj(n)})}_addCheck(t){return new Va({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",..._e.errToObj(t)})}url(t){return this._addCheck({kind:"url",..._e.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",..._e.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",..._e.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",..._e.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",..._e.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",..._e.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",..._e.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",..._e.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",..._e.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",..._e.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",..._e.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",..._e.errToObj(t)})}datetime(t){var r,n;return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,offset:(r=t==null?void 0:t.offset)!==null&&r!==void 0?r:!1,local:(n=t==null?void 0:t.local)!==null&&n!==void 0?n:!1,..._e.errToObj(t==null?void 0:t.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,..._e.errToObj(t==null?void 0:t.message)})}duration(t){return this._addCheck({kind:"duration",..._e.errToObj(t)})}regex(t,r){return this._addCheck({kind:"regex",regex:t,..._e.errToObj(r)})}includes(t,r){return this._addCheck({kind:"includes",value:t,position:r==null?void 0:r.position,..._e.errToObj(r==null?void 0:r.message)})}startsWith(t,r){return this._addCheck({kind:"startsWith",value:t,..._e.errToObj(r)})}endsWith(t,r){return this._addCheck({kind:"endsWith",value:t,..._e.errToObj(r)})}min(t,r){return this._addCheck({kind:"min",value:t,..._e.errToObj(r)})}max(t,r){return this._addCheck({kind:"max",value:t,..._e.errToObj(r)})}length(t,r){return this._addCheck({kind:"length",value:t,..._e.errToObj(r)})}nonempty(t){return this.min(1,_e.errToObj(t))}trim(){return new Va({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Va({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Va({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isCIDR(){return!!this._def.checks.find(t=>t.kind==="cidr")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get isBase64url(){return!!this._def.checks.find(t=>t.kind==="base64url")}get minLength(){let t=null;for(const r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxLength(){let t=null;for(const r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}}Va.create=e=>{var t;return new Va({checks:[],typeName:qe.ZodString,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...tt(e)})};function PTe(e,t){const r=(e.toString().split(".")[1]||"").length,n=(t.toString().split(".")[1]||"").length,a=r>n?r:n,i=parseInt(e.toFixed(a).replace(".","")),o=parseInt(t.toFixed(a).replace(".",""));return i%o/Math.pow(10,a)}class Mo extends st{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==je.number){const i=this._getOrReturnCtx(t);return ge(i,{code:re.invalid_type,expected:je.number,received:i.parsedType}),Ge}let n;const a=new nn;for(const i of this._def.checks)i.kind==="int"?ct.isInteger(t.data)||(n=this._getOrReturnCtx(t,n),ge(n,{code:re.invalid_type,expected:"integer",received:"float",message:i.message}),a.dirty()):i.kind==="min"?(i.inclusive?t.data<i.value:t.data<=i.value)&&(n=this._getOrReturnCtx(t,n),ge(n,{code:re.too_small,minimum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),a.dirty()):i.kind==="max"?(i.inclusive?t.data>i.value:t.data>=i.value)&&(n=this._getOrReturnCtx(t,n),ge(n,{code:re.too_big,maximum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),a.dirty()):i.kind==="multipleOf"?PTe(t.data,i.value)!==0&&(n=this._getOrReturnCtx(t,n),ge(n,{code:re.not_multiple_of,multipleOf:i.value,message:i.message}),a.dirty()):i.kind==="finite"?Number.isFinite(t.data)||(n=this._getOrReturnCtx(t,n),ge(n,{code:re.not_finite,message:i.message}),a.dirty()):ct.assertNever(i);return{status:a.value,value:t.data}}gte(t,r){return this.setLimit("min",t,!0,_e.toString(r))}gt(t,r){return this.setLimit("min",t,!1,_e.toString(r))}lte(t,r){return this.setLimit("max",t,!0,_e.toString(r))}lt(t,r){return this.setLimit("max",t,!1,_e.toString(r))}setLimit(t,r,n,a){return new Mo({...this._def,checks:[...this._def.checks,{kind:t,value:r,inclusive:n,message:_e.toString(a)}]})}_addCheck(t){return new Mo({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:_e.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:_e.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:_e.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:_e.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:_e.toString(t)})}multipleOf(t,r){return this._addCheck({kind:"multipleOf",value:t,message:_e.toString(r)})}finite(t){return this._addCheck({kind:"finite",message:_e.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:_e.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:_e.toString(t)})}get minValue(){let t=null;for(const r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxValue(){let t=null;for(const r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&ct.isInteger(t.value))}get isFinite(){let t=null,r=null;for(const n of this._def.checks){if(n.kind==="finite"||n.kind==="int"||n.kind==="multipleOf")return!0;n.kind==="min"?(r===null||n.value>r)&&(r=n.value):n.kind==="max"&&(t===null||n.value<t)&&(t=n.value)}return Number.isFinite(r)&&Number.isFinite(t)}}Mo.create=e=>new Mo({checks:[],typeName:qe.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...tt(e)});class Do extends st{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch{return this._getInvalidInput(t)}if(this._getType(t)!==je.bigint)return this._getInvalidInput(t);let n;const a=new nn;for(const i of this._def.checks)i.kind==="min"?(i.inclusive?t.data<i.value:t.data<=i.value)&&(n=this._getOrReturnCtx(t,n),ge(n,{code:re.too_small,type:"bigint",minimum:i.value,inclusive:i.inclusive,message:i.message}),a.dirty()):i.kind==="max"?(i.inclusive?t.data>i.value:t.data>=i.value)&&(n=this._getOrReturnCtx(t,n),ge(n,{code:re.too_big,type:"bigint",maximum:i.value,inclusive:i.inclusive,message:i.message}),a.dirty()):i.kind==="multipleOf"?t.data%i.value!==BigInt(0)&&(n=this._getOrReturnCtx(t,n),ge(n,{code:re.not_multiple_of,multipleOf:i.value,message:i.message}),a.dirty()):ct.assertNever(i);return{status:a.value,value:t.data}}_getInvalidInput(t){const r=this._getOrReturnCtx(t);return ge(r,{code:re.invalid_type,expected:je.bigint,received:r.parsedType}),Ge}gte(t,r){return this.setLimit("min",t,!0,_e.toString(r))}gt(t,r){return this.setLimit("min",t,!1,_e.toString(r))}lte(t,r){return this.setLimit("max",t,!0,_e.toString(r))}lt(t,r){return this.setLimit("max",t,!1,_e.toString(r))}setLimit(t,r,n,a){return new Do({...this._def,checks:[...this._def.checks,{kind:t,value:r,inclusive:n,message:_e.toString(a)}]})}_addCheck(t){return new Do({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:_e.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:_e.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:_e.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:_e.toString(t)})}multipleOf(t,r){return this._addCheck({kind:"multipleOf",value:t,message:_e.toString(r)})}get minValue(){let t=null;for(const r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxValue(){let t=null;for(const r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}}Do.create=e=>{var t;return new Do({checks:[],typeName:qe.ZodBigInt,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...tt(e)})};class kh extends st{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==je.boolean){const n=this._getOrReturnCtx(t);return ge(n,{code:re.invalid_type,expected:je.boolean,received:n.parsedType}),Ge}return yn(t.data)}}kh.create=e=>new kh({typeName:qe.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...tt(e)});class tc extends st{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==je.date){const i=this._getOrReturnCtx(t);return ge(i,{code:re.invalid_type,expected:je.date,received:i.parsedType}),Ge}if(isNaN(t.data.getTime())){const i=this._getOrReturnCtx(t);return ge(i,{code:re.invalid_date}),Ge}const n=new nn;let a;for(const i of this._def.checks)i.kind==="min"?t.data.getTime()<i.value&&(a=this._getOrReturnCtx(t,a),ge(a,{code:re.too_small,message:i.message,inclusive:!0,exact:!1,minimum:i.value,type:"date"}),n.dirty()):i.kind==="max"?t.data.getTime()>i.value&&(a=this._getOrReturnCtx(t,a),ge(a,{code:re.too_big,message:i.message,inclusive:!0,exact:!1,maximum:i.value,type:"date"}),n.dirty()):ct.assertNever(i);return{status:n.value,value:new Date(t.data.getTime())}}_addCheck(t){return new tc({...this._def,checks:[...this._def.checks,t]})}min(t,r){return this._addCheck({kind:"min",value:t.getTime(),message:_e.toString(r)})}max(t,r){return this._addCheck({kind:"max",value:t.getTime(),message:_e.toString(r)})}get minDate(){let t=null;for(const r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t!=null?new Date(t):null}}tc.create=e=>new tc({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:qe.ZodDate,...tt(e)});class Hx extends st{_parse(t){if(this._getType(t)!==je.symbol){const n=this._getOrReturnCtx(t);return ge(n,{code:re.invalid_type,expected:je.symbol,received:n.parsedType}),Ge}return yn(t.data)}}Hx.create=e=>new Hx({typeName:qe.ZodSymbol,...tt(e)});class Mh extends st{_parse(t){if(this._getType(t)!==je.undefined){const n=this._getOrReturnCtx(t);return ge(n,{code:re.invalid_type,expected:je.undefined,received:n.parsedType}),Ge}return yn(t.data)}}Mh.create=e=>new Mh({typeName:qe.ZodUndefined,...tt(e)});class Dh extends st{_parse(t){if(this._getType(t)!==je.null){const n=this._getOrReturnCtx(t);return ge(n,{code:re.invalid_type,expected:je.null,received:n.parsedType}),Ge}return yn(t.data)}}Dh.create=e=>new Dh({typeName:qe.ZodNull,...tt(e)});class jd extends st{constructor(){super(...arguments),this._any=!0}_parse(t){return yn(t.data)}}jd.create=e=>new jd({typeName:qe.ZodAny,...tt(e)});class kl extends st{constructor(){super(...arguments),this._unknown=!0}_parse(t){return yn(t.data)}}kl.create=e=>new kl({typeName:qe.ZodUnknown,...tt(e)});class ji extends st{_parse(t){const r=this._getOrReturnCtx(t);return ge(r,{code:re.invalid_type,expected:je.never,received:r.parsedType}),Ge}}ji.create=e=>new ji({typeName:qe.ZodNever,...tt(e)});class Gx extends st{_parse(t){if(this._getType(t)!==je.undefined){const n=this._getOrReturnCtx(t);return ge(n,{code:re.invalid_type,expected:je.void,received:n.parsedType}),Ge}return yn(t.data)}}Gx.create=e=>new Gx({typeName:qe.ZodVoid,...tt(e)});class Wa extends st{_parse(t){const{ctx:r,status:n}=this._processInputParams(t),a=this._def;if(r.parsedType!==je.array)return ge(r,{code:re.invalid_type,expected:je.array,received:r.parsedType}),Ge;if(a.exactLength!==null){const o=r.data.length>a.exactLength.value,l=r.data.length<a.exactLength.value;(o||l)&&(ge(r,{code:o?re.too_big:re.too_small,minimum:l?a.exactLength.value:void 0,maximum:o?a.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:a.exactLength.message}),n.dirty())}if(a.minLength!==null&&r.data.length<a.minLength.value&&(ge(r,{code:re.too_small,minimum:a.minLength.value,type:"array",inclusive:!0,exact:!1,message:a.minLength.message}),n.dirty()),a.maxLength!==null&&r.data.length>a.maxLength.value&&(ge(r,{code:re.too_big,maximum:a.maxLength.value,type:"array",inclusive:!0,exact:!1,message:a.maxLength.message}),n.dirty()),r.common.async)return Promise.all([...r.data].map((o,l)=>a.type._parseAsync(new _s(r,o,r.path,l)))).then(o=>nn.mergeArray(n,o));const i=[...r.data].map((o,l)=>a.type._parseSync(new _s(r,o,r.path,l)));return nn.mergeArray(n,i)}get element(){return this._def.type}min(t,r){return new Wa({...this._def,minLength:{value:t,message:_e.toString(r)}})}max(t,r){return new Wa({...this._def,maxLength:{value:t,message:_e.toString(r)}})}length(t,r){return new Wa({...this._def,exactLength:{value:t,message:_e.toString(r)}})}nonempty(t){return this.min(1,t)}}Wa.create=(e,t)=>new Wa({type:e,minLength:null,maxLength:null,exactLength:null,typeName:qe.ZodArray,...tt(t)});function _c(e){if(e instanceof qt){const t={};for(const r in e.shape){const n=e.shape[r];t[r]=ws.create(_c(n))}return new qt({...e._def,shape:()=>t})}else return e instanceof Wa?new Wa({...e._def,type:_c(e.element)}):e instanceof ws?ws.create(_c(e.unwrap())):e instanceof Io?Io.create(_c(e.unwrap())):e instanceof ks?ks.create(e.items.map(t=>_c(t))):e}class qt extends st{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),r=ct.objectKeys(t);return this._cached={shape:t,keys:r}}_parse(t){if(this._getType(t)!==je.object){const u=this._getOrReturnCtx(t);return ge(u,{code:re.invalid_type,expected:je.object,received:u.parsedType}),Ge}const{status:n,ctx:a}=this._processInputParams(t),{shape:i,keys:o}=this._getCached(),l=[];if(!(this._def.catchall instanceof ji&&this._def.unknownKeys==="strip"))for(const u in a.data)o.includes(u)||l.push(u);const c=[];for(const u of o){const d=i[u],f=a.data[u];c.push({key:{status:"valid",value:u},value:d._parse(new _s(a,f,a.path,u)),alwaysSet:u in a.data})}if(this._def.catchall instanceof ji){const u=this._def.unknownKeys;if(u==="passthrough")for(const d of l)c.push({key:{status:"valid",value:d},value:{status:"valid",value:a.data[d]}});else if(u==="strict")l.length>0&&(ge(a,{code:re.unrecognized_keys,keys:l}),n.dirty());else if(u!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const u=this._def.catchall;for(const d of l){const f=a.data[d];c.push({key:{status:"valid",value:d},value:u._parse(new _s(a,f,a.path,d)),alwaysSet:d in a.data})}}return a.common.async?Promise.resolve().then(async()=>{const u=[];for(const d of c){const f=await d.key,m=await d.value;u.push({key:f,value:m,alwaysSet:d.alwaysSet})}return u}).then(u=>nn.mergeObjectSync(n,u)):nn.mergeObjectSync(n,c)}get shape(){return this._def.shape()}strict(t){return _e.errToObj,new qt({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(r,n)=>{var a,i,o,l;const c=(o=(i=(a=this._def).errorMap)===null||i===void 0?void 0:i.call(a,r,n).message)!==null&&o!==void 0?o:n.defaultError;return r.code==="unrecognized_keys"?{message:(l=_e.errToObj(t).message)!==null&&l!==void 0?l:c}:{message:c}}}:{}})}strip(){return new qt({...this._def,unknownKeys:"strip"})}passthrough(){return new qt({...this._def,unknownKeys:"passthrough"})}extend(t){return new qt({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new qt({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:qe.ZodObject})}setKey(t,r){return this.augment({[t]:r})}catchall(t){return new qt({...this._def,catchall:t})}pick(t){const r={};return ct.objectKeys(t).forEach(n=>{t[n]&&this.shape[n]&&(r[n]=this.shape[n])}),new qt({...this._def,shape:()=>r})}omit(t){const r={};return ct.objectKeys(this.shape).forEach(n=>{t[n]||(r[n]=this.shape[n])}),new qt({...this._def,shape:()=>r})}deepPartial(){return _c(this)}partial(t){const r={};return ct.objectKeys(this.shape).forEach(n=>{const a=this.shape[n];t&&!t[n]?r[n]=a:r[n]=a.optional()}),new qt({...this._def,shape:()=>r})}required(t){const r={};return ct.objectKeys(this.shape).forEach(n=>{if(t&&!t[n])r[n]=this.shape[n];else{let i=this.shape[n];for(;i instanceof ws;)i=i._def.innerType;r[n]=i}}),new qt({...this._def,shape:()=>r})}keyof(){return rB(ct.objectKeys(this.shape))}}qt.create=(e,t)=>new qt({shape:()=>e,unknownKeys:"strip",catchall:ji.create(),typeName:qe.ZodObject,...tt(t)});qt.strictCreate=(e,t)=>new qt({shape:()=>e,unknownKeys:"strict",catchall:ji.create(),typeName:qe.ZodObject,...tt(t)});qt.lazycreate=(e,t)=>new qt({shape:e,unknownKeys:"strip",catchall:ji.create(),typeName:qe.ZodObject,...tt(t)});class Rh extends st{_parse(t){const{ctx:r}=this._processInputParams(t),n=this._def.options;function a(i){for(const l of i)if(l.result.status==="valid")return l.result;for(const l of i)if(l.result.status==="dirty")return r.common.issues.push(...l.ctx.common.issues),l.result;const o=i.map(l=>new Hn(l.ctx.common.issues));return ge(r,{code:re.invalid_union,unionErrors:o}),Ge}if(r.common.async)return Promise.all(n.map(async i=>{const o={...r,common:{...r.common,issues:[]},parent:null};return{result:await i._parseAsync({data:r.data,path:r.path,parent:o}),ctx:o}})).then(a);{let i;const o=[];for(const c of n){const u={...r,common:{...r.common,issues:[]},parent:null},d=c._parseSync({data:r.data,path:r.path,parent:u});if(d.status==="valid")return d;d.status==="dirty"&&!i&&(i={result:d,ctx:u}),u.common.issues.length&&o.push(u.common.issues)}if(i)return r.common.issues.push(...i.ctx.common.issues),i.result;const l=o.map(c=>new Hn(c));return ge(r,{code:re.invalid_union,unionErrors:l}),Ge}}get options(){return this._def.options}}Rh.create=(e,t)=>new Rh({options:e,typeName:qe.ZodUnion,...tt(t)});const zs=e=>e instanceof Lh?zs(e.schema):e instanceof Xa?zs(e.innerType()):e instanceof Fh?[e.value]:e instanceof Ro?e.options:e instanceof Vh?ct.objectValues(e.enum):e instanceof zh?zs(e._def.innerType):e instanceof Mh?[void 0]:e instanceof Dh?[null]:e instanceof ws?[void 0,...zs(e.unwrap())]:e instanceof Io?[null,...zs(e.unwrap())]:e instanceof PC||e instanceof Uh?zs(e.unwrap()):e instanceof Bh?zs(e._def.innerType):[];class B0 extends st{_parse(t){const{ctx:r}=this._processInputParams(t);if(r.parsedType!==je.object)return ge(r,{code:re.invalid_type,expected:je.object,received:r.parsedType}),Ge;const n=this.discriminator,a=r.data[n],i=this.optionsMap.get(a);return i?r.common.async?i._parseAsync({data:r.data,path:r.path,parent:r}):i._parseSync({data:r.data,path:r.path,parent:r}):(ge(r,{code:re.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),Ge)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,r,n){const a=new Map;for(const i of r){const o=zs(i.shape[t]);if(!o.length)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(const l of o){if(a.has(l))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(l)}`);a.set(l,i)}}return new B0({typeName:qe.ZodDiscriminatedUnion,discriminator:t,options:r,optionsMap:a,...tt(n)})}}function VN(e,t){const r=qs(e),n=qs(t);if(e===t)return{valid:!0,data:e};if(r===je.object&&n===je.object){const a=ct.objectKeys(t),i=ct.objectKeys(e).filter(l=>a.indexOf(l)!==-1),o={...e,...t};for(const l of i){const c=VN(e[l],t[l]);if(!c.valid)return{valid:!1};o[l]=c.data}return{valid:!0,data:o}}else if(r===je.array&&n===je.array){if(e.length!==t.length)return{valid:!1};const a=[];for(let i=0;i<e.length;i++){const o=e[i],l=t[i],c=VN(o,l);if(!c.valid)return{valid:!1};a.push(c.data)}return{valid:!0,data:a}}else return r===je.date&&n===je.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class Ih extends st{_parse(t){const{status:r,ctx:n}=this._processInputParams(t),a=(i,o)=>{if(LN(i)||LN(o))return Ge;const l=VN(i.value,o.value);return l.valid?((FN(i)||FN(o))&&r.dirty(),{status:r.value,value:l.data}):(ge(n,{code:re.invalid_intersection_types}),Ge)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then(([i,o])=>a(i,o)):a(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}}Ih.create=(e,t,r)=>new Ih({left:e,right:t,typeName:qe.ZodIntersection,...tt(r)});class ks extends st{_parse(t){const{status:r,ctx:n}=this._processInputParams(t);if(n.parsedType!==je.array)return ge(n,{code:re.invalid_type,expected:je.array,received:n.parsedType}),Ge;if(n.data.length<this._def.items.length)return ge(n,{code:re.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),Ge;!this._def.rest&&n.data.length>this._def.items.length&&(ge(n,{code:re.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),r.dirty());const i=[...n.data].map((o,l)=>{const c=this._def.items[l]||this._def.rest;return c?c._parse(new _s(n,o,n.path,l)):null}).filter(o=>!!o);return n.common.async?Promise.all(i).then(o=>nn.mergeArray(r,o)):nn.mergeArray(r,i)}get items(){return this._def.items}rest(t){return new ks({...this._def,rest:t})}}ks.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new ks({items:e,typeName:qe.ZodTuple,rest:null,...tt(t)})};class $h extends st{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:r,ctx:n}=this._processInputParams(t);if(n.parsedType!==je.object)return ge(n,{code:re.invalid_type,expected:je.object,received:n.parsedType}),Ge;const a=[],i=this._def.keyType,o=this._def.valueType;for(const l in n.data)a.push({key:i._parse(new _s(n,l,n.path,l)),value:o._parse(new _s(n,n.data[l],n.path,l)),alwaysSet:l in n.data});return n.common.async?nn.mergeObjectAsync(r,a):nn.mergeObjectSync(r,a)}get element(){return this._def.valueType}static create(t,r,n){return r instanceof st?new $h({keyType:t,valueType:r,typeName:qe.ZodRecord,...tt(n)}):new $h({keyType:Va.create(),valueType:t,typeName:qe.ZodRecord,...tt(r)})}}class Kx extends st{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:r,ctx:n}=this._processInputParams(t);if(n.parsedType!==je.map)return ge(n,{code:re.invalid_type,expected:je.map,received:n.parsedType}),Ge;const a=this._def.keyType,i=this._def.valueType,o=[...n.data.entries()].map(([l,c],u)=>({key:a._parse(new _s(n,l,n.path,[u,"key"])),value:i._parse(new _s(n,c,n.path,[u,"value"]))}));if(n.common.async){const l=new Map;return Promise.resolve().then(async()=>{for(const c of o){const u=await c.key,d=await c.value;if(u.status==="aborted"||d.status==="aborted")return Ge;(u.status==="dirty"||d.status==="dirty")&&r.dirty(),l.set(u.value,d.value)}return{status:r.value,value:l}})}else{const l=new Map;for(const c of o){const u=c.key,d=c.value;if(u.status==="aborted"||d.status==="aborted")return Ge;(u.status==="dirty"||d.status==="dirty")&&r.dirty(),l.set(u.value,d.value)}return{status:r.value,value:l}}}}Kx.create=(e,t,r)=>new Kx({valueType:t,keyType:e,typeName:qe.ZodMap,...tt(r)});class rc extends st{_parse(t){const{status:r,ctx:n}=this._processInputParams(t);if(n.parsedType!==je.set)return ge(n,{code:re.invalid_type,expected:je.set,received:n.parsedType}),Ge;const a=this._def;a.minSize!==null&&n.data.size<a.minSize.value&&(ge(n,{code:re.too_small,minimum:a.minSize.value,type:"set",inclusive:!0,exact:!1,message:a.minSize.message}),r.dirty()),a.maxSize!==null&&n.data.size>a.maxSize.value&&(ge(n,{code:re.too_big,maximum:a.maxSize.value,type:"set",inclusive:!0,exact:!1,message:a.maxSize.message}),r.dirty());const i=this._def.valueType;function o(c){const u=new Set;for(const d of c){if(d.status==="aborted")return Ge;d.status==="dirty"&&r.dirty(),u.add(d.value)}return{status:r.value,value:u}}const l=[...n.data.values()].map((c,u)=>i._parse(new _s(n,c,n.path,u)));return n.common.async?Promise.all(l).then(c=>o(c)):o(l)}min(t,r){return new rc({...this._def,minSize:{value:t,message:_e.toString(r)}})}max(t,r){return new rc({...this._def,maxSize:{value:t,message:_e.toString(r)}})}size(t,r){return this.min(t,r).max(t,r)}nonempty(t){return this.min(1,t)}}rc.create=(e,t)=>new rc({valueType:e,minSize:null,maxSize:null,typeName:qe.ZodSet,...tt(t)});class yu extends st{constructor(){super(...arguments),this.validate=this.implement}_parse(t){const{ctx:r}=this._processInputParams(t);if(r.parsedType!==je.function)return ge(r,{code:re.invalid_type,expected:je.function,received:r.parsedType}),Ge;function n(l,c){return Wx({data:l,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,Ux(),bd].filter(u=>!!u),issueData:{code:re.invalid_arguments,argumentsError:c}})}function a(l,c){return Wx({data:l,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,Ux(),bd].filter(u=>!!u),issueData:{code:re.invalid_return_type,returnTypeError:c}})}const i={errorMap:r.common.contextualErrorMap},o=r.data;if(this._def.returns instanceof wd){const l=this;return yn(async function(...c){const u=new Hn([]),d=await l._def.args.parseAsync(c,i).catch(p=>{throw u.addIssue(n(c,p)),u}),f=await Reflect.apply(o,this,d);return await l._def.returns._def.type.parseAsync(f,i).catch(p=>{throw u.addIssue(a(f,p)),u})})}else{const l=this;return yn(function(...c){const u=l._def.args.safeParse(c,i);if(!u.success)throw new Hn([n(c,u.error)]);const d=Reflect.apply(o,this,u.data),f=l._def.returns.safeParse(d,i);if(!f.success)throw new Hn([a(d,f.error)]);return f.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new yu({...this._def,args:ks.create(t).rest(kl.create())})}returns(t){return new yu({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,r,n){return new yu({args:t||ks.create([]).rest(kl.create()),returns:r||kl.create(),typeName:qe.ZodFunction,...tt(n)})}}class Lh extends st{get schema(){return this._def.getter()}_parse(t){const{ctx:r}=this._processInputParams(t);return this._def.getter()._parse({data:r.data,path:r.path,parent:r})}}Lh.create=(e,t)=>new Lh({getter:e,typeName:qe.ZodLazy,...tt(t)});class Fh extends st{_parse(t){if(t.data!==this._def.value){const r=this._getOrReturnCtx(t);return ge(r,{received:r.data,code:re.invalid_literal,expected:this._def.value}),Ge}return{status:"valid",value:t.data}}get value(){return this._def.value}}Fh.create=(e,t)=>new Fh({value:e,typeName:qe.ZodLiteral,...tt(t)});function rB(e,t){return new Ro({values:e,typeName:qe.ZodEnum,...tt(t)})}class Ro extends st{constructor(){super(...arguments),Vf.set(this,void 0)}_parse(t){if(typeof t.data!="string"){const r=this._getOrReturnCtx(t),n=this._def.values;return ge(r,{expected:ct.joinValues(n),received:r.parsedType,code:re.invalid_type}),Ge}if(qx(this,Vf)||Qz(this,Vf,new Set(this._def.values)),!qx(this,Vf).has(t.data)){const r=this._getOrReturnCtx(t),n=this._def.values;return ge(r,{received:r.data,code:re.invalid_enum_value,options:n}),Ge}return yn(t.data)}get options(){return this._def.values}get enum(){const t={};for(const r of this._def.values)t[r]=r;return t}get Values(){const t={};for(const r of this._def.values)t[r]=r;return t}get Enum(){const t={};for(const r of this._def.values)t[r]=r;return t}extract(t,r=this._def){return Ro.create(t,{...this._def,...r})}exclude(t,r=this._def){return Ro.create(this.options.filter(n=>!t.includes(n)),{...this._def,...r})}}Vf=new WeakMap;Ro.create=rB;class Vh extends st{constructor(){super(...arguments),zf.set(this,void 0)}_parse(t){const r=ct.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(t);if(n.parsedType!==je.string&&n.parsedType!==je.number){const a=ct.objectValues(r);return ge(n,{expected:ct.joinValues(a),received:n.parsedType,code:re.invalid_type}),Ge}if(qx(this,zf)||Qz(this,zf,new Set(ct.getValidEnumValues(this._def.values))),!qx(this,zf).has(t.data)){const a=ct.objectValues(r);return ge(n,{received:n.data,code:re.invalid_enum_value,options:a}),Ge}return yn(t.data)}get enum(){return this._def.values}}zf=new WeakMap;Vh.create=(e,t)=>new Vh({values:e,typeName:qe.ZodNativeEnum,...tt(t)});class wd extends st{unwrap(){return this._def.type}_parse(t){const{ctx:r}=this._processInputParams(t);if(r.parsedType!==je.promise&&r.common.async===!1)return ge(r,{code:re.invalid_type,expected:je.promise,received:r.parsedType}),Ge;const n=r.parsedType===je.promise?r.data:Promise.resolve(r.data);return yn(n.then(a=>this._def.type.parseAsync(a,{path:r.path,errorMap:r.common.contextualErrorMap})))}}wd.create=(e,t)=>new wd({type:e,typeName:qe.ZodPromise,...tt(t)});class Xa extends st{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===qe.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:r,ctx:n}=this._processInputParams(t),a=this._def.effect||null,i={addIssue:o=>{ge(n,o),o.fatal?r.abort():r.dirty()},get path(){return n.path}};if(i.addIssue=i.addIssue.bind(i),a.type==="preprocess"){const o=a.transform(n.data,i);if(n.common.async)return Promise.resolve(o).then(async l=>{if(r.value==="aborted")return Ge;const c=await this._def.schema._parseAsync({data:l,path:n.path,parent:n});return c.status==="aborted"?Ge:c.status==="dirty"||r.value==="dirty"?Yc(c.value):c});{if(r.value==="aborted")return Ge;const l=this._def.schema._parseSync({data:o,path:n.path,parent:n});return l.status==="aborted"?Ge:l.status==="dirty"||r.value==="dirty"?Yc(l.value):l}}if(a.type==="refinement"){const o=l=>{const c=a.refinement(l,i);if(n.common.async)return Promise.resolve(c);if(c instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return l};if(n.common.async===!1){const l=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return l.status==="aborted"?Ge:(l.status==="dirty"&&r.dirty(),o(l.value),{status:r.value,value:l.value})}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(l=>l.status==="aborted"?Ge:(l.status==="dirty"&&r.dirty(),o(l.value).then(()=>({status:r.value,value:l.value}))))}if(a.type==="transform")if(n.common.async===!1){const o=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!ec(o))return o;const l=a.transform(o.value,i);if(l instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:r.value,value:l}}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(o=>ec(o)?Promise.resolve(a.transform(o.value,i)).then(l=>({status:r.value,value:l})):o);ct.assertNever(a)}}Xa.create=(e,t,r)=>new Xa({schema:e,typeName:qe.ZodEffects,effect:t,...tt(r)});Xa.createWithPreprocess=(e,t,r)=>new Xa({schema:t,effect:{type:"preprocess",transform:e},typeName:qe.ZodEffects,...tt(r)});class ws extends st{_parse(t){return this._getType(t)===je.undefined?yn(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}ws.create=(e,t)=>new ws({innerType:e,typeName:qe.ZodOptional,...tt(t)});class Io extends st{_parse(t){return this._getType(t)===je.null?yn(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Io.create=(e,t)=>new Io({innerType:e,typeName:qe.ZodNullable,...tt(t)});class zh extends st{_parse(t){const{ctx:r}=this._processInputParams(t);let n=r.data;return r.parsedType===je.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:r.path,parent:r})}removeDefault(){return this._def.innerType}}zh.create=(e,t)=>new zh({innerType:e,typeName:qe.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...tt(t)});class Bh extends st{_parse(t){const{ctx:r}=this._processInputParams(t),n={...r,common:{...r.common,issues:[]}},a=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return _h(a)?a.then(i=>({status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new Hn(n.common.issues)},input:n.data})})):{status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new Hn(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}}Bh.create=(e,t)=>new Bh({innerType:e,typeName:qe.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...tt(t)});class Xx extends st{_parse(t){if(this._getType(t)!==je.nan){const n=this._getOrReturnCtx(t);
771return ge(n,{code:re.invalid_type,expected:je.nan,received:n.parsedType}),Ge}return{status:"valid",value:t.data}}}Xx.create=e=>new Xx({typeName:qe.ZodNaN,...tt(e)});const CTe=Symbol("zod_brand");class PC extends st{_parse(t){const{ctx:r}=this._processInputParams(t),n=r.data;return this._def.type._parse({data:n,path:r.path,parent:r})}unwrap(){return this._def.type}}class Pp extends st{_parse(t){const{status:r,ctx:n}=this._processInputParams(t);if(n.common.async)return(async()=>{const i=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return i.status==="aborted"?Ge:i.status==="dirty"?(r.dirty(),Yc(i.value)):this._def.out._parseAsync({data:i.value,path:n.path,parent:n})})();{const a=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return a.status==="aborted"?Ge:a.status==="dirty"?(r.dirty(),{status:"dirty",value:a.value}):this._def.out._parseSync({data:a.value,path:n.path,parent:n})}}static create(t,r){return new Pp({in:t,out:r,typeName:qe.ZodPipeline})}}class Uh extends st{_parse(t){const r=this._def.innerType._parse(t),n=a=>(ec(a)&&(a.value=Object.freeze(a.value)),a);return _h(r)?r.then(a=>n(a)):n(r)}unwrap(){return this._def.innerType}}Uh.create=(e,t)=>new Uh({innerType:e,typeName:qe.ZodReadonly,...tt(t)});function t4(e,t){const r=typeof e=="function"?e(t):typeof e=="string"?{message:e}:e;return typeof r=="string"?{message:r}:r}function nB(e,t={},r){return e?jd.create().superRefine((n,a)=>{var i,o;const l=e(n);if(l instanceof Promise)return l.then(c=>{var u,d;if(!c){const f=t4(t,n),m=(d=(u=f.fatal)!==null&&u!==void 0?u:r)!==null&&d!==void 0?d:!0;a.addIssue({code:"custom",...f,fatal:m})}});if(!l){const c=t4(t,n),u=(o=(i=c.fatal)!==null&&i!==void 0?i:r)!==null&&o!==void 0?o:!0;a.addIssue({code:"custom",...c,fatal:u})}}):jd.create()}const ATe={object:qt.lazycreate};var qe;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(qe||(qe={}));const TTe=(e,t={message:`Input not instance of ${e.name}`})=>nB(r=>r instanceof e,t),It=Va.create,dr=Mo.create,ETe=Xx.create,OTe=Do.create,aB=kh.create,_Te=tc.create,kTe=Hx.create,MTe=Mh.create,DTe=Dh.create,RTe=jd.create,ITe=kl.create,$Te=ji.create,LTe=Gx.create,sB=Wa.create,bu=qt.create,FTe=qt.strictCreate,VTe=Rh.create,zTe=B0.create,BTe=Ih.create,UTe=ks.create,WTe=$h.create,qTe=Kx.create,HTe=rc.create,GTe=yu.create,KTe=Lh.create,iB=Fh.create,Yx=Ro.create,XTe=Vh.create,YTe=wd.create,r4=Xa.create,ZTe=ws.create,QTe=Io.create,JTe=Xa.createWithPreprocess,eEe=Pp.create,tEe=()=>It().optional(),rEe=()=>dr().optional(),nEe=()=>aB().optional(),aEe={string:e=>Va.create({...e,coerce:!0}),number:e=>Mo.create({...e,coerce:!0}),boolean:e=>kh.create({...e,coerce:!0}),bigint:e=>Do.create({...e,coerce:!0}),date:e=>tc.create({...e,coerce:!0})},sEe=Ge;var Ce=Object.freeze({__proto__:null,defaultErrorMap:bd,setErrorMap:nTe,getErrorMap:Ux,makeIssue:Wx,EMPTY_PATH:aTe,addIssueToContext:ge,ParseStatus:nn,INVALID:Ge,DIRTY:Yc,OK:yn,isAborted:LN,isDirty:FN,isValid:ec,isAsync:_h,get util(){return ct},get objectUtil(){return $N},ZodParsedType:je,getParsedType:qs,ZodType:st,datetimeRegex:tB,ZodString:Va,ZodNumber:Mo,ZodBigInt:Do,ZodBoolean:kh,ZodDate:tc,ZodSymbol:Hx,ZodUndefined:Mh,ZodNull:Dh,ZodAny:jd,ZodUnknown:kl,ZodNever:ji,ZodVoid:Gx,ZodArray:Wa,ZodObject:qt,ZodUnion:Rh,ZodDiscriminatedUnion:B0,ZodIntersection:Ih,ZodTuple:ks,ZodRecord:$h,ZodMap:Kx,ZodSet:rc,ZodFunction:yu,ZodLazy:Lh,ZodLiteral:Fh,ZodEnum:Ro,ZodNativeEnum:Vh,ZodPromise:wd,ZodEffects:Xa,ZodTransformer:Xa,ZodOptional:ws,ZodNullable:Io,ZodDefault:zh,ZodCatch:Bh,ZodNaN:Xx,BRAND:CTe,ZodBranded:PC,ZodPipeline:Pp,ZodReadonly:Uh,custom:nB,Schema:st,ZodSchema:st,late:ATe,get ZodFirstPartyTypeKind(){return qe},coerce:aEe,any:RTe,array:sB,bigint:OTe,boolean:aB,date:_Te,discriminatedUnion:zTe,effect:r4,enum:Yx,function:GTe,instanceof:TTe,intersection:BTe,lazy:KTe,literal:iB,map:qTe,nan:ETe,nativeEnum:XTe,never:$Te,null:DTe,nullable:QTe,number:dr,object:bu,oboolean:nEe,onumber:rEe,optional:ZTe,ostring:tEe,pipeline:eEe,preprocess:JTe,promise:YTe,record:WTe,set:HTe,strictObject:FTe,string:It,symbol:kTe,transformer:r4,tuple:UTe,undefined:MTe,union:VTe,unknown:ITe,void:LTe,NEVER:sEe,ZodIssueCode:re,quotelessJson:rTe,ZodError:Hn});function iEe({isOpen:e,onClose:t,extractedInfo:r,processor:n,onConfirm:a}){const{toast:i}=wn(),[o,l]=b.useState(!1),c=ko({defaultValues:{companyName:(r==null?void 0:r.companyName)||"",companyCNPJ:(r==null?void 0:r.companyCNPJ)||"",companyAddress:(r==null?void 0:r.companyAddress)||"",companyEmail:(r==null?void 0:r.companyEmail)||"",companyPhone:(r==null?void 0:r.companyPhone)||""}}),u=async d=>{l(!0);try{await ft("POST","/api/admin/learn-company-info",{original:r,corrected:d,processor:n}),a(d),i({title:"Informações atualizadas",description:"Suas correções foram aplicadas e ajudarão a melhorar o sistema"})}catch(f){console.error("Erro ao enviar correções:",f),i({title:"Erro ao enviar correções",description:"Não foi possÃvel enviar as correções para o servidor",variant:"destructive"})}finally{l(!1),t()}};return s.jsx(Ct,{open:e,onOpenChange:t,children:s.jsxs(Bt,{className:"sm:max-w-[600px]",children:[s.jsxs(Xt,{children:[s.jsx(Yt,{children:"Verificar Informações ExtraÃdas"}),s.jsx(Zt,{children:"Por favor, verifique e corrija se necessário as informações extraÃdas do cartão CNPJ."})]}),s.jsxs("div",{className:"grid gap-4 py-4",children:[n&&s.jsxs("div",{className:"text-xs text-muted-foreground mb-2",children:["ExtraÃdo usando: ",n]}),s.jsx(oi,{...c,children:s.jsxs("form",{onSubmit:c.handleSubmit(u),className:"space-y-4",children:[s.jsx(ke,{control:c.control,name:"companyName",render:({field:d})=>s.jsxs(Te,{children:[s.jsx(Ae,{children:"Razão Social"}),s.jsx(Ee,{children:s.jsx(ve,{placeholder:"Nome da empresa",...d})})]})}),s.jsx(ke,{control:c.control,name:"companyCNPJ",render:({field:d})=>s.jsxs(Te,{children:[s.jsx(Ae,{children:"CNPJ"}),s.jsx(Ee,{children:s.jsx(ve,{placeholder:"00.000.000/0000-00",...d})})]})}),s.jsx(ke,{control:c.control,name:"companyAddress",render:({field:d})=>s.jsxs(Te,{children:[s.jsx(Ae,{children:"Endereço"}),s.jsx(Ee,{children:s.jsx(ve,{placeholder:"Endereço completo",...d})})]})}),s.jsx(ei,{className:"my-4"}),s.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[s.jsx(ke,{control:c.control,name:"companyEmail",render:({field:d})=>s.jsxs(Te,{children:[s.jsx(Ae,{children:"E-mail"}),s.jsx(Ee,{children:s.jsx(ve,{placeholder:"[email protected]",...d})})]})}),s.jsx(ke,{control:c.control,name:"companyPhone",render:({field:d})=>s.jsxs(Te,{children:[s.jsx(Ae,{children:"Telefone"}),s.jsx(Ee,{children:s.jsx(ve,{placeholder:"(00) 0000-0000",...d})})]})})]}),s.jsxs(Pr,{className:"mt-6",children:[s.jsx(W,{type:"submit",disabled:o,children:o?s.jsx(s.Fragment,{children:"Processando..."}):s.jsxs(s.Fragment,{children:[s.jsx(Vl,{className:"mr-2 h-4 w-4"}),"Confirmar dados"]})}),s.jsx(W,{variant:"outline",type:"button",onClick:t,children:"Cancelar"})]})]})})]})]})})}const oEe=[{id:1,quoteNumber:"ORÃ-20250515-001",clientName:"Empresa ABC Ltda",clientEmail:"[email protected]",clientPhone:"(11) 98765-4321",productType:"Camisetas Polo",quantity:50,sizes:"P, M, G, GG",colors:"Azul marinho, Branco",printType:"Bordado",printDetails:"Logotipo no peito esquerdo, 8x8cm, 3 cores",deliveryDate:"15 dias úteis",status:"enviado",amount:2475.5,createdAt:new Date("2025-05-15T14:30:00"),sentAt:new Date("2025-05-15T16:45:00"),validUntil:new Date("2025-05-30"),notes:"Cliente solicitou amostra fÃsica antes da produção",items:[{id:1,description:"Camiseta Polo em Piquet",quantity:50,unitPrice:49.51,total:2475.5}]},{id:2,quoteNumber:"ORÃ-20250514-002",clientName:"Construtora Rápida",clientEmail:"[email protected]",clientPhone:"(11) 3456-
7717890",productType:"Uniformes Operacionais",quantity:80,sizes:"M, G, GG",colors:"Laranja de alta-visibilidade, Cinza",printType:"Serigrafia",printDetails:"Logotipo nas costas (25x20cm) e frente (10x10cm), 2 cores",deliveryDate:"20 dias úteis",status:"aprovado",amount:3560,createdAt:new Date("2025-05-14T09:15:00"),sentAt:new Date("2025-05-14T11:30:00"),validUntil:new Date("2025-05-29"),convertedToOrderAt:new Date("2025-05-15T10:25:00"),orderId:125,items:[{id:1,description:"Camisa Operacional Alta Visibilidade",quantity:40,unitPrice:45,total:1800},{id:2,description:"Calça Operacional com faixas refletivas",quantity:40,unitPrice:44,total:1760}]},{id:3,quoteNumber:"ORÃ-20250514-001",clientName:"Escola São Luiz",clientEmail:"[email protected]",clientPhone:"(11) 2345-6789",productType:"Uniformes Escolares",quantity:200,sizes:"PP, P, M, G, GG",colors:"Azul royal, Branco",printType:"Serigrafia + Bordado",printDetails:"Brasão bordado no peito + texto serigrafia nas costas",deliveryDate:"30 dias úteis",status:"enviado",amount:5980,createdAt:new Date("2025-05-14T08:20:00"),sentAt:new Date("2025-05-14T10:45:00"),validUntil:new Date("2025-05-29"),notes:"Cliente solicitou parcelamento em 3x",items:[{id:1,description:"Camiseta Escolar Manga Curta",quantity:100,unitPrice:22.9,total:2290},{id:2,description:"Camiseta Escolar Manga Longa",quantity:100,unitPrice:36.9,total:3690}]},{id:4,clientName:"Pizzaria Bellapan",clientEmail:"[email protected]",clientPhone:"(11) 96543-2198",productType:"Aventais e Bonés",quantity:25,sizes:"Ãnico",colors:"Preto, Vermelho",printType:"Bordado",printDetails:"Logo na frente do avental e boné",deliveryDate:"10 dias úteis",status:"rascunho",amount:1480,createdAt:new Date("2025-05-15T16:40:00"),items:[{id:1,description:"Aventais Chef",quantity:15,unitPrice:68,total:1020},{id:2,description:"Bonés com aba",quantity:10,unitPrice:46,total:460}]}],n4={rascunho:"bg-gray-100 text-gray-800 border-gray-200",enviado:"bg-blue-100 text-blue-800 border-blue-200",aprovado:"bg-green-100 text-green-800 border-green-200",recusado:"bg-red-100 text-red-800 border-red-200",expirado:"bg-yellow-100 text-yellow-800 border-yellow-200"},a4={rascunho:"Rascunho",enviado:"Enviado",aprovado:"Aprovado",recusado:"Recusado",expirado:"Expirado"},lEe=Ce.object({clientName:Ce.string().min(3,"Nome deve ter no mÃnimo 3 caracteres"),clientEmail:Ce.string().email("E-mail inválido"),clientPhone:Ce.string().min(10,"Telefone inválido"),clientDocument:Ce.string().optional(),clientAddress:Ce.string().optional(),clientCity:Ce.string().optional(),clientState:Ce.string().optional(),clientZipCode:Ce.string().optional(),companyName:Ce.string().optional(),companyCNPJ:Ce.string().optional(),companyContact:Ce.string().optional(),companyPosition:Ce.string().optional(),companyEmail:Ce.string().optional(),companyPhone:Ce.string().optional(),productType:Ce.string().min(3,"Tipo de produto deve ter no mÃnimo 3 caracteres"),productModel:Ce.string().optional(),productCut:Ce.string().optional(),fabricType:Ce.string().optional(),fabricWeight:Ce.string().optional(),fabricComposition:Ce.string().optional(),quantity:Ce.string().min(1,"Quantidade obrigatória"),sizes:Ce.string().min(1,"Tamanhos obrigatórios"),colors:Ce.string().min(1,"Cores obrigatórias"),colorDetails:Ce.string().optional(),printType:Ce.string().optional(),printColors:Ce.string().optional(),printLocation:Ce.string().optional(),printSize:Ce.string().optional(),printDetails:Ce.string().optional(),finishingDetails:Ce.string().optional(),productionTime:Ce.string().optional(),deliveryDate:Ce.string().min(1,"Prazo de entrega obrigatório"),deliveryMethod:Ce.string().optional(),validUntil:Ce.string().min(1,"Data de validade obrigatória"),paymentTerms:Ce.string().optional(),paymentMethod:Ce.string().optional(),installmentOptions:Ce.string().optional(),notes:Ce.string().optional(),termsAndConditions:Ce.string().optional(),documentTemplate:Ce.string().default("corporate"),includeContract:Ce.boolean().default(!0),items:Ce.array(Ce.object({description:Ce.string(),quantity:Ce.number(),unitPrice:Ce.number(),total:Ce.number()})).optional()});function cEe(){var Wr;const{toast:e}=wn();b.useRef(null);const[t,r]=b.useState(null),[n,a]=b.useState(!1),[i,o]=b.useState(!1),[l,c]=b.useState(!1),[u,d]=b.useState(!1),[f,m]=b.useState(!1);b.useState(!1);const[p,v]=b.useState(!1);b.useState(null),b.useState(null);const[h,x]=b.useState(null);b.useState(null);const[y,g]=b.useState(""),[j,S]=b.useState(null);b.useState("corporate");const[w,N]=b.useState(!1),[P,C]=b.useState(""),[A,O]=b.useState(!1),[E,k]=b.useState(null),[M,D]=b.useState({name:"",document:""}),[F,L]=b.useState(null),[B,R]=b.useState(!1),I=b.useRef(null),G=oEe;function U(T){const z=new Date(T);return new Intl.DateTimeFormat("pt-BR").format(z)}function K(T){return new Intl.NumberFormat("pt-BR",{style:"currency",currency:"BRL"}).format(T)}const ce=T=>{var X;const z=(X=T.target.files)==null?void 0:X[0];z&&(L(z),H(z))}
771,pe=T=>new Promise((z,X)=>{if(!["image/png","image/jpeg","image/gif","image/webp"].includes(T.type)){e({title:"Formato não suportado",description:"Por favor, use uma imagem nos formatos PNG, JPEG, GIF ou WEBP.",variant:"destructive"}),X(new Error("Formato não suportado. Por favor, use uma imagem nos formatos PNG, JPEG, GIF ou WEBP."));return}if(T.size>4e6){e({title:"Imagem muito grande",description:"Por favor, use uma imagem menor que 4MB.",variant:"destructive"}),X(new Error("Imagem muito grande. Por favor, use uma imagem menor que 4MB."));return}const le=new Image,ne=document.createElement("canvas"),ye=ne.getContext("2d");le.onload=()=>{let Qe=le.width,ht=le.height;const Wt=800,Oi=800;Qe>ht?Qe>Wt&&(ht*=Wt/Qe,Qe=Wt):ht>Oi&&(Qe*=Oi/ht,ht=Oi),ne.width=Qe,ne.height=ht,ye==null||ye.drawImage(le,0,0,Qe,ht);const de=ne.toDataURL("image/jpeg",.7);z(de)},le.onerror=()=>{X(new Error("Erro ao processar imagem"))},le.src=URL.createObjectURL(T)}),[Ke,q]=b.useState(!1),[Q,we]=b.useState(null),[Z,V]=b.useState("");b.useState({companyName:"",companyCNPJ:"",companyAddress:"",companyEmail:"",companyPhone:""});const ee=T=>{D({name:T.companyName,document:T.companyCNPJ,email:T.companyEmail,phone:T.companyPhone,address:T.companyAddress,contact:""}),q(!1)},H=async T=>{R(!0);try{const z=await pe(T),oe=await(await ft("POST","/api/admin/extract-company-info",{fileContent:z})).json();oe.success&&oe.companyInfo?(we(oe.companyInfo),V(oe.processor||"desconhecido"),D({name:oe.companyInfo.companyName||"",document:oe.companyInfo.companyCNPJ||"",contact:oe.companyInfo.companyContact||"",email:oe.companyInfo.companyEmail||"",phone:oe.companyInfo.companyPhone||"",address:oe.companyInfo.companyAddress||""}),q(!0),e({title:"Informações extraÃdas",description:"Por favor, verifique e corrija os dados extraÃdos se necessário"})):(e({title:"Extração incompleta",description:"Alguns dados não foram identificados. Por favor, complete as informações manualmente.",variant:"destructive"}),we({}),q(!0))}catch(z){console.error("Erro ao processar cartão CNPJ:",z);let X="Ocorreu um erro ao processar o cartão CNPJ";z.message&&z.message.includes("muito grande")?X="Arquivo muito grande. Por favor, use uma imagem menor ou de menor resolução.":z.message&&z.message.includes("processar imagem")&&(X="Erro ao processar a imagem. Tente com outro formato de arquivo."),e({title:"Erro ao processar",description:X,variant:"destructive"}),R(!1)}finally{R(!1)}},Re=async()=>{if(P.trim()===""){e({title:"Descrição obrigatória",description:"Por favor, forneça uma descrição detalhada do pedido",variant:"destructive"});return}O(!0);try{const X=await(await ft("POST","/api/admin/generate-order-from-text",{description:P,clientInfo:M,companyInfo:{companyName:"ConfecXpress",companyFullName:"Confecção e Intermediação de Serviços Personalizados LTDA",companyCNPJ:"52.640.697/0001-69",companyAddress:"Av. Brig. Faria Lima, 1811 Conj. 1119/1120, Jd. Paulistano, São Paulo - SP, 01452-001",companyPhone:"(11) 5197-6208",standardDeliveryTime:"7 a 20 dias úteis",urgentDeliveryTime:"48 horas (pedidos urgentes)",paymentOptions:["PIX (antecipado)","Boleto (pagamento antecipado, 15 dias ou 30 dias)","Cartão de Crédito (pagamento em até 12x)"]}})).json();X.success?(k(X.orderData),e({title:"Pedido gerado com sucesso",description:"A IA interpretou a descrição e gerou um pedido"})):e({title:"Erro na geração",description:X.message||"Não foi possÃvel gerar o pedido",variant:"destructive"})}catch(T){console.error("Erro ao gerar pedido:",T),e({title:"Erro na geração",description:"Ocorreu um erro ao gerar o pedido",variant:"destructive"})}finally{O(!1)}},Pe=()=>{E&&(e({title:"Orçamento criado",description:"Orçamento criado com base na análise da IA"}),N(!1))},te=ko({resolver:Jl(lEe),defaultValues:{clientName:"",clientEmail:"",clientPhone:"",clientDocument:"",clientAddress:"",clientCity:"",clientState:"",clientZipCode:"",companyName:"",companyCNPJ:"",companyContact:"",companyPosition:"",companyEmail:"",companyPhone:"",productType:"",productModel:"",productCut:"",fabricType:"",fabricWeight:"",fabricComposition:"",quantity:"",sizes:"",colors:"",colorDetails:"",printType:"",printColors:"",printLocation:"",printSize:"",printDetails:"",finishingDetails:"",productionTime:"",deliveryDate:"",deliveryMethod:"Entrega própria",validUntil:new Date(Date.now()+15*24*60*60*1e3).toISOString().split("T")[0],paymentTerms:"50% de sinal e 50% na entrega",paymentMethod:"PIX ou transferência bancária",notes:"",documentTemplate:"corporate",includeContract:!0}}),Ie=G.filter(T=>{if(j&&T.status!==j)return!1;if(y){const z=y.toLowerCase();return T.quoteNumber&&T.quoteNumber.toLowerCase().includes(z)||T.clientName.toLowerCase().includes(z)||T.clientEmail.toLowerCase().includes(z)||T.clientPhone.includes(z)||T.productType.toLowerCase().includes(z)}return!0}).sort((T,z)=>new Date(z.createdAt).getTime()-new Date(T.createdAt).getTime()),jt=T=>{r(T),te.reset({clientName:T.clientName,clientEmail:T.clientEmail,clientPhone:T.clientPhone,productType:T.productType,quantity:String(T.quantity),sizes:T.sizes,colors:T.colors,printType:T.printType||"",printDetails:T.printDetails||"",deliveryDate:T.deliveryDate,validUntil:T.validUntil?new Date(T.validUntil).toISOString().split("T")[0]:"",notes:T.notes||""}),o(!0)},Dr=T=>{r(T),v(!0),setTimeout(()=>{v(!1),e({title:"Pedido criado com sucesso",description:`O orçamento #${T.id}
771 foi convertido em pedido.`})},1500)},ur=T=>{r(T),m(!0),setTimeout(()=>{m(!1),e({title:"PDF gerado com sucesso",description:"O orçamento em PDF está pronto para download."})},1500)},Qa=T=>{console.log("Orçamento atualizado:",T),e({title:"Orçamento atualizado",description:"As alterações foram salvas com sucesso."}),o(!1)};return s.jsxs("div",{className:"space-y-6",children:[s.jsxs("div",{className:"flex flex-col md:flex-row md:items-center justify-between gap-4",children:[s.jsx("h2",{className:"text-2xl font-bold",children:"Gerenciamento de Formulários"}),s.jsxs("div",{className:"flex flex-col sm:flex-row gap-3",children:[s.jsxs("div",{className:"relative",children:[s.jsx(zl,{className:"absolute left-2.5 top-2.5 h-4 w-4 text-gray-500"}),s.jsx(ve,{placeholder:"Buscar orçamentos...",className:"pl-9",value:y,onChange:T=>g(T.target.value)})]}),s.jsxs(Jr,{value:j||"todos",onValueChange:T=>S(T==="todos"?null:T),children:[s.jsx(Fr,{className:"w-[180px]",children:s.jsx(en,{placeholder:"Filtrar por status"})}),s.jsxs(Vr,{children:[s.jsx(xe,{value:"todos",children:"Todos os status"}),s.jsx(xe,{value:"rascunho",children:"Rascunho"}),s.jsx(xe,{value:"enviado",children:"Enviado"}),s.jsx(xe,{value:"aprovado",children:"Aprovado"}),s.jsx(xe,{value:"recusado",children:"Recusado"}),s.jsx(xe,{value:"expirado",children:"Expirado"})]})]}),s.jsx(W,{variant:"outline",size:"icon",onClick:()=>{g(""),S(null)},title:"Limpar filtros",children:s.jsx(Qr,{className:"h-4 w-4"})}),s.jsxs(W,{variant:"outline",onClick:()=>{e({title:"Exportando relatório",description:"Relatório de orçamentos em geração"})},children:[s.jsx(Rm,{className:"h-4 w-4 mr-2"}),"Exportar"]}),s.jsxs(W,{variant:"outline",className:"bg-gradient-to-r from-indigo-50 to-purple-50 hover:from-indigo-100 hover:to-purple-100",onClick:()=>N(!0),children:[s.jsx(hn,{className:"h-4 w-4 mr-2 text-indigo-500"}),"Criar com IA"]}),s.jsxs(W,{variant:"default",onClick:()=>{r(null),te.reset({clientName:"",clientEmail:"",clientPhone:"",productType:"",quantity:"",sizes:"",colors:"",printType:"",printDetails:"",deliveryDate:"",validUntil:new Date(Date.now()+15*24*60*60*1e3).toISOString().split("T")[0],notes:""}),o(!0)},children:[s.jsx(Lt,{className:"h-4 w-4 mr-2"}),"Novo Orçamento"]})]})]}),s.jsxs(fe,{children:[s.jsxs(Me,{className:"pb-3",children:[s.jsx(De,{children:"Orçamentos"}),s.jsx(Ye,{children:"Gerenciamento de orçamentos detalhados para clientes"})]}),s.jsx(me,{children:Ie.length===0?s.jsxs("div",{className:"text-center py-8",children:[s.jsx(Lt,{className:"h-12 w-12 mx-auto text-gray-400 mb-3"}),s.jsx("h3",{className:"text-lg font-medium text-gray-800",children:"Nenhum formulário encontrado"}),s.jsx("p",{className:"text-gray-500 mt-1 max-w-md mx-auto",children:y||j?"Tente ajustar os filtros para ver mais resultados.":"Quando você criar orçamentos, eles aparecerão aqui."})]}):s.jsx("div",{className:"overflow-x-auto",children:s.jsxs(ai,{children:[s.jsx(si,{children:s.jsxs(br,{className:"bg-gray-50",children:[s.jsx(Ze,{children:"Referência"}),s.jsx(Ze,{children:"Cliente"}),s.jsx(Ze,{children:"Produto"}),s.jsx(Ze,{children:"Data"}),s.jsx(Ze,{children:"Valor"}),s.jsx(Ze,{children:"Status"}),s.jsx(Ze,{className:"w-[100px]",children:"Ações"})]})}),s.jsx(ii,{children:Ie.map(T=>s.jsxs(br,{children:[s.jsx(Le,{children:T.quoteNumber||s.jsxs("span",{className:"text-gray-400",children:["Rascunho #",T.id]})}),s.jsx(Le,{children:s.jsxs("div",{className:"flex flex-col",children:[s.jsx("span",{className:"font-medium truncate max-w-[200px]",children:T.clientName}),s.jsx("span",{className:"text-xs text-gray-500",children:T.clientEmail})]})}),s.jsx(Le,{children:s.jsxs("div",{className:"flex flex-col",children:[s.jsx("span",{children:T.productType}),s.jsxs("span",{className:"text-xs text-gray-500",children:["Qtd: ",T.quantity]})]})}),s.jsx(Le,{children:U(T.createdAt)}),s.jsx(Le,{children:K(T.amount)}),s.jsx(Le,{children:s.jsx(Ue,{variant:"outline",className:n4[T.status]||"",children:a4[T.status]||T.status})}),s.jsx(Le,{children:s.jsxs(Oo,{children:[s.jsx(_o,{asChild:!0,children:s.jsx(W,{variant:"ghost",size:"icon",children:s.jsx(Oy,{className:"h-4 w-4"})})}),s.jsxs(bi,{align:"end",children:[s.jsx(hc,{children:"Ações"}),s.jsxs(Je,{onClick:()=>{r(T),a(!0)},children:[s.jsx(gs,{className:"h-4 w-4 mr-2"}),"Visualizar"]}),s.jsxs(Je,{onClick:()=>jt(T),children:[s.jsx(so,{className:"h-4 w-4 mr-2"}),"Editar"]}),s.jsxs(Je,{onClick:()=>{r(T),c(!0)},children:[s.jsx(Lt,{className:"h-4 w-4 mr-2"}),"Pré-visualizar"]}),s.jsx(js,{}),s.jsxs(Je,{onClick:()=>ur(T),children:[s.jsx(ca,{className:"h-4 w-4 mr-2"}),"Gerar PDF"]}),s.jsxs(Je,{onClick:()=>{e({title:"E-mail enviado",description:"Orçamento enviado por e-mail ao cliente"})},children:[s.jsx(El,{className:"h-4 w-4 mr-2"}),"Enviar por e-mail"]}),T.status==="enviado"||T.status==="rascunho"?s.jsxs(Je,{onClick:()=>Dr(T),disabled:p,children:[s.jsx(Fm,{className:"h-4 w-4 mr-2"}),"Gerar Pedido"]}):T.status==="aprovado"&&T.orderId?s.jsxs(Je,{onClick:()=>{e({title:"Redirecionando",description:`Indo para o pedido #${T.orderId}`})},children:[s.jsx(gs,{className:"h-4 w-4 mr-2"}),"Ver Pedido #",T.orderId]}):null]})]})})]},T.id))})]})})})]}),s.jsx(Ct,{open:n,onOpenChange:a,children:s.jsxs(Bt,{className:"max-w-4xl",children:[s.jsxs(Xt,{children:[s.jsxs(Yt,{className:"flex items-center",children:[s.jsx(Lt,{className:"h-5 w-5 mr-2"}),(t==null?void 0:t.quoteNumber)||`Formulário #${(t==null?void 0:t.id)||""}`]}),s.jsx(Zt,{children:"Detalhes completos do formulário"})]}),t&&s.jsxs("div",{className:"mt-4 space-y-6",children:[s.jsx("div",{className:"bg-gray-50 p-6 rounded-lg border border-gray-200",children:s.jsxs("div",{className:"flex flex-col md:flex-row justify-between gap-6",children:[s.jsx("div",{className:"space-y-4 flex-1",children:s.jsxs("div",{children:[s.jsx("h3",{className:"text-sm font-medium text-gray-500",children:"Informações do Cliente"}),s.jsxs("div",{className:"mt-2 space-y-2",children:[s.jsxs("div",{className:"flex items-center",children:[s.jsx(cp,{className:"h-4 w-4 text-gray-400 mr-2"}),s.jsx("span",{className:"font-medium",children:t.clientName})]}),s.jsxs("div",{className:"flex items-center",children:[s.jsx(El,{className:"h-4 w-4 text-gray-400 mr-2"}),s.jsx("span",{children:t.clientEmail})]}),s.jsxs("div",{className:"flex items-center",children:[s.jsx(_y,{className:"h-4 w-4 text-gray-400 mr-2"}),s.jsx("span",{children:t.clientPhone})]})]})]})}),s.jsx("div",{className:"space-y-4 flex-1",children:s.jsxs("div",{children:[s.jsx("h3",{className:"text-sm font-medium text-gray-500",children:"Informações do OrÃ
771§amento"}),s.jsxs("div",{className:"mt-2 space-y-2",children:[s.jsxs("div",{className:"flex items-center",children:[s.jsx(Ey,{className:"h-4 w-4 text-gray-400 mr-2"}),s.jsxs("span",{children:["Criado em: ",U(t.createdAt)]})]}),t.sentAt&&s.jsxs("div",{className:"flex items-center",children:[s.jsx(El,{className:"h-4 w-4 text-gray-400 mr-2"}),s.jsxs("span",{children:["Enviado em: ",U(t.sentAt)]})]}),t.validUntil&&s.jsxs("div",{className:"flex items-center",children:[s.jsx(Ps,{className:"h-4 w-4 text-gray-400 mr-2"}),s.jsxs("span",{children:["Válido até: ",U(t.validUntil)]})]}),s.jsxs("div",{className:"flex items-center",children:[s.jsx(eG,{className:"h-4 w-4 text-gray-400 mr-2"}),s.jsx(Ue,{variant:"outline",className:n4[t.status]||"",children:a4[t.status]||t.status})]})]})]})})]})}),s.jsxs("div",{className:"border-t pt-6",children:[s.jsx("h3",{className:"text-lg font-medium mb-4",children:"Detalhes do Produto"}),s.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[s.jsxs("div",{className:"space-y-4",children:[s.jsxs("div",{children:[s.jsx(Be,{className:"text-gray-500",children:"Tipo de Produto"}),s.jsx("p",{className:"font-medium mt-1",children:t.productType})]}),s.jsxs("div",{children:[s.jsx(Be,{className:"text-gray-500",children:"Quantidade"}),s.jsxs("p",{className:"font-medium mt-1",children:[t.quantity," unidades"]})]}),s.jsxs("div",{children:[s.jsx(Be,{className:"text-gray-500",children:"Tamanhos"}),s.jsx("p",{className:"font-medium mt-1",children:t.sizes})]}),s.jsxs("div",{children:[s.jsx(Be,{className:"text-gray-500",children:"Cores"}),s.jsx("p",{className:"font-medium mt-1",children:t.colors})]})]}),s.jsxs("div",{className:"space-y-4",children:[s.jsxs("div",{children:[s.jsx(Be,{className:"text-gray-500",children:"Tipo de Impressão"}),s.jsx("p",{className:"font-medium mt-1",children:t.printType||"Não especificado"})]}),s.jsxs("div",{children:[s.jsx(Be,{className:"text-gray-500",children:"Detalhes da Impressão"}),s.jsx("p",{className:"font-medium mt-1",children:t.printDetails||"Não especificado"})]}),s.jsxs("div",{children:[s.jsx(Be,{className:"text-gray-500",children:"Prazo de Entrega"}),s.jsx("p",{className:"font-medium mt-1",children:t.deliveryDate})]}),t.notes&&s.jsxs("div",{children:[s.jsx(Be,{className:"text-gray-500",children:"Observações"}),s.jsx("p",{className:"font-medium mt-1",children:t.notes})]})]})]})]}),s.jsxs("div",{className:"border-t pt-6",children:[s.jsx("h3",{className:"text-lg font-medium mb-4",children:"Itens do Orçamento"}),s.jsx("div",{className:"border rounded-md",children:s.jsxs(ai,{children:[s.jsx(si,{children:s.jsxs(br,{className:"bg-gray-50",children:[s.jsx(Ze,{children:"#"}),s.jsx(Ze,{children:"Descrição"}),s.jsx(Ze,{className:"text-right",children:"Qtd"}),s.jsx(Ze,{className:"text-right",children:"Valor Unit."}),s.jsx(Ze,{className:"text-right",children:"Total"})]})}),s.jsx(ii,{children:t.items.map(T=>s.jsxs(br,{children:[s.jsx(Le,{children:T.id}),s.jsx(Le,{children:T.description}),s.jsx(Le,{className:"text-right",children:T.quantity}),s.jsx(Le,{className:"text-right",children:K(T.unitPrice)}),s.jsx(Le,{className:"text-right",children:K(T.total)})]},T.id))})]})}),s.jsx("div",{className:"flex justify-end mt-4",children:s.jsx("div",{className:"bg-gray-50 px-6 py-4 rounded-md",children:s.jsxs("p",{className:"text-gray-700",children:["Valor Total: ",s.jsx("span",{className:"font-bold text-lg",children:K(t.amount)})]})})})]}),s.jsxs("div",{className:"flex justify-end gap-3 mt-6",children:[s.jsx(W,{variant:"outline",onClick:()=>a(!1),children:"Fechar"}),s.jsxs(W,{variant:"outline",onClick:()=>jt(t),children:[s.jsx(so,{className:"h-4 w-4 mr-2"}),"Editar"]}),s.jsxs(W,{onClick:()=>{a(!1),ur(t)},children:[s.jsx(ca,{className:"h-4 w-4 mr-2"}),"Gerar PDF"]})]})]})]})}),s.jsx(Ct,{open:i,onOpenChange:o,children:s.jsxs(Bt,{className:"max-w-4xl max-h-[90vh] overflow-y-auto",children:[s.jsxs(Xt,{children:[s.jsx(Yt,{children:t?"Editar Orçamento":"Novo Orçamento"}),s.jsx(Zt,{children:t?"Atualize as informações do orçamento conforme necessário.":"Preencha as informações para criar um novo orçamento."})]}),s.jsx(oi,{...te,children:s.jsxs("form",{onSubmit:te.handleSubmit(Qa),className:"space-y-6",children:[s.jsxs(ql,{defaultValue:"client",className:"w-full",children:[s.jsxs(Ao,{className:"grid grid-cols-3 w-full",children:[s.jsx(vt,{value:"client",children:"Cliente"}),s.jsx(vt,{value:"product",children:"Produto"}),s.jsx(vt,{value:"terms",children:"Condições"})]}),s.jsx(xt,{value:"client",className:"pt-4 space-y-4",children:s.jsxs("div",{className:"grid grid-cols-1 gap-4",children:[s.jsx(ke,{control:te.control,name:"clientName",render:({field:T})=>s.jsxs(Te,{children:[s.jsx(Ae,{children:"Nome do Cliente"}),s.jsx(Ee,{children:s.jsx(ve,{placeholder:"Nome completo",...T})}),s.jsx(He,{})]})}),s.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[s.jsx(ke,{control:te.control,name:"clientEmail",render:({field:T})=>s.jsxs(Te,{children:[s.jsx(Ae,{children:"E-mail"}),s.jsx(Ee,{children:s.jsx(ve,{placeholder:"[email protected]",...T})}),s.jsx(He,{})]})}),s.jsx(ke,{control:te.control,name:"clientPhone",render:({field:T})=>s.jsxs(Te,{children:[s.jsx(Ae,{children:"Telefone"}),s.jsx(Ee,{children:s.jsx(ve,{placeholder:"(00) 00000-0000",...T})}),s.jsx(He,{})]})})]})]})}),s.jsx(xt,{value:"product",className:"pt-4 space-y-4",children:s.jsxs("div",{className:"grid grid-cols-1 gap-4",children:[s.jsx(ke,{control:te.control,name:"productType",render:({field:T})=>s.jsxs(Te,{children:[s.jsx(Ae,{children:"Tipo de Produto"}),s.jsx(Ee,{children:s.jsx(ve,{placeholder:"Ex: Camisetas Polo, Uniformes, etc.",...T})}),s.jsx(He,{})]})}),s.jsx(ke,{control:te.control,name:"quantity",render:({field:T})=>s.jsxs(Te,{children:[s.jsx(Ae,{children:"Quantidade"}),s.jsx(Ee,{children:s.jsx(ve,{placeholder:"Quantidade total",...T})}),s.jsx(He,{})]})}),s.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[s.jsx(ke,{control:te.control,name:"sizes",render:({field:T})=>s.jsxs(Te,{children:[s.jsx(Ae,{children:"Tamanhos"}),s.jsx(Ee,{children:s.jsx(ve,{placeholder:"Ex: P, M, G, GG",...T})}),s.jsx(He,{})]})}),s.jsx(ke,{control:te.control,name:"colors",render:({field:T})=>s.jsxs(Te,{children:[s.jsx(Ae,{children:"Cores"}),s.jsx(Ee,{children:s.jsx(ve,{placeholder:"Ex: Azul, Preto, Branco",...T})}),s.jsx(He,{})]})})]}),s.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[s.jsx(ke,{control:te.control,name:"printType",render:({field:T})=>s.jsxs(Te,{children:[s.jsx(Ae,{children:"Tipo de Impressão"}),s.jsx(Ee,{children:s.jsx(ve,{placeholder:"Ex: Bordado, Serigrafia, Sublimação",...T})}),s.jsx(He,{})]})}),s.jsx(ke,{control:te.control,name:"printDetails",render:({field:T})=>s.jsxs(Te,{children:[s.jsx(Ae,{children:"Detalhes da Impressão"}),s.jsx(Ee,{children:s.jsx(ve,{placeholder:"Detalhes sobre a impressão/arte",...T})}),s.jsx(He,{})]})})]})]})}),s.jsx(xt,{value:"terms",className:"pt-4 space-y-4",children:s.jsxs("div",{className:"grid grid-cols-1 gap-4",children:[s.jsx(ke,{control:te.control,name:"deliveryDate",render:({field:T})=>s.jsxs(Te,{children:[s.jsx(Ae,{children:"Prazo de Entrega"}),s.jsx(Ee,{children:s.jsx(ve,{placeholder:"Ex: 15 dias úteis",...T})}),s.jsx(He,{})]})}),s.jsx(ke,{control:te.control,name:"validUntil",render:({field:T})=>s.jsxs(Te,{children:[s.jsx(Ae,{children:"Válido até"}),s.jsx(Ee,{children:s.jsx(ve,{type:"date",...T})}),s.jsx(He,{})]})}),s.jsx(ke,{control:te.control,name:"notes",render:({field:T})=>s.jsxs(Te,{children:[s.jsx(Ae,{children:"Observações"}),s.jsx(Ee,{children:s.jsx(Os,{placeholder:"Condições especiais, formas de pagamento, etc.",className:"h-24",...T})}),s.jsx(He,{})]})})]})})]}),s.jsxs(Pr,{children:[s.jsx(W,{variant:"outline",type:"button",onClick:()=>o(!1),children:"Cancelar"}),s.jsx(W,{type:"submit",children:t?"Atualizar Orçamento":"Criar Orçamento"})]})]})})]})}),s.jsx(Ct,{open:u,onOpenChange:d,children:s.jsxs(Bt,{className:"max-w-4xl max-h-[90vh] overflow-y-auto",children:[s.jsxs(Xt,{children:[s.jsxs(Yt,{className:"flex items-center",children:[s.jsx(Lt,{className:"h-5 w-5 mr-2"}),"Documentos Gerados"]}),s.jsx(Zt,{children:"Visualização do orçamento e contrato gerados com base nas informações fornecidas."})]}),s.jsxs(ql,{defaultValue:"quote",className:"w-full mt-4",children:[s.jsxs(Ao,{className:"grid grid-cols-2 w-full",children:[s.jsxs(vt,{value:"quote",className:"flex items-center gap-1",children:[s.jsx(Rm,{className:"h-4 w-4"}),s.jsx("span",{children:"Orçamento"})]}),s.jsxs(vt,{value:"contract",className:"flex items-center gap-1",children:[s.jsx(cG,{className:"h-4 w-4"}),s.jsx("span",{children:"Contrato"})]})]}),s.jsxs(xt,{value:"quote",className:"mt-4",children:[s.jsx("div",{className:"rounded-md border overflow-hidden",children:s.jsxs("div",{className:"bg-white p-6",children:[s.jsxs("div",{className:"flex justify-between items-start",children:[s.jsxs("div",{className:"flex flex-col items-center",children:[s.jsx("div",{className:"w-24 h-24 bg-blue-800 flex items-center justify-center rounded-full mb-2",children:s.jsx("span",{className:"text-white font-bold text-lg",children:"ConfecX"})}),s.jsx("h3",{className:"text-sm font-bold",children:"ConfecXpress"}),s.jsx("p",{className:"text-xs text-gray-500",children:"CNPJ: 52.640.697/0001-69"})]}),s.jsxs("div",{className:"text-right",children:[s.jsx("h1",{className:"text-2xl font-bold text-purple-700",children:"ORÃAMENTO"}),s.jsxs("p",{className:"text-sm font-medium",children:["#OR",new Date().getFullYear(),String(new Date().getMonth()+1).padStart(2,"0"),"-",Math.floor(Math.random()*1e4).toString().padStart(4,"0")]}),s.jsxs("p",{className:"text-sm text-gray-500",children:["Data: ",new Date().toLocaleDateString("pt-BR")]}),s.jsxs("p",{className:"text-sm text-gray-500",children:["Válido até: ",te.getValues().validUntil?new Date(te.getValues().validUntil).toLocaleDateString("pt-BR"):"N/A"]})]})]}),s.jsxs("div",{className:"mt-8 grid grid-cols-1 md:grid-cols-2 gap-6",children:[s.jsxs("div",{className:"border-l-4 border-purple-400 pl-3",children:[s.jsx("h3",{className:"font-bold uppercase text-xs text-gray-500 mb-2",children:"DADOS DO CLIENTE"}),s.jsx("p",{className:"font-medium",children:te.getValues().clientName||te.getValues().companyName}),s.jsx("p",{className:"text-sm",children:te.getValues().clientEmail||te.getValues().companyEmail}),s.jsx("p",{className:"text-sm",children:te.getValues().clientPhone||te.getValues().companyPhone}),s.jsx("p",{className:"text-sm",children:te.getValues().clientDocument||te.getValues().companyCNPJ}),s.jsx("p",{className:"text-sm",children:te.getValues().clientAddress})]}),s.jsxs("div",{className:"border-l-4 border-blue-400 pl-3",children:[s.jsx("h3",{className:"font-bold uppercase text-xs text-gray-500 mb-2",children:"INFORMAÃÃES DO PEDIDO"}),s.jsxs("p",{className:"font-medium",children:[te.getValues().productType," - ",te.getValues().quantity," unidades"]}),s.jsxs("p",{className:"text-sm",children:["Modelo: ",te.getValues().productModel||"Padrão"]}),s.jsxs("p",{className:"text-sm",children:["Tecido: ",te.getValues().fabricType||""," ",te.getValues().fabricWeight||""]}),s.jsxs("p",{className:"text-sm",children:["Tamanhos: ",te.getValues().sizes]}),s.jsxs("p",{className:"text-sm",children:["Cores: ",te.getValues().colors]})]})]}),s.jsxs("div",{className:"mt-8",children:[s.jsx("h3",{className:"font-bold uppercase text-xs text-gray-500 mb-2",children:"PERSONALIZAÃÃO"}),s.jsxs("p",{className:"text-sm",children:["Tipo: ",te.getValues().printType||"Não especificado"]}
771),s.jsxs("p",{className:"text-sm",children:["Local: ",te.getValues().printLocation||"Não especificado"]}),s.jsxs("p",{className:"text-sm",children:["Detalhes: ",te.getValues().printDetails||"Não especificado"]})]}),s.jsxs("div",{className:"mt-8",children:[s.jsx("h3",{className:"font-bold uppercase text-xs text-gray-500 mb-2",children:"ITENS DO ORÃAMENTO"}),s.jsx("div",{className:"overflow-x-auto",children:s.jsxs("table",{className:"min-w-full divide-y divide-gray-200",children:[s.jsx("thead",{children:s.jsxs("tr",{className:"bg-gray-50",children:[s.jsx("th",{className:"px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Item"}),s.jsx("th",{className:"px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Descrição"}),s.jsx("th",{className:"px-4 py-3 text-right text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Qtd"}),s.jsx("th",{className:"px-4 py-3 text-right text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Valor Unit."}),s.jsx("th",{className:"px-4 py-3 text-right text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Total"})]})}),s.jsxs("tbody",{className:"bg-white divide-y divide-gray-200",children:[s.jsxs("tr",{children:[s.jsx("td",{className:"px-4 py-3 text-sm text-gray-900",children:"1"}),s.jsxs("td",{className:"px-4 py-3 text-sm text-gray-900",children:[te.getValues().productType," - ",te.getValues().fabricType||"Padrão"]}),s.jsx("td",{className:"px-4 py-3 text-sm text-gray-900 text-right",children:te.getValues().quantity}),s.jsx("td",{className:"px-4 py-3 text-sm text-gray-900 text-right",children:"R$ 45,00"}),s.jsxs("td",{className:"px-4 py-3 text-sm font-medium text-gray-900 text-right",children:["R$ ",Number(te.getValues().quantity||0)*45,",00"]})]}),s.jsxs("tr",{children:[s.jsx("td",{className:"px-4 py-3 text-sm text-gray-900",children:"2"}),s.jsxs("td",{className:"px-4 py-3 text-sm text-gray-900",children:["Personalização - ",te.getValues().printType||"Padrão"]}),s.jsx("td",{className:"px-4 py-3 text-sm text-gray-900 text-right",children:te.getValues().quantity}),s.jsx("td",{className:"px-4 py-3 text-sm text-gray-900 text-right",children:"R$ 15,00"}),s.jsxs("td",{className:"px-4 py-3 text-sm font-medium text-gray-900 text-right",children:["R$ ",Number(te.getValues().quantity||0)*15,",00"]})]})]}),s.jsxs("tfoot",{children:[s.jsxs("tr",{className:"bg-gray-50",children:[s.jsx("td",{className:"px-4 py-3 text-sm font-medium text-gray-900",colSpan:4,children:"Subtotal"}),s.jsxs("td",{className:"px-4 py-3 text-sm font-medium text-gray-900 text-right",children:["R$ ",Number(te.getValues().quantity||0)*60,",00"]})]}),s.jsxs("tr",{children:[s.jsx("td",{className:"px-4 py-3 text-sm font-medium text-gray-900",colSpan:4,children:"Frete"}),s.jsx("td",{className:"px-4 py-3 text-sm font-medium text-gray-900 text-right",children:"R$ 0,00"})]}),s.jsxs("tr",{className:"bg-purple-50",children:[s.jsx("td",{className:"px-4 py-3 text-sm font-bold text-gray-900",colSpan:4,children:"TOTAL"}),s.jsxs("td",{className:"px-4 py-3 text-base font-bold text-purple-700 text-right",children:["R$ ",Number(te.getValues().quantity||0)*60,",00"]})]})]})]})})]}),s.jsxs("div",{className:"mt-8 grid grid-cols-1 md:grid-cols-2 gap-6",children:[s.jsxs("div",{className:"border-l-4 border-green-400 pl-3",children:[s.jsx("h3",{className:"font-bold uppercase text-xs text-gray-500 mb-2",children:"CONDIÃÃES DE PAGAMENTO"}),s.jsxs("p",{className:"text-sm",children:["Forma: ",te.getValues().paymentMethod||"PIX ou transferência bancária"]}),s.jsxs("p",{className:"text-sm",children:["Condições: ",te.getValues().paymentTerms||"50% de sinal e 50% na entrega"]}),s.jsxs("p",{className:"text-sm",children:["Parcelamento: ",te.getValues().installmentOptions||"Não disponÃvel"]})]}),s.jsxs("div",{className:"border-l-4 border-amber-400 pl-3",children:[s.jsx("h3",{className:"font-bold uppercase text-xs text-gray-500 mb-2",children:"PRAZO E ENTREGA"}),s.jsxs("p",{className:"text-sm",children:["Produção: ",te.getValues().productionTime||"7-15 dias úteis"]}),s.jsxs("p",{className:"text-sm",children:["Entrega: ",te.getValues().deliveryDate?new Date(te.getValues().deliveryDate).toLocaleDateString("pt-BR"):"A combinar"]}),s.jsxs("p",{className:"text-sm",children:["Método: ",te.getValues().deliveryMethod||"Entrega própria"]})]})]}),te.getValues().notes&&s.jsxs("div",{className:"mt-8 border p-4 rounded-md bg-gray-50",children:[s.jsx("h3",{className:"font-bold uppercase text-xs text-gray-500 mb-2",children:"OBSERVAÃÃES"}),s.jsx("p",{className:"text-sm whitespace-pre-line",children:te.getValues().notes})]}),s.jsxs("div",{className:"mt-10 text-center border-t pt-6",children:[s.jsx("p",{className:"font-medium",children:"ConfecXpress"}),s.jsx("p",{className:"text-sm",children:"Avenida Brig Faria Lima 1811 Conj 1119/1120, São Paulo SP, 01452-001"}),s.jsx("p",{className:"text-sm",children:"CNPJ: 52.640.697/0001-69 | WhatsApp: (11) 5197-6208"}),s.jsxs("p",{className:"text-sm mt-2 text-gray-500",children:["OrÃ
771§amento gerado em ",new Date().toLocaleDateString("pt-BR")," à s ",new Date().toLocaleTimeString("pt-BR")]})]})]})}),s.jsxs("div",{className:"mt-4 flex justify-end gap-2",children:[s.jsxs(W,{variant:"outline",children:[s.jsx(Lm,{className:"h-4 w-4 mr-2"}),"Imprimir"]}),s.jsxs(W,{children:[s.jsx(ca,{className:"h-4 w-4 mr-2"}),"Baixar PDF"]})]})]}),s.jsxs(xt,{value:"contract",className:"mt-4",children:[s.jsx("div",{className:"rounded-md border overflow-hidden",children:s.jsxs("div",{className:"bg-white p-6",children:[s.jsxs("div",{className:"text-center mb-6",children:[s.jsx("h1",{className:"text-xl font-bold",children:"CONTRATO DE PRESTAÃÃO DE SERVIÃOS"}),s.jsx("p",{className:"text-sm text-gray-500",children:"Confecção de uniformes corporativos"})]}),s.jsx("div",{className:"whitespace-pre-line text-sm",children:h||s.jsxs("div",{className:"flex flex-col items-center justify-center py-8",children:[s.jsx(Qr,{className:"h-8 w-8 animate-spin text-gray-400 mb-2"}),s.jsx("p",{className:"text-gray-500",children:"Gerando contrato personalizado..."})]})})]})}),s.jsxs("div",{className:"mt-4 flex justify-end gap-2",children:[s.jsxs(W,{variant:"outline",children:[s.jsx(Lm,{className:"h-4 w-4 mr-2"}),"Imprimir"]}),s.jsxs(W,{children:[s.jsx(ca,{className:"h-4 w-4 mr-2"}),"Baixar PDF"]})]})]})]}),s.jsxs(Pr,{className:"mt-6",children:[s.jsx(W,{variant:"outline",onClick:()=>d(!1),children:"Fechar"}),s.jsxs(W,{onClick:()=>{e({title:"Documentos salvos",description:"Orçamento e contrato foram anexados ao pedido"}),d(!1)},children:[s.jsx(Vl,{className:"h-4 w-4 mr-2"}),"Salvar Documentos"]})]})]})}),s.jsx(Ct,{open:l,onOpenChange:c,children:s.jsxs(Bt,{className:"max-w-4xl max-h-[90vh] overflow-y-auto",children:[s.jsxs(Xt,{children:[s.jsx(Yt,{children:"Pré-visualização do Orçamento"}),s.jsx(Zt,{children:"Confira como o orçamento será apresentado ao cliente"})]}),t&&s.jsxs("div",{className:"space-y-6 mt-4",children:[s.jsxs("div",{className:"bg-white p-8 rounded-lg border border-gray-200",children:[s.jsxs("div",{className:"flex justify-between items-start",children:[s.jsxs("div",{className:"flex items-center",children:[s.jsx("img",{src:"/logo.png",alt:"ConfecXpress",className:"h-14 w-auto mr-4",onError:T=>{const z=T.target;z.src="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAwIiBoZWlnaHQ9IjYwIiB2aWV3Qm94PSIwIDAgMjAwIDYwIiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxyZWN0IHdpZHRoPSIyMDAiIGhlaWdodD0iNjAiIGZpbGw9IiMwMDMzNjYiLz48cGF0aCBkPSJNMjggMjBIMzZDNDAgMjAgNDIgMjIgNDIgMjZWMzRDNDIgMzggNDAgNDAgMzYgNDBIMjhDMjQgNDAgMjIgMzggMjIgMzRWMjZDMjIgMjIgMjQgMjAgMjggMjBaIiBmaWxsPSIjZmZmZmZmIi8+PHBhdGggZD0iTTU2IDIwSDc4QzgyIDIwIDg0IDIyIDg0IDI2VjM0Qzg0IDM4IDgyIDQwIDc4IDQwSDU2QzUyIDQwIDUwIDM4IDUwIDM0VjI2QzUwIDIyIDUyIDIwIDU2IDIwWiIgZmlsbD0iI0U5NDk5OSIvPjxwYXRoIGQ9Ik05OCAyMEgxMjBDMTI0IDIwIDEyNiAyMiAxMjYgMjZWMzRDMTI2IDM4IDEyNCA0MCAxMjAgNDBIOThDOTQgNDAgOTIgMzggOTIgMzRWMjZDOTIgMjIgOTQgMjAgOTggMjBaIiBmaWxsPSIjZmZmZmZmIi8+PHBhdGggZD0iTTE0MCAyMEgxNzJDMTc2IDIwIDE3OCAyMiAxNzggMjZWMzRDMTc4IDM4IDE3NiA0MCAxNzIgNDBIMTQwQzEzNiA0MCAxMzQgMzggMTM0IDM0VjI2QzEzNCAyMiAxMzYgMjAgMTQwIDIwWiIgZmlsbD0iI0U5NDk5OSIvPjwvc3ZnPg=="}}),s.jsxs("div",{children:[s.jsx("h2",{className:"text-xl font-bold text-gray-900",children:"ConfecXpress"}),s.jsx("p",{className:"text-sm text-gray-500",children:"Confecções Personalizadas"})]})]}),s.jsxs("div",{className:"text-right",children:[s.jsx("p",{className:"text-xl font-bold",children:t.quoteNumber||"ORÃAMENTO"}),s.jsxs("p",{className:"text-sm text-gray-500",children:["Data: ",U(t.createdAt)]}),t.validUntil&&s.jsxs("p",{className:"text-sm text-gray-500",children:["Válido até: ",U(t.validUntil)]})]})]}),s.jsxs("div",{className:"mt-10 grid grid-cols-2 gap-6",children:[s.jsxs("div",{className:"border-l-4 border-primary pl-4",children:[s.jsx("h3",{className:"text-sm font-medium text-gray-500",children:"DE"}),s.jsx("p",{className:"font-bold",children:"CONFECXPRESS CONFECÃÃES LTDA"}),s.jsx("p",{children:"CNPJ: 52.640.697/0001-69"}),s.jsx("p",{children:"Avenida Brig Faria Lima 1811 Conj 1119/1120"}),s.jsx("p",{children:"Jardim Paulistano - São Paulo - SP"}),s.jsx("p",{children:"CEP: 01452-001"}),s.jsx("p",{children:"Telefone: (11) 5197-6208"})]}),s.jsxs("div",{className:"border-l-4 border-gray-200 pl-4",children:[s.jsx("h3",{className:"text-sm font-medium text-gray-500",children:"PARA"}),s.jsx("p",{className:"font-bold",children:t.clientName}),s.jsxs("p",{children:["E-mail: ",t.clientEmail]}),s.jsxs("p",{children:["Telefone: ",t.clientPhone]})]})]}),s.jsxs("div",{className:"mt-10",children:[s.jsx("h3",{className:"text-lg font-bold text-primary border-b pb-2",children:"Descrição do Pedido"}),s.jsxs("div",{className:"mt-4 grid grid-cols-1 md:grid-cols-2 gap-6",children:[s.jsxs("div",{className:"space-y-2",children:[s.jsxs("p",{children:[s.jsx("span",{className:"font-semibold",children:"Produto:"})," ",t.productType]}),s.jsxs("p",{children:[s.jsx("span",{className:"font-semibold",children:"Quantidade:"})," ",t.quantity," unidades"]}),s.jsxs("p",{children:[s.jsx("span",{className:"font-semibold",children:"Tamanhos:"})," ",t.sizes]}),s.jsxs("p",{children:[s.jsx("span",{className:"font-semibold",children:"Cores:"})," ",t.colors]})]}),s.jsxs("div",{className:"space-y-2",children:[s.jsxs("p",{children:[s.jsx("span",{className:"font-semibold",children:"Tipo de Impressão:"})," ",t.printType||"Não especificado"]}
771),s.jsxs("p",{children:[s.jsx("span",{className:"font-semibold",children:"Detalhes da Impressão:"})," ",t.printDetails||"Não especificado"]}),s.jsxs("p",{children:[s.jsx("span",{className:"font-semibold",children:"Prazo de Entrega:"})," ",t.deliveryDate]})]})]})]}),s.jsxs("div",{className:"mt-10",children:[s.jsx("h3",{className:"text-lg font-bold text-primary border-b pb-2",children:"Valores"}),s.jsx("div",{className:"mt-4 overflow-x-auto",children:s.jsxs("table",{className:"min-w-full divide-y divide-gray-200",children:[s.jsx("thead",{children:s.jsxs("tr",{children:[s.jsx("th",{className:"px-4 py-3 bg-gray-50 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Item"}),s.jsx("th",{className:"px-4 py-3 bg-gray-50 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Descrição"}),s.jsx("th",{className:"px-4 py-3 bg-gray-50 text-right text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Qtd"}),s.jsx("th",{className:"px-4 py-3 bg-gray-50 text-right text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Valor Unit."}),s.jsx("th",{className:"px-4 py-3 bg-gray-50 text-right text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Total"})]})}),s.jsx("tbody",{className:"bg-white divide-y divide-gray-200",children:t.items.map((T,z)=>s.jsxs("tr",{children:[s.jsx("td",{className:"px-4 py-3 whitespace-nowrap text-sm text-gray-900",children:z+1}),s.jsx("td",{className:"px-4 py-3 whitespace-nowrap text-sm text-gray-900",children:T.description}),s.jsx("td",{className:"px-4 py-3 whitespace-nowrap text-sm text-gray-900 text-right",children:T.quantity}),s.jsx("td",{className:"px-4 py-3 whitespace-nowrap text-sm text-gray-900 text-right",children:K(T.unitPrice)}),s.jsx("td",{className:"px-4 py-3 whitespace-nowrap text-sm text-gray-900 text-right",children:K(T.total)})]},z))}),s.jsx("tfoot",{children:s.jsxs("tr",{children:[s.jsx("td",{colSpan:4,className:"px-4 py-3 text-right font-medium",children:"Valor Total:"}),s.jsx("td",{className:"px-4 py-3 text-right font-bold",children:K(t.amount)})]})})]})})]}),t.notes&&s.jsxs("div",{className:"mt-10",children:[s.jsx("h3",{className:"text-lg font-bold text-primary border-b pb-2",children:"Observações"}),s.jsx("p",{className:"mt-4 text-gray-800",children:t.notes})]}),s.jsxs("div",{className:"mt-10",children:[s.jsx("h3",{className:"text-lg font-bold text-primary border-b pb-2",children:"Condições Gerais"}),s.jsxs("div",{className:"mt-4 space-y-2 text-sm text-gray-700",children:[s.jsx("p",{children:"1. Este orçamento é válido pelo perÃodo especificado acima."}),s.jsx("p",{children:"2. O prazo de entrega começa a contar após a aprovação do orçamento e da arte final."}),s.jsx("p",{children:"3. Formas de pagamento: 50% de entrada e 50% na entrega para novos clientes."}),s.jsx("p",{children:"4. Amostras fÃsicas podem ser solicitadas com custo adicional."}),s.jsx("p",{children:"5. Entregas para todo o Brasil via transportadora ou Correios, com frete por conta do cliente."})]})]}),s.jsxs("div",{className:"mt-10 border-t pt-6 text-center",children:[s.jsx("p",{className:"font-medium",children:"Para aprovar este orçamento, entre em contato conosco:"}),s.jsx("p",{className:"text-primary",children:"(11) 5197-6208 | [email protected]"})]})]}),s.jsxs("div",{className:"flex justify-end space-x-4",children:[s.jsx(W,{variant:"outline",onClick:()=>c(!1),children:"Fechar"}),s.jsxs(W,{onClick:()=>{c(!1),ur(t)},children:[s.jsx(ca,{className:"h-4 w-4 mr-2"}),"Gerar PDF"]})]})]})]})}),f&&s.jsx("div",{className:"fixed inset-0 bg-black/50 flex items-center justify-center z-50",children:s.jsxs("div",{className:"bg-white p-6 rounded-lg shadow-lg max-w-md w-full flex flex-col items-center",children:[s.jsx("div",{className:"animate-spin rounded-full h-16 w-16 border-b-2 border-primary mb-4"}),s.jsx("h3",{className:"text-xl font-bold",children:"Gerando PDF..."}),s.jsx("p",{className:"text-gray-500 mt-2 text-center",children:"Estamos preparando seu orçamento em formato PDF."})]})}),p&&s.jsx("div",{className:"fixed inset-0 bg-black/50 flex items-center justify-center z-50",children:s.jsxs("div",{className:"bg-white p-6 rounded-lg shadow-lg max-w-md w-full flex flex-col items-center",children:[s.jsx("div",{className:"animate-spin rounded-full h-16 w-16 border-b-2 border-primary mb-4"}),s.jsx("h3",{className:"text-xl font-bold",children:"Criando Pedido..."}),s.jsx("p",{className:"text-gray-500 mt-2 text-center",children:"Convertendo orçamento em pedido."})]})}),s.jsx(Ct,{open:w,onOpenChange:N,children:s.jsxs(Bt,{className:"max-w-4xl max-h-[95vh] overflow-y-auto",children:[s.jsxs(Xt,{children:[s.jsxs(Yt,{className:"flex items-center",children:[s.jsx(hn,{className:"mr-2 h-5 w-5 text-indigo-500"}),"Geração de Pedido com IA"]}),s.jsx(Zt,{children:"Descreva em texto livre o pedido do cliente e nossa IA irá estruturar as informações"})]}),s.jsxs("div",{className:"space-y-6 my-2",children:[s.jsx("div",{className:"bg-blue-50 p-4 mb-4 rounded-md flex flex-col md:flex-row gap-2 items-start md:items-center justify-between",children:s.jsxs("div",{className:"flex items-start gap-3",children:[s.jsx("div",{className:"flex-shrink-0 text-blue-700",children:s.jsx(F5,{className:"h-5 w-5"})}),s.jsxs("div",{children:[s.jsx("h3",{className:"font-bold text-sm text-blue-800",children:"ConfecXpress"}),s.jsx("p",{className:"text-xs text-blue-600",children:"Confecção e Intermediação de Serviços Personalizados LTDA"}),s.jsx("p",{className:"text-xs text-blue-600",children:"CNPJ: 52.640.697/0001-69"}),s.jsx("p",{className:"text-xs text-blue-600",children:"Av. Brig. Faria Lima, 1811 Conj. 1119/1120, Jd. Paulistano, São Paulo - SP, 01452-001"})]})]})}),s.jsxs("div",{className:"border rounded-md p-4 mb-4",children:[s.jsx("h3",{className:"font-semibold text-base mb-3",children:"Informações do Cliente"}),s.jsxs("div",{className:"flex flex-col gap-4",children:[s.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4 mb-4",children:[s.jsxs("div",{className:"space-y-2",children:[s.jsx(Be,{htmlFor:"client-name",children:"Razão Social / Nome"}),s.jsx(ve,{id:"client-name",placeholder:"Nome da empresa",value:M.name||"",onChange:T=>D({...M,name:T.target.value})})]}),s.jsxs("div",{className:"space-y-2",children:[s.jsx(Be,{htmlFor:"client-document",children:"CNPJ / CPF"}),s.jsx(ve,{id:"client-document",placeholder:"00.000.000/0000-00",value:M.document||"",onChange:T=>D({...M,document:T.target.value})})]}),s.jsxs("div",{className:"space-y-2",children:[s.jsx(Be,{htmlFor:"client-email",children:"E-mail"}),s.jsx(ve,{id:"client-email",placeholder:"[email protected]",value:M.email||"",onChange:T=>D({...M,email:T.target.value})})]}),s.jsxs("div",{className:"space-y-2",children:[s.jsx(Be,{htmlFor:"client-phone",children:"Telefone"}),s.jsx(ve,{id:"client-phone",placeholder:"(00) 0000-0000",value:M.phone||"",onChange:T=>D({...M,phone:T.target.value})})]}),s.jsxs("div",{className:"space-y-2 md:col-span-2",children:[s.jsx(Be,{htmlFor:"client-address",children:"Endereço"}),s.jsx(ve,{id:"client-address",placeholder:"Endereço completo",value:M.address||"",onChange:T=>D({...M,address:T.target.value})})]})]}),s.jsxs("div",{className:"flex flex-col gap-2 border-t pt-4",children:[s.jsx(Be,{className:"mb-2",children:"Extrair dados automaticamente:"}),s.jsxs("div",{className:"flex items-center",children:[s.jsx("input",{type:"file",id:"cnpj-file",ref:I,className:"hidden",accept:".png,.jpg,.jpeg,.gif,.webp",onChange:ce}),s.jsx(W,{type:"button",variant:"outline",className:"w-full",onClick:()=>{var T;return(T=I.current)==null?void 0:T.click()},disabled:B,children:B?s.jsxs(s.Fragment,{children:[s.jsx(Qr,{className:"h-4 w-4 mr-2 animate-spin"}),"Processando cartão CNPJ..."]}):s.jsxs(s.Fragment,{children:[s.jsx(uG,{className:"h-4 w-4 mr-2"}),"Carregar Cartão CNPJ"]})})]}),F&&s.jsxs("p",{className:"text-xs text-gray-500 mt-1 flex items-center",children:[s.jsx(WT,{className:"h-3 w-3 mr-1 text-green-500"}),"Arquivo carregado: ",F.name]})]}),s.jsxs("div",{className:"grid gap-6 sm:grid-cols-2",children:[s.jsxs("div",{children:[s.jsx(Be,{htmlFor:"clientName",children:"Nome do Cliente"}),s.jsx(ve,{id:"clientName",placeholder:"Ex: Empresa ABC Ltda",value:M.name,onChange:T=>D({...M,name:T.target.value})})]}),s.jsxs("div",{children:[s.jsx(Be,{htmlFor:"clientDocument",children:"CNPJ/CPF"}),s.jsx(ve,{id:"clientDocument",placeholder:"Ex: 12.345.678/0001-90",value:M.document,onChange:T=>D({...M,document:T.target.value})})]})]}),(M.contact||M.email||M.phone||M.address)&&s.jsxs("div",{className:"grid gap-6 sm:grid-cols-2",children:[M.contact&&s.jsxs("div",{children:[s.jsx(Be,{htmlFor:"clientContact",children:"Contato"}),s.jsx(ve,{id:"clientContact",value:M.contact||"",onChange:T=>D({...M,contact:T.target.value})})]}),M.email&&s.jsxs("div",{children:[s.jsx(Be,{htmlFor:"clientEmail",children:"E-mail"}),s.jsx(ve,{id:"clientEmail",value:M.email||"",onChange:T=>D({...M,email:T.target.value})})]}),M.phone&&s.jsxs("div",{children:[s.jsx(Be,{htmlFor:"clientPhone",children:"Telefone"}),s.jsx(ve,{id:"clientPhone",value:M.phone||"",onChange:T=>D({...M,phone:T.target.value})})]}),M.address&&s.jsxs("div",{children:[s.jsx(Be,{htmlFor:"clientAddress",children:"Endereço"}),s.jsx(ve,{id:"clientAddress",value:M.address||"",onChange:T=>D({...M,address:T.target.value})})]})]})]})]}),s.jsxs("div",{children:[s.jsxs(Be,{htmlFor:"orderDescription",children:["Descrição do Pedido",s.jsx("span",{className:"ml-1 text-sm text-muted-foreground",children:"(descreva em texto livre todos os detalhes do pedido)"})]}),s.jsx(Os,{id:"orderDescription",placeholder:"Ex: Cliente precisa de 50 camisetas polo na cor azul marinho, com bordado do logo no peito esquerdo. Taman
771hos P, M, G e GG. Prazo de 15 dias úteis, entrega via motoboy, pagamento via PIX.",className:"h-32 resize-none",value:P,onChange:T=>C(T.target.value)})]}),A?s.jsxs("div",{className:"flex flex-col items-center justify-center py-10",children:[s.jsx(Qr,{className:"h-8 w-8 animate-spin text-gray-400 mb-2"}),s.jsx("p",{className:"text-sm text-muted-foreground",children:"Processando informações com IA..."})]}):E?s.jsxs("div",{className:"border rounded-md p-4 space-y-4",children:[s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsxs("h3",{className:"font-semibold text-lg flex items-center",children:[s.jsx(Vl,{className:"h-5 w-5 text-green-500 mr-2"}),"Pedido Gerado"]}),s.jsxs(W,{variant:"ghost",size:"sm",onClick:()=>k(null),children:[s.jsx(qu,{className:"h-4 w-4 mr-2"}),"Limpar"]})]}),s.jsxs("div",{className:"space-y-3",children:[s.jsxs("div",{children:[s.jsx("h4",{className:"font-medium text-sm text-muted-foreground",children:"ITENS DO PEDIDO"}),s.jsxs("table",{className:"w-full mt-1",children:[s.jsx("thead",{className:"text-xs border-b",children:s.jsxs("tr",{children:[s.jsx("th",{className:"text-left py-2",children:"Descrição"}),s.jsx("th",{className:"text-center py-2",children:"Qtd"}),s.jsx("th",{className:"text-right py-2",children:"Valor Unit."}),s.jsx("th",{className:"text-right py-2",children:"Total"})]})}),s.jsxs("tbody",{children:[(Wr=E.items)==null?void 0:Wr.map((T,z)=>s.jsxs("tr",{className:"border-b",children:[s.jsx("td",{className:"py-2",children:T.description}),s.jsx("td",{className:"py-2 text-center",children:T.quantity}),s.jsx("td",{className:"py-2 text-right",children:K(T.unitPrice)}),s.jsx("td",{className:"py-2 text-right",children:K(T.total)})]},z)),s.jsxs("tr",{className:"font-medium",children:[s.jsx("td",{colSpan:3,className:"py-2 text-right",children:"Total Geral:"}),s.jsx("td",{className:"py-2 text-right",children:K(E.totalValue)})]})]})]})]}),s.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[s.jsxs("div",{children:[s.jsx("h4",{className:"font-medium text-sm text-muted-foreground",children:"PRODUÃÃO E ENTREGA"}),s.jsxs("p",{className:"text-sm mt-1",children:[s.jsx("span",{className:"font-semibold",children:"Prazo de produção:"})," ",E.productionTime||"5 dias úteis"]}),s.jsxs("p",{className:"text-sm",children:[s.jsx("span",{className:"font-semibold",children:"Método de entrega:"})," ",E.deliveryMethod||"A combinar"]})]}),s.jsxs("div",{children:[s.jsx("h4",{className:"font-medium text-sm text-muted-foreground",children:"PAGAMENTO"}),E.paymentOptions&&E.paymentOptions.length>0?s.jsx("ul",{className:"text-sm list-disc list-inside mt-1",children:E.paymentOptions.map((T,z)=>s.jsx("li",{children:T},z))}):s.jsx("p",{className:"text-sm mt-1",children:"Pagamento a combinar"})]})]}),E.observations&&s.jsxs("div",{children:[s.jsx("h4",{className:"font-medium text-sm text-muted-foreground",children:"OBSERVAÃÃES"}),s.jsx("p",{className:"text-sm mt-1",children:E.observations})]})]})]}):s.jsx("div",{className:"border border-dashed rounded-md p-6 text-center",children:s.jsxs("div",{className:"flex flex-col items-center justify-center",children:[s.jsx(kG,{className:"h-10 w-10 text-gray-400 mb-2"}),s.jsx("p",{className:"text-sm text-muted-foreground max-w-sm mx-auto",children:"Descreva o pedido do cliente e nossa IA irá estruturar as informações automaticamente, incluindo itens, valores, prazos e condições de pagamento."})]})})]}),s.jsxs(Pr,{className:"gap-2 flex-wrap",children:[E?s.jsxs(W,{onClick:Pe,className:"bg-gradient-to-r from-indigo-500 to-purple-500 hover:from-indigo-600 hover:to-purple-600",children:[s.jsx(WT,{className:"h-4 w-4 mr-2"}),"Criar Orçamento"]}):s.jsx(W,{onClick:Re,disabled:A||P.trim()==="",className:A?"":"bg-gradient-to-r from-indigo-500 to-purple-500 hover:from-indigo-600 hover:to-purple-600",children:A?s.jsxs(s.Fragment,{children:[s.jsx(Qr,{className:"h-4 w-4 mr-2 animate-spin"}),"Processando..."]}):s.jsxs(s.Fragment,{children:[s.jsx(IG,{className:"h-4 w-4 mr-2"}),"Gerar com IA"]})}),s.jsx(W,{variant:"outline",onClick:()=>{N(!1),k(null),C("")},children:"Cancelar"})]})]})}),s.jsx(iEe,{isOpen:Ke,onClose:()=>q(!1),extractedInfo:Q,processor:Z,onConfirm:ee})]})}var CC="Radio",[uEe,oB]=kr(CC),[dEe,fEe]=uEe(CC),lB=b.forwardRef((e,t)=>
vendor: 2,665 bytes, line 771
771{const{__scopeRadio:r,name:n,checked:a=!1,required:i,disabled:o,value:l="on",onCheck:c,form:u,...d}=e,[f,m]=b.useState(null),p=it(t,x=>m(x)),v=b.useRef(!1),h=f?u||!!f.closest("form"):!0;return s.jsxs(dEe,{scope:r,checked:a,disabled:o,children:[s.jsx(Oe.button,{type:"button",role:"radio","aria-checked":a,"data-state":dB(a),"data-disabled":o?"":void 0,disabled:o,value:l,...d,ref:p,onClick:ue(e.onClick,x=>{a||c==null||c(),h&&(v.current=x.isPropagationStopped(),v.current||x.stopPropagation())})}),h&&s.jsx(mEe,{control:f,bubbles:!v.current,name:n,value:l,checked:a,required:i,disabled:o,form:u,style:{transform:"translateX(-100%)"}})]})});lB.displayName=CC;var cB="RadioIndicator",uB=b.forwardRef((e,t)=>{const{__scopeRadio:r,forceMount:n,...a}=e,i=fEe(cB,r);return s.jsx(Qn,{present:n||i.checked,children:s.jsx(Oe.span,{"data-state":dB(i.checked),"data-disabled":i.disabled?"":void 0,...a,ref:t})})});uB.displayName=cB;var mEe=e=>{const{control:t,checked:r,bubbles:n=!0,...a}=e,i=b.useRef(null),o=vC(r),l=TS(t);return b.useEffect(()=>{const c=i.current,u=window.HTMLInputElement.prototype,f=Object.getOwnPropertyDescriptor(u,"checked").set;if(o!==r&&f){const m=new Event("click",{bubbles:n});f.call(c,r),c.dispatchEvent(m)}},[o,r,n]),s.jsx("input",{type:"radio","aria-hidden":!0,defaultChecked:r,...a,tabIndex:-1,ref:i,style:{...e.style,...l,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function dB(e){return e?"checked":"unchecked"}var hEe=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],AC="RadioGroup",[pEe,bRe]=kr(AC,[Vd,oB]),fB=Vd(),mB=oB(),[gEe,vEe]=pEe(AC),hB=b.forwardRef((e,t)=>{const{__scopeRadioGroup:r,name:n,defaultValue:a,value:i,required:o=!1,disabled:l=!1,orientation:c,dir:u,loop:d=!0,onValueChange:f,...m}=e,p=fB(r),v=Fd(u),[h,x]=ya({prop:i,defaultProp:a,onChange:f});return s.jsx(gEe,{scope:r,name:n,required:o,disabled:l,value:h,onValueChange:x,children:s.jsx(VS,{asChild:!0,...p,orientation:c,dir:v,loop:d,children:s.jsx(Oe.div,{role:"radiogroup","aria-required":o,"aria-orientation":c,"data-disabled":l?"":void 0,dir:v,...m,ref:t})})})});hB.displayName=AC;var pB="RadioGroupItem",gB=b.forwardRef((e,t)=>{const{__scopeRadioGroup:r,disabled:n,...a}=e,i=vEe(pB,r),o=i.disabled||n,l=fB(r),c=mB(r),u=b.useRef(null),d=it(t,u),f=i.value===a.value,m=b.useRef(!1);return b.useEffect(()=>{const p=h=>{hEe.includes(h.key)&&(m.current=!0)},v=()=>m.current=!1;return document.addEventListener("keydown",p),document.addEventListener("keyup",v),()=>{document.removeEventListener("keydown",p),document.removeEventListener("keyup",v)}},[]),s.jsx(zS,{asChild:!0,...l,focusable:!o,active:f,children:s.jsx(lB,{disabled:o,required:i.required,
771checked:f,...c,...a,name:i.name,ref:d,onCheck:()=>i.onValueChange(a.value),onKeyDown:ue(p=>{p.key==="Enter"&&p.preventDefault()}),onFocus:ue(a.onFocus,()=>{var p;m.current&&((p=u.current)==null||p.click())})})})});gB.displayName=pB;var xEe="RadioGroupIndicator",vB=b.forwardRef((e,t)=>{const{__scopeRadioGroup:r,...n}=e,a=mB(r);return s.jsx(uB,{...a,...n,ref:t})});vB.displayName=xEe;var xB=hB,yB=gB,yEe=vB;const bB=b.forwardRef(({className:e,...t},r)=>s.jsx(xB,{className:ie("grid gap-2",e),...t,ref:r}));bB.displayName=xB.displayName;const zN=b.forwardRef(({className:e,...t},r)=>s.jsx(yB,{ref:r,className:ie("aspect-square h-4 w-4 rounded-full border border-primary text-primary ring-offset-background focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),...t,children:s.jsx(yEe,{className:"flex items-center justify-center",children:s.jsx(z5,{className:"h-2.5 w-2.5 fill-current text-current"})})}));zN.displayName=yB.displayName;function bEe({open:e,onOpenChange:t,certificateInfo:r,setCertificateInfo:n,onSubmit:a}){var v;wn();const[i,o]=b.useState("file"),[l,c]=b.useState(""),{data:u,isLoading:d}=Gt({queryKey:["/api/admin/certificate/installed"],queryFn:Er({on401:"returnNull"}),enabled:e&&i==="installed"}),f=h=>{n({...r,path:h})},m=h=>{n({...r,password:h})},p=h=>{c(h),f(h)};return s.jsx(Ct,{open:e,onOpenChange:t,children:s.jsxs(Bt,{className:"sm:max-w-[500px]",children:[s.jsxs(Xt,{children:[s.jsxs(Yt,{className:"flex items-center",children:[s.jsx(xS,{className:"h-5 w-5 mr-2"}),"Configuração do Certificado Digital A1"]}),s.jsx(Zt,{children:"Configure seu certificado digital A1 para emissão de notas fiscais eletrônicas"})]}),s.jsxs("div",{className:"space-y-6 py-4",children:[s.jsxs(bB,{value:i,onValueChange:h=>o(h),className:"grid grid-cols-2 gap-4",children:[s.jsxs("div",{className:"flex items-center space-x-2",children:[s.jsx(zN,{value:"file",id:"certificate-file"}),s.jsx(Be,{htmlFor:"certificate-file",className:"cursor-pointer",children:"Arquivo .pfx"})]}),s.jsxs("div",{className:"flex items-center space-x-2",children:[s.jsx(zN,{value:"installed",i
771d:"certificate-installed"}),s.jsx(Be,{htmlFor:"certificate-installed",className:"cursor-pointer",children:"Certificado instalado"})]})]}),i==="file"?s.jsxs("div",{className:"space-y-4",children:[s.jsxs("div",{className:"space-y-2",children:[s.jsx(Be,{htmlFor:"certificate-path",children:"Caminho do Certificado .pfx"}),s.jsx(ve,{id:"certificate-path",placeholder:"C:\\Certificados\\certificado-a1.pfx",value:r.path,onChange:h=>f(h.target.value)}),s.jsx("p",{className:"text-[0.8rem] text-muted-foreground",children:"Informe o caminho completo para o arquivo do certificado digital A1"})]}),s.jsxs("div",{className:"space-y-2",children:[s.jsx(Be,{htmlFor:"certificate-password",children:"Senha do Certificado"}),s.jsx(ve,{id:"certificate-password",type:"password",placeholder:"********",value:r.password,onChange:h=>m(h.target.value)})]})]}):s.jsxs("div",{className:"space-y-4",children:[s.jsxs("div",{className:"space-y-2",children:[s.jsx(Be,{htmlFor:"installed-certificate",children:"Certificado Instalado"}),d?s.jsx("div",{className:"flex justify-center py-4",children:s.jsx(Qr,{className:"h-6 w-6 animate-spin text-primary"})}):(v=u==null?void 0:u.data)!=null&&v.length?s.jsxs(Jr,{value:l,onValueChange:p,children:[s.jsx(Fr,{children:s.jsx(en,{placeholder:"Selecione um certificado"})}),s.jsx(Vr,{children:u.data.map((h,x)=>s.jsx(xe,{value:h.path,children:h.info},x))})]}):s.jsxs("div",{className:"bg-gray-50 p-4 rounded-md text-center",children:[s.jsx(gG,{className:"h-8 w-8 mx-auto text-gray-400 mb-2"}),s.jsx("p",{className:"text-sm text-gray-600",children:"Nenhum certificado digital A1 encontrado no sistema"})]})]}),s.jsxs("div",{className:"space-y-2",children:[s.jsx(Be,{htmlFor:"installed-password",children:"Senha do Certificado"}),s.jsx(ve,{id:"installed-password",type:"password",placeholder:"********",value:r.password,onChange:h=>m(h.target.value)})]})]})]}),s.jsxs(Pr,{children:[s.jsx(W,{variant:"outline",onClick:()=>t(!1),children:"Cancelar"}),s.jsx(W,{onClick:a,children:"Configurar e Emitir Nota Fiscal"})]})]})})}const jEe=bu({clientName:It().min(1,"Nome do cliente é obrigatório"),clientEmail:It().email("Email inválido").optional().or(iB("")),clientPhone:It().min(1,"Telefone é obrigatório"),clientAddress:It().min(1,"Endereço é obrigatório"),clientDocument:It().optional(),products:sB(bu({name:It().min(1,"Nome do produto é obrigatório"),type:It().min(1,"Tipo é obrigatório"),quantity:dr().min(1,"Quantidade deve ser pelo menos 1"),sizes:bu({PP:dr().min(0).default(0),P:dr().min(0).default(0),M:dr().min(0).default(0),G:dr().min(0).default(0),GG:dr().min(0).default(0),XG:dr().min(0).default(0),XXG:dr().min(0).default(0),XXXG:dr().min(0).default(0),BABY_P:dr().min(0).default(0),BABY_M:dr().min(0).default(0),BABY_G:dr().min(0).default(0),BABY_GG:dr().min(0).default(0)}),colors:It().min(1,"Cores são obrigatórias"),unitPrice:dr().min(0,"Preço deve ser positivo"),totalPrice:dr().min(0,"Total deve ser positivo"),observations:It().optional()})).min(1,"Pelo menos um produto é obrigatório"),status:Yx(["novo","em_producao","concluido","entregue"]),paymentStatus:Yx(["pendente","parcial","pago"]),deliveryDate:It().min(1,"Data de entrega é obrigatória"),orderDate:It().min(1,"Data do pedido é obrigatória"),deliveryValue:dr().min(0,"Valor da entrega deve ser positivo"),shippingMethod:It().min(1,"Forma de envio é obrigatória"),observations:It().optional(),totalAmount:dr().min(0,"Valor total deve ser positivo"),paidAmount:dr().min(0,"Valor pago deve ser positivo"),logoImage:It().optional(),layoutImage:It().optional()});function wEe({open:e,onOpenChange:t}){const[r,n]=b.useState(null),[a,i]=b.useState(!1),[o,l]=b.useState(null),[c,u]=b.useState(null),{toast:d}=wn(),f=dp(),m=P=>{P||(n(null),i(!1),l(null),u(null),h.reset()),t(P)},p=P=>{var O;const C=(O=P.target.files)==null?void 0:O[0];if(!C)return;const A=new FileReader;A.onload=E=>{var M;const k=(M=E.target)==null?void 0:M.result;l(k),h.setValue("logoImage",k)},A.readAsDataURL(C)},v=P=>{var O;const C=(O=P.target.files)==null?void 0:O[0];if(!C)return;const A=new FileReader;A.onload=E=>{var M;const k=(M=E.target)==null?void 0:M.result;u(k),h.setValue("layoutImage",k)}
771,A.readAsDataURL(C)},h=ko({resolver:Jl(jEe),defaultValues:{clientName:"",clientEmail:"",clientPhone:"",clientAddress:"",clientDocument:"",products:[{name:"",type:"camiseta",quantity:10,sizes:{PP:0,P:0,M:0,G:0,GG:0,XG:0,XXG:0,XXXG:0,BABY_P:0,BABY_M:0,BABY_G:0,BABY_GG:0},colors:"",unitPrice:0,totalPrice:0,observations:""}],status:"novo",paymentStatus:"pendente",deliveryDate:"",orderDate:"",deliveryValue:0,shippingMethod:"",observations:"",totalAmount:0,paidAmount:0}}),x=h.watch("products"),y=Kt({mutationFn:async P=>{const C=await ft("POST","/api/admin/orders",P);if(!C.ok)throw new Error("Erro ao criar pedido");return await C.json()},onSuccess:()=>{d({title:"Pedido criado",description:"O pedido foi criado com sucesso!"}),f.invalidateQueries({queryKey:["/api/admin/orders"]}),h.reset(),n(null),l(null),u(null),t(!1)},onError:()=>{d({title:"Erro",description:"Erro ao criar pedido. Tente novamente.",variant:"destructive"})}}),g=async P=>{var A;const C=(A=P.target.files)==null?void 0:A[0];if(C){if(!C.type.startsWith("image/")){d({title:"Arquivo inválido",description:"Por favor, selecione apenas arquivos de imagem.",variant:"destructive"});return}i(!0);try{const O=new FileReader;O.onload=async E=>{var D;const k=(D=E.target)==null?void 0:D.result,M=k.split(",")[1];n(k);try{const F=new FormData;F.append("image",C);const L=await fetch("/api/orders/analyze-image",{method:"POST",body:F});if(L.ok){const B=await L.json();if(B.success&&B.order){d({title:"ð Pedido criado automaticamente!",description:`Pedido ${B.order.orderNumber} foi criado com sucesso a partir da imagem!`}),f.invalidateQueries({queryKey:["/api/admin/orders"]}),t(!1),n(null),h.reset();return}}d({title:"Erro no processamento",description:"Não foi possÃvel processar a imagem automaticamente. Use o formulário manual abaixo.",variant:"destructive"})}catch(F){console.error("Erro ao processar imagem:",F),d({title:"Erro no upload",description:"Erro ao fazer upload da imagem. Use o formulário manual abaixo.",variant:"destructive"})}},O.readAsDataURL(C)}catch{d({title:"Erro",description:"Erro ao fazer upload da imagem.",variant:"destructive"})}finally{i(!1)}}},j=()=>{const P=h.getValues("products");h.setValue("products",[...P,{name:"",type:"camiseta",quantity:10,sizes:{PP:0,P:0,M:0,G:0,GG:0,XG:0,XXG:0,XXXG:0,BABY_P:0,BABY_M:0,BABY_G:0,BABY_GG:0},colors:"",unitPrice:0,totalPrice:0,observations:""}])},S=P=>{const C=h.getValues("products");C.length>1&&h.setValue("products",C.filter((A,O)=>O!==P))},w=P=>{const C=h.getValues(`products.${P}`),A=Object.values(C.sizes).reduce((M,D)=>M+D,0);h.setValue(`products.${P}.quantity`,A);const O=A*C.unitPrice;h.setValue(`products.${P}.totalPrice`,O);const k=h.getValues("products").reduce((M,D)=>M+D.totalPrice,0);h.setValue("totalAmount",k)},N=P=>{console.log("ð Enviando pedido:",P);const C={...P,logoImage:o||null,layoutImage:c||null,products:P.products.map(A=>({...A,sizes:JSON.stringify(A.sizes),quantity:Object.values(A.sizes).reduce((O,E)=>O+E,0)}))};console.log("ð Dados processados:",C),console.log("ð¸ Logo anexado:",o?"Sim":"Não"),console.log("ð¨ Layout anexado:",c?"Sim":"Não"),y.mutate(C)};return s.jsx(Ct,{open:e,onOpenChange:m,children:s.jsxs(Bt,{className:"max-w-4xl max-h-[90vh] overflow-y-auto",children:[s.jsxs(Xt,{children:[s.jsx(Yt,{children:"Adicionar Novo Pedido"}),s.jsx(Zt,{children:"Preencha as informações do pedido ou faça upload de uma imagem para extração automática dos dados."})]}),s.jsx(oi,{...h,children:s.jsxs("form",{onSubmit:h.handleSubmit(N),className:"space-y-6",children:[s.jsxs(fe,{children:[s.jsxs(Me,{children:[s.jsxs(De,{className:"flex items-center gap-2",children:[s.jsx(qT,{className:"h-5 w-5"}),"Upload de Pedido (Opcional)"]}),s.jsx(Ye,{children:"Faça upload de uma imagem do pedido para extração automática dos dados"})]}),s.jsx(me,{children:s.jsxs("div",{className:"space-y-4",children:[s.jsxs("div",{className:"flex items-center gap-4",children:[s.jsx(ve,{type:"file",accept:"image/*",onChange:g,disabled:a,className:"hidden",id:"order-image-upload"}),s.jsxs("label",{htmlFor:"order-image-upload",className:"flex items-center gap-2 px-4 py-2 bg-blue-500 text-white rounded-lg cursor-pointer hover:bg-blue-600 transition-colors",children:[a?s.jsx(Im,{className:"h-4 w-4 animate-spin"}):s.jsx(rm,{className:"h-4 w-4"}),a?"Processando...":"Fazer Upload"]})]}),r&&s.jsxs("div",{className:"border rounded-lg p-4",children:[s.jsxs("div",{className:"flex justify-between items-center mb-2",children:[s.jsx("span",{className:"text-sm text-gray-600",children:"Imagem carregada"}),s.jsx(W,{type:"button",variant:"outline",size:"sm",onClick:()=>n(null),children:"â Remover"})]}),s.jsx("img",{src:r,alt:"Pedido carregado",className:"max-w-full h-auto max-h-64 roun
771ded-lg"})]})]})})]}),s.jsxs(fe,{children:[s.jsxs(Me,{children:[s.jsxs(De,{className:"flex items-center gap-2",children:[s.jsx(qT,{className:"h-5 w-5"}),"Imagens do Produto"]}),s.jsx(Ye,{children:"Faça upload do logo e layout que serão estampados no produto"})]}),s.jsx(me,{className:"space-y-4",children:s.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[s.jsxs("div",{className:"space-y-2",children:[s.jsx(Be,{htmlFor:"logo-upload",children:"Logo da Empresa"}),s.jsx("div",{className:"flex flex-col items-center justify-center w-full",children:s.jsxs("label",{htmlFor:"logo-upload",className:"flex flex-col items-center justify-center w-full h-32 border-2 border-dashed border-gray-300 rounded-lg cursor-pointer bg-gray-50 hover:bg-gray-100",children:[o?s.jsxs("div",{className:"flex flex-col items-center justify-center pt-5 pb-6",children:[s.jsx(Sv,{className:"w-8 h-8 mb-2 text-green-500"}),s.jsx("p",{className:"text-sm text-green-600 font-medium",children:"Logo carregado!"}),s.jsx("p",{className:"text-xs text-gray-500",children:"Clique para alterar"})]}):s.jsxs("div",{className:"flex flex-col items-center justify-center pt-5 pb-6",children:[s.jsx(rm,{className:"w-8 h-8 mb-2 text-gray-500"}),s.jsxs("p",{className:"text-sm text-gray-500",children:[s.jsx("span",{className:"font-semibold",children:"Clique para enviar"})," o logo"]}),s.jsx("p",{className:"text-xs text-gray-500",children:"PNG, JPG até 10MB"})]}),s.jsx("input",{id:"logo-upload",type:"file",className:"hidden",accept:"image/*",onChange:p})]})}),o&&s.jsxs("div",{className:"mt-2",children:[s.jsx("img",{src:o,alt:"Logo Preview",className:"w-full max-h-24 object-contain border rounded"}),s.jsxs(W,{type:"button",variant:"outline",size:"sm",onClick:()=>l(null),className:"mt-2 w-full",children:[s.jsx(No,{className:"h-4 w-4 mr-2"}),"Remover Logo"]})]})]}),s.jsxs("div",{className:"space-y-2",children:[s.jsx(Be,{htmlFor:"layout-upload",children:"Layout/Design"}),s.jsx("div",{className:"flex flex-col items-center justify-center w-full",children:s.jsxs("label",{htmlFor:"layout-upload",className:"flex flex-col items-center justify-center w-full h-32 border-2 border-dashed border-gray-300 rounded-lg cursor-pointer bg-gray-50 hover:bg-gray-100",children:[c?s.jsxs("div",{className:"flex flex-col items-center justify-center pt-5 pb-6",children:[s.jsx(Sv,{className:"w-8 h-8 mb-2 text-green-500"}),s.jsx("p",{className:"text-sm text-green-600 font-medium",children:"Layout carregado!"}),s.jsx("p",{className:"text-xs text-gray-500",children:"Clique para alterar"})]}):s.jsxs("div",{className:"flex flex-col items-center justify-center pt-5 pb-6",children:[s.jsx(rm,{className:"w-8 h-8 mb-2 text-gray-500"}),s.jsxs("p",{className:"text-sm text-gray-500",children:[s.jsx("span",{className:"font-semibold",children:"Clique para enviar"})," o layout"]}),s.jsx("p",{className:"text-xs text-gray-500",children:"PNG, JPG até 10MB"})]}),s.jsx("input",{id:"layout-upload",type:"file",className:"hidden",accept:"image/*",onChange:v})]})}),c&&s.jsxs("div",{className:"mt-2",children:[s.jsx("img",{src:c,alt:"Layout Preview",className:"w-full max-h-24 object-contain border rounded"}),s.jsxs(W,{type:"button",variant:"outline",size:"sm",onClick:()=>u(null),className:"mt-2 w-full",children:[s.jsx(No,{className:"h-4 w-4 mr-2"}),"Remover Layout"]})]})]})]})})]}),s.jsxs(fe,{children:[s.jsx(Me,{children:s.jsx(De,{children:"Dados do Cliente"})}),s.jsxs(me,{className:"space-y-4",children:[s.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[s.jsx(ke,{control:h.control,name:"clientName",render:({field:P})=>s.jsxs(Te,{children:[s.jsx(Ae,{children:"Nome do Cliente *"}),s.jsx(Ee,{children:s.jsx(ve,{placeholder:"Nome completo",...P})}),s.jsx(He,{})]})}),s.jsx(ke,{control:h.control,name:"clientPhone",render:({field:P})=>s.jsxs(Te,{children:[s.jsx(Ae,{children:"Telefone *"}),s.jsx(Ee,{children:s.jsx(ve,{placeholder:"(11) 99999-9999",...P})}),s.jsx(He,{})]})})]}),s.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[s.jsx(ke,{control:h.control,name:"clientEmail",render:({field:P})=>s.jsxs(Te,{children:[s.jsx(Ae,{children:"Email"}),s.jsx(Ee,{children:s.jsx(ve,{placeholder:"[email protected]",...P})}),s.jsx(He,{})]})}),s.jsx(ke,{control:h.control,name:"clientDocument",render:({field:P})=>s.jsxs(Te,{children:[s.jsx(Ae,{children:"CPF/CNPJ"}),s.jsx(Ee,{children:s.jsx(ve,{placeholder:"000.000.000-00",...P})}),s.jsx(He,{})]})})]}),s.jsx(ke,{control:h.control,name:"clientAddress",render:({field:P})=>s.jsxs(Te,{children:[s.jsx(Ae,{children:"Endereço Completo *"}),s.jsx(Ee,{children:s.jsx(Os,{placeholder:"Endereço completo com CEP",...P})}),s.jsx(He,{})]})})]})]}),s.jsxs(fe,{children:[s.jsx(Me,{children:s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsx(De,{children:"Produtos do Pedido"}),s.jsxs(W,{type:"button",onClick:j,variant:"outline",size:"sm",children:[s.jsx($m,{className:"h-4 w-4 mr-2"}),"Adicionar Produto"]})]})}),s.jsx(me,{className:"space-y-6",children:x.map((P,C)=>s.jsxs("div",{className:"border rounded-lg p-4 space-y-4",children:[s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsxs(Ue,{variant:"outline",children:["Produto ",C+1]}),x.length>1&&s.jsx(W,{type:"button",onClick:()=>S(C),variant:"outline",size:"sm",children:s.jsx(qu,{className:"h-4 w-4"})})]}),s.jsxs("div",{className:"grid grid-cols-3 gap-4",children:[s.jsx(ke,{control:h.control,name:`products.${C}.name`,render:({field:A})=>s.jsxs(Te,{children:[s.jsx(Ae,{children:"Nome do Produto *"}),s.jsx(Ee,{children:s.jsx(ve,{placeholder:"Ex: Camiseta Básica",...A})}),s.jsx(He,{})]})}),s.jsx(ke,{control:h.control,name:`products.${C}.type`,render:({field:A})=>s.jsxs(Te,{children:[s.jsx(Ae,{children:"Tipo *"}),s.jsxs(Jr,{onValueChange:A.onChange,defaultValue:A.value,children:[s.jsx(Ee,{children:s.jsx(Fr,{children:s.jsx(en,{placeholder:"Selecione o tipo"})})}),s.jsxs(Vr,{children:[s.jsx(xe,{value:"camiseta",children:"Camiseta"}),s.jsx(xe,{value:"polo",children:"Polo"}),s.jsx(xe,{value:"moletom",children:"Moletom"}),s.jsx(xe,{value:"outros",children:"Outros"})]})]}),s.jsx(He,{})]})}),s.jsxs("div",{className:"bg-blue-50 p-3 rounded-lg border border-blue-200",children:[s.jsxs("p",{className:"text-sm text-blue-800 font-medium",children:["ð Quantidade Total: ",Object.values(h.watch(`products.${C}.sizes`)||{}).reduce((A,O)=>A+O,0)," peças"]}),s.jsx("p",{className:"text-xs text-blue-600 mt-1",children:"A quantidade é calculada automaticamente baseada nos tamanhos especificados abaixo."})]})]}),s.jsxs("div",{className:"space-y-4",children:[s.jsxs("div",{children:[s.jsx(Ae,{className:"text-base font-semibold",children:"Quantidades por Taman
771ho *"}),s.jsx("p",{className:"text-sm text-gray-600 mb-4",children:"Especifique a quantidade para cada tamanho"}),s.jsxs("div",{className:"grid grid-cols-3 gap-4 p-4 border rounded-lg bg-gray-50",children:[s.jsxs("div",{className:"col-span-3",children:[s.jsx("h4",{className:"font-medium text-sm text-gray-700 mb-3",children:"Tamanhos Adultos"}),s.jsx("div",{className:"grid grid-cols-4 gap-3",children:[{key:"PP",label:"PP"},{key:"P",label:"P"},{key:"M",label:"M"},{key:"G",label:"G"},{key:"GG",label:"GG"},{key:"XG",label:"XG"},{key:"XXG",label:"XXG"},{key:"XXXG",label:"XXXG"}].map(A=>s.jsx(ke,{control:h.control,name:`products.${C}.sizes.${A.key}`,render:({field:O})=>s.jsxs(Te,{children:[s.jsx(Ae,{className:"text-xs",children:A.label}),s.jsx(Ee,{children:s.jsx(ve,{type:"number",min:"0",placeholder:"0",className:"h-8 text-sm",...O,onChange:E=>{O.onChange(parseInt(E.target.value)||0),w(C)}})})]})},A.key))})]}),s.jsxs("div",{className:"col-span-3 mt-4",children:[s.jsx("h4",{className:"font-medium text-sm text-gray-700 mb-3",children:"Tamanhos Baby"}),s.jsx("div",{className:"grid grid-cols-4 gap-3",children:[{key:"BABY_P",label:"BABY P"},{key:"BABY_M",label:"BABY M"},{key:"BABY_G",label:"BABY G"},{key:"BABY_GG",label:"BABY GG"}].map(A=>s.jsx(ke,{control:h.control,name:`products.${C}.sizes.${A.key}`,render:({field:O})=>s.jsxs(Te,{children:[s.jsx(Ae,{className:"text-xs",children:A.label}),s.jsx(Ee,{children:s.jsx(ve,{type:"number",min:"0",placeholder:"0",className:"h-8 text-sm",...O,onChange:E=>{O.onChange(parseInt(E.target.value)||0),w(C)}})})]})},A.key))})]})]})]}),s.jsx(ke,{control:h.control,name:`products.${C}.colors`,render:({field:A})=>s.jsxs(Te,{children:[s.jsx(Ae,{children:"Cores *"}),s.jsx(Ee,{children:s.jsx(ve,{placeholder:"Ex: BRANCA, PRETA, AZUL",...A})}),s.jsx(He,{})]})})]}),s.jsxs("div",{className:"grid grid-cols-3 gap-4",children:[s.jsx(ke,{control:h.control,name:`products.${C}.unitPrice`,render:({field:A})=>s.jsxs(Te,{children:[s.jsx(Ae,{children:"Preço Unitário *"}),s.jsx(Ee,{children:s.jsx(ve,{type:"number",step:"0.01",min:"0",placeholder:"0.00",...A,onChange:O=>{A.onChange(parseFloat(O.target.value)||0),w(C)}})}),s.jsx(He,{})]})}),s.jsxs("div",{className:"bg-green-50 p-3 rounded-lg border border-green-200",children:[s.jsxs("p",{className:"text-sm font-medium text-green-800",children:["ð° Total do Produto: R$ ",(Object.values(h.watch(`products.${C}.sizes`)||{}).reduce((A,O)=>A+O,0)*(h.watch(`products.${C}.unitPrice`)||0)).toFixed(2)]}),s.jsx("p",{className:"text-xs text-green-600 mt-1",children:"Calculado automaticamente: Quantidade à Preço Unitário"})]}),s.jsx(ke,{control:h.control,name:`products.${C}.observations`,render:({field:A})=>s.jsxs(Te,{children:[s.jsx(Ae,{children:"Observações"}),s.jsx(Ee,{children:s.jsx(ve,{placeholder:"Detalhes adicionais",...A})})]})})]})]},C))})]}),s.jsxs(fe,{children:[s.jsx(Me,{children:s.jsx(De,{children:"Status e Pagamento"})}),s.jsxs(me,{className:"space-y-4",children:[s.jsxs("div",{className:"grid grid-cols-3 gap-4",children:[s.jsx(ke,{control:h.control,name:"status",render:({field:P})=>s.jsxs(Te,{children:[s.jsx(Ae,{children:"Status do Pedido"}),s.jsxs(Jr,{onValueChange:P.onChange,defaultValue:P.value,children:[s.jsx(Ee,{children:s.jsx(Fr,{children:s.jsx(en,{})})}),s.jsxs(Vr,{children:[s.jsx(xe,{value:"novo",children:"Novo"}),s.jsx(xe,{value:"em_producao",children:"Em Produção"}),s.jsx(xe,{value:"concluido",children:"ConcluÃdo"}),s.jsx(xe,{value:"entregue",children:"Entregue"})]})]})]})}),s.jsx(ke,{control:h.control,name:"paymentStatus",render:({field:P})=>s.jsxs(Te,{children:[s.jsx(Ae,{children:"Status do Pagamento"}),s.jsxs(Jr,{onValueChange:P.onChange,defaultValue:P.value,children:[s.jsx(Ee,{children:s.jsx(Fr,{children:s.jsx(en,{})})}),s.jsxs(Vr,{children:[s.jsx(xe,{value:"pendente",children:"Pendente"}),s.jsx(xe,{value:"parcial",children:"Parcial"}),s.jsx(xe,{value:"pago",children:"Pago"})]})]})]})}),s.jsx(ke,{control:h.control,name:"deliveryDate",render:({field:P})=>s.jsxs(Te,{children:[s.jsx(Ae,{children:"Data de Entrega *"}),s.jsx(Ee,{children:s.jsx(ve,{type:"date",...P})}),s.jsx(He,{})]})})]}),s.jsxs("div",{className:"grid grid-cols-3 gap-4",children:[s.jsx(ke,{control:h.control,name:"orderDate",render:({field:P})=>s.jsxs(Te,{children:[s.jsx(Ae,{children:"Data do Pedido *"}),s.jsx(Ee,{children:s.jsx(ve,{type:"date",...P})}),s.jsx(He,{})]})}),s.jsx(ke,{control:h.control,name:"deliveryValue",render:({field:P})=>s.jsxs(Te,{children:[s.jsx(Ae,{children:"Valor da Entrega *"}),s.jsx(Ee,{children:s.jsx(ve,{type:"number",step:"0.01",min:"0",placeholder:"0.00",...P,onChange:C=>P.onChange(parseFloat(C.target.value)||0)})}),s.jsx(He,{})]})}),s.jsx(ke,{control:h.control,name:"shippingMethod",render:({field:P})=>s.jsxs(Te,{children:[s.jsx(Ae,{children:"Forma de Envio *"}),s.jsxs(Jr,{onValueChange:P.onChange,defaultValue:P.value,children:[s.jsx(Ee,{children:s.jsx(Fr,{children:s.jsx(en,{placeholder:"Selecione o método"})})}),s.jsxs(Vr,{children:[s.jsx(xe,{value:"lalamove",children:"Lalamove"}),s.jsx(xe,{value:"correios",children:"Correios"}),s.jsx(xe,{value:"jadlog",children:"Jadlog"}),s.jsx(xe,{value:"loggi",children:"Loggi"}),s.jsx(xe,{value:"total_express",children:"Total Express"}),s.jsx(xe,{value:"transportadora",children:"Transportadora"}),s.jsx(xe,{value:"retirada",children:"Retirada no Local"}),s.jsx(xe,{value:"motoboy",children:"Motoboy"}),s.jsx(xe,{value:"outros",children:"Outros"})]})]}),s.jsx(He,{})]})})]}),s.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[s.jsx(ke,{control:h.control,name:"totalAmount",render:({field:P})=>s.jsxs(Te,{children:[s.jsx(Ae,{children:"Valor Total *"}),s.jsx(Ee,{children:s.jsx(ve,{type:"number",step:"0.01",min:"0",placeholder:"0.00",...P,onChange:C=>P.onChange(parseFloat(C.target.value)||0)})}),s.jsx(He,{})]})}),s.jsx(ke,{control:h.control,name:"paidAmount",render:({field:P})=>s.jsxs(Te,{children:[s.jsx(Ae,{children:"Valor Pago"}),s.jsx(Ee,{children:s.jsx(ve,{type:"number",step:"0.01",min:"0",placeholder:"0.00",...P,onChange:C=>P.onChange(parseFloat(C.target.value)||0)})})]})})]}),s.jsx(ke,{control:h.control,name:"observations",render:({field:P})=>s.jsxs(Te,{children:[s.jsx(Ae,{children:"Observações Gerais"}),s.jsx(Ee,{children:s.jsx(Os,{placeholder:"Observações sobre o pedido...",...P})})]})})]})]}),s.jsxs(Pr,{children:[s.jsx(W,{type:"button",variant:"outline",onClick:()=>t(!1),children:"Cancelar"}),s.jsx(W,{type:"submit",disabled:y.isPending,children:y.isPending?s.jsxs(s.Fragment,{children:[s.jsx(Im,{className:"h-4 w-4 mr-2 animate-spin"}),"Criando Pedido..."]}):"Criar Pedido"})]})]})})]})})}var TC="Progress",EC=100,[NEe,jRe]=kr(TC),[SEe,PEe]=NEe(TC),jB=b.forwardRef((e,t)=>
771{const{__scopeProgress:r,value:n=null,max:a,getValueLabel:i=CEe,...o}=e;(a||a===0)&&!s4(a)&&console.error(AEe(`${a}`,"Progress"));const l=s4(a)?a:EC;n!==null&&!i4(n,l)&&console.error(TEe(`${n}`,"Progress"));const c=i4(n,l)?n:null,u=Zx(c)?i(c,l):void 0;return s.jsx(SEe,{scope:r,value:c,max:l,children:s.jsx(Oe.div,{"aria-valuemax":l,"aria-valuemin":0,"aria-valuenow":Zx(c)?c:void 0,"aria-valuetext":u,role:"progressbar","data-state":SB(c,l),"data-value":c??void 0,"data-max":l,...o,ref:t})})});jB.displayName=TC;var wB="ProgressIndicator",NB=b.forwardRef((e,t)=>{const{__scopeProgress:r,...n}=e,a=PEe(wB,r);return s.jsx(Oe.div,{"data-state":SB(a.value,a.max),"data-value":a.value??void 0,"data-max":a.max,...n,ref:t})});NB.displayName=wB;function CEe(e,t){return`${Math.round(e/t*100)}%`}function SB(e,t){return e==null?"indeterminate":e===t?"complete":"loading"}function Zx(e){return typeof e=="number"}function s4(e){return Zx(e)&&!isNaN(e)&&e>0}function i4(e,t){return Zx(e)&&!isNaN(e)&&e<=t&&e>=0}function AEe(e,t){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${EC}\`.`}function TEe(e,t){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be: 772 - a positive number 773 - less than the value passed to \`max\` (or ${EC} if no \`max\` prop is set) 774 - \`null\` or \`undefined\` if the progress is indeterminate. 775 776Defaulting to \`null\`.`}var PB=jB,EEe=NB;const BN=b.forwardRef(({className:e,value:t,...r},n)=>s.jsx(PB,{ref:n,className:ie("relative h-4 w-full overflow-hidden rounded-full bg-secondary",e),...r,children:s.jsx(EEe,{className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-(t||0)}%)`}})}));BN.displayName=PB.displayName;const Ri=e=>{if(!e)return[];try{return JSON.parse(e)}catch(t){return console.error("Erro ao processar JSON:",t),[]}},Zc=e=>{if(e==null)return 0;if(typeof e=="number")return e;if(typeof e=="string"){const t=parseFloat(e.replace(/[^\d.-]/g,""));return isNaN(t)?0:t}return 0},o4=e=>{if(!e)return 0;try{const t=JSON.parse(e);return Array.isArray(t)?t.reduce((r,n)=>{const a=n!=null&&n.amount?Zc(n.amount):0;return r+a},0):0}catch(t){return console.error("Erro ao calcular total pago:",t),0}},OEe=e=>{if(!e)return{street:"N/A",neighborhood:"N/A",city:"N/A",state:"N/A",zipCode:"N/A"};if(typeof e=="string")try{return JSON.parse(e)}catch(t){return console.error("Erro ao processar endereço:",t),{street:"Endereço inválido",neighborhood:"",city:"",state:"",zipCode:""}}return e},_Ee=e=>{let t=0;switch(e.status){case"novo":t=10;break;case"aprovado":t=20;break;case"produção":t=50;break;case"qualidade":t=70;break;case"embalagem":t=80;break;case"enviado":t=90;break;case"entregue":case"concluÃdo":t=100;break;case"atrasado":t=60;break;case"cancelado":t=0;break;default:t=10}return{...e,currentProgress:t}};function Tc(e){if(!e)return"N/A";try{const t=typeof e=="string"?new Date(e):e;return new Intl.DateTimeFormat("pt-BR",{day:"2-digit",month:"2-digit",year:"numeric"}).format(t)}catch(t){return console.error("Erro ao formatar data:",t),"Data inválida"}}function es(e){const t=Zc(e);return new Intl.NumberFormat("pt-BR",{style:"currency",currency:"BRL"}).format(t)}const kEe={aprovado:"bg-blue-100 text-blue-800 border-blue-200",produção:"bg-yellow-100 text-yellow-800 border-yellow-200",embalagem:"bg-purple-100 text-purple-800 border-purple-200",enviado:"bg-orange-100 text-orange-800 border-orange-200",entregue:"bg-green-100 text-green-800 border-green-200",cancelado:"bg-red-100 text-red-800 border-red-200"},Ec={aprovado:"Aprovado",produção:"Em Produção",embalagem:"Em Embalagem",enviado:"Enviado",entregue:"Entregue",cancelado:"Cancelado"},MEe={pendente:"bg-yellow-100 text-yellow-800 border-yellow-200",parcial:"bg-blue-100 text-blue-800 border-blue-200",pago:"bg-green-100 text-green-800 border-green-200",atrasado:"bg-red-100 text-red-800 border-red-200"},Nj={pendente:"Pendente",parcial:"Pago Parcialmente",pago:"Pago",atrasado:"Atrasado"};function l4(e){switch(e){case"aprovado":return s.jsx(Vl,{className:"h-5 w-5 text-blue-500"});case"produção":return s.jsx(Uu,{className:"h-5 w-5 text-yellow-500"});case"embalagem":return s.jsx(gS,{className:"h-5 w-5 text-purple-500"});case"enviado":return s.jsx(Vm,{className:"h-5 w-5 text-orange-500"});case"entregue":return s.jsx(uS,{className:"h-5 w-5 text-green-500"});case"cancelado":return s.jsx(qu,{className:"h-5 w-5 text-red-500"});default:return s.jsx(Pv,{className:"h-5 w-5 text-gray-500"})}}
776function DEe(e){switch(e){case"pendente":return s.jsx(Ps,{className:"h-5 w-5 text-yellow-500"});case"parcial":return s.jsx(Pv,{className:"h-5 w-5 text-blue-500"});case"pago":return s.jsx(uS,{className:"h-5 w-5 text-green-500"});case"atrasado":return s.jsx(lp,{className:"h-5 w-5 text-red-500"});default:return s.jsx(Pv,{className:"h-5 w-5 text-gray-500"})}}function REe(){const{toast:e}=wn(),[t]=wa(),[r,n]=b.useState(null),[a,i]=b.useState(!1),[o,l]=b.useState(!1),[c,u]=b.useState(!1),[d,f]=b.useState(""),[m,p]=b.useState(""),[v,h]=b.useState(""),[x,y]=b.useState(null),[g,j]=b.useState(!1),[S,w]=b.useState(null),[N,P]=b.useState(!1),[C,A]=b.useState({path:"",password:""}),[O,E]=b.useState(!1);b.useEffect(()=>{const Q=new URL(window.location.href).searchParams.get("highlight");if(Q){const we=parseInt(Q);isNaN(we)||w(we)}},[t]);const{data:k,isLoading:M,error:D}=Gt({queryKey:["/api/admin/orders"],queryFn:Er({on401:"returnNull"})}),L=((k==null?void 0:k.data)||[]).map(q=>_Ee(q));b.useEffect(()=>{if(S&&L.length>0){const q=L.find(Q=>Q.id===S);q&&(n(q),i(!0),w(null),e({title:"Pedido carregado",description:`Visualizando detalhes do pedido #${q.orderNumber}`}))}},[S,L,e]);const B=L.filter(q=>{if(x&&q.status!==x)return!1;if(v){const Q=v.toLowerCase();return q.orderNumber.toLowerCase().includes(Q)||q.clientName.toLowerCase().includes(Q)||q.clientEmail.toLowerCase().includes(Q)||q.clientPhone.includes(Q)||q.productType.toLowerCase().includes(Q)||String(q.id).includes(Q)}return!0}).sort((q,Q)=>new Date(Q.createdAt).getTime()-new Date(q.createdAt).getTime()),R=Kt({mutationFn:async({id:q,status:Q,notes:we})=>await(await ft("PATCH",`/api/admin/orders/${q}/status`,{status:Q,notes:we})).json(),onSuccess:()=>{e({title:"Status atualizado",description:`O status do pedido foi atualizado para ${Ec[m]}.`}),l(!1),hr.invalidateQueries({queryKey:["/api/admin/orders"]})},onError:q=>{e({title:"Erro ao atualizar status",description:q.message||"Ocorreu um erro ao atualizar o status do pedido.",variant:"destructive"})}}),I=()=>{!r||!m||R.mutate({id:r.id,status:m,notes:d})},G=Kt({mutationFn:async({id:q,paymentStatus:Q,amount:we,method:Z})=>await(await ft("PATCH",`/api/admin/orders/${q}/payment`,{paymentStatus:Q,amount:we,method:Z})).json(),onSuccess:(q,Q)=>{e({title:"Pagamento atualizado",description:`O status de pagamento do pedido foi atualizado para ${Nj[Q.paymentStatus]}.`}),u(!1),hr.invalidateQueries({queryKey:["/api/admin/orders"]})},onError:q=>{e({title:"Erro ao atualizar pagamento",description:q.message||"Ocorreu um erro ao atualizar o status de pagamento.",variant:"destructive"})}}),U=(q,Q,we)=>{r&&G.mutate({id:r.id,paymentStatus:q,amount:Q,method:we})};Kt({mutationFn:async q=>(await new Promise(Q=>setTimeout(Q,1500)),{success:!0,invoiceNumber:`NF-${Math.floor(Math.random()*1e4)}`}),onSuccess:q=>{j(!1),e({title:"Nota fiscal gerada",description:`A nota fiscal ${q.invoiceNumber} foi gerada com sucesso e está pronta para emissão.`}),r&&K.mutate({id:r.id,data:{hasInvoice:!0,invoiceNumber:q.invoiceNumber}})},onError:q=>{j(!1),e({title:"Erro ao gerar nota fiscal",description:q.message||"Ocorreu um erro ao gerar a nota fiscal.",variant:"destructive"})}});const K=Kt({mutationFn:async({id:q,data:Q})=>await(await ft("PATCH",`/api/admin/orders/${q}`,Q)).json(),onSuccess:()=>{hr.invalidateQueries({queryKey:["/api/admin/orders"]})},onError:q=>{e({title:"Erro ao atualizar pedido",description:q.message||"Ocorreu um erro ao atualizar o pedido.",variant:"destructive"})}}),ce=Kt({mutationFn:async({orderId:q,certificateInfo:Q})=>await(await ft("POST",`/api/admin/orders/${q}/emit-invoice`,Q||{})).json(),onSuccess:q=>{j(!1),P(!1),e({title:"Nota fiscal emitida com sucesso",description:`Nota fiscal ${q.invoiceNumber} emitida com sucesso.`}),hr.invalidateQueries({queryKey:["/api/admin/orders"]})},onError:q=>{j(!1),q.message&&q.message.includes("Certificado")?(P(!0),e({title:"Configuração necessária",description:"à necessário configurar o certificado digital A1 para emitir notas fiscais."})):e({title:"Erro ao emitir nota fiscal",description:q.message||"Ocorreu um erro ao emitir a nota fiscal.",variant:"destructive"})}}),pe=q=>{n(q),j(!0),ce.mutate({orderId:q.id})},Ke=()=>{if(r){if(!C.path||!C.password){e({title:"Campos obrigatórios",description:"Informe o caminho e a senha do certificado digital A1.",variant:"destructive"});return}ce.mutate({orderId:r.id,certificateInfo:{path:C.path,password:C.password}})}};return s.jsxs("div",{className:"space-y-6",children:[s.jsxs("div",{className:"flex flex-col md:flex-row md:items-center justify-between gap-4",children:[s.jsx("h2",{className:"text-2xl font-bold",children:"Gerenciamento de Pedidos"}),s.jsxs("div",{className:"flex flex-col sm:flex-row gap-3",children:[s.jsxs(W,{onClick:()=>E(!0),className:"bg-blue-600 hover:bg-blue-700 text-white",children:[s.jsx($m,{className:"h-4 w-4 mr-2"}),"Adicionar Pedido"]}),s.jsxs("div",{className:"relative",children:[s.jsx(zl,{className:"absolute left-2.5 top-2.5 h-4 w-4 text-gray-500"}),s.jsx(ve,{placeholder:"Buscar pedidos...",className:"pl-9",value:v,onCh
776ange:q=>h(q.target.value)})]}),s.jsxs(Jr,{value:x||"todos",onValueChange:q=>y(q==="todos"?null:q),children:[s.jsx(Fr,{className:"w-[180px]",children:s.jsx(en,{placeholder:"Filtrar por status"})}),s.jsxs(Vr,{children:[s.jsx(xe,{value:"todos",children:"Todos os status"}),s.jsx(xe,{value:"aprovado",children:"Aprovados"}),s.jsx(xe,{value:"produção",children:"Em Produção"}),s.jsx(xe,{value:"embalagem",children:"Em Embalagem"}),s.jsx(xe,{value:"enviado",children:"Enviados"}),s.jsx(xe,{value:"entregue",children:"Entregues"}),s.jsx(xe,{value:"cancelado",children:"Cancelados"})]})]}),s.jsx(W,{variant:"outline",size:"icon",onClick:()=>{h(""),y(null)},title:"Limpar filtros",children:s.jsx(Qr,{className:"h-4 w-4"})}),s.jsxs(W,{variant:"outline",onClick:()=>{e({title:"Exportando relatório",description:"Relatório de pedidos em geração"})},children:[s.jsx(Rm,{className:"h-4 w-4 mr-2"}),"Exportar"]})]})]}),s.jsxs(fe,{children:[s.jsxs(Me,{className:"pb-3",children:[s.jsx(De,{children:"Pedidos"}),s.jsx(Ye,{children:"Gerenciamento de pedidos e acompanhamento de produção"})]}),s.jsx(me,{children:B.length===0?s.jsxs("div",{className:"text-center py-8",children:[s.jsx(Fm,{className:"h-12 w-12 mx-auto text-gray-400 mb-3"}),s.jsx("h3",{className:"text-lg font-medium text-gray-800",children:"Nenhum pedido encontrado"}),s.jsx("p",{className:"text-gray-500 mt-1 max-w-md mx-auto",children:v||x?"Tente ajustar os filtros para ver mais resultados.":"Quando você criar pedidos, eles aparecerão aqui."})]}):s.jsx("div",{className:"overflow-x-auto",children:s.jsxs(ai,{children:[s.jsx(si,{children:s.jsxs(br,{className:"bg-gray-50",children:[s.jsx(Ze,{children:"Pedido"}),s.jsx(Ze,{children:"Cliente"}),s.jsx(Ze,{children:"Produto"}),s.jsx(Ze,{children:"Data"}),s.jsx(Ze,{children:"Status"}),s.jsx(Ze,{children:"Pagamento"}),s.jsx(Ze,{children:"Progresso"}),s.jsx(Ze,{className:"w-[100px]",children:"Ações"})]})}),s.jsx(ii,{children:B.map(q=>s.jsxs(br,{className:S===q.id?"bg-primary/5 animate-pulse":q.id===(r==null?void 0:r.id)?"bg-muted/50":"",children:[s.jsxs(Le,{children:[s.jsx("div",{className:"font-medium",children:q.orderNumber}),s.jsxs("div",{className:"text-xs text-gray-500",children:["#",q.id]})]}),s.jsx(Le,{children:s.jsxs("div",{className:"flex flex-col",children:[s.jsx("span",{className:"font-medium truncate max-w-[200px]",children:q.clientName}),s.jsx("span",{className:"text-xs text-gray-500",children:q.clientEmail})]})}),s.jsx(Le,{children:s.jsxs("div",{className:"flex flex-col",children:[s.jsx("span",{children:q.productType}),s.jsxs("span",{className:"text-xs text-gray-500",children:["Qtd: ",q.quantity]})]})}),s.jsx(Le,{children:Tc(q.createdAt)}),s.jsx(Le,{children:s.jsx(Ue,{variant:"outline",className:kEe[q.status]||"",children:Ec[q.status]||q.status})}),s.jsx(Le,{children:s.jsx(Ue,{variant:"outline",className:MEe[q.paymentStatus]||"",children:Nj[q.paymentStatus]||q.paymentStatus})}),s.jsx(Le,{children:s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(BN,{value:q.progress,className:"w-24"}),s.jsxs("span",{className:"text-xs text-gray-500",children:[q.progress,"%"]})]})}),s.jsx(Le,{children:s.jsxs(Oo,{children:[s.jsx(_o,{asChild:!0,children:s.jsx(W,{variant:"ghost",size:"icon",children:s.jsx(Oy,{className:"h-4 w-4"})})}),s.jsxs(bi,{align:"end",children:[s.jsx(hc,{children:"Ações"}),s.jsxs(Je,{onClick:()=>{n(q),i(!0)},children:[s.jsx(gs,{className:"h-4 w-4 mr-2"}),"Visualizar detalhes"]}),s.jsxs(Je,{onClick:()=>{n(q),p(q.status),f(""),l(!0)},children:[s.jsx(so,{className:"h-4 w-4 mr-2"}),"Atualizar status"]}),s.jsxs(Je,{onClick:()=>{n(q),u(!0)},children:[s.jsx(Lt,{className:"h-4 w-4 mr-2"}),"Atualizar pagamento"]}),s.jsx(js,{}),s.jsxs(Je,{onClick:()=>{const Q=q.clientPhone.replace(/\D/g,""),we=encodeURIComponent(`Olá ${q.clientName}, atualizações sobre seu pedido ${q.orderNumber} na ConfecXpress. Status atual: ${Ec[q.status]}. Alguma dúvida?`);window.open(`https://wa.me/${Q}?text=${we}`,"_blank")},children:[s.jsx(ba,{className:"h-4 w-4 mr-2"}),"Contatar cliente"]}),s.jsxs(Je,{onClick:()=>{e({title:"Comprovante gerado",description:"Comprovante enviado por e-mail"})},children:[s.jsx(ZH,{className:"h-4 w-4 mr-2"}),"Enviar comprovante"]}),q.hasInvoice?s.jsxs(Je,{onClick:()=>{e({title:"Redirecionando",description:`Indo para a NF-e ${q.invoiceNumber}`})},children:[s.jsx(fl,{className:"h-4 w-4 mr-2"}),"Ver nota fiscal"]}):s.jsxs(Je,{onClick:()=>pe(q),children:[s.jsx(fl,{className:"h-4 w-4 mr-2"}),"Gerar nota fiscal"]})]})]})})]},q.id))})]})})})]}),s.jsx(bEe,{open:N,onOpenChange:P,certificateInfo:C,setCertificateInfo:A,onSubmit:Ke}),s.jsx(Ct,{open:a,onOpenChange:i,children:s.jsxs(Bt,{className:"max-w-4xl max-h-[90vh] overflow-y-auto",children:[s.jsxs(Xt,{children:[s.jsxs(Yt,{className:"flex items-center",children:[s.jsx(Fm,{className:"h-5 w-5 mr-2"}),(r==null?void 0:r.orderNumber)||`Pedido #${(r==null?void 0:r.id)||""}`]}),s.jsx(Zt,{children:"Detalhes completos do pedido"})]}),r&&s.jsxs("div",{className:"mt-4 space-y-6",children:[s.jsx("div",{className:"bg-gray-50 p-6 rounded-lg border border-gray-200",children:s.jsxs("div",{className:"flex flex-col md:flex-row items-start md:items-center justify-between gap-4",children:[s.jsxs("div",{className:"flex items-center",children:[l4(r.status),s.jsxs("div",{className:"ml-3",children:[s.jsx("p",{className:"text-sm text-gray-500",children:"Status atual"}),s.jsx("h3",{className:"font-bold text-lg",children:Ec[r.status]||r.status})]})]}),s.jsxs("div",{className:"flex items-center",children:[DEe(r.paymentStatus),s.jsxs("div",{className:"ml-3",children:[s.jsx("p",{className:"text-sm text-gray-500",children:"Pagamento"}),s.jsx("h3",{className:"font-bold text-lg",children:Nj[r.paymentStatus]||r.paymentStatus})]})]}),s.jsxs("div",{children:[s.jsx("p",{className:"text-sm text-gray-500",children:"Progresso"}),s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx(BN,{value:r.progress,className:"w-32"}),s.jsxs("span",{className:"font-medium",children:[r.progress,"%"]})]})]})]})}),s.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[s.jsxs(fe,{children:[s.jsx(Me,{className:"pb-2",children:s.jsxs(De,{className:"text-base flex items-center",children:[s.jsx(cp,{className:"h-4 w-4 mr-2 text-gray-500"}),"Informações do Cliente"]})}),s.jsxs(me,{className:"space-y-2 text-sm pt-0",children:[s.jsxs("p",{children:[s.jsx("span",{className:"font-medium",children:"Nome:"})," ",r.clientName]}),s.jsxs("p",{children:[s.jsx("span",{className:"font-medium",children:"E-mail:"})," ",r.clientEmail]}),s.jsxs("p",{children:[s.jsx("span",{className:"font-medium",children:"Telefone:"})," ",r.clientPhone]})]})]}),s.jsxs(fe,{children:[s.jsx(Me,{className:"pb-2",children:s.jsxs(De,{className:"text-base flex items-center",children:[s.jsx(Ey,{className:"h-4 w-4 mr-2 text-gray-500"}),"Datas Importantes"]})}),s.jsxs(me,{className:"space-y-2 text-sm pt-0",children:[s.jsxs("p",{children:[s.jsx("span",{className:"font-medium",children:"Criado em:"})," ",Tc(r.createdAt)]}),s.jsxs("p",{children:[s.jsx("span",{className:"font-medium",children:"Previsão de entrega:"})," ",Tc(r.estimatedDelivery)]}),r.completedAt&&s.jsxs("p",{children:[s.jsx("span",{className:"font-medium",children:"ConcluÃdo em:"})," ",Tc(r.completedAt)]})]})]}),s.jsxs(fe,{children:[s.jsx(Me,{className:"pb-2",children:s.jsxs(De,{className:"text-base flex items-center",children:[s.jsx(H5,{className:"h-4 w-4 mr-2 text-gray-500"}),"Endereço de Entrega"]})}),s.jsx(me,{className:"space-y-2 text-sm pt-0",children:(()=>{const q=OEe(r.deliveryAddress);return s.jsxs(s.Fragment,{children:[s.jsx("p",{children:q.street}),s.jsx("p",{children:q.neighborhood}),s.jsxs("p",{children:[q.city,", ",q.state]}),s.jsx("p",{children:q.zipCode})]})})()})]})]}),s.jsxs(ql,{defaultValue:"items",className:"w-full",children:[s.jsxs(Ao,{className:"grid grid-cols-4 w-full",children:[s.jsx(vt,{value:"items",children:"Itens do Pedido"}),s.jsx(vt,{value:"status",children:"Histórico de Status"}),s.jsx(vt,{value:"payment",children:"Pagamentos"}),s.jsx(vt,{value:"documents",children:"Documentos"})]}),s.jsx(xt,{value:"items",className:"pt-4",children:s.jsx(fe,{children:s.jsx(me,{className:"pt-6",children:s.jsxs(ai,{children:[s.jsx(si,{children:s.jsxs(br,{className:"bg-gray-50",children:[s.jsx(Ze,{children:"#"}),s.jsx(Ze,{children:"Descrição"}),s.jsx(Ze,{className:"text-right",children:"Qtd"}),s.jsx(Ze,{className:"text-right",children:"Valor Unit."}),s.jsx(Ze,{className:"text-right",children:"Total"})]})}),s.jsxs(ii,{children:[Ri(r.items).map(q=>s.jsxs(br,{children:[s.jsx(Le,{children:q.id}),s.jsx(Le,{children:q.description}),s.jsx(Le,{className:"text-right",children:q.quantity}),s.jsx(Le,{className:"text-right",children:es(q.unitPrice)}),s.jsx(Le,{className:"text-right",children:es(q.total)})]},q.id)),s.jsxs(br,{children:[s.jsx(Le,{colSpan:4,className:"text-right font-medium",children:"Valor Total:"}),s.jsx(Le,{className:"text-right font-bold",children:es(r.totalAmount)})]})]})]})})})}),s.jsx(xt,{value:"status",className:"pt-4",children:s.jsx(fe,{children:s.jsx(me,{className:"pt-6",children:s.jsxs("div",{className:"space-y-4",children:[Ri(r.statusHistory).map((q,Q)=>s.jsxs("div",{className:"flex",children:[s.jsxs("div",{className:"mr-4 flex flex-col items-center",children:[s.jsx("div",{className:"rounded-full p-2 bg-blue-50 border border-blue-200",children:l4(q.status)}),Q<Ri(r.statusHistory).length-1&&s.jsx("div",{className:"w-px h-full bg-gray-200 my-2"})]}),s.jsxs("div",{className:"pt-1 pb-8",children:[s.jsxs("div",{className:"flex items-center",children:[s.jsx("h4",{className:"font-medium",children:Ec[q.status]||q.status}),s.jsxs("span",{className:"text-xs text-gray-500 ml-2",children:[Tc(q.date)," ",new Date(q.date).toLocaleTimeString("pt-BR",{hour:"2-digit",minute:"2-digit"})]})]}),q.notes&&s.jsx("p",{className:"text-sm text-gray-600 mt-1",children:q.notes})]})]},Q)),s.jsx("div",{className:"flex justify-end mt-4",children:s.jsxs(W,{onClick:()=>{n(r),p(r.status),f(""),l(!0),i(!1)},children:[s.jsx(so,{className:"h-4 w-4 mr-2"}),"Atualizar Status"]})})]})})})}),s.jsx(xt,{value:"payment",className:"pt-4",children:s.jsx(fe,{children:s.jsx(me,{className:"pt-6",children:s.jsxs("div",{className:"space-y-4",children:[Ri(r.paymentHistory).length>0?s.jsxs("div",{children:[s.jsx("h3",{className:"text-base font-medium mb-3",children:"Histórico de Pagamentos"}),s.jsxs(ai,{children:[s.jsx(si,{children:s.jsxs(br,{className:"bg-gray-50",children:[s.jsx(Ze,{children:"Data"}),s.jsx(Ze,{children:"Valor"}),s.jsx(Ze,{children:"Método"}),s.jsx(Ze,{children:"Status"})]})}),s.jsx(ii,{children:Ri(r.paymentHistory).map((q,Q)=>s.jsxs(br,{children:[s.jsx(Le,{children:Tc(q.date)}),s.jsx(Le,{children:es(q.amount)}),s.jsx(Le,{children:q.method}),s.jsx(Le,{children:s.jsx(Ue,{variant:"outline",className:q.status==="confirmado"?"bg-green-100 text-green-800 border-green-200":"bg-yellow-100 text-yellow-800 border-yellow-200",children:q.status==="confirmado"?"Confirmado":"Pendente"})})]},Q))})]}),s.jsxs("div",{className:"bg-gray-50 p-4 rounded-md mt-4",children:[s.jsxs("div",{className:"flex justify-between",children:[s.jsx("span",{children:"Valor Total do Pedido:"}),s.jsx("span",{children:es(r.totalAmount)})]}),s.jsxs("div",{className:"flex justify-between mt-1",children:[s.jsx("span",{children:"Total Pago:"}),s.jsx("span",{children:es(o4(r.paymentHistory))})]}),r.paymentStatus!=="pago"&&s.jsxs("div",{className:"flex justify-between mt-1 font-medium",children:[s.jsx("span",{children:"Valor Pendente:"}
776),s.jsx("span",{children:es(Zc(r.totalAmount)-o4(r.paymentHistory))})]})]})]}):s.jsxs("div",{className:"text-center p-6",children:[s.jsx(Ps,{className:"h-12 w-12 mx-auto text-gray-400 mb-3"}),s.jsx("h3",{className:"text-lg font-medium text-gray-800",children:"Nenhum pagamento registrado"}),s.jsx("p",{className:"text-gray-500 mt-1 max-w-md mx-auto",children:"O cliente ainda não efetuou nenhum pagamento para este pedido."})]}),s.jsx("div",{className:"flex justify-end mt-4",children:s.jsxs(W,{onClick:()=>{n(r),u(!0),i(!1)},children:[s.jsx(so,{className:"h-4 w-4 mr-2"}),"Atualizar Pagamento"]})})]})})})}),s.jsx(xt,{value:"documents",className:"pt-4",children:s.jsx(fe,{children:s.jsx(me,{className:"pt-6",children:s.jsxs("div",{className:"space-y-6",children:[s.jsxs("div",{children:[s.jsx("h3",{className:"text-base font-medium mb-3",children:"Orçamento"}),r.quoteId?s.jsxs("div",{className:"flex items-center",children:[s.jsx(Lt,{className:"h-5 w-5 text-gray-500 mr-2"}),s.jsxs("span",{children:["Orçamento #",r.quoteId]}),s.jsxs(W,{variant:"link",className:"ml-auto",children:[s.jsx(gs,{className:"h-4 w-4 mr-2"}),"Visualizar"]})]}):s.jsx("div",{className:"text-gray-500",children:"Pedido criado sem orçamento prévio"})]}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-base font-medium mb-3",children:"Nota Fiscal"}),r.hasInvoice?s.jsxs("div",{className:"flex items-center",children:[s.jsx(fl,{className:"h-5 w-5 text-gray-500 mr-2"}),s.jsx("span",{children:r.invoiceNumber}),s.jsxs("div",{className:"ml-auto space-x-2",children:[s.jsxs(W,{variant:"outline",size:"sm",children:[s.jsx(ca,{className:"h-4 w-4 mr-2"}),"Download"]}),s.jsxs(W,{variant:"outline",size:"sm",children:[s.jsx(Lm,{className:"h-4 w-4 mr-2"}),"Imprimir"]}),s.jsxs(W,{variant:"link",size:"sm",children:[s.jsx(gs,{className:"h-4 w-4 mr-2"}),"Visualizar"]})]})]}):s.jsxs("div",{className:"flex items-center",children:[s.jsx(fS,{className:"h-5 w-5 text-yellow-500 mr-2"}),s.jsx("span",{className:"text-gray-500",children:"Nota fiscal não emitida"}),s.jsxs(W,{variant:"default",size:"sm",className:"ml-auto",onClick:()=>{i(!1),pe(r)},children:[s.jsx(fl,{className:"h-4 w-4 mr-2"}),"Gerar Nota Fiscal"]})]})]}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-base font-medium mb-3",children:"Outros Documentos"}),s.jsxs("div",{className:"space-y-3",children:[s.jsxs("div",{className:"flex items-center p-3 border border-gray-200 rounded-md",children:[s.jsx(B5,{className:"h-5 w-5 text-gray-500 mr-2"}),s.jsx("span",{children:"Romaneio de Produção"}),s.jsxs(W,{variant:"link",className:"ml-auto",children:[s.jsx(ca,{className:"h-4 w-4 mr-2"}),"Download"]})]}),s.jsxs("div",{className:"flex items-center p-3 border border-gray-200 rounded-md",children:[s.jsx(Vm,{className:"h-5 w-5 text-gray-500 mr-2"}),s.jsx("span",{children:"Ordem de Expedição"}),s.jsxs(W,{variant:"link",className:"ml-auto",children:[s.jsx(ca,{className:"h-4 w-4 mr-2"}),"Download"]})]})]})]})]})})})})]}),s.jsxs("div",{className:"flex justify-end gap-3 mt-6",children:[s.jsx(W,{variant:"outline",onClick:()=>i(!1),children:"Fechar"}),s.jsxs(W,{variant:"outline",onClick:()=>{const q=r.clientPhone.replace(/\D/g,""),Q=encodeURIComponent(`Olá ${r.clientName}, sobre seu pedido ${r.orderNumber} na ConfecXpress. Status atual: ${Ec[r.status]}. Precisamos de mais informações!`);window.open(`https://wa.me/${q}?text=${Q}`,"_blank")},children:[s.jsx(ba,{className:"h-4 w-4 mr-2"}),"Contatar Cliente"]}),s.jsxs(W,{onClick:()=>{n(r),p(r.status),f(""),l(!0),i(!1)},children:[s.jsx(so,{className:"h-4 w-4 mr-2"}),"Atualizar Status"]})]})]})]})}),s.jsx(Ct,{open:o,onOpenChange:l,children:s.jsxs(Bt,{children:[s.jsxs(Xt,{children:[s.jsx(Yt,{children:"Atualizar Status"}),s.jsx(Zt,{children:"Altere o status atual do pedido e adicione observações se necessário"})]}),r&&s.jsxs("div",{className:"space-y-4 py-2",children:[s.jsxs("div",{className:"space-y-2",children:[s.jsx(Be,{htmlFor:"status",children:"Status do Pedido"}),s.jsxs(Jr,{value:m,onValueChange:p,children:[s.jsx(Fr,{className:"w-full",children:s.jsx(en,{placeholder:"Selecione um status"})}),s.jsxs(Vr,{children:[s.jsx(xe,{value:"aprovado",children:"Aprovado"}),s.jsx(xe,{value:"produção",children:"Em Produção"}),s.jsx(xe,{value:"embalagem",children:"Em Embalagem"}),s.jsx(xe,{value:"enviado",children:"Enviado"}),s.jsx(xe,{value:"entregue",children:"Entregue"}),s.jsx(xe,{value:"cancelado",children:"Cancelado"})]})]})]}),s.jsxs("div",{className:"space-y-2",children:[s.jsx(Be,{htmlFor:"statusNote",children:"Observações"}),s.jsx(Os,{id:"statusNote",placeholder:"Adicione informações sobre esta atualização de status",value:d,onChange:q=>f(q.target.value),className:"h-24"})]}),s.jsxs(Pr,{className:"mt-6",children:[s.jsx(W,{variant:"outline",onClick:()=>l(!1),children:"Cancelar"}),s.jsx(W,{onClick:I,children:"Atualizar Status"})]})]})]})}),s.jsx(Ct,{open:c,onOpenChange:u,children:s.jsxs(Bt,{children:[s.jsxs(Xt,{children:[s.jsx(Yt,{children:"Atualizar Pagamento"}),s.jsx(Zt,{children:"Registre pagamentos ou altere o status de pagamento do pedido"})]}),r&&s.jsxs("div",{className:"space-y-4 py-2",children:[s.jsxs("div",{className:"bg-gray-50 p-4 rounded-md",children:[s.jsx("h3",{className:"font-medium mb-2",children:"Resumo do Pedido"}),s.jsxs("div",{className:"flex justify-between",children:[s.jsx("span",{children:"Valor Total:"}),s.jsx("span",{children:es(r.totalAmount)})]}),Ri(r.paymentHistory).length>0&&s.jsxs("div",{className:"flex justify-between mt-1",children:[s.jsx("span",{children:"Total Pago:"}),s.jsx("span",{children:es(Ri(r.paymentHistory).reduce((q,Q)=>q+Zc(Q.amount),0))})]}),r.paymentStatus!=="pago"&&s.jsxs("div",{className:"flex justify-between mt-1 font-medium",children:[s.jsx("span",{children:"Valor Pendente:"}
776),s.jsx("span",{children:es(Zc(r.totalAmount)-Ri(r.paymentHistory).reduce((q,Q)=>q+Zc(Q.amount),0))})]})]}),s.jsxs("div",{className:"space-y-2 pt-2",children:[s.jsx(Be,{children:"Status de Pagamento"}),s.jsxs("div",{className:"grid grid-cols-1 gap-2",children:[s.jsxs(W,{type:"button",variant:"outline",className:`justify-start ${r.paymentStatus==="pendente"?"bg-primary/10":""}`,onClick:()=>U("pendente"),children:[s.jsx(Ps,{className:"h-4 w-4 mr-2"}),"Pendente"]}),s.jsxs(W,{type:"button",variant:"outline",className:`justify-start ${r.paymentStatus==="parcial"?"bg-primary/10":""}`,onClick:()=>U("parcial"),children:[s.jsx(Pv,{className:"h-4 w-4 mr-2"}),"Pago Parcialmente"]}),s.jsxs(W,{type:"button",variant:"outline",className:`justify-start ${r.paymentStatus==="pago"?"bg-primary/10":""}`,onClick:()=>U("pago"),children:[s.jsx(uS,{className:"h-4 w-4 mr-2"}),"Pago Totalmente"]}),s.jsxs(W,{type:"button",variant:"outline",className:`justify-start ${r.paymentStatus==="atrasado"?"bg-primary/10":""}`,onClick:()=>U("atrasado"),children:[s.jsx(lp,{className:"h-4 w-4 mr-2"}),"Pagamento Atrasado"]})]})]}),s.jsx(Pr,{className:"mt-6",children:s.jsx(W,{variant:"outline",onClick:()=>u(!1),children:"Cancelar"})})]})]})}),s.jsx(wEe,{open:O,onOpenChange:E}),g&&s.jsx("div",{className:"fixed inset-0 bg-black/50 flex items-center justify-center z-50",children:s.jsxs("div",{className:"bg-white p-6 rounded-lg shadow-lg max-w-md w-full flex flex-col items-center",children:[s.jsx("div",{className:"animate-spin rounded-full h-16 w-16 border-b-2 border-primary mb-4"}),s.jsx("h3",{className:"text-xl font-bold",children:"Gerando Nota Fiscal..."}),s.jsx("p",{className:"text-gray-500 mt-2 text-center",children:"Preparando os dados para emissão da nota fiscal."})]})})]})}const Aa=({value:e,className:t="",showSign:r=!0})=>{const n=e<0,a=Math.abs(e),i=new Intl.NumberFormat("pt-BR",{style:"currency",currency:"BRL"}).format(a),o=n?"text-red-500":"text-green-500";return s.jsxs("span",{className:`font-medium ${r?o:""} ${t}`,children:[n&&r?"- ":"",i]})},IEe=()=>{var L,B,R,I,G;const{toast:e}=wn(),[t,r]=b.useState({from:new Date(new Date().getFullYear(),new Date().getMonth(),1),to:new Date}),[n,a]=b.useState(!1),[i,o]=b.useState(!1),[l,c]=b.useState("expense"),{data:u}=Gt({queryKey:["/api/financial/categories"],queryFn:Er({on401:"returnNull"})}),{data:d,isLoading:f,refetch:m}=Gt({queryKey:["/api/financial/summary",t.from.toISOString(),t.to.toISOString()],queryFn:Er({on401:"returnNull"}),enabled:!!t.from&&!!t.to}),{data:p,refetch:v}=Gt({queryKey:["/api/financial/profit-margins",t.from.toISOString(),t.to.toISOString()],queryFn:Er({on401:"returnNull"}),enabled:!!t.from&&!!t.to}),{data:h,refetch:x}=Gt({queryKey:["/api/financial/ad-spending",t.from.toISOString(),t.to.toISOString()],queryFn:Er({on401:"returnNull"}),enabled:!!t.from&&!!t.to}),{data:y,refetch:g}=Gt({queryKey:["/api/financial/production-costs"],queryFn:Er({on401:"returnNull"})}),{data:j,refetch:S}=Gt({queryKey:["/api/financial/goals"],queryFn:Er({on401:"returnNull"})}),{data:w,refetch:N}=Gt({queryKey:["/api/financial/sales-report",t.from.toISOString(),t.to.toISOString()],queryFn:Er({on401:"returnNull"}),enabled:!!t.from&&!!t.to}),P=bu({description:It().min(3,"Descrição deve ter pelo menos 3 caracteres"),amount:It().min(1,"Valor é obrigatório"),categoryId:It().min(1,"Categoria é obrigatória"),type:Yx(["income","expense"]),notes:It().optional()}),C=bu({title:It().min(3,"TÃtulo deve ter pelo menos 3 caracteres"),targetAmount:It().min(1,"Valor da meta é obrigatório"),description:It().optional(),category:It().min(1,"Categoria é obrigatória")}),A=ko({resolver:Jl(P),defaultValues:{description:"",amount:"",categoryId:"",type:l,notes:""}}),O=ko({resolver:Jl(C),defaultValues:{title:"",targetAmount:"",description:"",category:""}}),E=Kt({mutationFn:async()=>{const U=await ft("POST","/api/financial/init-categories");if(!U.ok)throw new Error("Erro ao inicializar categorias");return await U.json()},onSuccess:()=>{e({title:"Categorias criadas",description:"Categorias especÃficas da confecção foram criadas com sucesso."}
776),hr.invalidateQueries({queryKey:["/api/financial/categories"]})},onError:()=>{e({title:"Erro",description:"Erro ao criar categorias padrão.",variant:"destructive"})}}),k=Kt({mutationFn:async U=>{const K=await ft("POST","/api/financial/transactions",{...U,amount:parseFloat(U.amount.replace(/[^0-9,.-]/g,"").replace(",",".")),date:new Date});if(!K.ok)throw new Error("Erro ao adicionar transação");return await K.json()},onSuccess:()=>{a(!1),A.reset(),e({title:"Transação adicionada",description:"A transação foi adicionada com sucesso."}),m(),v(),x(),g(),N()},onError:()=>{e({title:"Erro",description:"Erro ao adicionar transação.",variant:"destructive"})}}),M=Kt({mutationFn:async U=>{const K=await ft("POST","/api/financial/goals",{...U,targetAmount:parseFloat(U.targetAmount.replace(/[^0-9,.-]/g,"").replace(",",".")),startDate:new Date,targetDate:new Date(Date.now()+7776e6),active:!0});if(!K.ok)throw new Error("Erro ao adicionar meta");return await K.json()},onSuccess:()=>{o(!1),O.reset(),e({title:"Meta criada",description:"A meta financeira foi criada com sucesso."}),S()},onError:()=>{e({title:"Erro",description:"Erro ao criar meta financeira.",variant:"destructive"})}}),D=U=>{k.mutate(U)},F=U=>{M.mutate(U)};return s.jsxs("div",{className:"space-y-6",children:[s.jsxs("div",{className:"flex justify-between items-center",children:[s.jsxs("div",{children:[s.jsx("h1",{className:"text-3xl font-bold",children:"Gestão Financeira - ConfecXpress"}),s.jsx("p",{className:"text-muted-foreground",children:"Controle completo da sua confecção com análises inteligentes"})]}),s.jsxs("div",{className:"flex gap-2",children:[s.jsxs(W,{onClick:()=>{c("expense"),a(!0)},className:"bg-red-500 hover:bg-red-600 text-white",children:[s.jsx(SG,{className:"h-4 w-4 mr-2"}),"Adicionar Despesas"]}),s.jsxs(W,{variant:"outline",onClick:()=>E.mutate(),disabled:E.isPending,children:[E.isPending?s.jsx(Qr,{className:"h-4 w-4 animate-spin mr-2"}):s.jsx($m,{className:"h-4 w-4 mr-2"}),"Configurar Categorias"]}),s.jsxs(W,{onClick:()=>{m(),v(),x(),g(),S(),N()},children:[s.jsx(Qr,{className:"h-4 w-4 mr-2"}),"Atualizar Dados"]})]})]}),s.jsxs("div",{className:"grid gap-4 md:grid-cols-2 lg:grid-cols-4",children:[s.jsxs(fe,{children:[s.jsxs(Me,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[s.jsx(De,{className:"text-sm font-medium",children:"Receitas Totais"}),s.jsx(tm,{className:"h-4 w-4 text-green-600"})]}),s.jsxs(me,{children:[s.jsx("div",{className:"text-2xl font-bold",children:s.jsx(Aa,{value:(d==null?void 0:d.totalIncome)||0,showSign:!1})}),s.jsxs("p",{className:"text-xs text-muted-foreground",children:["+",(((d==null?void 0:d.totalIncome)||0)/((d==null?void 0:d.totalExpense)||1)*100).toFixed(1),"% vs gastos"]})]})]}),s.jsxs(fe,{children:[s.jsxs(Me,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[s.jsx(De,{className:"text-sm font-medium",children:"Gastos Totais"}),s.jsx(DG,{className:"h-4 w-4 text-red-600"})]}),s.jsxs(me,{children:[s.jsx("div",{className:"text-2xl font-bold",children:s.jsx(Aa,{value:(d==null?void 0:d.totalExpense)||0,showSign:!1})}),s.jsx("p",{className:"text-xs text-muted-foreground",children:"Inclui materiais, produção e marketing"})]})]}),s.jsxs(fe,{children:[s.jsxs(Me,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[s.jsx(De,{className:"text-sm font-medium",children:"Lucro LÃquido"}),s.jsx(lG,{className:"h-4 w-4 text-blue-600"})]}),s.jsxs(me,{children:[s.jsx("div",{className:"text-2xl font-bold",children:s.jsx(Aa,{value:((d==null?void 0:d.totalIncome)||0)-((d==null?void 0:d.totalExpense)||0)})}),s.jsxs("p",{className:"text-xs text-muted-foreground",children:["Margem: ",d!=null&&d.totalIncome?((d.totalIncome-((d==null?void 0:d.totalExpense)||0))/d.totalIncome*100).toFixed(1):0,"%"]})]})]}),s.jsxs(fe,{children:[s.jsxs(Me,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[s.jsx(De,{className:"text-sm font-medium",children:"Gastos com Anúncios"}),s.jsx(HT,{className:"h-4 w-4 text-purple-600"})]}),s.jsxs(me,{children:[s.jsx("div",{className:"text-2xl font-bold",children:s.jsx(Aa,{value:(h==null?void 0:h.totalSpent)||0,showSign:!1})}),s.jsxs("p",{className:"text-xs text-muted-foreground",children:["ROI: ",h!=null&&h.totalSpent?(((d==null?void 0:d.totalIncome)||0)/h.totalSpent*100).toFixed(1):0,"%"]})]})]})]}),s.jsxs(ql,{defaultValue:"overview",className:"space-y-4",children:[s.jsxs(Ao,{children:[s.jsx(vt,{value:"overview",children:"Visão Geral"}),s.jsx(vt,{value:"materials",children:"Materiais & Produção"}),s.jsx(vt,{value:"sales",children:"Vendas & Margens"}),s.jsx(vt,{value:"ads",children:"Marketing & Anúncios"}),s.jsx(vt,{value:"goals",children:"Metas & Planejamento"})]}),s.jsx(xt,{value:"overview",className:"space-y-4",children:s.jsxs("div",{className:"grid gap-4 md:grid-cols-2",children:[s.jsxs(fe,{children:[s.jsxs(Me,{children:[s.jsx(De,{children:"Ações Rápidas"}),s.jsx(Ye,{children:"Adicione gastos e receitas rapidamente"})]}),s.jsx(me,{className:"space-y-4",children:s.jsxs("div",{className:"grid grid-cols-2 gap-2",children:[s.jsx(Ct,{open:n,onOpenChange:a,children:s.jsx(Xc,{asChild:!0,children:s.jsxs(W,{variant:"outline",className:"h-20 flex flex-col gap-2",onClick:()=>c("expense"),children:[s.jsx(QH,{className:"h-5 w-5 text-red-500"}),s.jsx("span",{className:"text-sm",children:"Adicionar Gasto"})]})})}),s.jsx(Ct,{open:n,onOpenChange:a,children:s.jsx(Xc,{asChild:!0,children:s.jsxs(W,{variant:"outline",className:"h-20 flex flex-col gap-2",onClick:()=>c("income"),children:[s.jsx(JH,{className:"h-5 w-5 text-green-500"}),s.jsx("span",{className:"text-sm",children:"Adicionar Venda"})]})})}),s.jsx(Ct,{open:i,onOpenChange:o,children:s.jsx(Xc,{asChild:!0,children:s.jsxs(W,{variant:"outline",className:"h-20 flex flex-col gap-2",children:[s.jsx(D1,{className:"h-5 w-5 text-blue-500"}),s.jsx("span",{className:"text-sm",children:"Nova Meta"})]})})}),s.jsxs(W,{variant:"outline",className:"h-20 flex flex-col gap-2",children:[s.jsx(oc,{className:"h-5 w-5 text-purple-500"}),s.jsx("span",{className:"text-sm",children:"Relatórios"})]})]})})]}),s.jsxs(fe,{children:[s.jsxs(Me,{children:[s.jsx(De,{children:"Produtos Mais Vendidos"}),s.jsx(Ye,{children:"Top vendas do perÃodo"})]}),s.jsx(me,{children:s.jsx("div",{className:"space-y-2",children:((L=w==null?void 0:w.topProducts)==null?void 0:L.slice(0,5).map((U,K)=>s.jsxs("div",{className:"flex justify-between items-center",children:[s.jsx("span",{className:"text-sm",children:U.name}),s.jsxs("div",{className:"text-right",children:[s.jsx("div",{className:"text-sm font-medium",children:s.jsx(Aa,{value:U.sales,showSign:!1})}),s.jsxs("div",{className:"text-xs text-muted-foreground",children:[U.quantity," un."]})]})]},K)))||s.jsx("p",{className:"text-sm text-muted-foreground",children:"Nenhuma venda registrada ainda. Adicione suas primeiras vendas!"})})})]})]})}),s.jsx(xt,{value:"materials",className:"space-y-4",children:s.jsxs("div",{className:"grid gap-4 md:grid-cols-2",children:[s.jsxs(fe,{children:[s.jsxs(Me,{children:[s.jsxs(De,{className:"flex items-center gap-2",children:[s.jsx(W5,{className:"h-5 w-5"}),"Custos de Produção"]}),s.jsx(Ye,{children:"Análise detalhada por categoria"})]}),s.jsx(me,{children:s.jsx("div",{className:"space-y-3",children:((B=y==null?void 0:y.costsByCategory)==null?void 0:B.map((U,K)=>s.jsxs("div",{className:"flex justify-between items-center p-3 bg-muted rounded-lg",children:[s.jsx("span",{className:"text-sm font-medium",children:U.category}),s.jsxs("div",{className:"text-right",children:[s.jsx("div",{className:"text-sm font-semibold",children:s.jsx(Aa,{value:U.amount,showSign:!1})}),s.jsxs("div",{className:"text-xs text-muted-foreground",children:[U.transactions," transações"]})]})]},K)))||s.jsx("p",{className:"text-sm text-muted-foreground",children:"Nenhum custo de produção registrado. Comece adicionando gastos com materiais!"})})})]}),s.jsxs(fe,{children:[s.jsxs(Me,{children:[s.jsxs(De,{className:"flex items-center gap-2",children:[s.jsx(Vm,{className:"h-5 w-5"}),"LogÃstica & Entregas"]}),s.jsx(Ye,{children:"Custos de frete e entregas"})]}),s.jsx(me,{children:s.jsxs("div",{className:"text-center py-8",children:[s.jsx(Vm,{className:"h-12 w-12 mx-auto text-muted-foreground mb-4"}),s.jsx("p",{className:"text-sm text-muted-foreground",children:"Adicione gastos com logÃstica e entregas para ver a análise aqui"})]})})]})]})}),s.jsx(xt,{value:"sales",className:"space-y-4",children:s.jsxs("div",{className:"grid gap-4 md:grid-cols-2",children:[s.jsxs(fe,{children:[s.jsxs(Me,{children:[s.jsx(De,{children:"Análise de Margens de Lucro"}),s.jsx(Ye,{children:"Rentabilidade por produto"})]}),s.jsx(me,{children:s.jsx("div",{className:"space-y-3",children:((R=p==null?void 0:p.margins)==null?void 0:R.map((U,K)=>s.jsxs("div",{className:"flex justify-between items-center p-3 bg-muted rounded-lg",children:[s.jsxs("div",{children:[s.jsx("span",{className:"text-sm font-medium",children:U.productType}),s.jsxs("div",{className:"text-xs text-muted-foreground",children:[U.quantity," vendas"]})]}),s.jsxs("div",{className:"text-right",children:[s.jsx("div",{className:"text-sm font-semibold",children:s.jsx(Aa,{value:U.profit})}),s.jsxs("div",{className:`text-xs ${U.margin>0?"text-green-600":"text-red-600"}`,children:[U.margin.toFixed(1),"% margem"]})]})]},K)))||s.jsx("p",{className:"text-sm text-muted-foreground",children:"Nenhuma venda registrada. Adicione vendas para ver a análise de margem!"})})})]}),s.jsxs(fe,{children:[s.jsxs(Me,{children:[s.jsx(De,{children:"Resumo de Vendas"}),s.jsx(Ye,{children:"Performance geral do perÃodo"})]}),s.jsx(me,{children:s.jsxs("div",{className:"space-y-4",children:[s.jsxs("div",{className:"flex justify-between",children:[s.jsx("span",{className:"text-sm",children:"Total de Vendas:"}),s.jsx("span",{className:"font-semibold",children:s.jsx(Aa,{value:(p==null?void 0:p.totalSales)||0,showSign:!1})})]}),s.jsxs("div",{className:"flex justify-between",children:[s.jsx("span",{className:"text-sm",children:"Lucro Total:"}),s.jsx("span",{className:"font-semibold",children:s.jsx(Aa,{value:(p==null?void 0:p.totalProfit)||0})})]}),s.jsxs("div",{className:"flex justify-between",children:[s.jsx("span",{className:"text-sm",children:"Margem Média:"}),s.jsxs("span",{className:`font-semibold ${((p==null?void 0:p.averageMargin)||0)>0?"text-green-600":"text-red-600"}`,children:[((p==null?void 0:p.averageMargin)||0).toFixed(1),"%"]})]})]})})]})]})}),s.jsx(xt,{value:"ads",className:"space-y-4",children:s.jsxs("div",{className:"grid gap-4 md:grid-cols-2",children:[s.jsxs(fe,{children:[s.jsxs(Me,{children:[s.jsxs(De,{className:"flex items-center gap-2",children:[s.jsx(HT,{className:"h-5 w-5"}),"Gastos por Plataforma"]}),s.jsx(Ye,{children:"Investimento em anúncios"})]}),s.jsx(me,{children:s.jsx("div",{className:"space-y-3",children:((I=h==null?void 0:h.byPlatform)==null?void 0:I.map((U,K)=>s.jsxs("div",{className:"flex justify-between items-center p-3 bg-muted rounded-lg",children:[s.jsx("span",{className:"text-sm font-medium",children:U.platform}),s.jsxs("div",{className:"text-right",children:[s.jsx("div",{className:"text-sm font-semibold",children:s.jsx(Aa,{value:U.amount,showSign:!1})}),s.jsxs("div",{className:"text-xs text-muted-foreground",children:[U.transactions," anúncios"]})]})]},K)))||s.jsx("p",{className:"text-sm text-muted-foreground",children:"Nenhum gasto com anúncios registrado. Adicione investimentos em marketing!"})})})]}),s.jsxs(fe,{children:[s.jsxs(Me,{children:[s.jsx(De,{children:"ROI dos Anúncios"}),s.jsx(Ye,{children:"Retorno sobre investimento"})]}),s.jsx(me,{children:s.jsxs("div",{className:"text-center py-8",children:[s.jsx("div",{className:"text-3xl font-bold mb-2",children:h!=null&&h.totalSpent&&(d!=null&&d.totalIncome)?`${(d.totalIncome/h.totalSpent*100).toFixed(1)}%`:"0%"}),s.jsx("p",{className:"text-sm text-muted-foreground",children:"ROI dos investimentos em marketing"})]})})]})]})}),s.jsx(xt,{value:"goals",className:"space-y-4",children:s.jsxs("div",{className:"grid gap-4 md:grid-cols-2",children:[s.jsxs(fe,{children:[s.jsxs(Me,{children:[s.jsxs(De,{className:"flex items-center gap-2",children:[s.jsx(D1,{className:"h-5 w-5"}),"Metas Ativas"]}),s.jsx(Ye,{children:"Acompanhe seu progresso"})]}),s.jsx(me,{children:s.jsx("div",{className:"space-y-3",children:((G=j==null?void 0:j.data)==null?void 0:G.map((U,K)=>s.jsxs("div",{className:"p-3 bg-muted rounded-lg",children:[s.jsxs("div",{className:"flex justify-between items-center mb-2",children:[s.jsx("span",{className:"text-sm font-medium",children:U.title}),s.jsx("span",{className:"text-sm font-semibold",children:s.jsx(Aa,{value:U.targetAmount,showSign:!1})})]}),s.jsx("div",{className:"w-full bg-gray-200 rounded-full h-2",children:s.jsx("div",{className:"bg-blue-600 h-2 rounded-full",style:{width:`${Math.min((U.currentAmount||0)/U.targetAmount*100,100)}%`}})}),s.jsxs("div",{className:"text-xs text-muted-foreground mt-1",children:[((U.currentAmount||0)/U.targetAmount*100).toFixed(1),"% concluÃdo"]})]},K)))||s.jsx("p",{className:"text-sm text-muted-foreground",children:"Nenhuma meta definida. Crie metas financeiras para acompanhar seu progresso!"})})})]}),s.jsxs(fe,{children:[s.jsxs(Me,{children:[s.jsx(De,{children:"Criar Nova Meta"}),s.jsx(Ye,{children:"Defina objetivos financeiros"})]}),s.jsx(me,{children:s.jsx(Ct,{open:i,onOpenChange:o,children:s.jsx(Xc,{asChild:!0,children:s.jsxs(W,{className:"w-full",children:[s.jsx($m,{className:"h-4 w-4 mr-2"}),"Adicionar Meta"]})})})})]})]})})]}),s.jsx(Ct,{open:n,onOpenChange:a,children:s.jsxs(Bt,{className:"sm:max-w-[425px]",children:[s.jsxs(Xt,{children:[s.jsx(Yt,{children:l==="income"?"Adicionar Venda":"Adicionar Gasto"}),s.jsx(Zt,{children:l==="income"?"Registre uma nova venda para controlar suas receitas":"Registre um novo gasto para controlar suas despesas"})]}),s.jsx(oi,{...A,children:s.jsxs("form",{onSubmit:A.handleSubmit(D),className:"space-y-4",children:[s.jsx(ke,{control:A.control,name:"description",render:({field:U})=>s.jsxs(Te,{children:[s.jsx(Ae,{children:"Descrição"}),s.jsx(Ee,{children:s.jsx(ve,{placeholder:l==="income"?"Ex: Venda de 50 camisetas":"Ex: Compra de tecido",...U})}),s.jsx(He,{})]})}),s.jsx(ke,{control:A.control,name:"amount",render:({field:U})=>s.jsxs(Te,{children:[s.jsx(Ae,{children:"Valor (R$)"}),s.jsx(Ee,{children:s.jsx(ve,{placeholder:"0,00",...U})}),s.jsx(He,{})]})}),s.jsx(ke,{control:A.control,name:"categoryId",render:({field:U})=>{var K,ce;return s.jsxs(Te,{children:[s.jsx(Ae,{children:"Categoria"}),s.jsxs(Jr,{onValueChange:U.onChange,defaultValue:U.value,children:[s.jsx(Ee,{children:s.jsx(Fr,{children:s.jsx(en,{placeholder:"Selecione uma categoria"})})}),s.jsx(Vr,{children:(ce=(K=u==null?void 0:u.data)==null?void 0:K.filter(pe=>pe.type===l))==null?void 0:ce.map(pe=>s.jsx(xe,{value:pe.id.toString(),children:pe.name},pe.id))})]}),s.jsx(He,{})]})}}),s.jsx(ke,{control:A.control,name:"notes",render:({field:U})=>s.jsxs(Te,{children:[s.jsx(Ae,{children:"Observações (opcional)"}),s.jsx(Ee,{children:s.jsx(Os,{placeholder:"Detalhes adicionais...",...U})}),s.jsx(He,{})]})}),s.jsx("input",{type:"hidden",...A.register("type"),value:l}),s.jsx(Pr,{children:s.jsxs(W,{type:"submit",disabled:k.isPending,children:[k.isPending?s.jsx(Qr,{className:"h-4 w-4 animate-spin mr-2"}):null,l==="income"?"Adicionar Venda":"Adicionar Gasto"]})})]})})]})}),s.jsx(Ct,{open:i,onOpenChange:o,children:s.jsxs(Bt,{className:"sm:max-w-[425px]",children:[s.jsxs(Xt,{children:[s.jsx(Yt,{children:"Criar Nova Meta Financeira"}),s.jsx(Zt,{children:"Defina um objetivo financeiro para acompanhar seu progresso"})]}),s.jsx(oi,{...O,children:s.jsxs("form",{onSubmit:O.handleSubmit(F),className:"space-y-4",children:[s.jsx(ke,{control:O.control,name:"title",render:({field:U})=>s.jsxs(Te,{children:[s.jsx(Ae,{children:"TÃtulo da Meta"}),s.jsx(Ee,{children:s.jsx(ve,{placeholder:"Ex: Faturamento mensal",...U})}),s.jsx(He,{})]})}),s.jsx(ke,{control:O.control,name:"targetAmount",render:({field:U})=>s.jsxs(Te,{children:[s.jsx(Ae,{children:"Valor da Meta (R$)"}),s.jsx(Ee,{children:s.jsx(ve,{placeholder:"0,00",...U})}),s.jsx(He,{})]})}),s.jsx(ke,{control:O.control,name:"category",render:({field:U})=>s.jsxs(Te,{children:[s.jsx(Ae,{children:"Categoria"}),s.jsxs(Jr,{onValueChange:U.onChange,defau
776ltValue:U.value,children:[s.jsx(Ee,{children:s.jsx(Fr,{children:s.jsx(en,{placeholder:"Selecione uma categoria"})})}),s.jsxs(Vr,{children:[s.jsx(xe,{value:"vendas",children:"Vendas"}),s.jsx(xe,{value:"lucro",children:"Lucro"}),s.jsx(xe,{value:"reducao-custos",children:"Redução de Custos"}),s.jsx(xe,{value:"marketing",children:"Marketing"})]})]}),s.jsx(He,{})]})}),s.jsx(ke,{control:O.control,name:"description",render:({field:U})=>s.jsxs(Te,{children:[s.jsx(Ae,{children:"Descrição (opcional)"}),s.jsx(Ee,{children:s.jsx(Os,{placeholder:"Detalhes sobre a meta...",...U})}),s.jsx(He,{})]})}),s.jsx(Pr,{children:s.jsxs(W,{type:"submit",disabled:M.isPending,children:[M.isPending?s.jsx(Qr,{className:"h-4 w-4 animate-spin mr-2"}):null,"Criar Meta"]})})]})})]})})]})};var OC="Switch",[$Ee,wRe]=kr(OC),[LEe,FEe]=$Ee(OC),CB=b.forwardRef((e,t)=>{const{__scopeSwitch:r,name:n,checked:a,defaultChecked:i,required:o,disabled:l,value:c="on",onCheckedChange:u,form:d,...f}=e,[m,p]=b.useState(null),v=it(t,j=>p(j)),h=b.useRef(!1),x=m?d||!!m.closest("form"):!0,[y=!1,g]=ya({prop:a,defaultProp:i,onChange:u});return s.jsxs(LEe,{scope:r,checked:y,disabled:l,children:[s.jsx(Oe.button,{type:"button",role:"switch","aria-checked":y,"aria-required":o,"data-state":EB(y),"data-disabled":l?"":void 0,disabled:l,value:c,...f,ref:v,onClick:ue(e.onClick,j=>{g(S=>!S),x&&(h.current=j.isPropagationStopped(),h.current||j.stopPropagation())})}),x&&s.jsx(VEe,{control:m,bubbles:!h.current,name:n,value:c,checked:y,required:o,disabled:l,form:d,style:{transform:"translateX(-100%)"}})]})});CB.displayName=OC;var AB="SwitchThumb",TB=b.forwardRef((e,t)=>{const{__scopeSwitch:r,...n}=e,a=FEe(AB,r);return s.jsx(Oe.span,{"data-state":EB(a.checked),"data-disabled":a.disabled?"":void 0,...n,ref:t})});TB.displayName=AB;var VEe=e=>{const{control:t,checked:r,bubbles:n=!0,...a}=e,i=b.useRef(null),o=vC(r),l=TS(t);return b.useEffect(()=>{const c=i.current,u=window.HTMLInputElement.prototype,f=Object.getOwnPropertyDescriptor(u,"checked").set;if(o!==r&&f){const m=new Event("click",{bubbles:n});f.call(c,r),c.dispatchEvent(m)}},[o,r,n]),s.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:r,...a,tabIndex:-1,ref:i,style:{...e.style,...l,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function EB(e){return e?"checked":"unchecked"}var OB=CB,zEe=TB;const Vn=b.forwardRef(({className:e,...t},r)=>s.jsx(OB,{className:ie("peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",e),...t,ref:r,children:s.jsx(zEe,{className:ie("pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0")})}));Vn.displayName=OB.displayName;var _C="Collapsible",[BEe,_B]=kr(_C),[UEe,kC]=BEe(_C),kB=b.forwardRef((e,t)=>{const{__scopeCollapsible:r,open:n,defaultOpen:a,disabled:i,onOpenChange:o,...l}=e,[c=!1,u]=ya({prop:n,defaultProp:a,onChange:o});return s.jsx(UEe,{scope:r,disabled:i,contentId:ha(),open:c,onOpenToggle:b.useCallback(()=>u(d=>!d),[u]),children:s.jsx(Oe.div,{"data-state":DC(c),"data-disabled":i?"":void 0,...l,ref:t})})});kB.displayName=_C;var MB="CollapsibleTrigger",DB=b.forwardRef((e,t)=>{const{__scopeCollapsible:r,...n}=e,a=kC(MB,r);return s.jsx(Oe.button,{type:"button","aria-controls":a.contentId,"aria-expanded":a.open||!1,"data-state":DC(a.open),"data-disabled":a.disabled?"":void 0,disabled:a.disabled,...n,ref:t,onClick:ue(e.onClick,a.onOpenToggle)})});DB.displayName=MB;var MC="CollapsibleContent",RB=b.forwardRef((e,t)=>{const{forceMount:r,...n}=e,a=kC(MC,e.__scopeCollapsible);return s.jsx(Qn,{present:r||a.open,children:({present:i})=>s.jsx(WEe,{...n,ref:t,present:i})})});RB.displayName=MC;var WEe=b.forwardRef((e,t)=>{const{__scopeCollapsible:r,present:n,children:a,...i}=e,o=kC(MC,r),[l,c]=b.useState(n),u=b.useRef(null),d=it(t,u),f=b.useRef(0),m=f.current,p=b.useRef(0),v=p.current,h=o.open||l,x=b.useRef(h),y=b.useRef(void 0);return b.useEffect(()=>{const g=requestAnimationFrame(()=>x.current=!1);return()=>cancelAnimationFrame(g)},[]),gr(()=>{const g=u.current;if(g){y.current=y.current||{transitionDuration:g.style.transitionDuration,animationName:g.style.animationName},g.style.transitionDuration="0s",g.style.animationName="none";const j=g.getBoundingClientRect();f.current=j.height,p.current=j.width,x.current||(g.style.transitionDuration=y.current.transitionDuration,g.style.animationName=y.current.animationName),c(n)}},[o.open,n]),s.jsx(Oe.div,{"data-state":DC(o.open),"data-disabled":o.disabled?"":void 0,id:o.contentId,hidden:!h,...i,ref:d,style:{"--radix-collapsible-content-height":m?`${m}px`:void 0,"--radix-collapsible-content-width":v?`${v}px`:void 0,...e.style},children:h&&a})});function DC(e){return e?"open":"closed"}var qEe=kB,HEe=DB,GEe=RB,Ti="Accordion",KEe=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[RC,XEe,YEe]=sp(Ti),[
776U0,NRe]=kr(Ti,[YEe,_B]),IC=_B(),IB=_.forwardRef((e,t)=>{const{type:r,...n}=e,a=n,i=n;return s.jsx(RC.Provider,{scope:e.__scopeAccordion,children:r==="multiple"?s.jsx(eOe,{...i,ref:t}):s.jsx(JEe,{...a,ref:t})})});IB.displayName=Ti;var[$B,ZEe]=U0(Ti),[LB,QEe]=U0(Ti,{collapsible:!1}),JEe=_.forwardRef((e,t)=>{const{value:r,defaultValue:n,onValueChange:a=()=>{},collapsible:i=!1,...o}=e,[l,c]=ya({prop:r,defaultProp:n,onChange:a});return s.jsx($B,{scope:e.__scopeAccordion,value:l?[l]:[],onItemOpen:c,onItemClose:_.useCallback(()=>i&&c(""),[i,c]),children:s.jsx(LB,{scope:e.__scopeAccordion,collapsible:i,children:s.jsx(FB,{...o,ref:t})})})}),eOe=_.forwardRef((e,t)=>{const{value:r,defaultValue:n,onValueChange:a=()=>{},...i}=e,[o=[],l]=ya({prop:r,defaultProp:n,onChange:a}),c=_.useCallback(d=>l((f=[])=>[...f,d]),[l]),u=_.useCallback(d=>l((f=[])=>f.filter(m=>m!==d)),[l]);return s.jsx($B,{scope:e.__scopeAccordion,value:o,onItemOpen:c,onItemClose:u,children:s.jsx(LB,{scope:e.__scopeAccordion,collapsible:!0,children:s.jsx(FB,{...i,ref:t})})})}),[tOe,W0]=U0(Ti),FB=_.forwardRef((e,t)=>{const{__scopeAccordion:r,disabled:n,dir:a,orientation:i="vertical",...o}=e,l=_.useRef(null),c=it(l,t),u=XEe(r),f=Fd(a)==="ltr",m=ue(e.onKeyDown,p=>{var C;if(!KEe.includes(p.key))return;const v=p.target,h=u().filter(A=>{var O;return!((O=A.ref.current)!=null&&O.disabled)}),x=h.findIndex(A=>A.ref.current===v),y=h.length;if(x===-1)return;p.preventDefault();let g=x;const j=0,S=y-1,w=()=>{g=x+1,g>S&&(g=j)},N=()=>{g=x-1,g<j&&(g=S)};switch(p.key){case"Home":g=j;break;case"End":g=S;break;case"ArrowRight":i==="horizontal"&&(f?w():N());break;case"ArrowDown":i==="vertical"&&w();break;case"ArrowLeft":i==="horizontal"&&(f?N():w());break;case"ArrowUp":i==="vertical"&&N();break}const P=g%y;(C=h[P].ref.current)==null||C.focus()});return s.jsx(tOe,{scope:r,disabled:n,direction:a,orientation:i,children:s.jsx(RC.Slot,{scope:r,children:s.jsx(Oe.div,{...o,"data-orientation":i,ref:c,onKeyDown:n?void 0:m})})})}),Qx="AccordionItem",[rOe,$C]=U0(Qx),VB=_.forwardRef((e,t)=>{const{__scopeAccordion:r,value:n,...a}=e,i=W0(Qx,r),o=ZEe(Qx,r),l=IC(r),c=ha(),u=n&&o.value.includes(n)||!1,d=i.disabled||e.disabled;return s.jsx(rOe,{scope:r,open:u,disabled:d,triggerId:c,children:s.jsx(qEe,{"data-orientation":i.orientation,"data-state":HB(u),...l,...a,ref:t,disabled:d,open:u,onOpenChange:f=>{f?o.onItemOpen(n):o.onItemClose(n)}})})});VB.displayName=Qx;var zB="AccordionHeader",BB=_.forwardRef((e,t)=>{const{__scopeAccordion:r,...n}=e,a=W0(Ti,r),i=$C(zB,r);return s.jsx(Oe.h3,{"data-orientation":a.orientation,"data-state":HB(i.open),"data-disabled":i.disabled?"":void 0,...n,ref:t})});BB.displayName=zB;var UN="AccordionTrigger",UB=_.forwardRef((e,t)=>{const{__scopeAccordion:r,...n}=e,a=W0(Ti,r),i=$C(UN,r),o=QEe(UN,r),l=IC(r);return s.jsx(RC.ItemSlot,{scope:r,children:s.jsx(HEe,{"aria-disabled":i.open&&!o.collapsible||void 0,"data-orientation":a.orientation,id:i.triggerId,...l,...n,ref:t})})});UB.displayName=UN;var WB="AccordionContent",qB=_.forwardRef((e,t)=>{const{__scopeAccordion:r,...n}=e,a=W0(Ti,r),i=$C(WB,r),o=IC(r);return s.jsx(GEe,{role:"region","aria-labelledby":i.triggerId,"data-orientation":a.orientation,...o,...n,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});qB.displayName=WB;function HB(e){return e?"open":"closed"}var nOe=IB,aOe=VB,sOe=BB,GB=UB,KB=qB;const iOe=nOe,XB=b.forwardRef(({className:e,...t},r)=>s.jsx(aOe,{ref:r,className:ie("border-b",e),...t}));XB.displayName="AccordionItem";const YB=b.forwardRef(({className:e,children:t,...r},n)=>s.jsx(sOe,{className:"flex",children:s.jsxs(GB,{ref:n,className:ie("flex flex-1 items-center justify-between py-4 font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180",e),...r,children:[t,s.jsx(os,{className:"h-4 w-4 shrink-0 transition-transform duration-200"})]})}));YB.displayName=GB.displayName;const ZB=b.forwardRef(({className:e,children:t,...r},n)=>s.jsx(KB,{ref:n,className:"overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...r,children:s.jsx("div",{className:ie("pb-4 pt-0",e),children:t})}));ZB.displayName=KB.displayName;function oOe(){const{toast:e}=wn(),[t,r]=b.useState(null),[n,a]=b.useState(!1),i=Ce.object({key:Ce.string().nonempty("O ID do pixel é obrigatório"),value:Ce.string().nonempty("O código do pixel é obrigatório"),active:Ce.boolean().default(!0),description:Ce.string().optional()}),{data:o,isLoading:l}=Gt({queryKey:["/api/admin/settings/pixels"],queryFn:Er({on401:"throw"})}),c=o!=null&&o.success?o.data:[],u=Kt({mutationFn:async g=>await ft("POST","/api/admin/settings/pixels",g),onSuccess:()=>{e({title:"Pixel salvo com sucesso!",description:"O pixel de rastreamento foi configurado.",variant:"default"}
776),hr.invalidateQueries({queryKey:["/api/admin/settings/pixels"]}),a(!1)},onError:g=>{e({title:"Erro ao salvar o pixel",description:g.message,variant:"destructive"})}}),d=Kt({mutationFn:async g=>await ft("POST",`/api/admin/settings/pixels/test/${g}`,{}),onSuccess:()=>{e({title:"Teste de pixel realizado",description:"O evento de teste foi disparado com sucesso.",variant:"default"})},onError:g=>{e({title:"Erro ao testar o pixel",description:g.message,variant:"destructive"})}}),f=Kt({mutationFn:async({id:g,active:j})=>await ft("PATCH",`/api/admin/settings/pixels/${g}/toggle`,{active:j}),onSuccess:()=>{hr.invalidateQueries({queryKey:["/api/admin/settings/pixels"]})},onError:g=>{e({title:"Erro ao atualizar status do pixel",description:g.message,variant:"destructive"})}}),m=ko({resolver:Jl(i),defaultValues:{key:"",value:"",description:"",active:!0}}),p=g=>{r(g);const j=c.find(S=>S.category===g);j?m.reset({key:j.key,value:j.value,description:j.description||"",active:j.active}):m.reset({key:"",value:"",description:v(g),active:!0}),a(!0)};function v(g){switch(g){case"meta":return"Pixel do Facebook/Instagram para rastreamento de conversões";case"google":return"Tag do Google Ads para rastreamento de campanhas";case"tiktok":return"Pixel do TikTok para rastreamento de eventos";case"pinterest":return"Tag do Pinterest para rastreamento de conversões";default:return""}}function h(g){switch(g){case"meta":return s.jsx(Dm,{className:"h-5 w-5"});case"google":return s.jsx(Cv,{className:"h-5 w-5"});case"tiktok":return s.jsx(Mm,{className:"h-5 w-5"});case"pinterest":return s.jsx(hS,{className:"h-5 w-5"});default:return s.jsx(Mm,{className:"h-5 w-5"})}}function x(g){switch(g){case"meta":return"Meta Pixel (Facebook/Instagram)";case"google":return"Google Ads Tracking";case"tiktok":return"TikTok Pixel";case"pinterest":return"Pinterest Tag";default:return"Pixel Desconhecido"}}const y=g=>{if(!t)return;const j=c.find(S=>S.category===t);u.mutate({id:j==null?void 0:j.id,key:g.key,value:g.value,description:g.description,active:g.active,category:t})};return s.jsxs("div",{className:"space-y-6",children:[s.jsxs("div",{className:"flex justify-between items-center",children:[s.jsx("h3",{className:"text-lg font-medium",children:"Pixels de Campanhas Publicitárias"}),s.jsxs(W,{variant:"outline",size:"sm",onClick:()=>hr.invalidateQueries({queryKey:["/api/admin/settings/pixels"]}),children:[s.jsx(Qr,{className:"h-4 w-4 mr-2"}),"Atualizar"]})]}),s.jsxs("div",{className:"grid gap-4 md:grid-cols-2",children:[s.jsx(Ng,{type:"meta",data:c.find(g=>g.category==="meta"),isLoading:l,onEdit:()=>p("meta"),onToggle:g=>{const j=c.find(S=>S.category==="meta");j&&f.mutate({id:j.id,active:g})},onTest:()=>{const g=c.find(j=>j.category==="meta");g&&d.mutate(g.id.toString())}}),s.jsx(Ng,{type:"google",data:c.find(g=>g.category==="google"),isLoading:l,onEdit:()=>p("google"),onToggle:g=>{const j=c.find(S=>S.category==="google");j&&f.mutate({id:j.id,active:g})},onTest:()=>{const g=c.find(j=>j.category==="google");g&&d.mutate(g.id.toString())}}),s.jsx(Ng,{type:"tiktok",data:c.find(g=>g.category==="tiktok"),isLoading:l,onEdit:()=>p("tiktok"),onToggle:g=>{const j=c.find(S=>S.category==="tiktok");j&&f.mutate({id:j.id,active:g})},onTest:()=>{const g=c.find(j=>j.category==="tiktok");g&&d.mutate(g.id.toString())}}),s.jsx(Ng,{type:"pinterest",data:c.find(g=>g.category==="pinterest"),isLoading:l,onEdit:()=>p("pinterest"),onToggle:g=>{const j=c.find(S=>S.category==="pinterest");j&&f.mutate({id:j.id,active:g})},onTest:()=>{const g=c.find(j=>j.category==="pinterest");g&&d.mutate(g.id.toString())}})]}),s.jsx("div",{className:"mt-4 rounded-md bg-yellow-50 p-4 border border-yellow-200",children:s.jsxs("div",{className:"flex items-start",children:[s.jsx(lp,{className:"text-yellow-500 mt-0.5 h-5 w-5 mr-3 flex-shrink-0"}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-sm font-medium text-yellow-800",children:"Dicas para configuração de pixels"}),s.jsx("div",{className:"mt-2 text-sm text-yellow-700",children:s.jsxs("ul",{className:"list-disc space-y-1 pl-5",children:[s.jsx("li",{children:"Para Meta Ads (Facebook/Instagram), insira o ID do pixel (ex: 123456789012345)."}),s.jsx("li",{children:"Para Google Ads, insira o ID de conversão (ex: AW-123456789)."}),s.jsx("li",{children:"Para TikTok Ads, insira o ID do pixel (ex: ABCDEFGHIJKLM)."}),s.jsx("li",{children:"Para Pinterest Ads, insira o ID da tag (ex: 123456789012)."}),s.jsx("li",{children:"Após salvar, os pixels serão automaticamente implementados em todas as páginas do site."})]})})]})]})}),s.jsx(Ct,{open:n,onOpenChange:a,children:s.jsxs(Bt,{className:"sm:max-w-[500px]",children:[s.jsxs(Xt,{children:[s.jsx(Yt,{children:t&&s.jsxs("div",{className:"flex items-center",children:[h(t),s.jsx("span",{className:"ml-2",children:x(t)})]})}),s.jsx(Zt,{children:"Configure os detalhes do pixel de rastreamento para suas campanhas publicitárias."})]}),s.jsx(oi,{...m,children:s.jsxs("form",{onSubmit:m.handleSubmit(y),className:"space-y-4",children:[s.jsx(ke,{control:m.control,name:"key",render:({field:g})=>s.jsxs(Te,{children:[s.jsx(Ae,{children:"ID do Pixel"}),s.jsx(Ee,{children:s.jsx(ve,{placeholder:"Ex: 123456789012345",...g})}),s.jsxs(Xg,{children:[t==="meta"&&"ID do pixel do Facebook (formato numérico)",t==="google"&&"ID de conversão do Google (formato AW-123456789)",t==="tiktok"&&"ID do pixel do TikTok",t==="pinterest"&&"ID da tag do Pinterest"]}),s.jsx(He,{})]})}),s.jsx(ke,{control:m.control,name:"value",render:({field:g})=>s.jsxs(Te,{children:[s.jsx(Ae,{children:"Código do Pixel"}),s.jsx(Ee,{children:s.jsx(ve,{...g})}),s.jsx(Xg,{children:"Código completo do pixel ou tag de acompanhamento (opcional)"}),s.jsx(He,{})]})}),s.jsx(ke,{control:m.control,name:"active",render:({field:g})=>s.jsxs(Te,{className:"flex flex-row items-center justify-between rounded-lg border p-3 shadow-sm",children:[s.jsxs("div",{className:"space-y-0.5",children:[s.jsx(Ae,{children:"Ativo"}),s.jsx(Xg,{children:"Ativar ou desativar este pixel de rastreamento"})]}),s.jsx(Ee,{children:s.jsx(Vn,{checked:g.value,onCheckedChange:g.onChange})})]})}),s.jsx(Pr,{children:s.jsx(W,{type:"submit",disabled:u.isPending,children:u.isPending?s.jsxs("div",{className:"flex items-center",children:[s.jsx("span",{className:"h-4 w-4 mr-2 border-2 border-white border-t-transparent roun
776ded-full animate-spin"}),"Salvando..."]}):"Salvar Pixel"})})]})})]})})]})}function Ng({type:e,data:t,isLoading:r,onEdit:n,onToggle:a,onTest:i}){function o(u){switch(u){case"meta":return s.jsx(Dm,{className:"h-8 w-8 text-blue-500"});case"google":return s.jsx(Cv,{className:"h-8 w-8 text-red-500"});case"tiktok":return s.jsx(Mm,{className:"h-8 w-8 text-black"});case"pinterest":return s.jsx(hS,{className:"h-8 w-8 text-red-600"});default:return s.jsx(Mm,{className:"h-8 w-8 text-gray-500"})}}function l(u){switch(u){case"meta":return"Meta Pixel";case"google":return"Google Ads";case"tiktok":return"TikTok Pixel";case"pinterest":return"Pinterest Tag";default:return"Pixel"}}function c(u){switch(u){case"meta":return"bg-blue-50 border-blue-200";case"google":return"bg-red-50 border-red-200";case"tiktok":return"bg-gray-50 border-gray-200";case"pinterest":return"bg-red-50 border-red-200";default:return"bg-gray-50 border-gray-200"}}return s.jsxs("div",{className:`rounded-lg border shadow-sm p-4 ${c(e)}`,children:[s.jsxs("div",{className:"flex justify-between",children:[s.jsxs("div",{className:"flex items-center space-x-3",children:[o(e),s.jsxs("div",{children:[s.jsx("h4",{className:"font-semibold",children:l(e)}),s.jsx("p",{className:"text-sm text-gray-500",children:(t==null?void 0:t.key)||"Não configurado"})]})]}),s.jsx(Vn,{checked:(t==null?void 0:t.active)||!1,onCheckedChange:a,disabled:!t||r})]}),s.jsxs("div",{className:"mt-4 flex gap-2",children:[s.jsx(W,{onClick:n,variant:"outline",size:"sm",className:"flex-1",children:t?"Editar":"Configurar"}),t&&s.jsx(W,{onClick:i,variant:"outline",size:"sm",className:"flex-1",disabled:!t.active,children:"Testar"})]})]})}function Sg(){const[e,t]=wa(),{user:r,logoutMutation:n}=Ld();wn();const[a,i]=b.useState("dashboard");b.useState(!1),b.useEffect(()=>{e.includes("/orders")?i("pedidos"):e.includes("/quotes")?i("formularios"):e.includes("/dashboard")&&i("dashboard")},[e]),Gt({queryKey:["/api/admin/stats/visits"],queryFn:Er({on401:"throw"}),enabled:a==="dashboard"});const{data:o}=Gt({queryKey:["/api/admin/quotes"],queryFn:Er({on401:"throw"}),refetchInterval:6e4}),l=o!=null&&o.success?o.data:[];return b.useEffect(()=>{r||t("/auth")},[r,t]),b.useEffect(()=>{const c=sessionStorage.getItem("adminActiveTab");c&&i(c)},[]),b.useEffect(()=>{sessionStorage.setItem("adminActiveTab",a)},[a]),r?s.jsxs("div",{className:"min-h-screen bg-gray-50",children:[s.jsx("div",{className:"bg-white border-b",children:s.jsxs("div",{className:"container mx-auto px-4 py-3 flex justify-between items-center",children:[s.jsxs("div",{className:"flex items-center",children:[s.jsx("h1",{className:"text-xl font-bold text-blue-900",children:"ConfecXpress"}),s.jsx(Ue,{className:"ml-2 bg-blue-100 text-blue-800 border-blue-200",children:"Admin"})]}),s.jsxs("div",{className:"flex items-center gap-6",children:[s.jsxs(Oo,{children:[s.jsx(_o,{asChild:!0,children:s.jsxs(W,{variant:"ghost",size:"sm",className:"relative",children:[s.jsx(Ty,{className:"h-5 w-5"}),s.jsx("span",{className:"absolute -top-1 -right-1 bg-red-500 text-white text-xs rounded-full w-4 h-4 flex items-center justify-center",children:"3"})]})}),s.jsxs(bi,{align:"end",className:"w-80",children:[s.jsx(hc,{children:"Notificações"}),s.jsx(js,{}),s.jsxs("div",{className:"max-h-72 overflow-auto",children:[s.jsx(Je,{className:"p-3 cursor-pointer",children:s.jsxs("div",{className:"flex items-start gap-2",children:[s.jsx("div",{className:"h-8 w-8 rounded-full bg-blue-100 flex items-center justify-center flex-shrink-0",children:s.jsx(Lt,{className:"h-4 w-4 text-blue-600"})}),s.jsxs("div",{children:[s.jsx("p",{className:"font-medium",children:"Novo orçamento recebido"}),s.jsx("p",{className:"text-sm text-gray-500",children:"Camisetas para empresa XYZ"}),s.jsx("p",{className:"text-xs text-gray-400 mt-1",children:"Há 30 minutos"})]})]})}),s.jsx(Je,{className:"p-3 cursor-pointer",children:s.jsxs("div",{className:"flex items-start gap-2",children:[s.jsx("div",{className:"h-8 w-8 rounded-full bg-green-100 flex items-center justify-center flex-shrink-0",children:s.jsx(mn,{className:"h-4 w-4 text-green-600"})}),s.jsxs("div",{children:[s.jsx("p",{className:"font-medium",children:"Orçamento a
776provado"}),s.jsx("p",{className:"text-sm text-gray-500",children:"Cliente ABC aprovou o orçamento #1234"}),s.jsx("p",{className:"text-xs text-gray-400 mt-1",children:"Há 2 horas"})]})]})}),s.jsx(Je,{className:"p-3 cursor-pointer",children:s.jsxs("div",{className:"flex items-start gap-2",children:[s.jsx("div",{className:"h-8 w-8 rounded-full bg-yellow-100 flex items-center justify-center flex-shrink-0",children:s.jsx(gs,{className:"h-4 w-4 text-yellow-600"})}),s.jsxs("div",{children:[s.jsx("p",{className:"font-medium",children:"Aumento de tráfego"}),s.jsx("p",{className:"text-sm text-gray-500",children:"Seu site teve um aumento de 30% nas visitas hoje"}),s.jsx("p",{className:"text-xs text-gray-400 mt-1",children:"Há 5 horas"})]})]})})]}),s.jsx(js,{}),s.jsx(Je,{className:"text-center cursor-pointer",children:s.jsx(W,{variant:"ghost",size:"sm",className:"w-full",children:"Ver todas as notificações"})})]})]}),s.jsxs(Oo,{children:[s.jsx(_o,{asChild:!0,children:s.jsxs(W,{variant:"ghost",size:"sm",className:"gap-2",children:[s.jsx(wp,{className:"h-6 w-6",children:s.jsx(Np,{className:"bg-blue-100 text-blue-600 text-xs",children:r.username.substring(0,2).toUpperCase()})}),s.jsx("span",{children:r.username}),s.jsx(os,{className:"h-4 w-4"})]})}),s.jsxs(bi,{align:"end",children:[s.jsxs(Je,{disabled:!0,children:[s.jsx(cp,{className:"h-4 w-4 mr-2"}),"Meu Perfil"]}),s.jsxs(Je,{disabled:!0,children:[s.jsx(xo,{className:"h-4 w-4 mr-2"}),"Configurações"]}),s.jsx(js,{}),s.jsxs(Je,{onClick:()=>{n.mutate(),t("/auth")},children:[s.jsx(pS,{className:"h-4 w-4 mr-2"}),"Sair"]})]})]})]})]})}),s.jsxs("div",{className:"container mx-auto px-4 py-6 grid grid-cols-5 gap-6",children:[s.jsx("div",{className:"col-span-1",children:s.jsxs("div",{className:"bg-white rounded-lg border shadow-sm p-4",children:[s.jsxs("nav",{className:"space-y-2",children:[s.jsxs(W,{variant:a==="dashboard"?"default":"ghost",size:"sm",className:"w-full justify-start",onClick:()=>
776i("dashboard"),children:[s.jsx(mS,{className:"h-4 w-4 mr-2"}),"Dashboard"]}),s.jsxs(W,{variant:a==="quotes"?"default":"ghost",size:"sm",className:"w-full justify-start",onClick:()=>i("quotes"),children:[s.jsx(Lt,{className:"h-4 w-4 mr-2"}),"Formulários",l&&l.length>0&&s.jsx(Ue,{variant:"secondary",className:"ml-auto",children:l.length})]}),s.jsxs(W,{variant:a==="analytics"?"default":"ghost",size:"sm",className:"w-full justify-start",onClick:()=>i("analytics"),children:[s.jsx(oc,{className:"h-4 w-4 mr-2"}),"Análise de Dados"]}),s.jsxs(W,{variant:a==="detailed_quotes"?"default":"ghost",size:"sm",className:"w-full justify-start",onClick:()=>i("detailed_quotes"),children:[s.jsx(B5,{className:"h-4 w-4 mr-2"}),"Orçamentos PDF"]}),s.jsxs(W,{variant:a==="pedidos"?"default":"ghost",size:"sm",className:"w-full justify-start",onClick:()=>i("pedidos"),children:[s.jsx(gS,{className:"h-4 w-4 mr-2"}),"Pedidos"]}),s.jsxs(W,{variant:a==="invoices"?"default":"ghost",size:"sm",className:"w-full justify-start",onClick:()=>i("invoices"),children:[s.jsx(fl,{className:"h-4 w-4 mr-2"}),"Notas Fiscais"]}),s.jsxs(W,{variant:a==="users"?"default":"ghost",size:"sm",className:"w-full justify-start",onClick:()=>i("users"),children:[s.jsx(zm,{className:"h-4 w-4 mr-2"}),"Usuários"]}),s.jsxs(W,{variant:a==="pixels"?"default":"ghost",size:"sm",className:"w-full justify-start",onClick:()=>i("pixels"),children:[s.jsx(Mm,{className:"h-4 w-4 mr-2"}),"Pixels de Rastreamento"]}),s.jsxs(W,{variant:a==="financial"?"default":"ghost",size:"sm",className:"w-full justify-start",onClick:()=>i("financial"),children:[s.jsx(tm,{className:"h-4 w-4 mr-2"}),"Financeiro"]}),s.jsxs(W,{variant:a==="settings"?"default":"ghost",size:"sm",className:"w-full justify-start",onClick:()=>i("settings"),children:[s.jsx(xo,{className:"h-4 w-4 mr-2"}),"Configurações"]})]}),s.jsxs("div",{className:"mt-6 pt-6 border-t",children:[s.jsx("h4",{className:"text-sm font-medium text-gray-500 mb-3",children:"Links Rápidos"}),s.jsxs("div",{className:"space-y-2",children:[s.jsxs(W,{variant:"outline",size:"sm",className:"w-full justify-start",onClick:()=>window.open("/","_blank"),children:[s.jsx(gs,{className:"h-4 w-4 mr-2"}),"Ver Site"]}),s.jsxs(Ct,{children:[s.jsx(Xc,{asChild:!0,children:s.jsxs(W,{variant:"outline",size:"sm",className:"w-full justify-start",children:[s.jsx(rm,{className:"h-4 w-4 mr-2"}),"Importar Dados"]})}),s.jsxs(Bt,{children:[s.jsxs(Xt,{children:[s.jsx(Yt,{children:"Importar Dados"}),s.jsx(Zt,{children:"Faça upload de arquivos CSV ou Excel para importar dados."})]}),s.jsx("div",{className:"py-4",children:s.jsxs("div",{className:"border-2 border-dashed border-gray-300 rounded-lg p-6 text-center",children:[s.jsx(rm,{className:"h-8 w-8 mx-auto text-gray-400 mb-2"}),s.jsx("p",{className:"text-sm font-medium",children:"Arraste arquivos aqui ou clique para selecionar"}),s.jsx("p",{className:"text-xs text-gray-500 mt-1",children:"Formatos suportados: CSV, XLSX"}),s.jsx(W,{variant:"outline",size:"sm",className:"mt-4",children:"Selecionar Arquivo"})]})}),s.jsxs(Pr,{children:[s.jsx(W,{variant:"outline",children:"Cancelar"}),s.jsx(W,{children:"Importar"})]})]})]})]})]}),s.jsx("div",{className:"mt-6 pt-6 border-t",children:s.jsxs("div",{className:"rounded-lg bg-blue-50 p-4 border border-blue-100",children:[s.jsxs("h4",{className:"font-medium text-blue-700 mb-2 flex items-center",children:[s.jsx(ba,{className:"h-4 w-4 mr-1"}),"Suporte"]}),s.jsx("p",{className:"text-sm text-blue-600 mb-3",children:"Precisa de ajuda? Entre em contato com nosso suporte."}),s.jsxs("div",{className:"text-xs text-blue-500 space-y-1",children:[s.jsxs("div",{className:"flex items-center",children:[s.jsx(_y,{className:"h-3 w-3 mr-1"}),s.jsx("span",{children:"(11) 5197-6208"})]}),s.jsxs("div",{className:"flex items-center",children:[s.jsx(El,{className:"h-3 w-3 mr-1"}),s.jsx("span",{children:"[email protected]"})]})]})]})})]})}),s.jsx("div",{className:"col-span-4",children:s.jsxs("div",{className:"bg-white rounded-lg border shadow-sm h-full",children:[a==="dashboard"&&s.jsx(TAe,{setActiveTab:i}),a==="quotes"&&s.jsx(yAe,{}),a==="analytics"&&s.jsx("div",{className:"p-6",children:s.jsx(NSe,{})}),a==="detailed_quotes"&&s.jsx("div",{className:"p-6",children:s.jsx(cEe,{})}),a==="pedidos"&&s.jsx("div",{className:"p-6",children:s.jsx(REe,{})}),a==="invoices"&&s.jsx("div",{className:"p-6",children:s.jsx(kAe,{})}),a==="users"&&s.jsxs("div",{className:"p-6",children:[s.jsx("h1",{className:"text-3xl font-bold mb-6",children:"Usuários"}),s.jsx("p",{children:"Gerenciamento de usuários"}),s.jsxs("div",{className:"p-6 text-center",children:[s.jsx(zm,{className:"h-12 w-12 mx-auto text-gray-400 mb-3"}),s.jsx("h3",{className:"text-lg font-medium text-gray-800",children:"Módulo de Usuários"}),s.jsx("p",{className:"text-gray-500 mt-1 max-w-md mx-auto",children:"O módulo de gerenciamento de usuários está em desenvolvimento."})]})]}),a==="pixels"&&s.jsxs("div",{className:"p-6",children:[s.jsx("h1",{className:"text-3xl font-bold mb-6",children:"Pixels de Rastreamento"}),s.jsx(oOe,{})]}),a==="financial"&&s.jsx("div",{className:"p-6",children:s.jsx(IEe,{})}),a==="settings"&&s.jsxs("div",{className:"p-6",children:[s.jsx("h1",{className:"text-3xl font-bold mb-6",children:"Configurações"}),s.jsxs(ql,{defaultValue:"general",children:[s.jsxs(Ao,{className:"grid w-full grid-cols-4",children:[s.jsx(vt,{value:"general",children:"Gerais"}),s.jsx(vt,{value:"notifications",children:"Notificações"}),s.jsx(vt,{value:"appearance",children:"Aparência"}),s.jsx(vt,{value:"api",children:"API"})]}),s.jsx(xt,{value:"general",className:"pt-4",children:s.jsxs(fe,{children:[s.jsxs(Me,{children:[s.jsx(De,{children:"Configurações Gerais"}),s.jsx(Ye,{children:"Gerencie as configurações gerais do sistema."})]}),s.jsx(me,{children:s.jsxs("div",{className:"space-y-4",children:[s.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[s.jsxs("div",{className:"space-y-2",children:[s.jsx(Be,{htmlFor:"site-name",children:"Nome do Site"}),s.jsx(ve,{id:"site-name",defaultValue:"ConfecXpress"})]}),s.jsxs("div",{className:"space-y-2",children:[s.jsx(Be,{htmlFor:"site-url",children:"URL do Site"}),s.jsx(ve,{id:"site-url",defaultValue:"https://confecxpress.com.br"})]})]}),s.jsxs("div",{className:"space-y-2",children:[s.jsx(Be,{htmlFor:"site-description",children:"Descrição do Site"}),s.jsx(ve,{id:"site-description",defaultValue:"Plataforma de customização de uniformes corporativos"})]}),s.jsxs("div",{className:"flex items-center justify-between border p-3 rounded-lg",children:[s.jsxs("div",{children:[s.jsx(Be,{children:"Modo de Manutenção"}),s.jsx("p",{className:"text-sm text-gray-500",children:"Ativar modo de manutenção do site"})]}),s.jsx(Vn,{})]})]})})]})}),s.jsx(xt,{value:"notifications",className:"pt-4",children:s.jsxs(fe,{children:[s.jsxs(Me,{children:[s.jsx(De,{children:"Notificações"}),s.jsx(Ye,{children:"Configure como e quando receber notificações."})]}),s.jsx(me,{children:s.jsxs("div",{className:"space-y-4",children:[s.jsxs("div",{className:"flex items-center justify-between border p-3 rounded-lg",children:[s.jsxs("div",{children:[s.jsx(Be,{children:"Email para novos orçamentos"}),s.jsx("p",{className:"text-sm text-gray-500",children:"Receba emails quando novos orçamentos forem enviados"})]}),s.jsx(Vn,{defaultChecked:!0})]}),s.jsxs("div",{className:"flex items-center justify-between border p-3 rounded-lg",children:[s.jsxs("div",{children:[s.jsx(Be,{children:"Email para alterações de status"}),s.jsx("p",{className:"text-sm text-gray-500",children:"Receba emails quando o status de um orçamento for alterado"})]}),s.jsx(Vn,{defaultChecked:!0})]}),s.jsxs("div",{className:"flex items-center justify-between border p-3 rounded-lg",children:[s.jsxs("div",{children:[s.jsx(Be,{children:"Resumo semanal"}),s.jsx("p",{className:"text-sm text-gray-500",children:"Receba um resumo semanal das atividades do site"})]}),s.jsx(Vn,{})]}),s.jsxs("div",{className:"space-y-2",children:[s.jsx(Be,{htmlFor:"notification-email",children:"Email para notificações"}),s.jsx(ve,{id:"notification-email",defaultValue:"[email protected]"})]})]})})]})}),s.jsx(xt,{value:"appearance",className:"pt-4",children:s.jsxs(fe,{children:[s.jsxs(Me,{children:[s.jsx(De,{children:"Aparência"}),s.jsx(Ye,{children:"Personalize a aparência do painel administrativo."})]}),s.jsx(me,{children:s.jsxs("div",{className:"space-y-4",children:[s.jsxs("div",{className:"grid grid-cols-3 gap-4",children:[s.jsxs("div",{className:"border p-3 rounded-lg cursor-pointer flex flex-col items-center hover:border-primary transition-colors",children:[s.jsx("div",{className:"h-20 w-full bg-white border rounded-md mb-2"}),s.jsx("span",{className:"text-sm font-medium",children:"Tema Claro"})]}),s.jsxs("div",{className:"border p-3 rounded-lg cursor-pointer flex flex-col items-center hover:border-primary transition-colors",children:[s.jsx("div",{className:"h-20 w-full bg-gray-900 border rounded-md mb-2"}),s.jsx("span",{className:"text-sm font-medium",children:"Tema Escuro"})]}),s.jsxs("div",{className:"border p-3 rounded-lg cursor-pointer flex flex-col items-center hover:border-primary transition-colors",children:[s.jsx("div",{className:"h-20 w-full bg-gradient-to-r from-white to-gray-900 border rounded-md mb-2"}),s.jsx("span",{className:"text-sm font-medium",children:"Sistema"})]})]}),s.jsxs("div",{className:"space-y-2",children:[s.jsx(Be,{children:"Cor Principal"}),s.jsxs("div",{className:"grid grid-cols-6 gap-2",children:[s.jsx("div",{className:"h-8 rounded-md bg-blue-500 cursor-pointer"}),s.jsx("div",{className:"h-8 rounded-md bg-green-500 cursor-pointer"}),s.jsx("div",{className:"h-8 rounded-md bg-purple-500 cursor-pointer"}),s.jsx("div",{className:"h-8 rounded-md bg-red-500 cursor-pointer"}),s.jsx("div",{className:"h-8 rounded-md bg-yellow-500 cursor-pointer"}),s.jsx("div",{className:"h-8 rounded-md bg-gray-500 cursor-pointer"})]})]}),s.jsxs("div",{className:"flex items-center justify-between border p-3 rounded-lg",children:[s.jsxs("div",{children:[s.jsx(Be,{children:"Animações Reduzidas"}),s.jsx("p",{className:"text-sm text-gray-500",children:"Reduzir animações da interface para melhor acessibilidade"})]}),s.jsx(Vn,{})]})]})})]})}),s.jsx(xt,{value:"api",className:"pt-4",children:s.jsxs(fe,{children:[s.jsxs(Me,{children:[s.jsx(De,{children:"Configurações de API"}),s.jsx(Ye,{children:"Gerencie as chaves de API e integrações."})]}),s.jsx(me,{children:s.jsxs("div",{className:"space-y-4",children:[s.jsxs("div",{className:"space-y-2",children:[s.jsx(Be,{children:"Chave de API"}),s.jsxs("div",{className:"flex",children:[s.jsx(ve,{readOnly:!0,value:"****************************************",type:"password",className:"rounded-r-none"}),s.jsx(W,{variant:"outline",className:"rounded-l-none",children:"Mostrar"})]}),s.jsx("p",{className:"text-sm text-gray-500",children:"Esta chave é usada para acessar a API programaticamente."})]}),s.jsxs("div",{className:"flex items-center justify-between border p-3 rounded-lg",children:[s.jsxs("div",{children:[s.jsx(Be,{children:"API de Webhooks"}),s.jsx("p",{className:"text-sm text-gray-500",children:"Permitir integrações via webhooks"})]}),s.jsx(Vn,{defaultChecked:!0})]}),s.jsx("div",{children:s.jsx(iOe,{type:"single",collapsible:!0,children:s.jsxs(XB,{value:"webhook-endpoints",children:[s.jsx(YB,{children:"Endpoints de Webhook"}),s.jsx(ZB,{children:s.jsxs("div",{className:"space-y-2 pt-2",children:[s.jsxs("div",{className:"border p-2 rounded-md",children:[s.jsxs("div",{className:"flex justify-between",children:[s.jsx("span",{className:"text-sm font-medium",children:"Novo Orçamento"}),s.jsx(Ue,{children:"POST"})]}),s.jsx("p",{className:"text-xs text-gray-500",children:"https://api.seu-sistema.com/webhook/novo-orcamento"})]}),s.jsxs("div",{className:"border p-2 rounded-md",children:[s.jsxs("div",{className:"flex justify-between",children:[s.jsx("span",{className:"text-sm font-medium",children:"Atualização de Status"}),s.jsx(Ue,{children:"POST"})]}),s.jsx("p",{className:"text-xs text-gray-500",children:"https://api.seu-sistema.com/webhook/status-update"})]}),s.jsx(W,{variant:"outline",size:"sm",className:"mt-2",children:"Adicionar Endpoint"})]})})]})})})]})})]})})]})]})]})})]})]}):null}function lOe(){var h,x;const[e,t]=b.useState(!1),[r,n]=b.useState("traffic"),{toast:a}=wn(),i=dp(),[o,l]=wa(),{user:c,logoutMutation:u}=Ld();b.useEffect(()=>{sessionStorage.getItem("openAnalysisModal")==="true"&&(sessionStorage.removeItem("openAnalysisModal"),setTimeout(()=>{t(!0),console.log("Abrindo modal de análise automaticamente após redirecionamento")},300))},[]);const d=Kt({mutationFn:async y=>(await ft("POST","/api/admin/analytics/generate-ai-analysis",{analysisType:y,startDate:new Date(Date.now()-2592e6).toISOString(),endDate:new Date().toISOString()})).json(),onSuccess:()=>{i.invalidateQueries({queryKey:["/api/admin/analytics/ai-insights"]}),a({title:"Análise gerada com sucesso",description:"Os resultados estão disponÃveis na seção de Insights de IA"}),t(!1)},onError:y=>{a({title:"Erro ao gerar análise",description:y.message,variant:"destructive"}),t(!1)}}),f=y=>{y&&(y.preventDefault(),y.stopPropagation()),console.log("Abrindo modal de geração de análise de IA"),t(!0)},m=y=>{y&&(y.preventDefault(),y.stopPropagation()),d.isPending||t(!1)},p=y=>{y.preventDefault(),y.stopPropagation(),console.log("Iniciando análise de IA:",r);const g=r||"traffic";console.log(`Executando generateAnalysisMutation com tipo: ${g}`),d.mutate(g)};b.useEffect(()=>{d.isSuccess&&setTimeout(()=>{l("/admin")},1500)},[d.isSuccess]);const v=()=>{u.mutate()};return s.jsxs("div",{className:"flex h-screen bg-gray-100",children:[s.jsxs("div",{className:"w-64 bg-white shadow-sm hidden md:block",children:[s.jsxs("div",{className:"p-6",children:[s.jsx("h1",{className:"text-xl font-bold text-primary",children:"ConfecXpress"}),s.jsx("p",{className:"text-sm text-gray-600",children:"Painel Administrativo"})]}),s.jsx("div",{className:"px-3 py-2",children:s.jsxs("div",{className:"space-y-1",children:[s.jsxs(W,{variant:"ghost",className:"w-full justify-start",onClick:()=>l("/admin"),children:[s.jsx(mS,{className:"h-4 w-4 mr-2"}),"Dashboard"]}),s.jsxs(W,{variant:"ghost",className:"w-full justify-start",onClick:()=>{l("/admin"),sessionStorage.setItem("activeTab","quotes")},children:[s.jsx(Lt,{className:"h-4 w-4 mr-2"}),"Orçamentos"]}),s.jsxs(W,{variant:"ghost",className:"w-full justify-start",onClick:()=>{l("/admin"),sessionStorage.setItem("activeTab","analytics")},children:[s.jsx(oc,{className:"h-4 w-4 mr-2"}),"EstatÃsticas"]}),s.jsxs(W,{variant:"default",className:"w-full justify-start",children:[s.jsx(hn,{className:"h-4 w-4 mr-2"}),"Gerador de Análises"]}),(c==null?void 0:c.role)==="admin"&&s.jsxs(W,{variant:"ghost",className:"w-full justify-start",onClick:()=>{l("/admin"),sessionStorage.setItem("activeTab","settings")},children:[s.jsx(xo,{className:"h-4 w-4 mr-2"}),"Configurações"]}),(c==null?void 0:c.role)==="admin"&&s.jsxs(W,{variant:"ghost",className:"w-full justify-start",onClick:()=>{l("/admin"),sessionStorage.setItem("activeTab","users")},children:[s.jsx(zm,{className:"h-4 w-4 mr-2"}),"Usuários"]})]})}),s.jsxs("div",{className:"absolute bottom-0 w-64 p-4 border-t",children:[s.jsxs("div",{className:"flex items-center mb-4",children:[s.jsxs(wp,{className:"h-9 w-9",children:[s.jsx(bC,{src:""}),s.jsx(Np,{className:"bg-primary text-white",children:((h=c==null?void 0:c.fullName)==null?void 0:h.charAt(0))||((x=c==null?void 0:c.username)==null?void 0:x.charAt(0))||"U"})]}),s.jsxs("div",{className:"ml-3",children:[s.jsx("p",{className:"text-sm font-medium",children:(c==null?void 0:c.fullName)||(c==null?void 0:c.username)}),s.jsx("p",{className:"text-xs text-gray-600",children:(c==null?void 0:c.role)==="admin"?"Administrador":(c==null?void 0:c.role)==="editor"?"Editor":"Usuário"})]})]}),s.jsxs(W,{variant:"outline",className:"w-full justify-start",onClick:v,children:[s.jsx(pS,{className:"h-4 w-4 mr-2"}),"Sair"]})]})]}),s.jsx("div",{className:"flex-1 overflow-auto",children:s.jsxs("div",{className:"container mx-auto px-4 py-6",children:[s.jsxs("div",{className:"flex justify-between items-center mb-6",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsxs(W,{variant:"outline",className:"flex items-center gap-1
776md:hidden",onClick:()=>l("/admin"),children:[s.jsx(L5,{className:"h-4 w-4"}),"Voltar"]}),s.jsx("h2",{className:"text-2xl font-bold",children:"Gerador de Análises"})]}),s.jsxs(W,{variant:"default",className:"flex items-center gap-1 bg-gradient-to-r from-indigo-600 to-blue-700 hover:from-indigo-700 hover:to-blue-800",onClick:f,children:[s.jsx(hn,{className:"h-4 w-4 text-yellow-200"}),"Abrir Gerador de Análises"]})]}),s.jsxs("div",{className:"flex flex-col items-center justify-center mt-12 text-center px-4",children:[s.jsx(hn,{className:"h-16 w-16 text-indigo-500 mb-6 animate-pulse"}),s.jsx("h1",{className:"text-3xl font-bold mb-3",children:"Gerador de Análises com IA"}),s.jsx("p",{className:"text-gray-600 max-w-xl mb-8",children:"Nossa inteligência artificial analisa seus dados e gera insights valiosos para otimizar suas estratégias de marketing, melhorar conversões e identificar oportunidades de crescimento."}),s.jsxs(W,{size:"lg",className:"bg-gradient-to-r from-indigo-600 to-blue-700 hover:from-indigo-700 hover:to-blue-800 shadow-lg",onClick:f,children:[s.jsx(hn,{className:"mr-2 h-5 w-5 text-yellow-200"}),"Iniciar Nova Análise"]})]}),s.jsx(Ct,{open:e,onOpenChange:y=>{!y&&!d.isPending&&t(!1)},children:s.jsxs(Bt,{className:"sm:max-w-md max-h-[90vh] overflow-y-auto",children:[s.jsxs(Xt,{children:[s.jsxs(Yt,{className:"text-xl flex items-center",children:[s.jsx(hn,{className:"h-5 w-5 mr-2 text-indigo-500"}),"Análise Avançada com IA"]}),s.jsx(Zt,{children:"Escolha o tipo de análise para obter insights detalhados e acionáveis sobre seus dados. Nossa IA processará todas as métricas disponÃveis e fornecerá recomendações práticas."})]}),s.jsx("div",{className:"py-4",children:s.jsxs("div",{className:"space-y-4",children:[s.jsx("div",{className:`p-4 border rounded-md cursor-pointer transition-all duration-200 ${r==="traffic"?"border-indigo-500 bg-indigo-50 shadow-md":"hover:bg-gray-50 hover:border-gray-300"}`,onClick:()=>n("traffic"),children:s.jsxs("div",{className:"flex items-start",children:[s.jsx(aG,{className:"h-5 w-5 mr-2 text-indigo-600 mt-0.5"}),s.jsxs("div",{children:[s.jsx("h3",{className:"font-medium",children:"Análise de Tráfego"}),s.jsx("p",{className:"text-sm text-gray-600 mt-1",children:"Avalia padrões de tráfego, fontes, comportamento do usuário e recomenda melhorias para aumentar o engajamento."}),r==="traffic"&&s.jsx("div",{className:"mt-2 text-xs text-indigo-600 font-medium",children:"Fornece dados especÃficos sobre canais mais eficientes e oportunidades de crescimento"})]})]})}),s.jsx("div",{className:`p-4 border rounded-md cursor-pointer transition-all duration-200 ${r==="conversion"?"border-indigo-500 bg-indigo-50 shadow-md":"hover:bg-gray-50 hover:border-gray-300"}`,onClick:()=>n("conversion"),children:s.jsxs("div",{className:"flex items-start",children:[s.jsx(D1,{className:"h-5 w-5 mr-2 text-indigo-600 mt-0.5"}),s.jsxs("div",{children:[s.jsx("h3",{className:"font-medium",children:"Análise de Conversão"}),s.jsx("p",{className:"text-sm text-gray-600 mt-1",children:"Examina as taxas de conversão, identifica gargalos no funil e sugere otimizações para melhorar resultados."}),r==="conversion"&&s.jsx("div",{className:"mt-2 text-xs text-indigo-600 font-medium",children:"Analisa pontos de abandono e sugere ajustes especÃficos para aumentar vendas"})]})]})}),s.jsx("div",{className:`p-4 border rounded-md cursor-pointer transition-all duration-200 ${r==="audience"?"border-indigo-500 bg-indigo-50 shadow-md":"hover:bg-gray-50 hover:border-gray-300"}`,onClick:()=>n("audience"),children:s.jsxs("div",{className:"flex items-start",children:[s.jsx(zm,{className:"h-5 w-5 mr-2 text-indigo-600 mt-0.5"}),s.jsxs("div",{children:[s.jsx("h3",{className:"font-medium",children:"Análise de Audiência"}),s.jsx("p",{className:"text-sm text-gray-600 mt-1",children:"Analisa dados demográficos, dispositivos, comportamento regional e identifica oportunidades para segmentação."}),r==="audience"&&s.jsx("div",{className:"mt-2 text-xs text-indigo-600 font-medium",children:"Revela caracterÃsticas do público mais valioso e como alcançá-lo melhor"})]})]})}),s.jsx("div",{className:`p-4 border rounded-md cursor-pointer transition-all duration-200 ${r==="keyword_segmentation"?"border-indigo-500 bg-indigo-50 shadow-md":"hover:bg-gray-50 hover:border-gray-300"}`,onClick:()=>n("keyword_segmentation"),children:s.jsxs("div",{className:"flex items-start",children:[s.jsx(pG,{className:"h-5 w-5 mr-2 text-indigo-600 mt-0.5"}),s.jsxs("div",{children:[s.jsx("h3",{className:"font-medium",children:"Análise de Palavras-chave e Segmentação"}),s.jsx("p",{className:"text-sm text-gray-600 mt-1",children:"Identifica palavras-chave relevantes e oportunidades de segmentação para otimização do funil de vendas."}),r==="keyword_segmentation"&&s.jsx("div",{className:"mt-2 text-xs text-indigo-600 font-medium",children:"Descobre termos de busca de alto potencial e segmentos ideais para suas campanhas"})]})]})})]})}),s.jsx("div",{className:"bg-slate-50 -mx-4 px-4 py-3 rounded-b-lg",children:s.jsxs("div",{className:"text-xs text-slate-500 mb-2 flex items-center",children:[s.jsx(fS,{className:"h-3 w-3 mr-1"}
776),"A análise utilizará os dados do perÃodo selecionado no painel"]})}),s.jsx(ei,{}),s.jsxs(Pr,{className:"sm:justify-end gap-2 mt-4",children:[s.jsx(W,{variant:"outline",onClick:m,disabled:d.isPending,children:"Cancelar"}),s.jsx(W,{onClick:p,disabled:d.isPending,className:"bg-gradient-to-r from-indigo-600 to-blue-700 text-white hover:from-indigo-700 hover:to-blue-800",children:d.isPending?s.jsxs(s.Fragment,{children:[s.jsx(Im,{className:"mr-2 h-4 w-4 animate-spin"}),"Processando dados..."]}):s.jsxs(s.Fragment,{children:[s.jsx(hn,{className:"mr-2 h-4 w-4 text-yellow-200"}),"Gerar Análise Detalhada"]})})]})]})})]})})]})}var QB="AlertDialog",[cOe,SRe]=kr(QB,[A8]),Ei=A8(),JB=e=>{const{__scopeAlertDialog:t,...r}=e,n=Ei(t);return s.jsx(U8,{...n,...r,modal:!0})};JB.displayName=QB;var uOe="AlertDialogTrigger",dOe=b.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...n}=e,a=Ei(r);return s.jsx(W8,{...a,...n,ref:t})});dOe.displayName=uOe;var fOe="AlertDialogPortal",e9=e=>{const{__scopeAlertDialog:t,...r}=e,n=Ei(t);return s.jsx(q8,{...n,...r})};e9.displayName=fOe;var mOe="AlertDialogOverlay",t9=b.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...n}=e,a=Ei(r);return s.jsx(aC,{...a,...n,ref:t})});t9.displayName=mOe;var ju="AlertDialogContent",[hOe,pOe]=cOe(ju),gOe=m5("AlertDialogContent"),r9=b.forwardRef((e,t)=>{const{__scopeAlertDialog:r,children:n,...a}=e,i=Ei(r),o=b.useRef(null),l=it(t,o),c=b.useRef(null);return s.jsx(SPe,{contentName:ju,titleName:n9,docsSlug:"alert-dialog",children:s.jsx(hOe,{scope:r,cancelRef:c,children:s.jsxs(sC,{role:"alertdialog",...i,...a,ref:l,onOpenAutoFocus:ue(a.onOpenAutoFocus,u=>{var d;u.preventDefault(),(d=c.current)==null||d.focus({preventScroll:!0})}),onPointerDownOutside:u=>u.preventDefault(),onInteractOutside:u=>u.preventDefault(),children:[s.jsx(gOe,{children:n}),s.jsx(xOe,{contentRef:o})]})})})});r9.displayName=ju;var n9="AlertDialogTitle",a9=b.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...n}=e,a=Ei(r);return s.jsx(iC,{...a,...n,ref:t})});a9.displayName=n9;var s9="AlertDialogDescription",i9=b.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...n}=e,a=Ei(r);return s.jsx(oC,{...a,...n,ref:t})});i9.displayName=s9;var vOe="AlertDialogAction",o9=b.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...n}=e,a=Ei(r);return s.jsx(lC,{...a,...n,ref:t})});
776o9.displayName=vOe;var l9="AlertDialogCancel",c9=b.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...n}=e,{cancelRef:a}=pOe(l9,r),i=Ei(r),o=it(t,a);return s.jsx(lC,{...i,...n,ref:o})});c9.displayName=l9;var xOe=({contentRef:e})=>{const t=`\`${ju}\` requires a description for the component to be accessible for screen reader users. 777 778You can add a description to the \`${ju}\` by passing a \`${s9}\` component as a child, which also benefits sighted users by adding visible context to the dialog. 779 780Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${ju}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component. 781 782For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return b.useEffect(()=>{var n;document.getElementById((n=e.current)==null?void 0:n.getAttribute("aria-describedby"))||console.warn(t)},[t,e]),null},yOe=JB,bOe=e9,u9=t9,d9=r9,f9=o9,m9=c9,h9=a9,p9=i9;const LC=yOe,jOe=bOe,g9=b.forwardRef(({className:e,...t},r)=>s.jsx(u9,{className:ie("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:r}));g9.displayName=u9.displayName;const q0=b.forwardRef(({className:e,...t},r)=>s.jsxs(jOe,{children:[s.jsx(g9,{}),s.jsx(d9,{ref:r,className:ie("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 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 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...t})]}));q0.displayName=d9.displayName;const H0=({className:e,...t})=>s.jsx("div",{className:ie("flex flex-col space-y-2 text-center sm:text-left",e),...t});H0.displayName="AlertDialogHeader";const G0=({className:e,...t})=>s.jsx("div",{className:ie("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});G0.displayName="AlertDialogFooter";const K0=b.forwardRef(({className:e,...t},r)=>s.jsx(h9,{ref:r,className:ie("text-lg font-semibold",e),...t}));K0.displayName=h9.displayName;const X0=b.forwardRef(({className:e,...t},r)=>s.jsx(p9,{ref:r,className:ie("text-sm text-muted-foreground",e),...t}));X0.displayName=p9.displayName;const v9=b.forwardRef(({className:e,...t},r)=>s.jsx(f9,{ref:r,className:ie(WS(),e),...t}));v9.displayName=f9.displayName;const FC=b.forwardRef(({className:e,...t},r)=>s.jsx(m9,{ref:r,className:ie(WS({variant:"outline"}),"mt-2 sm:mt-0",e),...t}));FC.displayName=m9.displayName;const x9=({className:e,...t})=>s.jsx("nav",{role:"navigation","aria-label":"pagination",className:ie("mx-auto flex w-full justify-center",e),...t});x9.displayName="Pagination";const y9=b.forwardRef(({className:e,...t},r)=>s.jsx("ul",{ref:r,className:ie("flex flex-row items-center gap-1",e),...t}));y9.displayName="PaginationContent";const Yg=b.forwardRef(({className:e,...t},r)=>s.jsx("li",{ref:r,className:ie("",e),...t}));Yg.displayName="PaginationItem";const b9=({className:e,...t})=>s.jsxs("span",{"aria-hidden":!0,className:ie("flex h-9 w-9 items-center justify-center",e),...t,children:[s.jsx(U5,{className:"h-4 w-4"}),s.jsx("span",{className:"sr-only",children:"More pages"})]});b9.displayName="PaginationEllipsis";const wOe=Ce.object({username:Ce.string().min(3,"Nome de usuário deve ter pelo menos 3 caracteres"),email:Ce.string().email("Email inválido"),fullName:Ce.string().optional(),role:Ce.enum(["admin","editor","viewer"],{errorMap:()=>({message:"Selecione um papel válido"})}),password:Ce.string().min(6,"Senha deve ter pelo menos 6 caracteres").optional()}),NOe=Ce.object({newPassword:Ce.string().min(6,"Senha deve ter pelo menos 6 caracteres"),confirmPassword:Ce.string().min(6,"Senha deve ter pelo menos 6 caracteres")}).refine(e=>e.newPassword===e.confirmPassword,{message:"As senhas não conferem",path:["confirmPassword"]});function SOe(){const{toast:e}=wn(),t=dp(),{user:r}=Ld(),[n,a]=b.useState(!1),[i,o]=b.useState(!1),[l,c]=b.useState(!1),[u,d]=b.useState(!1),[f,m]=b.useState(null),[p,v]=b.useState(""),[h,x]=b.useState(null),[y,g]=b.useState(1),[j,S]=b.useState(10),[w,N]=b.useState({field:"id",direction:"asc"}),{data:P,isLoading:C,error:A,refetch:O}=Gt({queryKey:["/api/admin/users"],queryFn:async()=>{try{const V=await ft("GET","/api/admin/users");if(!V.ok){const H=await V.json();throw new Error(H.message||"Erro ao buscar usuários")}const ee=await V.json();return ee.success?ee.data:[]}catch(V){throw console.error("Erro ao buscar usuários:",V),new Error(V.message||"Falha ao buscar usuários. Tente novamente mais tarde.")}},retry:1,refetchOnWindowFocus:!1});b.useEffect(()=>{O()},[O]);const E=ko({resolver:Jl(wOe),defaultValues:{username:"",email:"",fullName:"",role:"viewer",password:""}}),k=ko({resolver:Jl(NOe),defaultValues:{newPassword:"",confirmPassword:""}}),M=Kt({mutationFn:async V=>(await ft("POST","/api/admin/users",V)).json(),onSuccess:()=>{t.invalidateQueries({queryKey:["/api/admin/users"]}),a(!1),E.reset(),e({title:"Usuário criado",description:"O usuário foi criado com sucesso.",variant:"default"})},onError:V=>{e({title:"Erro ao criar usuário",description:V.message||"Ocorreu um erro ao criar o usuário.",variant:"destructive"})}}),D=Kt({mutationFn:async V=>{const{id:ee,...H}=V;return(await ft("PUT",`/api/admin/users/${ee}`,H)).json()},onSuccess:()=>{t.invalidateQueries({queryKey:["/api/admin/users"]}),o(!1),e({title:"Usuário atualizado",description:"O usuário foi atualizado com sucesso.",variant:"default"})},onError:V=>{e({title:"Erro ao atualizar usuário",description:V.message||"Ocorreu um erro ao atualizar o usuário.",variant:"destructive"})}}),F=Kt({mutationFn:async V=>(await ft("POST",`/api/admin/users/${V.id}/change-password`,{newPassword:V.newPassword})).json(),onSuccess:()=>{t.invalidateQueries({queryKey:["/api/admin/users"]}),c(!1),k.reset(),e({title:"Senha alterada",description:"A senha foi alterada com sucesso.",variant:"default"})},onError:V=>{e({title:"Erro ao alterar senha",description:V.message||"Ocorreu um erro ao alterar a senha.",variant:"destructive"})}}),L=Kt({mutationFn:async V=>(await ft("DELETE",`/api/admin/users/${V}`)).json(),onSuccess:()=>{t.invalidateQueries({queryKey:["/api/admin/users"]}),d(!1),m(null),e({title:"Usuário excluÃdo",description:"O usuário foi excluÃdo com sucesso.",variant:"default"})},onError:V=>{e({title:"Erro ao excluir usuário",description:V.message||"Ocorreu um erro ao excluir o usuário.",variant:"destructive"})}}),B=V=>{M.mutate(V)},R=V=>{if(f){const ee={id:f.id,...V};Object.keys(ee).forEach(H=>{H!=="id"&&!ee[H]&&delete ee[H]}),D.mutate(ee)}},I=V=>{f&&F.mutate({id:f.id,newPassword:V.newPassword})},G=()=>{f&&L.mutate(f.id)},U=V=>{m(V),E.reset({username:V.username,email:V.email,fullName:V.fullName||"",role:V.role}),o(!0)},K=V=>{m(V),k.reset(),c(!0)},ce=V=>{m(V),d(!0)};b.useEffect(()=>{n&&E.reset({username:"",email:"",fullName:"",role:"viewer",password:""})},[n,E]);const pe=b.useMemo(()=>
782{if(!P)return[];let V=[...P];if(p){const ee=p.toLowerCase();V=V.filter(H=>H.username.toLowerCase().includes(ee)||H.email.toLowerCase().includes(ee)||H.fullName&&H.fullName.toLowerCase().includes(ee))}return h&&(V=V.filter(ee=>ee.role===h)),V.sort((ee,H)=>{const Re=ee[w.field],Pe=H[w.field];if(Re==null)return w.direction==="asc"?-1:1;if(Pe==null)return w.direction==="asc"?1:-1;if(w.field==="createdAt"||w.field==="lastLogin"){const te=Re&&typeof Re=="string"?new Date(Re).getTime():0,Ie=Pe&&typeof Pe=="string"?new Date(Pe).getTime():0;return w.direction==="asc"?te-Ie:Ie-te}return typeof Re=="string"&&typeof Pe=="string"?w.direction==="asc"?Re.localeCompare(Pe):Pe.localeCompare(Re):w.direction==="asc"?Re-Pe:Pe-Re}),V},[P,p,h,w]),Ke=b.useMemo(()=>{const V=(y-1)*j;return pe.slice(V,V+j)},[pe,y,j]),q=b.useMemo(()=>Math.ceil(pe.length/j),[pe,j]),Q=()=>{if(!pe||pe.length===0){e({title:"Nenhum dado para exportar",description:"Não há usuários para exportar.",variant:"destructive"});return}const V=pe.map(Ie=>({...Ie,createdAt:Ie.createdAt?new Date(Ie.createdAt).toLocaleString():"-",lastLogin:Ie.lastLogin?new Date(Ie.lastLogin).toLocaleString():"Nunca",role:Ie.role==="admin"?"Administrador":Ie.role==="editor"?"Editor":"Visualizador"})),H=[["ID","Usuário","Nome Completo","Email","Papel","Ativo","Data de Criação","Ãltimo Acesso"].join(","),...V.map(Ie=>[Ie.id,Ie.username,Ie.fullName||"-",Ie.email,Ie.role,Ie.isActive?"Sim":"Não",Ie.createdAt,Ie.lastLogin].join(","))].join(` 783`),Re=new Blob([H],{type:"text/csv;charset=utf-8;"}),Pe=URL.createObjectURL(Re),te=document.createElement("a");te.setAttribute("href",Pe),te.setAttribute("download",`usuarios_${new Date().toISOString().split("T")[0]}.csv`),te.style.visibility="hidden",document.body.appendChild(te),te.click(),document.body.removeChild(te),e({title:"Dados exportados",description:`${V.length} usuários exportados com sucesso.`})},we=V=>{N(ee=>({field:V,direction:ee.field===V&&ee.direction==="asc"?"desc":"asc"}))},Z=({children:V,field:ee})=>s.jsx(Ze,{className:"cursor-pointer hover:bg-gray-50",onClick:()=>we(ee),children:s.jsxs("div",{className:"flex items-center",children:[V,w.field===ee&&s.jsx("span",{className:"ml-1",children:w.direction==="asc"?"â":"â"})]})});return s.jsxs("div",{className:"space-y-6",children:[s.jsxs(fe,{children:[s.jsx(Me,{children:s.jsxs("div",{className:"flex justify-between items-center",children:[s.jsxs("div",{children:[s.jsx(De,{className:"text-2xl",children:"Gerenciamento de Usuários"}),s.jsx(Ye,{children:"Gerencie usuários, papéis e permissões do sistema"})]}),s.jsxs("div",{className:"flex items-center space-x-2",children:[s.jsxs(W,{variant:"outline",size:"sm",onClick:Q,disabled:!pe.length,children:[s.jsx(ca,{className:"h-4 w-4 mr-2"}),"Exportar"]}),s.jsxs(W,{onClick:()=>a(!0),children:[s.jsx(RG,{className:"h-4 w-4 mr-2"}),"Novo Usuário"]})]})]})}),s.jsxs(me,{children:[C&&s.jsxs("div",{className:"flex flex-col items-center justify-center py-8",children:[s.jsx("div",{className:"animate-spin w-10 h-10 border-4 border-primary border-t-transparent rounded-full mb-4"}),s.jsx("p",{className:"text-muted-foreground",children:"Carregando usuários..."})]}),A&&!C&&s.jsx("div",{className:"bg-red-50 border border-red-200 rounded-md p-4 my-4",children:s.jsxs("div",{className:"flex items-start",children:[s.jsx(lp,{className:"h-5 w-5 text-red-500 mt-0.5 mr-2"}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-red-800 font-medium",children:"Erro ao carregar usuários"}),s.jsx("p",{className:"text-red-700 text-sm mt-1",children:A instanceof Error?A.message:"Ocorreu um erro ao buscar os dados. Tente novamente."}),s.jsxs(W,{variant:"outline",size:"sm",className:"mt-3",onClick:()=>O(),children:[s.jsx(Qr,{className:"h-4 w-4 mr-2"}),"Tentar novamente"]})]})]})}),!C&&!A&&s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-4 gap-4 mb-6",children:[s.jsx("div",{className:"md:col-span-2",children:s.jsxs("div",{className:"relative",children:[s.jsx(zl,{className:"absolute left-2 top-2.5 h-4 w-4 text-muted-foreground"}),s.jsx(ve,{placeholder:"Buscar por nome, email ou username...",className:"pl-8",value:p,onChange:V=>v(V.target.value)})]})}),s.jsx("div",{children:s.jsxs(Jr,{value:h||"todos",onValueChange:V=>{x(V==="todos"?null:V),g(1)},children:[s.jsx(Fr,{children:s.jsxs("div",{className:"flex items-center",children:[s.jsx(q5,{className:"mr-2 h-4 w-4"}),s.jsx(en,{placeholder:"Papel / Função"})]})}),s.jsxs(Vr,{children:[s.jsx(xe,{value:"todos",children:"Todos os papéis"}),s.jsx(xe,{value:"admin",children:"Administradores"}),s.jsx(xe,{value:"editor",children:"Editores"}),s.jsx(xe,{value:"viewer",children:"Visualizadores"})]})]})}),s.jsx("div",{children:s.jsxs(Jr,{value:j.toString(),onValueChange:V=>{S(parseInt(V)),g(1)},children:[s.jsx(Fr,{children:s.jsx(en,{})}),s.jsxs(Vr,{children:[s.jsx(xe,{value:"5",children:"5 por página"}),s.jsx(xe,{value:"10",children:"10 por página"}),s.jsx(xe,{value:"20",children:"20 por página"}),s.jsx(xe,{value:"50",children:"50 por página"})]})]})})]}),s.jsxs("div",{className:"text-sm text-muted-foreground mb-2",children:[pe.length," usuário(s) encontrado(s)",p&&s.jsxs("span",{children:[' para a busca "',p,'"']}
783),h&&s.jsxs("span",{children:[" com papel ",h==="admin"?"Administrador":h==="editor"?"Editor":"Visualizador"]})]}),s.jsx("div",{className:"border rounded-md",children:s.jsxs(ai,{children:[s.jsx(si,{children:s.jsxs(br,{children:[s.jsx(Z,{field:"id",children:"ID"}),s.jsx(Z,{field:"username",children:"Usuário"}),s.jsx(Z,{field:"fullName",children:"Nome Completo"}),s.jsx(Z,{field:"email",children:"Email"}),s.jsx(Z,{field:"role",children:"Papel"}),s.jsx(Z,{field:"lastLogin",children:"Ãltimo Acesso"}),s.jsx(Ze,{className:"text-right",children:"Ações"})]})}),s.jsx(ii,{children:Ke.length>0?Ke.map(V=>s.jsxs(br,{children:[s.jsx(Le,{children:V.id}),s.jsx(Le,{className:"font-medium",children:V.username}),s.jsx(Le,{children:V.fullName||"-"}),s.jsx(Le,{children:V.email}),s.jsx(Le,{children:s.jsx(Ue,{variant:V.role==="admin"?"destructive":V.role==="editor"?"default":"secondary",children:V.role==="admin"?"Administrador":V.role==="editor"?"Editor":"Visualizador"})}),s.jsx(Le,{children:V.lastLogin?new Date(V.lastLogin).toLocaleString():"Nunca"}),s.jsx(Le,{className:"text-right",children:s.jsxs(Oo,{children:[s.jsx(_o,{asChild:!0,children:s.jsxs(W,{variant:"ghost",className:"h-8 w-8 p-0",children:[s.jsx("span",{className:"sr-only",children:"Abrir menu"}),s.jsx(U5,{className:"h-4 w-4"})]})}),s.jsxs(bi,{align:"end",children:[s.jsx(hc,{children:"Ações"}),s.jsxs(Je,{onClick:()=>U(V),disabled:(r==null?void 0:r.id)!==1&&V.id===1,children:[s.jsx(so,{className:"mr-2 h-4 w-4"}),"Editar"]}),s.jsxs(Je,{onClick:()=>K(V),disabled:(r==null?void 0:r.id)!==1&&V.id===1,children:[s.jsx(vG,{className:"mr-2 h-4 w-4"}),"Alterar senha"]}),s.jsx(js,{}),s.jsxs(Je,{onClick:()=>ce(V),disabled:V.id===1||V.id===(r==null?void 0:r.id),className:"text-red-600",children:[s.jsx(qu,{className:"mr-2 h-4 w-4"}),"Excluir"]})]})]})})]},V.id)):s.jsx(br,{children:s.jsx(Le,{colSpan:7,className:"text-center py-4",children:"Nenhum usuário encontrado."})})})]})}),q>1&&s.jsx("div",{className:"mt-4",children:s.jsx(x9,{children:s.jsxs(y9,{children:[s.jsx(Yg,{children:s.jsxs(W,{variant:"outline",size:"sm",onClick:()=>g(V=>Math.max(V-1,1)),disabled:y===1,className:"flex items-center gap-1",children:[s.jsx("span",{className:"sr-only",children:"Ir para página anterior"}),s.jsx("span",{"aria-hidden":"true",children:"«"}),"Anterior"]})}),Array.from({length:q}).map((V,ee)=>{const H=ee+1;return H===1||H===q||H>=y-1&&H<=y+1?s.jsx(Yg,{children:s.jsx(W,{variant:H===y?"default":"outline",size:"sm",onClick:()=>g(H),className:"w-10 h-10 p-0",children:H})},H):H===y-2&&y>3||H===y+2&&y<q-2?s.jsx(b9,{},H):null}),s.jsx(Yg,{children:s.jsxs(W,{variant:"outline",size:"sm",onClick:()=>g(V=>Math.min(V+1,q)),disabled:y===q,className:"flex items-center gap-1",children:["Próxima",s.jsx("span",{"aria-hidden":"true",children:"»"}),s.jsx("span",{className:"sr-only",children:"Ir para próxima página"})]})})]})})})]})]})]}),s.jsx(Ct,{open:n,onOpenChange:a,children:s.jsxs(Bt,{className:"sm:max-w-[500px]",children:[s.jsxs(Xt,{children:[s.jsx(Yt,{children:"Criar Novo Usuário"}),s.jsx(Zt,{children:"Preencha os dados para criar um novo usuário no sistema."})]}),s.jsx(oi,{...E,children:s.jsxs("form",{onSubmit:E.handleSubmit(B),className:"space-y-4",children:[s.jsx(ke,{control:E.control,name:"username",render:({field:V})=>s.jsxs(Te,{children:[s.jsx(Ae,{children:"Nome de usuário *"}),s.jsx(Ee,{children:s.jsx(ve,{...V,placeholder:"username"})}),s.jsx(He,{})]})}),s.jsx(ke,{control:E.control,name:"email",render:({field:V})=>s.jsxs(Te,{children:[s.jsx(Ae,{children:"Email *"}),s.jsx(Ee,{children:s.jsx(ve,{...V,placeholder:"[email protected]",type:"email"})}),s.jsx(He,{})]})}),s.jsx(ke,{control:E.control,name:"fullName",render:({field:V})=>s.jsxs(Te,{children:[s.jsx(Ae,{children:"Nome completo"}),s.jsx(Ee,{children:s.jsx(ve,{...V,placeholder:"Nome Completo"})}),s.jsx(He,{})]})}),s.jsx(ke,{control:E.control,name:"role",render:({field:V})=>s.jsxs(Te,{children:[s.jsx(Ae,{children:"Papel / Função *"}),s.jsxs(Jr,{onValueChange:V.onChange,defaultValue:V.value,children:[s.jsx(Ee,{children:s.jsx(Fr,{children:s.jsx(en,{placeholder:"Selecione um papel"})})}),s.jsxs(Vr,{children:[s.jsx(xe,{value:"admin",children:"Administrador"}),s.jsx(xe,{value:"editor",children:"Editor"}),s.jsx(xe,{value:"viewer",children:"Visualizador"})]})]}),s.jsx(He,{})]})}),s.jsx(ke,{control:E.control,name:"password",render:({field:V})=>s.jsxs(Te,{children:[s.jsx(Ae,{children:"Senha *"}),s.jsx(Ee,{children:s.jsx(ve,{...V,type:"password",placeholder:"******"})}),s.jsx(He,{})]})}),s.jsxs(Pr,{className:"mt-6",children:[s.jsx(W,{type:"button",variant:"outline",onClick:()=>a(!1),children:"Cancelar"}),s.jsxs(W,{type:"submit",disabled:M.isPending,children:[M.isPending&&s.jsx("div",{className:"animate-spin mr-2 h-4 w-4 border-2 border-background border-t-transparent roun
783ded-full"}),"Criar Usuário"]})]})]})})]})}),s.jsx(Ct,{open:i,onOpenChange:o,children:s.jsxs(Bt,{className:"sm:max-w-[500px]",children:[s.jsxs(Xt,{children:[s.jsx(Yt,{children:"Editar Usuário"}),s.jsx(Zt,{children:"Atualize os dados do usuário."})]}),s.jsx(oi,{...E,children:s.jsxs("form",{onSubmit:E.handleSubmit(R),className:"space-y-4",children:[s.jsx(ke,{control:E.control,name:"username",render:({field:V})=>s.jsxs(Te,{children:[s.jsx(Ae,{children:"Nome de usuário *"}),s.jsx(Ee,{children:s.jsx(ve,{...V,placeholder:"username"})}),s.jsx(He,{})]})}),s.jsx(ke,{control:E.control,name:"email",render:({field:V})=>s.jsxs(Te,{children:[s.jsx(Ae,{children:"Email *"}),s.jsx(Ee,{children:s.jsx(ve,{...V,placeholder:"[email protected]",type:"email"})}),s.jsx(He,{})]})}),s.jsx(ke,{control:E.control,name:"fullName",render:({field:V})=>s.jsxs(Te,{children:[s.jsx(Ae,{children:"Nome completo"}),s.jsx(Ee,{children:s.jsx(ve,{...V,placeholder:"Nome Completo"})}),s.jsx(He,{})]})}),s.jsx(ke,{control:E.control,name:"role",render:({field:V})=>s.jsxs(Te,{children:[s.jsx(Ae,{children:"Papel / Função *"}),s.jsxs(Jr,{onValueChange:V.onChange,defaultValue:V.value,children:[s.jsx(Ee,{children:s.jsx(Fr,{children:s.jsx(en,{placeholder:"Selecione um papel"})})}),s.jsxs(Vr,{children:[s.jsx(xe,{value:"admin",children:"Administrador"}),s.jsx(xe,{value:"editor",children:"Editor"}),s.jsx(xe,{value:"viewer",children:"Visualizador"})]})]}),s.jsx(He,{})]})}),s.jsxs(Pr,{className:"mt-6",children:[s.jsx(W,{type:"button",variant:"outline",onClick:()=>o(!1),children:"Cancelar"}),s.jsxs(W,{type:"submit",disabled:D.isPending,children:[D.isPending&&s.jsx("div",{className:"animate-spin mr-2 h-4 w-4 border-2 border-background border-t-transparent rounded-full"}),"Salvar Alterações"]})]})]})})]})}),s.jsx(Ct,{open:l,onOpenChange:c,children:s.jsxs(Bt,{className:"sm:max-w-[500px]",children:[s.jsxs(Xt,{children:[s.jsx(Yt,{children:"Alterar Senha"}),s.jsx(Zt,{children:f&&`Alterar senha do usuário ${f.username}`})]}),s.jsx(oi,{...k,children:s.jsxs("form",{onSubmit:k.handleSubmit(I),className:"space-y-4",children:[s.jsx(ke,{control:k.control,name:"newPassword",render:({field:V})=>s.jsxs(Te,{children:[s.jsx(Ae,{children:"Nova senha *"}),s.jsx(Ee,{children:s.jsx(ve,{...V,type:"password",placeholder:"******"})}),s.jsx(He,{})]})}),s.jsx(ke,{control:k.control,name:"confirmPassword",render:({field:V})=>s.jsxs(Te,{children:[s.jsx(Ae,{children:"Confirme a nova senha *"}),s.jsx(Ee,{children:s.jsx(ve,{...V,type:"password",placeholder:"******"})}),s.jsx(He,{})]})}),s.jsxs(Pr,{className:"mt-6",children:[s.jsx(W,{type:"button",variant:"outline",onClick:()=>c(!1),children:"Cancelar"}),s.jsxs(W,{type:"submit",disabled:F.isPending,children:[F.isPending&&s.jsx("div",{className:"animate-spin mr-2 h-4 w-4 border-2 border-background border-t-transparent rounded-full"}),"Alterar Senha"]})]})]})})]})}),s.jsx(LC,{open:u,onOpenChange:d,children:s.jsxs(q0,{children:[s.jsxs(H0,{children:[s.jsx(K0,{children:"Confirmar exclusão"}),s.jsxs(X0,{children:["Tem certeza que deseja excluir o usuário ",f==null?void 0:f.username,"? Esta ação não pode ser desfeita."]})]}),s.jsxs(G0,{children:[s.jsx(FC,{onClick:()=>d(!1),children:"Cancelar"}),s.jsxs(v9,{onClick:G,className:"bg-red-600 hover:bg-red-700",children:[L.isPending&&s.jsx("div",{className:"animate-spin mr-2 h-4 w-4 border-2 border-background border-t-transparent rounded-full"}),"Excluir"]})]})]})})]})}function POe(){var i,o;const{user:e,logoutMutation:t}=Ld(),[r,n]=wa();if((e==null?void 0:e.role)!=="admin")return s.jsxs("div",{className:"flex items-center justify-center h-screen flex-col gap-4",children:[s.jsx("h1",{className:"text-2xl font-bold",children:"Acesso Restrito"}),s.jsx("p",{className:"text-gray-600",children:"Você não tem permissão para acessar esta página."}),s.jsx(W,{onClick:()=>n("/admin"),children:"Voltar ao Dashboard"})]});const a=()=>{t.mutate()};return s.jsxs("div",{className:"flex h-screen bg-gray-100",children:[s.jsxs("div",{className:"w-64 bg-white shadow-sm hidden md:block",children:[s.jsxs("div",{className:"p-6",children:[s.jsx("h1",{className:"text-xl font-bold text-primary",children:"ConfecXpress"}),s.jsx("p",{className:"text-sm text-gray-600",children:"Painel Administrativo"})]}),s.jsx("div",{className:"px-3 py-2",children:s.jsxs("div",{className:"space-y-1",children:[s.jsxs(W,{variant:"ghost",className:"w-full justify-start",onClick:()=>n("/admin"),children:[s.jsx(mS,{className:"h-4 w-4 mr-2"}),"Dashboard"]}),s.jsxs(W,{variant:"ghost",className:"w-full justify-start",onClick:()=>{n("/admin"),sessionStorage.setItem("activeTab","quotes")},children:[s.jsx(Lt,{className:"h-4 w-4 mr-2"}),"Orçamentos"]}),s.jsxs(W,{variant:"ghost",className:"w-full justify-start",onClick:()=>{n("/admin"),sessionStorage.setItem("activeTab","analytics")},children:[s.jsx(oc,{className:"h-4 w-4 mr-2"}),"EstatÃsticas"]}),s.jsxs(W,{variant:"ghost",className:"w-full justify-start",onClick:()=>{n("/admin/analytics")},children:[s.jsx(hn,{className:"h-4 w-4 mr-2"}),"Gerador de Análises"]}),(e==null?void 0:e.role)==="admin"&&s.jsxs(W,{variant:"ghost",className:"w-full justify-start",onClick:()=>{n("/admin"),sessionStorage.setItem("activeTab","settings")},children:[s.jsx(xo,{className:"h-4 w-4 mr-2"}),"Configurações"]}),(e==null?void 0:e.role)==="admin"&&s.jsxs(W,{variant:"default",className:"w-full justify-start",children:[s.jsx(zm,{className:"h-4 w-4 mr-2"}),"Usuários"]})]})}),s.jsxs("div",{className:"absolute bottom-0 w-64 p-4 border-t",children:[s.jsxs("div",{className:"flex items-center mb-4",children:[s.jsxs(wp,{className:"h-9 w-9",children:[s.jsx(bC,{src:""}),s.jsx(Np,{className:"bg-primary text-white",children:((i=e==null?void 0:e.fullName)==null?void 0:i.charAt(0))||((o=e==null?void 0:e.username)==null?void 0:o.charAt(0))||"U"})]}),s.jsxs("div",{className:"ml-3",children:[s.jsx("p",{className:"text-sm font-medium",children:(e==null?void 0:e.fullName)||(e==null?void 0:e.username)}),s.jsx("p",{className:"text-xs text-gray-600",children:(e==null?void 0:e.role)==="admin"?"Administrador":(e==null?void 0:e.role)==="editor"?"Editor":"Usuário"})]})]}),s.jsxs(W,{variant:"outline",className:"w-full justify-start",onClick:a,children:[s.jsx(pS,{className:"h-4 w-4 mr-2"}),"Sair"]})]})]}),s.jsx("div",{className:"flex-1 overflow-auto",children:s.jsxs("div",{className:"container mx-auto px-4 py-6",children:[s.jsx("div",{className:"flex justify-between items-center mb-6",children:s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsxs(W,{variant:"outline",className:"flex items-center gap-1 md:hidden",onClick:()=>n("/admin"),children:[s.jsx(L5,{className:"h-4 w-4"}),"Voltar"]}),s.jsx("h2",{className:"text-2xl font-bold",children:"Usuários"})]})}),s.jsx(SOe,{})]})})]})}const c4=[{label:"Sobre",href:"#sobre"},{label:"Como Funciona",href:"#como-funciona"},{label:"Diferenciais",href:"#diferenciais"},{label:"Produtos",href:"#produtos"},{label:"Depoimentos",href:"#depoimentos"},{label:"Orçamento",href:"#formulario-orcamento"}];function j9(){const[e,t]=b.useState(!1);wa();const r=()=>{t(!e)},n=()=>{e&&t(!1)};return s.jsx("header",{className:"bg-white sticky top-0 z-50 shadow-md",children:s.jsxs("div",{className:"container mx-auto px-4 py-3",children:[s.jsxs("div",{className:"flex justify-between items-center",children:[s.jsx("div",{className:"flex items-center",children:s.jsx(Ny,{href:"/",className:"text-primary font-montserrat font-bold text-2xl",children:"ConfecXpress"})}),s.jsxs("nav",{className:"hidden md:flex items-center space-x-8",children:[c4.map(a=>s.jsx("a",{href:a.href,className:"text-dark hover:text-primary font-medium transition-colors",onClick:n,children:a.label},a.href)),s.jsxs("a",{href:"https://wa.me/551151976208?text=Olá,%20estou%20interessado%20em%20solicitar%20um%20orçamento%20para%20uniformes%20personalizados.%20Podem%20me%20ajudar?",target:"_blank",rel:"noopener noreferrer",className:"flex items-center text-white bg-primary hover:bg-primary/90 px-4 py-2 rounded-lg font-medium transition-colors",children:[s.jsx(Lt,{className:"w-4 h-4 mr-2"}),"Orçamento"]})]}
783),s.jsx("button",{className:"md:hidden focus:outline-none",onClick:r,"aria-label":e?"Fechar menu":"Abrir menu",children:e?s.jsx(No,{className:"text-primary h-6 w-6"}):s.jsx(wG,{className:"text-primary h-6 w-6"})})]}),s.jsx("div",{className:ie("md:hidden mt-4 pb-4 transition-all duration-300 ease-in-out",e?"block opacity-100":"hidden opacity-0"),children:s.jsxs("div",{className:"flex flex-col space-y-4",children:[c4.map(a=>s.jsx("a",{href:a.href,className:"text-dark hover:text-primary font-medium transition-colors",onClick:n,children:a.label},a.href)),s.jsxs("a",{href:"https://wa.me/551151976208?text=Olá,%20estou%20interessado%20em%20solicitar%20um%20orçamento%20para%20uniformes%20personalizados.%20Podem%20me%20ajudar?",target:"_blank",rel:"noopener noreferrer",className:"flex items-center text-white bg-primary hover:bg-primary/90 px-4 py-2 rounded-lg font-medium transition-colors mt-4",children:[s.jsx(Lt,{className:"w-4 h-4 mr-2"}),"Solicitar Orçamento"]})]})})]})})}const Fa="551151976208",u4="[email protected]",Tf={street:"Avenida Brig Faria Lima 1811 Conj 1119/1120",neighborhood:"Jardim Paulistano",city:"São Paulo",state:"SP",zipCode:"01452-001"},Ef={street:"R. Washington LuÃs, 474",neighborhood:"São José",city:"São Caetano do Sul",state:"SP",zipCode:"09581-120"},COe={weekdays:"24 horas",saturday:"24 horas",sunday:"24 horas"},AOe="62.686.711/0001-19",TOe="CONFECCAO DE UNIFORMES PERSONALIZADOS LTDA",EOe="48 horas",OOe="/assets/WhatsApp_Image_2026-01-09_at_12.36.11_1767972985458-D-yrOYsP.jpeg",_Oe="/assets/BLOG_-Selo-RA-Verificada-e-essencial_capa_1769685495668-BKYlUXe8.png",kOe="/assets/imagens-de-selo-de-seguranca-png-20_1769685495668-CNA7J7li.png",MOe="/assets/Untitled_1769685495668-BgDEHTJE.png";function w9(){const e=Fa.replace(/(\d{2})(\d{2})(\d{4})(\d{4})/,"+$1 ($2) $3-$4").replace(/\+55 \(11\) 9519-/,"+55 (11) 5197-");return s.jsx("footer",{className:"bg-gradient-to-b from-primary to-primary-dark text-white py-16",children:s.jsxs("div",{className:"container mx-auto px-4",children:[s.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-x-10 gap-y-12",children:[s.jsxs("div",{children:[s.jsxs("h3",{className:"text-xl font-bold mb-4 flex items-center",children:[s.jsx("div",{className:"w-8 h-8 bg-white/10 rounded-md flex items-center justify-center mr-2",children:s.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[s.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 3L20 7V17L12 21L4 17V7L12 3Z",fill:"currentColor",fillOpacity:"0.2",stroke:"currentColor",strokeWidth:"2"}),s.jsx("path",{d:"M12 12L12 21",stroke:"currentColor",strokeWidth:"2"}),s.jsx("path",{d:"M12 12L4 7",stroke:"currentColor",strokeWidth:"2"}),s.jsx("path",{d:"M12 12L20 7",stroke:"currentColor",strokeWidth:"2"})]})}),"Sobre a ConfecXpress"]}),s.jsx("p",{className:"mb-4 text-gray-200",children:"Somos uma confecção moderna e automatizada, especializada em camisetas, polos e moletons personalizados com entrega rápida garantida."}),s.jsxs("div",{className:"bg-white/10 rounded-lg p-3 inline-block",children:[s.jsx("p",{className:"text-xs text-gray-300 mb-1",children:TOe}),s.jsx("span",{className:"text-sm font-bold mr-2",children:"CNPJ:"}),s.jsx("span",{className:"text-sm text-gray-200",children:AOe})]})]}),s.jsxs("div",{children:[s.jsxs("h3",{className:"text-xl font-bold mb-4 flex items-center",children:[s.jsx("div",{className:"w-8 h-8 bg-white/10 rounded-md flex items-center justify-center mr-2",children:s.jsxs("svg",{width:"22",height:"22",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[s.jsx("path",{d:"M8 6L21 6",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"}),s.jsx("path",{d:"M8 12L21 12",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"}),s.jsx("path",{d:"M8 18L21 18",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"}),s.jsx("path",{d:"M3 6H3.01",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"}),s.jsx("path",{d:"M3 12H3.01",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"}),s.jsx("path",{d:"M3 18H3.01",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})]})}),"Links Rápidos"]}),s.jsxs("ul",{className:"space-y-3 grid grid-cols-1 gap-1",children:[s.jsx("li",{children:s.jsxs("a",{href:"#sobre",className:"flex items-center hover:text-amber-300 transition-colors",children:[s.jsx(un,{className:"w-4 h-4 mr-2"}),s.jsx("span",{children:"Sobre Nós"})]})}),s.jsx("li",{children:s.jsxs("a",{href:"#como-funciona",className:"flex items-center hover:text-amber-300 transition-colors",children:[s.jsx(un,{className:"w-4 h-4 mr-2"}),s.jsx("span",{children:"Como Funciona"})]})}),s.jsx("li",{children:s.jsxs("a",{href:"#diferenciais",className:"flex items-center hover:text-amber-300 transition-colors",children:[s.jsx(un,{className:"w-4 h-4 mr-2"}),s.jsx("span",{children:"Diferenciais"})]})}),s.jsx("li",{children:s.jsxs("a",{href:"#produtos",className:"flex items-center hover:text-amber-300 transition-colors",children:[s.jsx(un,{className:"w-4 h-4 mr-2"}),s.jsx("span",{children:"Produtos"})]})}),s.jsx("li",{children:s.jsxs("a",{href:"#depoimentos",className:"flex items-center hover:text-amber-300 transition-colors",children:[s.jsx(un,{className:"w-4 h-4 mr-2"}),s.jsx("span",{children:"Depoimentos"})]})}),s.jsx("li",{children:s.jsxs("a",{href:"#formulario-orcamento",className:"flex items-center hover:text-amber-300 transition-colors",children:[s.jsx(un,{className:"w-4 h-4 mr-2"}),s.jsx("span",{children:"Orçamento"})]})})]})]}),s.jsxs("div",{children:[s.jsxs("h3",{className:"text-xl font-bold mb-4 flex items-center",children:[s.jsx("div",{className:"w-8 h-8 bg-white/10 rounded-md flex items-center justify-center mr-2",children:s.jsxs("svg",{width:"22",height:"22",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[s.jsx("path",{d:"M14 8.00002C15.1046 8.00002 16 7.10459 16 6.00002C16 4.89545 15.1046 4.00002 14 4.00002C12.8954 4.00002 12 4.89545 12 6.00002C12 7.10459 12.8954 8.00002 14 8.00002Z",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),s.jsx("path",{d:"M4 6H12",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),s.jsx("path",{d:"M16 6H20",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),s.jsx("path",{d:"M8 14C9.10457 14 10 13.1046 10 12C10 10.8954 9.10457 10 8 10C6.89543 10 6 10.8954 6 12C6 13.1046 6.89543 14 8 14Z",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),s.jsx("path",{d:"M4 12H6",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),s.jsx("path",{d:"M10 12H20",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),s.jsx("path",{d:"M17 20C18.1046 20 19 19.1046 19 18C19 16.8954 18.1046 16 17 16C15.8954 16 15 16.8954 15 18C15 19.1046 15.8954 20 17 20Z",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),s.jsx("path",{d:"M4 18H15",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),s.jsx("path",{d:"M19 18H20",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}),"Fale Conosco"]}),s.jsxs("ul",{className:"space-y-4",children:[s.jsxs("li",{className:"flex items-start",children:[s.jsx("div",{className:"w-8 h-8 bg-white/10 rounded-md flex items-center justify-center mr-3 shrink-0 mt-1",children:s.jsx(El,{className:"w-4 h-4"})}),s.jsxs("div",{children:[s.jsx("span",{className:"block text-sm text-gray-300 mb-1",children:"E-mail"}),s.jsx("a",{href:`mailto:${u4}`,className:"hover:text-amber-300 transition-colors break-all",children:u4})]})]}),s.jsxs("li",{className:"flex items-start",children:[s.jsx("div",{className:"w-8 h-8 bg-white/10 rounded-md flex items-center justify-center mr-3 shrink-0 mt-1",children:s.jsx(_y,{className:"w-4 h-4"})}),s.jsxs("div",{children:[s.jsx("span",{className:"block text-sm text-gray-300 mb-1",children:"WhatsApp"}),s.jsx("a",{href:`https://wa.me/${Fa}`,className:"hover:text-amber-300 transition-colors",children:e})]})]}),s.jsxs("li",{className:"flex items-start",children:[s.jsx("div",{className:"w-8 h-8 bg-white/10 rounded-md flex items-center justify-center mr-3 shrink-0 mt-1",children:s.jsx(Ps,{className:"w-4 h-4"})}),s.jsxs("div",{children:[s.jsx("span",{className:"block text-sm text-gray-300 mb-1",children:"Atendimento"}),s.jsx("span",{children:COe.weekdays})]})]})]})]}),s.jsxs("div",{children:[s.jsxs("h3",{className:"text-xl font-bold mb-4 flex items-center",children:[s.jsx("div",{className:"w-8 h-8 bg-white/10 rounded-md flex items-center justify-center mr-2",children:s.jsx(H5,{className:"w-5 h-5"})}),"Endereços"]}),s.jsxs("div",{className:"mb-4",children:[s.jsx("span",{className:"text-amber-300 font-semibold text-sm",children:"Escritório"}),s.jsxs("p",{className:"text-gray-200 leading-relaxed mt-1",children:[Tf.street,s.jsx("br",{}),Tf.neighborhood,s.jsx("br",{}),Tf.city," - ",Tf.state,s.jsx("br",{}),Tf.zipCode]})]}),s.jsxs("div",{className:"mb-4",children:[s.jsxs("span",{className:"text-amber-300 font-semibold text-sm flex items-center",children:[s.jsx(W5,{className:"w-4 h-4 mr-1"}),"Fábrica"]}),s.jsx("div",{className:"mt-2 mb-3 rounded-lg overflow-hidden shadow-lg",children:s.jsx("img",{src:OOe,alt:"Fachada da Fábrica ConfecXpress em São Caetano do Sul",className:"w-full h-24 object-cover"})}),s.jsxs("p",{className:"text-gray-200 leading-relaxed text-sm",children:[Ef.street,s.jsx("br",{}),Ef.neighborhood,s.jsx("br",{}),Ef.city," - ",Ef.state,s.jsx("br",{}),Ef.zipCode]})]}),s.jsxs("div",{className:"mt-6",children:[s.jsx("h4",{className:"font-bold mb-3 text-amber-300",children:"Siga-nos nas redes sociais"}),s.jsxs("div",{className:"flex gap-3",children:[s.jsx("a",{href:`https://wa.me/${Fa}`,className:"w-10 h-10 bg-white/10 text-white rounded-full flex items-center justify-center hover:bg-amber-300 hover:text-primary transition-all","aria-label":"Instagram",target:"_blank",rel:"noopener noreferrer",children:s.jsx(hG,{className:"w-5 h-5"})}),s.jsx("a",{href:`https://wa.me/${Fa}`,className:"w-10 h-10 bg-white/10 text-white rounded-full flex items-center justify-center hover:bg-amber-300 hover:text-primary transition-all","aria-label":"Facebook",target:"_blank",rel:"noopener noreferrer",children:s.jsx(Dm,{className:"w-5 h-5"})}),s.jsx("a",{href:`https://wa.me/${Fa}`,className:"w-10 h-10 bg-white/10 text-white rounded-full flex items-center justify-center hover:bg-amber-300 hover:text-primary transition-all","aria-label":"LinkedIn",target:"_blank",rel:"noopener noreferrer",children:s.jsx(hS,{className:"w-5 h-5"})})]})]})]})]}),s.jsxs("div",{className:"border-t border-white/20 mt-12 pt-8",children:[s.jsxs("div",{className:"text-center mb-6",children:[s.jsxs("div",{className:"flex items-center justify-center mb-3",children:[s.jsx(EG,{className:"w-5 h-5 text-amber-300 mr-2"}),s.jsx("h4",{className:"text-lg font-bold text-white",children:"Segurança e Confiança"})]}),s.jsx("p",{className:"text-gray-300 text-sm",children:"Empresa verificada e site 100% seguro"})]}),s.jsx("div",{className:"flex justify-center mb-6",children:s.jsx("div",{className:"bg-white rounded-xl p-4 shadow-lg max-w-md w-full",children:s.jsx("img",{src:_Oe,alt:"Selo Reclame Aqui Verificada",className:"w-full h-auto object-contain"})})}),s.jsxs("div",{className:"flex flex-wrap items-center justify-center gap-3 mb-6",children:[s.jsx("div",{className:"bg-white rounded-lg p-2 shadow-md",children:s.jsx("img",{src:kOe,alt:"Site Protegido 100% Seguro",className:"h-8 w-auto object-contain"})}),s.jsxs("div",{className:"bg-white rounded-lg px-3 py-2 shadow-md flex items-center",children:[s.jsx(bG,{className:"w-4 h-4 text-green-600 mr-1"}),s.jsx("span",{className:"text-xs font-bold text-gray-800",children:"SSL SEGURO"})]})]}),s.jsx("div",{className:"flex justify-center",children:s.jsx("img",{src:MOe,alt:"Selos de Segurança - Comodo, Norton, RapidSSL, GeoTrust, DigiCert, GoDaddy",className:"max-w-sm h-auto object-contain opacity-80"})})]}),s.jsxs("div",{className:"border-t border-white/20 pt-8 text-center",children:[s.jsxs("p",{className:"text-gray-300 mb-3",children:["© ",new Date().getFullYear()," ConfecXpress - Todos os direitos reservados"]}),s.jsx("div",{className:"flex justify-center space-x-4 text-sm",children:s.jsx(Ny,{href:"/politica-de-privacidade",className:"text-gray-300 hover:text-amber-300 transition-colors",children:"PolÃtica de Privacidade"})})]})]})})}function DOe(){const e="#e94999";return s.jsx("section",{className:"py-16 md:py-24 bg-primary text-white",children:s.jsx("div",{className:"container mx-auto px-4",children:s.jsxs("div",{className:"flex flex-col md:flex-row items-center",children:[s.jsxs("div",{className:"w-full md:w-1/2 mb-8 md:mb-0",children:[s.jsxs("h1",{className:"text-4xl md:text-5xl lg:text-6xl font-bold font-montserrat mb-4 leading-tight",children:["Camisetas e Polos ",s.jsx("span",{style:{color:e},children:"Personalizadas"})," em Tempo Recorde"]}),s.jsxs("div",{className:"mb-6 text-xl",children:[s.jsxs("div",{className:"flex items-center mb-2",children:[s.jsxs("div",{style:{backgroundColor:e},className:"text-white font-bold py-1 px-3 rounded-md mr-3 flex items-center",children:[s.jsx(Ps,{className:"w-4 h-4 mr-1"}),s.jsx("span",{children:"48h"})]}),s.jsx("span",{children:"Pedidos entregues em até 48 horas"})]}),s.jsxs("div",{className:"flex flex-col gap-1",children:[s.jsxs("div",{className:"flex items-center",children:[s.jsxs("div",{className:"bg-white text-primary font-bold py-1 px-3 rounded-md mr-3 flex items-center",children:[s.jsx(yS,{className:"w-4 h-4 mr-1"}),s.jsx("span",{children:"R$"})]}),s.jsx("span",{children:"Polos prontas e bordadas a partir de R$ 39,90"})]}),s.jsx("p",{className:"text-white/60 text-sm ml-1",children:"* Valor válido a partir de 500 peças. Quanto maior o pedido, menor o preço unitário."})]})]}),s.jsxs("div",{className:"flex flex-col md:flex-row gap-4",children:[s.jsx(W,{asChild:!0,size:"lg",style:{backgroundColor:e},className:"text-white hover:opacity-90 font-bold text-lg shadow-lg rounded-lg px-8",children:s.jsxs("a",{href:`https://wa.me/${Fa}`,target:"_blank",rel:"noopener noreferrer",children:[s.jsx("svg",{className:"w-5 h-5 mr-2",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",fill:"
783currentColor",children:s.jsx("path",{d:"M380.9 97.1C339 55.1 283.2 32 223.9 32c-122.4 0-222 99.6-222 222 0 39.1 10.2 77.3 29.6 111L0 480l117.7-30.9c32.4 17.7 68.9 27 106.1 27h.1c122.3 0 224.1-99.6 224.1-222 0-59.3-25.2-115-67.1-157zm-157 341.6c-33.2 0-65.7-8.9-94-25.7l-6.7-4-69.8 18.3L72 359.2l-4.4-7c-18.5-29.4-28.2-63.3-28.2-98.2 0-101.7 82.8-184.5 184.6-184.5 49.3 0 95.6 19.2 130.4 54.1 34.8 34.9 56.2 81.2 56.1 130.5 0 101.8-84.9 184.6-186.6 184.6zm101.2-138.2c-5.5-2.8-32.8-16.2-37.9-18-5.1-1.9-8.8-2.8-12.5 2.8-3.7 5.6-14.3 18-17.6 21.8-3.2 3.7-6.5 4.2-12 1.4-32.6-16.3-54-29.1-75.5-66-5.7-9.8 5.7-9.1 16.3-30.3 1.8-3.7.9-6.9-.5-9.7-1.4-2.8-12.5-30.1-17.1-41.2-4.5-10.8-9.1-9.3-12.5-9.5-3.2-.2-6.9-.2-10.6-.2-3.7 0-9.7 1.4-14.8 6.9-5.1 5.6-19.4 19-19.4 46.3 0 27.3 19.9 53.7 22.6 57.4 2.8 3.7 39.1 59.7 94.8 83.8 35.2 15.2 49 16.5 66.6 13.9 10.7-1.6 32.8-13.4 37.4-26.4 4.6-13 4.6-24.1 3.2-26.4-1.3-2.5-5-3.9-10.5-6.6z"})}),"Falar no WhatsApp"]})}),s.jsx(W,{asChild:!0,size:"lg",className:"bg-white text-primary hover:opacity-90 font-bold text-lg shadow-lg rounded-lg px-8",children:s.jsxs("a",{href:"https://wa.me/551151976208?text=Olá,%20estou%20interessado%20em%20solicitar%20um%20orçamento%20para%20uniformes%20personalizados.%20Podem%20me%20ajudar?",target:"_blank",rel:"noopener noreferrer",children:[s.jsx(Lt,{className:"w-5 h-5 mr-2"}),"Solicitar Orçamento"]})})]})]}),s.jsx("div",{className:"w-full md:w-1/2 flex justify-center",children:s.jsx("img",{src:"/funcionario.jpg",alt:"Funcionário da ConfecXpress com pacote de entrega",className:"rounded-lg shadow-2xl max-w-full md:max-h-[400px] object-cover"})})]})})})}function ROe({value:e,label:t,className:r}){return s.jsxs("div",{className:ie("bg-light rounded-lg shadow-md p-6 text-center w-40 transition-all duration-300","hover:transform hover:scale-105 hover:shadow-lg",r),children:[s.jsx("div",{className:"text-4xl font-bold text-primary",children:e}),s.jsx("div",{className:"text-sm mt-2",children:t})]})}function IOe(){const e=[{value:"48h",label:"Prazo de Entrega"},{value:"30min",label:"Orçamento Rápido"},{value:"100%",label:"Transparência"},{value:"24/7",label:"Acompanhamento"}];return s.jsx("section",{className:"py-10 bg-white",children:s.jsx("div",{className:"container mx-auto px-4",children:s.jsx("div",{className:"flex flex-wrap justify-center gap-6 md:gap-10",children:e.map((t,r)=>s.jsx(ROe,{value:t.value,label:t.label},r))})})})}function wi({title:e,highlight:t,description:r,center:n=!0,className:a}){return s.jsxs("div",{className:ie("mb-12",n?"text-center":"text-left",a),children:[s.jsxs("h2",{className:"text-3xl md:text-4xl font-bold font-montserrat mb-4",children:[e," ",t&&s.jsx("span",{className:"text-primary",children:t})]}),r&&s.jsx("p",{className:ie("text-lg text-muted-foreground",n&&"max-w-3xl mx-auto"),children:r}),s.jsx("div",{className:ie("w-24 h-1 bg-primary rounded-full mt-4",n?"mx-auto":"ml-0")})]})}const VC=b.createContext({});function zC(e){const t=b.useRef(null);return t.current===null&&(t.current=e()),t.current}const Y0=b.createContext(null),BC=b.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class $Oe extends b.Component{getSnapshotBeforeUpdate(t){const r=this.props.childRef.current;if(r&&t.isPresent&&!this.props.isPresent){const n=this.props.sizeRef.current;n.height=r.offsetHeight||0,n.width=r.offsetWidth||0,n.top=r.offsetTop,n.left=r.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function LOe({children:e,isPresent:t}){const r=b.useId(),n=b.useRef(null),a=b.useRef({width:0,height:0,top:0,left:0}),{nonce:i}=b.useContext(BC);return b.useInsertionEffect(()=>{const{width:o,height:l,top:c,left:u}=a.current;if(t||!n.current||!o||!l)return;n.current.dataset.motionPopId=r;const d=document.createElement("style");return i&&(d.nonce=i),document.head.appendChild(d),d.sheet&&d.sheet.insertRule(` 784 [data-motion-pop-id="${r}"] { 785 position: absolute !important; 786 width: ${o}px !important; 787 height: ${l}px !important; 788 top: ${c}px !important; 789 left: ${u}px !important; 790 } 791 `),()=>{document.head.removeChild(d)}},[t]),s.jsx($Oe,{isPresent:t,childRef:n,sizeRef:a,children:b.cloneElement(e,{ref:n})})}const FOe=({children:e,initial:t,isPresent:r,onExitComplete:n,custom:a,presenceAffectsLayout:i,mode:o})=>{const l=zC(VOe),c=b.useId(),u=b.useCallback(f=>{l.set(f,!0);for(const m of l.values())if(!m)return;n&&n()},[l,n]),d=b.useMemo(()=>({id:c,initial:t,isPresent:r,custom:a,onExitComplete:u,register:f=>(l.set(f,!1),()=>l.delete(f))}),i?[Math.random(),u]:[r,u]);return b.useMemo(()=>{l.forEach((f,m)=>l.set(m,!1))},[r]),b.useEffect(()=>{!r&&!l.size&&n&&n()},[r]),o==="popLayout"&&(e=s.jsx(LOe,{isPresent:r,children:e})),s.jsx(Y0.Provider,{value:d,children:e})};function VOe(){return new Map}function N9(e=!0){const t=b.useContext(Y0);if(t===null)return[!0,null];const{isPresent:r,onExitComplete:n,register:a}=t,i=b.useId();b.useEffect(()=>{e&&a(i)},[e]);const o=b.useCallback(()=>e&&n&&n(i),[i,n,e]);return!r&&n?[!1,o]:[!0]}const Pg=e=>e.key||"";function d4(e){const t=[];
vendor: 41,209 bytes, line 791
791return b.Children.forEach(e,r=>{b.isValidElement(r)&&t.push(r)}),t}const UC=typeof window<"u",S9=UC?b.useLayoutEffect:b.useEffect,nc=({children:e,custom:t,initial:r=!0,onExitComplete:n,presenceAffectsLayout:a=!0,mode:i="sync",propagate:o=!1})=>{const[l,c]=N9(o),u=b.useMemo(()=>d4(e),[e]),d=o&&!l?[]:u.map(Pg),f=b.useRef(!0),m=b.useRef(u),p=zC(()=>new Map),[v,h]=b.useState(u),[x,y]=b.useState(u);S9(()=>{f.current=!1,m.current=u;for(let S=0;S<x.length;S++){const w=Pg(x[S]);d.includes(w)?p.delete(w):p.get(w)!==!0&&p.set(w,!1)}},[x,d.length,d.join("-")]);const g=[];if(u!==v){let S=[...u];for(let w=0;w<x.length;w++){const N=x[w],P=Pg(N);d.includes(P)||(S.splice(w,0,N),g.push(N))}i==="wait"&&g.length&&(S=g),y(d4(S)),h(u);return}const{forceRender:j}=b.useContext(VC);return s.jsx(s.Fragment,{children:x.map(S=>{const w=Pg(S),N=o&&!l?!1:u===x||d.includes(w),P=()=>{if(p.has(w))p.set(w,!0);else return;let C=!0;p.forEach(A=>{A||(C=!1)}),C&&(j==null||j(),y(m.current),o&&(c==null||c()),n&&n())};return s.jsx(FOe,{isPresent:N,initial:!f.current||r?void 0:!1,custom:N?void 0:t,presenceAffectsLayout:a,mode:i,onExitComplete:N?void 0:P,children:S},w)})})},Gn=e=>e;let WN=Gn;function WC(e){let t;return()=>(t===void 0&&(t=e()),t)}const Nd=(e,t,r)=>{const n=t-e;return n===0?1:(r-e)/n},li=e=>e*1e3,ci=e=>e/1e3,zOe={skipAnimations:!1,useManualTiming:!1};function BOe(e){let t=new Set,r=new Set,n=!1,a=!1;const i=new WeakSet;let o={delta:0,timestamp:0,isProcessing:!1};function l(u){i.has(u)&&(c.schedule(u),e()),u(o)}const c={schedule:(u,d=!1,f=!1)=>{const p=f&&n?t:r;return d&&i.add(u),p.has(u)||p.add(u),u},cancel:u=>{r.delete(u),i.delete(u)},process:u=>{if(o=u,n){a=!0;return}n=!0,[t,r]=[r,t],t.forEach(l),t.clear(),n=!1,a&&(a=!1,c.process(u))}};return c}const Cg=["read","resolveKeyframes","update","preRender","render","postRender"],UOe=40;function P9(e,t){let r=!1,n=!0;const a={delta:0,timestamp:0,isProcessing:!1},i=()=>r=!0,o=Cg.reduce((y,g)=>(y[g]=BOe(i),y),{}),{read:l,resolveKeyframes:c,update:u,preRender:d,render:f,postRender:m}=o,p=()=>{const y=performance.now();r=!1,a.delta=n?1e3/60:Math.max(Math.min(y-a.timestamp,UOe),1),a.timestamp=y,a.isProcessing=!0,l.process(a),c.process(a),u.process(a),d.process(a),f.process(a),m.process(a),a.isProcessing=!1,r&&t&&(n=!1,e(p))},v=()=>{r=!0,n=!0,a.isProcessing||e(p)};return{schedule:Cg.reduce((y,g)=>{const j=o[g];return y[g]=(S,w=!1,N=!1)=>(r||v(),j.schedule(S,w,N)),y},{}),cancel:y=>{for(let g=0;g<Cg.length;g++)o[Cg[g]].cancel(y)},state:a,steps:o}}const{schedule:Vt,cancel:$o,state:Lr,steps:Sj}=P9(typeof requestAnimationFrame<"u"?requestAnimationFrame:Gn,!0),C9=b.createContext({strict:!1}),f4={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"]},Sd={};for(const e in f4)Sd[e]={isEnabled:t=>f4[e].some(r=>!!t[r])};function WOe(e){for(const t in e)Sd[t]={...Sd[t],...e[t]}}const qOe=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 Jx(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||qOe.has(e)}let A9=e=>!Jx(e);function HOe(e){e&&(A9=t=>t.startsWith("on")?!Jx(t):e(t))}try{HOe(require("@emotion/is-prop-valid").default)}catch{}function GOe(e,t,r){const n={};for(const a in e)a==="values"&&typeof e.values=="object"||(A9(a)||r===!0&&Jx(a)||!t&&!Jx(a)||e.draggable&&a.startsWith("onDrag"))&&(n[a]=e[a]);return n}function KOe(e){if(typeof Proxy>"u")return e;const t=new Map,r=(...n)=>e(...n);return new Proxy(r,{get:(n,a)=>a==="create"?e:(t.has(a)||t.set(a,e(a)),t.get(a))})}const Z0=b.createContext({});function Wh(e){return typeof e=="string"||Array.isArray(e)}function Q0(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const qC=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],HC=["initial",...qC];function J0(e){return Q0(e.animate)||HC.some(t=>Wh(e[t]))}function T9(e){return!!(J0(e)||e.variants)}function XOe(e,t){if(J0(e)){const{initial:r,animate:n}=e;return{initial:r===!1||Wh(r)?r:void 0,animate:Wh(n)?n:void 0}}return e.inherit!==!1?t:{}}function YOe(e){const{initial:t,animate:r}=XOe(e,b.useContext(Z0));return b.useMemo(()=>({initial:t,animate:r}),[m4(t),m4(r)])}function m4(e){return Array.isArray(e)?e.join(" "):e}const ZOe=Symbol.for("motionComponentSymbol");function Qc(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function QOe(e,t,r){return b.useCallback(n=>{n&&e.onMount&&e.onMount(n),t&&(n?t.mount(n):t.unmount()),r&&(typeof r=="function"?r(n):Qc(r)&&(r.current=n))},[t])}const GC=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),JOe="framerAppearId",E9="data-"+GC(JOe),{schedule:KC,cancel:PRe}=P9(queueMicrotask,!1),O9=b.createContext({});function e_e(e,t,r,n,a){var i,o;const{visualElement:l}=b.useContext(Z0),c=b.useContext(C9),u=b.useContext(Y0),d=b.useContext(BC).reducedMotion,f=b.useRef(null);n=n||c.renderer,!f.current&&n&&(f.current=n(e,{visualState:t,parent:l,props:r,presenceContext:u,blockInitialAnimation:u?u.initial===!1:!1,reducedMotionConfig:d}));const m=f.current,p=b.useContext(O9);m&&!m.projection&&a&&(m.type==="html"||m.type==="svg")&&t_e(f.current,r,a,p);const v=b.useRef(!1);b.useInsertionEffect(()=>{m&&v.current&&m.update(r,u)});const h=r[E9],x=b.useRef(!!h&&!(!((i=window.MotionHandoffIsComplete)===null||i===void 0)&&i.call(window,h))&&((o=window.MotionHasOptimisedAnimation)===null||o===void 0?void 0:o.call(window,h)));return S9(()=>{m&&(v.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),KC.render(m.render),x.current&&m.animationState&&m.animationState.animateChanges())}),b.useEffect(()=>{m&&(!x.current&&m.animationState&&m.animationState.animateChanges(),x.current&&(queueMicrotask(()=>{var y;(y=window.MotionHandoffMarkAsComplete)===null||y===void 0||y.call(window,h)}),x.current=!1))}),m}function t_e(e,t,r,n){const{layoutId:a,layout:i,drag:o,dragConstraints:l,layoutScroll:c,layoutRoot:u}=t;e.projection=new r(e.latestValues,t["data-framer-portal-id"]?void 0:_9(e.parent)),e.projection.setOptions({layoutId:a,layout:i,alwaysMeasureLayout:!!o||l&&Qc(l),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:n,layoutScroll:c,layoutRoot:u})}function _9(e){if(e)return e.options.allowProjection!==!1?e.projection:_9(e.parent)}function r_e({preloadedFeatures:e,createVisualElement:t,useRender:r,useVisualState:n,Component:a}){var i,o;e&&WOe(e);function l(u,d){let f;const m={...b.useContext(BC),...u,layoutId:n_e(u)},{isStatic:p}=m,v=YOe(u),h=n(u,p);if(!p&&UC){a_e();const x=s_e(m);f=x.MeasureLayout,v.visualElement=e_e(a,h,m,t,x.ProjectionNode)}return s.jsxs(Z0.Provider,{value:v,children:[f&&v.visualElement?s.jsx(f,{visualElement:v.visualElement,...m}):null,r(a,u,QOe(h,v.visualElement,d),h,p,v.visualElement)]})}l.displayName=`motion.${typeof a=="string"?a:`create(${(o=(i=a.displayName)!==null&&i!==void 0?i:a.name)!==null&&o!==void 0?o:""})`}`;const c=b.forwardRef(l);return c[ZOe]=a,c}function n_e({layoutId:e}){const t=b.useContext(VC).id;return t&&e!==void 0?t+"-"+e:e}function a_e(e,t){b.useContext(C9).strict}function s_e(e){const{drag:t,layout:r}=Sd;if(!t&&!r)return{};const n={...t,...r};return{MeasureLayout:t!=null&&t.isEnabled(e)||r!=null&&r.isEnabled(e)?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}const i_e=["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 XC(e){return typeof e!="string"||e.includes("-")?!1:!!(i_e.indexOf(e)>-1||/[A-Z]/u.test(e))}function h4(e){const t=[{},{}];return e==null||e.values.forEach((r,n)=>{t[0][n]=r.get(),t[1][n]=r.getVelocity()}),t}function YC(e,t,r,n){if(typeof t=="function"){const[a,i]=h4(n);t=t(r!==void 0?r:e.custom,a,i)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[a,i]=h4(n);t=t(r!==void 0?r:e.custom,a,i)}return t}const qN=e=>Array.isArray(e),o_e=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),l_e=e=>qN(e)?e[e.length-1]||0:e,tn=e=>!!(e&&e.getVelocity);function Zg(e){const t=tn(e)?e.get():e;return o_e(t)?t.toValue():t}function c_e({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:r},n,a,i){const o={latestValues:u_e(n,a,i,e),renderState:t()};return r&&(o.onMount=l=>r({props:n,current:l,...o}),o.onUpdate=l=>r(l)),o}const k9=e=>(t,r)=>{const n=b.useContext(Z0),a=b.useContext(Y0),i=()=>c_e(e,t,n,a);return r?i():zC(i)};function u_e(e,t,r,n){const a={},i=n(e,{});for(const m in i)a[m]=Zg(i[m]);let{initial:o,animate:l}=e;const c=J0(e),u=T9(e);t&&u&&!c&&e.inherit!==!1&&(o===void 0&&(o=t.initial),l===void 0&&(l=t.animate));let d=r?r.initial===!1:!1;d=d||o===!1;const f=d?l:o;if(f&&typeof f!="boolean"&&!Q0(f)){const m=Array.isArray(f)?f:[f];for(let p=0;p<m.length;p++){const v=YC(e,m[p]);if(v){const{transitionEnd:h,transition:x,...y}=v;for(const g in y){let j=y[g];if(Array.isArray(j)){const S=d?j.length-1:0;j=j[S]}j!==null&&(a[g]=j)}for(const g in h)a[g]=h[g]}}}return a}const rf=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],pc=new Set(rf),M9=e=>t=>typeof t=="string"&&t.startsWith(e),D9=M9("--"),d_e=M9("var(--"),ZC=e=>d_e(e)?f_e.test(e.split("/*")[0].trim()):!1,f_e=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,R9=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Ni=(e,t,r)=>r>t?t:r<e?e:r,nf={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},qh={...nf,transform:e=>Ni(0,1,e)},Ag={...nf,default:1},Cp=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Fi=Cp("deg"),Ns=Cp("%"),ze=Cp("px"),m_e=Cp("vh"),h_e=Cp("vw"),p4={...Ns,parse:e=>Ns.parse(e)/100,transform:e=>Ns.transform(e*100)},p_e={borderWidth:ze,borderTopWidth:ze,borderRightWidth:ze,borderBottomWidth:ze,borderLeftWidth:ze,borderRadius:ze,radius:ze,borderTopLeftRadius:ze,borderTopRightRadius:ze,borderBottomRightRadius:ze,borderBottomLeftRadius:ze,width:ze,maxWidth:ze,height:ze,maxHeight:ze,top:ze,right:ze,bottom:ze,left:ze,padding:ze,paddingTop:ze,paddingRight:ze,paddingBottom:ze,paddingLeft:ze,margin:ze,marginTop:ze,marginRight:ze,marginBottom:ze,marginLeft:ze,backgroundPositionX:ze,backgroundPositionY:ze},g_e={rotate:Fi,rotateX:Fi,rotateY:Fi,rotateZ:Fi,scale:Ag,scaleX:Ag,scaleY:Ag,scaleZ:Ag,skew:Fi,skewX:Fi,skewY:Fi,distance:ze,translateX:ze,translateY:ze,translateZ:ze,x:ze,y:ze,z:ze,perspective:ze,transformPerspective:ze,opacity:qh,originX:p4,originY:p4,originZ:ze},g4={...nf,transform:Math.round},QC={...p_e,...g_e,zIndex:g4,size:ze,fillOpacity:qh,strokeOpacity:qh,numOctaves:g4},v_e={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},x_e=rf.length;function y_e(e,t,r){let n="",a=!0;for(let i=0;i<x_e;i++){const o=rf[i],l=e[o];if(l===void 0)continue;let c=!0;if(typeof l=="number"?c=l===(o.startsWith("scale")?1:0):c=parseFloat(l)===0,!c||r){const u=R9(l,QC[o]);if(!c){a=!1;const d=v_e[o]||o;n+=`${d}(${u}) `}r&&(t[o]=u)}}return n=n.trim(),r?n=r(t,a?"":n):a&&(n="none"),n}function JC(e,t,r){const{style:n,vars:a,transformOrigin:i}=e;let o=!1,l=!1;for(const c in t){const u=t[c];if(pc.has(c)){o=!0;continue}else if(D9(c)){a[c]=u;continue}else{const d=R9(u,QC[c]);c.startsWith("origin")?(l=!0,i[c]=d):n[c]=d}}if(t.transform||(o||r?n.transform=y_e(t,e.transform,r):n.transform&&(n.transform="none")),l){const{originX:c="50%",originY:u="50%",originZ:d=0}=i;n.transformOrigin=`${c} ${u} ${d}`}}const b_e={offset:"stroke-dashoffset",array:"stroke-dasharray"},j_e={offset:"strokeDashoffset",array:"strokeDasharray"};function w_e(e,t,r=1,n=0,a=!0){e.pathLength=1;const i=a?b_e:j_e;e[i.offset]=ze.transform(-n);const o=ze.transform(t),l=ze.transform(r);e[i.array]=`${o} ${l}`}function v4(e,t,r){return typeof e=="string"?e:ze.transform(t+r*e)}function N_e(e,t,r){const n=v4(t,e.x,e.width),a=v4(r,e.y,e.height);return`${n} ${a}`}function eA(e,{attrX:t,attrY:r,attrScale:n,originX:a,originY:i,pathLength:o,pathSpacing:l=1,pathOffset:c=0,...u},d,f){if(JC(e,u,f),d){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:m,style:p,dimensions:v}=e;m.transform&&(v&&(p.transform=m.transform),delete m.transform),v&&(a!==void 0||i!==void 0||p.transform)&&(p.transformOrigin=N_e(v,a!==void 0?a:.5,i!==void 0?i:.5)),t!==void 0&&(m.x=t),r!==void 0&&(m.y=r),n!==void 0&&(m.scale=n),o!==void 0&&w_e(m,o,l,c,!1)}const tA=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),I9=()=>({...tA(),attrs:{}}),rA=e=>typeof e=="string"&&e.toLowerCase()==="svg";function $9(e,{style:t,vars:r},n,a){Object.assign(e.style,t,a&&a.getProjectionStyles(n));for(const i in r)e.style.setProperty(i,r[i])}const L9=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 F9(e,t,r,n){$9(e,t,void 0,n);for(const a in t.attrs)e.setAttribute(L9.has(a)?a:GC(a),t.attrs[a])}const ey={};function S_e(e){Object.assign(ey,e)}function V9(e,{layout:t,layoutId:r}){return pc.has(e)||e.startsWith("origin")||(t||r!==void 0)&&(!!ey[e]||e==="opacity")}function nA(e,t,r){var n;const{style:a}=e,i={};for(const o in a)(tn(a[o])||t.style&&tn(t.style[o])||V9(o,e)||((n=r==null?void 0:r.getValue(o))===null||n===void 0?void 0:n.liveStyle)!==void 0)&&(i[o]=a[o]);return i}function z9(e,t,r){const n=nA(e,t,r);for(const a in e)if(tn(e[a])||tn(t[a])){const i=rf.indexOf(a)!==-1?"attr"+a.charAt(0).toUpperCase()+a.substring(1):a;n[i]=e[a]}return n}function P_e(e,t){try{t.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{t.dimensions={x:0,y:0,width:0,height:0}}}const x4=["x","y","width","height","cx","cy","r"],C_e={useVisualState:k9({scrapeMotionValuesFromProps:z9,createRenderState:I9,onUpdate:({props:e,prevProps:t,current:r,renderState:n,latestValues:a})=>{if(!r)return;let i=!!e.drag;if(!i){for(const l in a)if(pc.has(l)){i=!0;break}}if(!i)return;let o=!t;if(t)for(let l=0;l<x4.length;l++){const c=x4[l];e[c]!==t[c]&&(o=!0)}o&&Vt.read(()=>{P_e(r,n),Vt.render(()=>{eA(n,a,rA(r.tagName),e.transformTemplate),F9(r,n)})})}})},A_e={useVisualState:k9({scrapeMotionValuesFromProps:nA,createRenderState:tA})};function B9(e,t,r){for(const n in t)!tn(t[n])&&!V9(n,r)&&(e[n]=t[n])}function T_e({transformTemplate:e},t){return b.useMemo(()=>{const r=tA();return JC(r,t,e),Object.assign({},r.vars,r.style)},[t])}function E_e(e,t){const r=e.style||{},n={};return B9(n,r,e),Object.assign(n,T_e(e,t)),n}function O_e(e,t){const r={},n=E_e(e,t);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,n.userSelect=n.WebkitUserSelect=n.WebkitTouchCallout="none",n.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=n,r}function __e(e,t,r,n){const a=b.useMemo(()=>{const i=I9();return eA(i,t,rA(n),e.transformTemplate),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};B9(i,e.style,e),a.style={...i,...a.style}}return a}function k_e(e=!1){return(r,n,a,{latestValues:i},o)=>{const c=(XC(r)?__e:O_e)(n,i,o,r),u=GOe(n,typeof r=="string",e),d=r!==b.Fragment?{...u,...c,ref:a}:{},{children:f}=n,m=b.useMemo(()=>tn(f)?f.get():f,[f]);return b.createElement(r,{...d,children:m})}}function M_e(e,t){return function(n,{forwardMotionProps:a}={forwardMotionProps:!1}){const o={...XC(n)?C_e:A_e,preloadedFeatures:e,useRender:k_e(a),createVisualElement:t,Component:n};return r_e(o)}}function U9(e,t){if(!Array.isArray(t))return!1;const r=t.length;if(r!==e.length)return!1;for(let n=0;n<r;n++)if(t[n]!==e[n])return!1;return!0}function eb(e,t,r){const n=e.getProps();return YC(n,t,r!==void 0?r:n.custom,e)}const D_e=WC(()=>window.ScrollTimeline!==void 0);class R_e{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,r){for(let n=0;n<this.animations.length;n++)this.animations[n][t]=r}attachTimeline(t,r){const n=this.animations.map(a=>{if(D_e()&&a.attachTimeline)return a.attachTimeline(t);if(typeof r=="function")return r(a)});return()=>{n.forEach((a,i)=>{a&&a(),this.animations[i].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let r=0;r<this.animations.length;r++)t=Math.max(t,this.animations[r].duration);return t}runAll(t){this.animations.forEach(r=>r[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class I_e extends R_e{then(t,r){return Promise.all(this.animations).then(t).catch(r)}}function aA(e,t){return e?e[t]||e.default||e:void 0}const HN=2e4;function W9(e){let t=0;const r=50;let n=e.next(t);for(;!n.done&&t<HN;)t+=r,n=e.next(t);return t>=HN?1/0:t}function sA(e){return typeof e=="function"}function y4(e,t){e.timeline=t,e.onfinish=null}const iA=e=>Array.isArray(e)&&typeof e[0]=="number",$_e={linearEasing:void 0};function L_e(e,t){const r=WC(e);return()=>{var n;return(n=$_e[t])!==null&&n!==void 0?n:r()}}const ty=L_e(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),q9=(e,t,r=10)=>{let n="";const a=Math.max(Math.round(t/r),2);for(let i=0;i<a;i++)n+=e(Nd(0,a-1,i))+", ";return`linear(${n.substring(0,n.length-2)})`};function H9(e){return!!(typeof e=="function"&&ty()||!e||typeof e=="string"&&(e in GN||ty())||iA(e)||Array.isArray(e)&&e.every(H9))}const Bf=([e,t,r,n])=>`cubic-bezier(${e}, ${t}, ${r}, ${n})`,GN={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Bf([0,.65,.55,1]),circOut:Bf([.55,0,1,.45]),backIn:Bf([.31,.01,.66,-.59]),backOut:Bf([.33,1.53,.69,.99])};function G9(e,t){if(e)return typeof e=="function"&&ty()?q9(e,t):iA(e)?Bf(e):Array.isArray(e)?e.map(r=>G9(r,t)||GN.easeOut):GN[e]}const Ea={x:!1,y:!1};function K9(){return Ea.x||Ea.y}function X9(e,t,r){var n;if(e instanceof Element)return[e];if(typeof e=="string"){let a=document;const i=(n=void 0)!==null&&n!==void 0?n:a.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e)}function Y9(e,t){const r=X9(e),n=new AbortController,a={passive:!0,...t,signal:n.signal};return[r,a,()=>n.abort()]}function b4(e){return t=>{t.pointerType==="touch"||K9()||e(t)}}function F_e(e,t,r={}){const[n,a,i]=Y9(e,r),o=b4(l=>{const{target:c}=l,u=t(l);if(typeof u!="function"||!c)return;const d=b4(f=>{u(f),c.removeEventListener("pointerleave",d)});c.addEventListener("pointerleave",d,a)});return n.forEach(l=>{l.addEventListener("pointerenter",o,a)}),i}const Z9=(e,t)=>t?e===t?!0:Z9(e,t.parentElement):!1,oA=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,V_e=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function z_e(e){return V_e.has(e.tagName)||e.tabIndex!==-1}const Uf=new WeakSet;function j4(e){return t=>{t.key==="Enter"&&e(t)}}function Pj(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const B_e=(e,t)=>{const r=e.currentTarget;if(!r)return;const n=j4(()=>{if(Uf.has(r))return;Pj(r,"down");const a=j4(()=>{Pj(r,"up")}),i=()=>Pj(r,"cancel");r.addEventListener("keyup",a,t),r.addEventListener("blur",i,t)});r.addEventListener("keydown",n,t),r.addEventListener("blur",()=>r.removeEventListener("keydown",n),t)};function w4(e){return oA(e)&&!K9()}function U_e(e,t,r={}){const[n,a,i]=Y9(e,r),o=l=>{const c=l.currentTarget;if(!w4(l)||Uf.has(c))return;Uf.add(c);const u=t(l),d=(p,v)=>{window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",m),!(!w4(p)||!Uf.has(c))&&(Uf.delete(c),typeof u=="function"&&u(p,{success:v}))},f=p=>{d(p,r.useGlobalTarget||Z9(c,p.target))},m=p=>{d(p,!1)};window.addEventListener("pointerup",f,a),window.addEventListener("pointercancel",m,a)};return n.forEach(l=>{!z_e(l)&&l.getAttribute("tabindex")===null&&(l.tabIndex=0),(r.useGlobalTarget?window:l).addEventListener("pointerdown",o,a),l.addEventListener("focus",u=>B_e(u,a),a)}),i}function W_e(e){return e==="x"||e==="y"?Ea[e]?null:(Ea[e]=!0,()=>{Ea[e]=!1}):Ea.x||Ea.y?null:(Ea.x=Ea.y=!0,()=>{Ea.x=Ea.y=!1})}const Q9=new Set(["width","height","top","left","right","bottom",...rf]);let Qg;function q_e(){Qg=void 0}const Ss={now:()=>(Qg===void 0&&Ss.set(Lr.isProcessing||zOe.useManualTiming?Lr.timestamp:performance.now()),Qg),set:e=>{Qg=e,queueMicrotask(q_e)}};function lA(e,t){e.indexOf(t)===-1&&e.push(t)}function cA(e,t){const r=e.indexOf(t);r>-1&&e.splice(r,1)}class uA{constructor(){this.subscriptions=[]}add(t){return lA(this.subscriptions,t),()=>cA(this.subscriptions,t)}notify(t,r,n){const a=this.subscriptions.length;if(a)if(a===1)this.subscriptions[0](t,r,n);else for(let i=0;i<a;i++){const o=this.subscriptions[i];o&&o(t,r,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function J9(e,t){return t?e*(1e3/t):0}const N4=30,H_e=e=>!isNaN(parseFloat(e));class G_e{constructor(t,r={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(n,a=!0)=>{const i=Ss.now();this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(n),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),a&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=r.owner}setCurrent(t){this.current=t,this.updatedAt=Ss.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=H_e(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,r){this.events[t]||(this.events[t]=new uA);const n=this.events[t].add(r);return t==="change"?()=>{n(),Vt.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,r){this.passiveEffect=t,this.stopPassiveEffect=r}set(t,r=!0){!r||!this.passiveEffect?this.updateAndNotify(t,r):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,r,n){this.set(r),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-n}jump(t,r=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,r&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Ss.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>N4)return 0;const r=Math.min(this.updatedAt-this.prevUpdatedAt,N4);return J9(parseFloat(this.current)-parseFloat(this.prevFrameValue),r)}start(t){return this.stop(),new Promise(r=>{this.hasAnimated=!0,this.animation=t(r),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.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Hh(e,t){return new G_e(e,t)}function K_e(e,t,r){e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,Hh(r))}function X_e(e,t){const r=eb(e,t);let{transitionEnd:n={},transition:a={},...i}=r||{};i={...i,...n};for(const o in i){const l=l_e(i[o]);K_e(e,o,l)}}function Y_e(e){return!!(tn(e)&&e.add)}function KN(e,t){const r=e.getValue("willChange");if(Y_e(r))return r.add(t)}function e7(e){return e.props[E9]}const t7=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e,Z_e=1e-7,Q_e=12;function J_e(e,t,r,n,a){let i,o,l=0;do o=t+(r-t)/2,i=t7(o,n,a)-e,i>0?r=o:t=o;while(Math.abs(i)>Z_e&&++l<Q_e);return o}function Ap(e,t,r,n){if(e===t&&r===n)return Gn;const a=i=>J_e(i,0,1,e,r);return i=>i===0||i===1?i:t7(a(i),t,n)}const r7=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,n7=e=>t=>1-e(1-t),a7=Ap(.33,1.53,.69,.99),dA=n7(a7),s7=r7(dA),i7=e=>(e*=2)<1?.5*dA(e):.5*(2-Math.pow(2,-10*(e-1))),fA=e=>1-Math.sin(Math.acos(e)),o7=n7(fA),l7=r7(fA),c7=e=>/^0[^.\s]+$/u.test(e);function eke(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||c7(e):!0}const dm=e=>Math.round(e*1e5)/1e5,mA=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function tke(e){return e==null}const rke=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,hA=(e,t)=>r=>!!(typeof r=="string"&&rke.test(r)&&r.startsWith(e)||t&&!tke(r)&&Object.prototype.hasOwnProperty.call(r,t)),u7=(e,t,r)=>n=>{if(typeof n!="string")return n;const[a,i,o,l]=n.match(mA);return{[e]:parseFloat(a),[t]:parseFloat(i),[r]:parseFloat(o),alpha:l!==void 0?parseFloat(l):1}},nke=e=>Ni(0,255,e),Cj={...nf,transform:e=>Math.round(nke(e))},yl={test:hA("rgb","red"),parse:u7("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+Cj.transform(e)+", "+Cj.transform(t)+", "+Cj.transform(r)+", "+dm(qh.transform(n))+")"};function ake(e){let t="",r="",n="",a="";return e.length>5?(t=e.substring(1,3),r=e.substring(3,5),n=e.substring(5,7),a=e.substring(7,9)):(t=e.substring(1,2),r=e.substring(2,3),n=e.substring(3,4),a=e.substring(4,5),t+=t,r+=r,n+=n,a+=a),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:a?parseInt(a,16)/255:1}}const XN={test:hA("#"),parse:ake,transform:yl.transform},Jc={test:hA("hsl","hue"),parse:u7("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+Ns.transform(dm(t))+", "+Ns.transform(dm(r))+", "+dm(qh.transform(n))+")"},Xr={test:e=>yl.test(e)||XN.test(e)||Jc.test(e),parse:e=>yl.test(e)?yl.parse(e):Jc.test(e)?Jc.parse(e):XN.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?yl.transform(e):Jc.transform(e)},ske=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function ike(e){var t,r;return isNaN(e)&&typeof e=="string"&&(((t=e.match(mA))===null||t===void 0?void 0:t.length)||0)+(((r=e.match(ske))===null||r===void 0?void 0:r.length)||0)>0}const d7="number",f7="color",oke="var",lke="var(",S4="${}",cke=/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 Gh(e){const t=e.toString(),r=[],n={color:[],number:[],var:[]},a=[];let i=0;const l=t.replace(cke,c=>(Xr.test(c)?(n.color.push(i),a.push(f7),r.push(Xr.parse(c))):c.startsWith(lke)?(n.var.push(i),a.push(oke),r.push(c)):(n.number.push(i),a.push(d7),r.push(parseFloat(c))),++i,S4)).split(S4);return{values:r,split:l,indexes:n,types:a}}function m7(e){return Gh(e).values}function h7(e){const{split:t,types:r}=Gh(e),n=t.length;return a=>{let i="";for(let o=0;o<n;o++)if(i+=t[o],a[o]!==void 0){const l=r[o];l===d7?i+=dm(a[o]):l===f7?i+=Xr.transform(a[o]):i+=a[o]}return i}}const uke=e=>typeof e=="number"?0:e;function dke(e){const t=m7(e);return h7(e)(t.map(uke))}const Lo={test:ike,parse:m7,createTransformer:h7,getAnimatableNone:dke},fke=new Set(["brightness","contrast","saturate","opacity"]);function mke(e){const[t,r]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[n]=r.match(mA)||[];if(!n)return e;const a=r.replace(n,"");let i=fke.has(t)?1:0;return n!==r&&(i*=100),t+"("+i+a+")"}const hke=/\b([a-z-]*)\(.*?\)/gu,YN={...Lo,getAnimatableNone:e=>{const t=e.match(hke);return t?t.map(mke).join(" "):e}},pke={...QC,color:Xr,backgroundColor:Xr,outlineColor:Xr,fill:Xr,stroke:Xr,borderColor:Xr,borderTopColor:Xr,borderRightColor:Xr,borderBottomColor:Xr,borderLeftColor:Xr,filter:YN,WebkitFilter:YN},pA=e=>pke[e];function p7(e,t){let r=pA(e);return r!==YN&&(r=Lo),r.getAnimatableNone?r.getAnimatableNone(t):void 0}const gke=new Set(["auto","none","0"]);function vke(e,t,r){let n=0,a;for(;n<e.length&&!a;){const i=e[n];typeof i=="string"&&!gke.has(i)&&Gh(i).values.length&&(a=e[n]),n++}if(a&&r)for(const i of t)e[i]=p7(r,a)}const P4=e=>e===nf||e===ze,C4=(e,t)=>parseFloat(e.split(", ")[t]),A4=(e,t)=>(r,{transform:n})=>{if(n==="none"||!n)return 0;const a=n.match(/^matrix3d\((.+)\)$/u);if(a)return C4(a[1],t);{const i=n.match(/^matrix\((.+)\)$/u);return i?C4(i[1],e):0}},xke=new Set(["x","y","z"]),yke=rf.filter(e=>!xke.has(e));function bke(e){const t=[];return yke.forEach(r=>{const n=e.getValue(r);n!==void 0&&(t.push([r,n.get()]),n.set(r.startsWith("scale")?1:0))}),t}const Pd={width:({x:e},{paddingLeft:t="0",paddingRight:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),height:({y:e},{paddingTop:t="0",paddingBottom:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),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:A4(4,13),y:A4(5,14)};Pd.translateX=Pd.x;Pd.translateY=Pd.y;const Ml=new Set;let ZN=!1,QN=!1;function g7(){if(QN){const e=Array.from(Ml).filter(n=>n.needsMeasurement),t=new Set(e.map(n=>n.element)),r=new Map;t.forEach(n=>{const a=bke(n);a.length&&(r.set(n,a),n.render())}),e.forEach(n=>n.measureInitialState()),t.forEach(n=>{n.render();const a=r.get(n);a&&a.forEach(([i,o])=>{var l;(l=n.getValue(i))===null||l===void 0||l.set(o)})}),e.forEach(n=>n.measureEndState()),e.forEach(n=>{n.suspendedScrollY!==void 0&&window.scrollTo(0,n.suspendedScrollY)})}QN=!1,ZN=!1,Ml.forEach(e=>e.complete()),Ml.clear()}function v7(){Ml.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(QN=!0)})}function jke(){v7(),g7()}class gA{constructor(t,r,n,a,i,o=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=r,this.name=n,this.motionValue=a,this.element=i,this.isAsync=o}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Ml.add(this),ZN||(ZN=!0,Vt.read(v7),Vt.resolveKeyframes(g7))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:r,element:n,motionValue:a}=this;for(let i=0;i<t.length;i++)if(t[i]===null)if(i===0){const o=a==null?void 0:a.get(),l=t[t.length-1];if(o!==void 0)t[0]=o;else if(n&&r){const c=n.readValue(r,l);c!=null&&(t[0]=c)}t[0]===void 0&&(t[0]=l),a&&o===void 0&&a.set(t[0])}else t[i]=t[i-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Ml.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Ml.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const x7=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),wke=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Nke(e){const t=wke.exec(e);if(!t)return[,];const[,r,n,a]=t;return[`--${r??n}`,a]}function y7(e,t,r=1){const[n,a]=Nke(e);if(!n)return;const i=window.getComputedStyle(t).getPropertyValue(n);if(i){const o=i.trim();return x7(o)?parseFloat(o):o}return ZC(a)?y7(a,t,r+1):a}const b7=e=>t=>t.test(e),Ske={test:e=>e==="auto",parse:e=>e},j7=[nf,ze,Ns,Fi,h_e,m_e,Ske],T4=e=>j7.find(b7(e));class w7 extends gA{constructor(t,r,n,a,i){super(t,r,n,a,i,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:r,name:n}=this;if(!r||!r.current)return;super.readKeyframes();for(let c=0;c<t.length;c++){let u=t[c];if(typeof u=="string"&&(u=u.trim(),ZC(u))){const d=y7(u,r.current);d!==void 0&&(t[c]=d),c===t.length-1&&(this.finalKeyframe=u)}}if(this.resolveNoneKeyframes(),!Q9.has(n)||t.length!==2)return;const[a,i]=t,o=T4(a),l=T4(i);if(o!==l)if(P4(o)&&P4(l))for(let c=0;c<t.length;c++){const u=t[c];typeof u=="string"&&(t[c]=parseFloat(u))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:r}=this,n=[];for(let a=0;a<t.length;a++)eke(t[a])&&n.push(a);n.length&&vke(t,n,r)}measureInitialState(){const{element:t,unresolvedKeyframes:r,name:n}=this;if(!t||!t.current)return;n==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Pd[n](t.measureViewportBox(),window.getComputedStyle(t.current)),r[0]=this.measuredOrigin;const a=r[r.length-1];a!==void 0&&t.getValue(n,a).jump(a,!1)}measureEndState(){var t;const{element:r,name:n,unresolvedKeyframes:a}=this;if(!r||!r.current)return;const i=r.getValue(n);i&&i.jump(this.measuredOrigin,!1);const o=a.length-1,l=a[o];a[o]=Pd[n](r.measureViewportBox(),window.getComputedStyle(r.current)),l!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=l),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([c,u])=>{r.getValue(c).set(u)}),this.resolveNoneKeyframes()}}const E4=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Lo.test(e)||e==="0")&&!e.startsWith("url("));function Pke(e){const t=e[0];if(e.length===1)return!0;for(let r=0;r<e.length;r++)if(e[r]!==t)return!0}function Cke(e,t,r,n){const a=e[0];if(a===null)return!1;if(t==="display"||t==="visibility")return!0;const i=e[e.length-1],o=E4(a,t),l=E4(i,t);return!o||!l?!1:Pke(e)||(r==="spring"||sA(r))&&n}const Ake=e=>e!==null;function tb(e,{repeat:t,repeatType:r="loop"},n){const a=e.filter(Ake),i=t&&r!=="loop"&&t%2===1?0:a.length-1;return!i||n===void 0?a[i]:n}const Tke=40;class N7{constructor({autoplay:t=!0,delay:r=0,type:n="keyframes",repeat:a=0,repeatDelay:i=0,repeatType:o="loop",...l}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Ss.now(),this.options={autoplay:t,delay:r,type:n,repeat:a,repeatDelay:i,repeatType:o,...l},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>Tke?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&jke(),this._resolved}onKeyframesResolved(t,r){this.resolvedAt=Ss.now(),this.hasAttemptedResolve=!0;const{name:n,type:a,velocity:i,delay:o,onComplete:l,onUpdate:c,isGenerator:u}=this.options;if(!u&&!Cke(t,n,a,i))if(o)this.options.duration=0;else{c&&c(tb(t,this.options,r)),l&&l(),this.resolveFinishedPromise();return}const d=this.initPlayback(t,r);d!==!1&&(this._resolved={keyframes:t,finalKeyframe:r,...d},this.onPostResolved())}onPostResolved(){}then(t,r){return this.currentFinishedPromise.then(t,r)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}const Qt=(e,t,r)=>e+(t-e)*r;function Aj(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function Eke({hue:e,saturation:t,lightness:r,alpha:n}){e/=360,t/=100,r/=100;let a=0,i=0,o=0;if(!t)a=i=o=r;else{const l=r<.5?r*(1+t):r+t-r*t,c=2*r-l;a=Aj(c,l,e+1/3),i=Aj(c,l,e),o=Aj(c,l,e-1/3)}return{red:Math.round(a*255),green:Math.round(i*255),blue:Math.round(o*255),alpha:n}}function ry(e,t){return r=>r>0?t:e}const Tj=(e,t,r)=>{const n=e*e,a=r*(t*t-n)+n;return a<0?0:Math.sqrt(a)},Oke=[XN,yl,Jc],_ke=e=>Oke.find(t=>t.test(e));function O4(e){const t=_ke(e);if(!t)return!1;let r=t.parse(e);return t===Jc&&(r=Eke(r)),r}const _4=(e,t)=>{const r=O4(e),n=O4(t);if(!r||!n)return ry(e,t);const a={...r};return i=>(a.red=Tj(r.red,n.red,i),a.green=Tj(r.green,n.green,i),a.blue=Tj(r.blue,n.blue,i),a.alpha=Qt(r.alpha,n.alpha,i),yl.transform(a))},kke=(e,t)=>r=>t(e(r)),Tp=(...e)=>e.reduce(kke),JN=new Set(["none","hidden"]);function Mke(e,t){return JN.has(e)?r=>r<=0?e:t:r=>r>=1?t:e}function Dke(e,t){return r=>Qt(e,t,r)}function vA(e){return typeof e=="number"?Dke:typeof e=="string"?ZC(e)?ry:Xr.test(e)?_4:$ke:Array.isArray(e)?S7:typeof e=="object"?Xr.test(e)?_4:Rke:ry}function S7(e,t){const r=[...e],n=r.length,a=e.map((i,o)=>vA(i)(i,t[o]));return i=>{for(let o=0;o<n;o++)r[o]=a[o](i);return r}}function Rke(e,t){const r={...e,...t},n={};for(const a in r)e[a]!==void 0&&t[a]!==void 0&&(n[a]=vA(e[a])(e[a],t[a]));return a=>{for(const i in n)r[i]=n[i](a);return r}}function Ike(e,t){var r;const n=[],a={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){const o=t.types[i],l=e.indexes[o][a[o]],c=(r=e.values[l])!==null&&r!==void 0?r:0;n[i]=c,a[o]++}return n}const $ke=(e,t)=>{const r=Lo.createTransformer(t),n=Gh(e),a=Gh(t);return n.indexes.var.length===a.indexes.var.length&&n.indexes.color.length===a.indexes.color.length&&n.indexes.number.length>=a.indexes.number.length?JN.has(e)&&!a.values.length||JN.has(t)&&!n.values.length?Mke(e,t):Tp(S7(Ike(n,a),a.values),r):ry(e,t)};function P7(e,t,r){return typeof e=="number"&&typeof t=="number"&&typeof r=="number"?Qt(e,t,r):vA(e)(e,t)}const Lke=5;function C7(e,t,r){const n=Math.max(t-Lke,0);return J9(r-e(n),t-n)}const nr={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},Ej=.001;function Fke({duration:e=nr.duration,bounce:t=nr.bounce,velocity:r=nr.velocity,mass:n=nr.mass}){let a,i,o=1-t;o=Ni(nr.minDamping,nr.maxDamping,o),e=Ni(nr.minDuration,nr.maxDuration,ci(e)),o<1?(a=u=>{const d=u*o,f=d*e,m=d-r,p=e2(u,o),v=Math.exp(-f);return Ej-m/p*v},i=u=>{const f=u*o*e,m=f*r+r,p=Math.pow(o,2)*Math.pow(u,2)*e,v=Math.exp(-f),h=e2(Math.pow(u,2),o);return(-a(u)+Ej>0?-1:1)*((m-p)*v)/h}):(a=u=>{const d=Math.exp(-u*e),f=(u-r)*e+1;return-Ej+d*f},i=u=>{const d=Math.exp(-u*e),f=(r-u)*(e*e);return d*f});const l=5/e,c=zke(a,i,l);if(e=li(e),isNaN(c))return{stiffness:nr.stiffness,damping:nr.damping,duration:e};{const u=Math.pow(c,2)*n;return{stiffness:u,damping:o*2*Math.sqrt(n*u),duration:e}}}const Vke=12;function zke(e,t,r){let n=r;for(let a=1;a<Vke;a++)n=n-e(n)/t(n);return n}function e2(e,t){return e*Math.sqrt(1-t*t)}const Bke=["duration","bounce"],Uke=["stiffness","damping","mass"];function k4(e,t){return t.some(r=>e[r]!==void 0)}function Wke(e){let t={velocity:nr.velocity,stiffness:nr.stiffness,damping:nr.damping,mass:nr.mass,isResolvedFromDuration:!1,...e};if(!k4(e,Uke)&&k4(e,Bke))if(e.visualDuration){const r=e.visualDuration,n=2*Math.PI/(r*1.2),a=n*n,i=2*Ni(.05,1,1-(e.bounce||0))*Math.sqrt(a);t={...t,mass:nr.mass,stiffness:a,damping:i}}else{const r=Fke(e);t={...t,...r,mass:nr.mass},t.isResolvedFromDuration=!0}return t}function A7(e=nr.visualDuration,t=nr.bounce){const r=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:n,restDelta:a}=r;const i=r.keyframes[0],o=r.keyframes[r.keyframes.length-1],l={done:!1,value:i},{stiffness:c,damping:u,mass:d,duration:f,velocity:m,isResolvedFromDuration:p}=Wke({...r,velocity:-ci(r.velocity||0)}),v=m||0,h=u/(2*Math.sqrt(c*d)),x=o-i,y=ci(Math.sqrt(c/d)),g=Math.abs(x)<5;n||(n=g?nr.restSpeed.granular:nr.restSpeed.default),a||(a=g?nr.restDelta.granular:nr.restDelta.default);let j;if(h<1){const w=e2(y,h);j=N=>{const P=Math.exp(-h*y*N);return o-P*((v+h*y*x)/w*Math.sin(w*N)+x*Math.cos(w*N))}}else if(h===1)j=w=>o-Math.exp(-y*w)*(x+(v+y*x)*w);else{const w=y*Math.sqrt(h*h-1);j=N=>{const P=Math.exp(-h*y*N),C=Math.min(w*N,300);return o-P*((v+h*y*x)*Math.sinh(C)+w*x*Math.cosh(C))/w}}const S={calculatedDuration:p&&f||null,next:w=>{const N=j(w);if(p)l.done=w>=f;else{let P=0;h<1&&(P=w===0?li(v):C7(j,w,N));const C=Math.abs(P)<=n,A=Math.abs(o-N)<=a;l.done=C&&A}return l.value=l.done?o:N,l},toString:()=>{const w=Math.min(W9(S),HN),N=q9(P=>S.next(w*P).value,w,30);return w+"ms "+N}};return S}function M4({keyframes:e,velocity:t=0,power:r=.8,timeConstant:n=325,bounceDamping:a=10,bounceStiffness:i=500,modifyTarget:o,min:l,max:c,restDelta:u=.5,restSpeed:d}){const f=e[0],m={done:!1,value:f},p=C=>l!==void 0&&C<l||c!==void 0&&C>c,v=C=>l===void 0?c:c===void 0||Math.abs(l-C)<Math.abs(c-C)?l:c;let h=r*t;const x=f+h,y=o===void 0?x:o(x);y!==x&&(h=y-f);const g=C=>-h*Math.exp(-C/n),j=C=>y+g(C),S=C=>{const A=g(C),O=j(C);m.done=Math.abs(A)<=u,m.value=m.done?y:O};let w,N;const P=C=>{p(m.value)&&(w=C,N=A7({keyframes:[m.value,v(m.value)],velocity:C7(j,C,m.value),damping:a,stiffness:i,restDelta:u,restSpeed:d}))};return P(0),{calculatedDuration:null,next:C=>{let A=!1;return!N&&w===void 0&&(A=!0,S(C),P(C)),w!==void 0&&C>=w?N.next(C-w):(!A&&S(C),m)}}}
vendor: 4,465 bytes, line 791
791const qke=Ap(.42,0,1,1),Hke=Ap(0,0,.58,1),T7=Ap(.42,0,.58,1),Gke=e=>Array.isArray(e)&&typeof e[0]!="number",D4={linear:Gn,easeIn:qke,easeInOut:T7,easeOut:Hke,circIn:fA,circInOut:l7,circOut:o7,backIn:dA,backInOut:s7,backOut:a7,anticipate:i7},R4=e=>{if(iA(e)){WN(e.length===4);const[t,r,n,a]=e;return Ap(t,r,n,a)}else if(typeof e=="string")return WN(D4[e]!==void 0),D4[e];return e};function Kke(e,t,r){const n=[],a=r||P7,i=e.length-1;for(let o=0;o<i;o++){let l=a(e[o],e[o+1]);if(t){const c=Array.isArray(t)?t[o]||Gn:t;l=Tp(c,l)}n.push(l)}return n}function Xke(e,t,{clamp:r=!0,ease:n,mixer:a}={}){const i=e.length;if(WN(i===t.length),i===1)return()=>t[0];if(i===2&&t[0]===t[1])return()=>t[1];const o=e[0]===e[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const l=Kke(t,n,a),c=l.length,u=d=>{if(o&&d<e[0])return t[0];let f=0;if(c>1)for(;f<e.length-2&&!(d<e[f+1]);f++);const m=Nd(e[f],e[f+1],d);return l[f](m)};return r?d=>u(Ni(e[0],e[i-1],d)):u}function Yke(e,t){const r=e[e.length-1];for(let n=1;n<=t;n++){const a=Nd(0,t,n);e.push(Qt(r,1,a))}}function Zke(e){const t=[0];return Yke(t,e.length-1),t}function Qke(e,t){return e.map(r=>r*t)}function Jke(e,t){return e.map(()=>t||T7).splice(0,e.length-1)}function ny({duration:e=300,keyframes:t,times:r,ease:n="easeInOut"}){const a=Gke(n)?n.map(R4):R4(n),i={done:!1,value:t[0]},o=Qke(r&&r.length===t.length?r:Zke(t),e),l=Xke(o,t,{ease:Array.isArray(a)?a:Jke(t,a)});return{calculatedDuration:e,next:c=>(i.value=l(c),i.done=c>=e,i)}}const eMe=e=>{const t=({timestamp:r})=>e(r);return{start:()=>Vt.update(t,!0),stop:()=>$o(t),now:()=>Lr.isProcessing?Lr.timestamp:Ss.now()}},tMe={decay:M4,inertia:M4,tween:ny,keyframes:ny,spring:A7},rMe=e=>e/100;class xA extends N7{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:c}=this.options;c&&c()};const{name:r,motionValue:n,element:a,keyframes:i}=this.options,o=(a==null?void 0:a.KeyframeResolver)||gA,l=(c,u)=>this.onKeyframesResolved(c,u);this.resolver=new o(i,l,r,n,a),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:r="keyframes",repeat:n=0,repeatDelay:a=0,repeatType:i,velocity:o=0}=this.options,l=sA(r)?r:tMe[r]||ny;let c,u;l!==ny&&typeof t[0]!="number"&&(c=Tp(rMe,P7(t[0],t[1])),t=[0,100]);const d=l({...this.options,keyframes:t});i==="mirror"&&(u=l({...this.options,keyframes:[...t].reverse(),velocity:-o})),d.calculatedDuration===null&&(d.calculatedDuration=W9(d));const{calculatedDuration:f}=d,m=f+a,p=m*(n+1)-a;return{generator:d,mirroredGenerator:u,mapPercentToKeyframes:c,calculatedDuration:f,resolvedDuration:m,totalDuration:p}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,r=!1){const{resolved:n}=this;if(!n){const{keyframes:C}=this.options;return{done:!0,value:C[C.length-1]}}const{finalKeyframe:a,generator:i,mirroredGenerator:o,mapPercentToKeyframes:l,keyframes:c,calculatedDuration:u,totalDuration:d,resolvedDuration:f}=n;if(this.startTime===null)return i.next(0);const{delay:m,repeat:p,repeatType:v,repeatDelay:h,onUpdate:x}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-d/this.speed,this.startTime)),r?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const y=this.currentTime-m*(this.speed>=0?1:-1),g=this.speed>=0?y<0:y>d;this.currentTime=Math.max(y,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=d);let j=this.currentTime,S=i;if(p){const C=Math.min(this.currentTime,d)/f;let A=Math.floor(C),O=C%1;!O&&C>=1&&(O=1),O===1&&A--,A=Math.min(A,p+1),!!(A%2)&&(v==="reverse"?(O=1-O,h&&(O-=h/f)):v==="mirror"&&(S=o)),j=Ni(0,1,O)*f}const w=g?{done:!1,value:c[0]}:S.next(j);l&&(w.value=l(w.value));let{done:N}=w;!g&&u!==null&&(N=this.speed>=0?this.currentTime>=d:this.currentTime<=0);const P=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&N);return P&&a!==void 0&&(w.value=tb(c,this.options,a)),x&&x(w.value),P&&this.finish(),w}get duration(){const{resolved:t}=this;return t?ci(t.calculatedDuration):0}
vendor: 54,575 bytes, line 791
791get time(){return ci(this.currentTime)}set time(t){t=li(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const r=this.playbackSpeed!==t;this.playbackSpeed=t,r&&(this.time=ci(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=eMe,onPlay:r,startTime:n}=this.options;this.driver||(this.driver=t(i=>this.tick(i))),r&&r();const a=this.driver.now();this.holdTime!==null?this.startTime=a-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=a):this.startTime=n??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const nMe=new Set(["opacity","clipPath","filter","transform"]);function aMe(e,t,r,{delay:n=0,duration:a=300,repeat:i=0,repeatType:o="loop",ease:l="easeInOut",times:c}={}){const u={[t]:r};c&&(u.offset=c);const d=G9(l,a);return Array.isArray(d)&&(u.easing=d),e.animate(u,{delay:n,duration:a,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:i+1,direction:o==="reverse"?"alternate":"normal"})}const sMe=WC(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),ay=10,iMe=2e4;function oMe(e){return sA(e.type)||e.type==="spring"||!H9(e.ease)}function lMe(e,t){const r=new xA({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let n={done:!1,value:e[0]};const a=[];let i=0;for(;!n.done&&i<iMe;)n=r.sample(i),a.push(n.value),i+=ay;return{times:void 0,keyframes:a,duration:i-ay,ease:"linear"}}const E7={anticipate:i7,backInOut:s7,circInOut:l7};function cMe(e){return e in E7}class I4 extends N7{constructor(t){super(t);const{name:r,motionValue:n,element:a,keyframes:i}=this.options;this.resolver=new w7(i,(o,l)=>this.onKeyframesResolved(o,l),r,n,a),this.resolver.scheduleResolve()}initPlayback(t,r){let{duration:n=300,times:a,ease:i,type:o,motionValue:l,name:c,startTime:u}=this.options;if(!l.owner||!l.owner.current)return!1;if(typeof i=="string"&&ty()&&cMe(i)&&(i=E7[i]),oMe(this.options)){const{onComplete:f,onUpdate:m,motionValue:p,element:v,...h}=this.options,x=lMe(t,h);t=x.keyframes,t.length===1&&(t[1]=t[0]),n=x.duration,a=x.times,i=x.ease,o="keyframes"}const d=aMe(l.owner.current,c,t,{...this.options,duration:n,times:a,ease:i});return d.startTime=u??this.calcStartTime(),this.pendingTimeline?(y4(d,this.pendingTimeline),this.pendingTimeline=void 0):d.onfinish=()=>{const{onComplete:f}=this.options;l.set(tb(t,this.options,r)),f&&f(),this.cancel(),this.resolveFinishedPromise()},{animation:d,duration:n,times:a,type:o,ease:i,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:r}=t;return ci(r)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:r}=t;return ci(r.currentTime||0)}set time(t){const{resolved:r}=this;if(!r)return;const{animation:n}=r;n.currentTime=li(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:r}=t;return r.playbackRate}set speed(t){const{resolved:r}=this;if(!r)return;const{animation:n}=r;n.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:r}=t;return r.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:r}=t;return r.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:r}=this;if(!r)return Gn;const{animation:n}=r;y4(n,t)}return Gn}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:r}=t;r.playState==="finished"&&this.updateFinishedPromise(),r.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:r}=t;r.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:r,keyframes:n,duration:a,type:i,ease:o,times:l}=t;if(r.playState==="idle"||r.playState==="finished")return;if(this.time){const{motionValue:u,onUpdate:d,onComplete:f,element:m,...p}=this.options,v=new xA({...p,keyframes:n,duration:a,type:i,ease:o,times:l,isGenerator:!0}),h=li(this.time);u.setWithVelocity(v.sample(h-ay).value,v.sample(h).value,ay)}const{onStop:c}=this.options;c&&c(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:r,name:n,repeatDelay:a,repeatType:i,damping:o,type:l}=t;if(!r||!r.owner||!(r.owner.current instanceof HTMLElement))return!1;const{onUpdate:c,transformTemplate:u}=r.owner.getProps();return sMe()&&n&&nMe.has(n)&&!c&&!u&&!a&&i!=="mirror"&&o!==0&&l!=="inertia"}}const uMe={type:"spring",stiffness:500,damping:25,restSpeed:10},dMe=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),fMe={type:"keyframes",duration:.8},mMe={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},hMe=(e,{keyframes:t})=>t.length>2?fMe:pc.has(e)?e.startsWith("scale")?dMe(t[1]):uMe:mMe;function pMe({when:e,delay:t,delayChildren:r,staggerChildren:n,staggerDirection:a,repeat:i,repeatType:o,repeatDelay:l,from:c,elapsed:u,...d}){return!!Object.keys(d).length}const yA=(e,t,r,n={},a,i)=>o=>{const l=aA(n,e)||{},c=l.delay||n.delay||0;let{elapsed:u=0}=n;u=u-li(c);let d={keyframes:Array.isArray(r)?r:[null,r],ease:"easeOut",velocity:t.getVelocity(),...l,delay:-u,onUpdate:m=>{t.set(m),l.onUpdate&&l.onUpdate(m)},onComplete:()=>{o(),l.onComplete&&l.onComplete()},name:e,motionValue:t,element:i?void 0:a};pMe(l)||(d={...d,...hMe(e,d)}),d.duration&&(d.duration=li(d.duration)),d.repeatDelay&&(d.repeatDelay=li(d.repeatDelay)),d.from!==void 0&&(d.keyframes[0]=d.from);let f=!1;if((d.type===!1||d.duration===0&&!d.repeatDelay)&&(d.duration=0,d.delay===0&&(f=!0)),f&&!i&&t.get()!==void 0){const m=tb(d.keyframes,l);if(m!==void 0)return Vt.update(()=>{d.onUpdate(m),d.onComplete()}),new I_e([])}return!i&&I4.supports(d)?new I4(d):new xA(d)};function gMe({protectedKeys:e,needsAnimating:t},r){const n=e.hasOwnProperty(r)&&t[r]!==!0;return t[r]=!1,n}function O7(e,t,{delay:r=0,transitionOverride:n,type:a}={}){var i;let{transition:o=e.getDefaultTransition(),transitionEnd:l,...c}=t;n&&(o=n);const u=[],d=a&&e.animationState&&e.animationState.getState()[a];for(const f in c){const m=e.getValue(f,(i=e.latestValues[f])!==null&&i!==void 0?i:null),p=c[f];if(p===void 0||d&&gMe(d,f))continue;const v={delay:r,...aA(o||{},f)};let h=!1;if(window.MotionHandoffAnimation){const y=e7(e);if(y){const g=window.MotionHandoffAnimation(y,f,Vt);g!==null&&(v.startTime=g,h=!0)}}KN(e,f),m.start(yA(f,m,p,e.shouldReduceMotion&&Q9.has(f)?{type:!1}:v,e,h));const x=m.animation;x&&u.push(x)}return l&&Promise.all(u).then(()=>{Vt.update(()=>{l&&X_e(e,l)})}),u}function t2(e,t,r={}){var n;const a=eb(e,t,r.type==="exit"?(n=e.presenceContext)===null||n===void 0?void 0:n.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=a||{};r.transitionOverride&&(i=r.transitionOverride);const o=a?()=>Promise.all(O7(e,a,r)):()=>Promise.resolve(),l=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:d=0,staggerChildren:f,staggerDirection:m}=i;return vMe(e,t,d+u,f,m,r)}:()=>Promise.resolve(),{when:c}=i;if(c){const[u,d]=c==="beforeChildren"?[o,l]:[l,o];return u().then(()=>d())}else return Promise.all([o(),l(r.delay)])}function vMe(e,t,r=0,n=0,a=1,i){const o=[],l=(e.variantChildren.size-1)*n,c=a===1?(u=0)=>u*n:(u=0)=>l-u*n;return Array.from(e.variantChildren).sort(xMe).forEach((u,d)=>{u.notify("AnimationStart",t),o.push(t2(u,t,{...i,delay:r+c(d)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(o)}function xMe(e,t){return e.sortNodePosition(t)}function yMe(e,t,r={}){e.notify("AnimationStart",t);let n;if(Array.isArray(t)){const a=t.map(i=>t2(e,i,r));n=Promise.all(a)}else if(typeof t=="string")n=t2(e,t,r);else{const a=typeof t=="function"?eb(e,t,r.custom):t;n=Promise.all(O7(e,a,r))}return n.then(()=>{e.notify("AnimationComplete",t)})}const bMe=HC.length;function _7(e){if(!e)return;if(!e.isControllingVariants){const r=e.parent?_7(e.parent)||{}:{};return e.props.initial!==void 0&&(r.initial=e.props.initial),r}const t={};for(let r=0;r<bMe;r++){const n=HC[r],a=e.props[n];(Wh(a)||a===!1)&&(t[n]=a)}return t}const jMe=[...qC].reverse(),wMe=qC.length;function NMe(e){return t=>Promise.all(t.map(({animation:r,options:n})=>yMe(e,r,n)))}function SMe(e){let t=NMe(e),r=$4(),n=!0;const a=c=>(u,d)=>{var f;const m=eb(e,d,c==="exit"?(f=e.presenceContext)===null||f===void 0?void 0:f.custom:void 0);if(m){const{transition:p,transitionEnd:v,...h}=m;u={...u,...h,...v}}return u};function i(c){t=c(e)}function o(c){const{props:u}=e,d=_7(e.parent)||{},f=[],m=new Set;let p={},v=1/0;for(let x=0;x<wMe;x++){const y=jMe[x],g=r[y],j=u[y]!==void 0?u[y]:d[y],S=Wh(j),w=y===c?g.isActive:null;w===!1&&(v=x);let N=j===d[y]&&j!==u[y]&&S;if(N&&n&&e.manuallyAnimateOnMount&&(N=!1),g.protectedKeys={...p},!g.isActive&&w===null||!j&&!g.prevProp||Q0(j)||typeof j=="boolean")continue;const P=PMe(g.prevProp,j);let C=P||y===c&&g.isActive&&!N&&S||x>v&&S,A=!1;const O=Array.isArray(j)?j:[j];let E=O.reduce(a(y),{});w===!1&&(E={});const{prevResolvedValues:k={}}=g,M={...k,...E},D=B=>{C=!0,m.has(B)&&(A=!0,m.delete(B)),g.needsAnimating[B]=!0;const R=e.getValue(B);R&&(R.liveStyle=!1)};for(const B in M){const R=E[B],I=k[B];if(p.hasOwnProperty(B))continue;let G=!1;qN(R)&&qN(I)?G=!U9(R,I):G=R!==I,G?R!=null?D(B):m.add(B):R!==void 0&&m.has(B)?D(B):g.protectedKeys[B]=!0}g.prevProp=j,g.prevResolvedValues=E,g.isActive&&(p={...p,...E}),n&&e.blockInitialAnimation&&(C=!1),C&&(!(N&&P)||A)&&f.push(...O.map(B=>({animation:B,options:{type:y}})))}if(m.size){const x={};m.forEach(y=>{const g=e.getBaseTarget(y),j=e.getValue(y);j&&(j.liveStyle=!0),x[y]=g??null}),f.push({animation:x})}let h=!!f.length;return n&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(h=!1),n=!1,h?t(f):Promise.resolve()}function l(c,u){var d;if(r[c].isActive===u)return Promise.resolve();(d=e.variantChildren)===null||d===void 0||d.forEach(m=>{var p;return(p=m.animationState)===null||p===void 0?void 0:p.setActive(c,u)}),r[c].isActive=u;const f=o(c);for(const m in r)r[m].protectedKeys={};return f}return{animateChanges:o,setActive:l,setAnimateFunction:i,getState:()=>r,reset:()=>{r=$4(),n=!0}}}function PMe(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!U9(t,e):!1}function Jo(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function $4(){return{animate:Jo(!0),whileInView:Jo(),whileHover:Jo(),whileTap:Jo(),whileDrag:Jo(),whileFocus:Jo(),exit:Jo()}}class Xo{constructor(t){this.isMounted=!1,this.node=t}update(){}}class CMe extends Xo{constructor(t){super(t),t.animationState||(t.animationState=SMe(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Q0(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:r}=this.node.prevProps||{};t!==r&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}}let AMe=0;class TMe extends Xo{constructor(){super(...arguments),this.id=AMe++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:r}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===n)return;const a=this.node.animationState.setActive("exit",!t);r&&!t&&a.then(()=>r(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const EMe={animation:{Feature:CMe},exit:{Feature:TMe}};function Kh(e,t,r,n={passive:!0}){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r)}function Ep(e){return{point:{x:e.pageX,y:e.pageY}}}const OMe=e=>t=>oA(t)&&e(t,Ep(t));function fm(e,t,r,n){return Kh(e,t,OMe(r),n)}const L4=(e,t)=>Math.abs(e-t);function _Me(e,t){const r=L4(e.x,t.x),n=L4(e.y,t.y);return Math.sqrt(r**2+n**2)}class k7{constructor(t,r,{transformPagePoint:n,contextWindow:a,dragSnapToOrigin:i=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const f=_j(this.lastMoveEventInfo,this.history),m=this.startEvent!==null,p=_Me(f.offset,{x:0,y:0})>=3;if(!m&&!p)return;const{point:v}=f,{timestamp:h}=Lr;this.history.push({...v,timestamp:h});const{onStart:x,onMove:y}=this.handlers;m||(x&&x(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),y&&y(this.lastMoveEvent,f)},this.handlePointerMove=(f,m)=>{this.lastMoveEvent=f,this.lastMoveEventInfo=Oj(m,this.transformPagePoint),Vt.update(this.updatePoint,!0)},this.handlePointerUp=(f,m)=>{this.end();const{onEnd:p,onSessionEnd:v,resumeAnimation:h}=this.handlers;if(this.dragSnapToOrigin&&h&&h(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const x=_j(f.type==="pointercancel"?this.lastMoveEventInfo:Oj(m,this.transformPagePoint),this.history);this.startEvent&&p&&p(f,x),v&&v(f,x)},!oA(t))return;this.dragSnapToOrigin=i,this.handlers=r,this.transformPagePoint=n,this.contextWindow=a||window;const o=Ep(t),l=Oj(o,this.transformPagePoint),{point:c}=l,{timestamp:u}=Lr;this.history=[{...c,timestamp:u}];const{onSessionStart:d}=r;d&&d(t,_j(l,this.history)),this.removeListeners=Tp(fm(this.contextWindow,"pointermove",this.handlePointerMove),fm(this.contextWindow,"pointerup",this.handlePointerUp),fm(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),$o(this.updatePoint)}}function Oj(e,t){return t?{point:t(e.point)}:e}function F4(e,t){return{x:e.x-t.x,y:e.y-t.y}}function _j({point:e},t){return{point:e,delta:F4(e,M7(t)),offset:F4(e,kMe(t)),velocity:MMe(t,.1)}}function kMe(e){return e[0]}function M7(e){return e[e.length-1]}function MMe(e,t){if(e.length<2)return{x:0,y:0};let r=e.length-1,n=null;const a=M7(e);for(;r>=0&&(n=e[r],!(a.timestamp-n.timestamp>li(t)));)r--;if(!n)return{x:0,y:0};const i=ci(a.timestamp-n.timestamp);if(i===0)return{x:0,y:0};const o={x:(a.x-n.x)/i,y:(a.y-n.y)/i};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}const D7=1e-4,DMe=1-D7,RMe=1+D7,R7=.01,IMe=0-R7,$Me=0+R7;function Xn(e){return e.max-e.min}function LMe(e,t,r){return Math.abs(e-t)<=r}function V4(e,t,r,n=.5){e.origin=n,e.originPoint=Qt(t.min,t.max,e.origin),e.scale=Xn(r)/Xn(t),e.translate=Qt(r.min,r.max,e.origin)-e.originPoint,(e.scale>=DMe&&e.scale<=RMe||isNaN(e.scale))&&(e.scale=1),(e.translate>=IMe&&e.translate<=$Me||isNaN(e.translate))&&(e.translate=0)}function mm(e,t,r,n){V4(e.x,t.x,r.x,n?n.originX:void 0),V4(e.y,t.y,r.y,n?n.originY:void 0)}function z4(e,t,r){e.min=r.min+t.min,e.max=e.min+Xn(t)}function FMe(e,t,r){z4(e.x,t.x,r.x),z4(e.y,t.y,r.y)}function B4(e,t,r){e.min=t.min-r.min,e.max=e.min+Xn(t)}function hm(e,t,r){B4(e.x,t.x,r.x),B4(e.y,t.y,r.y)}function VMe(e,{min:t,max:r},n){return t!==void 0&&e<t?e=n?Qt(t,e,n.min):Math.max(e,t):r!==void 0&&e>r&&(e=n?Qt(r,e,n.max):Math.min(e,r)),e}function U4(e,t,r){return{min:t!==void 0?e.min+t:void 0,max:r!==void 0?e.max+r-(e.max-e.min):void 0}}function zMe(e,{top:t,left:r,bottom:n,right:a}){return{x:U4(e.x,r,a),y:U4(e.y,t,n)}}function W4(e,t){let r=t.min-e.min,n=t.max-e.max;return t.max-t.min<e.max-e.min&&([r,n]=[n,r]),{min:r,max:n}}function BMe(e,t){return{x:W4(e.x,t.x),y:W4(e.y,t.y)}}function UMe(e,t){let r=.5;const n=Xn(e),a=Xn(t);return a>n?r=Nd(t.min,t.max-n,e.min):n>a&&(r=Nd(e.min,e.max-a,t.min)),Ni(0,1,r)}function WMe(e,t){const r={};return t.min!==void 0&&(r.min=t.min-e.min),t.max!==void 0&&(r.max=t.max-e.min),r}const r2=.35;function qMe(e=r2){return e===!1?e=0:e===!0&&(e=r2),{x:q4(e,"left","right"),y:q4(e,"top","bottom")}}function q4(e,t,r){return{min:H4(e,t),max:H4(e,r)}}function H4(e,t){return typeof e=="number"?e:e[t]||0}const G4=()=>({translate:0,scale:1,origin:0,originPoint:0}),eu=()=>({x:G4(),y:G4()}),K4=()=>({min:0,max:0}),ir=()=>({x:K4(),y:K4()});function aa(e){return[e("x"),e("y")]}function I7({top:e,left:t,right:r,bottom:n}){return{x:{min:t,max:r},y:{min:e,max:n}}}function HMe({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function GMe(e,t){if(!t)return e;const r=t({x:e.left,y:e.top}),n=t({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:n.y,right:n.x}}function kj(e){return e===void 0||e===1}function n2({scale:e,scaleX:t,scaleY:r}){return!kj(e)||!kj(t)||!kj(r)}function il(e){return n2(e)||$7(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function $7(e){return X4(e.x)||X4(e.y)}function X4(e){return e&&e!=="0%"}function sy(e,t,r){const n=e-r,a=t*n;return r+a}function Y4(e,t,r,n,a){return a!==void 0&&(e=sy(e,a,n)),sy(e,r,n)+t}function a2(e,t=0,r=1,n,a){e.min=Y4(e.min,t,r,n,a),e.max=Y4(e.max,t,r,n,a)}function L7(e,{x:t,y:r}){a2(e.x,t.translate,t.scale,t.originPoint),a2(e.y,r.translate,r.scale,r.originPoint)}const Z4=.999999999999,Q4=1.0000000000001;function KMe(e,t,r,n=!1){const a=r.length;if(!a)return;t.x=t.y=1;let i,o;for(let l=0;l<a;l++){i=r[l],o=i.projectionDelta;const{visualElement:c}=i.options;c&&c.props.style&&c.props.style.display==="contents"||(n&&i.options.layoutScroll&&i.scroll&&i!==i.root&&ru(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),o&&(t.x*=o.x.scale,t.y*=o.y.scale,L7(e,o)),n&&il(i.latestValues)&&ru(e,i.latestValues))}t.x<Q4&&t.x>Z4&&(t.x=1),t.y<Q4&&t.y>Z4&&(t.y=1)}function tu(e,t){e.min=e.min+t,e.max=e.max+t}function J4(e,t,r,n,a=.5){const i=Qt(e.min,e.max,a);a2(e,t,r,i,n)}function ru(e,t){J4(e.x,t.x,t.scaleX,t.scale,t.originX),J4(e.y,t.y,t.scaleY,t.scale,t.originY)}function F7(e,t){return I7(GMe(e.getBoundingClientRect(),t))}function XMe(e,t,r){const n=F7(e,r),{scroll:a}=t;return a&&(tu(n.x,a.offset.x),tu(n.y,a.offset.y)),n}const V7=({current:e})=>e?e.ownerDocument.defaultView:null,YMe=new WeakMap;class ZMe{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=ir(),this.visualElement=t}start(t,{snapToCursor:r=!1}={}){const{presenceContext:n}=this.visualElement;if(n&&n.isPresent===!1)return;const a=d=>{const{dragSnapToOrigin:f}=this.getProps();f?this.pauseAnimation():this.stopAnimation(),r&&this.snapToCursor(Ep(d).point)},i=(d,f)=>{const{drag:m,dragPropagation:p,onDragStart:v}=this.getProps();if(m&&!p&&(this.openDragLock&&this.openDragLock(),this.openDragLock=W_e(m),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),aa(x=>{let y=this.getAxisMotionValue(x).get()||0;if(Ns.test(y)){const{projection:g}=this.visualElement;if(g&&g.layout){const j=g.layout.layoutBox[x];j&&(y=Xn(j)*(parseFloat(y)/100))}}this.originPoint[x]=y}),v&&Vt.postRender(()=>v(d,f)),KN(this.visualElement,"transform");const{animationState:h}=this.visualElement;h&&h.setActive("whileDrag",!0)},o=(d,f)=>{const{dragPropagation:m,dragDirectionLock:p,onDirectionLock:v,onDrag:h}=this.getProps();if(!m&&!this.openDragLock)return;const{offset:x}=f;if(p&&this.currentDirection===null){this.currentDirection=QMe(x),this.currentDirection!==null&&v&&v(this.currentDirection);return}this.updateAxis("x",f.point,x),this.updateAxis("y",f.point,x),this.visualElement.render(),h&&h(d,f)},l=(d,f)=>this.stop(d,f),c=()=>aa(d=>{var f;return this.getAnimationState(d)==="paused"&&((f=this.getAxisMotionValue(d).animation)===null||f===void 0?void 0:f.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new k7(t,{onSessionStart:a,onStart:i,onMove:o,onSessionEnd:l,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:V7(this.visualElement)})}stop(t,r){const n=this.isDragging;if(this.cancel(),!n)return;const{velocity:a}=r;this.startAnimation(a);const{onDragEnd:i}=this.getProps();i&&Vt.postRender(()=>i(t,r))}cancel(){this.isDragging=!1;const{projection:t,animationState:r}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),r&&r.setActive("whileDrag",!1)}updateAxis(t,r,n){const{drag:a}=this.getProps();if(!n||!Tg(t,a,this.currentDirection))return;const i=this.getAxisMotionValue(t);let o=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(o=VMe(o,this.constraints[t],this.elastic[t])),i.set(o)}resolveConstraints(){var t;const{dragConstraints:r,dragElastic:n}=this.getProps(),a=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,i=this.constraints;r&&Qc(r)?this.constraints||(this.constraints=this.resolveRefConstraints()):r&&a?this.constraints=zMe(a.layoutBox,r):this.constraints=!1,this.elastic=qMe(n),i!==this.constraints&&a&&this.constraints&&!this.hasMutatedConstraints&&aa(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=WMe(a.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:r}=this.getProps();if(!t||!Qc(t))return!1;const n=t.current,{projection:a}=this.visualElement;if(!a||!a.layout)return!1;const i=XMe(n,a.root,this.visualElement.getTransformPagePoint());let o=BMe(a.layout.layoutBox,i);if(r){const l=r(HMe(o));this.hasMutatedConstraints=!!l,l&&(o=I7(l))}return o}startAnimation(t){const{drag:r,dragMomentum:n,dragElastic:a,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:l}=this.getProps(),c=this.constraints||{},u=aa(d=>{if(!Tg(d,r,this.currentDirection))return;let f=c&&c[d]||{};o&&(f={min:0,max:0});const m=a?200:1e6,p=a?40:1e7,v={type:"inertia",velocity:n?t[d]:0,bounceStiffness:m,bounceDamping:p,timeConstant:750,restDelta:1,restSpeed:10,...i,...f};return this.startAxisValueAnimation(d,v)});return Promise.all(u).then(l)}startAxisValueAnimation(t,r){const n=this.getAxisMotionValue(t);return KN(this.visualElement,t),n.start(yA(t,n,0,r,this.visualElement,!1))}stopAnimation(){aa(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){aa(t=>{var r;return(r=this.getAxisMotionValue(t).animation)===null||r===void 0?void 0:r.pause()})}getAnimationState(t){var r;return(r=this.getAxisMotionValue(t).animation)===null||r===void 0?void 0:r.state}getAxisMotionValue(t){const r=`_drag${t.toUpperCase()}`,n=this.visualElement.getProps(),a=n[r];return a||this.visualElement.getValue(t,(n.initial?n.initial[t]:void 0)||0)}snapToCursor(t){aa(r=>{const{drag:n}=this.getProps();if(!Tg(r,n,this.currentDirection))return;const{projection:a}=this.visualElement,i=this.getAxisMotionValue(r);if(a&&a.layout){const{min:o,max:l}=a.layout.layoutBox[r];i.set(t[r]-Qt(o,l,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:r}=this.getProps(),{projection:n}=this.visualElement;if(!Qc(r)||!n||!this.constraints)return;this.stopAnimation();const a={x:0,y:0};aa(o=>{const l=this.getAxisMotionValue(o);if(l&&this.constraints!==!1){const c=l.get();a[o]=UMe({min:c,max:c},this.constraints[o])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),aa(o=>{if(!Tg(o,t,null))return;const l=this.getAxisMotionValue(o),{min:c,max:u}=this.constraints[o];l.set(Qt(c,u,a[o]))})}addListeners(){if(!this.visualElement.current)return;YMe.set(this.visualElement,this);const t=this.visualElement.current,r=fm(t,"pointerdown",c=>{const{drag:u,dragListener:d=!0}=this.getProps();u&&d&&this.start(c)}),n=()=>{const{dragConstraints:c}=this.getProps();Qc(c)&&c.current&&(this.constraints=this.resolveRefConstraints())},{projection:a}=this.visualElement,i=a.addEventListener("measure",n);a&&!a.layout&&(a.root&&a.root.updateScroll(),a.updateLayout()),Vt.read(n);const o=Kh(window,"resize",()=>this.scalePositionWithinConstraints()),l=a.addEventListener("didUpdate",({delta:c,hasLayoutChanged:u})=>{this.isDragging&&u&&(aa(d=>{const f=this.getAxisMotionValue(d);f&&(this.originPoint[d]+=c[d].translate,f.set(f.get()+c[d].translate))}),this.visualElement.render())});return()=>{o(),r(),i(),l&&l()}}getProps(){const t=this.visualElement.getProps(),{drag:r=!1,dragDirectionLock:n=!1,dragPropagation:a=!1,dragConstraints:i=!1,dragElastic:o=r2,dragMomentum:l=!0}=t;return{...t,drag:r,dragDirectionLock:n,dragPropagation:a,dragConstraints:i,dragElastic:o,dragMomentum:l}}}function Tg(e,t,r){return(t===!0||t===e)&&(r===null||r===e)}function QMe(e,t=10){let r=null;return Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x"),r}class JMe extends Xo{constructor(t){super(t),this.removeGroupControls=Gn,this.removeListeners=Gn,this.controls=new ZMe(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Gn}unmount(){this.removeGroupControls(),this.removeListeners()}}const eD=e=>(t,r)=>{e&&Vt.postRender(()=>e(t,r))};class e4e extends Xo{constructor(){super(...arguments),this.removePointerDownListener=Gn}onPointerDown(t){this.session=new k7(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:V7(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:r,onPan:n,onPanEnd:a}=this.node.getProps();return{onSessionStart:eD(t),onStart:eD(r),onMove:n,onEnd:(i,o)=>{delete this.session,a&&Vt.postRender(()=>a(i,o))}}}mount(){this.removePointerDownListener=fm(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 Jg={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function tD(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Of={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(ze.test(e))e=parseFloat(e);else return e;const r=tD(e,t.target.x),n=tD(e,t.target.y);return`${r}% ${n}%`}},t4e={correct:(e,{treeScale:t,projectionDelta:r})=>{const n=e,a=Lo.parse(e);if(a.length>5)return n;const i=Lo.createTransformer(e),o=typeof a[0]!="number"?1:0,l=r.x.scale*t.x,c=r.y.scale*t.y;a[0+o]/=l,a[1+o]/=c;const u=Qt(l,c,.5);return typeof a[2+o]=="number"&&(a[2+o]/=u),typeof a[3+o]=="number"&&(a[3+o]/=u),i(a)}};class r4e extends b.Component{componentDidMount(){const{visualElement:t,layoutGroup:r,switchLayoutGroup:n,layoutId:a}=this.props,{projection:i}=t;S_e(n4e),i&&(r.group&&r.group.add(i),n&&n.register&&a&&n.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),Jg.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:r,visualElement:n,drag:a,isPresent:i}=this.props,o=n.projection;return o&&(o.isPresent=i,a||t.layoutDependency!==r||r===void 0?o.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?o.promote():o.relegate()||Vt.postRender(()=>{const l=o.getStack();(!l||!l.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),KC.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:r,switchLayoutGroup:n}=this.props,{projection:a}=t;a&&(a.scheduleCheckAfterUnmount(),r&&r.group&&r.group.remove(a),n&&n.deregister&&n.deregister(a))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function z7(e){const[t,r]=N9(),n=b.useContext(VC);return s.jsx(r4e,{...e,layoutGroup:n,switchLayoutGroup:b.useContext(O9),isPresent:t,safeToRemove:r})}const n4e={borderRadius:{...Of,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Of,borderTopRightRadius:Of,borderBottomLeftRadius:Of,borderBottomRightRadius:Of,boxShadow:t4e};function a4e(e,t,r){const n=tn(e)?e:Hh(e);return n.start(yA("",n,t,r)),n.animation}function s4e(e){return e instanceof SVGElement&&e.tagName!=="svg"}const i4e=(e,t)=>e.depth-t.depth;class o4e{constructor(){this.children=[],this.isDirty=!1}add(t){lA(this.children,t),this.isDirty=!0}remove(t){cA(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(i4e),this.isDirty=!1,this.children.forEach(t)}}function l4e(e,t){const r=Ss.now(),n=({timestamp:a})=>{const i=a-r;i>=t&&($o(n),e(i-t))};return Vt.read(n,!0),()=>$o(n)}const B7=["TopLeft","TopRight","BottomLeft","BottomRight"],c4e=B7.length,rD=e=>typeof e=="string"?parseFloat(e):e,nD=e=>typeof e=="number"||ze.test(e);function u4e(e,t,r,n,a,i){a?(e.opacity=Qt(0,r.opacity!==void 0?r.opacity:1,d4e(n)),e.opacityExit=Qt(t.opacity!==void 0?t.opacity:1,0,f4e(n))):i&&(e.opacity=Qt(t.opacity!==void 0?t.opacity:1,r.opacity!==void 0?r.opacity:1,n));for(let o=0;o<c4e;o++){const l=`border${B7[o]}Radius`;let c=aD(t,l),u=aD(r,l);if(c===void 0&&u===void 0)continue;c||(c=0),u||(u=0),c===0||u===0||nD(c)===nD(u)?(e[l]=Math.max(Qt(rD(c),rD(u),n),0),(Ns.test(u)||Ns.test(c))&&(e[l]+="%")):e[l]=u}(t.rotate||r.rotate)&&(e.rotate=Qt(t.rotate||0,r.rotate||0,n))}function aD(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const d4e=U7(0,.5,o7),f4e=U7(.5,.95,Gn);function U7(e,t,r){return n=>n<e?0:n>t?1:r(Nd(e,t,n))}function sD(e,t){e.min=t.min,e.max=t.max}function na(e,t){sD(e.x,t.x),sD(e.y,t.y)}function iD(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function oD(e,t,r,n,a){return e-=t,e=sy(e,1/r,n),a!==void 0&&(e=sy(e,1/a,n)),e}function m4e(e,t=0,r=1,n=.5,a,i=e,o=e){if(Ns.test(t)&&(t=parseFloat(t),t=Qt(o.min,o.max,t/100)-o.min),typeof t!="number")return;let l=Qt(i.min,i.max,n);e===i&&(l-=t),e.min=oD(e.min,t,r,l,a),e.max=oD(e.max,t,r,l,a)}function lD(e,t,[r,n,a],i,o){m4e(e,t[r],t[n],t[a],t.scale,i,o)}const h4e=["x","scaleX","originX"],p4e=["y","scaleY","originY"];function cD(e,t,r,n){lD(e.x,t,h4e,r?r.x:void 0,n?n.x:void 0),lD(e.y,t,p4e,r?r.y:void 0,n?n.y:void 0)}function uD(e){return e.translate===0&&e.scale===1}function W7(e){return uD(e.x)&&uD(e.y)}function dD(e,t){return e.min===t.min&&e.max===t.max}function g4e(e,t){return dD(e.x,t.x)&&dD(e.y,t.y)}function fD(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function q7(e,t){return fD(e.x,t.x)&&fD(e.y,t.y)}function mD(e){return Xn(e.x)/Xn(e.y)}function hD(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class v4e{constructor(){this.members=[]}add(t){lA(this.members,t),t.scheduleRender()}remove(t){if(cA(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const r=this.members[this.members.length-1];r&&this.promote(r)}}relegate(t){const r=this.members.findIndex(a=>t===a);if(r===0)return!1;let n;for(let a=r;a>=0;a--){const i=this.members[a];if(i.isPresent!==!1){n=i;break}}return n?(this.promote(n),!0):!1}promote(t,r){const n=this.lead;if(t!==n&&(this.prevLead=n,this.lead=t,t.show(),n)){n.instance&&n.scheduleRender(),t.scheduleRender(),t.resumeFrom=n,r&&(t.resumeFrom.preserveOpacity=!0),n.snapshot&&(t.snapshot=n.snapshot,t.snapshot.latestValues=n.animationValues||n.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:a}=t.options;a===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:r,resumingFrom:n}=t;r.onExitComplete&&r.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function x4e(e,t,r){let n="";const a=e.x.translate/t.x,i=e.y.translate/t.y,o=(r==null?void 0:r.z)||0;if((a||i||o)&&(n=`translate3d(${a}px, ${i}px, ${o}px) `),(t.x!==1||t.y!==1)&&(n+=`scale(${1/t.x}, ${1/t.y}) `),r){const{transformPerspective:u,rotate:d,rotateX:f,rotateY:m,skewX:p,skewY:v}=r;u&&(n=`perspective(${u}px) ${n}`),d&&(n+=`rotate(${d}deg) `),f&&(n+=`rotateX(${f}deg) `),m&&(n+=`rotateY(${m}deg) `),p&&(n+=`skewX(${p}deg) `),v&&(n+=`skewY(${v}deg) `)}const l=e.x.scale*t.x,c=e.y.scale*t.y;return(l!==1||c!==1)&&(n+=`scale(${l}, ${c})`),n||"none"}const ol={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},Wf=typeof window<"u"&&window.MotionDebug!==void 0,Mj=["","X","Y","Z"],y4e={visibility:"hidden"},pD=1e3;let b4e=0;function Dj(e,t,r,n){const{latestValues:a}=t;a[e]&&(r[e]=a[e],t.setStaticValue(e,0),n&&(n[e]=0))}function H7(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const r=e7(t);if(window.MotionHasOptimisedAnimation(r,"transform")){const{layout:a,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(r,"transform",Vt,!(a||i))}const{parent:n}=e;n&&!n.hasCheckedOptimisedAppear&&H7(n)}function G7({attachResizeListener:e,defaultParent:t,measureScroll:r,checkIsScrollRoot:n,resetTransform:a}){return class{constructor(o={},l=t==null?void 0:t()){this.id=b4e++,this.animationId=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,Wf&&(ol.totalNodes=ol.resolvedTargetDeltas=ol.recalculatedProjection=0),this.nodes.forEach(N4e),this.nodes.forEach(T4e),this.nodes.forEach(E4e),this.nodes.forEach(S4e),Wf&&window.MotionDebug.record(ol)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=l?l.root||l:this,this.path=l?[...l.path,l]:[],this.parent=l,this.depth=l?l.depth+1:0;for(let c=0;c<this.path.length;c++)this.path[c].shouldResetTransform=!0;this.root===this&&(this.nodes=new o4e)}addEventListener(o,l){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new uA),this.eventHandlers.get(o).add(l)}notifyListeners(o,...l){const c=this.eventHandlers.get(o);c&&c.notify(...l)}hasListeners(o){return this.eventHandlers.has(o)}mount(o,l=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=s4e(o),this.instance=o;const{layoutId:c,layout:u,visualElement:d}=this.options;if(d&&!d.current&&d.mount(o),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),l&&(u||c)&&(this.isLayoutDirty=!0),e){let f;const m=()=>this.root.updateBlockedByResize=!1;e(o,()=>{this.root.updateBlockedByResize=!0,f&&f(),f=l4e(m,250),Jg.hasAnimatedSinceResize&&(Jg.hasAnimatedSinceResize=!1,this.nodes.forEach(vD))})}c&&this.root.registerSharedNode(c,this),this.options.animate!==!1&&d&&(c||u)&&this.addEventListener("didUpdate",({delta:f,hasLayoutChanged:m,hasRelativeTargetChanged:p,layout:v})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const h=this.options.transition||d.getDefaultTransition()||D4e,{onLayoutAnimationStart:x,onLayoutAnimationComplete:y}=d.getProps(),g=!this.targetLayout||!q7(this.targetLayout,v)||p,j=!m&&p;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||j||m&&(g||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(f,j);const S={...aA(h,"layout"),onPlay:x,onComplete:y};(d.shouldReduceMotion||this.options.layoutRoot)&&(S.delay=0,S.type=!1),this.startAnimation(S)}else m||vD(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=v})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,$o(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(O4e),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&H7(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let d=0;d<this.path.length;d++){const f=this.path[d];f.shouldResetTransform=!0,f.updateScroll("snapshot"),f.options.layoutRoot&&f.willUpdate(!1)}const{layoutId:l,layout:c}=this.options;if(l===void 0&&!c)return;const u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),o&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(gD);return}this.isUpdating||this.nodes.forEach(C4e),this.isUpdating=!1,this.nodes.forEach(A4e),this.nodes.forEach(j4e),this.nodes.forEach(w4e),this.clearAllSnapshots();const l=Ss.now();Lr.delta=Ni(0,1e3/60,l-Lr.timestamp),Lr.timestamp=l,Lr.isProcessing=!0,Sj.update.process(Lr),Sj.preRender.process(Lr),Sj.render.process(Lr),Lr.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,KC.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(P4e),this.sharedNodes.forEach(_4e)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Vt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Vt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let c=0;c<this.path.length;c++)this.path[c].updateScroll();const o=this.layout;this.layout=this.measure(!1),this.layoutCorrected=ir(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:l}=this.options;l&&l.notify("LayoutMeasure",this.layout.layoutBox,o?o.layoutBox:void 0)}updateScroll(o="measure"){let l=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===o&&(l=!1),l){const c=n(this.instance);this.scroll={animationId:this.root.animationId,phase:o,isRoot:c,offset:r(this.instance),wasRoot:this.scroll?this.scroll.isRoot:c}}}resetTransform(){if(!a)return;const o=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,l=this.projectionDelta&&!W7(this.projectionDelta),c=this.getTransformTemplate(),u=c?c(this.latestValues,""):void 0,d=u!==this.prevTransformTemplateValue;o&&(l||il(this.latestValues)||d)&&(a(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(o=!0){const l=this.measurePageBox();let c=this.removeElementScroll(l);return o&&(c=this.removeTransform(c)),R4e(c),{animationId:this.root.animationId,measuredBox:l,layoutBox:c,latestValues:{},source:this.id}}measurePageBox(){var o;const{visualElement:l}=this.options;if(!l)return ir();const c=l.measureViewportBox();if(!(((o=this.scroll)===null||o===void 0?void 0:o.wasRoot)||this.path.some(I4e))){const{scroll:d}=this.root;d&&(tu(c.x,d.offset.x),tu(c.y,d.offset.y))}return c}removeElementScroll(o){var l;const c=ir();if(na(c,o),!((l=this.scroll)===null||l===void 0)&&l.wasRoot)return c;for(let u=0;u<this.path.length;u++){const d=this.path[u],{scroll:f,options:m}=d;d!==this.root&&f&&m.layoutScroll&&(f.wasRoot&&na(c,o),tu(c.x,f.offset.x),tu(c.y,f.offset.y))}return c}applyTransform(o,l=!1){const c=ir();na(c,o);for(let u=0;u<this.path.length;u++){const d=this.path[u];!l&&d.options.layoutScroll&&d.scroll&&d!==d.root&&ru(c,{x:-d.scroll.offset.x,y:-d.scroll.offset.y}),il(d.latestValues)&&ru(c,d.latestValues)}return il(this.latestValues)&&ru(c,this.latestValues),c}removeTransform(o){const l=ir();na(l,o);for(let c=0;c<this.path.length;c++){const u=this.path[c];if(!u.instance||!il(u.latestValues))continue;n2(u.latestValues)&&u.updateSnapshot();const d=ir(),f=u.measurePageBox();na(d,f),cD(l,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,d)}return il(this.latestValues)&&cD(l,this.latestValues),l}setTargetDelta(o){this.targetDelta=o,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(o){this.options={...this.options,...o,crossfade:o.crossfade!==void 0?o.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!==Lr.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(o=!1){var l;const c=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=c.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=c.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=c.isSharedProjectionDirty);const u=!!this.resumingFrom||this!==c;if(!(o||u&&this.isSharedProjectionDirty||this.isProjectionDirty||!((l=this.parent)===null||l===void 0)&&l.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:f,layoutId:m}=this.options;if(!(!this.layout||!(f||m))){if(this.resolvedRelativeTargetAt=Lr.timestamp,!this.targetDelta&&!this.relativeTarget){const p=this.getClosestProjectingParent();p&&p.layout&&this.animationProgress!==1?(this.relativeParent=p,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ir(),this.relativeTargetOrigin=ir(),hm(this.relativeTargetOrigin,this.layout.layoutBox,p.layout.layoutBox),na(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=ir(),this.targetWithTransforms=ir()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),FMe(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):na(this.target,this.layout.layoutBox),L7(this.target,this.targetDelta)):na(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const p=this.getClosestProjectingParent();p&&!!p.resumingFrom==!!this.resumingFrom&&!p.options.layoutScroll&&p.target&&this.animationProgress!==1?(this.relativeParent=p,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ir(),this.relativeTargetOrigin=ir(),hm(this.relativeTargetOrigin,this.target,p.target),na(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Wf&&ol.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||n2(this.parent.latestValues)||$7(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var o;const l=this.getLead(),c=!!this.resumingFrom||this!==l;let u=!0;if((this.isProjectionDirty||!((o=this.parent)===null||o===void 0)&&o.isProjectionDirty)&&(u=!1),c&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(u=!1),this.resolvedRelativeTargetAt===Lr.timestamp&&(u=!1),u)return;const{layout:d,layoutId:f}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(d||f))return;na(this.layoutCorrected,this.layout.layoutBox);const m=this.treeScale.x,p=this.treeScale.y;KMe(this.layoutCorrected,this.treeScale,this.path,c),l.layout&&!l.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(l.target=l.layout.layoutBox,l.targetWithTransforms=ir());const{target:v}=l;if(!v){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(iD(this.prevProjectionDelta.x,this.projectionDelta.x),iD(this.prevProjectionDelta.y,this.projectionDelta.y)),mm(this.projectionDelta,this.layoutCorrected,v,this.latestValues),(this.treeScale.x!==m||this.treeScale.y!==p||!hD(this.projectionDelta.x,this.prevProjectionDelta.x)||!hD(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",v)),Wf&&ol.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(o=!0){var l;if((l=this.options.visualElement)===null||l===void 0||l.scheduleRender(),o){const c=this.getStack();c&&c.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=eu(),this.projectionDelta=eu(),this.projectionDeltaWithTransform=eu()}setAnimationOrigin(o,l=!1){const c=this.snapshot,u=c?c.latestValues:{},d={...this.latestValues},f=eu();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!l;const m=ir(),p=c?c.source:void 0,v=this.layout?this.layout.source:void 0,h=p!==v,x=this.getStack(),y=!x||x.members.length<=1,g=!!(h&&!y&&this.options.crossfade===!0&&!this.path.some(M4e));this.animationProgress=0;let j;this.mixTargetDelta=S=>{const w=S/1e3;xD(f.x,o.x,w),xD(f.y,o.y,w),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(hm(m,this.layout.layoutBox,this.relativeParent.layout.layoutBox),k4e(this.relativeTarget,this.relativeTargetOrigin,m,w),j&&g4e(this.relativeTarget,j)&&(this.isProjectionDirty=!1),j||(j=ir()),na(j,this.relativeTarget)),h&&(this.animationValues=d,u4e(d,u,this.latestValues,w,g,y)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=w},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&($o(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Vt.update(()=>{Jg.hasAnimatedSinceResize=!0,this.currentAnimation=a4e(0,pD,{...o,onUpdate:l=>{this.mixTargetDelta(l),o.onUpdate&&o.onUpdate(l)},onComplete:()=>{o.onComplete&&o.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 o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(pD),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:l,target:c,layout:u,latestValues:d}=o;if(!(!l||!c||!u)){if(this!==o&&this.layout&&u&&K7(this.options.animationType,this.layout.layoutBox,u.layoutBox)){c=this.target||ir();const f=Xn(this.layout.layoutBox.x);c.x.min=o.target.x.min,c.x.max=c.x.min+f;const m=Xn(this.layout.layoutBox.y);c.y.min=o.target.y.min,c.y.max=c.y.min+m}na(l,c),ru(l,d),mm(this.projectionDeltaWithTransform,this.layoutCorrected,l,d)}}registerSharedNode(o,l){this.sharedNodes.has(o)||this.sharedNodes.set(o,new v4e),this.sharedNodes.get(o).add(l);const u=l.options.initialPromotionConfig;l.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(l):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var o;const{layoutId:l}=this.options;return l?((o=this.getStack())===null||o===void 0?void 0:o.lead)||this:this}getPrevLead(){var o;const{layoutId:l}=this.options;return l?(o=this.getStack())===null||o===void 0?void 0:o.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:l,preserveFollowOpacity:c}={}){const u=this.getStack();u&&u.promote(this,c),o&&(this.projectionDelta=void 0,this.needsReset=!0),l&&this.setOptions({transition:l})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let l=!1;const{latestValues:c}=o;if((c.z||c.rotate||c.rotateX||c.rotateY||c.rotateZ||c.skewX||c.skewY)&&(l=!0),!l)return;const u={};c.z&&Dj("z",o,u,this.animationValues);for(let d=0;d<Mj.length;d++)Dj(`rotate${Mj[d]}`,o,u,this.animationValues),Dj(`skew${Mj[d]}`,o,u,this.animationValues);o.render();for(const d in u)o.setStaticValue(d,u[d]),this.animationValues&&(this.animationValues[d]=u[d]);o.scheduleRender()}getProjectionStyles(o){var l,c;if(!this.instance||this.isSVG)return;if(!this.isVisible)return y4e;const u={visibility:""},d=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,u.opacity="",u.pointerEvents=Zg(o==null?void 0:o.pointerEvents)||"",u.transform=d?d(this.latestValues,""):"none",u;const f=this.getLead();if(!this.projectionDelta||!this.layout||!f.target){const h={};return this.options.layoutId&&(h.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,h.pointerEvents=Zg(o==null?void 0:o.pointerEvents)||""),this.hasProjected&&!il(this.latestValues)&&(h.transform=d?d({},""):"none",this.hasProjected=!1),h}const m=f.animationValues||f.latestValues;this.applyTransformsToTarget(),u.transform=x4e(this.projectionDeltaWithTransform,this.treeScale,m),d&&(u.transform=d(m,u.transform));const{x:p,y:v}=this.projectionDelta;u.transformOrigin=`${p.origin*100}% ${v.origin*100}% 0`,f.animationValues?u.opacity=f===this?(c=(l=m.opacity)!==null&&l!==void 0?l:this.latestValues.opacity)!==null&&c!==void 0?c:1:this.preserveOpacity?this.latestValues.opacity:m.opacityExit:u.opacity=f===this?m.opacity!==void 0?m.opacity:"":m.opacityExit!==void 0?m.opacityExit:0;for(const h in ey){if(m[h]===void 0)continue;const{correct:x,applyTo:y}=ey[h],g=u.transform==="none"?m[h]:x(m[h],f);if(y){const j=y.length;for(let S=0;S<j;S++)u[y[S]]=g}else u[h]=g}return this.options.layoutId&&(u.pointerEvents=f===this?Zg(o==null?void 0:o.pointerEvents)||"":"none"),u}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(o=>{var l;return(l=o.currentAnimation)===null||l===void 0?void 0:l.stop()}),this.root.nodes.forEach(gD),this.root.sharedNodes.clear()}}}function j4e(e){e.updateLayout()}function w4e(e){var t;const r=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&r&&e.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:a}=e.layout,{animationType:i}=e.options,o=r.source!==e.layout.source;i==="size"?aa(f=>{const m=o?r.measuredBox[f]:r.layoutBox[f],p=Xn(m);m.min=n[f].min,m.max=m.min+p}):K7(i,r.layoutBox,n)&&aa(f=>{const m=o?r.measuredBox[f]:r.layoutBox[f],p=Xn(n[f]);m.max=m.min+p,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[f].max=e.relativeTarget[f].min+p)});const l=eu();mm(l,n,r.layoutBox);const c=eu();o?mm(c,e.applyTransform(a,!0),r.measuredBox):mm(c,n,r.layoutBox);const u=!W7(l);let d=!1;if(!e.resumeFrom){const f=e.getClosestProjectingParent();if(f&&!f.resumeFrom){const{snapshot:m,layout:p}=f;if(m&&p){const v=ir();hm(v,r.layoutBox,m.layoutBox);const h=ir();hm(h,n,p.layoutBox),q7(v,h)||(d=!0),f.options.layoutRoot&&(e.relativeTarget=h,e.relativeTargetOrigin=v,e.relativeParent=f)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:r,delta:c,layoutDelta:l,hasLayoutChanged:u,hasRelativeTargetChanged:d})}else if(e.isLead()){const{onExitComplete:n}=e.options;n&&n()}e.options.transition=void 0}function N4e(e){Wf&&ol.totalNodes++,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 S4e(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function P4e(e){e.clearSnapshot()}function gD(e){e.clearMeasurements()}function C4e(e){e.isLayoutDirty=!1}function A4e(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function vD(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function T4e(e){e.resolveTargetDelta()}function E4e(e){e.calcProjection()}
vendor: 6,638 bytes, line 791
791function O4e(e){e.resetSkewAndRotation()}function _4e(e){e.removeLeadSnapshot()}function xD(e,t,r){e.translate=Qt(t.translate,0,r),e.scale=Qt(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function yD(e,t,r,n){e.min=Qt(t.min,r.min,n),e.max=Qt(t.max,r.max,n)}function k4e(e,t,r,n){yD(e.x,t.x,r.x,n),yD(e.y,t.y,r.y,n)}function M4e(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const D4e={duration:.45,ease:[.4,0,.1,1]},bD=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),jD=bD("applewebkit/")&&!bD("chrome/")?Math.round:Gn;function wD(e){e.min=jD(e.min),e.max=jD(e.max)}function R4e(e){wD(e.x),wD(e.y)}function K7(e,t,r){return e==="position"||e==="preserve-aspect"&&!LMe(mD(t),mD(r),.2)}function I4e(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const $4e=G7({attachResizeListener:(e,t)=>Kh(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Rj={current:void 0},X7=G7({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Rj.current){const e=new $4e({});e.mount(window),e.setOptions({layoutScroll:!0}),Rj.current=e}return Rj.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),L4e={pan:{Feature:e4e},drag:{Feature:JMe,ProjectionNode:X7,MeasureLayout:z7}};function ND(e,t,r){const{props:n}=e;e.animationState&&n.whileHover&&e.animationState.setActive("whileHover",r==="Start");const a="onHover"+r,i=n[a];i&&Vt.postRender(()=>i(t,Ep(t)))}class F4e extends Xo{mount(){const{current:t}=this.node;t&&(this.unmount=F_e(t,r=>(ND(this.node,r,"Start"),n=>ND(this.node,n,"End"))))}unmount(){}}class V4e extends Xo{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=Tp(Kh(this.node.current,"focus",()=>this.onFocus()),Kh(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function SD(e,t,r){const{props:n}=e;e.animationState&&n.whileTap&&e.animationState.setActive("whileTap",r==="Start");const a="onTap"+(r==="End"?"":r),i=n[a];i&&Vt.postRender(()=>i(t,Ep(t)))}class z4e extends Xo{mount(){const{current:t}=this.node;t&&(this.unmount=U_e(t,r=>(SD(this.node,r,"Start"),(n,{success:a})=>SD(this.node,n,a?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const s2=new WeakMap,Ij=new WeakMap,B4e=e=>{const t=s2.get(e.target);t&&t(e)},U4e=e=>{e.forEach(B4e)};function W4e({root:e,...t}){const r=e||document;Ij.has(r)||Ij.set(r,{});const n=Ij.get(r),a=JSON.stringify(t);return n[a]||(n[a]=new IntersectionObserver(U4e,{root:e,...t})),n[a]}function q4e(e,t,r){const n=W4e(t);return s2.set(e,r),n.observe(e),()=>{s2.delete(e),n.unobserve(e)}}const H4e={some:0,all:1};class G4e extends Xo{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:r,margin:n,amount:a="some",once:i}=t,o={root:r?r.current:void 0,rootMargin:n,threshold:typeof a=="number"?a:H4e[a]},l=c=>{const{isIntersecting:u}=c;if(this.isInView===u||(this.isInView=u,i&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:d,onViewportLeave:f}=this.node.getProps(),m=u?d:f;m&&m(c)};return q4e(this.node.current,o,l)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:r}=this.node;["amount","margin","root"].some(K4e(t,r))&&this.startObserver()}unmount(){}}function K4e({viewport:e={}},{viewport:t={}}={}){return r=>e[r]!==t[r]}const X4e={inView:{Feature:G4e},tap:{Feature:z4e},focus:{Feature:V4e},hover:{Feature:F4e}},Y4e={layout:{ProjectionNode:X7,MeasureLayout:z7}},i2={current:null},Y7={current:!1};function Z4e(){if(Y7.current=!0,!!UC)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>i2.current=e.matches;e.addListener(t),t()}else i2.current=!1}const Q4e=[...j7,Xr,Lo],J4e=e=>Q4e.find(b7(e)),PD=new WeakMap;function eDe(e,t,r){for(const n in t){const a=t[n],i=r[n];if(tn(a))e.addValue(n,a);else if(tn(i))e.addValue(n,Hh(a,{owner:e}));else if(i!==a)if(e.hasValue(n)){const o=e.getValue(n);o.liveStyle===!0?o.jump(a):o.hasAnimated||o.set(a)}else{const o=e.getStaticValue(n);e.addValue(n,Hh(o!==void 0?o:a,{owner:e}))}}for(const n in r)t[n]===void 0&&e.removeValue(n);return t}const CD=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class tDe{scrapeMotionValuesFromProps(t,r,n){return{}}constructor({parent:t,props:r,presenceContext:n,reducedMotionConfig:a,blockInitialAnimation:i,visualState:o},l={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=gA,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 p=Ss.now();this.renderScheduledAt<p&&(this.renderScheduledAt=p,Vt.render(this.render,!1,!0))};const{latestValues:c,renderState:u,onUpdate:d}=o;this.onUpdate=d,this.latestValues=c,this.baseTarget={...c},this.initialValues=r.initial?{...c}:{},this.renderState=u,this.parent=t,this.props=r,this.presenceContext=n,this.depth=t?t.depth+1:0,this.reducedMotionConfig=a,this.options=l,this.blockInitialAnimation=!!i,this.isControllingVariants=J0(r),this.isVariantNode=T9(r),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:f,...m}=this.scrapeMotionValuesFromProps(r,{},this);for(const p in m){const v=m[p];c[p]!==void 0&&tn(v)&&v.set(c[p],!1)}}mount(t){this.current=t,PD.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.forEac
vendor: 5,242 bytes, line 791
791h((r,n)=>this.bindToMotionValue(n,r)),Y7.current||Z4e(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:i2.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){PD.delete(this.current),this.projection&&this.projection.unmount(),$o(this.notifyUpdate),$o(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const r=this.features[t];r&&(r.unmount(),r.isMounted=!1)}this.current=null}bindToMotionValue(t,r){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const n=pc.has(t),a=r.on("change",l=>{this.latestValues[t]=l,this.props.onUpdate&&Vt.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0)}),i=r.on("renderRequest",this.scheduleRender);let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,t,r)),this.valueSubscriptions.set(t,()=>{a(),i(),o&&o(),r.owner&&r.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 Sd){const r=Sd[t];if(!r)continue;const{isEnabled:n,Feature:a}=r;if(!this.features[t]&&a&&n(this.props)&&(this.features[t]=new a(this)),this.features[t]){const i=this.features[t];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):ir()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,r){this.latestValues[t]=r}update(t,r){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=r;for(let n=0;n<CD.length;n++){const a=CD[n];this.propEventSubscriptions[a]&&(this.propEventSubscriptions[a](),delete this.propEventSubscriptions[a]);const i="on"+a,o=t[i];o&&(this.propEventSubscriptions[a]=this.on(a,o))}this.prevMotionValues=eDe(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}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 r=this.getClosestVariantNode();if(r)return r.variantChildren&&r.variantChildren.add(t),()=>r.variantChildren.delete(t)}addValue(t,r){const n=this.values.get(t);r!==n&&(n&&this.removeValue(t),this.bindToMotionValue(t,r),this.values.set(t,r),this.latestValues[t]=r.get())}removeValue(t){this.values.delete(t);const r=this.valueSubscriptions.get(t);r&&(r(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,r){if(this.props.values&&this.props.values[t])return this.props.values[t];let n=this.values.get(t);return n===void 0&&r!==void 0&&(n=Hh(r===null?void 0:r,{owner:this}),this.addValue(t,n)),n}readValue(t,r){var n;let a=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(n=this.getBaseTargetFromProps(this.props,t))!==null&&n!==void 0?n:this.readValueFromInstance(this.current,t,this.options);return a!=null&&(typeof a=="string"&&(x7(a)||c7(a))?a=parseFloat(a):!J4e(a)&&Lo.test(r)&&(a=p7(t,r)),this.setBaseTarget(t,tn(a)?a.get():a)),tn(a)?a.get():a}setBaseTarget(t,r){this.baseTarget[t]=r}getBaseTarget(t){var r;const{initial:n}=this.props;let a;if(typeof n=="string"||typeof n=="object"){const o=YC(this.props,n,(r=this.presenceContext)===null||r===void 0?void 0:r.custom);o&&(a=o[t])}if(n&&a!==void 0)return a;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!tn(i)?i:this.initialValues[t]!==void 0&&a===void 0?void 0:this.baseTarget[t]}on(t,r){return this.events[t]||(this.events[t]=new uA),this.events[t].add(r)}notify(t,...r){this.events[t]&&this.events[t].notify(...r)}}class Z7 extends tDe{constructor(){super(...arguments),this.KeyframeResolver=w7}sortInstanceNodePosition(t,r){return t.compareDocumentPosition(r)&2?1:-1}getBaseTargetFromProps(t,r){return t.style?t.style[r]:void 0}removeValueFromRenderState(t,{vars:r,style:n}){delete r[t],delete n[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;tn(t)&&(this.childSubscription=t.on("change",r=>{this.current&&(this.current.textContent=`${r}`)}))}}function rDe(e){return window.getComputedStyle(e)}class nDe extends Z7{constructor(){super(...arguments),this.type="html",this.renderInstance=$9}readValueFromInstance(t,r){if(pc.has(r)){const n=pA(r);return n&&n.default||0}else{const n=rDe(t),a=(D9(r)?n.getPropertyValue(r):n[r])||0;
791return typeof a=="string"?a.trim():a}}measureInstanceViewportBox(t,{transformPagePoint:r}){return F7(t,r)}build(t,r,n){JC(t,r,n.transformTemplate)}scrapeMotionValuesFromProps(t,r,n){return nA(t,r,n)}}class aDe extends Z7{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=ir}getBaseTargetFromProps(t,r){return t[r]}readValueFromInstance(t,r){if(pc.has(r)){const n=pA(r);return n&&n.default||0}return r=L9.has(r)?r:GC(r),t.getAttribute(r)}scrapeMotionValuesFromProps(t,r,n){return z9(t,r,n)}build(t,r,n){eA(t,r,this.isSVGTag,n.transformTemplate)}renderInstance(t,r,n,a){F9(t,r,n,a)}mount(t){this.isSVGTag=rA(t.tagName),super.mount(t)}}const sDe=(e,t)=>XC(e)?new aDe(t):new nDe(t,{allowProjection:e!==b.Fragment}),iDe=M_e({...EMe,...X4e,...L4e,...Y4e},sDe),Xe=KOe(iDe),oDe={some:0,all:1};function lDe(e,t,{root:r,margin:n,amount:a="some"}={}){const i=X9(e),o=new WeakMap,l=u=>{u.forEach(d=>{const f=o.get(d.target);if(d.isIntersecting!==!!f)if(d.isIntersecting){const m=t(d);typeof m=="function"?o.set(d.target,m):c.unobserve(d.target)}else typeof f=="function"&&(f(d),o.delete(d.target))})},c=new IntersectionObserver(l,{root:r,rootMargin:n,threshold:typeof a=="number"?a:oDe[a]});return i.forEach(u=>c.observe(u)),()=>c.disconnect()}function Cd(e,{root:t,margin:r,amount:n,once:a=!1}={}){const[i,o]=b.useState(!1);return b.useEffect(()=>{if(!e.current||a&&i)return;const l=()=>(o(!0),a?void 0:()=>o(!1)),c={root:t&&t.current||void 0,margin:r,amount:n};return lDe(e.current,l,c)},[t,e,r,a,n]),i}const cDe="/assets/confecxpress-funcionaria-B8RJm5jO.png";function uDe({icon:e,title:t,description:r,colorClass:n}){const[a,i]=b.useState(!1);return s.jsxs(Xe.div,{className:`bg-white p-6 rounded-xl shadow-lg transition-all duration-300 border ${n} h-full`,whileHover:{y:-10,boxShadow:"0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)"},onMouseEnter:()=>i(!0),onMouseLeave:()=>i(!1),children:[s.jsx("div",{className:`w-16 h-16 rounded-full ${a?"bg-primary":"bg-primary/10"} flex items-center justify-center mb-4 transition-colors duration-300`,children:s.jsx("div",{className:`${a?"text-white":"text-primary"} transition-colors duration-300`,children:e})}),s.jsx("h3",{className:"text-xl font-bold mb-3",children:t}),s.jsx("p",{className:"text-gray-700",children:r})]})}function dDe(){const e=[{icon:s.jsx(OG,{size:28}),title:"Notificações em tempo real",description:"Acompanhe seu pedido em cada etapa com notificações automáticas via WhatsApp.",colorClass:"border-blue-200"},{icon:s.jsx(xS,{size:28}),title:"Multa por atraso",description:"Garantimos a entrega no prazo com contrato que inclui cláusula de multa por atraso.",colorClass:"border-green-200"},{icon:s.jsx(kd,{size:28}),title:"Velocidade de produção",description:"Nossa produção automatizada permite prazos 70% mais rápidos que o mercado tradicional.",colorClass:"border-yellow-200"},{icon:s.jsx(oc,{size:28}),title:"Tecnologia avançada",description:"Utilizamos sistemas inteligentes de corte e produção para garantir qualidade e eficiência.",colorClass:"border-purple-200"}];return s.jsx("section",{id:"sobre",className:"py-20 bg-gradient-to-b from-white to-gray-50",children:s.jsxs("div",{className:"container mx-auto px-4",children:[s.jsx(wi,{title:"Sobre a",highlight:"ConfecXpress",description:"Revolucionando o mercado de confecção com tecnologia e compromisso",center:!0}),s.jsxs("div",{className:"flex flex-col lg:flex-row items-stretch gap-12 mt-10",children:[s.jsx(Xe.div,{className:"w-full lg:w-1/2",initial:{opacity:0,x:-50},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.5},children:s.jsxs("div",{className:"relative h-full",children:[s.jsx("div",{className:"absolute -top-6 -left-6 w-24 h-24 bg-primary/10 rounded-full z-0"}),s.jsx("div",{className:"absolute -bottom-6 -right-6 w-32 h-32 bg-primary/10 rounded-full z-0"}),s.jsxs("div",{className:"relative z-10 rounded-xl overflow-hidden shadow-2xl h-full",children:[s.jsx("img",{src:cDe,alt:"Funcionária da ConfecXpress preparando camiseta rosa",className:"w-full h-full object-cover"}),s.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-primary/80 to-transparent flex items-end",children:s.jsxs("div",{className:"p-6 text-white",children:[s.jsxs("h3",{className:"text-xl font-bold mb-2 flex items-center",children:[s.jsx(TG,{className:"w-5 h-5 mr-2"}),"Revolução no mercado"]}),s.jsx("p",{className:"text-white/90",children:"Estamos redefinindo o padrão de qualidade e eficiência em confecção de uniformes."})]})})]})]})}),s.jsxs("div",{className:"w-full lg:w-1/2",children:[s.jsxs(Xe.div,{className:"prose prose-lg mb-8 max-w-none",initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5},children:[s.jsxs("p",{children:["Somos uma confecção ",s.jsx("span",{className:"font-semibold text-primary",children:"moderna e automatizada"})," que está revolucionando o mercado de confecção. Nosso sistema exclusivo combina tecnologia de ponta com expertise em produção têxtil para oferecer resultados extraordinários."]}),s.jsx("p",{children:"Cada pedido na ConfecXpress é tratado com atenção aos detalhes e compromisso com a qualidade, desde o primeiro contato até a entrega final."})]}),s.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4 lg:gap-6",children:e.map((t,r)=>s.jsx(Xe.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.3,delay:r*.1},children:s.jsx(uDe,{...t})},r))})]})]})]})})}function fDe(){const[e,t]=b.useState(0),[r,n]=b.useState(!0),a=b.useRef(null),i=Cd(a,{once:!1,amount:.3});b.useEffect(()=>{i||n(!0)},[i]),b.useEffect(()=>{let c;return r&&i&&(c=setInterval(()=>{t(u=>(u+1)%o.length)},3e3)),()=>clearInterval(c)},[r,i]);const o=[{icon:s.jsx(NG,{className:"w-full h-full p-5"}),title:"Envie seu pedido",description:"Envie seu pedido pelo WhatsApp com todos os detalhes necessários",speed:"Instantâneo",detail
791:"Nossa equipe está pronta para atender seu pedido a qualquer momento. Basta enviar uma mensagem com seu pedido e responderemos imediatamente.",color:"from-blue-500 to-blue-600"},{icon:s.jsx(Lt,{className:"w-full h-full p-5"}),title:"Orçamento Rápido",description:"Orçamento em até 30 minutos direto no seu WhatsApp",speed:"30 minutos",detail:"Diferente das confecções tradicionais que levam dias para orçar, entregamos seu orçamento em apenas 30 minutos, direto no seu WhatsApp.",color:"from-emerald-500 to-emerald-600"},{icon:s.jsx(yG,{className:"w-full h-full p-5"}),title:"Produção",description:"Produção iniciada imediatamente após sua confirmação",speed:"Mesmo dia",detail:"Assim que você confirma o pedido, nossa linha de produção automatizada já inicia o processo de fabricação, garantindo velocidade e qualidade.",color:"from-amber-500 to-amber-600"},{icon:s.jsx(sG,{className:"w-full h-full p-5"}),title:"Acompanhamento",description:"Acompanhamento 100% transparente em tempo real",speed:"Em tempo real",detail:"Acompanhe cada etapa da produção do seu pedido através de nosso sistema exclusivo. Você sempre saberá exatamente em que estágio seu pedido está.",color:"from-indigo-500 to-indigo-600"},{icon:s.jsx(Vm,{className:"w-full h-full p-5"}),title:"Entrega",description:"Entregas normais de 7 a 20 dias, com opção expressa",speed:"FlexÃvel",detail:"Nosso prazo médio é de 7 a 20 dias, mas oferecemos a opção de entrega expressa em até 48h para pedidos urgentes (mediante análise e disponibilidade).",color:"from-violet-500 to-violet-600"}],l=c=>{t(c),n(!1)};return s.jsxs("section",{id:"como-funciona",className:"py-20 bg-gradient-to-b from-gray-50 to-white relative overflow-hidden",children:[s.jsx("div",{className:"absolute top-0 right-0 w-64 h-64 bg-primary/5 rounded-full -mr-32 -mt-32"}),s.jsx("div",{className:"absolute bottom-0 left-0 w-96 h-96 bg-primary/5 rounded-full -ml-48 -mb-48"}),s.jsxs("div",{className:"container mx-auto px-4 relative z-10",children:[s.jsx(Xe.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6},children:s.jsx(wi,{title:"Como",highlight:"Funciona",description:"Nosso processo é rápido, transparente e totalmente digital. Oferecemos prazos normais de 7 a 20 dias e opção expressa para pedidos urgentes.",center:!0})}),s.jsx("div",{className:"mt-12",children:s.jsxs("div",{className:"flex flex-col lg:flex-row gap-8 items-center mb-16",children:[s.jsx(Xe.div,{className:"w-full lg:w-1/2 order-2 lg:order-1",initial:{opacity:0,x:-50},animate:i?{opacity:1,x:0}:{},transition:{duration:.6,delay:.2},children:s.jsxs("div",{className:"bg-white p-8 rounded-xl shadow-xl relative z-10 overflow-hidden",children:[s.jsx("div",{className:"absolute top-0 left-0 w-full h-2 bg-gradient-to-r from-primary to-primary/70"}),s.jsxs("div",{className:"flex items-center mb-6",children:[s.jsx("div",{className:"flex items-center justify-center w-16 h-16 rounded-full bg-gradient-to-br from-primary to-primary/70 text-white mr-4",children:s.jsx(_d,{className:"w-8 h-8"})}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-2xl font-bold",children:"LÃder do Mercado"}),s.jsx("p",{className:"text-gray-600",children:"A confecção mais rápida e confiável do Brasil"})]})]}),s.jsxs("div",{className:"space-y-4 mb-6",children:[s.jsxs("div",{className:"flex items-center",children:[s.jsx(io,{className:"w-5 h-5 text-yellow-500 mr-2 shrink-0"}),s.jsxs("p",{children:["Ãnico processo ",s.jsx("span",{className:"font-bold",children:"100% automatizado"})," do mercado"]})]}),s.jsxs("div",{className:"flex items-center",children:[s.jsx(io,{className:"w-5 h-5 text-yellow-500 mr-2 shrink-0"}),s.jsxs("p",{children:["Garantia de ",s.jsx("span",{className:"font-bold",children:"multa por atraso"})," em todos os contratos"]})]}),s.jsxs("div",{className:"flex items-center",children:[s.jsx(io,{className:"w-5 h-5 text-yellow-500 mr-2 shrink-0"}),s.jsxs("p",{children:["Serviço ",s.jsx("span",{className:"font-bold",children:"express em 48h"})," para pedidos urgentes"]})]}),s.jsxs("div",{className:"flex items-center",children:[s.jsx(io,{className:"w-5 h-5 text-yellow-500 mr-2 shrink-0"}),s.jsxs("p",{children:[s.jsx("span",{className:"font-bold",children:"Notificações em tempo real"}
791)," de cada etapa do processo"]})]})]}),s.jsx(W,{asChild:!0,className:"bg-primary text-white hover:opacity-90 font-bold w-full md:w-auto",children:s.jsxs("a",{href:"https://wa.me/551151976208?text=Olá,%20estou%20interessado%20em%20fazer%20um%20pedido%20de%20uniformes%20personalizados.%20Podem%20me%20ajudar?",target:"_blank",rel:"noopener noreferrer",children:[s.jsx(Wu,{className:"w-5 h-5 mr-2"}),"Fazer meu pedido"]})})]})}),s.jsxs(Xe.div,{className:"w-full lg:w-1/2 order-1 lg:order-2",initial:{opacity:0,x:50},animate:i?{opacity:1,x:0}:{},transition:{duration:.6,delay:.2},ref:a,children:[s.jsx(nc,{mode:"wait",children:s.jsxs(Xe.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},exit:{opacity:0,y:-20},transition:{duration:.3},className:"bg-white p-8 rounded-xl shadow-xl mb-8 relative overflow-hidden min-h-[220px]",children:[s.jsx("div",{className:`absolute top-0 left-0 w-full h-2 bg-gradient-to-r ${o[e].color}`}),s.jsxs("div",{className:"flex items-center mb-4",children:[s.jsx("div",{className:`flex items-center justify-center w-16 h-16 rounded-full bg-gradient-to-br ${o[e].color} text-white mr-4`,children:o[e].icon}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-2xl font-bold",children:o[e].title}),s.jsxs("div",{className:"flex items-center text-gray-600",children:[s.jsx(Ps,{className:"w-4 h-4 mr-1"}),s.jsx("span",{children:o[e].speed})]})]})]}),s.jsx("p",{className:"text-gray-700 mb-4",children:o[e].description}),s.jsx("p",{className:"text-gray-600",children:o[e].detail})]},e)}),s.jsx("div",{className:"flex items-center justify-between w-full bg-white rounded-xl shadow-md p-2 overflow-hidden",children:o.map((c,u)=>s.jsxs(Xe.button,{onClick:()=>l(u),className:`relative h-16 ${u===e?"bg-gradient-to-r from-primary/20 to-primary/5":"hover:bg-gray-100"} rounded-lg flex items-center justify-center transition-all duration-300 flex-1 mx-1`,whileHover:{scale:1.02},whileTap:{scale:.98},children:[u===e&&s.jsx(Xe.div,{className:"absolute bottom-0 left-0 h-1 bg-primary",layoutId:"underline",style:{width:"100%"}}),s.jsxs("div",{className:"flex flex-col items-center",children:[s.jsx("span",{className:`text-2xl font-bold ${u===e?"text-primary":"text-gray-500"}`,children:u+1}),s.jsx("span",{className:`text-xs ${u===e?"text-primary":"text-gray-500"} hidden md:block`,children:c.title.split(" ")[0]})]})]},u))})]})]})})]})]})}function mDe(){const[e,t]=b.useState(null),r=[{icon:s.jsx(tG,{className:"w-full h-full p-2"}),title:"Sistema de automação exclusivo",description:"Desenvolvemos nosso próprio sistema de automação para acompanhamento em tempo real dos pedidos, garantindo eficiência e transparência.",benefits:["Painel de controle online para acompanhar cada etapa","Sistema que prevê e evita possÃveis atrasos","Integração completa com seu WhatsApp"],color:"from-blue-500 to-blue-600"},{icon:s.jsx(dG,{className:"w-full h-full p-2"}),title:"Contrato com multa por atraso",description:"Levamos prazos a sério! Nossos contratos incluem cláusula de multa por atraso, demonstrando nosso compromisso com a pontualidade.",benefits:["Compensação financeira em caso de atraso na entrega","Garantia contratual do prazo acordado","Transparência total nos termos contratuais"],color:"from-emerald-500 to-emerald-600"},{icon:s.jsx(Ty,{className:"w-full h-full p-2"}),title:"Notificações automáticas",description:"Você recebe notificações automáticas via WhatsApp a cada etapa do processo, mantendo você informado em tempo real.",benefits:["Alertas instantâneos sobre o status do pedido","Mensagens personalizadas com etapas concluÃdas","Comunicação clara e objetiva durante todo o processo"],color:"from-purple-500 to-purple-600"},{icon:s.jsx(mG,{className:"w-full h-full p-2"}),title:"Atendimento rápido",description:"Atendimento ágil, profissional e transparente, com orçamentos em até 30 minutos e suporte durante todo o processo.",benefits:["Equipe dedicada e altamente treinada","Resposta a dúvidas e solicitações em minutos","Suporte via WhatsApp, e-mail ou telefone"],color:"from-amber-500 to-amber-600"},{icon:s.jsx(_d,{className:"w-full h-full p-2"}),title:"Qualidade premium",description:"Utilizamos materiais de alta qualidade e técnicas avançadas para garantir produtos duráveis e com acabamento impecável.",benefits:["Tecidos selecionados com rigoroso controle de qualidade","Processo de costura reforçada para maior durabilidade","Estampas de alta definição que não desbotam"],color:"from-red-500 to-red-600"},{icon:s.jsx(kd,{className:"w-full h-full p-2"}),title:"Entrega expressa",description:"Oferecemos serviço express para entregas em até 48h em casos urgentes (mediante análise), com prazo padrão de 7 a 20 dias.",benefits:["Opção express para necessidades urgentes","Sistema de logÃstica otimizado para entregas rápidas","Rastreamento em tempo real da entrega"],color:"from-indigo-500 to-indigo-600"},{icon:s.jsx(Lt,{className:"w-full h-full p-2"}),title:"Emissão de Nota Fiscal",description:"Trabalhamos de forma totalmente regularizada, emitindo nota fiscal em todos os pedidos para sua segurança e conformidade.",benefits:["Nota fiscal eletrônica em todos os pedidos","Empresa registrada e em conformidade fiscal","Facili
791dade para prestação de contas da sua empresa"],color:"from-teal-500 to-teal-600"},{icon:s.jsx(F5,{className:"w-full h-full p-2"}),title:"Referências comerciais",description:"Contamos com sólidas referências comerciais de clientes satisfeitos que atestam a qualidade e confiabilidade dos nossos serviços.",benefits:["Histórico comprovado de entregas bem-sucedidas","Parcerias duradouras com empresas de diversos setores","Disponibilizamos contatos de referência mediante solicitação"],color:"from-cyan-500 to-cyan-600"},{icon:s.jsx(oG,{className:"w-full h-full p-2"}),title:"Faturamento mediante análise",description:"Oferecemos opção de faturamento para empresas, com condições especiais de pagamento mediante análise de crédito.",benefits:["Condições de pagamento flexÃveis para empresas","Análise de crédito rápida e descomplicada","Facilidade para pedidos recorrentes e de grande volume"],color:"from-orange-500 to-orange-600"}];return s.jsxs("section",{id:"diferenciais",className:"py-20 bg-gradient-to-b from-white to-gray-50 relative overflow-hidden",children:[s.jsx("div",{className:"absolute top-40 left-0 w-64 h-64 bg-primary/5 rounded-full -ml-32"}),s.jsx("div",{className:"absolute bottom-40 right-0 w-80 h-80 bg-primary/5 rounded-full -mr-40"}),s.jsxs("div",{className:"container mx-auto px-4 relative z-10",children:[s.jsx(Xe.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6},children:s.jsx(wi,{title:"Nossos",highlight:"Diferenciais",description:"O que nos diferencia das outras confecções e torna a ConfecXpress a revolução do mercado",center:!0})}),s.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8 mt-12",children:r.map((n,a)=>s.jsxs(Xe.div,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.5,delay:a*.1},className:"bg-white rounded-xl shadow-md overflow-hidden transition-all duration-300 hover:shadow-xl",onMouseEnter:()=>t(a),onMouseLeave:()=>t(null),children:[s.jsx("div",{className:`h-2 bg-gradient-to-r ${n.color}`}),s.jsxs("div",{className:"p-6 relative",children:[s.jsxs("div",{className:"flex items-start mb-4",children:[s.jsx("div",{className:`w-14 h-14 rounded-full bg-gradient-to-br ${n.color} text-white flex items-center justify-center mr-4 shrink-0`,children:n.icon}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-xl font-bold mb-2",children:n.title}),s.jsx("p",{className:"text-gray-600",children:n.description})]})]}),s.jsx(nc,{children:e===a&&s.jsx(Xe.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},transition:{duration:.3},className:"overflow-hidden",children:s.jsxs("div",{className:"border-t border-gray-100 pt-4 mt-4",children:[s.jsxs("p",{className:"font-semibold flex items-center text-primary mb-2",children:[s.jsx(hn,{className:"w-4 h-4 mr-2"}),"BenefÃcios exclusivos:"]}),s.jsx("ul",{className:"space-y-2",children:n.benefits.map((i,o)=>s.jsxs(Xe.li,{initial:{opacity:0,x:-10},animate:{opacity:1,x:0},transition:{duration:.3,delay:o*.1},className:"flex items-start",children:[s.jsx(mn,{className:"w-5 h-5 text-green-500 mr-2 shrink-0 mt-0.5"}),s.jsx("span",{className:"text-gray-700 text-sm",children:i})]},o))})]})})}),e!==a&&s.jsx("div",{className:"absolute bottom-6 right-6",children:s.jsxs("div",{className:"text-xs text-primary/70 flex items-center",children:[s.jsx("span",{className:"mr-1",children:"Ver mais"}),s.jsx(cS,{className:"w-3 h-3"})]})})]})]},a))}),s.jsxs(Xe.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6,delay:.8},className:"mt-16 bg-primary/5 border border-primary/10 p-6 rounded-xl text-center max-w-3xl mx-auto",children:[s.jsx("h3",{className:"text-xl font-bold text-primary mb-3",children:"Experimente a diferença ConfecXpress"}),s.jsx("p",{className:"text-gray-700 mb-0",children:"Nossos diferenciais foram desenvolvidos pensando nas necessidades reais dos clientes. Transformamos o mercado de confecção oferecendo um serviço transparente, tecnológico e com foco em resultados."})]})]})]})}function hDe(){const[e,t]=b.useState(null),r=b.useRef(null),n=Cd(r,{once:!1,amount:.3}),a=[{feature:"Prazo de entrega",icon:s.jsx(Ps,{className:"w-5 h-5"}),confecxpress:"7-20 dias (padrão), 48h (express)",confecxpressClass:"text-green-600 font-bold",confecxpressDetail:"Prazo padrão de 7-20 dias para pedidos normais. Oferecemos opção expressa com entrega em 48h para casos urgentes (mediante análise).",traditional:"30-45 dias",traditionalClass:"text-red-500",traditionalDetail
791:"Prazos de entrega longos e sem opções de entrega expressa, causando atrasos em momentos crÃticos."},{feature:"Acompanhamento do pedido",icon:s.jsx(Ty,{className:"w-5 h-5"}),confecxpress:"Tempo real via WhatsApp",confecxpressClass:"text-green-600 font-bold",confecxpressDetail:"Notificações automáticas via WhatsApp em cada etapa do processo. Você nunca ficará sem saber em que fase seu pedido está.",traditional:"Só quando solicitado",traditionalClass:"text-red-500",traditionalDetail:"Sem sistema de notificações automáticas. Cliente precisa entrar em contato para obter informações sobre o status."},{feature:"Garantia de entrega",icon:s.jsx(_d,{className:"w-5 h-5"}),confecxpress:"Contrato com multa por atraso",confecxpressClass:"text-green-600 font-bold",confecxpressDetail:"Nossos contratos incluem cláusula de multa por atraso, garantindo financeiramente nosso compromisso com prazos.",traditional:"Sem garantias formais",traditionalClass:"text-red-500",traditionalDetail:"Ausência de garantias contratuais sobre prazos, sem compensação em caso de atrasos na entrega."},{feature:"Automação e tecnologia",icon:s.jsx(kd,{className:"w-5 h-5"}),confecxpress:"Sistema próprio de automação",confecxpressClass:"text-green-600 font-bold",confecxpressDetail:"Sistema exclusivo desenvolvido para controlar todo o fluxo de produção e otimizar processos internos.",traditional:"Processos manuais",traditionalClass:"text-red-500",traditionalDetail:"Processos majoritariamente manuais, sujeitos a erros humanos e sem integração tecnológica."},{feature:"Tempo para orçamento",icon:s.jsx(oc,{className:"w-5 h-5"}),confecxpress:"Em até 30 minutos",confecxpressClass:"text-green-600 font-bold",confecxpressDetail:"Orçamentos rápidos enviados em até 30 minutos, permitindo decisões ágeis e fechamento de negócios no mesmo dia.",traditional:"24-48 horas",traditionalClass:"text-red-500",traditionalDetail:"Longos tempos de espera para recebimento de orçamentos, retardando decisões e planejamento."}];return s.jsxs("section",{className:"py-20 bg-gradient-to-b from-gray-50 to-white relative overflow-hidden",children:[s.jsx("div",{className:"absolute top-0 left-0 w-72 h-72 bg-primary/5 rounded-full -ml-36 -mt-36"}),s.jsx("div",{className:"absolute bottom-0 right-0 w-96 h-96 bg-primary/5 rounded-full -mr-48 -mb-48"}),s.jsxs("div",{className:"container mx-auto px-4 relative z-10",ref:r,children:[s.jsx(Xe.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6},children:s.jsx(wi,{title:"Por que somos",highlight:"diferentes",description:"Compare a ConfecXpress com outras confecções e veja por que estamos revolucionando o mercado",center:!0})}),s.jsxs(Xe.div,{initial:{opacity:0,y:40},animate:n?{opacity:1,y:0}:{},transition:{duration:.6,delay:.2},className:"mt-12 max-w-4xl mx-auto bg-white rounded-xl shadow-lg overflow-hidden",children:[s.jsx("div",{className:"bg-gradient-to-r from-primary to-primary/80 py-4 px-6 text-white",children:s.jsxs("div",{className:"flex items-center justify-center space-x-2",children:[s.jsx(MG,{className:"w-5 h-5"}),s.jsx("h3",{className:"text-xl font-bold",children:"Experimente a diferença ConfecXpress"})]})}),s.jsx("div",{className:"overflow-x-auto",children:s.jsxs("table",{className:"w-full",children:[s.jsx("thead",{children:s.jsxs("tr",{className:"bg-gray-50 border-b border-gray-200",children:[s.jsx("th",{className:"py-4 px-6 text-left",children:"CaracterÃsticas"}),s.jsx("th",{className:"py-4 px-6 text-center",children:"ConfecXpress"}),s.jsx("th",{className:"py-4 px-6 text-center",children:"Confecções Tradicionais"})]})}),s.jsx("tbody",{children:a.map((i,o)=>s.jsxs(_.Fragment,{children:[s.jsxs("tr",{className:`border-b border-gray-100 cursor-pointer transition-all ${e===o?"bg-primary/5":"hover:bg-gray-50"}`,onClick:()=>t(e===o?null:o),children:[s.jsx("td",{className:"py-4 px-6",children:s.jsxs("div",{className:"flex items-center",children:[s.jsx("div",{className:"bg-primary/10 text-primary p-2 rounded-full mr-3",children:i.icon}),s.jsx("span",{className:"font-medium",children:i.feature})]})}),s.jsx("td",{className:`py-4 px-6 text-center ${i.confecxpressClass}`,children:s.jsxs("div",{className:"flex flex-col items-center",children:[i.confecxpress,e!==o&&s.jsxs("div",{className:"text-xs text-primary/70 mt-1 flex items-center",children:[s.jsx(fS,{className:"w-3 h-3 mr-1"})," Clique para mais detalhes"]})]})}),s.jsx("td",{className:`py-4 px-6 text-center ${i.traditionalClass}`,children:i.traditional})]}),s.jsx(nc,{children:e===o&&s.jsx(Xe.tr,{initial:{opacity:0,height:0}
791,animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},transition:{duration:.3},className:"bg-gray-50",children:s.jsx("td",{colSpan:3,className:"py-4 px-6",children:s.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[s.jsxs("div",{className:"bg-white p-3 rounded-lg border-l-4 border-green-500 shadow-sm",children:[s.jsxs("h4",{className:"font-bold text-green-600 mb-1 flex items-center",children:[s.jsx(mn,{className:"w-4 h-4 mr-1"})," ConfecXpress"]}),s.jsx("p",{className:"text-sm text-gray-700",children:i.confecxpressDetail})]}),s.jsxs("div",{className:"bg-white p-3 rounded-lg border-l-4 border-red-400 shadow-sm",children:[s.jsx("h4",{className:"font-bold text-red-500 mb-1",children:"Confecções Tradicionais"}),s.jsx("p",{className:"text-sm text-gray-700",children:i.traditionalDetail})]})]})})})})]},o))})]})})]}),s.jsxs(Xe.div,{initial:{opacity:0,y:30},animate:n?{opacity:1,y:0}:{},transition:{duration:.6,delay:.6},className:"mt-12 text-center",children:[s.jsx(W,{asChild:!0,className:"bg-primary text-white hover:opacity-90 font-bold shadow-md hover:shadow-lg transition-all",children:s.jsxs("a",{href:"#formulario-orcamento",children:[s.jsx(mn,{className:"w-5 h-5 mr-2"}),"Experimentar a melhor opção"]})}),s.jsx("p",{className:"mt-4 text-gray-600 max-w-2xl mx-auto",children:"Estamos revolucionando o mercado de confecção com tecnologia, eficiência e compromisso com prazos. Faça seu orçamento e comprove a diferença!"})]})]})]})}const pDe="/assets/bordado-Bz9rqi57.png",gDe="/assets/serigrafia-B5J0fMO2.png",vDe="/assets/dtf_machine-DOiNLWAB.png",xDe="/assets/sublimacao_calandra-CdkDnaNO.png";function yDe(){const[e,t]=b.useState(0),r=b.useRef(null),n=b.useRef(null),a=Cd(r,{once:!0,amount:.2});Cd(n,{once:!0,amount:.1});const[i,o]=b.useState(null),l=[{title:"Camisetas",color:"from-blue-500 to-blue-600",products:[{name:"Camiseta 100% Algodão Penteado Premium",description:"Tecido macio e resistente, ideal para uso diário",icon:"ð"},{name:"Camiseta Malha Peruana com Elastano",description:"Conforto e caimento perfeito, elasticidade superior",icon:"ð"},{name:"Camiseta Dry-Fit",description:"Tecnologia de secagem rápida, ideal para esportes e atividades",icon:"ð"},{name:"Camiseta em Malha Fria",description:"Conforto térmico, perfeita para dias quentes",icon:"ð"},{name:"Camiseta em Modal",description:"Tecido premium que não amassa, secagem rápida e toque ultrasuave",icon:"ð"}]},{title:"Polos",color:"from-emerald-500 to-emerald-600",products:[{name:"Polo 100% Algodão Malha Pima",description:"Algodão premium peruano, toque extra macio",icon:"ð"},{name:"Polo 100% Poliéster Dry-Fit",description:"Tecnologia de secagem rápida, ideal para esportes",icon:"ð"},{name:"Polo em Malha Fria",description:"Conforto térmico, perfeita para dias quentes",icon:"ð"},{name:"Polo Piquet 50% Algodão 50% Poliéster",description:"EquilÃbrio entre conforto e durabilidade",icon:"ð"},{name:"Polo em Modal",description:"Tecido premium que não amassa, secagem rápida e toque ultrasuave",icon:"ð"}]},{title:"Moletons",color:"from-purple-500 to-purple-600",products:[{name:"Moletom Canguru",description:"Clássico com bolso frontal e capuz",icon:"ð§¥"},{name:"Moletom Gola Careca",description:"Visual limpo e elegante, sem capuz",icon:"ð§¥"},{name:"Moletom com ZÃper",description:"Praticidade com abertura frontal completa",icon:"ð§¥"}]},{title:"Casacos",color:"from-cyan-500 to-cyan-600",products:[{name:"Corta Vento",description:"Leve, impermeável e resistente ao vento",icon:"ð§¥"}]},{title:"Uniformes Profissionais",color:"from-orange-500 to-orange-600",products:[{name:"Uniforme com Faixa Refletiva",description:"Segurança para mão de obra, visibilidade noturna",icon:"ð¦º"},{name:"Uniforme em Brim",description:"Tecido resistente para trabalho pesado",icon:"ð·"},{name:"Camisa Social",description:"Elegância corporativa com personalização discreta",icon:"ð"}]},{title:"Outros Produtos",color:"from-rose-500 to-rose-600",products:[{name:"Cropped",description:"Modelo feminino moderno e estiloso",icon:"ð"},{name:"Calça Moletom",description:"Conforto para uniformes ou conjuntos",icon:"ð"},{name:"Sacolas Ecobag",description:"Sustentáveis e personalizáveis para eventos",icon:"ð"}]}],c=[{icon:s.jsx(nG,{className:"w-6 h-6"}),title:"Silk (Serigrafia)",description:"Técnica tradicional com excelente durabilidade e cores vibrantes, ideal para grandes quantidades.",color:"from-orange-500 to-orange-600",image:gDe},{icon:s.jsx(Wu,{className:"w-6 h-6"}),title:"DTF (Direct to Film)",description:"Técnica moderna com alta definição e c
791ores vibrantes, ideal para designs complexos.",color:"from-cyan-500 to-cyan-600",image:vDe},{icon:s.jsx(_G,{className:"w-6 h-6"}),title:"Bordado",description:"Acabamento elegante e profissional, com alta durabilidade, ideal para uniformes corporativos.",color:"from-indigo-500 to-indigo-600",image:pDe},{icon:s.jsx(PG,{className:"w-6 h-6"}),title:"Sublimação",description:"Perfeita para estampas fotográficas e coloridas em tecidos claros com poliéster.",color:"from-rose-500 to-rose-600",image:xDe}];return s.jsxs("section",{id:"produtos",className:"py-20 bg-gradient-to-b from-white to-gray-50 relative overflow-hidden",children:[s.jsx("div",{className:"absolute top-40 right-0 w-64 h-64 bg-primary/5 rounded-full -mr-32"}),s.jsx("div",{className:"absolute bottom-40 left-0 w-80 h-80 bg-primary/5 rounded-full -ml-40"}),s.jsxs("div",{className:"container mx-auto px-4 relative z-10",ref:r,children:[s.jsx(Xe.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6},children:s.jsx(wi,{title:"O que",highlight:"produzimos",description:"Produtos de alta qualidade com as melhores técnicas e materiais do mercado",center:!0})}),s.jsx("div",{className:"mt-12 mb-16",children:s.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6",children:[s.jsxs(Xe.div,{initial:{opacity:0,y:20},animate:a?{opacity:1,y:0}:{},transition:{delay:.1},className:"bg-white rounded-xl p-6 shadow-md flex items-center",children:[s.jsx("div",{className:"w-14 h-14 bg-gradient-to-r from-primary to-primary-dark rounded-full flex items-center justify-center text-white mr-4 shrink-0",children:s.jsx(_d,{className:"w-7 h-7"})}),s.jsxs("div",{children:[s.jsx("h4",{className:"font-bold text-lg",children:"Qualidade Premium"}),s.jsx("p",{className:"text-gray-600 text-sm",children:"Materiais de alta qualidade em todos os produtos"})]})]}),s.jsxs(Xe.div,{initial:{opacity:0,y:20},animate:a?{opacity:1,y:0}:{},transition:{delay:.2},className:"bg-white rounded-xl p-6 shadow-md flex items-center",children:[s.jsx("div",{className:"w-14 h-14 bg-gradient-to-r from-emerald-500 to-emerald-600 rounded-full flex items-center justify-center text-white mr-4 shrink-0",children:s.jsx(kd,{className:"w-7 h-7"})}),s.jsxs("div",{children:[s.jsx("h4",{className:"font-bold text-lg",children:"Produção Rápida"}),s.jsx("p",{className:"text-gray-600 text-sm",children:"Entrega expressa em até 48 horas"})]})]}),s.jsxs(Xe.div,{initial:{opacity:0,y:20},animate:a?{opacity:1,y:0}:{},transition:{delay:.3},className:"bg-white rounded-xl p-6 shadow-md flex items-center",children:[s.jsx("div",{className:"w-14 h-14 bg-gradient-to-r from-amber-500 to-amber-600 rounded-full flex items-center justify-center text-white mr-4 shrink-0",children:s.jsx(Uu,{className:"w-7 h-7"})}),s.jsxs("div",{children:[s.jsx("h4",{className:"font-bold text-lg",children:"Sem Quantidade MÃnima"}),s.jsx("p",{className:"text-gray-600 text-sm",children:"Quanto mais peças, menor o valor unitário"})]})]})]})}),s.jsxs("div",{className:"mt-8 relative",children:[s.jsx("div",{className:"flex flex-wrap items-center justify-center gap-2 mb-8",children:l.map((u,d)=>s.jsx(Xe.button,{onClick:()=>t(d),className:`px-4 py-2 rounded-full font-medium transition-all text-sm md:text-base ${e===d?`bg-gradient-to-r ${u.color} text-white shadow-md`:"bg-white text-gray-700 hover:bg-gray-100 border border-gray-200"}`,whileHover:{scale:1.03},whileTap:{scale:.98},children:u.title},d))}),s.jsx(nc,{mode:"wait",children:s.jsxs(Xe.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},exit:{opacity:0,y:-20},transition:{duration:.4},className:"bg-white rounded-xl shadow-lg overflow-hidden p-6 md:p-8",children:[s.jsxs("div",{className:"flex items-center mb-6",children:[s.jsx("div",{className:`w-10 h-10 rounded-full bg-gradient-to-r ${l[e].color} flex items-center justify-center text-white mr-3`,children:s.jsx(Wu,{className:"w-5 h-5"})}),s.jsx("h3",{className:"text-2xl font-bold",children:l[e].title})]}),s.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:l[e].products.map((u,d)=>s.jsxs(Xe.div,{initial:{opacity:0,scale:.95}
791,animate:{opacity:1,scale:1},transition:{delay:d*.1},className:"bg-gray-50 rounded-lg p-5 hover:shadow-md transition-all border border-gray-100",children:[s.jsxs("div",{className:"flex items-start",children:[s.jsx("span",{className:"text-3xl mr-3",children:u.icon}),s.jsxs("div",{className:"flex-1",children:[s.jsx("h4",{className:"font-bold text-gray-800 mb-1",children:u.name}),s.jsx("p",{className:"text-gray-600 text-sm",children:u.description})]})]}),s.jsxs("div",{className:"mt-3 flex items-center text-xs text-gray-500",children:[s.jsx(mn,{className:"w-4 h-4 text-green-500 mr-1"}),s.jsx("span",{children:"Personalizável ⢠Qualidade premium"})]})]},d))}),s.jsx("div",{className:"mt-8 text-center",children:s.jsx(W,{asChild:!0,size:"lg",className:`bg-gradient-to-r ${l[e].color} text-white hover:opacity-90 font-bold`,children:s.jsxs("a",{href:`https://wa.me/${Fa}?text=Olá,%20estou%20interessado%20em%20solicitar%20um%20orçamento%20para%20${encodeURIComponent(l[e].title)}%20personalizados.%20Podem%20me%20ajudar?`,target:"_blank",rel:"noopener noreferrer",children:[s.jsx(ba,{className:"w-5 h-5 mr-2"}),"Solicitar orçamento de ",l[e].title]})})})]},e)})]}),s.jsxs(Xe.div,{ref:n,initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.6,delay:.3},className:"mt-20 block w-full",children:[s.jsxs("div",{className:"text-center mb-10",children:[s.jsx("h3",{className:"text-2xl font-bold",children:"Técnicas de personalização"}),s.jsx("p",{className:"text-gray-600 mt-2",children:"Escolha a melhor técnica para o seu projeto"})]}),s.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4 sm:gap-6",children:c.map((u,d)=>s.jsxs(Xe.div,{className:"bg-white rounded-xl shadow-md overflow-hidden transition-all duration-300 hover:shadow-lg cursor-pointer",onClick:()=>o(i===d?null:d),whileHover:{y:-5},children:[s.jsx("div",{className:`h-2 bg-gradient-to-r ${u.color}`}),s.jsxs("div",{className:"relative",children:[s.jsx("div",{className:"h-48 sm:h-64 overflow-hidden flex items-center justify-center bg-gray-50",children:s.jsx("img",{src:u.image,alt:`Técnica de personalização ${u.title}`,className:`w-full h-full ${d===0||d===2?"object-cover":"object-contain"} transition-transform duration-500 hover:scale-105`,loading:"lazy",width:"300",height:"300",style:{objectPosition:d===0?"center bottom":d===2?"center 40%":"center center"}})}),s.jsx("div",{className:"absolute bottom-0 left-0 right-0 h-16 bg-gradient-to-t from-black/70 to-transparent"}),s.jsx("div",{className:"absolute bottom-3 left-4 right-4 text-white",children:s.jsx("h4",{className:"text-lg font-bold drop-shadow-md",children:u.title})})]}),s.jsxs("div",{className:"p-4 sm:p-6",children:[s.jsxs("div",{className:"flex items-center mb-3",children:[s.jsx("div",{className:`w-10 h-10 sm:w-12 sm:h-12 flex items-center justify-center rounded-full bg-gradient-to-br ${u.color} text-white mr-3 sm:mr-4 shrink-0`,children:u.icon}),s.jsxs("div",{children:[s.jsx("h4",{className:"text-base sm:text-lg font-bold",children:u.title}),s.jsx("div",{className:"text-xs sm:text-sm text-gray-500",children:d===0?"Para grandes volumes":d===1?"Alta definição":d===2?"Acabamento premium":"Cores vibrantes"})]})]}),s.jsx(nc,{children:i===d?s.jsxs(Xe.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},transition:{duration:.3},className:"overflow-hidden",children:[s.jsx("p",{className:"text-gray-600 text-sm sm:text-base mb-3",children:u.description}),s.jsxs("div",{className:"flex items-center text-primary text-xs sm:text-sm font-medium",children:[s.jsx(hn,{className:"w-4 h-4 mr-1"}),s.jsxs("span",{children:["Ideal para ",d===0?"camisetas e uniformes":d===1?"designs detalhados":d===2?"produtos premium":"tecidos sintéticos"]})]})]}):s.jsxs(Xe.div,{initial:{opacity:1},animate:{opacity:1},exit:{opacity:0},className:"flex items-center text-primary/80 text-sm mt-3",children:[s.jsx("span",{className:"mr-1",children:"Ver mais detalhes"}),s.jsx(cS,{className:"w-3 h-3"})]})})]})]},d))})]})]})]})}const bDe=[{title:"Camisetas",description:"Nossas camisetas são produzidas com tecidos de alta qualidade e oferecem várias opções de personalização, garantindo conforto e durabilidade.",features:["Malhas premium de alta durabilidade","Técnicas: silk, DTF, sublimação","Modelos básicos e premium"],icon:"ð"},{title:"Polos",description:"Polos profissionais para uniformes corporativos, com opções de personalização discretas e sofisticadas.",features:["Tecidos piquet e dry-fit","Bordado de alta precisão","Ideal para empresas e equipes"],icon:"ð"},{title:"Moletons",description:"Moletons confortáveis para eventos, empresas e escolas, com opções de personalização exclusivas.",features:["Tipos: canguru, careca e com zÃper","Materiais premium e confortáveis","Alta durabilidade nas lavagens"],icon:"ð§¥"}];function jDe(){return s.jsx("section",{className:"py-16 bg-gray-50",children:s.jsxs("div",{className:"container mx-auto px-4",children:[s.jsxs("div",{className:"text-center mb-12",children:[s.jsx("h2",{className:"text-3xl font-bold mb-4",children:"Linha de Produtos"}),s.jsx("p",{className:"text-gray-600 max-w-2xl mx-auto",children:"Confira nossa linha completa de produtos personalizáveis para sua empresa ou evento"})]}),s.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-8",children:bDe.map((e,t)=>s.jsx(Xe.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.5,delay:t*.1},viewport:{once:!0},className:"bg-white rounded-lg shadow-md overflow-hidden",children:s.jsxs("div",{className:"p-6",children:[s.jsxs("div",{className:"flex items-center mb-4",children:[s.jsx("div",{className:"text-3xl mr-3",children:e.icon}),s.jsx("h3",{className:"text-xl font-bold text-blue-500",children:e.title})]}),s.jsx("p",{className:"text-gray-600 mb-6",children:e.description}),s.jsx("div",{className:"space-y-3 mb-6",children:e.features.map((r,n)=>s.jsxs("div",{className:"flex items-center",children:[s.jsx("div",{className:"w-6 h-6 rounded-full bg-blue-100 flex items-center justify-center text-blue-600 mr-3 shrink-0",children:s.jsx(mn,{className:"w-4 h-4"})}),s.jsx("span",{className:"text-gray-700 text-sm",children:r})]},n))}),s.jsx("a",{href:`https://wa.me/551151976208?text=Olá,%20estou%20interessado%20em%20solicitar%20um%20orçamento%20para%20uniformes%20personalizados%20-%20${e.title}.%20Podem%20me%20ajudar?`,target:"_blank",rel:"noopener noreferrer",className:"block w-full text-center bg-blue-500 hover:bg-blue-600 text-white py-2.5 px-4 roun
791ded-lg font-medium transition-colors duration-200",children:"Solicitar orçamento"})]})},t))})]})})}function wDe(){const e=[{content:"Precisávamos com urgência de 100 polos personalizadas para um evento corporativo da empresa em apenas 3 dias. A ConfecXpress não só entregou todas as peças dentro do prazo, como o acabamento estava impecável. O sistema de acompanhamento em tempo real foi crucial, pois pude acompanhar cada etapa da produção. As notificações por WhatsApp foram super úteis, e o valor pago certamente valeu cada centavo. Recomendo demais!",author:"Lucas Gomes",role:"Gerente de Marketing",company:"Serasa Experian",avatar:"https://randomuser.me/api/portraits/men/32.jpg",project:"100 polos corporativas com bordado",date:"15/04/2025",rating:5,verifiedPurchase:!0,highlights:{deliveryTime:"Entrega em 3 dias",quality:"Bordado impecável",highlight:"Acompanhamento em tempo real"}},{content:"Organizei um congresso médico com 300 participantes e precisava de camisetas personalizadas. Já tive muitas experiências ruins com confecções, mas a ConfecXpress realmente revolucionou o mercado. Recebi atualizações por WhatsApp a cada fase do processo, incluindo fotos da produção. As peças chegaram na data prometida, bem embaladas e com cores fiéis ao que aprovei. O atendimento foi atencioso desde o orçamento até a entrega. Foi um alÃvio ter encontrado uma confecção que preza pela organização e transparência.",author:"Bruna Rodrigues",role:"Coordenadora de Eventos",company:"Hospital Albert Einstein",avatar:"https://randomuser.me/api/portraits/women/65.jpg",project:"300 camisetas para congresso médico",date:"22/03/2025",rating:5,verifiedPurchase:!0,highlights:{deliveryTime:"Entrega pontual",quality:"Cores fiéis ao aprovado",highlight:"Fotos do processo de produção"}},{content:"Nossa empresa precisava de moletons personalizados para a equipe e o prazo era apertado. O que mais me impressionou na ConfecXpress foi o sistema de automação que permitiu acompanhar cada etapa da produção. Recebi notificações detalhadas sobre aprovação da arte, inÃcio da produção e previsão exata de entrega. Os moletons chegaram antes do prazo combinado, e a qualidade do bordado e da malha superou nossas expectativas. O sistema de multa por atraso mostra o comprometimento da empresa. Definitivamente, usaremos novamente!",author:"Carlos Mendes",role:"Diretor de Operações",company:"Nubank",avatar:"https://randomuser.me/api/portraits/men/75.jpg",project:"50 moletons para equipe de tecnologia",date:"05/04/2025",rating:5,verifiedPurchase:!0,highlights:{deliveryTime:"Entrega antecipada",quality:"Malha de excelente qualidade",highlight:"Notificações detalhadas"}},{content:"Encomendamos camisetas personalizadas para nossa equipe de corrida. Foi incrÃvel ver como a tecnologia pode transformar a experiência com uma confecção. Desde o orçamento até a entrega, tudo foi digital e eficiente. O aplicativo de acompanhamento é simplesmente revolucionário - pude ver exatamente em qual etapa meu pedido estava e receber estimativas precisas. A entrega premium em ${DELIVERY_TIME} fez toda diferença para nosso evento. As camisetas ficaram perfeitas, com tecido respirável de alta qualidade e estampas duráveis mesmo após várias lavagens.",author:"Marina Costa",role:"Diretora Esportiva",company:"Academia SmartFit",avatar:"https://randomuser.me/api/portraits/women/42.jpg",project:"75 camisetas para equipe de corrida",date:"10/03/2025",rating:5,verifiedPurchase:!0,highlights:{deliveryTime:`Entrega premium em ${EOe}`,quality:"Estampas duráveis",highlight:"Tecido respirável para esporte"}},{content:"Precisávamos de uniformes para nossa rede de restaurantes com urgência após um problema com nosso fornecedor habitual. A ConfecXpress salvou nossa operação com uma entrega express impressionante. O diferencial foi o serviço de acompanhamento em tempo real e as atualizações por WhatsApp - algo que nunca vi em outras confecções. A qualidade das golas polo superou todas as expectativas, com acabamento profissional e tecido que não desbota mesmo após diversas lavagens. O processo de aprovação digital da arte foi rápido e intuitivo. Estamos muito satisfeitos!",author:"Paulo Oliveira",role:"Gerente Operacional",company:"Grupo Madero",avatar:"https://randomuser.me/api/portraits/men/22.jpg",project:"
791150 uniformes para rede de restaurantes",date:"28/02/2025",rating:5,verifiedPurchase:!0,highlights:{deliveryTime:"Entrega express",quality:"Tecido que não desbota",highlight:"Aprovação digital da arte"}}],[t,r]=b.useState(0),n=b.useRef(null),a=i=>{if(r(i),n.current){const o=n.current.clientWidth;n.current.scrollTo({left:o*i,behavior:"smooth"})}};return b.useEffect(()=>{const i=setInterval(()=>{const o=(t+1)%e.length;a(o)},8e3);return()=>clearInterval(i)},[t,e.length]),s.jsx("section",{id:"depoimentos",className:"py-20 bg-gradient-to-b from-gray-50 to-white",children:s.jsxs("div",{className:"container mx-auto px-4",children:[s.jsx(wi,{title:"O que nossos",highlight:"clientes",description:"dizem",center:!0}),s.jsx("div",{className:"mt-4 mb-12 text-center max-w-2xl mx-auto",children:s.jsx("p",{className:"text-gray-600",children:"Veja depoimentos reais de clientes que já utilizaram nossos serviços e transformaram suas ideias em produtos de qualidade."})}),s.jsxs("div",{className:"relative mt-12",children:[s.jsxs("div",{className:"hidden md:block",children:[s.jsx("button",{onClick:()=>a((t-1+e.length)%e.length),className:"absolute left-0 top-1/2 -translate-y-1/2 -ml-4 z-10 bg-white rounded-full shadow-lg p-3 hover:bg-gray-100 transition-colors","aria-label":"Depoimento anterior",children:s.jsx("svg",{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",children:s.jsx("path",{d:"M15 18l-6-6 6-6"})})}),s.jsx("button",{onClick:()=>a((t+1)%e.length),className:"absolute right-0 top-1/2 -translate-y-1/2 -mr-4 z-10 bg-white rounded-full shadow-lg p-3 hover:bg-gray-100 transition-colors","aria-label":"Próximo depoimento",children:s.jsx("svg",{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",children:s.jsx("path",{d:"M9 18l6-6-6-6"})})})]}),s.jsx("div",{className:"overflow-hidden rounded-xl",children:s.jsx("div",{ref:n,className:"flex overflow-x-hidden snap-mandatory snap-x",children:e.map((i,o)=>s.jsx("div",{className:"w-full flex-shrink-0 snap-center",children:s.jsx("div",{className:"bg-white rounded-xl shadow-xl overflow-hidden border border-gray-100",children:s.jsxs("div",{className:"flex flex-col md:flex-row",children:[s.jsxs("div",{className:"w-full md:w-1/3 bg-gradient-to-br from-blue-900 to-primary p-6 text-white flex flex-col",children:[s.jsxs("div",{className:"mb-4 relative",children:[s.jsx(AG,{className:"absolute -top-2 -left-2 text-white/20 w-8 h-8"}),s.jsx("div",{className:"flex -space-x-1",children:[...Array(i.rating)].map((l,c)=>s.jsx(io,{className:"w-6 h-6 fill-amber-400 text-amber-400"},c))})]}),s.jsxs("div",{className:"flex items-center mb-4",children:[s.jsx("div",{className:"mr-3",children:s.jsx("img",{src:i.avatar,alt:i.author,className:"w-16 h-16 object-cover rounded-full border-2 border-white"})}),s.jsxs("div",{children:[s.jsx("h4",{className:"font-bold text-lg",children:i.author}),s.jsx("p",{className:"text-blue-100 text-sm",children:i.role}),s.jsx("p",{className:"text-blue-200 text-xs",children:i.company})]})]}),s.jsxs("div",{className:"mt-auto space-y-3",children:[s.jsxs("div",{className:"flex items-center text-sm",children:[s.jsx(Ey,{className:"w-4 h-4 mr-2 text-blue-300"}),s.jsxs("span",{children:["Data: ",i.date]})]}),s.jsxs("div",{className:"flex items-center text-sm",children:[s.jsx(_d,{className:"w-4 h-4 mr-2 text-blue-300"}),s.jsxs("span",{children:["Projeto: ",i.project]})]}),i.verifiedPurchase&&s.jsx("div",{className:"flex items-center mt-2",children:s.jsxs(Ue,{className:"bg-green-600 text-white hover:bg-green-700",children:[s.jsx(Vl,{className:"w-3 h-3 mr-1"}),"Compra verificada"]})})]})]}),s.jsx("div",{className:"w-full md:w-2/3 p-6 md:p-8",children:s.jsxs("div",{className:"mb-6",children:[i.highlights&&s.jsxs("div",{className:"flex flex-wrap gap-2 mb-4",children:[i.highlights.deliveryTime&&s.jsxs(Ue,{variant:"outline",className:"bg-blue-50 text-blue-600 border-blue-200",children:["â¡ ",i.highlights.deliveryTime]}),i.highlights.quality&&s.jsxs(Ue,{variant:"outline",className:"bg-green-50 text-green-600 border-green-200",children:["⨠",i.highlights.quality]}),i.highlights.highlight&&s.jsxs(Ue,{variant:"outline",className:"bg-amber-50 text-amber-600 border-amber-200",children:["ð ",i.highlights.highlight]})]}),s.jsx("p",{className:"text-gray-700 leading-relaxed",children:i.content})]})})]})})},o))})}),s.jsx("div",{className:"flex justify-center mt-8 gap-2",children:e.map((i,o)=>s.jsx("button",{className:ie("w-3 h-3 rounded-full transition-all",o===t?"bg-primary w-8":"bg-gray-300 opacity-50 hover:opacity-75"),onClick:()=>a(o),"aria-label":`Depoimento ${o+1}`},o))})]})]})})}const NDe="/assets/serasa-experian-CaM-4zUu.png",SDe="/assets/serasa-experian2-BjtqI-x1.png",PDe="/assets/hospital-einstein-BcuEfxDb.png",AD="/assets/grupo-madero-Bq3ThoO3.png",CDe="/assets/smartfit-D_3wayS6.png",ADe="/assets/nubank-rS84J67k.png",TDe="/assets/serasa-DLUNQJRu.png",EDe="/assets/einstein-C06xSrFY.png",ODe="/assets/nubank-D1iQXg4l.png",_De="/assets/smartfit-C_CiW2vv.png",kDe="/assets/madero-DiAUDKNq.png";function MDe(){b.useState(0);const[e,t]=b.useState("all"),r=[{name:"Serasa Experian",logoUrl:TDe,color:"bg-blue-50"},{name:"Hospital Albert Einstein",logoUrl:EDe,color:"bg-green-50"},{name:"Nubank",logoUrl:ODe,color:"bg-purple-50"},{name:"SmartFit",logoUrl:_De,color:"bg-orange-50"},{name:"Grupo Madero",logoUrl:kDe,color:"bg-red-50"}],n=[{id:"1",imageUrl:NDe,title:"Uniformes para equipe de atendimento",description:"Camisetas polo personalizadas com bordado para equipe de atendimento ao cliente. Design exclusivo desenvolvido pela ConfecXpress.",client:"Serasa Experian",category:"polos",quantity:"500 unidades",year:"2023"},{id:"2",imageUrl:SDe,title:"Polos para time comercial",description:"Polos em tecido premium com bordado em alta definição. Uniform oficial da equipe comercial com tratamento antimanchas e maior durabilidade.",client:"Serasa Experian",category:"polos",quantity:"350 unidades",year:"2023"},{id:"3",imageUrl:PDe,title:"Camisetas para equipe hospitalar",description:"Camisetas 100% algodão com estampa em DTF para equipe do Hospital Albert Einstein. Alta durabilidade e conforto para os profissionais de saúde.",client:"Hospital Albert Einstein",category:"camisetas",quantity:"1200 unidades",year:"2023"},{id:"4",imageUrl:CDe,title:"Camisetas para eventos esportivos",description:"Camisetas esportivas com tecnologia dry-fit para maratonas e competições. Estampas em serigrafia com alta durabilidade e resistência ao suor.",client:"SmartFit",category:"camisetas",quantity:"2500 unidades",year:"2023"},{id:"5",imageUrl:ADe,title:"Moletons para time de tecnologia",description:"Moletons premium com personalização em silk e acabamento especial. Design moderno e confortável para equipe de desenvolvedores.",client:"Nubank",category:"moletons",quantity:"350 unidades",year:"2024"},{id:"6",imageUrl:AD,title:"Uniformes para rede de restaurantes",description:"Polos elegantes e confortáveis para equipe de gerência da rede de restaurantes. Bordado de alta qualidade e tecido com tecnologia anti-odor.",client:"Grupo Madero",category:"polos",quantity:"250 unidades",year:"2024"},{id:"7",imageUrl:AD,title:"Polos para equipe administrativa",description:"Conjunto completo de polos para equipes administrativas. Tecidos de alta qualidade com tratamento antimanchas e bordado premium.",client:"Grupo Madero",category:"uniformes",quantity:"750 unidades",year:"2024"}],a=e==="all"?n:n.filter(i=>i.category===e);return s.jsx("section",{id:"clientes",className:"py-20 bg-white",children:s.jsxs("div",{className:"container mx-auto px-4",children:[s.jsx(wi,{title:"Nossos",highlight:"clientes",description:"Empresas que confiam na ConfecXpress",center:!0}),s.jsx("div",{className:"mt-12 mb-16",children:s.jsx("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-5 ga
791p-8",children:r.map((i,o)=>s.jsx("div",{className:`flex items-center justify-center p-6 rounded-lg ${i.color} hover:shadow-md transition-all`,children:s.jsx("img",{src:i.logoUrl,alt:i.name,className:"h-12 md:h-16 object-contain"})},o))})}),s.jsx("div",{className:"w-full max-w-5xl mx-auto border-t border-gray-200 my-16"}),s.jsxs("div",{className:"mt-12",children:[s.jsx(wi,{title:"Nosso",highlight:"portfólio",description:"Conheça alguns dos nossos trabalhos",center:!0}),s.jsx("div",{className:"mt-10",children:s.jsxs(ql,{defaultValue:"all",onValueChange:t,className:"w-full",children:[s.jsx("div",{className:"flex justify-center mb-10",children:s.jsxs(Ao,{className:"bg-gray-100",children:[s.jsx(vt,{value:"all",className:"text-sm",children:"Todos"}),s.jsx(vt,{value:"camisetas",className:"text-sm",children:"Camisetas"}),s.jsx(vt,{value:"polos",className:"text-sm",children:"Polos"}),s.jsx(vt,{value:"moletons",className:"text-sm",children:"Moletons"}),s.jsx(vt,{value:"uniformes",className:"text-sm",children:"Uniformes"})]})}),s.jsx(xt,{value:"all",className:"mt-0",children:s.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-6",children:a.map((i,o)=>s.jsx(_f,{item:i,index:o},i.id))})}),s.jsx(xt,{value:"camisetas",className:"mt-0",children:s.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-6",children:a.map((i,o)=>s.jsx(_f,{item:i,index:o},i.id))})}),s.jsx(xt,{value:"polos",className:"mt-0",children:s.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-6",children:a.map((i,o)=>s.jsx(_f,{item:i,index:o},i.id))})}),s.jsx(xt,{value:"moletons",className:"mt-0",children:s.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-6",children:a.map((i,o)=>s.jsx(_f,{item:i,index:o},i.id))})}),s.jsx(xt,{value:"uniformes",className:"mt-0",children:s.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-6",children:a.map((i,o)=>s.jsx(_f,{item:i,index:o},i.id))})})]})})]})]})})}function _f({item:e,index:t}){return s.jsxs(Ct,{children:[s.jsx(Xc,{asChild:!0,children:s.jsxs("div",{className:"group rounded-2xl shadow-md bg-white hover:shadow-xl transition-all duration-300 cursor-pointer overflow-hidden border border-gray-100",children:[s.jsxs("div",{className:"relative overflow-hidden h-72",children:[s.jsx("img",{src:e.imageUrl,alt:e.title,className:`w-full h-full ${e.category==="camisetas"||e.category==="moletons"?"object-cover object-center":"object-cover"} transition-transform duration-500 group-hover:scale-110`,style:{objectPosition:(e.client==="SmartFit"||e.client==="Nubank","center center")}}),s.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/80 via-black/40 to-transparent opacity-0 group-hover:opacity-100 transition-opacity duration-300 flex items-center justify-center",children:s.jsx("div",{className:"bg-white/90 backdrop-blur-sm rounded-full p-4 opacity-0 group-hover:opacity-100 transform scale-50 group-hover:scale-100 transition-all duration-300",children:s.jsx($G,{className:"w-6 h-6 text-primary"})})}),s.jsx("div",{className:"absolute top-4 left-4 bg-white/90 backdrop-blur-sm rounded-full py-1 px-3 shadow-md",children:s.jsx("span",{className:"text-xs font-medium text-primary capitalize",children:e.category})}),e.quantity&&s.jsx("div",{className:"absolute top-4 right-4 bg-primary/90 backdrop-blur-sm rounded-full py-1 px-3 shadow-md",children:s.jsx("span",{className:"text-xs font-medium text-white",children:e.quantity.split(" ")[0]})}),s.jsxs("div",{className:"absolute left-0 bottom-0 w-full bg-gradient-to-t from-black/90 to-transparent py-4 px-5",children:[s.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[s.jsx("span",{className:"w-2 h-2 rounded-full bg-primary"}),s.jsx("p",{className:"text-white text-xs font-medium",children:e.client})]}),s.jsx("h3",{className:"text-white font-bold text-lg leading-tight",children:e.title})]})]}),s.jsxs("div",{className:"p-5",children:[s.jsx("p",{className:"text-gray-600 text-sm line-clamp-2 mb-4",children:e.description}),s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx("div",{className:"bg-gray-100 rounded-md p-1",children:s.jsx("span",{className:"text-xs font-medium text-gray-500",children:e.year||"2023"})}),s.jsx("div",{className:"bg-primary/10 rounded-md p-1",children:s.jsx("span",{className:"text-xs font-medium text-primary",children:"48h"})})]}),s.jsxs("button",{className:"text-primary hover:text-primary-dark text-sm font-medium flex items-center",children:["Ver detalhes",s.jsx(km,{className:"w-4 h-4 ml-1"})]})]})]})]})}),s.jsx(Bt,{className:"max-w-4xl p-0 overflow-hidden bg-white",children:s.jsxs("div",{className:"flex flex-col md:flex-row",children:[s.jsxs("div",{className:"w-full md:w-2/3 relative",children:[s.jsx("img",{src:e.imageUrl,alt:e.title,className:`w-full h-full ${e.category==="camisetas"||e.category==="moletons"?"object-cover object-center":"object-cover"}`,style:{objectPosition:(e.client==="SmartFit"||e.client==="Nubank","center center")}}),s.jsxs("div",{className:"absolute left-0 bottom-0 bg-gradient-to-t from-black/70 to-transparent w-full py-4 px-6",children:[s.jsx("h3",{className:"text-white font-bold text-xl md:hidden",children:e.title}),s.jsxs("p",{className:"text-gray-200 text-sm md:hidden mt-1",children:["Cliente: ",e.client]})]})]}),s.jsxs("div",{className:"w-full md:w-1/3 p-6",children:[s.jsx("h3",{className:"text-2xl font-bold text-gray-800 mb
791-2 hidden md:block",children:e.title}),s.jsx("p",{className:"text-gray-600 mb-4",children:e.description}),s.jsxs("div",{className:"space-y-4 mb-6",children:[s.jsxs("div",{className:"flex items-center rounded-lg bg-gray-50 p-3",children:[s.jsx("div",{className:"flex-shrink-0 mr-3 bg-primary/20 rounded-full p-2",children:s.jsx("span",{className:"text-primary text-lg font-semibold",children:e.client.charAt(0)})}),s.jsxs("div",{children:[s.jsx("p",{className:"text-gray-500 text-sm font-medium",children:"Cliente"}),s.jsx("p",{className:"text-gray-900 font-medium",children:e.client})]})]}),s.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[s.jsxs("div",{className:"bg-gray-50 p-3 rounded-lg",children:[s.jsx("p",{className:"text-gray-500 text-sm font-medium",children:"Categoria"}),s.jsx("p",{className:"text-gray-900 font-medium capitalize",children:e.category})]}),e.quantity&&s.jsxs("div",{className:"bg-gray-50 p-3 rounded-lg",children:[s.jsx("p",{className:"text-gray-500 text-sm font-medium",children:"Quantidade"}),s.jsx("p",{className:"text-gray-900 font-medium",children:e.quantity})]})]}),s.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[e.year&&s.jsxs("div",{className:"bg-gray-50 p-3 rounded-lg",children:[s.jsx("p",{className:"text-gray-500 text-sm font-medium",children:"Ano"}),s.jsx("p",{className:"text-gray-900 font-medium",children:e.year})]}),s.jsxs("div",{className:"bg-gray-50 p-3 rounded-lg",children:[s.jsx("p",{className:"text-gray-500 text-sm font-medium",children:"Prazo de entrega"}),s.jsx("p",{className:"text-gray-900 font-medium",children:"48 horas"})]})]})]}),s.jsxs("div",{className:"mt-6 flex flex-col space-y-3",children:[s.jsxs("a",{href:"https://wa.me/551151976208?text=Olá,%20estou%20interessado%20em%20solicitar%20um%20orçamento%20similar%20aos%20projetos%20que%20vi%20no%20portfólio.%20Podem%20me%20ajudar?",target:"_blank",rel:"noopener noreferrer",className:"w-full bg-primary hover:bg-primary-dark text-white font-medium py-3 px-4 rounded-lg transition-colors flex items-center justify-center",children:[s.jsx("span",{children:"Solicitar orçamento similar"}),s.jsx(un,{className:"ml-2 w-4 h-4"})]}),s.jsx("button",{className:"w-full bg-white border border-gray-300 hover:bg-gray-50 text-gray-800 font-medium py-3 px-4 rounded-lg transition-colors",children:"Ver mais projetos desta categoria"})]})]})]})})]})}const DDe="/assets/dtf-printer-premium-Dl8aVYzX.png",RDe="/assets/dtf-quality-closeup-DUyckdi_.png",IDe="/assets/dtf-transfers-BQHfQHGl.png",$De=[{range:"1 metro",price:"R$ 79,90",perMeter:"/metro",highlight:!1},{range:"2 a 5 metros",price:"R$ 69,90",perMeter:"/metro",highlight:!1},{range:"6 a 10 metros",price:"R$ 59,90",perMeter:"/metro",highlight:!0},{range:"Acima de 10 metros",price:"R$ 49,90",perMeter:"/metro",highlight:!1}],LDe=[{title:"Alta Resolução Real",description:"Impressão com qualidade fotográfica que não pixeliza"},{title:"Durabilidade Superior",description:"Estampas que não saem nas lavagens, resistentes ao uso diário"},{title:"Aplicação Perfeita",description:"Aderência total ao tecido sem descolamento nas bordas"},{title:"Cores Vibrantes",description:"Fidelidade de cores com tecnologia de ponta importada"},{title:"Tecnologia Importada",description:"Equipamentos de última geração para resultado profissional"},{title:"Impressão Rápida",description:"Agilidade na produção sem perder qualidade premium"}];function FDe(){const e=b.useRef(null),t=Cd(e,{once:!0,amount:.1});return s.jsxs("section",{id:"dtf-premium",className:"py-20 bg-gradient-to-b from-gray-900 via-gray-900 to-black text-white relative overflow-hidden",children:[s.jsxs("div",{className:"absolute inset-0 opacity-10",children:[s.jsx("div",{className:"absolute top-20 left-10 w-72 h-72 bg-amber-500 rounded-full blur-[120px]"}),s.jsx("div",{className:"absolute bottom-20 right-10 w-96 h-96 bg-purple-600 rounded-full blur-[150px]"})]}),s.jsxs("div",{className:"container mx-auto px-4 relative z-10",ref:e,children:[s.jsxs(Xe.div,{initial:{opacity:0,y:20},animate:t?{opacity:1,y:0}:{},transition:{duration:.6},className:"text-center mb-6",children:[s.jsxs("div",{className:"inline-flex items-center bg-amber-500/20 border border-amber-500/30 rounded-full px-4 py-1.5 mb-6",children:[s.jsx(hn,{className:"w-4 h-4 text-amber-400 mr-2"}),s.jsx("span",{className:"text-amber-300 text-sm font-semibold",children:"Serviço Exclusivo"})]}),s.jsxs("h2",{className:"text-4xl md:text-5xl font-bold mb-4",children:["Impressão ",s.jsx("span",{className:"text-transparent bg-clip-text bg-gradient-to-r from-amber-400 to-amber-600",children:"DTF Premium"})]}),s.jsx("p",{className:"text-gray-400 text-lg max-w-3xl mx-auto",children:"Tecnologia importada de última geração com qual
791idade incomparável. Esqueça DTF barato que sai fácil, não tem resolução e tem aplicação ruim â nosso DTF Premium é outro nÃvel."})]}),s.jsxs(Xe.div,{initial:{opacity:0,y:30},animate:t?{opacity:1,y:0}:{},transition:{duration:.6,delay:.2},className:"grid grid-cols-1 md:grid-cols-3 gap-4 mt-12 mb-16",children:[s.jsxs("div",{className:"rounded-xl overflow-hidden shadow-2xl shadow-amber-500/10 group",children:[s.jsx("img",{src:DDe,alt:"Impressora DTF Premium de última geração",className:"w-full h-64 object-cover transition-transform duration-500 group-hover:scale-105"}),s.jsxs("div",{className:"bg-gray-800 p-4",children:[s.jsxs("div",{className:"flex items-center",children:[s.jsx(Lm,{className:"w-5 h-5 text-amber-400 mr-2"}),s.jsx("h4",{className:"font-bold text-white",children:"Equipamento de Ãltima Geração"})]}),s.jsx("p",{className:"text-gray-400 text-sm mt-1",children:"Tecnologia importada para máxima qualidade"})]})]}),s.jsxs("div",{className:"rounded-xl overflow-hidden shadow-2xl shadow-amber-500/10 group",children:[s.jsx("img",{src:RDe,alt:"Qualidade de impressão DTF Premium em alta resolução",className:"w-full h-64 object-cover transition-transform duration-500 group-hover:scale-105"}),s.jsxs("div",{className:"bg-gray-800 p-4",children:[s.jsxs("div",{className:"flex items-center",children:[s.jsx(io,{className:"w-5 h-5 text-amber-400 mr-2"}),s.jsx("h4",{className:"font-bold text-white",children:"Alta Resolução Real"})]}),s.jsx("p",{className:"text-gray-400 text-sm mt-1",children:"Estampas com qualidade fotográfica"})]})]}),s.jsxs("div",{className:"rounded-xl overflow-hidden shadow-2xl shadow-amber-500/10 group",children:[s.jsx("img",{src:IDe,alt:"Transfers DTF Premium com cores vibrantes",className:"w-full h-64 object-cover transition-transform duration-500 group-hover:scale-105"}),s.jsxs("div",{className:"bg-gray-800 p-4",children:[s.jsxs("div",{className:"flex items-center",children:[s.jsx(hn,{className:"w-5 h-5 text-amber-400 mr-2"}),s.jsx("h4",{className:"font-bold text-white",children:"Cores Vibrantes e Duráveis"})]}),s.jsx("p",{className:"text-gray-400 text-sm mt-1",children:"Fidelidade de cores que não desbota"})]})]})]}),s.jsxs(Xe.div,{initial:{opacity:0,y:30},animate:t?{opacity:1,y:0}:{},transition:{duration:.6,delay:.3},className:"mb-16",children:[s.jsxs("div",{className:"text-center mb-8",children:[s.jsx("h3",{className:"text-2xl font-bold mb-2",children:"Por que nosso DTF é diferente?"}),s.jsx("p",{className:"text-gray-400",children:"DTF barato é dor de cabeça â o nosso é solução premium"})]}),s.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6 max-w-4xl mx-auto",children:[s.jsxs("div",{className:"bg-red-950/30 border border-red-500/20 rounded-xl p-6",children:[s.jsxs("h4",{className:"text-red-400 font-bold text-lg mb-4 flex items-center",children:[s.jsx(xS,{className:"w-5 h-5 mr-2"}),"DTF Comum (Barato)"]}),s.jsxs("ul",{className:"space-y-3",children:[s.jsxs("li",{className:"flex items-start text-gray-400",children:[s.jsx("span",{className:"text-red-500 mr-2 mt-1",children:"â"}),s.jsx("span",{children:"Sai fácil após poucas lavagens"})]}),s.jsxs("li",{className:"flex items-start text-gray-400",children:[s.jsx("span",{className:"text-red-500 mr-2 mt-1",children:"â"}),s.jsx("span",{children:"Sem resolução â imagens pixelizadas"})]}),s.jsxs("li",{className:"flex items-start text-gray-400",children:[s.jsx("span",{className:"text-red-500 mr-2 mt-1",children:"â"}),s.jsx("span",{children:"Aplicação ruim com bordas descolando"})]}),s.jsxs("li",{className:"flex items-start text-gray-400",children:[s.jsx("span",{className:"text-red-500 mr-2 mt-1",children:"â"}),s.jsx("span",{children:"Cores desbotadas e sem fidelidade"})]}),s.jsxs("li",{className:"flex items-start text-gray-400",children:[s.jsx("span",{className:"text-red-500 mr-2 mt-1",children:"â"}),s.jsx("span",{children:"Toque plástico e desconfortável"})]})]})]}),s.jsxs("div",{className:"bg-amber-950/30 border border-amber-500/30 rounded-xl p-6 shadow-lg shadow-amber-500/5",children:[s.jsxs("h4",{className:"text-amber-400 font-bold text-lg mb-4 flex items-center",children:[s.jsx(io,{className:"w-5 h-5 mr-2"}),"DTF Premium ConfecXpress"]}),s.jsxs("ul",{className:"space-y-3",children:[s.jsxs("li",{className:"flex items-start text-gray-300",children:[s.jsx(mn,{className:"w-5 h-5 text-amber-400 mr-2 mt-0.5 shrink-0"}),s.jsx("span",{children:"Durabilidade superior â resiste a dezenas de lavagens"})]}),s.jsxs("li",{className:"flex items-start text-gray-300",children:[s.jsx(mn,{className:"w-5 h-5 text-amber-400 mr-2 mt-0.5 shrink-0"}
791),s.jsx("span",{children:"Alta resolução real com qualidade fotográfica"})]}),s.jsxs("li",{className:"flex items-start text-gray-300",children:[s.jsx(mn,{className:"w-5 h-5 text-amber-400 mr-2 mt-0.5 shrink-0"}),s.jsx("span",{children:"Aplicação perfeita com aderência total ao tecido"})]}),s.jsxs("li",{className:"flex items-start text-gray-300",children:[s.jsx(mn,{className:"w-5 h-5 text-amber-400 mr-2 mt-0.5 shrink-0"}),s.jsx("span",{children:"Cores vibrantes com fidelidade de cor garantida"})]}),s.jsxs("li",{className:"flex items-start text-gray-300",children:[s.jsx(mn,{className:"w-5 h-5 text-amber-400 mr-2 mt-0.5 shrink-0"}),s.jsx("span",{children:"Toque macio e confortável no tecido"})]})]})]})]})]}),s.jsxs(Xe.div,{initial:{opacity:0,y:30},animate:t?{opacity:1,y:0}:{},transition:{duration:.6,delay:.4},className:"mb-12",children:[s.jsxs("div",{className:"text-center mb-8",children:[s.jsx("h3",{className:"text-2xl font-bold mb-2",children:"Tabela de Preços"}),s.jsx("p",{className:"text-gray-400",children:"Quanto mais metros, menor o valor â qualidade premium acessÃvel"})]}),s.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-4 max-w-5xl mx-auto",children:$De.map((r,n)=>s.jsxs(Xe.div,{initial:{opacity:0,y:20},animate:t?{opacity:1,y:0}:{},transition:{delay:.5+n*.1},className:`rounded-xl p-6 text-center transition-all ${r.highlight?"bg-gradient-to-b from-amber-500/20 to-amber-600/10 border-2 border-amber-500/50 shadow-lg shadow-amber-500/10 scale-105":"bg-white/5 border border-white/10 hover:border-amber-500/30"}`,children:[r.highlight&&s.jsx("div",{className:"text-xs font-bold text-amber-400 mb-2 uppercase tracking-wider",children:"Mais Popular"}),s.jsx("div",{className:"text-sm text-gray-400 mb-2",children:r.range}),s.jsx("div",{className:"text-3xl font-bold text-white mb-1",children:r.price}),s.jsx("div",{className:"text-sm text-gray-500",children:r.perMeter})]},n))})]}),s.jsx(Xe.div,{initial:{opacity:0,y:30},animate:t?{opacity:1,y:0}:{},transition:{duration:.6,delay:.6},className:"grid grid-cols-2 md:grid-cols-3 gap-4 mb-12 max-w-4xl mx-auto",children:LDe.map((r,n)=>s.jsxs("div",{className:"bg-white/5 rounded-lg p-4 border border-white/10",children:[s.jsxs("div",{className:"flex items-center mb-2",children:[s.jsx(mn,{className:"w-4 h-4 text-amber-400 mr-2 shrink-0"}),s.jsx("h4",{className:"text-sm font-bold text-white",children:r.title})]}),s.jsx("p",{className:"text-gray-500 text-xs",children:r.description})]},n))}),s.jsx(Xe.div,{initial:{opacity:0,y:20},animate:t?{opacity:1,y:0}:{},transition:{duration:.6,delay:.7},className:"text-center",children:s.jsxs("div",{className:"bg-gradient-to-r from-amber-500/10 via-amber-500/20 to-amber-500/10 border border-amber-500/30 rounded-2xl p-8 max-w-2xl mx-auto",children:[s.jsx(kd,{className:"w-10 h-10 text-amber-400 mx-auto mb-4"}),s.jsx("h3",{className:"text-2xl font-bold mb-2",children:"Impressão Rápida"}),s.jsx("p",{className:"text-gray-400 mb-6",children:"Solicite seu orçamento e receba em minutos. Produção ágil com qualidade premium garantida."}),s.jsx(W,{asChild:!0,size:"lg",className:"bg-gradient-to-r from-amber-500 to-amber-600 text-black hover:from-amber-400 hover:to-amber-500 font-bold text-lg px-8",children:s.jsxs("a",{href:`https://wa.me/${Fa}?text=Olá,%20estou%20interessado%20no%20serviço%20de%20impressão%20DTF%20Premium.%20Podem%20me%20enviar%20um%20orçamento?`,target:"_blank",rel:"noopener noreferrer",children:[s.jsx(ba,{className:"w-5 h-5 mr-2"}),"Solicitar Orçamento DTF Premium"]})})]})})]})]})}const TD="/assets/camiseta-algodao-DFR4euvE.png",VDe="/assets/camiseta-dryfit-bzus3ZbJ.png",ED="/assets/polo-piquet-C3azZ_cW.png",zDe="/assets/moletom-canguru-6Tj5mmaw.png",BDe="/assets/moletom-careca-DnNwCu_4.png",UDe="/assets/casaco-cortavento-B24wV8h5.png",WDe="/assets/uniforme-refletivo-mUcfi_nE.png",qDe="/assets/uniforme-brim-BTXXNHw2.png",HDe="/assets/camisa-social-Dd1LLmu7.png",GDe="/assets/dtf-estampa-CJu9lLyE.png",o2="https://wa.me/c/551151976208",KDe=[{id:1,name:"Camiseta Algodão Penteado Premium",category:"Camisetas",subcategory:"Básicas",emoji:"ð",image:TD,fabric:"100% Algodão Penteado",techniques:["Silk","DTF","Sublimação","Bordado"],features:["Toque macio e resistente","Não deforma nas lavagens","Ideal para uso diário"],minQty:10},{id:2,name:"Camiseta Dry-Fit Performance",category:"Camisetas",subcategory:"Esportivas",emoji:"ð",image:VDe,fabric:"100% Poliéster Dry-Fit",techniques:["Sublimação Total","DTF","Silk"],features:["Secagem ultrarrápida","Controle de temperatura","Leve e confortável"],minQty:10,badge:"Esporte",badgeColor:"bg-cyan-100 text-cyan-700"},{id:3,name:"Camiseta Modal Premium",category:"Camisetas",subcategory:"Premium",emoji:"ð",image:TD,fabric:"100% Modal",techniques:["DTF Premium","Bordado","Silk"],features:["Toque ultrasuave","Não amassa","Secagem rápida"],minQty:10,badge:"Premium",badgeColor:"bg-purple-100 text-purple-700"},{id:4,name:"Polo Piquet Corporativo",category:"Polos",subcategory:"Corporativo",emoji:"ð",image:ED,fabric:"Malha Piquet 50% Alg. / 50% Pol.",techniques:["Bordado","DTF","Silk"],features:["Elegância corporativa","Alta durabilidade","Ideal para uniformes"],minQty:10,badge:"Corporativo",badgeColor:"bg-emerald-100 text-emerald-700"},{id:5,name:"Polo Dry-Fit Esportivo",category:"Polos",subcategory:"Esportivas",emoji:"ð",image:ED,fabric:"100% Poliéster Dry-Fit",techniques:["Sublimação","DTF","Silk"],features:["Conforto em movimento","Secagem rápida","Perfeito para equipes"],minQty:10},{id:6,name:"Moletom Canguru",category:"Moletons",subcategory:"Canguru",emoji:"ð§¥",image:zDe,fabric:"Moletom 80% Alg. / 20% Pol.",techniques:["DTF","Bordado","Silk","Sublimação"],features:["Bolso canguru frontal","Capuz ajustável","Visual casual e moderno"],minQty:10},{id:7,name:"Moletom Gola Careca",category:"Moletons",subcategory:"Careca",emoji:"ð§¥",image:BDe,fabric:"Moletom Premium Fleece",techniques:["DTF","Bordado","Silk"],features:["Visual limpo e elegante","Sem capuz","Conforto superior"],minQty:10},{id:8,name:"Corta Vento",category:"Casacos",subcategory:"Casacos",emoji:"ð§¥",image:UDe,fabric:"Nylon Ripstop Impermeável",techniques:["Bordado","Silk","DTF"],features:["Impermeável","Leve e resistente ao vento","Forro interno confortável"],minQty:10,badge:"Proteção",badgeColor:"bg-blue-100 text-blue-700"},{id:9,name:"Uniforme com Faixa Refletiva",category:"Uniformes",subcategory:"Segurança",emoji:"ð¦º",image:WDe,fabric:"Malha 100% Poliéster",techniques:["Bordado","Silk","DTF"],features:["Alta visibilidade noturna","Segurança NR-6","Resistente ao uso intenso"],minQty:10,badge:"NR-6",badgeColor:"bg-orange-100 text-orange-700"},{id:10,name:"Camisa Social Corporativa",category:"Uniformes",subcategory:"Corporativo",emoji:"ð",image:HDe,fabric:"Oxford / Social Premium",techniques:["Bordado","DTF"],features:["Elegância profissional","Personalização discreta","Ideal para reuniÃ
791µes"],minQty:10,badge:"Social",badgeColor:"bg-indigo-100 text-indigo-700"},{id:11,name:"Uniforme em Brim",category:"Uniformes",subcategory:"Trabalho Pesado",emoji:"ð·",image:qDe,fabric:"Brim 100% Algodão",techniques:["Bordado","Silk"],features:["Resistência extrema","Para trabalho pesado","Alta durabilidade"],minQty:10},{id:12,name:"Estampa DTF Premium",category:"DTF Premium",subcategory:"Impressão",emoji:"ð¨ï¸",image:GDe,fabric:"Transfer para qualquer tecido",techniques:["DTF Premium"],features:["Qualidade fotográfica","Cores ultra-vibrantes","Aderência total ao tecido"],minQty:1,badge:"Premium",badgeColor:"bg-amber-100 text-amber-700"}],XDe=["Todos","Camisetas","Polos","Moletons","Casacos","Uniformes","DTF Premium"],YDe={Todos:"from-gray-700 to-gray-900",Camisetas:"from-blue-500 to-blue-700",Polos:"from-emerald-500 to-emerald-700",Moletons:"from-purple-500 to-purple-700",Casacos:"from-cyan-500 to-cyan-700",Uniformes:"from-orange-500 to-orange-700","DTF Premium":"from-amber-500 to-amber-700"};function Q7(e){const t=`Olá! Tenho interesse em *${e.name}* (${e.fabric}). Podem me passar mais informações e orçamento?`;return`https://wa.me/${Fa}?text=${encodeURIComponent(t)}`}function bA(e){const t=`Vi este produto na ConfecXpress e achei incrÃvel: *${e.name}*! 792Confira o catálogo: ${o2}`,r=`https://wa.me/?text=${encodeURIComponent(t)}`;navigator.share?navigator.share({title:e.name,text:t,url:o2}).catch(()=>{}):window.open(r,"_blank","noopener,noreferrer")}function ZDe({product:e,onClick:t}){return s.jsxs(Xe.div,{layout:!0,initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.9},transition:{duration:.3},className:"bg-white rounded-2xl shadow-md hover:shadow-xl transition-all duration-300 overflow-hidden group cursor-pointer border border-gray-100",onClick:t,children:[s.jsxs("div",{className:"relative overflow-hidden bg-gray-50 h-52",children:[s.jsx("img",{src:e.image,alt:e.name,className:"w-full h-full object-contain p-4 transition-transform duration-500 group-hover:scale-105",loading:"lazy"}),e.badge&&s.jsx("span",{className:`absolute top-3 left-3 text-xs font-bold px-2 py-1 rounded-full ${e.badgeColor}`,children:e.badge}),s.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/20 to-transparent opacity-0 group-hover:opacity-100 transition-opacity duration-300"}),s.jsx("button",{onClick:r=>{r.stopPropagation(),bA(e)},className:"absolute top-3 right-3 w-8 h-8 bg-white/90 rounded-full flex items-center justify-center shadow opacity-0 group-hover:opacity-100 transition-all duration-300 hover:bg-green-50",title:"Compartilhar via WhatsApp",children:s.jsx(vS,{className:"w-4 h-4 text-gray-600"})})]}),s.jsxs("div",{className:"p-4",children:[s.jsx("p",{className:"text-xs text-gray-400 mb-1",children:e.subcategory}),s.jsx("h3",{className:"font-bold text-gray-900 text-sm leading-tight mb-1 line-clamp-2",children:e.name}),s.jsxs("p",{className:"text-xs text-gray-500 mb-3 flex items-center gap-1",children:[s.jsx(yS,{className:"w-3 h-3"})," ",e.fabric]}),s.jsxs("div",{className:"flex flex-wrap gap-1 mb-3",children:[e.techniques.slice(0,2).map(r=>s.jsx("span",{className:"text-xs bg-blue-50 text-blue-600 px-2 py-0.5 rounded-full",children:r},r)),e.techniques.length>2&&s.jsxs("span",{className:"text-xs bg-gray-100 text-gray-500 px-2 py-0.5 rounded-full",children:["+",e.techniques.length-2]})]}),s.jsxs("a",{href:Q7(e),target:"_blank",rel:"noopener noreferrer",onClick:r=>r.stopPropagation(),className:"flex items-center justify-center gap-2 w-full bg-green-500 hover:bg-green-600 text-white text-sm font-bold py-2.5 rounded-xl transition-colors",children:[s.jsx(ba,{className:"w-4 h-4"}),"Pedir orçamento"]})]})]})}function QDe({product:e,onClose:t}){return s.jsx(Xe.div,{initial:{opacity:0}
792,animate:{opacity:1},exit:{opacity:0},className:"fixed inset-0 z-50 flex items-center justify-center p-4 bg-black/60 backdrop-blur-sm",onClick:t,children:s.jsxs(Xe.div,{initial:{opacity:0,scale:.9,y:20},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.9,y:20},transition:{type:"spring",damping:25},className:"bg-white rounded-3xl shadow-2xl max-w-lg w-full overflow-hidden",onClick:r=>r.stopPropagation(),children:[s.jsxs("div",{className:"relative bg-gray-50 h-64 flex items-center justify-center",children:[s.jsx("img",{src:e.image,alt:e.name,className:"h-full w-full object-contain p-8"}),e.badge&&s.jsx("span",{className:`absolute top-4 left-4 text-xs font-bold px-3 py-1 rounded-full ${e.badgeColor}`,children:e.badge}),s.jsx("button",{onClick:t,className:"absolute top-4 right-4 w-9 h-9 bg-white rounded-full flex items-center justify-center shadow-md hover:bg-gray-100 transition-colors",children:s.jsx(No,{className:"w-5 h-5 text-gray-600"})})]}),s.jsxs("div",{className:"p-6",children:[s.jsxs("p",{className:"text-xs text-gray-400 mb-1",children:[e.category," ⢠",e.subcategory]}),s.jsx("h2",{className:"text-xl font-bold text-gray-900 mb-1",children:e.name}),s.jsxs("p",{className:"text-sm text-gray-500 flex items-center gap-1 mb-4",children:[s.jsx(yS,{className:"w-3 h-3"})," ",e.fabric]}),s.jsxs("div",{className:"mb-4",children:[s.jsx("p",{className:"text-xs font-semibold text-gray-500 uppercase tracking-wide mb-2",children:"Técnicas disponÃveis"}),s.jsx("div",{className:"flex flex-wrap gap-2",children:e.techniques.map(r=>s.jsx("span",{className:"text-sm bg-blue-50 text-blue-700 px-3 py-1 rounded-full font-medium",children:r},r))})]}),s.jsxs("div",{className:"mb-5",children:[s.jsx("p",{className:"text-xs font-semibold text-gray-500 uppercase tracking-wide mb-2",children:"CaracterÃsticas"}),s.jsxs("ul",{className:"space-y-1.5",children:[e.features.map(r=>s.jsxs("li",{className:"flex items-center gap-2 text-sm text-gray-700",children:[s.jsx(mn,{className:"w-4 h-4 text-green-500 shrink-0"})," ",r]},r)),s.jsxs("li",{className:"flex items-center gap-2 text-sm text-gray-700",children:[s.jsx(Uu,{className:"w-4 h-4 text-blue-500 shrink-0"}),"Sem quantidade mÃnima â quanto mais peças, menor o preço!"]})]})]}),s.jsxs("div",{className:"flex gap-3",children:[s.jsxs("a",{href:Q7(e),target:"_blank",rel:"noopener noreferrer",className:"flex-1 flex items-center justify-center gap-2 bg-green-500 hover:bg-green-600 text-white font-bold py-3 rounded-xl transition-colors",children:[s.jsx(ba,{className:"w-5 h-5"}),"Solicitar orçamento"]}),s.jsx("button",{onClick:()=>bA(e),className:"w-12 h-12 flex items-center justify-center border-2 border-green-200 hover:border-green-400 hover:bg-green-50 rounded-xl transition-colors",title:"Compartilhar",children:s.jsx(vS,{className:"w-5 h-5 text-green-600"})})]})]})]})})}function JDe(){const e=b.useRef(null),t=b.useRef(null),r=Cd(e,{once:!0,amount:.1}),[n,a]=b.useState("Todos"),[i,o]=b.useState(""),[l,c]=b.useState(null),u=KDe.filter(f=>{const m=n==="Todos"||f.category===n,p=!i||f.name.toLowerCase().includes(i.toLowerCase())||f.fabric.toLowerCase().includes(i.toLowerCase());return m&&p}),d=f=>{t.current&&t.current.scrollBy({left:f==="left"?-160:160,behavior:"smooth"})};return s.jsxs("section",{id:"catalogo-interativo",className:"py-20 bg-gradient-to-b from-gray-50 to-white",children:[s.jsxs("div",{className:"container mx-auto px-4",ref:e,children:[s.jsxs(Xe.div,{initial:{opacity:0,y:20},animate:r?{opacity:1,y:0}:{},transition:{duration:.6},className:"text-center mb-10",children:[s.jsxs("div",{className:"inline-flex items-center bg-blue-100 border border-blue-200 rounded-full px-4 py-1.5 mb-5",children:[s.jsx(Wu,{className:"w-4 h-4 text-blue-600 mr-2"}),s.jsx("span",{className:"text-blue-700 text-sm font-semibold",children:"Catálogo Interativo"})]}),s.jsxs("h2",{className:"text-4xl md:text-5xl font-bold text-gray-900 mb-4",children:["Nossos ",s.jsx("span",{className:"text-blue-600",children:"Produtos"})]}),s.jsx("p",{className:"text-gray-500 text-lg max-w-2xl mx-auto",children:"Explore, filtre e solicite orçamento de qualquer produto direto pelo WhatsApp."})]}),s.jsx(Xe.div,{initial:{opacity:0,y:16},animate:r?{opacity:1,y:0}:{},transition:{delay:.15},className:"flex flex-wrap justify-center gap-4 mb-10",children:[{icon:s.jsx(Uu,{className:"w-4 h-4"}),label:"12+ produtos",color:"text-blue-600 bg-blue-50"},{icon:s.jsx(kd,{className:"w-4 h-4"}),label:"Entrega em 48h",color:"text-green-600 bg-green-50"},{icon:s.jsx(io,{className:"w-4 h-4"}),label:"Sem quantidade mÃnima",color:"text-amber-600 bg-amber-50"}].map((f,m)=>s.jsxs("div",{className:`flex items-center gap-2 px-4 py-2 rounded-full text-sm font-semibold ${f.color}`,children:[f.icon," ",f.label]},m))}),s.jsxs(Xe.div,{initial:{opacity:0,y:10},animate:r?{opacity:1,y:0}:{},transition:{delay:.2},className:"relative max-w-md mx-auto mb-6",children:[s.jsx(zl,{className:"absolute left-4 top-1/2 -translate-y-1/2 w-5 h-5 text-gray-400"}),s.jsx("input",{type:"text",placeholder:"Buscar produto ou tecido...",value:i,onChange:f=>o(f.target.value),className:"w-full pl-12 pr-4 py-3 rounded-2xl border border-gray-200 bg-white shadow-sm focus:outline-none focus:ring-2 focus:ring-blue-300 text-sm"}),i&&s.jsx("button",{onClick:()=>o(""),className:"absolute right-4 top-1/2 -translate-y-1/2 text-gray-400 hover:text-gray-600",children:s.jsx(No,{className:"w-4 h-4"})})]}),s.jsxs(Xe.div,{initial:{opacity:0}
792,animate:r?{opacity:1}:{},transition:{delay:.25},className:"relative flex items-center mb-8",children:[s.jsx("button",{onClick:()=>d("left"),className:"shrink-0 w-8 h-8 flex items-center justify-center bg-white border border-gray-200 rounded-full shadow-sm mr-2 hover:bg-gray-50",children:s.jsx(iG,{className:"w-4 h-4 text-gray-600"})}),s.jsx("div",{ref:t,className:"flex gap-2 overflow-x-auto scrollbar-hide py-1 scroll-smooth",style:{scrollbarWidth:"none"},children:XDe.map(f=>s.jsx("button",{onClick:()=>a(f),className:`shrink-0 px-4 py-2 rounded-full text-sm font-semibold transition-all duration-200 ${n===f?`bg-gradient-to-r ${YDe[f]} text-white shadow-md scale-105`:"bg-white text-gray-600 border border-gray-200 hover:bg-gray-50"}`,children:f},f))}),s.jsx("button",{onClick:()=>d("right"),className:"shrink-0 w-8 h-8 flex items-center justify-center bg-white border border-gray-200 rounded-full shadow-sm ml-2 hover:bg-gray-50",children:s.jsx(km,{className:"w-4 h-4 text-gray-600"})})]}),s.jsx(Xe.div,{layout:!0,className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-4",children:s.jsx(nc,{mode:"popLayout",children:u.map(f=>s.jsx(ZDe,{product:f,onClick:()=>c(f)},f.id))})}),u.length===0&&s.jsxs("div",{className:"text-center py-16 text-gray-400",children:[s.jsx(zl,{className:"w-12 h-12 mx-auto mb-4 opacity-30"}),s.jsxs("p",{className:"text-lg",children:['Nenhum produto encontrado para "',i,'"']})]}),s.jsxs(Xe.div,{initial:{opacity:0,y:20},animate:r?{opacity:1,y:0}:{},transition:{delay:.4},className:"mt-12 text-center",children:[s.jsx("p",{className:"text-gray-500 text-sm mb-4",children:"Quer ver todos os modelos disponÃveis com fotos?"}),s.jsxs("div",{className:"flex flex-col sm:flex-row gap-3 justify-center",children:[s.jsx(W,{asChild:!0,size:"lg",className:"bg-green-500 hover:bg-green-600 text-white font-bold gap-2",children:s.jsxs("a",{href:o2,target:"_blank",rel:"noopener noreferrer",children:[s.jsx(ba,{className:"w-5 h-5"}),"Ver catálogo completo no WhatsApp"]})}),s.jsxs(W,{size:"lg",variant:"outline",onClick:()=>bA({name:"ConfecXpress"}),className:"border-green-300 text-green-700 hover:bg-green-50 font-bold gap-2",children:[s.jsx(vS,{className:"w-5 h-5"}),"Compartilhar catálogo"]})]})]})]}),s.jsx(nc,{children:l&&s.jsx(QDe,{product:l,onClose:()=>c(null)})})]})}function eRe(){const{trackWhatsAppConversion:e}=X$(),t=()=>{console.log("Clique no WhatsApp"),typeof gtag<"u"&>ag("event","conversion",{send_to:"AW-17076577574/l_mvCO3548caEKbK384_"}),e();const n=encodeURIComponent(`Olá! ð 793 794Para um orçamento completo, rápido e preciso, você poderia me fornecer algumas informações? 795 796ð¢ Qual é a quantidade que você deseja? 797 798ð¨ Você já tem o layout ou a arte das peças? 799 800ð Me especifica o modelo e tecido que você quer, e qual o tipo da estampa por favor ð 801 802â° Teria algum prazo de entrega necessário? 803 804Aguardo seu retorno! ð`),a=`https://wa.me/${Fa}?text=${n}`;window.open(a,"_blank")};return s.jsx("section",{id:"formulario-orcamento",className:"py-16 bg-gradient-to-br from-blue-50 to-purple-50",children:s.jsx("div",{className:"container mx-auto px-4",children:s.jsxs("div",{className:"max-w-4xl mx-auto",children:[s.jsx(wi,{title:"Solicite seu Orçamento Personalizado",center:!0}),s.jsx("p",{className:"text-xl text-gray-600 text-center mb-8 max-w-2xl mx-auto",children:"Para um orçamento completo, rápido e preciso, clique no botão abaixo e me informe:"}),s.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6 mb-12 mt-12",children:[s.jsxs("div",{className:"bg-white p-6 rounded-xl shadow-sm border border-gray-100 hover:shadow-md transition-shadow",children:[s.jsxs("div",{className:"flex items-center gap-3 mb-3",children:[s.jsx("div",{className:"p-2 bg-blue-100 rounded-lg",children:s.jsx(fG,{className:"h-5 w-5 text-blue-600"})}),s.jsx("h3",{className:"font-semibold text-gray-800",children:"Quantidade"})]}),s.jsx("p",{className:"text-gray-600",children:"Qual é a quantidade que você deseja?"})]}),s.jsxs("div",{className:"bg-white p-6 rounded-xl shadow-sm border border-gray-100 hover:shadow-md transition-shadow",children:[s.jsxs("div",{className:"flex items-center gap-3 mb-3",children:[s.jsx("div",{className:"p-2 bg-purple-100 rounded-lg",children:s.jsx(CG,{className:"h-5 w-5 text-purple-600"})}),s.jsx("h3",{className:"font-semibold text-gray-800",children:"Arte/Layout"})]}),s.jsx("p",{className:"text-gray-600",children:"Você já tem o layout ou a arte das peças?"})]}),s.jsxs("div",{className:"bg-white p-6 rounded-xl shadow-sm border border-gray-100 hover:shadow-md transition-shadow",children:[s.jsxs("div",{className:"flex items-center gap-3 mb-3",children:[s.jsx("div",{className:"p-2 bg-green-100 rounded-lg",children:s.jsx(Wu,{className:"h-5 w-5 text-green-600"})}),s.jsx("h3",{className:"font-semibold text-gray-800",children:"Modelo & Tecido"})]}),s.jsx("p",{className:"text-gray-600",children:"Me especifica o modelo e tecido que você quer, e qual o tipo da estampa por favor ð"})]}),s.jsxs("div",{className:"bg-white p-6 rounded-xl shadow-sm border border-gray-100 hover:shadow-md transition-shadow",children:[s.jsxs("div",{className:"flex items-center gap-3 mb-3",children:[s.jsx("div",{className:"p-2 bg-orange-100 rounded-lg",children:s.jsx(Ps,{className:"h-5 w-5 text-orange-600"})}),s.jsx("h3",{className:"font-semibold text-gray-800",children:"Prazo"})]}),s.jsx("p",{className:"text-gray-600",children:"Teria algum prazo de entrega necessário?"})]})]}),s.jsxs("div",{className:"text-center",children:[s.jsxs(W,{onClick:t,size:"lg",className:"bg-green-600 hover:bg-green-700 text-white px-8 py-4 text-lg font-semibold rounded-xl shadow-lg hover:shadow-xl transition-all duration-300 transform hover:scale-105",children:[s.jsx(ba,{className:"h-6 w-6 mr-3"}),"Enviar Perguntas para WhatsApp"]}),s.jsxs("div",{className:"mt-6 flex items-center justify-center gap-2 text-sm text-gray-600",children:[s.jsx(Sv,{className:"h-4 w-4 text-green-500"}),s.jsx("span",{children:"Resposta rápida e orçamento personalizado"})]})]}),s.jsx("div",{className:"mt-12 bg-white p-8 rounded-xl shadow-sm border border-gray-100",children:s.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6 text-center",children:[s.jsxs("div",{children:[s.jsx("div",{className:"p-3 bg-blue-100 rounded-full w-fit mx-auto mb-3",children:s.jsx(ba,{className:"h-6 w-6 text-blue-600"})}
804),s.jsx("h4",{className:"font-semibold text-gray-800 mb-2",children:"Atendimento 24/7"}),s.jsx("p",{className:"text-gray-600 text-sm",children:"Respondemos rapidamente no WhatsApp"})]}),s.jsxs("div",{children:[s.jsx("div",{className:"p-3 bg-green-100 rounded-full w-fit mx-auto mb-3",children:s.jsx(Sv,{className:"h-6 w-6 text-green-600"})}),s.jsx("h4",{className:"font-semibold text-gray-800 mb-2",children:"Orçamento Gratuito"}),s.jsx("p",{className:"text-gray-600 text-sm",children:"Sem compromisso, preços justos"})]}),s.jsxs("div",{children:[s.jsx("div",{className:"p-3 bg-purple-100 rounded-full w-fit mx-auto mb-3",children:s.jsx(Ps,{className:"h-6 w-6 text-purple-600"})}),s.jsx("h4",{className:"font-semibold text-gray-800 mb-2",children:"Entrega Rápida"}),s.jsx("p",{className:"text-gray-600 text-sm",children:"Padrão 7-20 dias, urgente 48h"})]})]})})]})})})}function J7(){const[e]=wa();if(e.startsWith("/admin"))return null;const[t,r]=b.useState(!1),{trackWhatsAppConversion:n}=X$();return b.useEffect(()=>{const a=setInterval(()=>{r(!0),setTimeout(()=>r(!1),2e3)},15e3);return()=>clearInterval(a)},[]),s.jsxs("div",{className:"fixed bottom-6 right-6 z-50 flex flex-col items-end",children:[s.jsxs("div",{className:"bg-white rounded-lg shadow-lg p-3 mb-3 text-xs font-medium text-gray-700 max-w-[180px] animate-fadeIn",children:[s.jsxs("div",{className:"flex items-center mb-1",children:[s.jsx("div",{className:"w-2 h-2 rounded-full bg-green-500 mr-1 animate-pulse"}),s.jsx("span",{className:"text-green-600 font-bold",children:"Orçamento rápido"})]}),s.jsx("p",{className:"text-xs",children:"Resposta em até 30min"})]}),s.jsx("a",{href:`https://wa.me/${Fa}`,className:ie("group relative bg-gradient-to-r from-green-500 to-green-600 w-16 h-16 rounded-full flex items-center justify-center","text-white text-3xl shadow-xl hover:scale-110 hover:shadow-2xl transition-all duration-300","animate-[float_3s_ease-in-out_infinite]",t&&"animate-pulse-once scale-110"),target:"_blank",rel:"noopener noreferrer","aria-label":"Converse pelo WhatsApp",onClick:()=>{console.log("Clique no botão de WhatsApp"),typeof gtag<"u"&>ag("event","conversion",{send_to:"AW-17076577574/l_mvCO3548caEKbK384_"}),n()},children:s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",className:"w-8 h-8 fill-current relative z-10",children:s.jsx("path",{d:"M380.9 97.1C339 55.1 283.2 32 223.9 32c-122.4 0-222 99.6-222 222 0 39.1 10.2 77.3 29.6 111L0 480l117.7-30.9c32.4 17.7 68.9 27 106.1 27h.1c122.3 0 224.1-99.6 224.1-222 0-59.3-25.2-115-67.1-157zm-157 341.6c-33.2 0-65.7-8.9-94-25.7l-6.7-4-69.8 18.3L72 359.2l-4.4-7c-18.5-29.4-28.2-63.3-28.2-98.2 0-101.7 82.8-184.5 184.6-184.5 49.3 0 95.6 19.2 130.4 54.1 34.8 34.9 56.2 81.2 56.1 130.5 0 101.8-84.9 184.6-186.6 184.6zm101.2-138.2c-5.5-2.8-32.8-16.2-37.9-18-5.1-1.9-8.8-2.8-12.5 2.8-3.7 5.6-14.3 18-17.6 21.8-3.2 3.7-6.5 4.2-12 1.4-32.6-16.3-54-29.1-75.5-66-5.7-9.8 5.7-9.1 16.3-30.3 1.8-3.7.9-6.9-.5-9.7-1.4-2.8-12.5-30.1-17.1-41.2-4.5-10.8-9.1-9.3-12.5-9.5-3.2-.2-6.9-.2-10.6-.2-3.7 0-9.7 1.4-14.8 6.9-5.1 5.6-19.4 19-19.4 46.3 0 27.3 19.9 53.7 22.6 57.4 2.8 3.7 39.1 59.7 94.8 83.8 35.2 15.2 49 16.5 66.6 13.9 10.7-1.6 32.8-13.4 37.4-26.4 4.6-13 4.6-24.1 3.2-26.4-1.3-2.5-5-3.9-10.5-6.6z"})})})]})}function tRe(){return s.jsxs("div",{className:"font-inter text-gray-900 bg-light",children:[s.jsx(K$,{}),s.jsx(j9,{}),s.jsxs("main",{children:[s.jsx(DOe,{}),s.jsx(IOe,{}),s.jsx(dDe,{}),s.jsx(fDe,{}),s.jsx(jDe,{}),s.jsx(mDe,{}),s.jsx(hDe,{}),s.jsx(yDe,{}),s.jsx(JDe,{}),s.jsx(FDe,{}),s.jsx(wDe,{}),s.jsx(MDe,{}),s.jsx(eRe,{})]}),s.jsx(w9,{}),s.jsx(J7,{})]})}function rRe(){const{user:e,loginMutation:t,registerMutation:r}=Ld(),[n,a]=b.useState({username:"",password:""});b.useState({fullName:"",email:"",username:"",password:"",confirmPassword:""}),b.useState({});const i=l=>{a({...n,[l.target.name]:l.target.value})},o=l=>{l.preventDefault(),t.mutate(n)};return e?s.jsx(E1,{to:"/admin/dashboard"}):s.jsxs("div",{className:"flex min-h-screen bg-gray-50",children:[s.jsx("div",{className:"flex flex-col w-full lg:w-1/2 p-6 justify-center",children:s.jsxs("div",{className:"max-w-md mx-auto w-full",children:[s.jsx("h1",{className:"text-3xl font-bold mb-2 text-primary",children:"Acesso Restrito"}),s.jsx("p",{className:"text-gray-600 mb-8",children:"Este painel administrativo é exclusivo para colaboradores autorizados da ConfecXpress."}),s.jsxs(fe,{children:[s.jsxs(Me,{className:"space-y-1",children:[s.jsx(De,{className:"text-2xl",children:"Login Administrativo"}),s.jsx(Ye,{children:"Entre com suas credenciais para acessar o painel"})]}),s.jsxs("form",{onSubmit:o,children:[s.jsxs(me,{className:"space-y-4",children:[s.jsxs("div",{className:"space-y-2",children:[s.jsx(Be,{htmlFor:"username",children:"Nome de usuário"}),s.jsx(ve,{id:"username",name:"username",placeholder:"Digite seu nome de usuário",onChange:i,value:n.username,required:!0})]}),s.jsxs("div",{className:"space-y-2",children:[s.jsx("div",{className:"flex items-center justify-between",children:s.jsx(Be,{htmlFor:"password",children:"Senha"})}),s.jsx(ve,{id:"password",name:"password",type:"password",placeholder:"Digite sua senha",onChange:i,value:n.password,required:!0})]}),t.isError&&s.jsx("div",{className:"p-3 bg-red-50 border border-red-200 rounded text-sm text-red-600",children:"Credenciais inválidas. Acesso permitido apenas para colaboradores autorizados."})]}),s.jsx(FS,{children:s.jsxs(W,{type:"submit",className:"w-full",disabled:t.isPending,children:[t.isPending?s.jsx(Im,{className:"mr-2 h-4 w-4 animate-spin"}):null,"Entrar"]})})]})]})]})}),s.jsx("div",{className:"hidden lg:flex flex-col w-1/2 bg-gradient-to-br from-primary to-blue-800 text-white p-12 justify-center",children:s.jsxs("div",{className:"max-w-lg",children:[s.jsx("h1",{className:"text-5xl font-bold mb-4",children:"Painel Administrativo ConfecXpress"}),s.jsx("p",{className:"text-xl mb-8",children:"Gerencie seus pedidos, acompanhe as estatÃsticas do site e configure suas preferências em um único lugar."}),s.jsxs("div",{className:"space-y-4",children:[s.jsxs("div",{className:"flex items-start",children:[s.jsx("div",{className:"mr-4 bg-white/20 p-3 rounded-lg",children:s.jsxs("svg",{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",className:"lucide lucide-bar-chart-3",children:[s.jsx("path",{d:"M3 3v18h18"}),s.jsx("path",{d:"M18 17V9"}),s.jsx("path",{d:"M13 17V5"}),s.jsx("path",{d:"M8 17v-3"})]})}),s.jsxs("div",{children:[s.jsx("h3",{className:"font-semibold text-lg",children:"Análise de dados"}),s.jsx("p",{className:"text-white/80",children:"Acompanhe as métricas de vendas e visualizações do site em tempo real."})]})]}),s.jsxs("div",{className:"flex items-start",children:[s.jsx("div",{className:"mr-4 bg-white/20 p-3 rounded-lg",children:s.jsxs("svg",{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",className:"lucide lucide-settings",children:[s.jsx("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"}),s.jsx("circle",{cx:"12",cy:"12",r:"3"})]})}),s.jsxs("div",{children:[s.jsx("h3",{className:"font-semibold text-lg",children:"Configuração de sistema"}),s.jsx("p",{className:"text-white/80",children:"Personalize as configurações do seu site e do painel administrativo."})]})]}),s.jsxs("div",{className:"flex items-start",children:[s.jsx("div",{className:"mr-4 bg-white/20 p-3 rounded-lg",children:s.jsxs("svg",{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",className:"lucide lucide-file-text",children:[s.jsx("path",{d:"M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5L14.5 2z"}),s.jsx("polyline",{points:"14 2 14 8 20 8"}),s.jsx("line",{x1:"16",x2:"8",y1:"13",y2:"13"}),s.jsx("line",{x1:"16",x2:"8",y1:"17",y2:"17"}),s.jsx("line",{x1:"10",x2:"8",y1:"9",y2:"9"})]})}),s.jsxs("div",{children:[s.jsx("h3",{className:"font-semibold text-lg",children:"Gestão de pedidos"}),s.jsx("p",{className:"text-white/80",children:"Visualize e gerencie todos os orçamentos recebidos através do site."})]})]})]})]})})]})}function nRe(){const[e]=wa(),[t,r]=b.useState(!1);return e.startsWith("/admin")||(b.useEffect(()=>{if(!t)return document.body.style.paddingTop="40px",()=>{document.body.style.paddingTop="0px"}},[t]),t)?null:s.jsx("div",{className:"fixed top-0 left-0 right-0 z-50 transition-all duration-200",children:s.jsxs("div",{className:"bg-pink-500/70 backdrop-blur-sm text-white py-2 px-4 flex items-center justify-between shadow-md",children:[s.jsxs("div",{className:"text-sm md:text-base font-medium text-center flex-1",children:[s.jsx("span",{className:"hidden sm:inline",children:"â ï¸ Atenção: "}),s.jsx("strong",{className:"text-white text-opacity-100",children:"Sem quantidade mÃnima"})," ",s.jsx("span",{className:"text-white text-opacity-90",children:"â quanto mais peças, menor o preço unitário!"})]}),s.jsx("button",{onClick:()=>{r(!0),document.body.style.paddingTop="0px"},className:"ml-4 text-white hover:text-gray-200 p-1 rounded-full","aria-label":"Fechar aviso",children:s.jsx(No,{className:"h-4 w-4"})})]})})}function aRe(){const[e,t]=b.useState(!1),[r,n]=b.useState(!1),[a,i]=b.useState({necessary:!0,analytics:!1,marketing:!1,preferences:!1});b.useEffect(()=>{if(!localStorage.getItem("cookieConsent")){const p=setTimeout(()=>{t(!0)},1e3);return()=>clearTimeout(p)}},[]);const o=()=>{const m={necessary:!0,analytics:!0,marketing:!0,preferences:!0};i(m),localStorage.setItem("cookieConsent","true"),localStorage.setItem("cookiePreferences",JSON.stringify(m)),t(!1),n(!1),window.dispatchEvent(new Event("consentUpdated"))},l=()=>{const m={necessary:!0,analytics:!1,marketing:!1,preferences:!1};i(m),localStorage.setItem("cookieConsent","true"),localStorage.setItem("cookiePreferences",JSON.stringify(m)),t(!1),n(!1),window.dispatchEvent(new Event("consentUpdated"))},c=()=>{localStorage.setItem("cookieConsent","true"),localStorage.setItem("cookiePreferences",JSON.stringify(a)),t(!1),n(!1),window.dispatchEvent(new Event("consentUpdated"))},u=(m,p)=>{i(v=>({...v,[m]:p}))},d=()=>s.jsx("div",{className:"fixed bottom-0 left-0 right-0 z-50 bg-white shadow-lg border-t border-gray-200 p-4 md:p-6",children:s.jsx("div",{className:"container mx-auto",children:s.jsxs("div",{className:"flex flex-col md:flex-row items-start md:items-center gap-4",children:[s.jsxs("div",{className:"flex-1",children:[s.jsx("h3",{className:"text-lg font-medium text-gray-900",children:"Utilizamos cookies neste site"}),s.jsxs("p",{className:"text-sm text-gray-600 mt-1",children:['Usamos cookies para melhorar sua experiência de navegação, personalizar conteúdo e anúncios, e analisar nosso tráfego. Ao clicar em "Aceitar todos", você concorda com o uso de cookies. Consulte nossa ',s.jsx(Ny,{href:"/politica-de-privacidade",className:"text-primary underline",children:"PolÃtica de Privacidade"})," para mais informações."]})]}),s.jsxs("div",{className:"flex flex-col sm:flex-row gap-2 mt-2 md:mt-0",children:[s.jsx(W,{variant:"outline",size:"sm",onClick:()=>n(!0),children:"Configurar preferências"}),s.jsx(W,{variant:"outline",size:"sm",onClick:l,children:"Apenas necessários"}),s.jsx(W,{size:"sm",onClick:o,children:"Aceitar todos"})]})]})})}),f=()=>s.jsx(LC,{open:r,onOpenChange:n,children:s.jsxs(q0,{className:"max-w-3xl",children:[s.jsxs(H0,{children:[s.jsx(K0,{children:"Configurações de Cookies"}),s.jsx(X0,{children:"Configurar suas preferências de consentimento para cookies. Você pode ajustar suas preferências a qualquer momento."})]}),s.jsxs("div",{className:"space-y-4 py-4",children:[s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsxs("div",{className:"space-y-1",children:[s.jsx("h4",{className:"text-sm font-medium text-gray-900",children:"Cookies necessários"}),s.jsx("p",{className:"text-sm text-gray-500",children:"Essenciais para permitir funcionalidades básicas como navegação segura e acesso a áreas protegidas. Não podem ser desativados."})]}),s.jsx(Vn,{id:"necessary",checked:a.necessary,disabled:!0})]}),s.jsx(ei,{}),s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsxs("div",{className:"space-y-1",children:[s.jsx("h4",{className:"text-sm font-medium text-gray-900",children:"Cookies analÃticos"}),s.jsx("p",{className:"text-sm text-gray-500",children:"Ajudam-nos a entender como os visitantes interagem com o site, fornecendo informações sobre métricas como número de visitantes e páginas visualizadas."})]}),s.jsx(Vn,{id:"analytics",checked:a.analytics,onCheckedChange:m=>u("analytics",m)})]}),s.jsx(ei,{}),s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsxs("div",{className:"space-y-1",children:[s.jsx("h4",{className:"text-sm font-medium text-gray-900",children:"Cookies de marketing"}),s.jsx("p",{className:"text-sm text-gray-500",children:"Usados para rastrear visitantes em sites. A intenção é exibir anúncios relevantes e envolventes para o usuário individual."})]}),s.jsx(Vn,{id:"marketing",checked:a.marketing,onCheckedChange:m=>u("marketing",m)})]}),s.jsx(ei,{}),s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsxs("div",{className:"space-y-1",children:[s.jsx("h4",{className:"text-sm font-medium text-gray-900",children:"Cookies de preferências"}),s.jsx("p",{className:"text-sm text-gray-500",children:"Permitem que o site se lembre de informações que mudam a forma como o site se comporta ou aparece, como seu idioma preferido ou a região em que você está."})]}),s.jsx(Vn,{id:"preferences",checked:a.preferences,onCheckedChange:m=>u("preferences",m)})]})]}),s.jsxs(G0,{children:[s.jsx(W,{variant:"outline",onClick:()=>n(!1),children:"Cancelar"}),s.jsx(W,{onClick:c,children:"Salvar preferências"})]})]})});return e?s.jsxs(s.Fragment,{children:[d(),f()]}):null}function sRe(){const[e,t]=b.useState(!1);return localStorage.getItem("cookieConsent")==="true"?s.jsxs("div",{className:"fixed bottom-20 right-6 z-40",children:[s.jsx("button",{className:"bg-white border border-gray-200 rounded-full p-2 shadow-md hover:shadow-lg transition-shadow",onClick:()=>t(!0),"aria-label":"Configurações de cookies",children:s.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"w-5 h-5 text-gray-600",children:[s.jsx("path",{d:"M12 2a10 10 0 1 0 10 10 4 4 0 0 1-5-5 4 4 0 0 1-5-5"}),s.jsx("path",{d:"M8.5 8.5v.01"}),s.jsx("path",{d:"M16 15.5v.01"}),s.jsx("path",{d:"M12 12v.01"})]})}),s.jsx(LC,{open:e,onOpenChange:t,children:s.jsxs(q0,{children:[s.jsxs(H0,{children:[s.jsx(K0,{children:"Gerenciar configurações de cookies"}),s.jsx(X0,{children:"Você pode ajustar suas preferências de cookies a qualquer momento."})]}),s.jsxs("div",{className:"mt-4",children:[s.jsx(W,{variant:"secondary",className:"w-full",onClick:()=>{localStorage.removeItem("cookieConsent"),localStorage.removeItem("cookiePreferences"),window.location.reload()},children:"Redefinir configurações de cookies"}),s.jsx("div",{className:"mt-4 text-sm text-gray-500",children:s.jsxs("p",{children:["Para mais informações sobre como usamos cookies, visite nossa"," ",s.jsx(Ny,{href:"/politica-de-privacidade",className:"text-primary underline",children:"PolÃtica de Privacidade"}),"."]})})]}),s.jsx(G0,{children:s.jsx(FC,{children:"Fechar"})})]})})]}):null}function iRe(){return _.useEffect(()=>{document.title="PolÃtica de Privacidade | ConfecXpress"},[]),s.jsxs(s.Fragment,{children:[s.jsx(j9,{}),s.jsx("main",{className:"container mx-auto px-4 py-8 max
804-w-4xl",children:s.jsxs("div",{className:"bg-white shadow-md rounded-lg p-6 mb-10",children:[s.jsx("h1",{className:"text-3xl font-bold text-primary mb-6",children:"PolÃtica de Privacidade"}),s.jsxs("div",{className:"prose prose-lg max-w-none",children:[s.jsxs("p",{className:"text-gray-600 mb-4",children:["Ãltima atualização: ",new Date().toLocaleDateString("pt-BR",{day:"numeric",month:"long",year:"numeric"})]}),s.jsx("h2",{className:"text-xl font-semibold mt-8 mb-4",children:"1. Introdução"}),s.jsx("p",{children:'A ConfecXpress ("nós", "nosso" ou "nossa") valoriza a sua privacidade e está comprometida em proteger seus dados pessoais. Esta PolÃtica de Privacidade descreve como coletamos, usamos e compartilhamos suas informações quando você visita ou utiliza nosso site confecxpress.replit.app ("Site"), bem como seus direitos de privacidade e como a lei protege você.'}),s.jsx("h2",{className:"text-xl font-semibold mt-8 mb-4",children:"2. Dados que Coletamos"}),s.jsx("p",{children:"Coletamos diferentes tipos de informações, incluindo:"}),s.jsxs("ul",{className:"list-disc pl-6 mb-6",children:[s.jsxs("li",{children:[s.jsx("strong",{children:"Dados de Identidade:"})," nome, e-mail, número de telefone, empresa."]}),s.jsxs("li",{children:[s.jsx("strong",{children:"Dados de Contato:"})," endereço de e-mail, número de telefone, WhatsApp."]}),s.jsxs("li",{children:[s.jsx("strong",{children:"Dados de Orçamentos:"})," informações que você nos fornece ao solicitar orçamentos, como tipo de produto, quantidade, tamanhos e cores."]}),s.jsxs("li",{children:[s.jsx("strong",{children:"Dados Técnicos:"})," endereço IP, tipo e versão do navegador, configuração de fuso horário, tipos e versões de plug-ins, sistema operacional e plataforma."]}),s.jsxs("li",{children:[s.jsx("strong",{children:"Dados de Uso:"})," informações sobre como você usa nosso site, produtos e serviços."]}),s.jsxs("li",{children:[s.jsx("strong",{children:"Dados de Marketing e Comunicação:"})," suas preferências quanto ao recebimento de marketing e outras comunicações."]})]}),s.jsx("h2",{className:"text-xl font-semibold mt-8 mb-4",children:"3. Como Coletamos seus Dados"}),s.jsx("p",{children:"Utilizamos diferentes métodos para coletar dados de e sobre você, incluindo:"}),s.jsxs("ul",{className:"list-disc pl-6 mb-6",children:[s.jsxs("li",{children:[s.jsx("strong",{children:"Interações diretas:"})," quando você preenche formulários, cria uma conta, solicita orçamentos ou se comunica conosco."]}),s.jsxs("li",{children:[s.jsx("strong",{children:"Tecnologias automatizadas:"})," enquanto você navega em nosso site, podemos coletar automaticamente dados técnicos e de uso usando cookies, logs de servidor e tecnologias similares."]}),s.jsxs("li",{children:[s.jsx("strong",{children:"Terceiros:"})," recebemos dados de provedores de análise como Google Analytics, plataformas de anúncios como Google Ads e redes sociais como Facebook."]})]}),s.jsx("h2",{className:"text-xl font-semibold mt-8 mb-4",children:"4. Como Usamos seus Dados"}),s.jsx("p",{children:"Usamos seus dados pessoais apenas quando a lei nos permite. Mais comumente, usaremos seus dados nas seguintes circunstâncias:"}),s.jsxs("ul",{className:"list-disc pl-6 mb-6",children:[s.jsx("li",{children:"Para fornecer nossos produtos e serviços."}),s.jsx("li",{children:"Para gerenciar nosso relacionamento com você."}),s.jsx("li",{children:"Para melhorar nosso site, produtos e serviços."}),s.jsx("li",{children:"Para fornecer conteúdo e anúncios personalizados."}),s.jsx("li",{children:"Para comunicar-se com você sobre informações que acreditamos serem de seu interesse."}),s.jsx("li",{children:"Para cumprir obrigações legais."})]}),s.jsx("h2",{className:"text-xl font-semibold mt-8 mb-4",children:"5. Cookies e Tecnologias Similares"}),s.jsx("p",{children:"Utilizamos cookies e tecnologias similares para melhorar sua experiência em nosso site e para entender como você o utiliza, o que nos ajuda a melhorar sua experiência. Você pode configurar seu navegador para recusar todos ou alguns cookies ou alertá-lo quando os sites definem ou acessam cookies."}),s.jsx("p",{children:"Usamos os seguintes tipos de cookies:"}),s.jsxs("ul",{className:"list-disc pl-6 mb-6",children:[s.jsxs("li",{children:[s.jsx("strong",{children:"Cookies Estritamente Necessários:"})," essenciais para permitir que você navegue pelo site e use suas funcionalidades."]}),s.jsxs("li",{children:[s.jsx("strong",{children:"Cookies AnalÃticos/de Desempenho:"})," permitem-nos reconhecer e contar o número de visitantes e ver como os visitantes navegam em nosso site."]}),s.jsxs("li",{children:[s.jsx("strong",{children:"Cookies de Funcionalidade:"})," reconhecem você quando retorna ao nosso site, permitindo personalizar conteúdo."]}),s.jsxs("li",{children:[s.jsx("strong",{children:"Cookies de Direcionamento:"})," registram sua visita ao nosso site, as páginas que visitou e os links que seguiu, usados para tornar os anúncios exibid
804os mais relevantes."]})]}),s.jsx("h2",{className:"text-xl font-semibold mt-8 mb-4",children:"6. Divulgação de seus Dados"}),s.jsx("p",{children:"Podemos compartilhar seus dados pessoais com as partes descritas abaixo:"}),s.jsxs("ul",{className:"list-disc pl-6 mb-6",children:[s.jsx("li",{children:"Prestadores de serviços que fornecem serviços de TI e administração de sistemas."}),s.jsx("li",{children:"Consultores profissionais, incluindo advogados, banqueiros, auditores e seguradores."}),s.jsx("li",{children:"Autoridades fiscais, reguladoras e outras autoridades."}),s.jsx("li",{children:"Terceiros para os quais podemos escolher vender, transferir ou fundir partes de nossos negócios ou ativos."})]}),s.jsx("p",{children:"Exigimos que todos os terceiros respeitem a segurança de seus dados pessoais e os tratem de acordo com a lei."}),s.jsx("h2",{className:"text-xl font-semibold mt-8 mb-4",children:"7. Segurança de Dados"}),s.jsx("p",{children:"Implementamos medidas de segurança apropriadas para prevenir que seus dados pessoais sejam acidentalmente perdidos, usados ou acessados de forma não autorizada, alterados ou divulgados."}),s.jsx("h2",{className:"text-xl font-semibold mt-8 mb-4",children:"8. Seus Direitos Legais"}),s.jsx("p",{children:"Sob determinadas circunstâncias, você tem direitos em relação aos seus dados pessoais, incluindo o direito de:"}),s.jsxs("ul",{className:"list-disc pl-6 mb-6",children:[s.jsx("li",{children:"Solicitar acesso aos seus dados pessoais."}),s.jsx("li",{children:"Solicitar a correção de seus dados pessoais."}),s.jsx("li",{children:"Solicitar a exclusão de seus dados pessoais."}),s.jsx("li",{children:"Opor-se ao processamento de seus dados pessoais."}),s.jsx("li",{children:"Solicitar a restrição do processamento de seus dados pessoais."}),s.jsx("li",{children:"Solicitar a transferência de seus dados pessoais."}),s.jsx("li",{children:"Retirar o consentimento."})]}),s.jsx("h2",{className:"text-xl font-semibold mt-8 mb-4",children:"9. Informações de Contato"}),s.jsx("p",{children:"Para exercer quaisquer dos direitos mencionados acima ou para fazer perguntas ou reclamações sobre esta PolÃtica de Privacidade e nossas práticas de privacidade, entre em contato conosco em:"}),s.jsxs("p",{children:[s.jsx("strong",{children:"E-mail:"})," [email protected]",s.jsx("br",{}),s.jsx("strong",{children:"Telefone:"})," (11) 5197-6208",s.jsx("br",{}),s.jsx("strong",{children:"Endereço:"})," Avenida Brig Faria Lima 1811 Conj 1119/1120, São Paulo SP, 01452-001"]}),s.jsx("h2",{className:"text-xl font-semibold mt-8 mb-4",children:"10. Alterações nesta PolÃtica de Privacidade"}),s.jsx("p",{children:"Podemos atualizar esta polÃtica de privacidade periodicamente. A versão mais recente estará sempre disponÃvel em nosso site."})]})]})}),s.jsx(w9,{})]})}function oRe(){return s.jsxs(tH,{children:[s.jsx(ao,{path:"/",component:tRe}),s.jsx(ao,{path:"/admin",component:rRe}),s.jsx(yc,{path:"/admin/dashboard",component:Sg}),s.jsx(yc,{path:"/admin/quotes",component:Sg}),s.jsx(yc,{path:"/admin/orders",component:Sg}),s.jsx(yc,{path:"/admin/analytics",component:lOe}),s.jsx(yc,{path:"/admin/settings",component:Sg,adminOnly:!0}),s.jsx(yc,{path:"/admin/users",component:POe,adminOnly:!0}),s.jsx(ao,{path:"/politica-de-privacidade",component:iRe}),s.jsx(ao,{component:kY})]})}function lRe(){const[e,t]=b.useState(!0);return b.useEffect(()=>{const r=setTimeout(()=>{t(!1)},2e3);return()=>clearTimeout(r)},[]),s.jsx(U$,{client:hr,children:s.jsx(wY,{children:s.jsx(WX,{children:e?s.jsx(_Y,{}):s.jsxs(s.Fragment,{children:[s.jsx(yK,{}),s.jsx(EY,{}),s.jsx(oRe,{}),s.jsx(nRe,{}),s.jsx(J7,{}),s.jsx(aRe,{}),s.jsx(sRe,{}),s.jsx(K$,{}),s.jsx(NY,{}),s.jsx(TY,{})]})})})})}JI(document.getElementById("root")).render(s.jsx(U$,{client:hr,children:s.jsx(lRe,{})}));
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.