vendor: 4,263 bytes, lines 1-17
1var xF=Object.defineProperty;var TF=(t,e,n)=>e in t?xF(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var Xr=(t,e,n)=>TF(t,typeof e!="symbol"?e+"":e,n);(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();var rd=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function $e(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var ey={exports:{}},iu={};/** 2 * @license React 3 * react-jsx-runtime.production.js 4 * 5 * Copyright (c) Meta Platforms, Inc. and 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 OE;function SF(){if(OE)return iu;OE=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.fragment");function n(r,i,o){var s=null;if(o!==void 0&&(s=""+o),i.key!==void 0&&(s=""+i.key),"key"in i){o={};for(var u in i)u!=="key"&&(o[u]=i[u])}else o=i;return i=o.ref,{$$typeof:t,type:r,key:s,ref:i!==void 0?i:null,props:o}}return iu.Fragment=e,iu.jsx=n,iu.jsxs=n,iu}var DE;function AF(){return DE||(DE=1,ey.exports=SF()),ey.exports}var _=AF(),ty={exports:{}},Re={};/** 10 * @license React 11 * react.production.js 12 * 13 * Copyright (c) Meta Platforms, Inc. and 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 IE;function wF(){if(IE)return Re;IE=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),s=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),y=Symbol.iterator;function v(q){return q===null||typeof q!="object"?null:(q=y&&q[y]||q["@@iterator"],typeof q=="function"?q:null)}var x={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w=Object.assign,A={};function S(q,Z,re){this.props=q,this.context=Z,this.refs=A,this.updater=re||x}S.prototype.isReactComponent={},S.prototype.setState=function(q,Z){if(typeof q!="object"&&typeof q!="function"&&q!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,q,Z,"setState")},S.prototype.forceUpdate=function(q){this.updater.enqueueForceUpdate(this,q,"forceUpdate")};function C(){}C.prototype=S.prototype;function P(q,Z,re){this.props=q,this.context=Z,this.refs=A,this.updater=re||x}var M=P.prototype=new C;M.constructor=P,w(M,S.prototype),M.isPureReactComponent=!0;var O=Array.isArray,E={H:null,A:null,T:null,S:null,V:null},N=Object.prototype.hasOwnProperty;function D(q,Z,re,ae,he,xe){return re=xe.ref,{$$typeof:t,type:q,key:Z,ref:re!==void 0?re:null,props:xe}}function L(q,Z){return D(q.type,Z,void 0,void 0,void 0,q.props)}function U(q){return typeof q=="object"&&q!==null&&q.$$typeof===t}function F(q){var Z={"=":"=0",":":"=2"};return"$"+q.replace(/[=:]/g,function(re){return Z[re]})}var B=/\/+/g;function z(q,Z){return typeof q=="object"&&q!==null&&q.key!=null?F(""+q.key):Z.toString(36)}function W(){}function ne(q){switch(q.status){case"fulfilled":return q.value;case"rejected":throw q.reason;default:switch(typeof q.status=="string"?q.then(W,W):(q.status="pending",q.then(function(Z){q.status==="pending"&&(q.status="fulfilled",q.value=Z)},function(Z){q.status==="pending"&&(q.status="rejected",q.reason=Z)}
vendor: 4,796 bytes, line 17
17)),q.status){case"fulfilled":return q.value;case"rejected":throw q.reason}}throw q}function J(q,Z,re,ae,he){var xe=typeof q;(xe==="undefined"||xe==="boolean")&&(q=null);var ve=!1;if(q===null)ve=!0;else switch(xe){case"bigint":case"string":case"number":ve=!0;break;case"object":switch(q.$$typeof){case t:case e:ve=!0;break;case p:return ve=q._init,J(ve(q._payload),Z,re,ae,he)}}if(ve)return he=he(q),ve=ae===""?"."+z(q,0):ae,O(he)?(re="",ve!=null&&(re=ve.replace(B,"$&/")+"/"),J(he,Z,re,"",function(de){return de})):he!=null&&(U(he)&&(he=L(he,re+(he.key==null||q&&q.key===he.key?"":(""+he.key).replace(B,"$&/")+"/")+ve)),Z.push(he)),1;ve=0;var xt=ae===""?".":ae+":";if(O(q))for(var Ne=0;Ne<q.length;Ne++)ae=q[Ne],xe=xt+z(ae,Ne),ve+=J(ae,Z,re,xe,he);else if(Ne=v(q),typeof Ne=="function")for(q=Ne.call(q),Ne=0;!(ae=q.next()).done;)ae=ae.value,xe=xt+z(ae,Ne++),ve+=J(ae,Z,re,xe,he);else if(xe==="object"){if(typeof q.then=="function")return J(ne(q),Z,re,ae,he);throw Z=String(q),Error("Objects are not valid as a React child (found: "+(Z==="[object Object]"?"object with keys {"+Object.keys(q).join(", ")+"}":Z)+"). If you meant to render a collection of children, use an array instead.")}return ve}function $(q,Z,re){if(q==null)return q;var ae=[],he=0;return J(q,ae,"","",function(xe){return Z.call(re,xe,he++)}),ae}function G(q){if(q._status===-1){var Z=q._result;Z=Z(),Z.then(function(re){(q._status===0||q._status===-1)&&(q._status=1,q._result=re)},function(re){(q._status===0||q._status===-1)&&(q._status=2,q._result=re)}),q._status===-1&&(q._status=0,q._result=Z)}if(q._status===1)return q._result.default;throw q._result}var te=typeof reportError=="function"?reportError:function(q){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Z=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof q=="object"&&q!==null&&typeof q.message=="string"?String(q.message):String(q),error:q});if(!window.dispatchEvent(Z))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",q);return}console.error(q)};function ue(){}return Re.Children={map:$,forEach:function(q,Z,re){$(q,function(){Z.apply(this,arguments)},re)},count:function(q){var Z=0;return $(q,function(){Z++}),Z},toArray:function(q){return $(q,function(Z){return Z})||[]},only:function(q){if(!U(q))throw Error("React.Children.only expected to receive a single React element child.");return q}},Re.Component=S,Re.Fragment=n,Re.Profiler=i,Re.PureComponent=P,Re.StrictMode=r,Re.Suspense=c,Re.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=E,Re.__COMPILER_RUNTIME={__proto__:null,c:function(q){return E.H.useMemoCache(q)}},Re.cache=function(q){return function(){return q.apply(null,arguments)}},Re.cloneElement=function(q,Z,re){if(q==null)throw Error("The argument must be a React element, but you passed "+q+".");var ae=w({},q.props),he=q.key,xe=void 0;if(Z!=null)for(ve in Z.ref!==void 0&&(xe=void 0),Z.key!==void 0&&(he=""+Z.key),Z)!N.call(Z,ve)||ve==="key"||ve==="__self"||ve==="__source"||ve==="ref"&&Z.ref===void 0||(ae[ve]=Z[ve]);var ve=arguments.length-2;if(ve===1)ae.children=re;else if(1<ve){for(var xt=Array(ve),Ne=0;Ne<ve;Ne++)xt[Ne]=arguments[Ne+2];ae.children=xt}return D(q.type,he,void 0,void 0,xe,ae)},Re.createContext=function(q){return q={$$typeof:s,_currentValue:q,_currentValue2:q,_threadCount:0,Provider:null,Consumer:null},q.Provider=q,q.Consumer={$$typeof:o,_context:q},q},Re.createElement=function(q,Z,re){var ae,he={},xe=null;if(Z!=null)for(ae in Z.key!==void 0&&(xe=""+Z.key),Z)N.call(Z,ae)&&ae!=="key"&&ae!=="__self"&&ae!=="__source"&&(he[ae]=Z[ae]);var ve=arguments.length-2;if(ve===1)he.children=re;else if(1<ve){for(var xt=Array(ve),Ne=0;Ne<ve;Ne++)xt[Ne]=arguments[Ne+2];he.children=xt}if(q&&q.defaultProps)for(ae in ve=q.defaultProps,ve)he[ae]===void 0&&(he[ae]=ve[ae]);return D(q,xe,void 0,void 0,null,he)},Re.createRef=function(){return{current:null}},Re.forwardRef=function(q){return{$$typeof:u,render:q}},Re.isValidElement=U,Re.lazy=function(q){return{$$typeof:p,_payload:{_status:-1,_result:q},_init:G}},Re.memo=function(q,Z){return{$$typeof:f,type:q,compare:Z===void 0?null:Z}},Re.startTransition=function(q){var Z=E.T,re={};E.T=re;try{var ae=q(),he=E.S;he!==null&&he(re,ae),typeof ae=="object"&&ae!==null&&typeof ae.then=="function"&&ae.then(ue,te)}catch(xe){te(xe)}finally{E.T=Z}},Re.unstable_useCacheRefresh=function(){return E.H.useCacheRefresh()},Re.use=function(q){return E.H.use(q)},Re.useActionState=function(q,Z,re){return E.H.useActionState(q,Z,re)},Re.useCallback=function(q,Z){return E.H.useCallback(q,Z)},Re.useContext=function(q){return E.H.useContext(q)},Re.useDebugValue=function(){},Re.useDeferredValue=function(q,Z){return E.H.useDeferredValue(q,Z)},Re.useEffect=function(q,Z,re){var ae=E.H;
vendor: 11,510 bytes, lines 17-41
17if(typeof re=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return ae.useEffect(q,Z)},Re.useId=function(){return E.H.useId()},Re.useImperativeHandle=function(q,Z,re){return E.H.useImperativeHandle(q,Z,re)},Re.useInsertionEffect=function(q,Z){return E.H.useInsertionEffect(q,Z)},Re.useLayoutEffect=function(q,Z){return E.H.useLayoutEffect(q,Z)},Re.useMemo=function(q,Z){return E.H.useMemo(q,Z)},Re.useOptimistic=function(q,Z){return E.H.useOptimistic(q,Z)},Re.useReducer=function(q,Z,re){return E.H.useReducer(q,Z,re)},Re.useRef=function(q){return E.H.useRef(q)},Re.useState=function(q){return E.H.useState(q)},Re.useSyncExternalStore=function(q,Z,re){return E.H.useSyncExternalStore(q,Z,re)},Re.useTransition=function(){return E.H.useTransition()},Re.version="19.1.1",Re}var kE;function HS(){return kE||(kE=1,ty.exports=wF()),ty.exports}var k=HS();const j=$e(k);var ny={exports:{}},ou={},ry={exports:{}},iy={};/** 18 * @license React 19 * scheduler.production.js 20 * 21 * Copyright (c) Meta Platforms, Inc. and 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 */var LE;function _F(){return LE||(LE=1,(function(t){function e($,G){var te=$.length;$.push(G);e:for(;0<te;){var ue=te-1>>>1,q=$[ue];if(0<i(q,G))$[ue]=G,$[te]=q,te=ue;else break e}}function n($){return $.length===0?null:$[0]}function r($){if($.length===0)return null;var G=$[0],te=$.pop();if(te!==G){$[0]=te;e:for(var ue=0,q=$.length,Z=q>>>1;ue<Z;){var re=2*(ue+1)-1,ae=$[re],he=re+1,xe=$[he];if(0>i(ae,te))he<q&&0>i(xe,ae)?($[ue]=xe,$[he]=te,ue=he):($[ue]=ae,$[re]=te,ue=re);else if(he<q&&0>i(xe,te))$[ue]=xe,$[he]=te,ue=he;else break e}}return G}function i($,G){var te=$.sortIndex-G.sortIndex;return te!==0?te:$.id-G.id}if(t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var o=performance;t.unstable_now=function(){return o.now()}}else{var s=Date,u=s.now();t.unstable_now=function(){return s.now()-u}}var c=[],f=[],p=1,y=null,v=3,x=!1,w=!1,A=!1,S=!1,C=typeof setTimeout=="function"?setTimeout:null,P=typeof clearTimeout=="function"?clearTimeout:null,M=typeof setImmediate<"u"?setImmediate:null;function O($){for(var G=n(f);G!==null;){if(G.callback===null)r(f);else if(G.startTime<=$)r(f),G.sortIndex=G.expirationTime,e(c,G);else break;G=n(f)}}function E($){if(A=!1,O($),!w)if(n(c)!==null)w=!0,N||(N=!0,z());else{var G=n(f);G!==null&&J(E,G.startTime-$)}}var N=!1,D=-1,L=5,U=-1;function F(){return S?!0:!(t.unstable_now()-U<L)}function B(){if(S=!1,N){var $=t.unstable_now();U=$;var G=!0;try{e:{w=!1,A&&(A=!1,P(D),D=-1),x=!0;var te=v;try{t:{for(O($),y=n(c);y!==null&&!(y.expirationTime>$&&F());){var ue=y.callback;if(typeof ue=="function"){y.callback=null,v=y.priorityLevel;var q=ue(y.expirationTime<=$);if($=t.unstable_now(),typeof q=="function"){y.callback=q,O($),G=!0;break t}y===n(c)&&r(c),O($)}else r(c);y=n(c)}if(y!==null)G=!0;else{var Z=n(f);Z!==null&&J(E,Z.startTime-$),G=!1}}break e}finally{y=null,v=te,x=!1}G=void 0}}finally{G?z():N=!1}}}var z;if(typeof M=="function")z=function(){M(B)};else if(typeof MessageChannel<"u"){var W=new MessageChannel,ne=W.port2;W.port1.onmessage=B,z=function(){ne.postMessage(null)}}else z=function(){C(B,0)};function J($,G){D=C(function(){$(t.unstable_now())},G)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function($){$.callback=null},t.unstable_forceFrameRate=function($){0>$||125<$?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):L=0<$?Math.floor(1e3/$):5},t.unstable_getCurrentPriorityLevel=function(){return v},t.unstable_next=function($){switch(v){case 1:case 2:case 3:var G=3;break;default:G=v}var te=v;v=G;try{return $()}finally{v=te}},t.unstable_requestPaint=function(){S=!0},t.unstable_runWithPriority=function($,G){switch($){case 1:case 2:case 3:case 4:case 5:break;default:$=3}var te=v;v=$;try{return G()}finally{v=te}},t.unstable_scheduleCallback=function($,G,te){var ue=t.unstable_now();switch(typeof te=="object"&&te!==null?(te=te.delay,te=typeof te=="number"&&0<te?ue+te:ue):te=ue,$){case 1:var q=-1;break;case 2:q=250;break;case 5:q=1073741823;break;case 4:q=1e4;break;default:q=5e3}return q=te+q,$={id:p++,callback:G,priorityLevel:$,startTime:te,expirationTime:q,sortIndex:-1},te>ue?($.sortIndex=te,e(f,$),n(c)===null&&$===n(f)&&(A?(P(D),D=-1):A=!0,J(E,te-ue))):($.sortIndex=q,e(c,$),w||x||(w=!0,N||(N=!0,z()))),$},t.unstable_shouldYield=F,t.unstable_wrapCallback=function($){var G=v;return function(){var te=v;v=G;try{return $.apply(this,arguments)}finally{v=te}}}})(iy)),iy}var UE;function CF(){return UE||(UE=1,ry.exports=_F()),ry.exports}var oy={exports:{}},Zt={};/** 26 * @license React 27 * react-dom.production.js 28 * 29 * Copyright (c) Meta Platforms, Inc. and 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 qE;function EF(){if(qE)return Zt;qE=1;var t=HS();function e(c){var f="https://react.dev/errors/"+c;if(1<arguments.length){f+="?args[]="+encodeURIComponent(arguments[1]);for(var p=2;p<arguments.length;p++)f+="&args[]="+encodeURIComponent(arguments[p])}return"Minified React error #"+c+"; visit "+f+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var r={d:{f:n,r:function(){throw Error(e(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},i=Symbol.for("react.portal");function o(c,f,p){var y=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:i,key:y==null?null:""+y,children:c,containerInfo:f,implementation:p}}var s=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function u(c,f){if(c==="font")return"";if(typeof f=="string")return f==="use-credentials"?f:""}return Zt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,Zt.createPortal=function(c,f){var p=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!f||f.nodeType!==1&&f.nodeType!==9&&f.nodeType!==11)throw Error(e(299));return o(c,f,null,p)},Zt.flushSync=function(c){var f=s.T,p=r.p;try{if(s.T=null,r.p=2,c)return c()}finally{s.T=f,r.p=p,r.d.f()}},Zt.preconnect=function(c,f){typeof c=="string"&&(f?(f=f.crossOrigin,f=typeof f=="string"?f==="use-credentials"?f:"":void 0):f=null,r.d.C(c,f))},Zt.prefetchDNS=function(c){typeof c=="string"&&r.d.D(c)},Zt.preinit=function(c,f){if(typeof c=="string"&&f&&typeof f.as=="string"){var p=f.as,y=u(p,f.crossOrigin),v=typeof f.integrity=="string"?f.integrity:void 0,x=typeof f.fetchPriority=="string"?f.fetchPriority:void 0;p==="style"?r.d.S(c,typeof f.precedence=="string"?f.precedence:void 0,{crossOrigin:y,integrity:v,fetchPriority:x}):p==="script"&&r.d.X(c,{crossOrigin:y,integrity:v,fetchPriority:x,nonce:typeof f.nonce=="string"?f.nonce:void 0})}},Zt.preinitModule=function(c,f){if(typeof c=="string")if(typeof f=="object"&&f!==null){if(f.as==null||f.as==="script"){var p=u(f.as,f.crossOrigin);r.d.M(c,{crossOrigin:p,integrity:typeof f.integrity=="string"?f.integrity:void 0,nonce:typeof f.nonce=="string"?f.nonce:void 0})}}else f==null&&r.d.M(c)},Zt.preload=function(c,f){if(typeof c=="string"&&typeof f=="object"&&f!==null&&typeof f.as=="string"){var p=f.as,y=u(p,f.crossOrigin);r.d.L(c,p,{crossOrigin:y,integrity:typeof f.integrity=="string"?f.integrity:void 0,nonce:typeof f.nonce=="string"?f.nonce:void 0,type:typeof f.type=="string"?f.type:void 0,fetchPriority:typeof f.fetchPriority=="string"?f.fetchPriority:void 0,referrerPolicy:typeof f.referrerPolicy=="string"?f.referrerPolicy:void 0,imageSrcSet:typeof f.imageSrcSet=="string"?f.imageSrcSet:void 0,imageSizes:typeof f.imageSizes=="string"?f.imageSizes:void 0,media:typeof f.media=="string"?f.media:void 0})}},Zt.preloadModule=function(c,f){if(typeof c=="string")if(f){var p=u(f.as,f.crossOrigin);r.d.m(c,{as:typeof f.as=="string"&&f.as!=="script"?f.as:void 0,crossOrigin:p,integrity:typeof f.integrity=="string"?f.integrity:void 0})}else r.d.m(c)},Zt.requestFormReset=function(c){r.d.r(c)},Zt.unstable_batchedUpdates=function(c,f){return c(f)},Zt.useFormState=function(c,f,p){return s.H.useFormState(c,f,p)},Zt.useFormStatus=function(){return s.H.useHostTransitionStatus()},Zt.version="19.1.1",Zt}var BE;function MF(){if(BE)return oy.exports;BE=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}return t(),oy.exports=EF(),oy.exports}/** 34 * @license React 35 * react-dom-client.production.js 36 * 37 * Copyright (c) Meta Platforms, Inc. and affiliates. 38 * 39 * This source code is licensed under the MIT license found in the 40 * LICENSE file in the root directory of this source tree. 41 */var $E;function PF(){if($E)return ou;$E=1;var t=CF(),e=HS(),n=MF();function r(a){var l="https://react.dev/errors/"+a;if(1<arguments.length){l+="?args[]="+encodeURIComponent(arguments[1]);for(var d=2;d<arguments.length;d++)l+="&args[]="+encodeURIComponent(arguments[d])}return"Minified React error #"+a+"; visit "+l+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(a){return!(!a||a.nodeType!==1&&a.nodeType!==9&&a.nodeType!==11)}function o(a){var l=a,d=a;if(a.alternate)for(;l.return;)l=l.return;else{a=l;do l=a,(l.flags&4098)!==0&&(d=l.return),a=l.return;while(a)}return l.tag===3?d:null}function s(a){if(a.tag===13){var l=a.memoizedState;if(l===null&&(a=a.alternate,a!==null&&(l=a.memoizedState)),l!==null)return l.dehydrated}return null}function u(a){if(o(a)!==a)throw Error(r(188))}function c(a){var l=a.alternate;if(!l){if(l=o(a),l===null)throw Error(r(188));return l!==a?null:a}for(var d=a,g=l;;){var b=d.return;if(b===null)break;var T=b.alternate;if(T===null){if(g=b.return,g!==null){d=g;continue}break}if(b.child===T.child){for(T=b.child;T;){if(T===d)return u(b),a;if(T===g)return u(b),l;T=T.sibling}throw Error(r(188))}if(d.return!==g.return)d=b,g=T;else{for(var R=!1,I=b.child;I;){if(I===d){R=!0,d=b,g=T;break}if(I===g){R=!0,g=b,d=T;break}I=I.sibling}if(!R){for(I=T.child;I;){if(I===d){R=!0,d=T,g=b;break}if(I===g){R=!0,g=T,d=b;break}I=I.sibling}if(!R)throw Error(r(189))}}if(d.alternate!==g)throw Error(r(190))}if(d.tag!==3)throw Error(r(188));return d.stateNode.current===d?a:l}function f(a){var l=a.tag;if(l===5||l===26||l===27||l===6)return a;for(a=a.child;a!==null;){if(l=f(a),l!==null)return l;a=a.sibling}return null}var p=Object.assign,y=Symbol.for("react.element"),v=Symbol.for("react.transitional.element"),x=Symbol.for("react.portal"),w=Symbol.for("react.fragment"),A=Symbol.for("react.strict_mode"),S=Symbol.for("react.profiler"),C=Symbol.for("react.provider"),P=Symbol.for("react.consumer"),M=Symbol.for("react.context"),O=Symbol.for("react.forward_ref"),E=Symbol.for("react.suspense"),N=Symbol.for("react.suspense_list"),D=Symbol.for("react.memo"),L=Symbol.for("react.lazy"),U=Symbol.for("react.activity"),F=Symbol.for("react.memo_cache_sentinel"),B=Symbol.iterator;function z(a){return a===null||typeof a!="object"?null:(a=B&&a[B]||a["@@iterator"],typeof a=="function"?a:null)}var W=Symbol.for("react.client.reference");function ne(a){if(a==null)return null;if(typeof a=="function")return a.$$typeof===W?null:a.displayName||a.name||null;
vendor: 15,433 bytes, lines 41-48
41if(typeof a=="string")return a;switch(a){case w:return"Fragment";case S:return"Profiler";case A:return"StrictMode";case E:return"Suspense";case N:return"SuspenseList";case U:return"Activity"}if(typeof a=="object")switch(a.$$typeof){case x:return"Portal";case M:return(a.displayName||"Context")+".Provider";case P:return(a._context.displayName||"Context")+".Consumer";case O:var l=a.render;return a=a.displayName,a||(a=l.displayName||l.name||"",a=a!==""?"ForwardRef("+a+")":"ForwardRef"),a;case D:return l=a.displayName||null,l!==null?l:ne(a.type)||"Memo";case L:l=a._payload,a=a._init;try{return ne(a(l))}catch{}}return null}var J=Array.isArray,$=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,G=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,te={pending:!1,data:null,method:null,action:null},ue=[],q=-1;function Z(a){return{current:a}}function re(a){0>q||(a.current=ue[q],ue[q]=null,q--)}function ae(a,l){q++,ue[q]=a.current,a.current=l}var he=Z(null),xe=Z(null),ve=Z(null),xt=Z(null);function Ne(a,l){switch(ae(ve,l),ae(xe,a),ae(he,null),l.nodeType){case 9:case 11:a=(a=l.documentElement)&&(a=a.namespaceURI)?aE(a):0;break;default:if(a=l.tagName,l=l.namespaceURI)l=aE(l),a=sE(l,a);else switch(a){case"svg":a=1;break;case"math":a=2;break;default:a=0}}re(he),ae(he,a)}function de(){re(he),re(xe),re(ve)}function Ee(a){a.memoizedState!==null&&ae(xt,a);var l=he.current,d=sE(l,a.type);l!==d&&(ae(xe,a),ae(he,d))}function Me(a){xe.current===a&&(re(he),re(xe)),xt.current===a&&(re(xt),Ql._currentValue=te)}var ce=Object.prototype.hasOwnProperty,nt=t.unstable_scheduleCallback,Le=t.unstable_cancelCallback,Tt=t.unstable_shouldYield,St=t.unstable_requestPaint,lt=t.unstable_now,mr=t.unstable_getCurrentPriorityLevel,Dr=t.unstable_ImmediatePriority,oo=t.unstable_UserBlockingPriority,Nn=t.unstable_NormalPriority,Ir=t.unstable_LowPriority,oa=t.unstable_IdlePriority,Vc=t.log,jc=t.unstable_setDisableYieldValue,sl=null,vn=null;function yi(a){if(typeof Vc=="function"&&jc(a),vn&&typeof vn.setStrictMode=="function")try{vn.setStrictMode(sl,a)}catch{}}var bn=Math.clz32?Math.clz32:aj,ij=Math.log,oj=Math.LN2;function aj(a){return a>>>=0,a===0?32:31-(ij(a)/oj|0)|0}var Fc=256,Hc=4194304;function ao(a){var l=a&42;if(l!==0)return l;switch(a&-a){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return a&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return a&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return a}}function Gc(a,l,d){var g=a.pendingLanes;if(g===0)return 0;var b=0,T=a.suspendedLanes,R=a.pingedLanes;a=a.warmLanes;var I=g&134217727;return I!==0?(g=I&~T,g!==0?b=ao(g):(R&=I,R!==0?b=ao(R):d||(d=I&~a,d!==0&&(b=ao(d))))):(I=g&~T,I!==0?b=ao(I):R!==0?b=ao(R):d||(d=g&~a,d!==0&&(b=ao(d)))),b===0?0:l!==0&&l!==b&&(l&T)===0&&(T=b&-b,d=l&-l,T>=d||T===32&&(d&4194048)!==0)?l:b}function ll(a,l){return(a.pendingLanes&~(a.suspendedLanes&~a.pingedLanes)&l)===0}function sj(a,l){switch(a){case 1:case 2:case 4:case 8:case 64:return l+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return l+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Fw(){var a=Fc;return Fc<<=1,(Fc&4194048)===0&&(Fc=256),a}function Hw(){var a=Hc;return Hc<<=1,(Hc&62914560)===0&&(Hc=4194304),a}function Fp(a){for(var l=[],d=0;31>d;d++)l.push(a);return l}function ul(a,l){a.pendingLanes|=l,l!==268435456&&(a.suspendedLanes=0,a.pingedLanes=0,a.warmLanes=0)}function lj(a,l,d,g,b,T){var R=a.pendingLanes;a.pendingLanes=d,a.suspendedLanes=0,a.pingedLanes=0,a.warmLanes=0,a.expiredLanes&=d,a.entangledLanes&=d,a.errorRecoveryDisabledLanes&=d,a.shellSuspendCounter=0;var I=a.entanglements,V=a.expirationTimes,X=a.hiddenUpdates;for(d=R&~d;0<d;){var oe=31-bn(d),le=1<<oe;I[oe]=0,V[oe]=-1;var Q=X[oe];if(Q!==null)for(X[oe]=null,oe=0;oe<Q.length;oe++){var ee=Q[oe];ee!==null&&(ee.lane&=-536870913)}d&=~le}g!==0&&Gw(a,g,0),T!==0&&b===0&&a.tag!==0&&(a.suspendedLanes|=T&~(R&~l))}function Gw(a,l,d){a.pendingLanes|=l,a.suspendedLanes&=~l;var g=31-bn(l);a.entangledLanes|=l,a.entanglements[g]=a.entanglements[g]|1073741824|d&4194090}function zw(a,l){var d=a.entangledLanes|=l;for(a=a.entanglements;d;){var g=31-bn(d),b=1<<g;b&l|a[g]&l&&(a[g]|=l),d&=~b}}function Hp(a){switch(a){case 2:a=1;break;case 8:a=4;break;case 32:a=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:a=128;break;case 268435456:a=134217728;break;default:a=0}return a}function Gp(a){return a&=-a,2<a?8<a?(a&134217727)!==0?32:268435456:8:2}function Kw(){var a=G.p;return a!==0?a:(a=window.event,a===void 0?32:CE(a.type))}function uj(a,l){var d=G.p;try{return G.p=a,l()}finally{G.p=d}}var vi=Math.random().toString(36).slice(2),Xt="__reactFiber$"+vi,fn="__reactProps$"+vi,aa="__reactContainer$"+vi,zp="__reactEvents$"+vi,cj="__reactListeners$"+vi,fj="__reactHandles$"+vi,Yw="__reactResources$"+vi,cl="__reactMarker$"+vi;function Kp(a){delete a[Xt],delete a[fn],delete a[zp],delete a[cj],delete a[fj]}function sa(a){var l=a[Xt];if(l)return l;for(var d=a.parentNode;d;){if(l=d[aa]||d[Xt]){if(d=l.alternate,l.child!==null||d!==null&&d.child!==null)for(a=fE(a);a!==null;){if(d=a[Xt])return d;a=fE(a)}return l}a=d,d=a.parentNode}return null}function la(a){if(a=a[Xt]||a[aa]){var l=a.tag;if(l===5||l===6||l===13||l===26||l===27||l===3)return a}return null}function fl(a){var l=a.tag;if(l===5||l===26||l===27||l===6)return a.stateNode;throw Error(r(33))}function ua(a){var l=a[Yw];return l||(l=a[Yw]={hoistableStyles:new Map,hoistableScripts:new Map}),l}function Ut(a){a[cl]=!0}var Ww=new Set,Xw={};function so(a,l){ca(a,l),ca(a+"Capture",l)}function ca(a,l){for(Xw[a]=l,a=0;a<l.length;a++)Ww.add(l[a])}var dj=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Jw={},Zw={};function hj(a){return ce.call(Zw,a)?!0:ce.call(Jw,a)?!1:dj.test(a)?Zw[a]=!0:(Jw[a]=!0,!1)}function zc(a,l,d){if(hj(l))if(d===null)a.removeAttribute(l);else{switch(typeof d){case"undefined":case"function":case"symbol":a.removeAttribute(l);return;case"boolean":var g=l.toLowerCase().slice(0,5);if(g!=="data-"&&g!=="aria-"){a.removeAttribute(l);return}}a.setAttribute(l,""+d)}}function Kc(a,l,d){if(d===null)a.removeAttribute(l);else{switch(typeof d){case"undefined":case"function":case"symbol":case"boolean":a.removeAttribute(l);return}a.setAttribute(l,""+d)}}function kr(a,l,d,g){if(g===null)a.removeAttribute(d);else{switch(typeof g){case"undefined":case"function":case"symbol":case"boolean":a.removeAttribute(d);return}a.setAttributeNS(l,d,""+g)}}var Yp,Qw;function fa(a){if(Yp===void 0)try{throw Error()}catch(d){var l=d.stack.trim().match(/\n( *(at )?)/);Yp=l&&l[1]||"",Qw=-1<d.stack.indexOf(` 42 at`)?" (<anonymous>)":-1<d.stack.indexOf("@")?"@unknown:0:0":""}return` 43`+Yp+a+Qw}var Wp=!1;function Xp(a,l){if(!a||Wp)return"";Wp=!0;var d=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var g={DetermineComponentFrameRoot:function(){try{if(l){var le=function(){throw Error()};if(Object.defineProperty(le.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(le,[])}catch(ee){var Q=ee}Reflect.construct(a,[],le)}else{try{le.call()}catch(ee){Q=ee}a.call(le.prototype)}}else{try{throw Error()}catch(ee){Q=ee}(le=a())&&typeof le.catch=="function"&&le.catch(function(){})}}catch(ee){if(ee&&Q&&typeof ee.stack=="string")return[ee.stack,Q.stack]}return[null,null]}};g.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var b=Object.getOwnPropertyDescriptor(g.DetermineComponentFrameRoot,"name");b&&b.configurable&&Object.defineProperty(g.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var T=g.DetermineComponentFrameRoot(),R=T[0],I=T[1];if(R&&I){var V=R.split(` 44`),X=I.split(` 45`);for(b=g=0;g<V.length&&!V[g].includes("DetermineComponentFrameRoot");)g++;for(;b<X.length&&!X[b].includes("DetermineComponentFrameRoot");)b++;if(g===V.length||b===X.length)for(g=V.length-1,b=X.length-1;1<=g&&0<=b&&V[g]!==X[b];)b--;for(;1<=g&&0<=b;g--,b--)if(V[g]!==X[b]){if(g!==1||b!==1)do if(g--,b--,0>b||V[g]!==X[b]){var oe=` 46`+V[g].replace(" at new "," at ");return a.displayName&&oe.includes("<anonymous>")&&(oe=oe.replace("<anonymous>",a.displayName)),oe}while(1<=g&&0<=b);break}}}finally{Wp=!1,Error.prepareStackTrace=d}return(d=a?a.displayName||a.name:"")?fa(d):""}function pj(a){switch(a.tag){case 26:case 27:case 5:return fa(a.type);case 16:return fa("Lazy");case 13:return fa("Suspense");case 19:return fa("SuspenseList");case 0:case 15:return Xp(a.type,!1);case 11:return Xp(a.type.render,!1);case 1:return Xp(a.type,!0);case 31:return fa("Activity");default:return""}}function e1(a){try{var l="";do l+=pj(a),a=a.return;while(a);return l}catch(d){return` 47Error generating stack: `+d.message+` 48`+d.stack}}function On(a){switch(typeof a){case"bigint":case"boolean":case"number":case"string":case"undefined":return a;case"object":return a;default:return""}}function t1(a){var l=a.type;return(a=a.nodeName)&&a.toLowerCase()==="input"&&(l==="checkbox"||l==="radio")}function mj(a){var l=t1(a)?"checked":"value",d=Object.getOwnPropertyDescriptor(a.constructor.prototype,l),g=""+a[l];if(!a.hasOwnProperty(l)&&typeof d<"u"&&typeof d.get=="function"&&typeof d.set=="function"){var b=d.get,T=d.set;return Object.defineProperty(a,l,{configurable:!0,get:function(){return b.call(this)},set:function(R){g=""+R,T.call(this,R)}}),Object.defineProperty(a,l,{enumerable:d.enumerable}),{getValue:function(){return g},setValue:function(R){g=""+R},stopTracking:function(){a._valueTracker=null,delete a[l]}}}}function Yc(a){a._valueTracker||(a._valueTracker=mj(a))}function n1(a){if(!a)return!1;var l=a._valueTracker;if(!l)return!0;var d=l.getValue(),g="";return a&&(g=t1(a)?a.checked?"true":"false":a.value),a=g,a!==d?(l.setValue(a),!0):!1}function Wc(a){if(a=a||(typeof document<"u"?document:void 0),typeof a>"u")return null;try{return a.activeElement||a.body}catch{return a.body}}var gj=/[\n"\\]/g;function Dn(a){return a.replace(gj,function(l){return"\\"+l.charCodeAt(0).toString(16)+" "})}function Jp(a,l,d,g,b,T,R,I){a.name="",R!=null&&typeof R!="function"&&typeof R!="symbol"&&typeof R!="boolean"?a.type=R:a.removeAttribute("type"),l!=null?R==="number"?(l===0&&a.value===""||a.value!=l)&&(a.value=""+On(l)):a.value!==""+On(l)&&(a.value=""+On(l)):R!=="submit"&&R!=="reset"||a.removeAttribute("value"),l!=null?Zp(a,R,On(l)):d!=null?Zp(a,R,On(d)):g!=null&&a.removeAttribute("value"),b==null&&T!=null&&(a.defaultChecked=!!T),b!=null&&(a.checked=b&&typeof b!="function"&&typeof b!="symbol"),I!=null&&typeof I!="function"&&typeof I!="symbol"&&typeof I!="boolean"?a.name=""+On(I):a.removeAttribute("name")}function r1(a,l,d,g,b,T,R,I){if(T!=null&&typeof T!="function"&&typeof T!="symbol"&&typeof T!="boolean"&&(a.type=T),l!=null||d!=null){if(!(T!=="submit"&&T!=="reset"||l!=null))return;d=d!=null?""+On(d):"",l=l!=null?""+On(l):d,I||l===a.value||(a.value=l),a.defaultValue=l}g=g??b,g=typeof g!="function"&&typeof g!="symbol"&&!!g,a.checked=I?a.checked:!!g,a.defaultChecked=!!g,R!=null&&typeof R!="function"&&typeof R!="symbol"&&typeof R!="boolean"&&(a.name=R)}function Zp(a,l,d){l==="number"&&Wc(a.ownerDocument)===a||a.defaultValue===""+d||(a.defaultValue=""+d)}function da(a,l,d,g){if(a=a.options,l){l={};for(var b=0;b<d.length;b++)l["$"+d[b]]=!0;for(d=0;d<a.length;d++)b=l.hasOwnProperty("$"+a[d].value),a[d].selected!==b&&(a[d].selected=b),b&&g&&(a[d].defaultSelected=!0)}else{for(d=""+On(d),l=null,b=0;b<a.length;b++){if(a[b].value===d){a[b].selected=!0,g&&(a[b].defaultSelected=!0);return}l!==null||a[b].disabled||(l=a[b])}l!==null&&(l.selected=!0)}}function i1(a,l,d){if(l!=null&&(l=""+On(l),l!==a.value&&(a.value=l),d==null)){a.defaultValue!==l&&(a.defaultValue=l);return}a.defaultValue=d!=null?""+On(d):""}function o1(a,l,d,g){if(l==null){if(g!=null){if(d!=null)throw Error(r(92));if(J(g)){if(1<g.length)throw Error(r(93));g=g[0]}d=g}d==null&&(d=""),l=d}d=On(l),a.defaultValue=d,g=a.textContent,g===d&&g!==""&&g!==null&&(a.value=g)}function ha(a,l){if(l){var d=a.firstChild;if(d&&d===a.lastChild&&d.nodeType===3){d.nodeValue=l;return}}a.textContent=l}var yj=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function a1(a,l,d){var g=l.indexOf("--")===0;d==null||typeof d=="boolean"||d===""?g?a.setProperty(l,""):l==="float"?a.cssFloat="":a[l]="":g?a.setProperty(l,d):typeof d!="number"||d===0||yj.has(l)?l==="float"?a.cssFloat=d:a[l]=(""+d).trim():a[l]=d+"px"}function s1(a,l,d){if(l!=null&&typeof l!="object")throw Error(r(62));if(a=a.style,d!=null){for(var g in d)!d.hasOwnProperty(g)||l!=null&&l.hasOwnProperty(g)||(g.indexOf("--")===0?a.setProperty(g,""):g==="float"?a.cssFloat="":a[g]="");for(var b in l)g=l[b],l.hasOwnProperty(b)&&d[b]!==g&&a1(a,b,g)}else for(var T in l)l.hasOwnProperty(T)&&a1(a,T,l[T])}function Qp(a){if(a.indexOf("-")===-1)return!1;switch(a){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var vj=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRen
48dering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),bj=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Xc(a){return bj.test(""+a)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":a}var em=null;function tm(a){return a=a.target||a.srcElement||window,a.correspondingUseElement&&(a=a.correspondingUseElement),a.nodeType===3?a.parentNode:a}var pa=null,ma=null;function l1(a){var l=la(a);if(l&&(a=l.stateNode)){var d=a[fn]||null;e:switch(a=l.stateNode,l.type){case"input":if(Jp(a,d.value,d.defaultValue,d.defaultValue,d.checked,d.defaultChecked,d.type,d.name),l=d.name,d.type==="radio"&&l!=null){for(d=a;d.parentNode;)d=d.parentNode;for(d=d.querySelectorAll('input[name="'+Dn(""+l)+'"][type="radio"]'),l=0;l<d.length;l++){var g=d[l];if(g!==a&&g.form===a.form){var b=g[fn]||null;if(!b)throw Error(r(90));Jp(g,b.value,b.defaultValue,b.defaultValue,b.checked,b.defaultChecked,b.type,b.name)}}for(l=0;l<d.length;l++)g=d[l],g.form===a.form&&n1(g)}break e;case"textarea":i1(a,d.value,d.defaultValue);break e;case"select":l=d.value,l!=null&&da(a,!!d.multiple,l,!1)}}}var nm=!1;function u1(a,l,d){if(nm)return a(l,d);nm=!0;try{var g=a(l);return g}finally{if(nm=!1,(pa!==null||ma!==null)&&(Lf(),pa&&(l=pa,a=ma,ma=pa=null,l1(l),a)))for(l=0;l<a.length;l++)l1(a[l])}}function dl(a,l){var d=a.stateNode;if(d===null)return null;var g=d[fn]||null;if(g===null)return null;d=g[l];e:switch(l){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(g=!g.disabled)||(a=a.type,g=!(a==="button"||a==="input"||a==="select"||a==="textarea")),a=!g;break e;default:a=!1}if(a)return null;if(d&&typeof d!="function")throw Error(r(231,l,typeof d));return d}var Lr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),rm=!1;if(Lr)try{var hl={};Object.defineProperty(hl,"passive",{get:function(){rm=!0}}),window.addEventListener("test",hl,hl),window.removeEventListener("test",hl,hl)}catch{rm=!1}var bi=null,im=null,Jc=null;function c1(){if(Jc)return Jc;var a,l=im,d=l.length,g,b="value"in bi?bi.value:bi.textContent,T=b.length;for(a=0;a<d&&l[a]===b[a];a++);var R=d-a;for(g=1;g<=R&&l[d-g]===b[T-g];g++);return Jc=b.slice(a,1<g?1-g:void 0)}function Zc(a){var l=a.keyCode;
vendor: 2,821 bytes, line 48
48return"charCode"in a?(a=a.charCode,a===0&&l===13&&(a=13)):a=l,a===10&&(a=13),32<=a||a===13?a:0}function Qc(){return!0}function f1(){return!1}function dn(a){function l(d,g,b,T,R){this._reactName=d,this._targetInst=b,this.type=g,this.nativeEvent=T,this.target=R,this.currentTarget=null;for(var I in a)a.hasOwnProperty(I)&&(d=a[I],this[I]=d?d(T):T[I]);return this.isDefaultPrevented=(T.defaultPrevented!=null?T.defaultPrevented:T.returnValue===!1)?Qc:f1,this.isPropagationStopped=f1,this}return p(l.prototype,{preventDefault:function(){this.defaultPrevented=!0;var d=this.nativeEvent;d&&(d.preventDefault?d.preventDefault():typeof d.returnValue!="unknown"&&(d.returnValue=!1),this.isDefaultPrevented=Qc)},stopPropagation:function(){var d=this.nativeEvent;d&&(d.stopPropagation?d.stopPropagation():typeof d.cancelBubble!="unknown"&&(d.cancelBubble=!0),this.isPropagationStopped=Qc)},persist:function(){},isPersistent:Qc}),l}var lo={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(a){return a.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ef=dn(lo),pl=p({},lo,{view:0,detail:0}),xj=dn(pl),om,am,ml,tf=p({},pl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:lm,button:0,buttons:0,relatedTarget:function(a){return a.relatedTarget===void 0?a.fromElement===a.srcElement?a.toElement:a.fromElement:a.relatedTarget},movementX:function(a){return"movementX"in a?a.movementX:(a!==ml&&(ml&&a.type==="mousemove"?(om=a.screenX-ml.screenX,am=a.screenY-ml.screenY):am=om=0,ml=a),om)},movementY:function(a){return"movementY"in a?a.movementY:am}}),d1=dn(tf),Tj=p({},tf,{dataTransfer:0}),Sj=dn(Tj),Aj=p({},pl,{relatedTarget:0}),sm=dn(Aj),wj=p({},lo,{animationName:0,elapsedTime:0,pseudoElement:0}),_j=dn(wj),Cj=p({},lo,{clipboardData:function(a){return"clipboardData"in a?a.clipboardData:window.clipboardData}}),Ej=dn(Cj),Mj=p({},lo,{data:0}),h1=dn(Mj),Pj={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Rj={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"},Nj={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Oj(a){var l=this.nativeEvent;return l.getModifierState?l.getModifierState(a):(a=Nj[a])?!!l[a]:!1}function lm(){return Oj}var Dj=p({},pl,{key:function(a){if(a.key){var l=Pj[a.key]||a.key;if(l!=="Unidentified")return l}
vendor: 5,019 bytes, line 48
48return a.type==="keypress"?(a=Zc(a),a===13?"Enter":String.fromCharCode(a)):a.type==="keydown"||a.type==="keyup"?Rj[a.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:lm,charCode:function(a){return a.type==="keypress"?Zc(a):0},keyCode:function(a){return a.type==="keydown"||a.type==="keyup"?a.keyCode:0},which:function(a){return a.type==="keypress"?Zc(a):a.type==="keydown"||a.type==="keyup"?a.keyCode:0}}),Ij=dn(Dj),kj=p({},tf,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),p1=dn(kj),Lj=p({},pl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:lm}),Uj=dn(Lj),qj=p({},lo,{propertyName:0,elapsedTime:0,pseudoElement:0}),Bj=dn(qj),$j=p({},tf,{deltaX:function(a){return"deltaX"in a?a.deltaX:"wheelDeltaX"in a?-a.wheelDeltaX:0},deltaY:function(a){return"deltaY"in a?a.deltaY:"wheelDeltaY"in a?-a.wheelDeltaY:"wheelDelta"in a?-a.wheelDelta:0},deltaZ:0,deltaMode:0}),Vj=dn($j),jj=p({},lo,{newState:0,oldState:0}),Fj=dn(jj),Hj=[9,13,27,32],um=Lr&&"CompositionEvent"in window,gl=null;Lr&&"documentMode"in document&&(gl=document.documentMode);var Gj=Lr&&"TextEvent"in window&&!gl,m1=Lr&&(!um||gl&&8<gl&&11>=gl),g1=" ",y1=!1;function v1(a,l){switch(a){case"keyup":return Hj.indexOf(l.keyCode)!==-1;case"keydown":return l.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function b1(a){return a=a.detail,typeof a=="object"&&"data"in a?a.data:null}var ga=!1;function zj(a,l){switch(a){case"compositionend":return b1(l);case"keypress":return l.which!==32?null:(y1=!0,g1);case"textInput":return a=l.data,a===g1&&y1?null:a;default:return null}}function Kj(a,l){if(ga)return a==="compositionend"||!um&&v1(a,l)?(a=c1(),Jc=im=bi=null,ga=!1,a):null;switch(a){case"paste":return null;case"keypress":if(!(l.ctrlKey||l.altKey||l.metaKey)||l.ctrlKey&&l.altKey){if(l.char&&1<l.char.length)return l.char;if(l.which)return String.fromCharCode(l.which)}return null;case"compositionend":return m1&&l.locale!=="ko"?null:l.data;default:return null}}var Yj={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 x1(a){var l=a&&a.nodeName&&a.nodeName.toLowerCase();return l==="input"?!!Yj[a.type]:l==="textarea"}function T1(a,l,d,g){pa?ma?ma.push(g):ma=[g]:pa=g,l=jf(l,"onChange"),0<l.length&&(d=new ef("onChange","change",null,d,g),a.push({event:d,listeners:l}))}var yl=null,vl=null;function Wj(a){tE(a,0)}function nf(a){var l=fl(a);if(n1(l))return a}function S1(a,l){if(a==="change")return l}var A1=!1;if(Lr){var cm;if(Lr){var fm="oninput"in document;if(!fm){var w1=document.createElement("div");w1.setAttribute("oninput","return;"),fm=typeof w1.oninput=="function"}cm=fm}else cm=!1;A1=cm&&(!document.documentMode||9<document.documentMode)}function _1(){yl&&(yl.detachEvent("onpropertychange",C1),vl=yl=null)}function C1(a){if(a.propertyName==="value"&&nf(vl)){var l=[];T1(l,vl,a,tm(a)),u1(Wj,l)}}function Xj(a,l,d){a==="focusin"?(_1(),yl=l,vl=d,yl.attachEvent("onpropertychange",C1)):a==="focusout"&&_1()}function Jj(a){if(a==="selectionchange"||a==="keyup"||a==="keydown")return nf(vl)}function Zj(a,l){if(a==="click")return nf(l)}function Qj(a,l){if(a==="input"||a==="change")return nf(l)}function e4(a,l){return a===l&&(a!==0||1/a===1/l)||a!==a&&l!==l}var xn=typeof Object.is=="function"?Object.is:e4;function bl(a,l){if(xn(a,l))return!0;if(typeof a!="object"||a===null||typeof l!="object"||l===null)return!1;var d=Object.keys(a),g=Object.keys(l);if(d.length!==g.length)return!1;for(g=0;g<d.length;g++){var b=d[g];if(!ce.call(l,b)||!xn(a[b],l[b]))return!1}return!0}function E1(a){for(;a&&a.firstChild;)a=a.firstChild;return a}function M1(a,l){var d=E1(a);a=0;for(var g;d;){if(d.nodeType===3){if(g=a+d.textContent.length,a<=l&&g>=l)return{node:d,offset:l-a};a=g}e:{for(;d;){if(d.nextSibling){d=d.nextSibling;break e}d=d.parentNode}d=void 0}d=E1(d)}}function P1(a,l){return a&&l?a===l?!0:a&&a.nodeType===3?!1:l&&l.nodeType===3?P1(a,l.parentNode):"contains"in a?a.contains(l):a.compareDocumentPosition?!!(a.compareDocumentPosition(l)&16):!1:!1}function R1(a){a=a!=null&&a.ownerDocument!=null&&a.ownerDocument.defaultView!=null?a.ownerDocument.defaultView:window;for(var l=Wc(a.document);l instanceof a.HTMLIFrameElement;){try{var d=typeof l.contentWindow.location.href=="string"}catch{d=!1}if(d)a=l.contentWindow;else break;l=Wc(a.document)}return l}function dm(a){var l=a&&a.nodeName&&a.nodeName.toLowerCase();return l&&(l==="input"&&(a.type==="text"||a.type==="search"||a.type==="tel"||a.type==="url"||a.type==="password")||l==="textarea"||a.contentEditable==="true")}var t4=Lr&&"documentMode"in document&&11>=document.documentMode,ya=null,hm=null,xl=null,pm=!1;function N1(a,l,d){var g=d.window===d?d.document:d.nodeType===9?d:d.ownerDocument;pm||ya==null||ya!==Wc(g)||(g=ya,"selectionStart"in g&&dm(g)?g={start:g.
vendor: 27,224 bytes, line 48
48selectionStart,end:g.selectionEnd}:(g=(g.ownerDocument&&g.ownerDocument.defaultView||window).getSelection(),g={anchorNode:g.anchorNode,anchorOffset:g.anchorOffset,focusNode:g.focusNode,focusOffset:g.focusOffset}),xl&&bl(xl,g)||(xl=g,g=jf(hm,"onSelect"),0<g.length&&(l=new ef("onSelect","select",null,l,d),a.push({event:l,listeners:g}),l.target=ya)))}function uo(a,l){var d={};return d[a.toLowerCase()]=l.toLowerCase(),d["Webkit"+a]="webkit"+l,d["Moz"+a]="moz"+l,d}var va={animationend:uo("Animation","AnimationEnd"),animationiteration:uo("Animation","AnimationIteration"),animationstart:uo("Animation","AnimationStart"),transitionrun:uo("Transition","TransitionRun"),transitionstart:uo("Transition","TransitionStart"),transitioncancel:uo("Transition","TransitionCancel"),transitionend:uo("Transition","TransitionEnd")},mm={},O1={};Lr&&(O1=document.createElement("div").style,"AnimationEvent"in window||(delete va.animationend.animation,delete va.animationiteration.animation,delete va.animationstart.animation),"TransitionEvent"in window||delete va.transitionend.transition);function co(a){if(mm[a])return mm[a];if(!va[a])return a;var l=va[a],d;for(d in l)if(l.hasOwnProperty(d)&&d in O1)return mm[a]=l[d];return a}var D1=co("animationend"),I1=co("animationiteration"),k1=co("animationstart"),n4=co("transitionrun"),r4=co("transitionstart"),i4=co("transitioncancel"),L1=co("transitionend"),U1=new Map,gm="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");gm.push("scrollEnd");function Qn(a,l){U1.set(a,l),so(l,[a])}var q1=new WeakMap;function In(a,l){if(typeof a=="object"&&a!==null){var d=q1.get(a);return d!==void 0?d:(l={value:a,source:l,stack:e1(l)},q1.set(a,l),l)}return{value:a,source:l,stack:e1(l)}}var kn=[],ba=0,ym=0;function rf(){for(var a=ba,l=ym=ba=0;l<a;){var d=kn[l];kn[l++]=null;var g=kn[l];kn[l++]=null;var b=kn[l];kn[l++]=null;var T=kn[l];if(kn[l++]=null,g!==null&&b!==null){var R=g.pending;R===null?b.next=b:(b.next=R.next,R.next=b),g.pending=b}T!==0&&B1(d,b,T)}}function of(a,l,d,g){kn[ba++]=a,kn[ba++]=l,kn[ba++]=d,kn[ba++]=g,ym|=g,a.lanes|=g,a=a.alternate,a!==null&&(a.lanes|=g)}function vm(a,l,d,g){return of(a,l,d,g),af(a)}function xa(a,l){return of(a,null,null,l),af(a)}function B1(a,l,d){a.lanes|=d;var g=a.alternate;g!==null&&(g.lanes|=d);for(var b=!1,T=a.return;T!==null;)T.childLanes|=d,g=T.alternate,g!==null&&(g.childLanes|=d),T.tag===22&&(a=T.stateNode,a===null||a._visibility&1||(b=!0)),a=T,T=T.return;return a.tag===3?(T=a.stateNode,b&&l!==null&&(b=31-bn(d),a=T.hiddenUpdates,g=a[b],g===null?a[b]=[l]:g.push(l),l.lane=d|536870912),T):null}function af(a){if(50<Gl)throw Gl=0,wg=null,Error(r(185));for(var l=a.return;l!==null;)a=l,l=a.return;return a.tag===3?a.stateNode:null}var Ta={};function o4(a,l,d,g){this.tag=a,this.key=d,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=l,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=g,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Tn(a,l,d,g){return new o4(a,l,d,g)}function bm(a){return a=a.prototype,!(!a||!a.isReactComponent)}function Ur(a,l){var d=a.alternate;return d===null?(d=Tn(a.tag,l,a.key,a.mode),d.elementType=a.elementType,d.type=a.type,d.stateNode=a.stateNode,d.alternate=a,a.alternate=d):(d.pendingProps=l,d.type=a.type,d.flags=0,d.subtreeFlags=0,d.deletions=null),d.flags=a.flags&65011712,d.childLanes=a.childLanes,d.lanes=a.lanes,d.child=a.child,d.memoizedProps=a.memoizedProps,d.memoizedState=a.memoizedState,d.updateQueue=a.updateQueue,l=a.dependencies,d.dependencies=l===null?null:{lanes:l.lanes,firstContext:l.firstContext},d.sibling=a.sibling,d.index=a.index,d.ref=a.ref,d.refCleanup=a.refCleanup,d}function $1(a,l){a.flags&=65011714;var d=a.alternate;return d===null?(a.childLanes=0,a.lanes=l,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=d.childLanes,a.lanes=d.lanes,a.child=d.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=d.memoizedProps,a.memoizedState=d.memoizedState,a.updateQueue=d.updateQueue,a.type=d.type,l=d.dependencies,a.dependencies=l===null?null:{lanes:l.lanes,firstContext:l.firstContext}),a}function sf(a,l,d,g,b,T){var R=0;if(g=a,typeof a=="function")bm(a)&&(R=1);else if(typeof a=="string")R=sF(a,d,he.current)?26:a==="html"||a==="head"||a==="body"?27:5;else e:switch(a){case U:return a=Tn(31,d,l,b),a.elementType=U,a.lanes=T,a;case w:return fo(d.children,b,T,l);case A:R=8,b|=24;break;case S:return a=Tn(12,d,l,b|2),a.elementType=S,a.lanes=T,a;case E:return a=Tn(13,d,l,b),a.elementType=E,a.lanes=T,a;case N:return a=Tn(19,d,l,b),a.elementType=N,a.lanes=T,a;default:if(typeof a=="object"&&a!==null)switch(a.$$typeof){case C:case M:R=10;break e;case P:R=9;break e;case O:R=11;break e;case D:R=14;break e;case L:R=16,g=null;break e}R=29,d=Error(r(130,a===null?"null":typeof a,"")),g=null}return l=Tn(R,d,l,b),l.elementType=a,l.type=g,l.lanes=T,l}function fo(a,l,d,g){return a=Tn(7,a,g,l),a.lanes=d,a}function xm(a,l,d){return a=Tn(6,a,null,l),a.lanes=d,a}function Tm(a,l,d){return l=Tn(4,a.children!==null?a.children:[],a.key,l),l.lanes=d,l.stateNode={containerInfo:a.containerInfo,pendingChildren:null,implementation:a.implementation},l}var Sa=[],Aa=0,lf=null,uf=0,Ln=[],Un=0,ho=null,qr=1,Br="";function po(a,l){Sa[Aa++]=uf,Sa[Aa++]=lf,lf=a,uf=l}function V1(a,l,d){Ln[Un++]=qr,Ln[Un++]=Br,Ln[Un++]=ho,ho=a;var g=qr;a=Br;var b=32-bn(g)-1;g&=~(1<<b),d+=1;var T=32-bn(l)+b;if(30<T){var R=b-b%5;T=(g&(1<<R)-1).toString(32),g>>=R,b-=R,qr=1<<32-bn(l)+b|d<<b|g,Br=T+a}else qr=1<<T|d<<b|g,Br=a}function Sm(a){a.return!==null&&(po(a,1),V1(a,1,0))}function Am(a){for(;a===lf;)lf=Sa[--Aa],Sa[Aa]=null,uf=Sa[--Aa],Sa[Aa]=null;for(;a===ho;)ho=Ln[--Un],Ln[Un]=null,Br=Ln[--Un],Ln[Un]=null,qr=Ln[--Un],Ln[Un]=null}var on=null,gt=null,He=!1,mo=null,gr=!1,wm=Error(r(519));function go(a){var l=Error(r(418,""));throw Al(In(l,a)),wm}function j1(a){var l=a.stateNode,d=a.type,g=a.memoizedProps;switch(l[Xt]=a,l[fn]=g,d){case"dialog":qe("cancel",l),qe("close",l);break;case"iframe":case"object":case"embed":qe("load",l);break;case"video":case"audio":for(d=0;d<Kl.length;d++)qe(Kl[d],l);break;case"source":qe("error",l);break;case"img":case"image":case"link":qe("error",l),qe("load",l);break;case"details":qe("toggle",l);break;case"input":qe("invalid",l),r1(l,g.value,g.defaultValue,g.checked,g.defaultChecked,g.type,g.name,!0),Yc(l);break;case"select":qe("invalid",l);break;case"textarea":qe("invalid",l),o1(l,g.value,g.defaultValue,g.children),Yc(l)}d=g.children,typeof d!="string"&&typeof d!="number"&&typeof d!="bigint"||l.textContent===""+d||g.suppressHydrationWarning===!0||oE(l.textContent,d)?(g.popover!=null&&(qe("beforetoggle",l),qe("toggle",l)),g.onScroll!=null&&qe("scroll",l),g.onScrollEnd!=null&&qe("scrollend",l),g.onClick!=null&&(l.onclick=Ff),l=!0):l=!1,l||go(a)}function F1(a){for(on=a.return;on;)switch(on.tag){case 5:case 13:gr=!1;return;case 27:case 3:gr=!0;return;default:on=on.return}}function Tl(a){if(a!==on)return!1;if(!He)return F1(a),He=!0,!1;var l=a.tag,d;if((d=l!==3&&l!==27)&&((d=l===5)&&(d=a.type,d=!(d!=="form"&&d!=="button")||$g(a.type,a.memoizedProps)),d=!d),d&>&&go(a),F1(a),l===13){if(a=a.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(r(317));e:{for(a=a.nextSibling,l=0;a;){if(a.nodeType===8)if(d=a.data,d==="/$"){if(l===0){gt=tr(a.nextSibling);break e}l--}else d!=="$"&&d!=="$!"&&d!=="$?"||l++;a=a.nextSibling}gt=null}}else l===27?(l=gt,ki(a.type)?(a=Hg,Hg=null,gt=a):gt=l):gt=on?tr(a.stateNode.nextSibling):null;return!0}function Sl(){gt=on=null,He=!1}function H1(){var a=mo;return a!==null&&(mn===null?mn=a:mn.push.apply(mn,a),mo=null),a}function Al(a){mo===null?mo=[a]:mo.push(a)}var _m=Z(null),yo=null,$r=null;function xi(a,l,d){ae(_m,l._currentValue),l._currentValue=d}function Vr(a){a._currentValue=_m.current,re(_m)}function Cm(a,l,d){for(;a!==null;){var g=a.alternate;if((a.childLanes&l)!==l?(a.childLanes|=l,g!==null&&(g.childLanes|=l)):g!==null&&(g.childLanes&l)!==l&&(g.childLanes|=l),a===d)break;a=a.return}}function Em(a,l,d,g){var b=a.child;for(b!==null&&(b.return=a);b!==null;){var T=b.dependencies;if(T!==null){var R=b.child;T=T.firstContext;e:for(;T!==null;){var I=T;T=b;for(var V=0;V<l.length;V++)if(I.context===l[V]){T.lanes|=d,I=T.alternate,I!==null&&(I.lanes|=d),Cm(T.return,d,a),g||(R=null);break e}T=I.next}}else if(b.tag===18){if(R=b.return,R===null)throw Error(r(341));R.lanes|=d,T=R.alternate,T!==null&&(T.lanes|=d),Cm(R,d,a),R=null}else R=b.child;if(R!==null)R.return=b;else for(R=b;R!==null;){if(R===a){R=null;break}if(b=R.sibling,b!==null){b.return=R.return,R=b;break}R=R.return}b=R}}function wl(a,l,d,g){a=null;for(var b=l,T=!1;b!==null;){if(!T){if((b.flags&524288)!==0)T=!0;else if((b.flags&262144)!==0)break}if(b.tag===10){var R=b.alternate;if(R===null)throw Error(r(387));if(R=R.memoizedProps,R!==null){var I=b.type;xn(b.pendingProps.value,R.value)||(a!==null?a.push(I):a=[I])}}else if(b===xt.current){if(R=b.alternate,R===null)throw Error(r(387));R.memoizedState.memoizedState!==b.memoizedState.memoizedState&&(a!==null?a.push(Ql):a=[Ql])}b=b.return}a!==null&&Em(l,a,d,g),l.flags|=262144}function cf(a){for(a=a.firstContext;a!==null;){if(!xn(a.context._currentValue,a.memoizedValue))return!0;a=a.next}return!1}function vo(a){yo=a,$r=null,a=a.dependencies,a!==null&&(a.firstContext=null)}function Jt(a){return G1(yo,a)}function ff(a,l){return yo===null&&vo(a),G1(a,l)}function G1(a,l){var d=l._currentValue;if(l={context:l,memoizedValue:d,next:null},$r===null){if(a===null)throw Error(r(308));$r=l,a.dependencies={lanes:0,firstContext:l},a.flags|=524288}else $r=$r.next=l;return d}var a4=typeof AbortController<"u"?AbortController:function(){var a=[],l=this.signal={aborted:!1,addEventListener:function(d,g){a.push(g)}};this.abort=function(){l.aborted=!0,a.forEach(function(d){return d()})}},s4=t.unstable_scheduleCallback,l4=t.unstable_NormalPriority,Rt={$$typeof:M,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Mm(){return{controller:new a4,data:new Map,refCount:0}}function _l(a){a.refCount--,a.refCount===0&&s4(l4,function(){a.controller.abort()})}var Cl=null,Pm=0,wa=0,_a=null;function u4(a,l){if(Cl===null){var d=Cl=[];Pm=0,wa=Ng(),_a={status:"pending",value:void 0,then:function(g){d.push(g)}}}return Pm++,l.then(z1,z1),l}function z1(){if(--Pm===0&&Cl!==null){_a!==null&&(_a.status="fulfilled");var a=Cl;Cl=null,wa=0,_a=null;for(var l=0;l<a.length;l++)(0,a[l])()}}function c4(a,l){var d=[],g={status:"pending",value:null,reason:null,then:function(b){d.push(b)}};return a.then(function(){g.status="fulfilled",g.value=l;for(var b=0;b<d.length;b++)(0,d[b])(l)},function(b){for(g.status="rejected",g.reason=b,b=0;b<d.length;b++)(0,d[b])(void 0)}),g}var K1=$.S;$.S=function(a,l){typeof l=="object"&&l!==null&&typeof l.then=="function"&&u4(a,l),K1!==null&&K1(a,l)};var bo=Z(null);function Rm(){var a=bo.current;return a!==null?a:rt.pooledCache}function df(a,l){l===null?ae(bo,bo.current):ae(bo,l.pool)}function Y1(){var a=Rm();return a===null?null:{parent:Rt._currentValue,pool:a}}var El=Error(r(460)),W1=Error(r(474)),hf=Error(r(542)),Nm={then:function(){}};function X1(a){return a=a.status,a==="fulfilled"||a==="rejected"}function pf(){}function J1(a,l,d){switch(d=a[d],d===void 0?a.push(l):d!==l&&(l.then(pf,pf),l=d),l.status){case"fulfilled":return l.value;case"rejected":throw a=l.reason,Q1(a),a;default:if(typeof l.status=="string")l.then(pf,pf);else{if(a=rt,a!==null&&100<a.shellSuspendCounter)throw Error(r(482));a=l,a.status="pending",a.then(function(g){if(l.status==="pending"){var b=l;b.status="fulfilled",b.value=g}},function(g){if(l.status==="pending"){var b=l;b.status="rejected",b.reason=g}})}switch(l.status){case"fulfilled":return l.value;case"rejected":throw a=l.reason,Q1(a),a}throw Ml=l,El}}var Ml=null;function Z1(){if(Ml===null)throw Error(r(459));var a=Ml;return Ml=null,a}function Q1(a){if(a===El||a===hf)throw Error(r(483))}var Ti=!1;function Om(a){a.updateQueue={baseState:a.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Dm(a,l){a=a.updateQueue,l.updateQueue===a&&(l.updateQueue={baseState:a.baseState,firstBaseUpdate:a.firstBaseUpdate,lastBaseUpdate:a.lastBaseUpdate,shared:a.shared,callbacks:null})}function Si(a){return{lane:a,tag:0,payload:null,callback:null,next:null}}function Ai(a,l,d){var g=a.updateQueue;if(g===null)return null;if(g=g.shared,(Ke&2)!==0){var b=g.pending;return b===null?l.next=l:(l.next=b.next,b.next=l),g.pending=l,l=af(a),B1(a,null,d),l}return of(a,g,l,d),af(a)}function Pl(a,l,d){if(l=l.updateQueue,l!==null&&(l=l.shared,(d&4194048)!==0)){var g=l.lanes;g&=a.pendingLanes,d|=g,l.lanes=d,zw(a,d)}}function Im(a,l){var d=a.updateQueue,g=a.alternate;if(g!==null&&(g=g.updateQueue,d===g)){var b=null,T=null;if(d=d.firstBaseUpdate,d!==null){do{var R={lane:d.lane,tag:d.tag,payload:d.payload,callback:null,next:null};T===null?b=T=R:T=T.next=R,d=d.next}while(d!==null);T===null?b=T=l:T=T.next=l}else b=T=l;d={baseState:g.baseState,firstBaseUpdate:b,lastBaseUpdate:T,shared:g.shared,callbacks:g.callbacks},a.updateQueue=d;return}a=d.lastBaseUpdate,a===null?d.firstBaseUpdate=l:a.next=l,d.lastBaseUpdate=l}var km=!1;function Rl(){if(km){var a=_a;if(a!==null)throw a}}function Nl(a,l,d,g){km=!1;var b=a.updateQueue;Ti=!1;var T=b.firstBaseUpdate,R=b.lastBaseUpdate,I=b.shared.pending;if(I!==null){b.shared.pending=null;var V=I,X=V.next;V.next=null,R===null?T=X:R.next=X,R=V;var oe=a.alternate;oe!==null&&(oe=oe.updateQueue,I=oe.lastBaseUpdate,I!==R&&(I===null?oe.firstBaseUpdate=X:I.next=X,oe.lastBaseUpdate=V))}if(T!==null){var le=b.baseState;R=0,oe=X=V=null,I=T;do{var Q=I.lane&-536870913,ee=Q!==I.lane;if(ee?(Be&Q)===Q:(g&Q)===Q){Q!==0&&Q===wa&&(km=!0),oe!==null&&(oe=oe.next={lane:0,tag:I.tag,payload:I.payload,callback:null,next:null});e:{var we=a,Te=I;Q=l;var Ze=d;switch(Te.tag){case 1:if(we=Te.payload,typeof we=="function"){le=we.call(Ze,le,Q);break e}le=we;break e;case 3:we.flags=we.flags&-65537|128;case 0:if(we=Te.payload,Q=typeof we=="function"?we.call(Ze,le,Q):we,Q==null)break e;le=p({},le,Q);break e;case 2:Ti=!0}}Q=I.callback,Q!==null&&(a.flags|=64,ee&&(a.flags|=8192),ee=b.callbacks,ee===null?b.callbacks=[Q]:ee.push(Q))}else ee={lane:Q,tag:I.tag,payload:I.payload,callback:I.callback,next:null},oe===null?(X=oe=ee,V=le):oe=oe.next=ee,R|=Q;if(I=I.next,I===null){if(I=b.shared.pending,I===null)break;ee=I,I=ee.next,ee.next=null,b.lastBaseUpdate=ee,b.shared.pending=null}}while(!0);oe===null&&(V=le),b.baseState=V,b.firstBaseUpdate=X,b.lastBaseUpdate=oe,T===null&&(b.shared.lanes=0),Ni|=R,a.lanes=R,a.memoizedState=le}}function e_(a,l){if(typeof a!="function")throw Error(r(191,a));a.call(l)}function t_(a,l){var d=a.callbacks;if(d!==null)for(a.callbacks=null,a=0;a<d.length;a++)e_(d[a],l)}var Ca=Z(null),mf=Z(0);function n_(a,l){a=Yr,ae(mf,a),ae(Ca,l),Yr=a|l.baseLanes}function Lm(){ae(mf,Yr),ae(Ca,Ca.current)}function Um(){Yr=mf.current,re(Ca),re(mf)}var wi=0,Oe=null,Xe=null,_t=null,gf=!1,Ea=!1,xo=!1,yf=0,Ol=0,Ma=null,f4=0;function At(){throw Error(r(321))}function qm(a,l){if(l===null)return!1;for(var d=0;d<l.length&&d<a.length;d++)if(!xn(a[d],l[d]))return!1;return!0}function Bm(a,l,d,g,b,T){return wi=T,Oe=l,l.memoizedState=null,l.updateQueue=null,l.lanes=0,$.H=a===null||a.memoizedState===null?B_:$_,xo=!1,T=d(g,b),xo=!1,Ea&&(T=i_(l,d,g,b)),r_(a),T}function r_(a){$.H=Af;var l=Xe!==null&&Xe.next!==null;if(wi=0,_t=Xe=Oe=null,gf=!1,Ol=0,Ma=null,l)throw Error(r(300));a===null||qt||(a=a.dependencies,a!==null&&cf(a)&&(qt=!0))}function i_(a,l,d,g){Oe=a;var b=0;do{if(Ea&&(Ma=null),Ol=0,Ea=!1,25<=b)throw Error(r(301));if(b+=1,_t=Xe=null,a.updateQueue!=null){var T=a.updateQueue;T.lastEffect=null,T.events=null,T.stores=null,T.memoCache!=null&&(T.memoCache.index=0)}$.H=v4,T=l(d,g)}while(Ea);return T}function d4(){var a=$.H,l=a.useState()[0];return l=typeof l.then=="function"?Dl(l):l,a=a.useState()[0],(Xe!==null?Xe.memoizedState:null)!==a&&(Oe.flags|=1024),l}function $m(){var a=yf!==0;return yf=0,a}function Vm(a,l,d){l.updateQueue=a.updateQueue,l.flags&=-2053,a.lanes&=~d}function jm(a){if(gf){for(a=a.memoizedState;a!==null;){var l=a.queue;l!==null&&(l.pending=null),a=a.next}gf=!1}wi=0,_t=Xe=Oe=null,Ea=!1,Ol=yf=0,Ma=null}function hn(){var a={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return _t===null?Oe.memoizedState=_t=a:_t=_t.next=a,_t}function Ct(){if(Xe===null){var a=Oe.alternate;a=a!==null?a.memoizedState:null}else a=Xe.next;var l=_t===null?Oe.memoizedState:_t.next;if(l!==null)_t=l,Xe=a;else{if(a===null)throw Oe.alternate===null?Error(r(467)):Error(r(310));Xe=a,a={memoizedState:Xe.memoizedState,baseState:Xe.baseState,baseQueue:Xe.baseQueue,queue:Xe.queue,next:null},_t===null?Oe.memoizedState=_t=a:_t=_t.next=a}return _t}function Fm(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Dl(a){var l=Ol;return Ol+=1,Ma===null&&(Ma=[]),a=J1(Ma,a,l),l=Oe,(_t===null?l.memoizedState:_t.next)===null&&(l=l.alternate,$.H=l===null||l.memoizedState===null?B_:$_),a}function vf(a){if(a!==null&&typeof a=="object"){if(typeof a.then=="function")return Dl(a);if(a.$$typeof===M)return Jt(a)}throw Error(r(438,String(a)))}function Hm(a){var l=null,d=Oe.updateQueue;if(d!==null&&(l=d.memoCache),l==null){var g=Oe.alternate;g!==null&&(g=g.updateQueue,g!==null&&(g=g.memoCache,g!=null&&(l={data:g.data.map(function(b){return b.slice()}),index:0})))}if(l==null&&(l={data:[],index:0}),d===null&&(d=Fm(),Oe.updateQueue=d),d.memoCache=l,d=l.data[l.index],d===void 0)for(d=l.data[l.index]=Array(a),g=0;g<a;g++)d[g]=F;return l.index++,d}function jr(a,l){return typeof l=="function"?l(a):l}function bf(a){var l=Ct();return Gm(l,Xe,a)}function Gm(a,l,d){var g=a.queue;if(g===null)throw Error(r(311));g.lastRenderedReducer=d;var b=a.baseQueue,T=g.pending;if(T!==null){if(b!==null){var R=b.next;b.next=T.next,T.next=R}l.baseQueue=b=T,g.pending=null}if(T=a.baseState,b===null)a.memoizedState=T;else{l=b.next;var I=R=null,V=null,X=l,oe=!1;do{var le=X.lane&-536870913;if(le!==X.lane?(Be&le)===le:(wi&le)===le){var Q=X.revertLane;if(Q===0)V!==null&&(V=V.next={lane:0,revertLane:0,action:X.action,hasEagerState:X.hasEagerState,eagerState:X.eagerState,next:null}),le===wa&&(oe=!0);else if((wi&Q)===Q){X=X.next,Q===wa&&(oe=!0);continue}else le={lane:0,revertLane:X.revertLane,action:X.action,hasEagerState:X.hasEagerState,eagerState:X.eagerState,next:null},V===null?(I=V=le,R=T):V=V.next=le,Oe.lanes|=Q,Ni|=Q;le=X.action,xo&&d(T,le),T=X.hasEagerState?X.eagerState:d(T,le)}else Q={lane:le,revertLane:X.revertLane,action:X.action,hasEagerState:X.hasEagerState,eagerState:X.eagerState,next:null},V===null?(I=V=Q,R=T):V=V.next=Q,Oe.lanes|=le,Ni|=le;X=X.next}while(X!==null&&X!==l);if(V===null?R=T:V.next=I,!xn(T,a.memoizedState)&&(qt=!0,oe&&(d=_a,d!==null)))throw d;a.memoizedState=T,a.baseState=R,a.baseQueue=V,g.lastRenderedState=T}return b===null&&(g.lanes=0),[a.memoizedState,g.dispatch]}function zm(a){var l=Ct(),d=l.queue;if(d===null)throw Error(r(311));d.lastRenderedReducer=a;var g=d.dispatch,b=d.pending,T=l.memoizedState;if(b!==null){d.pending=null;var R=b=b.next;do T=a(T,R.action),R=R.next;while(R!==b);xn(T,l.memoizedState)||(qt=!0),l.memoizedState=T,l.baseQueue===null&&(l.baseState=T),d.lastRenderedState=T}return[T,g]}function o_(a,l,d){var g=Oe,b=Ct(),T=He;if(T){if(d===void 0)throw Error(r(407));d=d()}else d=l();var R=!xn((Xe||b).memoizedState,d);R&&(b.memoizedState=d,qt=!0),b=b.queue;var I=l_.bind(null,g,b,a);if(Il(2048,8,I,[a]),b.getSnapshot!==l||R||_t!==null&&_t.memoizedState.tag&1){if(g.flags|=2048,Pa(9,xf(),s_.bind(null,g,b,d,l),null),rt===null)throw Error(r(349));T||(wi&124)!==0||a_(g,l,d)}return d}function a_(a,l,d){a.flags|=16384,a={getSnapshot:l,value:d},l=Oe.updateQueue,l===null?(l=Fm(),Oe.updateQueue=l,l.stores=[a]):(d=l.stores,d===null?l.stores=[a]:d.push(a))}function s_(a,l,d,g){l.value=d,l.getSnapshot=g,u_(l)&&c_(a)}function l_(a,l,d){return d(function(){u_(l)&&c_(a)})}function u_(a){var l=a.getSnapshot;a=a.value;try{var d=l();return!xn(a,d)}catch{return!0}}function c_(a){var l=xa(a,2);l!==null&&Cn(l,a,2)}function Km(a){var l=hn();if(typeof a=="function"){var d=a;if(a=d(),xo){yi(!0);try{d()}finally{yi(!1)}}}return l.memoizedState=l.baseState=a,l.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:jr,lastRenderedState:a},l}function f_(a,l,d,g){return a.baseState=d,Gm(a,Xe,typeof g=="function"?g:jr)}function h4(a,l,d,g,b){if(Sf(a))throw Error(r(485));if(a=l.action,a!==null){var T={payload:b,action:a,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(R){T.listeners.push(R)}};$.T!==null?d(!0):T.isTransition=!1,g(T),d=l.pending,d===null?(T.next=l.pending=T,d_(l,T)):(T.next=d.next,l.pending=d.next=T)}}function d_(a,l){var d=l.action,g=l.payload,b=a.state;if(l.isTransition){var T=$.T,R={};$.T=R;try{var I=d(b,g),V=$.S;V!==null&&V(R,I),h_(a,l,I)}catch(X){Ym(a,l,X)}finally{$.T=T}}else try{T=d(b,g),h_(a,l,T)}catch(X){Ym(a,l,X)}}function h_(a,l,d){d!==null&&typeof d=="object"&&typeof d.then=="function"?d.then(function(g){p_(a,l,g)},function(g){return Ym(a,l,g)}):p_(a,l,d)}function p_(a,l,d){l.status="fulfilled",l.value=d,m_(l),a.state=d,l=a.pending,l!==null&&(d=l.next,d===l?a.pending=null:(d=d.next,l.next=d,d_(a,d)))}function Ym(a,l,d){var g=a.pending;if(a.pending=null,g!==null){g=g.next;do l.status="rejected",l.reason=d,m_(l),l=l.next;while(l!==g)}a.action=null}function m_(a){a=a.listeners;for(var l=0;l<a.length;l++)(0,a[l])()}function g_(a,l){return l}function y_(a,l){if(He){var d=rt.formState;if(d!==null){e:{var g=Oe;if(He){if(gt){t:{for(var b=gt,T=gr;b.nodeType!==8;){if(!T){b=null;break t}if(b=tr(b.nextSibling),b===null){b=null;break t}}T=b.data,b=T==="F!"||T==="F"?b:null}if(b){gt=tr(b.nextSibling),g=b.data==="F!";break e}}go(g)}g=!1}g&&(l=d[0])}}return d=hn(),d.memoizedState=d.baseState=l,g={pending:null,lanes:0,dispatch:null,lastRenderedReducer:g_,lastRenderedState:l},d.queue=g,d=L_.bind(null,Oe,g),g.dispatch=d,g=Km(!1),T=Qm.bind(null,Oe,!1,g.queue),g=hn(),b={state:l,dispatch:null,action:a,pending:null},g.queue=b,d=h4.bind(null,Oe,b,T,d),b.dispatch=d,g.memoizedState=a,[l,d,!1]}function v_(a){var l=Ct();return b_(l,Xe,a)}function b_(a,l,d){if(l=Gm(a,l,g_)[0],a=bf(jr)[0],typeof l=="object"&&l!==null&&typeof l.then=="function")try{var g=Dl(l)}catch(R){throw R===El?hf:R}else g=l;l=Ct();var b=l.queue,T=b.dispatch;return d!==l.memoizedState&&(Oe.flags|=2048,Pa(9,xf(),p4.bind(null,b,d),null)),[g,T,a]}function p4(a,l){a.action=l}function x_(a){var l=Ct(),d=Xe;if(d!==null)return b_(l,d,a);Ct(),l=l.memoizedState,d=Ct();var g=d.queue.dispatch;return d.memoizedState=a,[l,g,!1]}function Pa(a,l,d,g){return a={tag:a,create:d,deps:g,inst:l,next:null},l=Oe.updateQueue,l===null&&(l=Fm(),Oe.updateQueue=l),d=l.lastEffect,d===null?l.lastEffect=a.next=a:(g=d.next,d.next=a,a.next=g,l.lastEffect=a),a}function xf(){return{destroy:void 0,resource:void 0}}function T_(){return Ct().memoizedState}function Tf(a,l,d,g){var b=hn();g=g===void 0?null:g,Oe.flags|=a,b.memoizedState=Pa(1|l,xf(),d,g)}function Il(a,l,d,g){var b=Ct();g=g===void 0?null:g;var T=b.memoizedState.inst;Xe!==null&&g!==null&&qm(g,Xe.memoizedState.deps)?b.memoizedState=Pa(l,T,d,g):(Oe.flags|=a,b.memoizedState=Pa(1|l,T,d,g))}function S_(a,l){Tf(8390656,8,a,l)}function A_(a,l){Il(2048,8,a,l)}function w_(a,l){return Il(4,2,a,l)}function __(a,l){return Il(4,4,a,l)}function C_(a,l){if(typeof l=="function"){a=a();var d=l(a);return function(){typeof d=="function"?d():l(null)}}if(l!=null)return a=a(),l.current=a,function(){l.current=null}}function E_(a,l,d){d=d!=null?d.concat([a]):null,Il(4,4,C_.bind(null,l,a),d)}function Wm(){}function M_(a,l){var d=Ct();l=l===void 0?null:l;var g=d.memoizedState;return l!==null&&qm(l,g[1])?g[0]:(d.memoizedState=[a,l],a)}function P_(a,l){var d=Ct();l=l===void 0?null:l;var g=d.memoizedState;if(l!==null&&qm(l,g[1]))return g[0];if(g=a(),xo){yi(!0);try{a()}finally{yi(!1)}}return d.memoizedState=[g,l],g}function Xm(a,l,d){return d===void 0||(wi&1073741824)!==0?a.memoizedState=l:(a.memoizedState=d,a=OC(),Oe.lanes|=a,Ni|=a,d)}function R_(a,l,d,g){return xn(d,l)?d:Ca.current!==null?(a=Xm(a,d,g),xn(a,l)||(qt=!0),a):(wi&42)===0?(qt=!0,a.memoizedState=d):(a=OC(),Oe.lanes|=a,Ni|=a,l)}function N_(a,l,d,g,b){var T=G.p;G.p=T!==0&&8>T?T:8;var R=$.T,I={};$.T=I,Qm(a,!1,l,d);try{var V=b(),X=$.S;if(X!==null&&X(I,V),V!==null&&typeof V=="object"&&typeof V.then=="function"){var oe=c4(V,g);kl(a,l,oe,_n(a))}else kl(a,l,g,_n(a))}catch(le){kl(a,l,{then:function(){},status:"rejected",reason:le},_n())}finally{G.p=T,$.T=R}}function m4(){}function Jm(a,l,d,g){if(a.tag!==5)throw Error(r(476));var b=O_(a).queue;N_(a,b,l,te,d===null?m4:function(){return D_(a),d(g)})}function O_(a){var l=a.memoizedState;if(l!==null)return l;l={memoizedState:te,baseState:te,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:jr,lastRenderedState:te},next:null};var d={};return l.next={memoizedState:d,baseState:d,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:jr,lastRenderedState:d},next:null},a.memoizedState=l,a=a.alternate,a!==null&&(a.memoizedState=l),l}function D_(a){var l=O_(a).next.queue;kl(a,l,{},_n())}function Zm(){return Jt(Ql)}function I_(){return Ct().memoizedState}function k_(){return Ct().memoizedState}function g4(a){for(var l=a.return;l!==null;){switch(l.tag){case 24:case 3:var d=_n();a=Si(d);var g=Ai(l,a,d);g!==null&&(Cn(g,l,d),Pl(g,l,d)),l={cache:Mm()},a.payload=l;return}l=l.return}}function y4(a,l,d){var g=_n();d={lane:g,revertLane:0,action:d,hasEagerState:!1,eagerState:null,next:null},Sf(a)?U_(l,d):(d=vm(a,l,d,g),d!==null&&(Cn(d,a,g),q_(d,l,g)))}function L_(a,l,d){var g=_n();kl(a,l,d,g)}function kl(a,l,d,g){var b={lane:g,revertLane:0,action:d,hasEagerState:!1,eagerState:null,next:null};if(Sf(a))U_(l,b);else{var T=a.alternate;if(a.lanes===0&&(T===null||T.lanes===0)&&(T=l.lastRenderedReducer,T!==null))try{var R=l.lastRenderedState,I=T(R,d);if(b.hasEagerState=!0,b.eagerState=I,xn(I,R))return of(a,l,b,0),rt===null&&rf(),!1}catch{}finally{}if(d=vm(a,l,b,g),d!==null)return Cn(d,a,g),q_(d,l,g),!0}return!1}function Qm(a,l,d,g){if(g={lane:2,revertLane:Ng(),action:g,hasEagerState:!1,eagerState:null,next:null},Sf(a)){if(l)throw Error(r(479))}else l=vm(a,d,g,2),l!==null&&Cn(l,a,2)}function Sf(a){var l=a.alternate;return a===Oe||l!==null&&l===Oe}function U_(a,l){Ea=gf=!0;var d=a.pending;d===null?l.next=l:(l.next=d.next,d.next=l),a.pending=l}
vendor: 1,237 bytes, line 48
48function q_(a,l,d){if((d&4194048)!==0){var g=l.lanes;g&=a.pendingLanes,d|=g,l.lanes=d,zw(a,d)}}var Af={readContext:Jt,use:vf,useCallback:At,useContext:At,useEffect:At,useImperativeHandle:At,useLayoutEffect:At,useInsertionEffect:At,useMemo:At,useReducer:At,useRef:At,useState:At,useDebugValue:At,useDeferredValue:At,useTransition:At,useSyncExternalStore:At,useId:At,useHostTransitionStatus:At,useFormState:At,useActionState:At,useOptimistic:At,useMemoCache:At,useCacheRefresh:At},B_={readContext:Jt,use:vf,useCallback:function(a,l){return hn().memoizedState=[a,l===void 0?null:l],a},useContext:Jt,useEffect:S_,useImperativeHandle:function(a,l,d){d=d!=null?d.concat([a]):null,Tf(4194308,4,C_.bind(null,l,a),d)},useLayoutEffect:function(a,l){return Tf(4194308,4,a,l)},useInsertionEffect:function(a,l){Tf(4,2,a,l)},useMemo:function(a,l){var d=hn();l=l===void 0?null:l;var g=a();if(xo){yi(!0);try{a()}finally{yi(!1)}}return d.memoizedState=[g,l],g},useReducer:function(a,l,d){var g=hn();if(d!==void 0){var b=d(l);if(xo){yi(!0);try{d(l)}finally{yi(!1)}}}else b=l;return g.memoizedState=g.baseState=b,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:a,lastRenderedState:b},g.queue=a,a=a.dispatch=y4.bind(null,Oe,a),[g.memoizedState,a]}
vendor: 26,390 bytes, line 48
48,useRef:function(a){var l=hn();return a={current:a},l.memoizedState=a},useState:function(a){a=Km(a);var l=a.queue,d=L_.bind(null,Oe,l);return l.dispatch=d,[a.memoizedState,d]},useDebugValue:Wm,useDeferredValue:function(a,l){var d=hn();return Xm(d,a,l)},useTransition:function(){var a=Km(!1);return a=N_.bind(null,Oe,a.queue,!0,!1),hn().memoizedState=a,[!1,a]},useSyncExternalStore:function(a,l,d){var g=Oe,b=hn();if(He){if(d===void 0)throw Error(r(407));d=d()}else{if(d=l(),rt===null)throw Error(r(349));(Be&124)!==0||a_(g,l,d)}b.memoizedState=d;var T={value:d,getSnapshot:l};return b.queue=T,S_(l_.bind(null,g,T,a),[a]),g.flags|=2048,Pa(9,xf(),s_.bind(null,g,T,d,l),null),d},useId:function(){var a=hn(),l=rt.identifierPrefix;if(He){var d=Br,g=qr;d=(g&~(1<<32-bn(g)-1)).toString(32)+d,l="«"+l+"R"+d,d=yf++,0<d&&(l+="H"+d.toString(32)),l+="»"}else d=f4++,l="«"+l+"r"+d.toString(32)+"»";return a.memoizedState=l},useHostTransitionStatus:Zm,useFormState:y_,useActionState:y_,useOptimistic:function(a){var l=hn();l.memoizedState=l.baseState=a;var d={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return l.queue=d,l=Qm.bind(null,Oe,!0,d),d.dispatch=l,[a,l]},useMemoCache:Hm,useCacheRefresh:function(){return hn().memoizedState=g4.bind(null,Oe)}},$_={readContext:Jt,use:vf,useCallback:M_,useContext:Jt,useEffect:A_,useImperativeHandle:E_,useInsertionEffect:w_,useLayoutEffect:__,useMemo:P_,useReducer:bf,useRef:T_,useState:function(){return bf(jr)},useDebugValue:Wm,useDeferredValue:function(a,l){var d=Ct();return R_(d,Xe.memoizedState,a,l)},useTransition:function(){var a=bf(jr)[0],l=Ct().memoizedState;return[typeof a=="boolean"?a:Dl(a),l]},useSyncExternalStore:o_,useId:I_,useHostTransitionStatus:Zm,useFormState:v_,useActionState:v_,useOptimistic:function(a,l){var d=Ct();return f_(d,Xe,a,l)},useMemoCache:Hm,useCacheRefresh:k_},v4={readContext:Jt,use:vf,useCallback:M_,useContext:Jt,useEffect:A_,useImperativeHandle:E_,useInsertionEffect:w_,useLayoutEffect:__,useMemo:P_,useReducer:zm,useRef:T_,useState:function(){return zm(jr)},useDebugValue:Wm,useDeferredValue:function(a,l){var d=Ct();return Xe===null?Xm(d,a,l):R_(d,Xe.memoizedState,a,l)},useTransition:function(){var a=zm(jr)[0],l=Ct().memoizedState;return[typeof a=="boolean"?a:Dl(a),l]},useSyncExternalStore:o_,useId:I_,useHostTransitionStatus:Zm,useFormState:x_,useActionState:x_,useOptimistic:function(a,l){var d=Ct();return Xe!==null?f_(d,Xe,a,l):(d.baseState=a,[a,d.queue.dispatch])},useMemoCache:Hm,useCacheRefresh:k_},Ra=null,Ll=0;function wf(a){var l=Ll;return Ll+=1,Ra===null&&(Ra=[]),J1(Ra,a,l)}function Ul(a,l){l=l.props.ref,a.ref=l!==void 0?l:null}function _f(a,l){throw l.$$typeof===y?Error(r(525)):(a=Object.prototype.toString.call(l),Error(r(31,a==="[object Object]"?"object with keys {"+Object.keys(l).join(", ")+"}":a)))}function V_(a){var l=a._init;return l(a._payload)}function j_(a){function l(K,H){if(a){var Y=K.deletions;Y===null?(K.deletions=[H],K.flags|=16):Y.push(H)}}function d(K,H){if(!a)return null;for(;H!==null;)l(K,H),H=H.sibling;return null}function g(K){for(var H=new Map;K!==null;)K.key!==null?H.set(K.key,K):H.set(K.index,K),K=K.sibling;return H}function b(K,H){return K=Ur(K,H),K.index=0,K.sibling=null,K}function T(K,H,Y){return K.index=Y,a?(Y=K.alternate,Y!==null?(Y=Y.index,Y<H?(K.flags|=67108866,H):Y):(K.flags|=67108866,H)):(K.flags|=1048576,H)}function R(K){return a&&K.alternate===null&&(K.flags|=67108866),K}function I(K,H,Y,se){return H===null||H.tag!==6?(H=xm(Y,K.mode,se),H.return=K,H):(H=b(H,Y),H.return=K,H)}function V(K,H,Y,se){var ge=Y.type;return ge===w?oe(K,H,Y.props.children,se,Y.key):H!==null&&(H.elementType===ge||typeof ge=="object"&&ge!==null&&ge.$$typeof===L&&V_(ge)===H.type)?(H=b(H,Y.props),Ul(H,Y),H.return=K,H):(H=sf(Y.type,Y.key,Y.props,null,K.mode,se),Ul(H,Y),H.return=K,H)}function X(K,H,Y,se){return H===null||H.tag!==4||H.stateNode.containerInfo!==Y.containerInfo||H.stateNode.implementation!==Y.implementation?(H=Tm(Y,K.mode,se),H.return=K,H):(H=b(H,Y.children||[]),H.return=K,H)}function oe(K,H,Y,se,ge){return H===null||H.tag!==7?(H=fo(Y,K.mode,se,ge),H.return=K,H):(H=b(H,Y),H.return=K,H)}function le(K,H,Y){if(typeof H=="string"&&H!==""||typeof H=="number"||typeof H=="bigint")return H=xm(""+H,K.mode,Y),H.return=K,H;if(typeof H=="object"&&H!==null){switch(H.$$typeof){case v:return Y=sf(H.type,H.key,H.props,null,K.mode,Y),Ul(Y,H),Y.return=K,Y;case x:return H=Tm(H,K.mode,Y),H.return=K,H;case L:var se=H._init;return H=se(H._payload),le(K,H,Y)}if(J(H)||z(H))return H=fo(H,K.mode,Y,null),H.return=K,H;if(typeof H.then=="function")return le(K,wf(H),Y);if(H.$$typeof===M)return le(K,ff(K,H),Y);_f(K,H)}return null}function Q(K,H,Y,se){var ge=H!==null?H.key:null;if(typeof Y=="string"&&Y!==""||typeof Y=="number"||typeof Y=="bigint")return ge!==null?null:I(K,H,""+Y,se);if(typeof Y=="object"&&Y!==null){switch(Y.$$typeof){case v:return Y.key===ge?V(K,H,Y,se):null;case x:return Y.key===ge?X(K,H,Y,se):null;case L:return ge=Y._init,Y=ge(Y._payload),Q(K,H,Y,se)}if(J(Y)||z(Y))return ge!==null?null:oe(K,H,Y,se,null);if(typeof Y.then=="function")return Q(K,H,wf(Y),se);if(Y.$$typeof===M)return Q(K,H,ff(K,Y),se);_f(K,Y)}return null}function ee(K,H,Y,se,ge){if(typeof se=="string"&&se!==""||typeof se=="number"||typeof se=="bigint")return K=K.get(Y)||null,I(H,K,""+se,ge);if(typeof se=="object"&&se!==null){switch(se.$$typeof){case v:return K=K.get(se.key===null?Y:se.key)||null,V(H,K,se,ge);case x:return K=K.get(se.key===null?Y:se.key)||null,X(H,K,se,ge);case L:var Ie=se._init;return se=Ie(se._payload),ee(K,H,Y,se,ge)}if(J(se)||z(se))return K=K.get(Y)||null,oe(H,K,se,ge,null);if(typeof se.then=="function")return ee(K,H,Y,wf(se),ge);if(se.$$typeof===M)return ee(K,H,Y,ff(H,se),ge);_f(H,se)}return null}function we(K,H,Y,se){for(var ge=null,Ie=null,be=H,Se=H=0,$t=null;be!==null&&Se<Y.length;Se++){be.index>Se?($t=be,be=null):$t=be.sibling;var Ve=Q(K,be,Y[Se],se);if(Ve===null){be===null&&(be=$t);break}a&&be&&Ve.alternate===null&&l(K,be),H=T(Ve,H,Se),Ie===null?ge=Ve:Ie.sibling=Ve,Ie=Ve,be=$t}if(Se===Y.length)return d(K,be),He&&po(K,Se),ge;if(be===null){for(;Se<Y.length;Se++)be=le(K,Y[Se],se),be!==null&&(H=T(be,H,Se),Ie===null?ge=be:Ie.sibling=be,Ie=be);return He&&po(K,Se),ge}for(be=g(be);Se<Y.length;Se++)$t=ee(be,K,Se,Y[Se],se),$t!==null&&(a&&$t.alternate!==null&&be.delete($t.key===null?Se:$t.key),H=T($t,H,Se),Ie===null?ge=$t:Ie.sibling=$t,Ie=$t);return a&&be.forEach(function($i){return l(K,$i)}),He&&po(K,Se),ge}function Te(K,H,Y,se){if(Y==null)throw Error(r(151));for(var ge=null,Ie=null,be=H,Se=H=0,$t=null,Ve=Y.next();be!==null&&!Ve.done;Se++,Ve=Y.next()){be.index>Se?($t=be,be=null):$t=be.sibling;var $i=Q(K,be,Ve.value,se);if($i===null){be===null&&(be=$t);break}a&&be&&$i.alternate===null&&l(K,be),H=T($i,H,Se),Ie===null?ge=$i:Ie.sibling=$i,Ie=$i,be=$t}if(Ve.done)return d(K,be),He&&po(K,Se),ge;if(be===null){for(;!Ve.done;Se++,Ve=Y.next())Ve=le(K,Ve.value,se),Ve!==null&&(H=T(Ve,H,Se),Ie===null?ge=Ve:Ie.sibling=Ve,Ie=Ve);return He&&po(K,Se),ge}for(be=g(be);!Ve.done;Se++,Ve=Y.next())Ve=ee(be,K,Se,Ve.value,se),Ve!==null&&(a&&Ve.alternate!==null&&be.delete(Ve.key===null?Se:Ve.key),H=T(Ve,H,Se),Ie===null?ge=Ve:Ie.sibling=Ve,Ie=Ve);return a&&be.forEach(function(bF){return l(K,bF)}),He&&po(K,Se),ge}function Ze(K,H,Y,se){if(typeof Y=="object"&&Y!==null&&Y.type===w&&Y.key===null&&(Y=Y.props.children),typeof Y=="object"&&Y!==null){switch(Y.$$typeof){case v:e:{for(var ge=Y.key;H!==null;){if(H.key===ge){if(ge=Y.type,ge===w){if(H.tag===7){d(K,H.sibling),se=b(H,Y.props.children),se.return=K,K=se;break e}}else if(H.elementType===ge||typeof ge=="object"&&ge!==null&&ge.$$typeof===L&&V_(ge)===H.type){d(K,H.sibling),se=b(H,Y.props),Ul(se,Y),se.return=K,K=se;break e}d(K,H);break}else l(K,H);H=H.sibling}Y.type===w?(se=fo(Y.props.children,K.mode,se,Y.key),se.return=K,K=se):(se=sf(Y.type,Y.key,Y.props,null,K.mode,se),Ul(se,Y),se.return=K,K=se)}return R(K);case x:e:{for(ge=Y.key;H!==null;){if(H.key===ge)if(H.tag===4&&H.stateNode.containerInfo===Y.containerInfo&&H.stateNode.implementation===Y.implementation){d(K,H.sibling),se=b(H,Y.children||[]),se.return=K,K=se;break e}else{d(K,H);break}else l(K,H);H=H.sibling}se=Tm(Y,K.mode,se),se.return=K,K=se}return R(K);case L:return ge=Y._init,Y=ge(Y._payload),Ze(K,H,Y,se)}if(J(Y))return we(K,H,Y,se);if(z(Y)){if(ge=z(Y),typeof ge!="function")throw Error(r(150));return Y=ge.call(Y),Te(K,H,Y,se)}if(typeof Y.then=="function")return Ze(K,H,wf(Y),se);if(Y.$$typeof===M)return Ze(K,H,ff(K,Y),se);_f(K,Y)}return typeof Y=="string"&&Y!==""||typeof Y=="number"||typeof Y=="bigint"?(Y=""+Y,H!==null&&H.tag===6?(d(K,H.sibling),se=b(H,Y),se.return=K,K=se):(d(K,H),se=xm(Y,K.mode,se),se.return=K,K=se),R(K)):d(K,H)}return function(K,H,Y,se){try{Ll=0;var ge=Ze(K,H,Y,se);return Ra=null,ge}catch(be){if(be===El||be===hf)throw be;var Ie=Tn(29,be,null,K.mode);return Ie.lanes=se,Ie.return=K,Ie}finally{}}}var Na=j_(!0),F_=j_(!1),qn=Z(null),yr=null;function _i(a){var l=a.alternate;ae(Nt,Nt.current&1),ae(qn,a),yr===null&&(l===null||Ca.current!==null||l.memoizedState!==null)&&(yr=a)}function H_(a){if(a.tag===22){if(ae(Nt,Nt.current),ae(qn,a),yr===null){var l=a.alternate;l!==null&&l.memoizedState!==null&&(yr=a)}}else Ci()}function Ci(){ae(Nt,Nt.current),ae(qn,qn.current)}function Fr(a){re(qn),yr===a&&(yr=null),re(Nt)}var Nt=Z(0);function Cf(a){for(var l=a;l!==null;){if(l.tag===13){var d=l.memoizedState;if(d!==null&&(d=d.dehydrated,d===null||d.data==="$?"||Fg(d)))return l}else if(l.tag===19&&l.memoizedProps.revealOrder!==void 0){if((l.flags&128)!==0)return l}else if(l.child!==null){l.child.return=l,l=l.child;continue}if(l===a)break;for(;l.sibling===null;){if(l.return===null||l.return===a)return null;l=l.return}l.sibling.return=l.return,l=l.sibling}return null}function eg(a,l,d,g){l=a.memoizedState,d=d(g,l),d=d==null?l:p({},l,d),a.memoizedState=d,a.lanes===0&&(a.updateQueue.baseState=d)}var tg={enqueueSetState:function(a,l,d){a=a._reactInternals;var g=_n(),b=Si(g);b.payload=l,d!=null&&(b.callback=d),l=Ai(a,b,g),l!==null&&(Cn(l,a,g),Pl(l,a,g))},enqueueReplaceState:function(a,l,d){a=a._reactInternals;var g=_n(),b=Si(g);b.tag=1,b.payload=l,d!=null&&(b.callback=d),l=Ai(a,b,g),l!==null&&(Cn(l,a,g),Pl(l,a,g))},enqueueForceUpdate:function(a,l){a=a._reactInternals;var d=_n(),g=Si(d);g.tag=2,l!=null&&(g.callback=l),l=Ai(a,g,d),l!==null&&(Cn(l,a,d),Pl(l,a,d))}};function G_(a,l,d,g,b,T,R){return a=a.stateNode,typeof a.shouldComponentUpdate=="function"?a.shouldComponentUpdate(g,T,R):l.prototype&&l.prototype.isPureReactComponent?!bl(d,g)||!bl(b,T):!0}function z_(a,l,d,g){a=l.state,typeof l.componentWillReceiveProps=="function"&&l.componentWillReceiveProps(d,g),typeof l.UNSAFE_componentWillReceiveProps=="function"&&l.UNSAFE_componentWillReceiveProps(d,g),l.state!==a&&tg.enqueueReplaceState(l,l.state,null)}function To(a,l){var d=l;if("ref"in l){d={};for(var g in l)g!=="ref"&&(d[g]=l[g])}if(a=a.defaultProps){d===l&&(d=p({},d));for(var b in a)d[b]===void 0&&(d[b]=a[b])}return d}var Ef=typeof reportError=="function"?reportError:function(a){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var l=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof a=="object"&&a!==null&&typeof a.message=="string"?String(a.message):String(a),error:a});if(!window.dispatchEvent(l))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",a);return}console.error(a)};function K_(a){Ef(a)}function Y_(a){console.error(a)}function W_(a){Ef(a)}function Mf(a,l){try{var d=a.onUncaughtError;d(l.value,{componentStack:l.stack})}catch(g){setTimeout(function(){throw g})}}function X_(a,l,d){try{var g=a.onCaughtError;g(d.value,{componentStack:d.stack,errorBoundary:l.tag===1?l.stateNode:null})}catch(b){setTimeout(function(){throw b})}}function ng(a,l,d){return d=Si(d),d.tag=3,d.payload={element:null},d.callback=function(){Mf(a,l)},d}function J_(a){return a=Si(a),a.tag=3,a}function Z_(a,l,d,g){var b=d.type.getDerivedStateFromError;if(typeof b=="function"){var T=g.value;a.payload=function(){return b(T)},a.callback=function(){X_(l,d,g)}}var R=d.stateNode;R!==null&&typeof R.componentDidCatch=="function"&&(a.callback=function(){X_(l,d,g),typeof b!="function"&&(Oi===null?Oi=new Set([this]):Oi.add(this));var I=g.stack;this.componentDidCatch(g.value,{componentStack:I!==null?I:""})})}function b4(a,l,d,g,b){if(d.flags|=32768,g!==null&&typeof g=="object"&&typeof g.then=="function"){if(l=d.alternate,l!==null&&wl(l,d,b,!0),d=qn.current,d!==null){switch(d.tag){case 13:return yr===null?Cg():d.alternate===null&&yt===0&&(yt=3),d.flags&=-257,d.flags|=65536,d.lanes=b,g===Nm?d.flags|=16384:(l=d.updateQueue,l===null?d.updateQueue=new Set([g]):l.add(g),Mg(a,g,b)),!1;case 22:return d.flags|=65536,g===Nm?d.flags|=16384:(l=d.updateQueue,l===null?(l={transitions:null,markerInstances:null,retryQueue:new Set([g])},d.updateQueue=l):(d=l.retryQueue,d===null?l.retryQueue=new Set([g]):d.add(g)),Mg(a,g,b)),!1}throw Error(r(435,d.tag))}return Mg(a,g,b),Cg(),!1}if(He)return l=qn.current,l!==null?((l.flags&65536)===0&&(l.flags|=256),l.flags|=65536,l.lanes=b,g!==wm&&(a=Error(r(422),{cause:g}),Al(In(a,d)))):(g!==wm&&(l=Error(r(423),{cause:g}),Al(In(l,d))),a=a.current.alternate,a.flags|=65536,b&=-b,a.lanes|=b,g=In(g,d),b=ng(a.stateNode,g,b),Im(a,b),yt!==4&&(yt=2)),!1;var T=Error(r(520),{cause:g});if(T=In(T,d),Hl===null?Hl=[T]:Hl.push(T),yt!==4&&(yt=2),l===null)return!0;g=In(g,d),d=l;do{switch(d.tag){case 3:return d.flags|=65536,a=b&-b,d.lanes|=a,a=ng(d.stateNode,g,a),Im(d,a),!1;case 1:if(l=d.type,T=d.stateNode,(d.flags&128)===0&&(typeof l.getDerivedStateFromError=="function"||T!==null&&typeof T.componentDidCatch=="function"&&(Oi===null||!Oi.has(T))))return d.flags|=65536,b&=-b,d.lanes|=b,b=J_(b),Z_(b,a,d,g),Im(d,b),!1}d=d.return}while(d!==null);return!1}var Q_=Error(r(461)),qt=!1;function Ht(a,l,d,g){l.child=a===null?F_(l,null,d,g):Na(l,a.child,d,g)}function eC(a,l,d,g,b){d=d.render;var T=l.ref;if("ref"in g){var R={};for(var I in g)I!=="ref"&&(R[I]=g[I])}else R=g;return vo(l),g=Bm(a,l,d,R,T,b),I=$m(),a!==null&&!qt?(Vm(a,l,b),Hr(a,l,b)):(He&&I&&Sm(l),l.flags|=1,Ht(a,l,g,b),l.child)}function tC(a,l,d,g,b){if(a===null){var T=d.type;return typeof T=="function"&&!bm(T)&&T.defaultProps===void 0&&d.compare===null?(l.tag=15,l.type=T,nC(a,l,T,g,b)):(a=sf(d.type,null,g,l,l.mode,b),a.ref=l.ref,a.return=l,l.child=a)}if(T=a.child,!cg(a,b)){var R=T.memoizedProps;if(d=d.compare,d=d!==null?d:bl,d(R,g)&&a.ref===l.ref)return Hr(a,l,b)}return l.flags|=1,a=Ur(T,g),a.ref=l.ref,a.return=l,l.child=a}function nC(a,l,d,g,b){if(a!==null){var T=a.memoizedProps;if(bl(T,g)&&a.ref===l.ref)if(qt=!1,l.pendingProps=g=T,cg(a,b))(a.flags&131072)!==0&&(qt=!0);else return l.lanes=a.lanes,Hr(a,l,b)}return rg(a,l,d,g,b)}function rC(a,l,d){var g=l.pendingProps,b=g.children,T=a!==null?a.memoizedState:null;if(g.mode==="hidden"){if((l.flags&128)!==0){if(g=T!==null?T.baseLanes|d:d,a!==null){for(b=l.child=a.child,T=0;b!==null;)T=T|b.lanes|b.childLanes,b=b.sibling;l.childLanes=T&~g}else l.childLanes=0,l.child=null;return iC(a,l,g,d)}if((d&536870912)!==0)l.memoizedState={baseLanes:0,cachePool:null},a!==null&&df(l,T!==null?T.cachePool:null),T!==null?n_(l,T):Lm(),H_(l);else return l.lanes=l.childLanes=536870912,iC(a,l,T!==null?T.baseLanes|d:d,d)}else T!==null?(df(l,T.cachePool),n_(l,T),Ci(),l.memoizedState=null):(a!==null&&df(l,null),Lm(),Ci());return Ht(a,l,b,d),l.child}function iC(a,l,d,g){var b=Rm();return b=b===null?null:{parent:Rt._currentValue,pool:b},l.memoizedState={baseLanes:d,cachePool:b},a!==null&&df(l,null),Lm(),H_(l),a!==null&&wl(a,l,g,!0),null}function Pf(a,l){var d=l.ref;if(d===null)a!==null&&a.ref!==null&&(l.flags|=4194816);else{if(typeof d!="function"&&typeof d!="object")throw Error(r(284));(a===null||a.ref!==d)&&(l.flags|=4194816)}}function rg(a,l,d,g,b){return vo(l),d=Bm(a,l,d,g,void 0,b),g=$m(),a!==null&&!qt?(Vm(a,l,b),Hr(a,l,b)):(He&&g&&Sm(l),l.flags|=1,Ht(a,l,d,b),l.child)}function oC(a,l,d,g,b,T){return vo(l),l.updateQueue=null,d=i_(l,g,d,b),r_(a),g=$m(),a!==null&&!qt?(Vm(a,l,T),Hr(a,l,T)):(He&&g&&Sm(l),l.flags|=1,Ht(a,l,d,T),l.child)}function aC(a,l,d,g,b){if(vo(l),l.stateNode===null){var T=Ta,R=d.contextType;typeof R=="object"&&R!==null&&(T=Jt(R)),T=new d(g,T),l.memoizedState=T.state!==null&&T.state!==void 0?T.state:null,T.updater=tg,l.stateNode=T,T._reactInternals=l,T=l.stateNode,T.props=g,T.state=l.memoizedState,T.refs={},Om(l),R=d.contextType,T.context=typeof R=="object"&&R!==null?Jt(R):Ta,T.state=l.memoizedState,R=d.getDerivedStateFromProps,typeof R=="function"&&(eg(l,d,R,g),T.state=l.memoizedState),typeof d.getDerivedStateFromProps=="function"||typeof T.getSnapshotBeforeUpdate=="function"||typeof T.UNSAFE_componentWillMount!="function"&&typeof T.componentWillMount!="function"||(R=T.state,typeof T.componentWillMount=="function"&&T.componentWillMount(),typeof T.UNSAFE_componentWillMount=="function"&&T.UNSAFE_componentWillMount(),R!==T.state&&tg.enqueueReplaceState(T,T.state,null),Nl(l,g,T,b),Rl(),T.state=l.memoizedState),typeof T.componentDidMount=="function"&&(l.flags|=4194308),g=!0}else if(a===null){T=l.stateNode;var I=l.memoizedProps,V=To(d,I);T.props=V;var X=T.context,oe=d.contextType;R=Ta,typeof oe=="object"&&oe!==null&&(R=Jt(oe));var le=d.getDerivedStateFromProps;oe=typeof le=="function"||typeof T.getSnapshotBeforeUpdate=="function",I=l.pendingProps!==I,oe||typeof T.UNSAFE_componentWillReceiveProps!="function"&&typeof T.componentWillReceiveProps!="function"||(I||X!==R)&&z_(l,T,g,R),Ti=!1;var Q=l.memoizedState;T.state=Q,Nl(l,g,T,b),Rl(),X=l.memoizedState,I||Q!==X||Ti?(typeof le=="function"&&(eg(l,d,le,g),X=l.memoizedState),(V=Ti||G_(l,d,V,g,Q,X,R))?(oe||typeof T.UNSAFE_componentWillMount!="function"&&typeof T.componentWillMount!="function"||(typeof T.componentWillMount=="function"&&T.componentWillMount(),typeof T.UNSAFE_componentWillMount=="function"&&T.UNSAFE_componentWillMount()),typeof T.componentDidMount=="function"&&(l.flags|=4194308)):(typeof T.componentDidMount=="function"&&(l.flags|=4194308),l.memoizedProps=g,l.memoizedState=X),T.props=g,T.state=X,T.context=R,g=V):(typeof T.componentDidMount=="function"&&(l.flags|=4194308),g=!1)}else{T=l.stateNode,Dm(a,l),R=l.memoizedProps,oe=To(d,R),T.props=oe,le=l.pendingProps,Q=T.context,X=d.contextType,V=Ta,typeof X=="object"&&X!==null&&(V=Jt(X)),I=d.getDerivedStateFromProps,(X=typeof I=="function"||typeof T.getSnapshotBeforeUpdate=="function")||typeof T.UNSAFE_componentWillReceiveProps!="function"&&typeof T.componentWillReceiveProps!="function"||(R!==le||Q!==V)&&z_(l,T,g,V),Ti=!1,Q=l.memoizedState,T.state=Q,Nl(l,g,T,b),Rl();var ee=l.memoizedState;R!==le||Q!==ee||Ti||a!==null&&a.dependencies!==null&&cf(a.dependencies)?(typeof I=="function"&&(eg(l,d,I,g),ee=l.memoizedState),(oe=Ti||G_(l,d,oe,g,Q,ee,V)||a!==null&&a.dependencies!==null&&cf(a.dependencies))?(X||typeof T.UNSAFE_componentWillUpdate!="function"&&typeof T.componentWillUpdate!="function"||(typeof T.componentWillUpdate=="function"&&T.componentWillUpdate(g,ee,V),typeof T.UNSAFE_componentWillUpdate=="function"&&T.UNSAFE_componentWillUpdate(g,ee,V)),typeof T.componentDidUpdate=="function"&&(l.flags|=4),typeof T.getSnapshotBeforeUpdate=="function"&&(l.flags|=1024)):(typeof T.componentDidUpdate!="function"||R===a.memoizedProps&&Q===a.memoizedState||(l.flags|=4),typeof T.getSnapshotBeforeUpdate!="function"||R===a.memoizedProps&&Q===a.memoizedState||(l.flags|=1024),l.memoizedProps=g,l.memoizedState=ee),T.props=g,T.state=ee,T.context=V,g=oe):(typeof T.componentDidUpdate!="function"||R===a.memoizedProps&&Q===a.memoizedState||(l.flags|=4),typeof T.getSnapshotBeforeUpdate!="function"||R===a.memoizedProps&&Q===a.memoizedState||(l.flags|=1024),g=!1)}return T=g,Pf(a,l),g=(l.flags&128)!==0,T||g?(T=l.stateNode,d=g&&typeof d.getDerivedStateFromError!="function"?null:T.render(),l.flags|=1,a!==null&&g?(l.child=Na(l,a.child,null,b),l.child=Na(l,null,d,b)):Ht(a,l,d,b),l.memoizedState=T.state,a=l.child):a=Hr(a,l,b),a}function sC(a,l,d,g){return Sl(),l.flags|=256,Ht(a,l,d,g),l.child}var ig={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function og(a){return{baseLanes:a,cachePool:Y1()}}function ag(a,l,d){return a=a!==null?a.childLanes&~d:0,l&&(a|=Bn),a}function lC(a,l,d){var g=l.pendingProps,b=!1,T=(l.flags&128)!==0,R;if((R=T)||(R=a!==null&&a.memoizedState===null?!1:(Nt.current&2)!==0),R&&(b=!0,l.flags&=-129),R=(l.flags&32)!==0,l.flags&=-33,a===null){if(He){if(b?_i(l):Ci(),He){var I=gt,V;if(V=I){e:{for(V=I,I=gr;V.nodeType!==8;){if(!I){I=null;break e}if(V=tr(V.nextSibling),V===null){I=null;break e}}I=V}I!==null?(l.memoizedState={dehydrated:I,treeContext:ho!==null?{id:qr,overflow:Br}:null,retryLane:536870912,hydrationErrors:null},V=Tn(18,null,null,0),V.stateNode=I,V.return=l,l.child=V,on=l,gt=null,V=!0):V=!1}V||go(l)}if(I=l.memoizedState,I!==null&&(I=I.dehydrated,I!==null))return Fg(I)?l.lanes=32:l.lanes=536870912,null;Fr(l)}return I=g.children,g=g.fallback,b?(Ci(),b=l.mode,I=Rf({mode:"hidden",children:I},b),g=fo(g,b,d,null),I.return=l,g.return=l,I.sibling=g,l.child=I,b=l.child,b.memoizedState=og(d),b.childLanes=ag(a,R,d),l.memoizedState=ig,g):(_i(l),sg(l,I))}if(V=a.memoizedState,V!==null&&(I=V.dehydrated,I!==null)){if(T)l.flags&256?(_i(l),l.flags&=-257,l=lg(a,l,d)):l.memoizedState!==null?(Ci(),l.child=a.child,l.flags|=128,l=null):(Ci(),b=g.fallback,I=l.mode,g=Rf({mode:"visible",children:g.children},I),b=fo(b,I,d,null),b.flags|=2,g.return=l,b.return=l,g.sibling=b,l.child=g,Na(l,a.child,null,d),g=l.child,g.memoizedState=og(d),g.childLanes=ag(a,R,d),l.memoizedState=ig,l=b);else if(_i(l),Fg(I)){if(R=I.nextSibling&&I.nextSibling.dataset,R)var X=R.dgst;R=X,g=Error(r(419)),g.stack="",g.digest=R,Al({value:g,source:null,stack:null}),l=lg(a,l,d)}else if(qt||wl(a,l,d,!1),R=(d&a.childLanes)!==0,qt||R){if(R=rt,R!==null&&(g=d&-d,g=(g&42)!==0?1:Hp(g),g=(g&(R.suspendedLanes|d))!==0?0:g,g!==0&&g!==V.retryLane))throw V.retryLane=g,xa(a,g),Cn(R,a,g),Q_;I.data==="$?"||Cg(),l=lg(a,l,d)}else I.data==="$?"?(l.flags|=192,l.child=a.child,l=null):(a=V.treeContext,gt=tr(I.nextSibling),on=l,He=!0,mo=null,gr=!1,a!==null&&(Ln[Un++]=qr,Ln[Un++]=Br,Ln[Un++]=ho,qr=a.id,Br=a.overflow,ho=l),l=sg(l,g.children),l.flags|=4096);return l}return b?(Ci(),b=g.fallback,I=l.mode,V=a.child,X=V.sibling,g=Ur(V,{mode:"hidden",children:g.children}),g.subtreeFlags=V.subtreeFlags&65011712,X!==null?b=Ur(X,b):(b=fo(b,I,d,null),b.flags|=2),b.return=l,g.return=l,g.sibling=b,l.child=g,g=b,b=l.child,I=a.child.memoizedState,I===null?I=og(d):(V=I.cachePool,V!==null?(X=Rt._currentValue,V=V.parent!==X?{parent:X,pool:X}:V):V=Y1(),I={baseLanes:I.baseLanes|d,cachePool:V}),b.memoizedState=I,b.childLanes=ag(a,R,d),l.memoizedState=ig,g):(_i(l),d=a.child,a=d.sibling,d=Ur(d,{mode:"visible",children:g.children}),d.return=l,d.sibling=null,a!==null&&(R=l.deletions,R===null?(l.deletions=[a],l.flags|=16):R.push(a)),l.child=d,l.memoizedState=null,d)}function sg(a,l){return l=Rf({mode:"visible",children:l},a.mode),l.return=a,a.child=l}function Rf(a,l){return a=Tn(22,a,null,l),a.lanes=0,a.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},a}function lg(a,l,d){return Na(l,a.child,null,d),a=sg(l,l.pendingProps.children),a.flags|=2,l.memoizedState=null,a}function uC(a,l,d){a.lanes|=l;var g=a.alternate;g!==null&&(g.lanes|=l),Cm(a.return,l,d)}function ug(a,l,d,g,b){var T=a.memoizedState;T===null?a.memoizedState={isBackwards:l,rendering:null,renderingStartTime:0,last:g,tail:d,tailMode:b}:(T.isBackwards=l,T.rendering=null,T.renderingStartTime=0,T.last=g,T.tail=d,T.tailMode=b)}function cC(a,l,d){var g=l.pendingProps,b=g.revealOrder,T=g.tail;if(Ht(a,l,g.children,d),g=Nt.current,(g&2)!==0)g=g&1|2,l.flags|=128;else{if(a!==null&&(a.flags&128)!==0)e:for(a=l.child;a!==null;){if(a.tag===13)a.memoizedState!==null&&uC(a,d,l);else if(a.tag===19)uC(a,d,l);else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===l)break e;for(;a.sibling===null;){if(a.return===null||a.return===l)break e;a=a.return}a.sibling.return=a.return,a=a.sibling}g&=1}switch(ae(Nt,g),b){case"forwards":for(d=l.child,b=null;d!==null;)a=d.alternate,a!==null&&Cf(a)===null&&(b=d),d=d.sibling;d=b,d===null?(b=l.child,l.child=null):(b=d.sibling,d.sibling=null),ug(l,!1,b,d,T);break;case"backwards":for(d=null,b=l.child,l.child=null;b!==null;){if(a=b.alternate,a!==null&&Cf(a)===null){l.child=b;break}a=b.sibling,b.sibling=d,d=b,b=a}ug(l,!0,d,null,T);break;case"together":ug(l,!1,null,null,void 0);break;default:l.memoizedState=null}return l.child}function Hr(a,l,d){if(a!==null&&(l.dependencies=a.dependencies),Ni|=l.lanes,(d&l.childLanes)===0)if(a!==null){if(wl(a,l,d,!1),(d&l.childLanes)===0)return null}else return null;if(a!==null&&l.child!==a.child)throw Error(r(153));if(l.child!==null){for(a=l.child,d=Ur(a,a.pendingProps),l.child=d,d.return=l;a.sibling!==null;)a=a.sibling,d=d.sibling=Ur(a,a.pendingProps),d.return=l;d.sibling=null}return l.child}function cg(a,l){return(a.lanes&l)!==0?!0:(a=a.dependencies,!!(a!==null&&cf(a)))}function x4(a,l,d){switch(l.tag){case 3:Ne(l,l.stateNode.containerInfo),xi(l,Rt,a.memoizedState.cache),Sl();break;case 27:case 5:Ee(l);break;case 4:Ne(l,l.stateNode.containerInfo);break;case 10:xi(l,l.type,l.memoizedProps.value);break;case 13:var g=l.memoizedState;if(g!==null)return g.dehydrated!==null?(_i(l),l.flags|=128,null):(d&l.child.childLanes)!==0?lC(a,l,d):(_i(l),a=Hr(a,l,d),a!==null?a.sibling:null);_i(l);break;case 19:var b=(a.flags&128)!==0;if(g=(d&l.childLanes)!==0,g||(wl(a,l,d,!1),g=(d&l.childLanes)!==0),b){if(g)return cC(a,l,d);l.flags|=128}if(b=l.memoizedState,b!==null&&(b.rendering=null,b.tail=null,b.lastEffect=null),ae(Nt,Nt.current),g)break;return null;case 22:case 23:return l.lanes=0,rC(a,l,d);case 24:xi(l,Rt,a.memoizedState.cache)}return Hr(a,l,d)}function fC(a,l,d){if(a!==null)if(a.memoizedProps!==l.pendingProps)qt=!0;else{if(!cg(a,d)&&(l.flags&128)===0)return qt=!1,x4(a,l,d);qt=(a.flags&131072)!==0}else qt=!1,He&&(l.flags&1048576)!==0&&V1(l,uf,l.index);switch(l.lanes=0,l.tag){case 16:e:{a=l.pendingProps;var g=l.elementType,b=g._init;if(g=b(g._payload),l.type=g,typeof g=="function")bm(g)?(a=To(g,a),l.tag=1,l=aC(null,l,g,a,d)):(l.tag=0,l=rg(null,l,g,a,d));else{if(g!=null){if(b=g.$$typeof,b===O){l.tag=11,l=eC(null,l,g,a,d);break e}else if(b===D){l.tag=14,l=tC(null,l,g,a,d);break e}}throw l=ne(g)||g,Error(r(306,l,""))}}return l;
vendor: 2,414 bytes, line 48
48case 0:return rg(a,l,l.type,l.pendingProps,d);case 1:return g=l.type,b=To(g,l.pendingProps),aC(a,l,g,b,d);case 3:e:{if(Ne(l,l.stateNode.containerInfo),a===null)throw Error(r(387));g=l.pendingProps;var T=l.memoizedState;b=T.element,Dm(a,l),Nl(l,g,null,d);var R=l.memoizedState;if(g=R.cache,xi(l,Rt,g),g!==T.cache&&Em(l,[Rt],d,!0),Rl(),g=R.element,T.isDehydrated)if(T={element:g,isDehydrated:!1,cache:R.cache},l.updateQueue.baseState=T,l.memoizedState=T,l.flags&256){l=sC(a,l,g,d);break e}else if(g!==b){b=In(Error(r(424)),l),Al(b),l=sC(a,l,g,d);break e}else{switch(a=l.stateNode.containerInfo,a.nodeType){case 9:a=a.body;break;default:a=a.nodeName==="HTML"?a.ownerDocument.body:a}for(gt=tr(a.firstChild),on=l,He=!0,mo=null,gr=!0,d=F_(l,null,g,d),l.child=d;d;)d.flags=d.flags&-3|4096,d=d.sibling}else{if(Sl(),g===b){l=Hr(a,l,d);break e}Ht(a,l,g,d)}l=l.child}return l;case 26:return Pf(a,l),a===null?(d=mE(l.type,null,l.pendingProps,null))?l.memoizedState=d:He||(d=l.type,a=l.pendingProps,g=Hf(ve.current).createElement(d),g[Xt]=l,g[fn]=a,zt(g,d,a),Ut(g),l.stateNode=g):l.memoizedState=mE(l.type,a.memoizedProps,l.pendingProps,a.memoizedState),null;case 27:return Ee(l),a===null&&He&&(g=l.stateNode=dE(l.type,l.pendingProps,ve.current),on=l,gr=!0,b=gt,ki(l.type)?(Hg=b,gt=tr(g.firstChild)):gt=b),Ht(a,l,l.pendingProps.children,d),Pf(a,l),a===null&&(l.flags|=4194304),l.child;case 5:return a===null&&He&&((b=g=gt)&&(g=Y4(g,l.type,l.pendingProps,gr),g!==null?(l.stateNode=g,on=l,gt=tr(g.firstChild),gr=!1,b=!0):b=!1),b||go(l)),Ee(l),b=l.type,T=l.pendingProps,R=a!==null?a.memoizedProps:null,g=T.children,$g(b,T)?g=null:R!==null&&$g(b,R)&&(l.flags|=32),l.memoizedState!==null&&(b=Bm(a,l,d4,null,null,d),Ql._currentValue=b),Pf(a,l),Ht(a,l,g,d),l.child;case 6:return a===null&&He&&((a=d=gt)&&(d=W4(d,l.pendingProps,gr),d!==null?(l.stateNode=d,on=l,gt=null,a=!0):a=!1),a||go(l)),null;case 13:return lC(a,l,d);case 4:return Ne(l,l.stateNode.containerInfo),g=l.pendingProps,a===null?l.child=Na(l,null,g,d):Ht(a,l,g,d),l.child;case 11:return eC(a,l,l.type,l.pendingProps,d);case 7:return Ht(a,l,l.pendingProps,d),l.child;case 8:return Ht(a,l,l.pendingProps.children,d),l.child;case 12:return Ht(a,l,l.pendingProps.children,d),l.child;case 10:return g=l.pendingProps,xi(l,l.type,g.value),Ht(a,l,g.children,d),l.child;case 9:return b=l.type._context,g=l.pendingProps.children,vo(l),b=Jt(b),g=g(b),l.flags|=1,Ht(a,l,g,d),l.child;
vendor: 17,776 bytes, line 48
48case 14:return tC(a,l,l.type,l.pendingProps,d);case 15:return nC(a,l,l.type,l.pendingProps,d);case 19:return cC(a,l,d);case 31:return g=l.pendingProps,d=l.mode,g={mode:g.mode,children:g.children},a===null?(d=Rf(g,d),d.ref=l.ref,l.child=d,d.return=l,l=d):(d=Ur(a.child,g),d.ref=l.ref,l.child=d,d.return=l,l=d),l;case 22:return rC(a,l,d);case 24:return vo(l),g=Jt(Rt),a===null?(b=Rm(),b===null&&(b=rt,T=Mm(),b.pooledCache=T,T.refCount++,T!==null&&(b.pooledCacheLanes|=d),b=T),l.memoizedState={parent:g,cache:b},Om(l),xi(l,Rt,b)):((a.lanes&d)!==0&&(Dm(a,l),Nl(l,null,null,d),Rl()),b=a.memoizedState,T=l.memoizedState,b.parent!==g?(b={parent:g,cache:g},l.memoizedState=b,l.lanes===0&&(l.memoizedState=l.updateQueue.baseState=b),xi(l,Rt,g)):(g=T.cache,xi(l,Rt,g),g!==b.cache&&Em(l,[Rt],d,!0))),Ht(a,l,l.pendingProps.children,d),l.child;case 29:throw l.pendingProps}throw Error(r(156,l.tag))}function Gr(a){a.flags|=4}function dC(a,l){if(l.type!=="stylesheet"||(l.state.loading&4)!==0)a.flags&=-16777217;else if(a.flags|=16777216,!xE(l)){if(l=qn.current,l!==null&&((Be&4194048)===Be?yr!==null:(Be&62914560)!==Be&&(Be&536870912)===0||l!==yr))throw Ml=Nm,W1;a.flags|=8192}}function Nf(a,l){l!==null&&(a.flags|=4),a.flags&16384&&(l=a.tag!==22?Hw():536870912,a.lanes|=l,ka|=l)}function ql(a,l){if(!He)switch(a.tailMode){case"hidden":l=a.tail;for(var d=null;l!==null;)l.alternate!==null&&(d=l),l=l.sibling;d===null?a.tail=null:d.sibling=null;break;case"collapsed":d=a.tail;for(var g=null;d!==null;)d.alternate!==null&&(g=d),d=d.sibling;g===null?l||a.tail===null?a.tail=null:a.tail.sibling=null:g.sibling=null}}function ht(a){var l=a.alternate!==null&&a.alternate.child===a.child,d=0,g=0;if(l)for(var b=a.child;b!==null;)d|=b.lanes|b.childLanes,g|=b.subtreeFlags&65011712,g|=b.flags&65011712,b.return=a,b=b.sibling;else for(b=a.child;b!==null;)d|=b.lanes|b.childLanes,g|=b.subtreeFlags,g|=b.flags,b.return=a,b=b.sibling;return a.subtreeFlags|=g,a.childLanes=d,l}function T4(a,l,d){var g=l.pendingProps;switch(Am(l),l.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ht(l),null;case 1:return ht(l),null;case 3:return d=l.stateNode,g=null,a!==null&&(g=a.memoizedState.cache),l.memoizedState.cache!==g&&(l.flags|=2048),Vr(Rt),de(),d.pendingContext&&(d.context=d.pendingContext,d.pendingContext=null),(a===null||a.child===null)&&(Tl(l)?Gr(l):a===null||a.memoizedState.isDehydrated&&(l.flags&256)===0||(l.flags|=1024,H1())),ht(l),null;case 26:return d=l.memoizedState,a===null?(Gr(l),d!==null?(ht(l),dC(l,d)):(ht(l),l.flags&=-16777217)):d?d!==a.memoizedState?(Gr(l),ht(l),dC(l,d)):(ht(l),l.flags&=-16777217):(a.memoizedProps!==g&&Gr(l),ht(l),l.flags&=-16777217),null;case 27:Me(l),d=ve.current;var b=l.type;if(a!==null&&l.stateNode!=null)a.memoizedProps!==g&&Gr(l);else{if(!g){if(l.stateNode===null)throw Error(r(166));return ht(l),null}a=he.current,Tl(l)?j1(l):(a=dE(b,g,d),l.stateNode=a,Gr(l))}return ht(l),null;case 5:if(Me(l),d=l.type,a!==null&&l.stateNode!=null)a.memoizedProps!==g&&Gr(l);else{if(!g){if(l.stateNode===null)throw Error(r(166));return ht(l),null}if(a=he.current,Tl(l))j1(l);else{switch(b=Hf(ve.current),a){case 1:a=b.createElementNS("http://www.w3.org/2000/svg",d);break;case 2:a=b.createElementNS("http://www.w3.org/1998/Math/MathML",d);break;default:switch(d){case"svg":a=b.createElementNS("http://www.w3.org/2000/svg",d);break;case"math":a=b.createElementNS("http://www.w3.org/1998/Math/MathML",d);break;case"script":a=b.createElement("div"),a.innerHTML="<script><\/script>",a=a.removeChild(a.firstChild);break;case"select":a=typeof g.is=="string"?b.createElement("select",{is:g.is}):b.createElement("select"),g.multiple?a.multiple=!0:g.size&&(a.size=g.size);break;default:a=typeof g.is=="string"?b.createElement(d,{is:g.is}):b.createElement(d)}}a[Xt]=l,a[fn]=g;e:for(b=l.child;b!==null;){if(b.tag===5||b.tag===6)a.appendChild(b.stateNode);else if(b.tag!==4&&b.tag!==27&&b.child!==null){b.child.return=b,b=b.child;continue}if(b===l)break e;for(;b.sibling===null;){if(b.return===null||b.return===l)break e;b=b.return}b.sibling.return=b.return,b=b.sibling}l.stateNode=a;e:switch(zt(a,d,g),d){case"button":case"input":case"select":case"textarea":a=!!g.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&Gr(l)}}return ht(l),l.flags&=-16777217,null;case 6:if(a&&l.stateNode!=null)a.memoizedProps!==g&&Gr(l);else{if(typeof g!="string"&&l.stateNode===null)throw Error(r(166));if(a=ve.current,Tl(l)){if(a=l.stateNode,d=l.memoizedProps,g=null,b=on,b!==null)switch(b.tag){case 27:case 5:g=b.memoizedProps}a[Xt]=l,a=!!(a.nodeValue===d||g!==null&&g.suppressHydrationWarning===!0||oE(a.nodeValue,d)),a||go(l)}else a=Hf(a).createTextNode(g),a[Xt]=l,l.stateNode=a}return ht(l),null;case 13:if(g=l.memoizedState,a===null||a.memoizedState!==null&&a.memoizedState.dehydrated!==null){if(b=Tl(l),g!==null&&g.dehydrated!==null){if(a===null){if(!b)throw Error(r(318));if(b=l.memoizedState,b=b!==null?b.dehydrated:null,!b)throw Error(r(317));b[Xt]=l}else Sl(),(l.flags&128)===0&&(l.memoizedState=null),l.flags|=4;ht(l),b=!1}else b=H1(),a!==null&&a.memoizedState!==null&&(a.memoizedState.hydrationErrors=b),b=!0;if(!b)return l.flags&256?(Fr(l),l):(Fr(l),null)}if(Fr(l),(l.flags&128)!==0)return l.lanes=d,l;if(d=g!==null,a=a!==null&&a.memoizedState!==null,d){g=l.child,b=null,g.alternate!==null&&g.alternate.memoizedState!==null&&g.alternate.memoizedState.cachePool!==null&&(b=g.alternate.memoizedState.cachePool.pool);var T=null;g.memoizedState!==null&&g.memoizedState.cachePool!==null&&(T=g.memoizedState.cachePool.pool),T!==b&&(g.flags|=2048)}return d!==a&&d&&(l.child.flags|=8192),Nf(l,l.updateQueue),ht(l),null;case 4:return de(),a===null&&kg(l.stateNode.containerInfo),ht(l),null;case 10:return Vr(l.type),ht(l),null;case 19:if(re(Nt),b=l.memoizedState,b===null)return ht(l),null;if(g=(l.flags&128)!==0,T=b.rendering,T===null)if(g)ql(b,!1);else{if(yt!==0||a!==null&&(a.flags&128)!==0)for(a=l.child;a!==null;){if(T=Cf(a),T!==null){for(l.flags|=128,ql(b,!1),a=T.updateQueue,l.updateQueue=a,Nf(l,a),l.subtreeFlags=0,a=d,d=l.child;d!==null;)$1(d,a),d=d.sibling;return ae(Nt,Nt.current&1|2),l.child}a=a.sibling}b.tail!==null&<()>If&&(l.flags|=128,g=!0,ql(b,!1),l.lanes=4194304)}else{if(!g)if(a=Cf(T),a!==null){if(l.flags|=128,g=!0,a=a.updateQueue,l.updateQueue=a,Nf(l,a),ql(b,!0),b.tail===null&&b.tailMode==="hidden"&&!T.alternate&&!He)return ht(l),null}else 2*lt()-b.renderingStartTime>If&&d!==536870912&&(l.flags|=128,g=!0,ql(b,!1),l.lanes=4194304);b.isBackwards?(T.sibling=l.child,l.child=T):(a=b.last,a!==null?a.sibling=T:l.child=T,b.last=T)}return b.tail!==null?(l=b.tail,b.rendering=l,b.tail=l.sibling,b.renderingStartTime=lt(),l.sibling=null,a=Nt.current,ae(Nt,g?a&1|2:a&1),l):(ht(l),null);case 22:case 23:return Fr(l),Um(),g=l.memoizedState!==null,a!==null?a.memoizedState!==null!==g&&(l.flags|=8192):g&&(l.flags|=8192),g?(d&536870912)!==0&&(l.flags&128)===0&&(ht(l),l.subtreeFlags&6&&(l.flags|=8192)):ht(l),d=l.updateQueue,d!==null&&Nf(l,d.retryQueue),d=null,a!==null&&a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(d=a.memoizedState.cachePool.pool),g=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(g=l.memoizedState.cachePool.pool),g!==d&&(l.flags|=2048),a!==null&&re(bo),null;case 24:return d=null,a!==null&&(d=a.memoizedState.cache),l.memoizedState.cache!==d&&(l.flags|=2048),Vr(Rt),ht(l),null;case 25:return null;case 30:return null}throw Error(r(156,l.tag))}function S4(a,l){switch(Am(l),l.tag){case 1:return a=l.flags,a&65536?(l.flags=a&-65537|128,l):null;case 3:return Vr(Rt),de(),a=l.flags,(a&65536)!==0&&(a&128)===0?(l.flags=a&-65537|128,l):null;case 26:case 27:case 5:return Me(l),null;case 13:if(Fr(l),a=l.memoizedState,a!==null&&a.dehydrated!==null){if(l.alternate===null)throw Error(r(340));Sl()}return a=l.flags,a&65536?(l.flags=a&-65537|128,l):null;case 19:return re(Nt),null;case 4:return de(),null;case 10:return Vr(l.type),null;case 22:case 23:return Fr(l),Um(),a!==null&&re(bo),a=l.flags,a&65536?(l.flags=a&-65537|128,l):null;case 24:return Vr(Rt),null;case 25:return null;default:return null}}function hC(a,l){switch(Am(l),l.tag){case 3:Vr(Rt),de();break;case 26:case 27:case 5:Me(l);break;case 4:de();break;case 13:Fr(l);break;case 19:re(Nt);break;case 10:Vr(l.type);break;case 22:case 23:Fr(l),Um(),a!==null&&re(bo);break;case 24:Vr(Rt)}}function Bl(a,l){try{var d=l.updateQueue,g=d!==null?d.lastEffect:null;if(g!==null){var b=g.next;d=b;do{if((d.tag&a)===a){g=void 0;var T=d.create,R=d.inst;g=T(),R.destroy=g}d=d.next}while(d!==b)}}catch(I){et(l,l.return,I)}}function Ei(a,l,d){try{var g=l.updateQueue,b=g!==null?g.lastEffect:null;if(b!==null){var T=b.next;g=T;do{if((g.tag&a)===a){var R=g.inst,I=R.destroy;if(I!==void 0){R.destroy=void 0,b=l;var V=d,X=I;try{X()}catch(oe){et(b,V,oe)}}}g=g.next}while(g!==T)}}catch(oe){et(l,l.return,oe)}}function pC(a){var l=a.updateQueue;if(l!==null){var d=a.stateNode;try{t_(l,d)}catch(g){et(a,a.return,g)}}}function mC(a,l,d){d.props=To(a.type,a.memoizedProps),d.state=a.memoizedState;try{d.componentWillUnmount()}catch(g){et(a,l,g)}}function $l(a,l){try{var d=a.ref;if(d!==null){switch(a.tag){case 26:case 27:case 5:var g=a.stateNode;break;case 30:g=a.stateNode;break;default:g=a.stateNode}typeof d=="function"?a.refCleanup=d(g):d.current=g}}catch(b){et(a,l,b)}}function vr(a,l){var d=a.ref,g=a.refCleanup;if(d!==null)if(typeof g=="function")try{g()}catch(b){et(a,l,b)}finally{a.refCleanup=null,a=a.alternate,a!=null&&(a.refCleanup=null)}else if(typeof d=="function")try{d(null)}catch(b){et(a,l,b)}else d.current=null}function gC(a){var l=a.type,d=a.memoizedProps,g=a.stateNode;try{e:switch(l){case"button":case"input":case"select":case"textarea":d.autoFocus&&g.focus();break e;case"img":d.src?g.src=d.src:d.srcSet&&(g.srcset=d.srcSet)}}catch(b){et(a,a.return,b)}}function fg(a,l,d){try{var g=a.stateNode;F4(g,a.type,d,l),g[fn]=l}catch(b){et(a,a.return,b)}}function yC(a){return a.tag===5||a.tag===3||a.tag===26||a.tag===27&&ki(a.type)||a.tag===4}function dg(a){e:for(;;){for(;a.sibling===null;){if(a.return===null||yC(a.return))return null;a=a.return}for(a.sibling.return=a.return,a=a.sibling;a.tag!==5&&a.tag!==6&&a.tag!==18;){if(a.tag===27&&ki(a.type)||a.flags&2||a.child===null||a.tag===4)continue e;a.child.return=a,a=a.child}if(!(a.flags&2))return a.stateNode}}function hg(a,l,d){var g=a.tag;if(g===5||g===6)a=a.stateNode,l?(d.nodeType===9?d.body:d.nodeName==="HTML"?d.ownerDocument.body:d).insertBefore(a,l):(l=d.nodeType===9?d.body:d.nodeName==="HTML"?d.ownerDocument.body:d,l.appendChild(a),d=d._reactRootContainer,d!=null||l.onclick!==null||(l.onclick=Ff));else if(g!==4&&(g===27&&ki(a.type)&&(d=a.stateNode,l=null),a=a.child,a!==null))for(hg(a,l,d),a=a.sibling;a!==null;)hg(a,l,d),a=a.sibling}function Of(a,l,d){var g=a.tag;if(g===5||g===6)a=a.stateNode,l?d.insertBefore(a,l):d.appendChild(a);else if(g!==4&&(g===27&&ki(a.type)&&(d=a.stateNode),a=a.child,a!==null))for(Of(a,l,d),a=a.sibling;a!==null;)Of(a,l,d),a=a.sibling}function vC(a){var l=a.stateNode,d=a.memoizedProps;try{for(var g=a.type,b=l.attributes;b.length;)l.removeAttributeNode(b[0]);zt(l,g,d),l[Xt]=a,l[fn]=d}catch(T){et(a,a.return,T)}}var zr=!1,wt=!1,pg=!1,bC=typeof WeakSet=="function"?WeakSet:Set,Bt=null;function A4(a,l){if(a=a.containerInfo,qg=Xf,a=R1(a),dm(a)){if("selectionStart"in a)var d={start:a.selectionStart,end:a.selectionEnd};else e:{d=(d=a.ownerDocument)&&d.defaultView||window;var g=d.getSelection&&d.getSelection();if(g&&g.rangeCount!==0){d=g.anchorNode;var b=g.anchorOffset,T=g.focusNode;g=g.focusOffset;try{d.nodeType,T.nodeType}catch{d=null;break e}var R=0,I=-1,V=-1,X=0,oe=0,le=a,Q=null;t:for(;;){for(var ee;le!==d||b!==0&&le.nodeType!==3||(I=R+b),le!==T||g!==0&&le.nodeType!==3||(V=R+g),le.nodeType===3&&(R+=le.nodeValue.length),(ee=le.firstChild)!==null;)Q=le,le=ee;for(;;){if(le===a)break t;if(Q===d&&++X===b&&(I=R),Q===T&&++oe===g&&(V=R),(ee=le.nextSibling)!==null)break;le=Q,Q=le.parentNode}le=ee}d=I===-1||V===-1?null:{start:I,end:V}}else d=null}d=d||{start:0,end:0}}else d=null;for(Bg={focusedElem:a,selectionRange:d},Xf=!1,Bt=l;Bt!==null;)if(l=Bt,a=l.child,(l.subtreeFlags&1024)!==0&&a!==null)a.return=l,Bt=a;else for(;Bt!==null;){switch(l=Bt,T=l.alternate,a=l.flags,l.tag){case 0:break;case 11:case 15:break;case 1:if((a&1024)!==0&&T!==null){a=void 0,d=l,b=T.memoizedProps,T=T.memoizedState,g=d.stateNode;try{var we=To(d.type,b,d.elementType===d.type);a=g.getSnapshotBeforeUpdate(we,T),g.__reactInternalSnapshotBeforeUpdate=a}catch(Te){et(d,d.return,Te)}}break;case 3:if((a&1024)!==0){if(a=l.stateNode.containerInfo,d=a.nodeType,d===9)jg(a);else if(d===1)switch(a.nodeName){case"HEAD":case"HTML":case"BODY":jg(a);break;default:a.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((a&1024)!==0)throw Error(r(163))}if(a=l.sibling,a!==null){a.return=l.return,Bt=a;break}Bt=l.return}}function xC(a,l,d){var g=d.flags;switch(d.tag){case 0:case 11:case 15:Mi(a,d),g&4&&Bl(5,d);break;case 1:if(Mi(a,d),g&4)if(a=d.stateNode,l===null)try{a.componentDidMount()}catch(R){et(d,d.return,R)}else{var b=To(d.type,l.memoizedProps);l=l.memoizedState;try{a.componentDidUpdate(b,l,a.__reactInternalSnapshotBeforeUpdate)}catch(R){et(d,d.return,R)}}g&64&&pC(d),g&512&&$l(d,d.return);break;case 3:if(Mi(a,d),g&64&&(a=d.updateQueue,a!==null)){if(l=null,d.child!==null)switch(d.child.tag){case 27:case 5:l=d.child.stateNode;break;case 1:l=d.child.stateNode}try{t_(a,l)}catch(R){et(d,d.return,R)}}break;case 27:l===null&&g&4&&vC(d);case 26:case 5:Mi(a,d),l===null&&g&4&&gC(d),g&512&&$l(d,d.return);break;case 12:Mi(a,d);break;case 13:Mi(a,d),g&4&&AC(a,d),g&64&&(a=d.memoizedState,a!==null&&(a=a.dehydrated,a!==null&&(d=O4.bind(null,d),X4(a,d))));break;case 22:if(g=d.memoizedState!==null||zr,!g){l=l!==null&&l.memoizedState!==null||wt,b=zr;var T=wt;zr=g,(wt=l)&&!T?Pi(a,d,(d.subtreeFlags&8772)!==0):Mi(a,d),zr=b,wt=T}break;case 30:break;default:Mi(a,d)}}function TC(a){var l=a.alternate;l!==null&&(a.alternate=null,TC(l)),a.child=null,a.deletions=null,a.sibling=null,a.tag===5&&(l=a.stateNode,l!==null&&Kp(l)),a.stateNode=null,a.return=null,a.dependencies=null,a.memoizedProps=null,a.memoizedState=null,a.pendingProps=null,a.stateNode=null,a.updateQueue=null}var ft=null,pn=!1;function Kr(a,l,d){for(d=d.child;d!==null;)SC(a,l,d),d=d.sibling}function SC(a,l,d){if(vn&&typeof vn.onCommitFiberUnmount=="function")try{vn.onCommitFiberUnmount(sl,d)}catch{}switch(d.tag){case 26:wt||vr(d,l),Kr(a,l,d),d.memoizedState?d.memoizedState.count--:d.stateNode&&(d=d.stateNode,d.parentNode.removeChild(d));break;case 27:wt||vr(d,l);var g=ft,b=pn;ki(d.type)&&(ft=d.stateNode,pn=!1),Kr(a,l,d),Wl(d.stateNode),ft=g,pn=b;break;case 5:wt||vr(d,l);case 6:if(g=ft,b=pn,ft=null,Kr(a,l,d),ft=g,pn=b,ft!==null)if(pn)try{(ft.nodeType===9?ft.body:ft.nodeName==="HTML"?ft.ownerDocument.body:ft).removeChild(d.stateNode)}catch(T){et(d,l,T)}else try{ft.removeChild(d.stateNode)}catch(T){et(d,l,T)}break;case 18:ft!==null&&(pn?(a=ft,cE(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,d.stateNode),ru(a)):cE(ft,d.stateNode));break;case 4:g=ft,b=pn,ft=d.stateNode.containerInfo,pn=!0,Kr(a,l,d),ft=g,pn=b;break;case 0:case 11:case 14:case 15:wt||Ei(2,d,l),wt||Ei(4,d,l),Kr(a,l,d);break;case 1:wt||(vr(d,l),g=d.stateNode,typeof g.componentWillUnmount=="function"&&mC(d,l,g)),Kr(a,l,d);break;case 21:Kr(a,l,d);break;case 22:wt=(g=wt)||d.memoizedState!==null,Kr(a,l,d),wt=g;break;default:Kr(a,l,d)}}function AC(a,l){if(l.memoizedState===null&&(a=l.alternate,a!==null&&(a=a.memoizedState,a!==null&&(a=a.dehydrated,a!==null))))try{ru(a)}catch(d){et(l,l.return,d)}}function w4(a){switch(a.tag){case 13:case 19:var l=a.stateNode;return l===null&&(l=a.stateNode=new bC),l;case 22:return a=a.stateNode,l=a._retryCache,l===null&&(l=a._retryCache=new bC),l;default:throw Error(r(435,a.tag))}}function mg(a,l){var d=w4(a);l.forEach(function(g){var b=D4.bind(null,a,g);d.has(g)||(d.add(g),g.then(b,b))})}function Sn(a,l){var d=l.deletions;if(d!==null)for(var g=0;g<d.length;g++){var b=d[g],T=a,R=l,I=R;e:for(;I!==null;){switch(I.tag){case 27:if(ki(I.type)){ft=I.stateNode,pn=!1;break e}break;case 5:ft=I.stateNode,pn=!1;break e;case 3:case 4:ft=I.stateNode.containerInfo,pn=!0;break e}I=I.return}if(ft===null)throw Error(r(160));SC(T,R,b),ft=null,pn=!1,T=b.alternate,T!==null&&(T.return=null),b.return=null}if(l.subtreeFlags&13878)for(l=l.child;l!==null;)wC(l,a),l=l.sibling}var er=null;function wC(a,l){var d=a.alternate,g=a.flags;switch(a.tag){case 0:case 11:case 14:case 15:Sn(l,a),An(a),g&4&&(Ei(3,a,a.return),Bl(3,a),Ei(5,a,a.return));break;case 1:Sn(l,a),An(a),g&512&&(wt||d===null||vr(d,d.return)),g&64&&zr&&(a=a.updateQueue,a!==null&&(g=a.callbacks,g!==null&&(d=a.shared.hiddenCallbacks,a.shared.hiddenCallbacks=d===null?g:d.concat(g))));break;case 26:var b=er;if(Sn(l,a),An(a),g&512&&(wt||d===null||vr(d,d.return)),g&4){var T=d!==null?d.memoizedState:null;if(g=a.memoizedState,d===null)if(g===null)if(a.stateNode===null){e:{g=a.type,d=a.memoizedProps,b=b.ownerDocument||b;t:switch(g){case"title":T=b.getElementsByTagName("title")[0],(!T||T[cl]||T[Xt]||T.namespaceURI==="http://www.w3.org/2000/svg"||T.hasAttribute("itemprop"))&&(T=b.createElement(g),b.head.insertBefore(T,b.querySelector("head > title"))),zt(T,g,d),T[Xt]=a,Ut(T),g=T;break e;case"link":var R=vE("link","href",b).get(g+(d.href||""));if(R){for(var I=0;I<R.length;I++)if(T=R[I],T.getAttribute("href")===(d.href==null||d.href===""?null:d.href)&&T.getAttribute("rel")===(d.rel==null?null:d.rel)&&T.getAttribute("title")===(d.title==null?null:d.title)&&T.getAttribute("crossorigin")===(d.crossOrigin==null?null:d.crossOrigin)){R.splice(I,1);break t}}T=b.createElement(g),zt(T,g,d),b.head.appendChild(T);break;case"meta":if(R=vE("meta","content",b).get(g+(d.content||""))){for(I=0;I<R.length;
vendor: 4,449 bytes, line 48
48I++)if(T=R[I],T.getAttribute("content")===(d.content==null?null:""+d.content)&&T.getAttribute("name")===(d.name==null?null:d.name)&&T.getAttribute("property")===(d.property==null?null:d.property)&&T.getAttribute("http-equiv")===(d.httpEquiv==null?null:d.httpEquiv)&&T.getAttribute("charset")===(d.charSet==null?null:d.charSet)){R.splice(I,1);break t}}T=b.createElement(g),zt(T,g,d),b.head.appendChild(T);break;default:throw Error(r(468,g))}T[Xt]=a,Ut(T),g=T}a.stateNode=g}else bE(b,a.type,a.stateNode);else a.stateNode=yE(b,g,a.memoizedProps);else T!==g?(T===null?d.stateNode!==null&&(d=d.stateNode,d.parentNode.removeChild(d)):T.count--,g===null?bE(b,a.type,a.stateNode):yE(b,g,a.memoizedProps)):g===null&&a.stateNode!==null&&fg(a,a.memoizedProps,d.memoizedProps)}break;case 27:Sn(l,a),An(a),g&512&&(wt||d===null||vr(d,d.return)),d!==null&&g&4&&fg(a,a.memoizedProps,d.memoizedProps);break;case 5:if(Sn(l,a),An(a),g&512&&(wt||d===null||vr(d,d.return)),a.flags&32){b=a.stateNode;try{ha(b,"")}catch(ee){et(a,a.return,ee)}}g&4&&a.stateNode!=null&&(b=a.memoizedProps,fg(a,b,d!==null?d.memoizedProps:b)),g&1024&&(pg=!0);break;case 6:if(Sn(l,a),An(a),g&4){if(a.stateNode===null)throw Error(r(162));g=a.memoizedProps,d=a.stateNode;try{d.nodeValue=g}catch(ee){et(a,a.return,ee)}}break;case 3:if(Kf=null,b=er,er=Gf(l.containerInfo),Sn(l,a),er=b,An(a),g&4&&d!==null&&d.memoizedState.isDehydrated)try{ru(l.containerInfo)}catch(ee){et(a,a.return,ee)}pg&&(pg=!1,_C(a));break;case 4:g=er,er=Gf(a.stateNode.containerInfo),Sn(l,a),An(a),er=g;break;case 12:Sn(l,a),An(a);break;case 13:Sn(l,a),An(a),a.child.flags&8192&&a.memoizedState!==null!=(d!==null&&d.memoizedState!==null)&&(Tg=lt()),g&4&&(g=a.updateQueue,g!==null&&(a.updateQueue=null,mg(a,g)));break;case 22:b=a.memoizedState!==null;var V=d!==null&&d.memoizedState!==null,X=zr,oe=wt;if(zr=X||b,wt=oe||V,Sn(l,a),wt=oe,zr=X,An(a),g&8192)e:for(l=a.stateNode,l._visibility=b?l._visibility&-2:l._visibility|1,b&&(d===null||V||zr||wt||So(a)),d=null,l=a;;){if(l.tag===5||l.tag===26){if(d===null){V=d=l;try{if(T=V.stateNode,b)R=T.style,typeof R.setProperty=="function"?R.setProperty("display","none","important"):R.display="none";else{I=V.stateNode;var le=V.memoizedProps.style,Q=le!=null&&le.hasOwnProperty("display")?le.display:null;I.style.display=Q==null||typeof Q=="boolean"?"":(""+Q).trim()}}catch(ee){et(V,V.return,ee)}}}else if(l.tag===6){if(d===null){V=l;try{V.stateNode.nodeValue=b?"":V.memoizedProps}catch(ee){et(V,V.return,ee)}}}else if((l.tag!==22&&l.tag!==23||l.memoizedState===null||l===a)&&l.child!==null){l.child.return=l,l=l.child;continue}if(l===a)break e;for(;l.sibling===null;){if(l.return===null||l.return===a)break e;d===l&&(d=null),l=l.return}d===l&&(d=null),l.sibling.return=l.return,l=l.sibling}g&4&&(g=a.updateQueue,g!==null&&(d=g.retryQueue,d!==null&&(g.retryQueue=null,mg(a,d))));break;case 19:Sn(l,a),An(a),g&4&&(g=a.updateQueue,g!==null&&(a.updateQueue=null,mg(a,g)));break;case 30:break;case 21:break;default:Sn(l,a),An(a)}}function An(a){var l=a.flags;if(l&2){try{for(var d,g=a.return;g!==null;){if(yC(g)){d=g;break}g=g.return}if(d==null)throw Error(r(160));switch(d.tag){case 27:var b=d.stateNode,T=dg(a);Of(a,T,b);break;case 5:var R=d.stateNode;d.flags&32&&(ha(R,""),d.flags&=-33);var I=dg(a);Of(a,I,R);break;case 3:case 4:var V=d.stateNode.containerInfo,X=dg(a);hg(a,X,V);break;default:throw Error(r(161))}}catch(oe){et(a,a.return,oe)}a.flags&=-3}l&4096&&(a.flags&=-4097)}function _C(a){if(a.subtreeFlags&1024)for(a=a.child;a!==null;){var l=a;_C(l),l.tag===5&&l.flags&1024&&l.stateNode.reset(),a=a.sibling}}function Mi(a,l){if(l.subtreeFlags&8772)for(l=l.child;l!==null;)xC(a,l.alternate,l),l=l.sibling}function So(a){for(a=a.child;a!==null;){var l=a;switch(l.tag){case 0:case 11:case 14:case 15:Ei(4,l,l.return),So(l);break;case 1:vr(l,l.return);var d=l.stateNode;typeof d.componentWillUnmount=="function"&&mC(l,l.return,d),So(l);break;case 27:Wl(l.stateNode);case 26:case 5:vr(l,l.return),So(l);break;case 22:l.memoizedState===null&&So(l);break;case 30:So(l);break;default:So(l)}a=a.sibling}}function Pi(a,l,d){for(d=d&&(l.subtreeFlags&8772)!==0,l=l.child;l!==null;){var g=l.alternate,b=a,T=l,R=T.flags;switch(T.tag){case 0:case 11:case 15:Pi(b,T,d),Bl(4,T);break;case 1:if(Pi(b,T,d),g=T,b=g.stateNode,typeof b.componentDidMount=="function")try{b.componentDidMount()}catch(X){et(g,g.return,X)}if(g=T,b=g.updateQueue,b!==null){var I=g.stateNode;try{var V=b.shared.hiddenCallbacks;
vendor: 59,193 bytes, lines 48-49
48if(V!==null)for(b.shared.hiddenCallbacks=null,b=0;b<V.length;b++)e_(V[b],I)}catch(X){et(g,g.return,X)}}d&&R&64&&pC(T),$l(T,T.return);break;case 27:vC(T);case 26:case 5:Pi(b,T,d),d&&g===null&&R&4&&gC(T),$l(T,T.return);break;case 12:Pi(b,T,d);break;case 13:Pi(b,T,d),d&&R&4&&AC(b,T);break;case 22:T.memoizedState===null&&Pi(b,T,d),$l(T,T.return);break;case 30:break;default:Pi(b,T,d)}l=l.sibling}}function gg(a,l){var d=null;a!==null&&a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(d=a.memoizedState.cachePool.pool),a=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(a=l.memoizedState.cachePool.pool),a!==d&&(a!=null&&a.refCount++,d!=null&&_l(d))}function yg(a,l){a=null,l.alternate!==null&&(a=l.alternate.memoizedState.cache),l=l.memoizedState.cache,l!==a&&(l.refCount++,a!=null&&_l(a))}function br(a,l,d,g){if(l.subtreeFlags&10256)for(l=l.child;l!==null;)CC(a,l,d,g),l=l.sibling}function CC(a,l,d,g){var b=l.flags;switch(l.tag){case 0:case 11:case 15:br(a,l,d,g),b&2048&&Bl(9,l);break;case 1:br(a,l,d,g);break;case 3:br(a,l,d,g),b&2048&&(a=null,l.alternate!==null&&(a=l.alternate.memoizedState.cache),l=l.memoizedState.cache,l!==a&&(l.refCount++,a!=null&&_l(a)));break;case 12:if(b&2048){br(a,l,d,g),a=l.stateNode;try{var T=l.memoizedProps,R=T.id,I=T.onPostCommit;typeof I=="function"&&I(R,l.alternate===null?"mount":"update",a.passiveEffectDuration,-0)}catch(V){et(l,l.return,V)}}else br(a,l,d,g);break;case 13:br(a,l,d,g);break;case 23:break;case 22:T=l.stateNode,R=l.alternate,l.memoizedState!==null?T._visibility&2?br(a,l,d,g):Vl(a,l):T._visibility&2?br(a,l,d,g):(T._visibility|=2,Oa(a,l,d,g,(l.subtreeFlags&10256)!==0)),b&2048&&gg(R,l);break;case 24:br(a,l,d,g),b&2048&&yg(l.alternate,l);break;default:br(a,l,d,g)}}function Oa(a,l,d,g,b){for(b=b&&(l.subtreeFlags&10256)!==0,l=l.child;l!==null;){var T=a,R=l,I=d,V=g,X=R.flags;switch(R.tag){case 0:case 11:case 15:Oa(T,R,I,V,b),Bl(8,R);break;case 23:break;case 22:var oe=R.stateNode;R.memoizedState!==null?oe._visibility&2?Oa(T,R,I,V,b):Vl(T,R):(oe._visibility|=2,Oa(T,R,I,V,b)),b&&X&2048&&gg(R.alternate,R);break;case 24:Oa(T,R,I,V,b),b&&X&2048&&yg(R.alternate,R);break;default:Oa(T,R,I,V,b)}l=l.sibling}}function Vl(a,l){if(l.subtreeFlags&10256)for(l=l.child;l!==null;){var d=a,g=l,b=g.flags;switch(g.tag){case 22:Vl(d,g),b&2048&&gg(g.alternate,g);break;case 24:Vl(d,g),b&2048&&yg(g.alternate,g);break;default:Vl(d,g)}l=l.sibling}}var jl=8192;function Da(a){if(a.subtreeFlags&jl)for(a=a.child;a!==null;)EC(a),a=a.sibling}function EC(a){switch(a.tag){case 26:Da(a),a.flags&jl&&a.memoizedState!==null&&uF(er,a.memoizedState,a.memoizedProps);break;case 5:Da(a);break;case 3:case 4:var l=er;er=Gf(a.stateNode.containerInfo),Da(a),er=l;break;case 22:a.memoizedState===null&&(l=a.alternate,l!==null&&l.memoizedState!==null?(l=jl,jl=16777216,Da(a),jl=l):Da(a));break;default:Da(a)}}function MC(a){var l=a.alternate;if(l!==null&&(a=l.child,a!==null)){l.child=null;do l=a.sibling,a.sibling=null,a=l;while(a!==null)}}function Fl(a){var l=a.deletions;if((a.flags&16)!==0){if(l!==null)for(var d=0;d<l.length;d++){var g=l[d];Bt=g,RC(g,a)}MC(a)}if(a.subtreeFlags&10256)for(a=a.child;a!==null;)PC(a),a=a.sibling}function PC(a){switch(a.tag){case 0:case 11:case 15:Fl(a),a.flags&2048&&Ei(9,a,a.return);break;case 3:Fl(a);break;case 12:Fl(a);break;case 22:var l=a.stateNode;a.memoizedState!==null&&l._visibility&2&&(a.return===null||a.return.tag!==13)?(l._visibility&=-3,Df(a)):Fl(a);break;default:Fl(a)}}function Df(a){var l=a.deletions;if((a.flags&16)!==0){if(l!==null)for(var d=0;d<l.length;d++){var g=l[d];Bt=g,RC(g,a)}MC(a)}for(a=a.child;a!==null;){switch(l=a,l.tag){case 0:case 11:case 15:Ei(8,l,l.return),Df(l);break;case 22:d=l.stateNode,d._visibility&2&&(d._visibility&=-3,Df(l));break;default:Df(l)}a=a.sibling}}function RC(a,l){for(;Bt!==null;){var d=Bt;switch(d.tag){case 0:case 11:case 15:Ei(8,d,l);break;case 23:case 22:if(d.memoizedState!==null&&d.memoizedState.cachePool!==null){var g=d.memoizedState.cachePool.pool;g!=null&&g.refCount++}break;case 24:_l(d.memoizedState.cache)}if(g=d.child,g!==null)g.return=d,Bt=g;else e:for(d=a;Bt!==null;){g=Bt;var b=g.sibling,T=g.return;if(TC(g),g===d){Bt=null;break e}if(b!==null){b.return=T,Bt=b;break e}Bt=T}}}var _4={getCacheForType:function(a){var l=Jt(Rt),d=l.data.get(a);return d===void 0&&(d=a(),l.data.set(a,d)),d}},C4=typeof WeakMap=="function"?WeakMap:Map,Ke=0,rt=null,Ue=null,Be=0,Ye=0,wn=null,Ri=!1,Ia=!1,vg=!1,Yr=0,yt=0,Ni=0,Ao=0,bg=0,Bn=0,ka=0,Hl=null,mn=null,xg=!1,Tg=0,If=1/0,kf=null,Oi=null,Gt=0,Di=null,La=null,Ua=0,Sg=0,Ag=null,NC=null,Gl=0,wg=null;function _n(){if((Ke&2)!==0&&Be!==0)return Be&-Be;if($.T!==null){var a=wa;return a!==0?a:Ng()}return Kw()}function OC(){Bn===0&&(Bn=(Be&536870912)===0||He?Fw():536870912);var a=qn.current;return a!==null&&(a.flags|=32),Bn}function Cn(a,l,d){(a===rt&&(Ye===2||Ye===9)||a.cancelPendingCommit!==null)&&(qa(a,0),Ii(a,Be,Bn,!1)),ul(a,d),((Ke&2)===0||a!==rt)&&(a===rt&&((Ke&2)===0&&(Ao|=d),yt===4&&Ii(a,Be,Bn,!1)),xr(a))}function DC(a,l,d){if((Ke&6)!==0)throw Error(r(327));var g=!d&&(l&124)===0&&(l&a.expiredLanes)===0||ll(a,l),b=g?P4(a,l):Eg(a,l,!0),T=g;do{if(b===0){Ia&&!g&&Ii(a,l,0,!1);break}else{if(d=a.current.alternate,T&&!E4(d)){b=Eg(a,l,!1),T=!1;continue}if(b===2){if(T=l,a.errorRecoveryDisabledLanes&T)var R=0;else R=a.pendingLanes&-536870913,R=R!==0?R:R&536870912?536870912:0;if(R!==0){l=R;e:{var I=a;b=Hl;var V=I.current.memoizedState.isDehydrated;if(V&&(qa(I,R).flags|=256),R=Eg(I,R,!1),R!==2){if(vg&&!V){I.errorRecoveryDisabledLanes|=T,Ao|=T,b=4;break e}T=mn,mn=b,T!==null&&(mn===null?mn=T:mn.push.apply(mn,T))}b=R}if(T=!1,b!==2)continue}}if(b===1){qa(a,0),Ii(a,l,0,!0);break}e:{switch(g=a,T=b,T){case 0:case 1:throw Error(r(345));case 4:if((l&4194048)!==l)break;case 6:Ii(g,l,Bn,!Ri);break e;case 2:mn=null;break;case 3:case 5:break;default:throw Error(r(329))}if((l&62914560)===l&&(b=Tg+300-lt(),10<b)){if(Ii(g,l,Bn,!Ri),Gc(g,0,!0)!==0)break e;g.timeoutHandle=lE(IC.bind(null,g,d,mn,kf,xg,l,Bn,Ao,ka,Ri,T,2,-0,0),b);break e}IC(g,d,mn,kf,xg,l,Bn,Ao,ka,Ri,T,0,-0,0)}}break}while(!0);xr(a)}function IC(a,l,d,g,b,T,R,I,V,X,oe,le,Q,ee){if(a.timeoutHandle=-1,le=l.subtreeFlags,(le&8192||(le&16785408)===16785408)&&(Zl={stylesheets:null,count:0,unsuspend:lF},EC(l),le=cF(),le!==null)){a.cancelPendingCommit=le(VC.bind(null,a,l,T,d,g,b,R,I,V,oe,1,Q,ee)),Ii(a,T,R,!X);return}VC(a,l,T,d,g,b,R,I,V)}function E4(a){for(var l=a;;){var d=l.tag;if((d===0||d===11||d===15)&&l.flags&16384&&(d=l.updateQueue,d!==null&&(d=d.stores,d!==null)))for(var g=0;g<d.length;g++){var b=d[g],T=b.getSnapshot;b=b.value;try{if(!xn(T(),b))return!1}catch{return!1}}if(d=l.child,l.subtreeFlags&16384&&d!==null)d.return=l,l=d;else{if(l===a)break;for(;l.sibling===null;){if(l.return===null||l.return===a)return!0;l=l.return}l.sibling.return=l.return,l=l.sibling}}return!0}function Ii(a,l,d,g){l&=~bg,l&=~Ao,a.suspendedLanes|=l,a.pingedLanes&=~l,g&&(a.warmLanes|=l),g=a.expirationTimes;for(var b=l;0<b;){var T=31-bn(b),R=1<<T;g[T]=-1,b&=~R}d!==0&&Gw(a,d,l)}function Lf(){return(Ke&6)===0?(zl(0),!1):!0}function _g(){if(Ue!==null){if(Ye===0)var a=Ue.return;else a=Ue,$r=yo=null,jm(a),Ra=null,Ll=0,a=Ue;for(;a!==null;)hC(a.alternate,a),a=a.return;Ue=null}}function qa(a,l){var d=a.timeoutHandle;d!==-1&&(a.timeoutHandle=-1,G4(d)),d=a.cancelPendingCommit,d!==null&&(a.cancelPendingCommit=null,d()),_g(),rt=a,Ue=d=Ur(a.current,null),Be=l,Ye=0,wn=null,Ri=!1,Ia=ll(a,l),vg=!1,ka=Bn=bg=Ao=Ni=yt=0,mn=Hl=null,xg=!1,(l&8)!==0&&(l|=l&32);var g=a.entangledLanes;if(g!==0)for(a=a.entanglements,g&=l;0<g;){var b=31-bn(g),T=1<<b;l|=a[b],g&=~T}return Yr=l,rf(),d}function kC(a,l){Oe=null,$.H=Af,l===El||l===hf?(l=Z1(),Ye=3):l===W1?(l=Z1(),Ye=4):Ye=l===Q_?8:l!==null&&typeof l=="object"&&typeof l.then=="function"?6:1,wn=l,Ue===null&&(yt=1,Mf(a,In(l,a.current)))}function LC(){var a=$.H;return $.H=Af,a===null?Af:a}function UC(){var a=$.A;return $.A=_4,a}function Cg(){yt=4,Ri||(Be&4194048)!==Be&&qn.current!==null||(Ia=!0),(Ni&134217727)===0&&(Ao&134217727)===0||rt===null||Ii(rt,Be,Bn,!1)}function Eg(a,l,d){var g=Ke;Ke|=2;var b=LC(),T=UC();(rt!==a||Be!==l)&&(kf=null,qa(a,l)),l=!1;var R=yt;e:do try{if(Ye!==0&&Ue!==null){var I=Ue,V=wn;switch(Ye){case 8:_g(),R=6;break e;case 3:case 2:case 9:case 6:qn.current===null&&(l=!0);var X=Ye;if(Ye=0,wn=null,Ba(a,I,V,X),d&&Ia){R=0;break e}break;default:X=Ye,Ye=0,wn=null,Ba(a,I,V,X)}}M4(),R=yt;break}catch(oe){kC(a,oe)}while(!0);return l&&a.shellSuspendCounter++,$r=yo=null,Ke=g,$.H=b,$.A=T,Ue===null&&(rt=null,Be=0,rf()),R}function M4(){for(;Ue!==null;)qC(Ue)}function P4(a,l){var d=Ke;Ke|=2;var g=LC(),b=UC();rt!==a||Be!==l?(kf=null,If=lt()+500,qa(a,l)):Ia=ll(a,l);e:do try{if(Ye!==0&&Ue!==null){l=Ue;var T=wn;t:switch(Ye){case 1:Ye=0,wn=null,Ba(a,l,T,1);break;case 2:case 9:if(X1(T)){Ye=0,wn=null,BC(l);break}l=function(){Ye!==2&&Ye!==9||rt!==a||(Ye=7),xr(a)},T.then(l,l);break e;case 3:Ye=7;break e;case 4:Ye=5;break e;case 7:X1(T)?(Ye=0,wn=null,BC(l)):(Ye=0,wn=null,Ba(a,l,T,7));break;case 5:var R=null;switch(Ue.tag){case 26:R=Ue.memoizedState;case 5:case 27:var I=Ue;if(!R||xE(R)){Ye=0,wn=null;var V=I.sibling;if(V!==null)Ue=V;else{var X=I.return;X!==null?(Ue=X,Uf(X)):Ue=null}break t}}Ye=0,wn=null,Ba(a,l,T,5);break;case 6:Ye=0,wn=null,Ba(a,l,T,6);break;case 8:_g(),yt=6;break e;default:throw Error(r(462))}}R4();break}catch(oe){kC(a,oe)}while(!0);return $r=yo=null,$.H=g,$.A=b,Ke=d,Ue!==null?0:(rt=null,Be=0,rf(),yt)}function R4(){for(;Ue!==null&&!Tt();)qC(Ue)}function qC(a){var l=fC(a.alternate,a,Yr);a.memoizedProps=a.pendingProps,l===null?Uf(a):Ue=l}function BC(a){var l=a,d=l.alternate;switch(l.tag){case 15:case 0:l=oC(d,l,l.pendingProps,l.type,void 0,Be);break;case 11:l=oC(d,l,l.pendingProps,l.type.render,l.ref,Be);break;case 5:jm(l);default:hC(d,l),l=Ue=$1(l,Yr),l=fC(d,l,Yr)}a.memoizedProps=a.pendingProps,l===null?Uf(a):Ue=l}function Ba(a,l,d,g){$r=yo=null,jm(l),Ra=null,Ll=0;var b=l.return;try{if(b4(a,b,l,d,Be)){yt=1,Mf(a,In(d,a.current)),Ue=null;return}}catch(T){if(b!==null)throw Ue=b,T;yt=1,Mf(a,In(d,a.current)),Ue=null;return}l.flags&32768?(He||g===1?a=!0:Ia||(Be&536870912)!==0?a=!1:(Ri=a=!0,(g===2||g===9||g===3||g===6)&&(g=qn.current,g!==null&&g.tag===13&&(g.flags|=16384))),$C(l,a)):Uf(l)}function Uf(a){var l=a;do{if((l.flags&32768)!==0){$C(l,Ri);return}a=l.return;var d=T4(l.alternate,l,Yr);if(d!==null){Ue=d;return}if(l=l.sibling,l!==null){Ue=l;return}Ue=l=a}while(l!==null);yt===0&&(yt=5)}function $C(a,l){do{var d=S4(a.alternate,a);if(d!==null){d.flags&=32767,Ue=d;return}if(d=a.return,d!==null&&(d.flags|=32768,d.subtreeFlags=0,d.deletions=null),!l&&(a=a.sibling,a!==null)){Ue=a;return}Ue=a=d}while(a!==null);yt=6,Ue=null}function VC(a,l,d,g,b,T,R,I,V){a.cancelPendingCommit=null;do qf();while(Gt!==0);if((Ke&6)!==0)throw Error(r(327));if(l!==null){if(l===a.current)throw Error(r(177));if(T=l.lanes|l.childLanes,T|=ym,lj(a,d,T,R,I,V),a===rt&&(Ue=rt=null,Be=0),La=l,Di=a,Ua=d,Sg=T,Ag=b,NC=g,(l.subtreeFlags&10256)!==0||(l.flags&10256)!==0?(a.callbackNode=null,a.callbackPriority=0,I4(Nn,function(){return zC(),null})):(a.callbackNode=null,a.callbackPriority=0),g=(l.flags&13878)!==0,(l.subtreeFlags&13878)!==0||g){g=$.T,$.T=null,b=G.p,G.p=2,R=Ke,Ke|=4;try{A4(a,l,d)}finally{Ke=R,G.p=b,$.T=g}}Gt=1,jC(),FC(),HC()}}function jC(){if(Gt===1){Gt=0;var a=Di,l=La,d=(l.flags&13878)!==0;if((l.subtreeFlags&13878)!==0||d){d=$.T,$.T=null;var g=G.p;G.p=2;var b=Ke;Ke|=4;try{wC(l,a);var T=Bg,R=R1(a.containerInfo),I=T.focusedElem,V=T.selectionRange;if(R!==I&&I&&I.ownerDocument&&P1(I.ownerDocument.documentElement,I)){if(V!==null&&dm(I)){var X=V.start,oe=V.end;if(oe===void 0&&(oe=X),"selectionStart"in I)I.selectionStart=X,I.selectionEnd=Math.min(oe,I.value.length);else{var le=I.ownerDocument||document,Q=le&&le.defaultView||window;if(Q.getSelection){var ee=Q.getSelection(),we=I.textContent.length,Te=Math.min(V.start,we),Ze=V.end===void 0?Te:Math.min(V.end,we);!ee.extend&&Te>Ze&&(R=Ze,Ze=Te,Te=R);var K=M1(I,Te),H=M1(I,Ze);if(K&&H&&(ee.rangeCount!==1||ee.anchorNode!==K.node||ee.anchorOffset!==K.offset||ee.focusNode!==H.node||ee.focusOffset!==H.offset)){var Y=le.createRange();Y.setStart(K.node,K.offset),ee.removeAllRanges(),Te>Ze?(ee.addRange(Y),ee.extend(H.node,H.offset)):(Y.setEnd(H.node,H.offset),ee.addRange(Y))}}}}for(le=[],ee=I;ee=ee.parentNode;)ee.nodeType===1&&le.push({element:ee,left:ee.scrollLeft,top:ee.scrollTop});for(typeof I.focus=="function"&&I.focus(),I=0;I<le.length;I++){var se=le[I];se.element.scrollLeft=se.left,se.element.scrollTop=se.top}}Xf=!!qg,Bg=qg=null}finally{Ke=b,G.p=g,$.T=d}}a.current=l,Gt=2}}function FC(){if(Gt===2){Gt=0;var a=Di,l=La,d=(l.flags&8772)!==0;if((l.subtreeFlags&8772)!==0||d){d=$.T,$.T=null;var g=G.p;G.p=2;var b=Ke;Ke|=4;try{xC(a,l.alternate,l)}finally{Ke=b,G.p=g,$.T=d}}Gt=3}}function HC(){if(Gt===4||Gt===3){Gt=0,St();var a=Di,l=La,d=Ua,g=NC;(l.subtreeFlags&10256)!==0||(l.flags&10256)!==0?Gt=5:(Gt=0,La=Di=null,GC(a,a.pendingLanes));var b=a.pendingLanes;if(b===0&&(Oi=null),Gp(d),l=l.stateNode,vn&&typeof vn.onCommitFiberRoot=="function")try{vn.onCommitFiberRoot(sl,l,void 0,(l.current.flags&128)===128)}catch{}if(g!==null){l=$.T,b=G.p,G.p=2,$.T=null;try{for(var T=a.onRecoverableError,R=0;R<g.length;R++){var I=g[R];T(I.value,{componentStack:I.stack})}}finally{$.T=l,G.p=b}}(Ua&3)!==0&&qf(),xr(a),b=a.pendingLanes,(d&4194090)!==0&&(b&42)!==0?a===wg?Gl++:(Gl=0,wg=a):Gl=0,zl(0)}}function GC(a,l){(a.pooledCacheLanes&=l)===0&&(l=a.pooledCache,l!=null&&(a.pooledCache=null,_l(l)))}function qf(a){return jC(),FC(),HC(),zC()}function zC(){if(Gt!==5)return!1;var a=Di,l=Sg;Sg=0;var d=Gp(Ua),g=$.T,b=G.p;try{G.p=32>d?32:d,$.T=null,d=Ag,Ag=null;var T=Di,R=Ua;if(Gt=0,La=Di=null,Ua=0,(Ke&6)!==0)throw Error(r(331));var I=Ke;if(Ke|=4,PC(T.current),CC(T,T.current,R,d),Ke=I,zl(0,!1),vn&&typeof vn.onPostCommitFiberRoot=="function")try{vn.onPostCommitFiberRoot(sl,T)}catch{}return!0}finally{G.p=b,$.T=g,GC(a,l)}}function KC(a,l,d){l=In(d,l),l=ng(a.stateNode,l,2),a=Ai(a,l,2),a!==null&&(ul(a,2),xr(a))}function et(a,l,d){if(a.tag===3)KC(a,a,d);else for(;l!==null;){if(l.tag===3){KC(l,a,d);break}else if(l.tag===1){var g=l.stateNode;if(typeof l.type.getDerivedStateFromError=="function"||typeof g.componentDidCatch=="function"&&(Oi===null||!Oi.has(g))){a=In(d,a),d=J_(2),g=Ai(l,d,2),g!==null&&(Z_(d,g,l,a),ul(g,2),xr(g));break}}l=l.return}}function Mg(a,l,d){var g=a.pingCache;if(g===null){g=a.pingCache=new C4;var b=new Set;g.set(l,b)}else b=g.get(l),b===void 0&&(b=new Set,g.set(l,b));b.has(d)||(vg=!0,b.add(d),a=N4.bind(null,a,l,d),l.then(a,a))}function N4(a,l,d){var g=a.pingCache;g!==null&&g.delete(l),a.pingedLanes|=a.suspendedLanes&d,a.warmLanes&=~d,rt===a&&(Be&d)===d&&(yt===4||yt===3&&(Be&62914560)===Be&&300>lt()-Tg?(Ke&2)===0&&qa(a,0):bg|=d,ka===Be&&(ka=0)),xr(a)}function YC(a,l){l===0&&(l=Hw()),a=xa(a,l),a!==null&&(ul(a,l),xr(a))}function O4(a){var l=a.memoizedState,d=0;l!==null&&(d=l.retryLane),YC(a,d)}function D4(a,l){var d=0;switch(a.tag){case 13:var g=a.stateNode,b=a.memoizedState;b!==null&&(d=b.retryLane);break;case 19:g=a.stateNode;break;case 22:g=a.stateNode._retryCache;break;default:throw Error(r(314))}g!==null&&g.delete(l),YC(a,d)}function I4(a,l){return nt(a,l)}var Bf=null,$a=null,Pg=!1,$f=!1,Rg=!1,wo=0;function xr(a){a!==$a&&a.next===null&&($a===null?Bf=$a=a:$a=$a.next=a),$f=!0,Pg||(Pg=!0,L4())}function zl(a,l){if(!Rg&&$f){Rg=!0;do for(var d=!1,g=Bf;g!==null;){if(a!==0){var b=g.pendingLanes;if(b===0)var T=0;else{var R=g.suspendedLanes,I=g.pingedLanes;T=(1<<31-bn(42|a)+1)-1,T&=b&~(R&~I),T=T&201326741?T&201326741|1:T?T|2:0}T!==0&&(d=!0,ZC(g,T))}else T=Be,T=Gc(g,g===rt?T:0,g.cancelPendingCommit!==null||g.timeoutHandle!==-1),(T&3)===0||ll(g,T)||(d=!0,ZC(g,T));g=g.next}while(d);Rg=!1}}function k4(){WC()}function WC(){$f=Pg=!1;var a=0;wo!==0&&(H4()&&(a=wo),wo=0);for(var l=lt(),d=null,g=Bf;g!==null;){var b=g.next,T=XC(g,l);T===0?(g.next=null,d===null?Bf=b:d.next=b,b===null&&($a=d)):(d=g,(a!==0||(T&3)!==0)&&($f=!0)),g=b}zl(a)}function XC(a,l){for(var d=a.suspendedLanes,g=a.pingedLanes,b=a.expirationTimes,T=a.pendingLanes&-62914561;0<T;){var R=31-bn(T),I=1<<R,V=b[R];V===-1?((I&d)===0||(I&g)!==0)&&(b[R]=sj(I,l)):V<=l&&(a.expiredLanes|=I),T&=~I}if(l=rt,d=Be,d=Gc(a,a===l?d:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),g=a.callbackNode,d===0||a===l&&(Ye===2||Ye===9)||a.cancelPendingCommit!==null)return g!==null&&g!==null&&Le(g),a.callbackNode=null,a.callbackPriority=0;if((d&3)===0||ll(a,d)){if(l=d&-d,l===a.callbackPriority)return l;switch(g!==null&&Le(g),Gp(d)){case 2:case 8:d=oo;break;case 32:d=Nn;break;case 268435456:d=oa;break;default:d=Nn}return g=JC.bind(null,a),d=nt(d,g),a.callbackPriority=l,a.callbackNode=d,l}return g!==null&&g!==null&&Le(g),a.callbackPriority=2,a.callbackNode=null,2}function JC(a,l){if(Gt!==0&&Gt!==5)return a.callbackNode=null,a.callbackPriority=0,null;var d=a.callbackNode;if(qf()&&a.callbackNode!==d)return null;var g=Be;return g=Gc(a,a===rt?g:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),g===0?null:(DC(a,g,l),XC(a,lt()),a.callbackNode!=null&&a.callbackNode===d?JC.bind(null,a):null)}function ZC(a,l){if(qf())return null;DC(a,l,!0)}function L4(){z4(function(){(Ke&6)!==0?nt(Dr,k4):WC()})}function Ng(){return wo===0&&(wo=Fw()),wo}function QC(a){return a==null||typeof a=="symbol"||typeof a=="boolean"?null:typeof a=="function"?a:Xc(""+a)}function eE(a,l){var d=l.ownerDocument.createElement("input");return d.name=l.name,d.value=l.value,a.id&&d.setAttribute("form",a.id),l.parentNode.insertBefore(d,l),a=new FormData(a),d.parentNode.removeChild(d),a}function U4(a,l,d,g,b){if(l==="submit"&&d&&d.stateNode===b){var T=QC((b[fn]||null).action),R=g.submitter;R&&(l=(l=R[fn]||null)?QC(l.formAction):R.getAttribute("formAction"),l!==null&&(T=l,R=null));var I=new ef("action","action",null,g,b);a.push({event:I,listeners:[{instance:null,listener:function(){if(g.defaultPrevented){if(wo!==0){var V=R?eE(b,R):new FormData(b);Jm(d,{pending:!0,data:V,method:b.method,action:T},null,V)}}else typeof T=="function"&&(I.preventDefault(),V=R?eE(b,R):new FormData(b),Jm(d,{pending:!0,data:V,method:b.method,action:T},T,V))},currentTarget:b}]})}}for(var Og=0;Og<gm.length;Og++){var Dg=gm[Og],q4=Dg.toLowerCase(),B4=Dg[0].toUpperCase()+Dg.slice(1);Qn(q4,"on"+B4)}Qn(D1,"onAnimationEnd"),Qn(I1,"onAnimationIteration"),Qn(k1,"onAnimationStart"),Qn("dblclick","onDoubleClick"),Qn("focusin","onFocus"),Qn("focusout","onBlur"),Qn(n4,"onTransitionRun"),Qn(r4,"onTransitionStart"),Qn(i4,"onTransitionCancel"),Qn(L1,"onTransitionEnd"),ca("onMouseEnter",["mouseout","mouseover"]),ca("onMouseLeave",["mouseout","mouseover"]),ca("onPointerEnter",["pointerout","pointerover"]),ca("onPointerLeave",["pointerout","pointerover"]),so("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),so("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),so("onBeforeInput",["compositionend","keypress","textInput","paste"]),so("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),so("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),so("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Kl="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(" "),$4=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Kl));function tE(a,l){l=(l&4)!==0;for(var d=0;d<a.length;d++){var g=a[d],b=g.event;g=g.listeners;e:{var T=void 0;if(l)for(var R=g.length-1;0<=R;R--){var I=g[R],V=I.instance,X=I.currentTarget;if(I=I.listener,V!==T&&b.isPropagationStopped())break e;T=I,b.currentTarget=X;try{T(b)}catch(oe){Ef(oe)}b.currentTarget=null,T=V}else for(R=0;R<g.length;R++){if(I=g[R],V=I.instance,X=I.currentTarget,I=I.listener,V!==T&&b.isPropagationStopped())break e;T=I,b.currentTarget=X;try{T(b)}catch(oe){Ef(oe)}b.currentTarget=null,T=V}}}}function qe(a,l){var d=l[zp];d===void 0&&(d=l[zp]=new Set);var g=a+"__bubble";d.has(g)||(nE(l,a,2,!1),d.add(g))}function Ig(a,l,d){var g=0;l&&(g|=4),nE(d,a,g,l)}var Vf="_reactListening"+Math.random().toString(36).slice(2);function kg(a){if(!a[Vf]){a[Vf]=!0,Ww.forEach(function(d){d!=="selectionchange"&&($4.has(d)||Ig(d,!1,a),Ig(d,!0,a))});var l=a.nodeType===9?a:a.ownerDocument;l===null||l[Vf]||(l[Vf]=!0,Ig("selectionchange",!1,l))}}function nE(a,l,d,g){switch(CE(l)){case 2:var b=hF;break;case 8:b=pF;break;default:b=Wg}d=b.bind(null,l,d,a),b=void 0,!rm||l!=="touchstart"&&l!=="touchmove"&&l!=="wheel"||(b=!0),g?b!==void 0?a.addEventListener(l,d,{capture:!0,passive:b}):a.addEventListener(l,d,!0):b!==void 0?a.addEventListener(l,d,{passive:b}):a.addEventListener(l,d,!1)}function Lg(a,l,d,g,b){var T=g;if((l&1)===0&&(l&2)===0&&g!==null)e:for(;;){if(g===null)return;var R=g.tag;if(R===3||R===4){var I=g.stateNode.containerInfo;if(I===b)break;if(R===4)for(R=g.return;R!==null;){var V=R.tag;if((V===3||V===4)&&R.stateNode.containerInfo===b)return;R=R.return}for(;I!==null;){if(R=sa(I),R===null)return;if(V=R.tag,V===5||V===6||V===26||V===27){g=T=R;continue e}I=I.parentNode}}g=g.return}u1(function(){var X=T,oe=tm(d),le=[];e:{var Q=U1.get(a);if(Q!==void 0){var ee=ef,we=a;switch(a){case"keypress":if(Zc(d)===0)break e;case"keydown":case"keyup":ee=Ij;break;case"focusin":we="focus",ee=sm;break;case"focusout":we="blur",ee=sm;break;case"beforeblur":case"afterblur":ee=sm;break;case"click":if(d.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":ee=d1;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ee=Sj;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ee=Uj;break;case D1:case I1:case k1:ee=_j;break;case L1:ee=Bj;break;case"scroll":case"scrollend":ee=xj;break;case"wheel":ee=Vj;break;case"copy":case"cut":case"paste":ee=Ej;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ee=p1;break;case"toggle":case"beforetoggle":ee=Fj}var Te=(l&4)!==0,Ze=!Te&&(a==="scroll"||a==="scrollend"),K=Te?Q!==null?Q+"Capture":null:Q;Te=[];for(var H=X,Y;H!==null;){var se=H;if(Y=se.stateNode,se=se.tag,se!==5&&se!==26&&se!==27||Y===null||K===null||(se=dl(H,K),se!=null&&Te.push(Yl(H,se,Y))),Ze)break;H=H.return}0<Te.length&&(Q=new ee(Q,we,null,d,oe),le.push({event:Q,listeners:Te}))}}if((l&7)===0){e:{if(Q=a==="mouseover"||a==="pointerover",ee=a==="mouseout"||a==="pointerout",Q&&d!==em&&(we=d.relatedTarget||d.fromElement)&&(sa(we)||we[aa]))break e;if((ee||Q)&&(Q=oe.window===oe?oe:(Q=oe.ownerDocument)?Q.defaultView||Q.parentWindow:window,ee?(we=d.relatedTarget||d.toElement,ee=X,we=we?sa(we):null,we!==null&&(Ze=o(we),Te=we.tag,we!==Ze||Te!==5&&Te!==27&&Te!==6)&&(we=null)):(ee=null,we=X),ee!==we)){if(Te=d1,se="onMouseLeave",K="onMouseEnter",H="mouse",(a==="pointerout"||a==="pointerover")&&(Te=p1,se="onPointerLeave",K="onPointerEnter",H="pointer"),Ze=ee==null?Q:fl(ee),Y=we==null?Q:fl(we),Q=new Te(se,H+"leave",ee,d,oe),Q.target=Ze,Q.relatedTarget=Y,se=null,sa(oe)===X&&(Te=new Te(K,H+"enter",we,d,oe),Te.target=Y,Te.relatedTarget=Ze,se=Te),Ze=se,ee&&we)t:{for(Te=ee,K=we,H=0,Y=Te;Y;Y=Va(Y))H++;for(Y=0,se=K;se;se=Va(se))Y++;for(;0<H-Y;)Te=Va(Te),H--;for(;0<Y-H;)K=Va(K),Y--;for(;H--;){if(Te===K||K!==null&&Te===K.alternate)break t;Te=Va(Te),K=Va(K)}Te=null}else Te=null;ee!==null&&rE(le,Q,ee,Te,!1),we!==null&&Ze!==null&&rE(le,Ze,we,Te,!0)}}e:{if(Q=X?fl(X):window,ee=Q.nodeName&&Q.nodeName.toLowerCase(),ee==="select"||ee==="input"&&Q.type==="file")var ge=S1;else if(x1(Q))if(A1)ge=Qj;else{ge=Jj;var Ie=Xj}else ee=Q.nodeName,!ee||ee.toLowerCase()!=="input"||Q.type!=="checkbox"&&Q.type!=="radio"?X&&Qp(X.elementType)&&(ge=S1):ge=Zj;if(ge&&(ge=ge(a,X))){T1(le,ge,d,oe);break e}Ie&&Ie(a,Q,X),a==="focusout"&&X&&Q.type==="number"&&X.memoizedProps.value!=null&&Zp(Q,"number",Q.value)}switch(Ie=X?fl(X):window,a){case"focusin":(x1(Ie)||Ie.contentEditable==="true")&&(ya=Ie,hm=X,xl=null);break;case"focusout":xl=hm=ya=null;break;case"mousedown":pm=!0;break;case"contextmenu":case"mouseup":case"dragend":pm=!1,N1(le,d,oe);break;case"selectionchange":if(t4)break;case"keydown":case"keyup":N1(le,d,oe)}var be;if(um)e:{switch(a){case"compositionstart":var Se="onCompositionStart";break e;case"compositionend":Se="onCompositionEnd";break e;case"compositionupdate":Se="onCompositionUpdate";break e}Se=void 0}else ga?v1(a,d)&&(Se="onCompositionEnd"):a==="keydown"&&d.keyCode===229&&(Se="onCompositionStart");Se&&(m1&&d.locale!=="ko"&&(ga||Se!=="onCompositionStart"?Se==="onCompositionEnd"&&ga&&(be=c1()):(bi=oe,im="value"in bi?bi.value:bi.textContent,ga=!0)),Ie=jf(X,Se),0<Ie.length&&(Se=new h1(Se,a,null,d,oe),le.push({event:Se,listeners:Ie}),be?Se.data=be:(be=b1(d),be!==null&&(Se.data=be)))),(be=Gj?zj(a,d):Kj(a,d))&&(Se=jf(X,"onBeforeInput"),0<Se.length&&(Ie=new h1("onBeforeInput","beforeinput",null,d,oe),le.push({event:Ie,listeners:Se}),Ie.data=be)),U4(le,a,X,d,oe)}tE(le,l)})}function Yl(a,l,d){return{instance:a,listener:l,currentTarget:d}}function jf(a,l){for(var d=l+"Capture",g=[];a!==null;){var b=a,T=b.stateNode;if(b=b.tag,b!==5&&b!==26&&b!==27||T===null||(b=dl(a,d),b!=null&&g.unshift(Yl(a,b,T)),b=dl(a,l),b!=null&&g.push(Yl(a,b,T))),a.tag===3)return g;a=a.return}return[]}function Va(a){if(a===null)return null;do a=a.return;while(a&&a.tag!==5&&a.tag!==27);return a||null}function rE(a,l,d,g,b){for(var T=l._reactName,R=[];d!==null&&d!==g;){var I=d,V=I.alternate,X=I.stateNode;if(I=I.tag,V!==null&&V===g)break;I!==5&&I!==26&&I!==27||X===null||(V=X,b?(X=dl(d,T),X!=null&&R.unshift(Yl(d,X,V))):b||(X=dl(d,T),X!=null&&R.push(Yl(d,X,V)))),d=d.return}R.length!==0&&a.push({event:l,listeners:R})}var V4=/\r\n?/g,j4=/\u0000|\uFFFD/g;function iE(a){return(typeof a=="string"?a:""+a).replace(V4,` 49`).replace(j4,"")}function oE(a,l){return l=iE(l),iE(a)===l}function Ff(){}function Je(a,l,d,g,b,T){switch(d){case"children":typeof g=="string"?l==="body"||l==="textarea"&&g===""||ha(a,g):(typeof g=="number"||typeof g=="bigint")&&l!=="body"&&ha(a,""+g);break;case"className":Kc(a,"class",g);break;case"tabIndex":Kc(a,"tabindex",g);break;case"dir":case"role":case"viewBox":case"width":case"height":Kc(a,d,g);break;case"style":s1(a,g,T);break;case"data":if(l!=="object"){Kc(a,"data",g);break}case"src":case"href":if(g===""&&(l!=="a"||d!=="href")){a.removeAttribute(d);break}if(g==null||typeof g=="function"||typeof g=="symbol"||typeof g=="boolean"){a.removeAttribute(d);break}g=Xc(""+g),a.setAttribute(d,g);break;case"action":case"formAction":if(typeof g=="function"){a.setAttribute(d,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof T=="function"&&(d==="formAction"?(l!=="input"&&Je(a,l,"name",b.name,b,null),Je(a,l,"formEncType",b.formEncType,b,null),Je(a,l,"formMethod",b.formMethod,b,null),Je(a,l,"formTarget",b.formTarget,b,null)):(Je(a,l,"encType",b.encType,b,null),Je(a,l,"method",b.method,b,null),Je(a,l,"target",b.target,b,null)));if(g==null||typeof g=="symbol"||typeof g=="boolean"){a.removeAttribute(d);break}g=Xc(""+g),a.setAttribute(d,g);break;case"onClick":g!=null&&(a.onclick=Ff);break;case"onScroll":g!=null&&qe("scroll",a);break;case"onScrollEnd":g!=null&&qe("scrollend",a);break;case"dangerouslySetInnerHTML":if(g!=null){if(typeof g!="object"||!("__html"in g))throw Error(r(61));if(d=g.__html,d!=null){if(b.children!=null)throw Error(r(60));a.innerHTML=d}}break;case"multiple":a.multiple=g&&typeof g!="function"&&typeof g!="symbol";break;case"muted":a.muted=g&&typeof g!="function"&&typeof g!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(g==null||typeof g=="function"||typeof g=="boolean"||typeof g=="symbol"){a.removeAttribute("xlink:href");break}d=Xc(""+g),a.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",d);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":g!=null&&typeof g!="function"&&typeof g!="symbol"?a.setAttribute(d,""+g):a.removeAttribute(d);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":g&&typeof g!="function"&&typeof g!="symbol"?a.setAttribute(d,""):a.removeAttribute(d);break;case"capture":case"download":g===!0?a.setAttribute(d,""):g!==!1&&g!=null&&typeof g!="function"&&typeof g!="symbol"?a.setAttribute(d,g):a.removeAttribute(d);break;case"cols":case"rows":case"size":case"span":g!=null&&typeof g!="function"&&typeof g!="symbol"&&!isNaN(g)&&1<=g?a.setAttribute(d,g):a.removeAttribute(d);break;case"rowSpan":case"start":g==null||typeof g=="function"||typeof g=="symbol"||isNaN(g)?a.removeAttribute(d):a.setAttribute(d,g);break;case"popover":qe("beforetoggle",a),qe("toggle",a),zc(a,"popover",g);break;case"xlinkActuate":kr(a,"http://www.w3.org/1999/xlink","xlink:actuate",g);break;case"xlinkArcrole":kr(a,"http://www.w3.org/1999/xlink","xlink:arcrole",g);break;case"xlinkRole":kr(a,"http://www.w3.org/1999/xlink","xlink:role",g);break;case"xlinkShow":kr(a,"http://www.w3.org/1999/xlink","xlink:show",g);break;case"xlinkTitle":kr(a,"http://www.w3.org/1999/xlink","xlink:title",g);break;case"xlinkType":kr(a,"http://www.w3.org/1999/xlink","xlink:type",g);break;case"xmlBase":kr(a,"http://www.w3.org/XML/1998/namespace","xml:base",g);break;case"xmlLang":kr(a,"http://www.w3.org/XML/1998/namespace","xml:lang",g);break;case"xmlSpace":kr(a,"http://www.w3.org/XML/1998/namespace","xml:space",g);break;case"is":zc(a,"is",g);break;case"innerText":case"textContent":break;default:(!(2<d.length)||d[0]!=="o"&&d[0]!=="O"||d[1]!=="n"&&d[1]!=="N")&&(d=vj.get(d)||d,zc(a,d,g))}}function Ug(a,l,d,g,b,T){switch(d){case"style":s1(a,g,T);break;case"dangerouslySetInnerHTML":if(g!=null){if(typeof g!="object"||!("__html"in g))throw Error(r(61));if(d=g.__html,d!=null){if(b.children!=null)throw Error(r(60));a.innerHTML=d}}break;case"children":typeof g=="string"?ha(a,g):(typeof g=="number"||typeof g=="bigint")&&ha(a,""+g);break;case"onScroll":g!=null&&qe("scroll",a);break;case"onScrollEnd":g!=null&&qe("scrollend",a);break;case"onClick":g!=null&&(a.onclick=Ff);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Xw.hasOwnProperty(d))e:{if(d[0]==="o"&&d[1]==="n"&&(b=d.endsWith("Capture"),l=d.slice(2,b?d.length-7:void 0),T=a[fn]||null,T=T!=null?T[d]:null,typeof T=="function"&&a.removeEventListener(l,T,b),typeof g=="function")){typeof T!="function"&&T!==null&&(d in a?a[d]=null:a.hasAttribute(d)&&a.removeAttribute(d)),a.addEventListener(l,g,b);break e}d in a?a[d]=g:g===!0?a.setAttribute(d,""):zc(a,d,g)}}}function zt(a,l,d){switch(l){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":qe("error",a),qe("load",a);var g=!1,b=!1,T;for(T in d)if(d.hasOwnProperty(T)){var R=d[T];if(R!=null)switch(T){case"src":g=!0;break;case"srcSet":b=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,l));default:Je(a,l,T,R,d,null)}}b&&Je(a,l,"srcSet",d.srcSet,d,null),g&&Je(a,l,"src",d.src,d,null);return;case"input":qe("invalid",a);var I=T=R=b=null,V=null,X=null;for(g in d)if(d.hasOwnProperty(g)){var oe=d[g];if(oe!=null)switch(g){case"name":b=oe;break;case"type":R=oe;break;case"checked":V=oe;break;case"defaultChecked":X=oe;break;case"value":T=oe;break;case"defaultValue":I=oe;break;case"children":case"dangerouslySetInnerHTML":if(oe!=null)throw Error(r(137,l));break;default:Je(a,l,g,oe,d,null)}}r1(a,T,I,V,X,R,b,!1),Yc(a);return;case"select":qe("invalid",a),g=R=T=null;for(b in d)if(d.hasOwnProperty(b)&&(I=d[b],I!=null))switch(b){case"value":T=I;break;case"defaultValue":R=I;break;case"multiple":g=I;default:Je(a,l,b,I,d,null)}l=T,d=R,a.multiple=!!g,l!=null?da(a,!!g,l,!1):d!=null&&da(a,!!g,d,!0);return;case"textarea":qe("invalid",a),T=b=g=null;for(R in d)if(d.hasOwnProperty(R)&&(I=d[R],I!=null))switch(R){case"value":g=I;break;case"defaultValue":b=I;break;case"children":T=I;break;case"dangerouslySetInnerHTML":if(I!=null)throw Error(r(91));break;default:Je(a,l,R,I,d,null)}o1(a,g,b,T),Yc(a);return;case"option":for(V in d)if(d.hasOwnProperty(V)&&(g=d[V],g!=null))switch(V){case"selected":a.selected=g&&typeof g!="function"&&typeof g!="symbol";break;default:Je(a,l,V,g,d,null)}return;case"dialog":qe("beforetoggle",a),qe("toggle",a),qe("cancel",a),qe("close",a);break;case"iframe":case"object":qe("load",a);break;case"video":case"audio":for(g=0;g<Kl.length;g++)qe(Kl[g],a);break;case"image":qe("error",a),qe("load",a);break;case"details":qe("toggle",a);break;case"embed":case"source":case"link":qe("error",a),qe("load",a);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(X in d)if(d.hasOwnProperty(X)&&(g=d[X],g!=null))switch(X){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,l));default:Je(a,l,X,g,d,null)}return;default:if(Qp(l)){for(oe in d)d.hasOwnProperty(oe)&&(g=d[oe],g!==void 0&&Ug(a,l,oe,g,d,void 0));return}}for(I in d)d.hasOwnProperty(I)&&(g=d[I],g!=null&&Je(a,l,I,g,d,null))}function F4(a,l,d,g){switch(l){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var b=null,T=null,R=null,I=null,V=null,X=null,oe=null;for(ee in d){var le=d[ee];if(d.hasOwnProperty(ee)&&le!=null)switch(ee){case"checked":break;case"value":break;case"defaultValue":V=le;default:g.hasOwnProperty(ee)||Je(a,l,ee,null,g,le)}}for(var Q in g){var ee=g[Q];if(le=d[Q],g.hasOwnProperty(Q)&&(ee!=null||le!=null))switch(Q){case"type":T=ee;break;case"name":b=ee;break;case"checked":X=ee;break;case"defaultChecked":oe=ee;break;case"value":R=ee;break;case"defaultValue":I=ee;break;case"children":case"dangerouslySetInnerHTML":if(ee!=null)throw Error(r(137,l));break;default:ee!==le&&Je(a,l,Q,ee,g,le)}}Jp(a,R,I,V,X,oe,T,b);return;case"select":ee=R=I=Q=null;for(T in d)if(V=d[T],d.hasOwnProperty(T)&&V!=null)switch(T){case"value":break;case"multiple":ee=V;default:g.hasOwnProperty(T)||Je(a,l,T,null,g,V)}for(b in g)if(T=g[b],V=d[b],g.hasOwnProperty(b)&&(T!=null||V!=null))switch(b){case"value":Q=T;break;case"defaultValue":I=T;break;case"multiple":R=T;default:T!==V&&Je(a,l,b,T,g,V)}l=I,d=R,g=ee,Q!=null?da(a,!!d,Q,!1):!!g!=!!d&&(l!=null?da(a,!!d,l,!0):da(a,!!d,d?[]:"",!1));return;case"textarea":ee=Q=null;for(I in d)if(b=d[I],d.hasOwnProperty(I)&&b!=null&&!g.hasOwnProperty(I))switch(I){case"value":break;case"children":break;default:Je(a,l,I,null,g,b)}for(R in g)if(b=g[R],T=d[R],g.hasOwnProperty(R)&&(b!=null||T!=null))switch(R){case"value":Q=b;break;case"defaultValue":ee=b;break;case"children":break;case"dangerouslySetInnerHTML":if(b!=null)throw Error(r(91));break;default:b!==T&&Je(a,l,R,b,g,T)}i1(a,Q,ee);return;case"option":for(var we in d)if(Q=d[we],d.hasOwnProperty(we)&&Q!=null&&!g.hasOwnProperty(we))switch(we){case"selected":a.selected=!1;break;default:Je(a,l,we,null,g,Q)}for(V in g)if(Q=g[V],ee=d[V],g.hasOwnProperty(V)&&Q!==ee&&(Q!=null||ee!=null))switch(V){case"selected":a.selected=Q&&typeof Q!="function"&&typeof Q!="symbol";break;default:Je(a,l,V,Q,g,ee)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var Te in d)Q=d[Te],d.hasOwnProperty(Te)&&Q!=null&&!g.hasOwnProperty(Te)&&Je(a,l,Te,null,g,Q);for(X in g)if(Q=g[X],ee=d[X],g.hasOwnProperty(X)&&Q!==ee&&(Q!=null||ee!=null))switch(X){case"children":case"dangerouslySetInnerHTML":if(Q!=null)throw Error(r(137,l));break;default:Je(a,l,X,Q,g,ee)}return;default:if(Qp(l)){for(var Ze in d)Q=d[Ze],d.hasOwnProperty(Ze)&&Q!==void 0&&!g.hasOwnProperty(Ze)&&Ug(a,l,Ze,void 0,g,Q);for(oe in g)Q=g[oe],ee=d[oe],!g.hasOwnProperty(oe)||Q===ee||Q===void 0&&ee===void 0||Ug(a,l,oe,Q,g,ee);return}}for(var K in d)Q=d[K],d.hasOwnProperty(K)&&Q!=null&&!g.hasOwnProperty(K)&&Je(a,l,K,null,g,Q);for(le in g)Q=g[le],ee=d[le],!g.hasOwnProperty(le)||Q===ee||Q==null&&ee==null||Je(a,l,le,Q,g,ee)}var qg=null,Bg=null;function Hf(a){return a.nodeType===9?a:a.ownerDocument}function aE(a){switch(a){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function sE(a,l){if(a===0)switch(l){case"svg":return 1;case"math":return 2;default:return 0}return a===1&&l==="foreignObject"?0:a}function $g(a,l){return a==="textarea"||a==="noscript"||typeof l.children=="string"||typeof l.children=="number"||typeof l.children=="bigint"||typeof l.dangerouslySetInnerHTML=="object"&&l.dangerouslySetInnerHTML!==null&&l.dangerouslySetInnerHTML.__html!=null}var Vg=null;function H4(){var a=window.event;return a&&a.type==="popstate"?a===Vg?!1:(Vg=a,!0):(Vg=null,!1)}var lE=typeof setTimeout=="function"?setTimeout:void 0,G4=typeof clearTimeout=="function"?clearTimeout:void 0,uE=typeof Promise=="function"?Promise:void 0,z4=typeof queueMicrotask=="function"?queueMicrotask:typeof uE<"u"?function(a){return uE.resolve(null).then(a).catch(K4)}:lE;function K4(a){setTimeout(function(){throw a})}function ki(a){return a==="head"}function cE(a,l){var d=l,g=0,b=0;do{var T=d.nextSibling;if(a.removeChild(d),T&&T.nodeType===8)if(d=T.data,d==="/$"){if(0<g&&8>g){d=g;var R=a.ownerDocument;if(d&1&&Wl(R.documentElement),d&2&&Wl(R.body),d&4)for(d=R.head,Wl(d),R=d.firstChild;R;){var I=R.nextSibling,V=R.nodeName;R[cl]||V==="SCRIPT"||V==="STYLE"||V==="LINK"&&R.rel.toLowerCase()==="stylesheet"||d.removeChild(R),R=I}}if(b===0){a.removeChild(T),ru(l);return}b--}else d==="$"||d==="$?"||d==="$!"?b++:g=d.charCodeAt(0)-48;else g=0;d=T}while(d);ru(l)}function jg(a){var l=a.firstChild;for(l&&l.nodeType===10&&(l=l.nextSibling);l;){var d=l;switch(l=l.nextSibling,d.nodeName){case"HTML":case"HEAD":case"BODY":jg(d),Kp(d);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(d.rel.toLowerCase()==="stylesheet")continue}a.removeChild(d)}}function Y4(a,l,d,g){for(;a.nodeType===1;){var b=d;if(a.nodeName.toLowerCase()!==l.toLowerCase()){if(!g&&(a.nodeName!=="INPUT"||a.type!=="hidden"))break}else if(g){if(!a[cl])switch(l){case"meta":if(!a.hasAttribute("itemprop"))break;return a;case"link":if(T=a.getAttribute("rel"),T==="stylesheet"&&a.hasAttribute("data-precedence"))break;if(T!==b.rel||a.getAttribute("href")!==(b.href==null||b.href===""?null:b.href)||a.getAttribute("crossorigin")!==(b.crossOrigin==null?null:b.crossOrigin)||a.getAttribute("title")!==(b.title==null?null:b.title))break;return a;case"style":if(a.hasAttribute("data-precedence"))break;return a;case"script":if(T=a.getAttribute("src"),(T!==(b.src==null?null:b.src)||a.getAttribute("type")!==(b.type==null?null:b.type)||a.getAttribute("crossorigin")!==(b.crossOrigin==null?null:b.crossOrigin))&&T&&a.hasAttribute("async")&&!a.hasAttribute("itemprop"))break;return a;default:return a}}else if(l==="input"&&a.type==="hidden"){var T=b.name==null?null:""+b.name;if(b.type==="hidden"&&a.getAttribute("name")===T)return a}else return a;if(a=tr(a.nextSibling),a===null)break}return null}function W4(a,l,d){if(l==="")return null;for(;a.nodeType!==3;)if((a.nodeType!==1||a.nodeName!=="INPUT"||a.type!=="hidden")&&!d||(a=tr(a.nextSibling),a===null))return null;return a}function Fg(a){return a.data==="$!"||a.data==="$?"&&a.ownerDocument.readyState==="complete"}function X4(a,l){var d=a.ownerDocument;if(a.data!=="$?"||d.readyState==="complete")l();else{var g=function(){l(),d.removeEventListener("DOMContentLoaded",g)};d.addEventListener("DOMContentLoaded",g),a._reactRetry=g}}function tr(a){for(;a!=null;a=a.nextSibling){var l=a.nodeType;if(l===1||l===3)break;if(l===8){if(l=a.data,l==="$"||l==="$!"||l==="$?"||l==="F!"||l==="F")break;if(l==="/$")return null}}return a}var Hg=null;function fE(a){a=a.previousSibling;for(var l=0;a;){if(a.nodeType===8){var d=a.data;if(d==="$"||d==="$!"||d==="$?"){if(l===0)return a;l--}else d==="/$"&&l++}a=a.previousSibling}return null}function dE(a,l,d){switch(l=Hf(d),a){case"html":if(a=l.documentElement,!a)throw Error(r(452));return a;case"head":if(a=l.head,!a)throw Error(r(453));return a;case"body":if(a=l.body,!a)throw Error(r(454));return a;default:throw Error(r(451))}}function Wl(a){for(var l=a.attributes;l.length;)a.removeAttributeNode(l[0]);Kp(a)}var $n=new Map,hE=new Set;function Gf(a){return typeof a.getRootNode=="function"?a.getRootNode():a.nodeType===9?a:a.ownerDocument}var Wr=G.d;G.d={f:J4,r:Z4,D:Q4,C:eF,L:tF,m:nF,X:iF,S:rF,M:oF};function J4(){var a=Wr.f(),l=Lf();return a||l}function Z4(a){var l=la(a);l!==null&&l.tag===5&&l.type==="form"?D_(l):Wr.r(a)}var ja=typeof document>"u"?null:document;function pE(a,l,d){var g=ja;if(g&&typeof l=="string"&&l){var b=Dn(l);b='link[rel="'+a+'"][href="'+b+'"]',typeof d=="string"&&(b+='[crossorigin="'+d+'"]'),hE.has(b)||(hE.add(b),a={rel:a,crossOrigin:d,href:l},g.querySelector(b)===null&&(l=g.createElement("link"),zt(l,"link",a),Ut(l),g.head.appendChild(l)))}}function Q4(a){Wr.D(a),pE("dns-prefetch",a,null)}function eF(a,l){Wr.C(a,l),pE("preconnect",a,l)}function tF(a,l,d){Wr.L(a,l,d);var g=ja;if(g&&a&&l){var b='link[rel="preload"][as="'+Dn(l)+'"]';l==="image"&&d&&d.imageSrcSet?(b+='[imagesrcset="'+Dn(d.imageSrcSet)+'"]',typeof d.imageSizes=="string"&&(b+='[imagesizes="'+Dn(d.imageSizes)+'"]')):b+='[href="'+Dn(a)+'"]';var T=b;switch(l){case"style":T=Fa(a);break;case"script":T=Ha(a)}$n.has(T)||(a=p({rel:"preload",href:l==="image"&&d&&d.imageSrcSet?void 0:a,as:l},d),$n.set(T,a),g.querySelector(b)!==null||l==="style"&&g.querySelector(Xl(T))||l==="script"&&g.querySelector(Jl(T))||(l=g.createElement("link"),zt(l,"link",a),Ut(l),g.head.appendChild(l)))}}function nF(a,l){Wr.m(a,l);var d=ja;if(d&&a){var g=l&&typeof l.as=="string"?l.as:"script",b='link[rel="modulepreload"][as="'+Dn(g)+'"][href="'+Dn(a)+'"]',T=b;switch(g){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":T=Ha(a)}if(!$n.has(T)&&(a=p({rel:"modulepreload",href:a},l),$n.set(T,a),d.querySelector(b)===null)){switch(g){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(d.querySelector(Jl(T)))return}g=d.createElement("link"),zt(g,"link",a),Ut(g),d.head.appendChild(g)}}}function rF(a,l,d){Wr.S(a,l,d);var g=ja;if(g&&a){var b=ua(g).hoistableStyles,T=Fa(a);l=l||"default";var R=b.get(T);if(!R){var I={loading:0,preload:null};if(R=g.querySelector(Xl(T)))I.loading=5;else{a=p({rel:"stylesheet",href:a,"data-precedence":l},d),(d=$n.get(T))&&Gg(a,d);var V=R=g.createElement("link");Ut(V),zt(V,"link",a),V._p=new Promise(function(X,oe){V.onload=X,V.onerror=oe}),V.addEventListener("load",function(){I.loading|=1}),V.addEventListener("error",function(){I.loading|=2}),I.loading|=4,zf(R,l,g)}R={type:"stylesheet",instance:R,count:1,state:I},b.set(T,R)}}}function iF(a,l){Wr.X(a,l);var d=ja;if(d&&a){var g=ua(d).hoistableScripts,b=Ha(a),T=g.get(b);T||(T=d.querySelector(Jl(b)),T||(a=p({src:a,async:!0},l),(l=$n.get(b))&&zg(a,l),T=d.createElement("script"),Ut(T),zt(T,"link",a),d.head.appendChild(T)),T={type:"script",instance:T,count:1,state:null},g.set(b,T))}}function oF(a,l){Wr.M(a,l);var d=ja;if(d&&a){var g=ua(d).hoistableScripts,b=Ha(a),T=g.get(b);T||(T=d.querySelector(Jl(b)),T||(a=p({src:a,async:!0,type:"module"},l),(l=$n.get(b))&&zg(a,l),T=d.createElement("script"),Ut(T),zt(T,"link",a),d.head.appendChild(T)),T={type:"script",instance:T,count:1,state:null},g.set(b,T))}}function mE(a,l,d,g){var b=(b=ve.current)?Gf(b):null;if(!b)throw Error(r(446));switch(a){case"meta":case"title":return null;case"style":return typeof d.precedence=="string"&&typeof d.href=="string"?(l=Fa(d.href),d=ua(b).hoistableStyles,g=d.get(l),g||(g={type:"style",instance:null,count:0,state:null},d.set(l,g)),g):{type:"void",instance:null,count:0,state:null};case"link":if(d.rel==="stylesheet"&&typeof d.href=="string"&&typeof d.precedence=="string"){a=Fa(d.href);var T=ua(b).hoistableStyles,R=T.get(a);if(R||(b=b.ownerDocument||b,R={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},T.set(a,R),(T=b.querySelector(Xl(a)))&&!T._p&&(R.instance=T,R.state.loading=5),$n.has(a)||(d={rel:"preload",as:"style",href:d.href,crossOrigin:d.crossOrigin,integrity:d.integrity,media:d.media,hrefLang:d.hrefLang,referrerPolicy:d.referrerPolicy},$n.set(a,d),T||aF(b,a,d,R.state))),l&&g===null)throw Error(r(528,""));return R}if(l&&g!==null)throw Error(r(529,""));return null;case"script":return l=d.async,d=d.src,typeof d=="string"&&l&&typeof l!="function"&&typeof l!="symbol"?(l=Ha(d),d=ua(b).hoistableScripts,g=d.get(l),g||(g={type:"script",instance:null,count:0,state:null},d.set(l,g)),g):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,a))}}function Fa(a){return'href="'+Dn(a)+'"'}function Xl(a){return'link[rel="stylesheet"]['+a+"]"}function gE(a){return p({},a,{"data-precedence":a.precedence,precedence:null})}function aF(a,l,d,g){a.querySelector('link[rel="preload"][as="style"]['+l+"]")?g.loading=1:(l=a.createElement("link"),g.preload=l,l.addEventListener("load",function(){return g.loading|=1}),l.addEventListener("error",function(){return g.loading|=2}),zt(l,"link",d),Ut(l),a.head.appendChild(l))}function Ha(a){return'[src="'+Dn(a)+'"]'}function Jl(a){return"script[async]"+a}function yE(a,l,d){if(l.count++,l.instance===null)switch(l.type){case"style":var g=a.querySelector('style[data-href~="'+Dn(d.href)+'"]');if(g)return l.instance=g,Ut(g),g;var b=p({},d,{"data-href":d.href,"data-precedence":d.precedence,href:null,precedence:null});return g=(a.ownerDocument||a).createElement("style"),Ut(g),zt(g,"style",b),zf(g,d.precedence,a),l.instance=g;case"stylesheet":b=Fa(d.href);var T=a.querySelector(Xl(b));if(T)return l.state.loading|=4,l.instance=T,Ut(T),T;g=gE(d),(b=$n.get(b))&&Gg(g,b),T=(a.ownerDocument||a).createElement("link"),Ut(T);var R=T;return R._p=new Promise(function(I,V){R.onload=I,R.onerror=V}),zt(T,"link",g),l.state.loading|=4,zf(T,d.precedence,a),l.instance=T;case"script":return T=Ha(d.src),(b=a.querySelector(Jl(T)))?(l.instance=b,Ut(b),b):(g=d,(b=$n.get(T))&&(g=p({},d),zg(g,b)),a=a.ownerDocument||a,b=a.createElement("script"),Ut(b),zt(b,"link",g),a.head.appendChild(b),l.instance=b);case"void":return null;default:throw Error(r(443,l.type))}else l.type==="stylesheet"&&(l.state.loading&4)===0&&(g=l.instance,l.state.loading|=4,zf(g,d.precedence,a));return l.instance}function zf(a,l,d){for(var g=d.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),b=g.length?g[g.length-1]:null,T=b,R=0;R<g.length;R++){var I=g[R];if(I.dataset.precedence===l)T=I;else if(T!==b)break}T?T.parentNode.insertBefore(a,T.nextSibling):(l=d.nodeType===9?d.head:d,l.insertBefore(a,l.firstChild))}function Gg(a,l){a.crossOrigin==null&&(a.crossOrigin=l.crossOrigin),a.referrerPolicy==null&&(a.referrerPolicy=l.referrerPolicy),a.title==null&&(a.title=l.title)}function zg(a,l){a.crossOrigin==null&&(a.crossOrigin=l.crossOrigin),a.referrerPolicy==null&&(a.referrerPolicy=l.referrerPolicy),a.integrity==null&&(a.integrity=l.integrity)}var Kf=null;function vE(a,l,d){if(Kf===null){var g=new Map,b=Kf=new Map;b.set(d,g)}else b=Kf,g=b.get(d),g||(g=new Map,b.set(d,g));if(g.has(a))return g;for(g.set(a,null),d=d.getElementsByTagName(a),b=0;b<d.length;b++){var T=d[b];if(!(T[cl]||T[Xt]||a==="link"&&T.getAttribute("rel")==="stylesheet")&&T.namespaceURI!=="http://www.w3.org/2000/svg"){var R=T.getAttribute(l)||"";R=a+R;var I=g.get(R);I?I.push(T):g.set(R,[T])}}return g}function bE(a,l,d){a=a.ownerDocument||a,a.head.insertBefore(d,l==="title"?a.querySelector("head > title"):null)}function sF(a,l,d){if(d===1||l.itemProp!=null)return!1;switch(a){case"meta":case"title":return!0;case"style":if(typeof l.precedence!="string"||typeof l.href!="string"||l.href==="")break;return!0;case"link":if(typeof l.rel!="string"||typeof l.href!="string"||l.href===""||l.onLoad||l.onError)break;switch(l.rel){case"stylesheet":return a=l.disabled,typeof l.precedence=="string"&&a==null;default:return!0}case"script":if(l.async&&typeof l.async!="function"&&typeof l.async!="symbol"&&!l.onLoad&&!l.onError&&l.src&&typeof l.src=="string")return!0}return!1}function xE(a){return!(a.type==="stylesheet"&&(a.state.loading&3)===0)}var Zl=null;function lF(){}function uF(a,l,d){if(Zl===null)throw Error(r(475));var g=Zl;if(l.type==="stylesheet"&&(typeof d.media!="string"||matchMedia(d.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var b=Fa(d.href),T=a.querySelector(Xl(b));if(T){a=T._p,a!==null&&typeof a=="object"&&typeof a.then=="function"&&(g.count++,g=Yf.bind(g),a.then(g,g)),l.state.loading|=4,l.instance=T,Ut(T);return}T=a.ownerDocument||a,d=gE(d),(b=$n.get(b))&&Gg(d,b),T=T.createElement("link"),Ut(T);var R=T;R._p=new Promise(function(I,V){R.onload=I,R.onerror=V}),zt(T,"link",d),l.instance=T}g.stylesheets===null&&(g.stylesheets=new Map),g.stylesheets.set(l,a),(a=l.state.preload)&&(l.state.loading&3)===0&&(g.count++,l=Yf.bind(g),a.addEventListener("load",l),a.addEventListener("error",l))}}function cF(){if(Zl===null)throw Error(r(475));var a=Zl;return a.stylesheets&&a.count===0&&Kg(a,a.stylesheets),0<a.count?function(l){var d=setTimeout(function(){if(a.stylesheets&&Kg(a,a.stylesheets),a.unsuspend){var g=a.unsuspend;a.unsuspend=null,g()}},6e4);return a.unsuspend=l,function(){a.unsuspend=null,clearTimeout(d)}}:null}function Yf(){if(this.count--,this.count===0){if(this.stylesheets)Kg(this,this.stylesheets);else if(this.unsuspend){var a=this.unsuspend;this.unsuspend=null,a()}}}var Wf=null;function Kg(a,l){a.stylesheets=null,a.unsuspend!==null&&(a.count++,Wf=new Map,l.forEach(fF,a),Wf=null,Yf.call(a))}function fF(a,l){if(!(l.state.loading&4)){var d=Wf.get(a);if(d)var g=d.get(null);else{d=new Map,Wf.set(a,d);for(var b=a.querySelectorAll("link[data-precedence],style[data-precedence]"),T=0;T<b.length;T++){var R=b[T];(R.nodeName==="LINK"||R.getAttribute("media")!=="not all")&&(d.set(R.dataset.precedence,R),g=R)}g&&d.set(null,g)}b=l.instance,R=b.getAttribute("data-precedence"),T=d.get(R)||g,T===g&&d.set(null,b),d.set(R,b),this.count++,g=Yf.bind(this),b.addEventListener("load",g),b.addEventListener("error",g),T?T.parentNode.insertBefore(b,T.nextSibling):(a=a.nodeType===9?a.head:a,a.insertBefore(b,a.firstChild)),l.state.loading|=4}}var Ql={$$typeof:M,Provider:null,Consumer:null,_currentValue:te,_currentValue2:te,_threadCount:0};function dF(a,l,d,g,b,T,R,I){this.tag=1,this.containerInfo=a,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Fp(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Fp(0),this.hiddenUpdates=Fp(null),this.identifierPrefix=g,this.onUncaughtError=b,this.onCaughtError=T,this.onRecoverableError=R,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=I,this.incompleteTransitions=new Map}function TE(a,l,d,g,b,T,R,I,V,X,oe,le){return a=new dF(a,l,d,R,I,V,X,le),l=1,T===!0&&(l|=24),T=Tn(3,null,null,l),a.current=T,T.stateNode=a,l=Mm(),l.refCount++,a.pooledCache=l,l.refCount++,T.memoizedState={element:g,isDehydrated:d,cache:l},Om(T),a}function SE(a){return a?(a=Ta,a):Ta}function AE(a,l,d,g,b,T){b=SE(b),g.context===null?g.context=b:g.pendingContext=b,g=Si(l),g.payload={element:d},T=T===void 0?null:T,T!==null&&(g.callback=T),d=Ai(a,g,l),d!==null&&(Cn(d,a,l),Pl(d,a,l))}function wE(a,l){if(a=a.memoizedState,a!==null&&a.dehydrated!==null){var d=a.retryLane;a.retryLane=d!==0&&d<l?d:l}}function Yg(a,l){wE(a,l),(a=a.alternate)&&wE(a,l)}function _E(a){if(a.tag===13){var l=xa(a,67108864);l!==null&&Cn(l,a,67108864),Yg(a,67108864)}}var Xf=!0;function hF(a,l,d,g){var b=$.T;$.T=null;var T=G.p;try{G.p=2,Wg(a,l,d,g)}finally{G.p=T,$.T=b}}function pF(a,l,d,g){var b=$.T;$.T=null;var T=G.p;try{G.p=8,Wg(a,l,d,g)}finally{G.p=T,$.T=b}}function Wg(a,l,d,g){if(Xf){var b=Xg(g);if(b===null)Lg(a,l,g,Jf,d),EE(a,g);else if(gF(b,a,l,d,g))g.stopPropagation();else if(EE(a,g),l&4&&-1<mF.indexOf(a)){for(;b!==null;){var T=la(b);if(T!==null)switch(T.tag){case 3:if(T=T.stateNode,T.current.memoizedState.isDehydrated){var R=ao(T.pendingLanes);if(R!==0){var I=T;for(I.pendingLanes|=2,I.entangledLanes|=2;R;){var V=1<<31-bn(R);I.entanglements[1]|=V,R&=~V}xr(T),(Ke&6)===0&&(If=lt()+500,zl(0))}}break;case 13:I=xa(T,2),I!==null&&Cn(I,T,2),Lf(),Yg(T,2)}if(T=Xg(g),T===null&&Lg(a,l,g,Jf,d),T===b)break;b=T}b!==null&&g.stopPropagation()}else Lg(a,l,g,null,d)}}function Xg(a){return a=tm(a),Jg(a)}var Jf=null;function Jg(a){if(Jf=null,a=sa(a),a!==null){var l=o(a);if(l===null)a=null;else{var d=l.tag;if(d===13){if(a=s(l),a!==null)return a;a=null}else if(d===3){if(l.stateNode.current.memoizedState.isDehydrated)return l.tag===3?l.stateNode.containerInfo:null;a=null}else l!==a&&(a=null)}}return Jf=a,null}function CE(a){switch(a){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(mr()){case Dr:return 2;case oo:return 8;case Nn:case Ir:return 32;case oa:return 268435456;default:return 32}default:return 32}}var Zg=!1,Li=null,Ui=null,qi=null,eu=new Map,tu=new Map,Bi=[],mF="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function EE(a,l){switch(a){case"focusin":case"focusout":Li=null;break;case"dragenter":case"dragleave":Ui=null;break;case"mouseover":case"mouseout":qi=null;break;case"pointerover":case"pointerout":eu.delete(l.pointerId);break;case"gotpointercapture":case"lostpointercapture":tu.delete(l.pointerId)}}function nu(a,l,d,g,b,T){return a===null||a.nativeEvent!==T?(a={blockedOn:l,domEventName:d,eventSystemFlags:g,nativeEvent:T,targetContainers:[b]},l!==null&&(l=la(l),l!==null&&_E(l)),a):(a.eventSystemFlags|=g,l=a.targetContainers,b!==null&&l.indexOf(b)===-1&&l.push(b),a)}function gF(a,l,d,g,b){switch(l){case"focusin":return Li=nu(Li,a,l,d,g,b),!0;case"dragenter":return Ui=nu(Ui,a,l,d,g,b),!0;case"mouseover":return qi=nu(qi,a,l,d,g,b),!0;case"pointerover":var T=b.pointerId;return eu.set(T,nu(eu.get(T)||null,a,l,d,g,b)),!0;case"gotpointercapture":return T=b.pointerId,tu.set(T,nu(tu.get(T)||null,a,l,d,g,b)),!0}return!1}function ME(a){var l=sa(a.target);if(l!==null){var d=o(l);if(d!==null){if(l=d.tag,l===13){if(l=s(d),l!==null){a.blockedOn=l,uj(a.priority,function(){if(d.tag===13){var g=_n();g=Hp(g);var b=xa(d,g);b!==null&&Cn(b,d,g),Yg(d,g)}});return}}else if(l===3&&d.stateNode.current.memoizedState.isDehydrated){a.blockedOn=d.tag===3?d.stateNode.containerInfo:null;return}}}a.blockedOn=null}function Zf(a){if(a.blockedOn!==null)return!1;for(var l=a.targetContainers;0<l.length;){var d=Xg(a.nativeEvent);if(d===null){d=a.nativeEvent;var g=new d.constructor(d.type,d);em=g,d.target.dispatchEvent(g),em=null}else return l=la(d),l!==null&&_E(l),a.blockedOn=d,!1;l.shift()}return!0}function PE(a,l,d){Zf(a)&&d.delete(l)}function yF(){Zg=!1,Li!==null&&Zf(Li)&&(Li=null),Ui!==null&&Zf(Ui)&&(Ui=null),qi!==null&&Zf(qi)&&(qi=null),eu.forEach(PE),tu.forEach(PE)}function Qf(a,l){a.blockedOn===l&&(a.blockedOn=null,Zg||(Zg=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,yF)))}var ed=null;function RE(a){ed!==a&&(ed=a,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){ed===a&&(ed=null);for(var l=0;l<a.length;l+=3){var d=a[l],g=a[l+1],b=a[l+2];if(typeof g!="function"){if(Jg(g||d)===null)continue;break}var T=la(d);T!==null&&(a.splice(l,3),l-=3,Jm(T,{pending:!0,data:b,method:d.method,action:g},g,b))}}))}function ru(a){function l(V){return Qf(V,a)}Li!==null&&Qf(Li,a),Ui!==null&&Qf(Ui,a),qi!==null&&Qf(qi,a),eu.forEach(l),tu.forEach(l);for(var d=0;d<Bi.length;d++){var g=Bi[d];g.blockedOn===a&&(g.blockedOn=null)}for(;0<Bi.length&&(d=Bi[0],d.blockedOn===null);)ME(d),d.blockedOn===null&&Bi.shift();if(d=(a.ownerDocument||a).$$reactFormReplay,d!=null)for(g=0;g<d.length;g+=3){var b=d[g],T=d[g+1],R=b[fn]||null;if(typeof T=="function")R||RE(d);else if(R){var I=null;if(T&&T.hasAttribute("formAction")){if(b=T,R=T[fn]||null)I=R.formAction;else if(Jg(b)!==null)continue}else I=R.action;typeof I=="function"?d[g+1]=I:(d.splice(g,3),g-=3),RE(d)}}}function Qg(a){this._internalRoot=a}td.prototype.render=Qg.prototype.render=function(a){var l=this._internalRoot;if(l===null)throw Error(r(409));var d=l.current,g=_n();AE(d,g,a,l,null,null)},td.prototype.unmount=Qg.prototype.unmount=function(){var a=this._internalRoot;if(a!==null){this._internalRoot=null;var l=a.containerInfo;AE(a.current,2,null,a,null,null),Lf(),l[aa]=null}};function td(a){this._internalRoot=a}td.prototype.unstable_scheduleHydration=function(a){if(a){var l=Kw();a={blockedOn:null,target:a,priority:l};for(var d=0;d<Bi.length&&l!==0&&l<Bi[d].priority;d++);Bi.splice(d,0,a),d===0&&ME(a)}};var NE=e.version;if(NE!=="19.1.1")throw Error(r(527,NE,"19.1.1"));G.findDOMNode=function(a){var l=a._reactInternals;if(l===void 0)throw typeof a.render=="function"?Error(r(188)):(a=Object.keys(a).join(","),Error(r(268,a)));return a=c(l),a=a!==null?f(a):null,a=a===null?null:a.stateNode,a};var vF={bundleType:0,version:"19.1.1",rendererPackageName:"react-dom",currentDispatcherRef:$,reconcilerVersion:"19.1.1"};
49if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var nd=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!nd.isDisabled&&nd.supportsFiber)try{sl=nd.inject(vF),vn=nd}catch{}}return ou.createRoot=function(a,l){if(!i(a))throw Error(r(299));var d=!1,g="",b=K_,T=Y_,R=W_,I=null;return l!=null&&(l.unstable_strictMode===!0&&(d=!0),l.identifierPrefix!==void 0&&(g=l.identifierPrefix),l.onUncaughtError!==void 0&&(b=l.onUncaughtError),l.onCaughtError!==void 0&&(T=l.onCaughtError),l.onRecoverableError!==void 0&&(R=l.onRecoverableError),l.unstable_transitionCallbacks!==void 0&&(I=l.unstable_transitionCallbacks)),l=TE(a,1,!1,null,null,d,g,b,T,R,I,null),a[aa]=l.current,kg(a),new Qg(l)},ou.hydrateRoot=function(a,l,d){if(!i(a))throw Error(r(299));var g=!1,b="",T=K_,R=Y_,I=W_,V=null,X=null;return d!=null&&(d.unstable_strictMode===!0&&(g=!0),d.identifierPrefix!==void 0&&(b=d.identifierPrefix),d.onUncaughtError!==void 0&&(T=d.onUncaughtError),d.onCaughtError!==void 0&&(R=d.onCaughtError),d.onRecoverableError!==void 0&&(I=d.onRecoverableError),d.unstable_transitionCallbacks!==void 0&&(V=d.unstable_transitionCallbacks),d.formState!==void 0&&(X=d.formState)),l=TE(a,1,!0,l,d??null,g,b,T,R,I,V,X),l.context=SE(null),d=l.current,g=_n(),g=Hp(g),b=Si(g),b.callback=null,Ai(d,b,g),d=g,l.current.lanes=d,ul(l,d),xr(l),a[aa]=l.current,kg(a),new td(l)},ou.version="19.1.1",ou}var VE;function RF(){if(VE)return ny.exports;VE=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}return t(),ny.exports=PF(),ny.exports}var NF=RF();const OF=$e(NF);/** 50 * react-router v7.9.3 51 * 52 * Copyright (c) Remix Software Inc. 53 * 54 * This source code is licensed under the MIT license found in the 55 * LICENSE.md file in the root directory of this source tree. 56 * 57 * @license MIT 58 */var jE="popstate";function DF(t={}){function e(r,i){let{pathname:o,search:s,hash:u}=r.location;return Ux("",{pathname:o,search:s,hash:u},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(r,i){return typeof i=="string"?i:Uu(i)}return kF(e,n,null,t)}function mt(t,e){if(t===!1||t===null||typeof t>"u")throw new Error(e)}function Cr(t,e){if(!t){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function IF(){return Math.random().toString(36).substring(2,10)}function FE(t,e){return{usr:t.state,key:t.key,idx:e}}function Ux(t,e,n=null,r){return{pathname:typeof t=="string"?t:t.pathname,search:"",hash:"",...typeof e=="string"?Fs(e):e,state:n,key:e&&e.key||r||IF()}}function Uu({pathname:t="/",search:e="",hash:n=""}){return e&&e!=="?"&&(t+=e.charAt(0)==="?"?e:"?"+e),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function Fs(t){let e={};if(t){let n=t.indexOf("#");n>=0&&(e.hash=t.substring(n),t=t.substring(0,n));let r=t.indexOf("?");r>=0&&(e.search=t.substring(r),t=t.substring(0,r)),t&&(e.pathname=t)}return e}function kF(t,e,n,r={}){let{window:i=document.defaultView,v5Compat:o=!1}=r,s=i.history,u="POP",c=null,f=p();f==null&&(f=0,s.replaceState({...s.state,idx:f},""));function p(){return(s.state||{idx:null}).idx}function y(){u="POP";let S=p(),C=S==null?null:S-f;f=S,c&&c({action:u,location:A.location,delta:C})}function v(S,C){u="PUSH";let P=Ux(A.location,S,C);f=p()+1;let M=FE(P,f),O=A.createHref(P);try{s.pushState(M,"",O)}catch(E){if(E instanceof DOMException&&E.name==="DataCloneError")throw E;i.location.assign(O)}o&&c&&c({action:u,location:A.location,delta:1})}function x(S,C){u="REPLACE";let P=Ux(A.location,S,C);f=p();let M=FE(P,f),O=A.createHref(P);s.replaceState(M,"",O),o&&c&&c({action:u,location:A.location,delta:0})}function w(S){return LF(S)}let A={get action(){return u},get location(){return t(i,s)},listen(S){if(c)throw new Error("A history only accepts one active listener");return i.addEventListener(jE,y),c=S,()=>{i.removeEventListener(jE,y),c=null}},createHref(S){return e(i,S)},createURL:w,encodeLocation(S){let C=w(S);return{pathname:C.pathname,search:C.search,hash:C.hash}},push:v,replace:x,go(S){return s.go(S)}};return A}function LF(t,e=!1){let n="http://localhost";
58typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),mt(n,"No window.location.(origin|href) available to create URL");let r=typeof t=="string"?t:Uu(t);return r=r.replace(/ $/,"%20"),!e&&r.startsWith("//")&&(r=n+r),new URL(r,n)}function BL(t,e,n="/"){return UF(t,e,n,!1)}function UF(t,e,n,r){let i=typeof e=="string"?Fs(e):e,o=oi(i.pathname||"/",n);if(o==null)return null;let s=$L(t);qF(s);let u=null;for(let c=0;u==null&&c<s.length;++c){let f=WF(o);u=KF(s[c],f,r)}return u}function $L(t,e=[],n=[],r="",i=!1){let o=(s,u,c=i,f)=>{let p={relativePath:f===void 0?s.path||"":f,caseSensitive:s.caseSensitive===!0,childrenIndex:u,route:s};if(p.relativePath.startsWith("/")){if(!p.relativePath.startsWith(r)&&c)return;mt(p.relativePath.startsWith(r),`Absolute route path "${p.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),p.relativePath=p.relativePath.slice(r.length)}let y=ni([r,p.relativePath]),v=n.concat(p);s.children&&s.children.length>0&&(mt(s.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${y}".`),$L(s.children,e,v,y,c)),!(s.path==null&&!s.index)&&e.push({path:y,score:GF(y,s.index),routesMeta:v})};return t.forEach((s,u)=>{var c;if(s.path===""||!((c=s.path)!=null&&c.includes("?")))o(s,u);else for(let f of VL(s.path))o(s,u,!0,f)}),e}function VL(t){let e=t.split("/");if(e.length===0)return[];let[n,...r]=e,i=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return i?[o,""]:[o];let s=VL(r.join("/")),u=[];return u.push(...s.map(c=>c===""?o:[o,c].join("/"))),i&&u.push(...s),u.map(c=>t.startsWith("/")&&c===""?"/":c)}function qF(t){t.sort((e,n)=>e.score!==n.score?n.score-e.score:zF(e.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var BF=/^:[\w-]+$/,$F=3,VF=2,jF=1,FF=10,HF=-2,HE=t=>t==="*";function GF(t,e){let n=t.split("/"),r=n.length;return n.some(HE)&&(r+=HF),e&&(r+=VF),n.filter(i=>!HE(i)).reduce((i,o)=>i+(BF.test(o)?$F:o===""?jF:FF),r)}function zF(t,e){return t.length===e.length&&t.slice(0,-1).every((r,i)=>r===e[i])?t[t.length-1]-e[e.length-1]:0}function KF(t,e,n=!1){let{routesMeta:r}=t,i={},o="/",s=[];for(let u=0;u<r.length;++u){let c=r[u],f=u===r.length-1,p=o==="/"?e:e.slice(o.length)||"/",y=qd({path:c.relativePath,caseSensitive:c.caseSensitive,end:f},p),v=c.route;if(!y&&f&&n&&!r[r.length-1].route.index&&(y=qd({path:c.relativePath,caseSensitive:c.caseSensitive,end:!1},p)),!y)return null;
58Object.assign(i,y.params),s.push({params:i,pathname:ni([o,y.pathname]),pathnameBase:QF(ni([o,y.pathnameBase])),route:v}),y.pathnameBase!=="/"&&(o=ni([o,y.pathnameBase]))}return s}function qd(t,e){typeof t=="string"&&(t={path:t,caseSensitive:!1,end:!0});let[n,r]=YF(t.path,t.caseSensitive,t.end),i=e.match(n);if(!i)return null;let o=i[0],s=o.replace(/(.)\/+$/,"$1"),u=i.slice(1);return{params:r.reduce((f,{paramName:p,isOptional:y},v)=>{if(p==="*"){let w=u[v]||"";s=o.slice(0,o.length-w.length).replace(/(.)\/+$/,"$1")}const x=u[v];return y&&!x?f[p]=void 0:f[p]=(x||"").replace(/%2F/g,"/"),f},{}),pathname:o,pathnameBase:s,pattern:t}}function YF(t,e=!1,n=!0){Cr(t==="*"||!t.endsWith("*")||t.endsWith("/*"),`Route path "${t}" will be treated as if it were "${t.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${t.replace(/\*$/,"/*")}".`);let r=[],i="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,u,c)=>(r.push({paramName:u,isOptional:c!=null}),c?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return t.endsWith("*")?(r.push({paramName:"*"}),i+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":t!==""&&t!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,e?void 0:"i"),r]}function WF(t){try{return t.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(e){return Cr(!1,`The URL path "${t}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${e}).`),t}}function oi(t,e){if(e==="/")return t;if(!t.toLowerCase().startsWith(e.toLowerCase()))return null;let n=e.endsWith("/")?e.length-1:e.length,r=t.charAt(n);return r&&r!=="/"?null:t.slice(n)||"/"}function XF(t,e="/"){let{pathname:n,search:r="",hash:i=""}=typeof t=="string"?Fs(t):t;return{pathname:n?n.startsWith("/")?n:JF(n,e):e,search:e6(r),hash:t6(i)}}function JF(t,e){let n=e.replace(/\/+$/,"").split("/");return t.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function ay(t,e,n,r){return`Cannot include a '${t}' character in a manually specified \`to.${e}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function ZF(t){return t.filter((e,n)=>n===0||e.route.path&&e.route.path.length>0)}function jL(t){let e=ZF(t);return e.map((n,r)=>r===e.length-1?n.pathname:n.pathnameBase)}function FL(t,e,n,r=!1){let i;typeof t=="string"?i=Fs(t):(i={...t},mt(!i.pathname||!i.pathname.includes("?"),ay("?","pathname","search",i)),mt(!i.pathname||!i.pathname.includes("#"),ay("#","pathname","hash",i)),mt(!i.search||!i.search.includes("#"),ay("#","search","hash",i)));let o=t===""||i.pathname==="",s=o?"/":i.pathname,u;if(s==null)u=n;else{let y=e.length-1;if(!r&&s.startsWith("..")){let v=s.split("/");for(;v[0]==="..";)v.shift(),y-=1;i.pathname=v.join("/")}u=y>=0?e[y]:"/"}let c=XF(i,u),f=s&&s!=="/"&&s.endsWith("/"),p=(o||s===".")&&n.endsWith("/");return!c.pathname.endsWith("/")&&(f||p)&&(c.pathname+="/"),c}var ni=t=>t.join("/").replace(/\/\/+/g,"/"),QF=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),e6=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,t6=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t;function n6(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.internal=="boolean"&&"data"in t}var HL=["POST","PUT","PATCH","DELETE"];new Set(HL);var r6=["GET",...HL];new Set(r6);var Hs=k.createContext(null);Hs.displayName="DataRouter";var Gh=k.createContext(null);Gh.displayName="DataRouterState";k.createContext(!1);var GL=k.createContext({isTransitioning:!1});GL.displayName="ViewTransition";var i6=k.createContext(new Map);i6.displayName="Fetchers";var o6=k.createContext(null);o6.displayName="Await";var Pr=k.createContext(null);Pr.displayName="Navigation";var _c=k.createContext(null);_c.displayName="Location";var Rr=k.createContext({outlet:null,matches:[],isDataRoute:!1});Rr.displayName="Route";var GS=k.createContext(null);GS.displayName="RouteError";function a6(t,{relative:e}={}){mt(Cc(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=k.useContext(Pr),{hash:i,pathname:o,search:s}=Ec(t,{relative:e}),u=o;return n!=="/"&&(u=o==="/"?n:ni([n,o])),r.createHref({pathname:u,search:s,hash:i})}function Cc(){return k.useContext(_c)!=null}function Qi(){return mt(Cc(),"useLocation() may be used only in the context of a <Router> component."),k.useContext(_c).location}var zL="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function KL(t){k.useContext(Pr).static||k.useLayoutEffect(t)}function s6(){let{isDataRoute:t}=k.useContext(Rr);return t?x6():l6()}function l6(){mt(Cc(),"useNavigate() may be used only in the context of a <Router> component.");let t=k.useContext(Hs),{basename:e,navigator:n}=k.useContext(Pr),{matches:r}=k.useContext(Rr),{pathname:i}=Qi(),o=JSON.stringify(jL(r)),s=k.useRef(!1);return KL(()=>{s.current=!0}),k.useCallback((c,f={})=>
58{if(Cr(s.current,zL),!s.current)return;if(typeof c=="number"){n.go(c);return}let p=FL(c,JSON.parse(o),i,f.relative==="path");t==null&&e!=="/"&&(p.pathname=p.pathname==="/"?e:ni([e,p.pathname])),(f.replace?n.replace:n.push)(p,f.state,f)},[e,n,o,i,t])}k.createContext(null);function zh(){let{matches:t}=k.useContext(Rr),e=t[t.length-1];return e?e.params:{}}function Ec(t,{relative:e}={}){let{matches:n}=k.useContext(Rr),{pathname:r}=Qi(),i=JSON.stringify(jL(n));return k.useMemo(()=>FL(t,JSON.parse(i),r,e==="path"),[t,i,r,e])}function u6(t,e){return YL(t,e)}function YL(t,e,n,r,i){var P;mt(Cc(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:o}=k.useContext(Pr),{matches:s}=k.useContext(Rr),u=s[s.length-1],c=u?u.params:{},f=u?u.pathname:"/",p=u?u.pathnameBase:"/",y=u&&u.route;{let M=y&&y.path||"";WL(f,!y||M.endsWith("*")||M.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${f}" (under <Route path="${M}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render. 59 60Please change the parent <Route path="${M}"> to <Route path="${M==="/"?"*":`${M}/*`}">.`)}let v=Qi(),x;if(e){let M=typeof e=="string"?Fs(e):e;mt(p==="/"||((P=M.pathname)==null?void 0:P.startsWith(p)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${p}" but pathname "${M.pathname}" was given in the \`location\` prop.`),x=M}else x=v;let w=x.pathname||"/",A=w;if(p!=="/"){let M=p.replace(/^\//,"").split("/");A="/"+w.replace(/^\//,"").split("/").slice(M.length).join("/")}let S=BL(t,{pathname:A});Cr(y||S!=null,`No routes matched location "${x.pathname}${x.search}${x.hash}" `),Cr(S==null||S[S.length-1].route.element!==void 0||S[S.length-1].route.Component!==void 0||S[S.length-1].route.lazy!==void 0,`Matched leaf route at location "${x.pathname}${x.search}${x.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let C=p6(S&&S.map(M=>Object.assign({},M,{params:Object.assign({},c,M.params),pathname:ni([p,o.encodeLocation?o.encodeLocation(M.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:M.pathname]),pathnameBase:M.pathnameBase==="/"?p:ni([p,o.encodeLocation?o.encodeLocation(M.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:M.pathnameBase])})),s,n,r,i);return e&&C?k.createElement(_c.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...x},navigationType:"POP"}},C):C}function c6(){let t=b6(),e=n6(t)?`${t.status} ${t.statusText}`:t instanceof Error?t.message:JSON.stringify(t),n=t instanceof Error?t.stack:null,r="rgba(200,200,200, 0.5)",i={padding:"0.5rem",backgroundColor:r},o={padding:"2px 4px",backgroundColor:r},s=null;return console.error("Error handled by React Router default ErrorBoundary:",t),s=k.createElement(k.Fragment,null,k.createElement("p",null,"ð¿ Hey developer ð"),k.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",k.createElement("code",{style:o},"ErrorBoundary")," or"," ",k.createElement("code",{style:o},"errorElement")," prop on your route.")),k.createElement(k.Fragment,null,k.createElement("h2",null,"Unexpected Application Error!"),k.createElement("h3",{style:{fontStyle:"italic"}},e),n?k.createElement("pre",{style:i},n):null,s)}var f6=k.createElement(c6,null),d6=class extends k.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,e){return e.location!==t.location||e.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:e.error,location:e.location,revalidation:t.revalidation||e.revalidation}}componentDidCatch(t,e){this.props.unstable_onError?this.props.unstable_onError(t,e):console.error("React Router caught the following error during render",t)}render(){return this.state.error!==void 0?k.createElement(Rr.Provider,{value:this.props.routeContext},k.createElement(GS.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function h6({routeContext:t,match:e,children:n}){let r=k.useContext(Hs);return r&&r.static&&r.staticContext&&(e.route.errorElement||e.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=e.route.id),k.createElement(Rr.Provider,{value:t},n)}function p6(t,e=[],n=null,r=null,i=null){if(t==null){if(!n)return null;if(n.errors)t=n.matches;else if(e.length===0&&!n.initialized&&n.matches.length>0)t=n.matches;else return null}let o=t,s=n==null?void 0:n.errors;if(s!=null){let f=o.findIndex(p=>p.route.id&&(s==null?void 0:s[p.route.id])!==void 0);mt(f>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(s).join(",")}`),o=o.slice(0,Math.min(o.length,f+1))}
60let u=!1,c=-1;if(n)for(let f=0;f<o.length;f++){let p=o[f];if((p.route.HydrateFallback||p.route.hydrateFallbackElement)&&(c=f),p.route.id){let{loaderData:y,errors:v}=n,x=p.route.loader&&!y.hasOwnProperty(p.route.id)&&(!v||v[p.route.id]===void 0);if(p.route.lazy||x){u=!0,c>=0?o=o.slice(0,c+1):o=[o[0]];break}}}return o.reduceRight((f,p,y)=>{let v,x=!1,w=null,A=null;n&&(v=s&&p.route.id?s[p.route.id]:void 0,w=p.route.errorElement||f6,u&&(c<0&&y===0?(WL("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),x=!0,A=null):c===y&&(x=!0,A=p.route.hydrateFallbackElement||null)));let S=e.concat(o.slice(0,y+1)),C=()=>{let P;return v?P=w:x?P=A:p.route.Component?P=k.createElement(p.route.Component,null):p.route.element?P=p.route.element:P=f,k.createElement(h6,{match:p,routeContext:{outlet:f,matches:S,isDataRoute:n!=null},children:P})};return n&&(p.route.ErrorBoundary||p.route.errorElement||y===0)?k.createElement(d6,{location:n.location,revalidation:n.revalidation,component:w,error:v,children:C(),routeContext:{outlet:null,matches:S,isDataRoute:!0},unstable_onError:r}):C()},null)}function zS(t){return`${t} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function m6(t){let e=k.useContext(Hs);return mt(e,zS(t)),e}function g6(t){let e=k.useContext(Gh);return mt(e,zS(t)),e}function y6(t){let e=k.useContext(Rr);return mt(e,zS(t)),e}function KS(t){let e=y6(t),n=e.matches[e.matches.length-1];return mt(n.route.id,`${t} can only be used on routes that contain a unique "id"`),n.route.id}function v6(){return KS("useRouteId")}function b6(){var r;let t=k.useContext(GS),e=g6("useRouteError"),n=KS("useRouteError");return t!==void 0?t:(r=e.errors)==null?void 0:r[n]}function x6(){let{router:t}=m6("useNavigate"),e=KS("useNavigate"),n=k.useRef(!1);return KL(()=>{n.current=!0}),k.useCallback(async(i,o={})=>{Cr(n.current,zL),n.current&&(typeof i=="number"?t.navigate(i):await t.navigate(i,{fromRouteId:e,...o}))},[t,e])}var GE={};function WL(t,e,n){!e&&!GE[t]&&(GE[t]=!0,Cr(!1,n))}k.memo(T6);function T6({routes:t,future:e,state:n,unstable_onError:r}){return YL(t,void 0,n,r,e)}function Kt(t){mt(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function S6({basename:t="/",children:e=null,location:n,navigationType:r="POP",navigator:i,static:o=!1}){mt(!Cc(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let s=t.replace(/^\/*/,"/"),u=k.useMemo(()=>({basename:s,navigator:i,static:o,future:{}}),[s,i,o]);typeof n=="string"&&(n=Fs(n));let{pathname:c="/",search:f="",hash:p="",state:y=null,key:v="default"}=n,x=k.useMemo(()=>{let w=oi(c,s);return w==null?null:{location:{pathname:w,search:f,hash:p,state:y,key:v},navigationType:r}},[s,c,f,p,y,v,r]);return Cr(x!=null,`<Router basename="${s}"> is not able to match the URL "${c}${f}${p}" because it does not start with the basename, so the <Router> won't render anything.`),x==null?null:k.createElement(Pr.Provider,{value:u},k.createElement(_c.Provider,{children:e,value:x}))}function A6({children:t,location:e}){return u6(qx(t),e)}function qx(t,e=[]){let n=[];return k.Children.forEach(t,(r,i)=>{if(!k.isValidElement(r))return;let o=[...e,i];if(r.type===k.Fragment){n.push.apply(n,qx(r.props.children,o));return}mt(r.type===Kt,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),mt(!r.props.index||!r.props.children,"An index route cannot have child routes.");let s={id:r.props.id||o.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,middleware:r.props.middleware,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,
60shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(s.children=qx(r.props.children,o)),n.push(s)}),n}var _d="get",Cd="application/x-www-form-urlencoded";function Kh(t){return t!=null&&typeof t.tagName=="string"}function w6(t){return Kh(t)&&t.tagName.toLowerCase()==="button"}function _6(t){return Kh(t)&&t.tagName.toLowerCase()==="form"}function C6(t){return Kh(t)&&t.tagName.toLowerCase()==="input"}function E6(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function M6(t,e){return t.button===0&&(!e||e==="_self")&&!E6(t)}var id=null;function P6(){if(id===null)try{new FormData(document.createElement("form"),0),id=!1}catch{id=!0}return id}var R6=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function sy(t){return t!=null&&!R6.has(t)?(Cr(!1,`"${t}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Cd}"`),null):t}function N6(t,e){let n,r,i,o,s;if(_6(t)){let u=t.getAttribute("action");r=u?oi(u,e):null,n=t.getAttribute("method")||_d,i=sy(t.getAttribute("enctype"))||Cd,o=new FormData(t)}else if(w6(t)||C6(t)&&(t.type==="submit"||t.type==="image")){let u=t.form;if(u==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let c=t.getAttribute("formaction")||u.getAttribute("action");if(r=c?oi(c,e):null,n=t.getAttribute("formmethod")||u.getAttribute("method")||_d,i=sy(t.getAttribute("formenctype"))||sy(u.getAttribute("enctype"))||Cd,o=new FormData(u,t),!P6()){let{name:f,type:p,value:y}=t;if(p==="image"){let v=f?`${f}.`:"";o.append(`${v}x`,"0"),o.append(`${v}y`,"0")}else f&&o.append(f,y)}}else{if(Kh(t))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=_d,r=null,i=Cd,s=t}return o&&i==="text/plain"&&(s=o,o=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:o,body:s}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function YS(t,e){if(t===!1||t===null||typeof t>"u")throw new Error(e)}function O6(t,e,n){let r=typeof t=="string"?new URL(t,typeof window>"u"?"server://singlefetch/":window.location.origin):t;return r.pathname==="/"?r.pathname=`_root.${n}`:e&&oi(r.pathname,e)==="/"?r.pathname=`${e.replace(/\/$/,"")}/_root.${n}`:r.pathname=`${r.pathname.replace(/\/$/,"")}.${n}`,r}async function D6(t,e){if(t.id in e)return e[t.id];try{let n=await import(t.module);return e[t.id]=n,n}catch(n){return console.error(`Error loading route module \`${t.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function I6(t){return t==null?!1:t.href==null?t.rel==="preload"&&typeof t.imageSrcSet=="string"&&typeof t.imageSizes=="string":typeof t.rel=="string"&&typeof t.href=="string"}async function k6(t,e,n){let r=await Promise.all(t.map(async i=>{let o=e.routes[i.route.id];if(o){let s=await D6(o,n);return s.links?s.links():[]}return[]}));return B6(r.flat(1).filter(I6).filter(i=>i.rel==="stylesheet"||i.rel==="preload").map(i=>i.rel==="stylesheet"?{...i,rel:"prefetch",as:"style"}:{...i,rel:"prefetch"}))}function zE(t,e,n,r,i,o){let s=(c,f)=>n[f]?c.route.id!==n[f].route.id:!0,u=(c,f)=>{var p;return n[f].pathname!==c.pathname||((p=n[f].route.path)==null?void 0:p.endsWith("*"))&&n[f].params["*"]!==c.params["*"]};return o==="assets"?e.filter((c,f)=>s(c,f)||u(c,f)):o==="data"?e.filter((c,f)=>{var y;let p=r.routes[c.route.id];if(!p||!p.hasLoader)return!1;if(s(c,f)||u(c,f))return!0;if(c.route.shouldRevalidate){let v=c.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:((y=n[0])==null?void 0:y.params)||{},nextUrl:new URL(t,window.origin),nextParams:c.params,defaultShouldRevalidate:!0});if(typeof v=="boolean")return v}return!0}):[]}function L6(t,e,{includeHydrateFallback:n}={}){return U6(t.map(r=>{let i=e.routes[r.route.id];if(!i)return[];let o=[i.module];return i.clientActionModule&&(o=o.concat(i.clientActionModule)),i.clientLoaderModule&&(o=o.concat(i.clientLoaderModule)),n&&i.hydrateFallbackModule&&(o=o.concat(i.hydrateFallbackModule)),i.imports&&(o=o.c
60oncat(i.imports)),o}).flat(1))}function U6(t){return[...new Set(t)]}function q6(t){let e={},n=Object.keys(t).sort();for(let r of n)e[r]=t[r];return e}function B6(t,e){let n=new Set;return new Set(e),t.reduce((r,i)=>{let o=JSON.stringify(q6(i));return n.has(o)||(n.add(o),r.push({key:o,link:i})),r},[])}function XL(){let t=k.useContext(Hs);return YS(t,"You must render this element inside a <DataRouterContext.Provider> element"),t}function $6(){let t=k.useContext(Gh);return YS(t,"You must render this element inside a <DataRouterStateContext.Provider> element"),t}var WS=k.createContext(void 0);WS.displayName="FrameworkContext";function JL(){let t=k.useContext(WS);return YS(t,"You must render this element inside a <HydratedRouter> element"),t}function V6(t,e){let n=k.useContext(WS),[r,i]=k.useState(!1),[o,s]=k.useState(!1),{onFocus:u,onBlur:c,onMouseEnter:f,onMouseLeave:p,onTouchStart:y}=e,v=k.useRef(null);k.useEffect(()=>{if(t==="render"&&s(!0),t==="viewport"){let A=C=>{C.forEach(P=>{s(P.isIntersecting)})},S=new IntersectionObserver(A,{threshold:.5});return v.current&&S.observe(v.current),()=>{S.disconnect()}}},[t]),k.useEffect(()=>{if(r){let A=setTimeout(()=>{s(!0)},100);return()=>{clearTimeout(A)}}},[r]);let x=()=>{i(!0)},w=()=>{i(!1),s(!1)};return n?t!=="intent"?[o,v,{}]:[o,v,{onFocus:au(u,x),onBlur:au(c,w),onMouseEnter:au(f,x),onMouseLeave:au(p,w),onTouchStart:au(y,x)}]:[!1,v,{}]}function au(t,e){return n=>{t&&t(n),n.defaultPrevented||e(n)}}function j6({page:t,...e}){let{router:n}=XL(),r=k.useMemo(()=>BL(n.routes,t,n.basename),[n.routes,t,n.basename]);return r?k.createElement(H6,{page:t,matches:r,...e}):null}function F6(t){let{manifest:e,routeModules:n}=JL(),[r,i]=k.useState([]);return k.useEffect(()=>{let o=!1;return k6(t,e,n).then(s=>{o||i(s)}),()=>{o=!0}},[t,e,n]),r}function H6({page:t,matches:e,...n}){let r=Qi(),{manifest:i,routeModules:o}=JL(),{basename:s}=XL(),{loaderData:u,matches:c}=$6(),f=k.useMemo(()=>zE(t,e,c,i,r,"data"),[t,e,c,i,r]),p=k.useMemo(()=>zE(t,e,c,i,r,"assets"),[t,e,c,i,r]),y=k.useMemo(()=>{if(t===r.pathname+r.search+r.hash)return[];let w=new Set,A=!1;if(e.forEach(C=>{var M;let P=i.routes[C.route.id];!P||!P.hasLoader||(!f.some(O=>O.route.id===C.route.id)&&C.route.id in u&&((M=o[C.route.id])!=null&&M.shouldRevalidate)||P.hasClientLoader?A=!0:w.add(C.route.id))}),w.size===0)return[];let S=O6(t,s,"data");return A&&w.size>0&&S.searchParams.set("_routes",e.filter(C=>w.has(C.route.id)).map(C=>C.route.id).join(",")),[S.pathname+S.search]},[s,u,r,i,f,e,t,o]),v=k.useMemo(()=>L6(p,i),[p,i]),x=F6(p);return k.createElement(k.Fragment,null,y.map(w=>k.createElement("link",{key:w,rel:"prefetch",as:"fetch",href:w,...n})),v.map(w=>k.createElement("link",{key:w,rel:"modulepreload",href:w,...n})),x.map(({key:w,link:A})=>k.createElement("link",{key:w,nonce:n.nonce,...A})))}function G6(...t){return e=>{t.forEach(n=>{typeof n=="function"?n(e):n!=null&&(n.current=e)})}}var ZL=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{ZL&&(window.__reactRouterVersion="7.9.3")}catch{}function z6({basename:t,children:e,window:n}){let r=k.useRef();r.current==null&&(r.current=DF({window:n,v5Compat:!0}));let i=r.current,[o,s]=k.useState({action:i.action,location:i.location}),u=k.useCallback(c=>{k.startTransition(()=>s(c))},[s]);return k.useLayoutEffect(()=>i.listen(u),[i,u]),k.createElement(S6,{basename:t,children:e,location:o.location,navigationType:o.action,navigator:i})}var QL=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Pe=k.forwardRef(function({onClick:e,discover:n="render",prefetch:r="none",relative:i,reloadDocument:o,replace:s,state:u,target:c,to:f,preventScrollReset:p,viewTransition:y,...v},x){let{basename:w}=k.useContext(Pr),A=typeof f=="string"&&QL.test(f),S,C=!1;if(typeof f=="string"&&A&&(S=f,ZL))try{let U=new URL(window.location.href),F=f.startsWith("//")?new URL(U.protocol+f):new URL(f),B=oi(F.pathname,w);F.origin===U.origin&&B!=null?f=B+F.search+F.hash:C=!0}catch{Cr(!1,`<Link to="${f}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let P=a6(f,{relative:i}),[M,O,E]=V6(r,v),N=W6(f,{replace:s,state:u,target:c,preventScrollReset:p,relative:i,viewTransition:y});function D(U){e&&e(U),U.defaultPrevented||N(U)}let L=k.createElement("a",{...v,...E,href:S||P,onClick:C||o?e:D,ref:G6(x,O),target:c,"data-discover":!A&&n==="render"?"true":void 0});return M&&!A?k.createElement(k.Fragment,null,L,k.createElement(j6,{page:P})):L});Pe.displayName="Link";var xu=k.forwardRef(function({"aria-current":e="page",caseSensitive:n=!1,className:r="",end:i=!1,style:o,to:s,viewTransition:u,children:c,...f},p){let y=Ec(s,{relative:f.relative}),v=Qi(),x=k.useContext(Gh),{navigator:w,basename:A}=k.useContext(Pr),S=x!=null&&eH(y)&&u===!0,C=w.encodeLocation?w.encodeLocation(y).pathname:y.pathname,P=v.pathname,M=x&&x.navigation&&x.navigation.location?x.navigation.location.pathname:null;n||(P=P.toLowerCase(),M=M?M.toLowerCase():null,C=C.toLowerCase()),M&&A&&(M=oi(M,A)||M);const O=C!=="/"&&C.endsWith("/")?C.length-1:C.length;let E=P===C||!i&&P.startsWith(C)&&P.charAt(O)==="/",N=M!=null&&(M===C||!i&&M.startsWith(C)&&M.charAt(C.length)==="/"),D={isActive:E,isPending:N,isTransitioning:S},L=E?e:void 0,U;typeof r=="function"?U=r(D):U=[r,E?"active":null,N?"pending":null,S?"transitioning":null].filter(
60Boolean).join(" ");let F=typeof o=="function"?o(D):o;return k.createElement(Pe,{...f,"aria-current":L,className:U,ref:p,style:F,to:s,viewTransition:u},typeof c=="function"?c(D):c)});xu.displayName="NavLink";var K6=k.forwardRef(({discover:t="render",fetcherKey:e,navigate:n,reloadDocument:r,replace:i,state:o,method:s=_d,action:u,onSubmit:c,relative:f,preventScrollReset:p,viewTransition:y,...v},x)=>{let w=Z6(),A=Q6(u,{relative:f}),S=s.toLowerCase()==="get"?"get":"post",C=typeof u=="string"&&QL.test(u),P=M=>{if(c&&c(M),M.defaultPrevented)return;M.preventDefault();let O=M.nativeEvent.submitter,E=(O==null?void 0:O.getAttribute("formmethod"))||s;w(O||M.currentTarget,{fetcherKey:e,method:E,navigate:n,replace:i,state:o,relative:f,preventScrollReset:p,viewTransition:y})};return k.createElement("form",{ref:x,method:S,action:A,onSubmit:r?c:P,...v,"data-discover":!C&&t==="render"?"true":void 0})});K6.displayName="Form";function Y6(t){return`${t} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function eU(t){let e=k.useContext(Hs);return mt(e,Y6(t)),e}function W6(t,{target:e,replace:n,state:r,preventScrollReset:i,relative:o,viewTransition:s}={}){let u=s6(),c=Qi(),f=Ec(t,{relative:o});return k.useCallback(p=>{if(M6(p,e)){p.preventDefault();let y=n!==void 0?n:Uu(c)===Uu(f);u(t,{replace:y,state:r,preventScrollReset:i,relative:o,viewTransition:s})}},[c,u,f,n,r,e,t,i,o,s])}var X6=0,J6=()=>`__${String(++X6)}__`;function Z6(){let{router:t}=eU("useSubmit"),{basename:e}=k.useContext(Pr),n=v6();return k.useCallback(async(r,i={})=>{let{action:o,method:s,encType:u,formData:c,body:f}=N6(r,e);if(i.navigate===!1){let p=i.fetcherKey||J6();await t.fetch(p,n,i.action||o,{preventScrollReset:i.preventScrollReset,formData:c,body:f,formMethod:i.method||s,formEncType:i.encType||u,flushSync:i.flushSync})}else await t.navigate(i.action||o,{preventScrollReset:i.preventScrollReset,formData:c,body:f,formMethod:i.method||s,formEncType:i.encType||u,replace:i.replace,state:i.state,fromRouteId:n,flushSync:i.flushSync,viewTransition:i.viewTransition})},[t,e,n])}function Q6(t,{relative:e}={}){let{basename:n}=k.useContext(Pr),r=k.useContext(Rr);mt(r,"useFormAction must be used inside a RouteContext");let[i]=r.matches.slice(-1),o={...Ec(t||".",{relative:e})},s=Qi();if(t==null){o.search=s.search;let u=new URLSearchParams(o.search),c=u.getAll("index");if(c.some(p=>p==="")){u.delete("index"),c.filter(y=>y).forEach(y=>u.append("index",y));let p=u.toString();o.search=p?`?${p}`:""}}return(!t||t===".")&&i.route.index&&(o.search=o.search?o.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(o.pathname=o.pathname==="/"?n:ni([n,o.pathname])),Uu(o)}function eH(t,{relative:e}={}){let n=k.useContext(GL);mt(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=eU("useViewTransitionState"),i=Ec(t,{relative:e});if(!n.isTransitioning)return!1;let o=oi(n.currentLocation.pathname,r)||n.currentLocation.pathname,s=oi(n.nextLocation.pathname,r)||n.nextLocation.pathname;return qd(i.pathname,s)!=null||qd(i.pathname,o)!=null}const KE=[{name:"About",href:"/about"},{name:"Conference",href:"https://conference.indabaxug.com/"},{name:"Our Work",children:[{name:"Research Projects",href:"/research"},{name:"Publications",href:"/publications"},{name:"Datasets",href:"/datasets"},{name:"Models",href:"/models"}]},{name:"Community",children:[{name:"Our Team",href:"/people"},{name:"Events",href:"/events"},{name:"Partners",href:"/partners"}]},{name:"Our Blog",href:"/blog"}],YE=({open:t,className:e})=>_.jsx("svg",{className:`${e} transition-transform duration-300 ease-in-out ${t?"rotate-180":"rotate-0"}`,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:_.jsx("path",{fillRule:"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z",clipRule:"evenodd"})}),tH=()=>{const[t,e]=k.useState(!1),[n,r]=k.useState(null),i=Qi(),o=f=>`py-2 px-3 rounded-md text-sm font-medium transition-colors duration-200 61 ${f?"bg-teal-900 text-white":"text-gray-300 hover:text-white hover:bg-teal-800"}`,s=f=>
61`block py-3 px-4 rounded-md text-lg font-medium transition-colors duration-200 62 ${f?"bg-brand-primary text-white":"text-gray-300 hover:text-white hover:bg-teal-800"}`,u=()=>{e(!t),r(null)},c=f=>{r(n===f?null:f)};return _.jsxs("header",{className:"bg-brand-primary/90 backdrop-blur-sm text-white sticky top-0 z-50 shadow-lg",children:[_.jsx("nav",{className:"container mx-auto px-4 sm:px-6 lg:px-8",children:_.jsxs("div",{className:"flex items-center justify-between",children:[_.jsx(Pe,{to:"/",className:"font-serif text-2xl font-bold text-white",children:_.jsx("img",{src:"/assets/images/wlogo.png",alt:"",style:{width:"150px"},className:"p-4"})}),_.jsx("div",{className:"hidden lg:flex items-center space-x-4",children:KE.map(f=>f.children?_.jsxs("div",{className:"relative group",children:[_.jsxs("button",{className:`${o(f.children.some(p=>i.pathname===p.href||i.pathname.startsWith(`${p.href}/`)))} inline-flex items-center gap-1`,children:[f.name,_.jsx(YE,{className:"h-5 w-5 text-gray-300 group-hover:text-white"})]}),_.jsx("div",{className:`absolute left-0 mt-2 w-56 origin-top-left rounded-md shadow-lg\r 63 bg-white ring-1 ring-black ring-opacity-5 focus:outline-none\r 64 transform scale-95 opacity-0 transition-all duration-200 ease-out\r 65 group-hover:scale-100 group-hover:opacity-100 z-20`,children:_.jsx("div",{className:"py-1",role:"menu","aria-orientation":"vertical",children:f.children.map(p=>_.jsx(xu,{to:p.href,className:({isActive:y})=>`block px-4 py-2 text-sm ${y?"bg-gray-100 text-gray-900":"text-gray-700"} hover:bg-gray-100 hover:text-gray-900`,children:p.name},p.name))})})]},f.name):_.jsx(xu,{to:f.href,className:({isActive:p})=>o(p),children:f.name},f.name))}),_.jsx("div",{className:"hidden lg:block",children:_.jsx(Pe,{to:"/partners",className:`bg-brand-accent hover:bg-yellow-500 text-brand-primary font-bold py-2 px-4 rounded-md\r 66 transition duration-300 ease-in-out transform hover:scale-105`,children:"Partner with us"})}),_.jsx("div",{className:"-mr-2 flex lg:hidden",children:_.jsxs("button",{onClick:u,type:"button",className:`bg-teal-800 inline-flex items-center justify-center p-2 rounded-md text-gray-400\r 67 hover:text-white hover:bg-teal-700 focus:outline-none focus:ring-2\r 68 focus:ring-offset-2 focus:ring-offset-gray-800 focus:ring-white`,"aria-controls":"mobile-menu","aria-expanded":t,children:[_.jsx("span",{className:"sr-only",children:"Open main menu"}),t?_.jsx("svg",{className:"h-6 w-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:_.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})}):_.jsxs("svg",{className:"block h-6 w-6",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true",children:[" ",_.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M4 6h16M4 12h16m-4 6h10"})," "]})]})})]})}),t&&_.jsx("div",{className:"lg:hidden",id:"mobile-menu",children:_.jsxs("div",{className:"px-2 pt-2 pb-4 space-y-2 sm:px-4",children:[KE.map(f=>f.children?_.jsxs("div",{children:[_.jsxs("button",{onClick:()=>c(f.name),className:`w-full flex justify-between items-center py-3 px-4 rounded-md text-lg\r 69 font-medium text-gray-300 hover:bg-teal-800 hover:text-white`,children:[_.jsx("span",{children:f.name}),_.jsx(YE,{open:n===f.name,className:"h-5 w-5"})]}),n===f.name&&_.jsx("div",{className:"pl-6 mt-1 space-y-1 animate-[fadeIn_0.3s_ease-out]",children:f.children.map(p=>_.jsx(xu,{to:p.href,onClick:u,className:({isActive:y})=>s(y),children:p.name},p.name))})]},f.name):_.jsx(xu,{to:f.href,onClick:u,className:({isActive:p})=>s(p),children:f.name},f.name)),_.jsx("div",{className:"border-t border-gray-700 my-2"}),_.jsx(Pe,{to:"/join",onClick:u,className:`block w-full text-center bg-brand-accent hover:bg-yellow-500\r 70 text-brand-primary font-bold py-3 px-4 rounded-md transition duration-300\r 71 ease-in-out mt-2`,children:"Join Us"})]})})]})},Yh=()=>_.jsx("svg",{className:"w-6 h-6",fill:"currentColor",viewBox:"0 0 24 24","aria-hidden":"true",children:_.jsx("path",{fillRule:"evenodd",d:"M12 2C6.477 2 2 6.477 2 12c0 4.418 2.865 8.168 6.839 9.49.5.092.682-.217.682-.482 0-.237-.009-.868-.014-1.703-2.782.605-3.369-1.343-3.369-1.343-.454-1.158
71-1.11-1.466-1.11-1.466-.908-.62.069-.608.069-.608 1.003.07 1.531 1.032 1.531 1.032.892 1.53 2.341 1.088 2.91.832.092-.647.35-1.088.636-1.338-2.22-.253-4.555-1.113-4.555-4.951 0-1.093.39-1.988 1.031-2.688-.103-.253-.446-1.272.098-2.65 0 0 .84-.27 2.75 1.026A9.564 9.564 0 0112 6.844c.85.004 1.705.115 2.504.337 1.909-1.296 2.747-1.027 2.747-1.027.546 1.379.203 2.398.1 2.651.64.7 1.03 1.595 1.03 2.688 0 3.848-2.338 4.695-4.566 4.943.359.309.678.92.678 1.855 0 1.338-.012 2.419-.012 2.747 0 .268.18.58.688.482A10.001 10.001 0 0022 12c0-5.523-4.477-10-10-10z",clipRule:"evenodd"})}),tU=()=>_.jsx("svg",{className:"w-6 h-6",fill:"currentColor",viewBox:"0 0 24 24","aria-hidden":"true",children:_.jsx("path",{d:"M8.29 20.251c7.547 0 11.675-6.253 11.675-11.675 0-.178 0-.355-.012-.53A8.348 8.348 0 0022 5.92a8.19 8.19 0 01-2.357.646 4.118 4.118 0 001.804-2.27 8.224 8.224 0 01-2.605.996 4.107 4.107 0 00-6.993 3.743 11.65 11.65 0 01-8.457-4.287 4.106 4.106 0 001.27 5.477A4.072 4.072 0 012.8 9.71v.052a4.105 4.105 0 003.292 4.022 4.095 4.095 0 01-1.853.07 4.108 4.108 0 003.834 2.85A8.233 8.233 0 012 18.407a11.616 11.616 0 006.29 1.84"})}),XS=()=>_.jsx("svg",{className:"w-6 h-6",fill:"currentColor",viewBox:"0 0 256 256","aria-hidden":"true",children:_.jsx("path",{d:"M128 25.093c-56.772 0-102.907 46.135-102.907 102.907S71.228 230.907 128 230.907 230.907 184.772 230.907 128 184.772 25.093 128 25.093zM103.352 201.6H86.02V88.852h17.332V201.6zm-8.66-121.907c-9.56 0-17.312-7.752-17.312-17.31s7.752-17.31 17.312-17.31 17.31 7.75 17.31 17.31-7.75 17.31-17.31 17.31zm63.22 121.907h-17.332V144.02c0-14.47-5.188-24.36-18.06-24.36-9.876 0-15.752 6.687-18.252 13.14-1 2.313-.812 5.5-1.125 7.688v61.12H86.02s.2-102 0-112.748h17.333v14.938h-.187c4.688-7.126 12.938-17.5 31.42-17.5 22.952 0 40.125 15 40.125 47.11V201.6z"})}),nH=()=>_.jsx("svg",{className:"w-6 h-6",fill:"none",stroke:"currentColor",strokeWidth:2,viewBox:"0 0 24 24","aria-hidden":"true",children:_.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:`M4 12v7a1 1 0 001 1h14a1 1 0 001-1v-7\r 72 M16 6l-4-4m0 0L8 6m4-4v12`})}),rH=()=>_.jsx("svg",{className:"w-6 h-6",fill:"currentColor",viewBox:"0 0 24 24","aria-hidden":"true",children:_.jsx("path",{d:"M16 8a6 6 0 016 6v7h-4v-7a2 2 0 00-4 0v7h-4v-7a6 6 0 016-6zM2 9h4v12H2zM4 3a2 2 0 110 4 2 2 0 010-4z"})}),iH=()=>_.jsx("svg",{className:"w-6 h-6",fill:"currentColor",viewBox:"0 0 24 24","aria-hidden":"true",children:_.jsx("path",{fillRule:"evenodd",d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm0 18a8 8 0 100-16 8 8 0 000 16zm0-14a6 6 0 00-6 6h12a6 6 0 00-6-6zm-6.93 7a7.963 7.963 0 01.93-3h12a7.963 7.963 0 01.93 3H5.07zM12 20a7.963 7.963 0 01-3-.93v-2.14a15.926 15.926 0 006 0v2.14c-1 .37-2 .57-3 .57zm3-4a15.926 15.926 0 01-6 0v-2.14a15.926 15.926 0 006 0V16z",clipRule:"evenodd"})}),oH=()=>_.jsx("footer",{className:"bg-brand-text text-white",children:_.jsxs("div",{className:"container mx-auto py-12 px-4 sm:px-6 lg:px-8",children:[_.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 lg:grid-cols-5 gap-8",children:[_.jsxs("div",{className:"col-span-2 lg:col-span-1",children:[_.jsxs("h3",{className:"font-serif text-xl font-bold text-white",children:["Indaba",_.jsx("span",{className:"text-brand-accent",children:"ð"}),"Ug AI Lab"]}),_.jsx("p",{className:"mt-2 text-sm text-gray-400",children:"Driving AI innovation in Uganda for local challenges."}),_.jsxs("div",{className:"flex space-x-4 mt-4",children:[_.jsx("a",{href:"#",className:"text-gray-400 hover:text-white",children:_.jsx(tU,{})}),_.jsx("a",{href:"#",className:"text-gray-400 hover:text-white",children:_.jsx(Yh,{})}),_.jsx("a",{href:"#",className:"text-gray-400 hover:text-white",children:_.jsx(XS,{})})]})]}),_.jsxs("div",{children:[_.jsx("h4",{className:"text-sm font-semibold tracking-wider uppercase text-gray-300",children:"Explore"}),_.jsxs("ul",{className:"mt-4 space-y-2",children:[_.jsx("li",{children:_.jsx(Pe,{to:"/about",className:"text-base text-gray-400 hover:text-white",children:"About Us"})}),_.jsx("li",{children:_.jsx(Pe,{to:"/research",className:"text-base text-gray-400 hover:text-white",children:"Research"})}),_.jsx("li",{children:_.jsx(Pe,{to:"/blog",className:"text-base text-gray-400 hover:text-white",children:"Blog & Insights"})}),_.jsx("li",{children:_.jsx(Pe,{to:"/projects",className:"text-base text-gray-400 hover:text-white",children:"Projects"})}),_.jsx("li",{children:_.jsx(Pe,{to:"/publications",className:"text-base text-gray-400 hover:text-white",children:"Publications"})})]})]}),_.jsxs("div",{children:[_.jsx("h4",{className:"text-sm font-semibold tracking-wider up
72percase text-gray-300",children:"Community"}),_.jsxs("ul",{className:"mt-4 space-y-2",children:[_.jsx("li",{children:_.jsx(Pe,{to:"/people",className:"text-base text-gray-400 hover:text-white",children:"Team"})}),_.jsx("li",{children:_.jsx(Pe,{to:"/events",className:"text-base text-gray-400 hover:text-white",children:"Events"})}),_.jsx("li",{children:_.jsx(Pe,{to:"/join",className:"text-base text-gray-400 hover:text-white",children:"Get Involved"})}),_.jsx("li",{children:_.jsx(Pe,{to:"/partners",className:"text-base text-gray-400 hover:text-white",children:"Partners"})})]})]}),_.jsxs("div",{children:[_.jsx("h4",{className:"text-sm font-semibold tracking-wider uppercase text-gray-300",children:"Legal"}),_.jsxs("ul",{className:"mt-4 space-y-2",children:[_.jsx("li",{children:_.jsx("a",{href:"#",className:"text-base text-gray-400 hover:text-white",children:"Privacy Policy"})}),_.jsx("li",{children:_.jsx("a",{href:"#",className:"text-base text-gray-400 hover:text-white",children:"Code of Conduct"})}),_.jsx("li",{children:_.jsx("a",{href:"#",className:"text-base text-gray-400 hover:text-white",children:"Contact Us"})})]})]}),_.jsxs("div",{className:"col-span-2 md:col-span-4 lg:col-span-1",children:[_.jsx("h4",{className:"text-sm font-semibold tracking-wider uppercase text-gray-300",children:"Subscribe to our newsletter"}),_.jsxs("form",{className:"mt-4 flex flex-col sm:flex-row",children:[_.jsx("input",{type:"email",placeholder:"Enter your email",className:"w-full px-4 py-2 rounded-md text-gray-900 focus:outline-none focus:ring-2 focus:ring-brand-accent"}),_.jsx("button",{type:"submit",className:"mt-2 sm:mt-0 sm:ml-2 bg-brand-primary hover:bg-teal-800 text-white font-bold py-2 px-4 rounded-md",children:"Subscribe"})]})]})]}),_.jsx("div",{className:"mt-12 border-t border-gray-700 pt-8 text-center text-sm text-gray-400",children:_.jsxs("p",{children:["© ",new Date().getFullYear()," IndabaðUg AI Research Lab. All rights reserved."]})})]})}),JS=k.createContext({});function ZS(t){const e=k.useRef(null);return e.current===null&&(e.current=t()),e.current}const nU=typeof window<"u",rU=nU?k.useLayoutEffect:k.useEffect,Wh=k.createContext(null);function QS(t,e){t.indexOf(e)===-1&&t.push(e)}function Bd(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const Er=(t,e,n)=>n>e?e:n<t?t:n;let eA=()=>{};const ai={},iU=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t);function oU(t){return typeof t=="object"&&t!==null}const aU=t=>/^0[^.\s]+$/u.test(t);function sU(t){let e;return()=>(e===void 0&&(e=t()),e)}const Yn=t=>t,aH=(t,e)=>n=>e(t(n)),Mc=(...t)=>t.reduce(aH),qu=(t,e,n)=>{const r=e-t;return r===0?1:(n-t)/r};class tA{constructor(){this.subscriptions=[]}add(e){return QS(this.subscriptions,e),()=>Bd(this.subscriptions,e)}notify(e,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](e,n,r);else for(let o=0;o<i;o++){const s=this.subscriptions[o];s&&s(e,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const cr=t=>t*1e3,zn=t=>t/1e3;function lU(t,e){return e?t*(1e3/e):0}const uU=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,sH=1e-7,lH=12;function uH(t,e,n,r,i){let o,s,u=0;do s=e+(n-e)/2,o=uU(s,r,i)-t,o>0?n=s:e=s;while(Math.abs(o)>sH&&++u<lH);return s}function Pc(t,e,n,r){if(t===e&&n===r)return Yn;const i=o=>uH(o,0,1,t,n);return o=>o===0||o===1?o:uU(i(o),e,r)}const cU=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,fU=t=>e=>1-t(1-e),dU=Pc(.33,1.53,.69,.99),nA=fU(dU),hU=cU(nA),pU=t=>(t*=2)<1?.5*nA(t):.5*(2-Math.pow(2,-10*(t-1))),rA=t=>1-Math.sin(Math.acos(t)),mU=fU(rA),gU=cU(rA),cH=Pc(.42,0,1,1),fH=Pc(0,0,.58,1),yU=Pc(.42,0,.58,1),dH=t=>Array.isArray(t)&&typeof t[0]!="number",vU=t=>Array.isArray(t)&&typeof t[0]=="number",hH={linear:Yn,easeIn:cH,easeInOut:yU,easeOut:fH,circIn:rA,circInOut:gU,circOut:mU,backIn:nA,backInOut:hU,backOut:dU,anticipate:pU},pH=t=>typeof t=="string",WE=t=>{if(vU(t)){eA(t.length===4);const[e,n,r,i]=t;return Pc(e,n,r,i)}else if(pH(t))return hH[t];return t},od=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function mH(t,e){let n=new Set,r=new Set,i=!1,o=!1;const s=new WeakSet;let u={delta:0,timestamp:0,isProcessing:!1};function c(p){s.has(p)&&(f.schedule(p),t()),p(u)}const f={schedule:(p,y=!1,v=!1)=>{const w=v&&i?n:r;
vendor: 19,447 bytes, line 72
72return y&&s.add(p),w.has(p)||w.add(p),p},cancel:p=>{r.delete(p),s.delete(p)},process:p=>{if(u=p,i){o=!0;return}i=!0,[n,r]=[r,n],n.forEach(c),n.clear(),i=!1,o&&(o=!1,f.process(p))}};return f}const gH=40;function bU(t,e){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,s=od.reduce((M,O)=>(M[O]=mH(o),M),{}),{setup:u,read:c,resolveKeyframes:f,preUpdate:p,update:y,preRender:v,render:x,postRender:w}=s,A=()=>{const M=ai.useManualTiming?i.timestamp:performance.now();n=!1,ai.useManualTiming||(i.delta=r?1e3/60:Math.max(Math.min(M-i.timestamp,gH),1)),i.timestamp=M,i.isProcessing=!0,u.process(i),c.process(i),f.process(i),p.process(i),y.process(i),v.process(i),x.process(i),w.process(i),i.isProcessing=!1,n&&e&&(r=!1,t(A))},S=()=>{n=!0,r=!0,i.isProcessing||t(A)};return{schedule:od.reduce((M,O)=>{const E=s[O];return M[O]=(N,D=!1,L=!1)=>(n||S(),E.schedule(N,D,L)),M},{}),cancel:M=>{for(let O=0;O<od.length;O++)s[od[O]].cancel(M)},state:i,steps:s}}const{schedule:at,cancel:Zi,state:Wt,steps:ly}=bU(typeof requestAnimationFrame<"u"?requestAnimationFrame:Yn,!0);let Ed;function yH(){Ed=void 0}const an={now:()=>(Ed===void 0&&an.set(Wt.isProcessing||ai.useManualTiming?Wt.timestamp:performance.now()),Ed),set:t=>{Ed=t,queueMicrotask(yH)}},xU=t=>e=>typeof e=="string"&&e.startsWith(t),TU=xU("--"),vH=xU("var(--"),iA=t=>vH(t)?bH.test(t.split("/*")[0].trim()):!1,bH=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function XE(t){return typeof t!="string"?!1:t.split("/*")[0].includes("var(--")}const Gs={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},Bu={...Gs,transform:t=>Er(0,1,t)},ad={...Gs,default:1},_u=t=>Math.round(t*1e5)/1e5,oA=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function xH(t){return t==null}const TH=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,aA=(t,e)=>n=>!!(typeof n=="string"&&TH.test(n)&&n.startsWith(t)||e&&!xH(n)&&Object.prototype.hasOwnProperty.call(n,e)),SU=(t,e,n)=>r=>{if(typeof r!="string")return r;const[i,o,s,u]=r.match(oA);return{[t]:parseFloat(i),[e]:parseFloat(o),[n]:parseFloat(s),alpha:u!==void 0?parseFloat(u):1}},SH=t=>Er(0,255,t),uy={...Gs,transform:t=>Math.round(SH(t))},ko={test:aA("rgb","red"),parse:SU("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:r=1})=>"rgba("+uy.transform(t)+", "+uy.transform(e)+", "+uy.transform(n)+", "+_u(Bu.transform(r))+")"};function AH(t){let e="",n="",r="",i="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),r=t.substring(5,7),i=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),r=t.substring(3,4),i=t.substring(4,5),e+=e,n+=n,r+=r,i+=i),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const Bx={test:aA("#"),parse:AH,transform:ko.transform},Rc=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),Vi=Rc("deg"),Ar=Rc("%"),ye=Rc("px"),wH=Rc("vh"),_H=Rc("vw"),JE={...Ar,parse:t=>Ar.parse(t)/100,transform:t=>Ar.transform(t*100)},Ja={test:aA("hsl","hue"),parse:SU("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:r=1})=>"hsla("+Math.round(t)+", "+Ar.transform(_u(e))+", "+Ar.transform(_u(n))+", "+_u(Bu.transform(r))+")"},Mt={test:t=>ko.test(t)||Bx.test(t)||Ja.test(t),parse:t=>ko.test(t)?ko.parse(t):Ja.test(t)?Ja.parse(t):Bx.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?ko.transform(t):Ja.transform(t),getAnimatableNone:t=>{const e=Mt.parse(t);return e.alpha=0,Mt.transform(e)}},CH=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function EH(t){var e,n;return isNaN(t)&&typeof t=="string"&&(((e=t.match(oA))==null?void 0:e.length)||0)+(((n=t.match(CH))==null?void 0:n.length)||0)>0}const AU="number",wU="color",MH="var",PH="var(",ZE="${}",RH=/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 $u(t){const e=t.toString(),n=[],r={color:[],number:[],var:[]},i=[];let o=0;const u=e.replace(RH,c=>(Mt.test(c)?(r.color.push(o),i.push(wU),n.push(Mt.parse(c))):c.startsWith(PH)?(r.var.push(o),i.push(MH),n.push(c)):(r.number.push(o),i.push(AU),n.push(parseFloat(c))),++o,ZE)).split(ZE);return{values:n,split:u,indexes:r,types:i}}function _U(t){return $u(t).values}function CU(t){const{split:e,types:n}=$u(t),r=e.length;return i=>{let o="";for(let s=0;s<r;s++)if(o+=e[s],i[s]!==void 0){const u=n[s];u===AU?o+=_u(i[s]):u===wU?o+=Mt.transform(i[s]):o+=i[s]}return o}}const NH=t=>typeof t=="number"?0:Mt.test(t)?Mt.getAnimatableNone(t):t;function OH(t){const e=_U(t);return CU(t)(e.map(NH))}const fr={test:EH,parse:_U,createTransformer:CU,getAnimatableNone:OH};function cy(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function DH({hue:t,saturation:e,lightness:n,alpha:r}){t/=360,e/=100,n/=100;let i=0,o=0,s=0;if(!e)i=o=s=n;else{const u=n<.5?n*(1+e):n+e-n*e,c=2*n-u;i=cy(c,u,t+1/3),o=cy(c,u,t),s=cy(c,u,t-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(s*255),alpha:r}}function $d(t,e){return n=>n>0?e:t}const pt=(t,e,n)=>t+(e-t)*n,fy=(t,e,n)=>{const r=t*t,i=n*(e*e-r)+r;return i<0?0:Math.sqrt(i)},IH=[Bx,ko,Ja],kH=t=>IH.find(e=>e.test(t));function QE(t){const e=kH(t);if(!e)return!1;let n=e.parse(t);return e===Ja&&(n=DH(n)),n}const eM=(t,e)=>{const n=QE(t),r=QE(e);if(!n||!r)return $d(t,e);const i={...n};return o=>(i.red=fy(n.red,r.red,o),i.green=fy(n.green,r.green,o),i.blue=fy(n.blue,r.blue,o),i.alpha=pt(n.alpha,r.alpha,o),ko.transform(i))},$x=new Set(["none","hidden"]);function LH(t,e){return $x.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}function UH(t,e){return n=>pt(t,e,n)}function sA(t){return typeof t=="number"?UH:typeof t=="string"?iA(t)?$d:Mt.test(t)?eM:$H:Array.isArray(t)?EU:typeof t=="object"?Mt.test(t)?eM:qH:$d}function EU(t,e){const n=[...t],r=n.length,i=t.map((o,s)=>sA(o)(o,e[s]));return o=>{for(let s=0;s<r;s++)n[s]=i[s](o);return n}}function qH(t,e){const n={...t,...e},r={};for(const i in n)t[i]!==void 0&&e[i]!==void 0&&(r[i]=sA(t[i])(t[i],e[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}}function BH(t,e){const n=[],r={color:0,var:0,number:0};for(let i=0;i<e.values.length;i++){const o=e.types[i],s=t.indexes[o][r[o]],u=t.values[s]??0;n[i]=u,r[o]++}return n}const $H=(t,e)=>{const n=fr.createTransformer(e),r=$u(t),i=$u(e);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?$x.has(t)&&!i.values.length||$x.has(e)&&!r.values.length?LH(t,e):Mc(EU(BH(r,i),i.values),n):$d(t,e)};function MU(t,e,n){return typeof t=="number"&&typeof e=="number"&&typeof n=="number"?pt(t,e,n):sA(t)(t,e)}const VH=t=>{const e=({timestamp:n})=>t(n);return{start:(n=!0)=>at.update(e,n),stop:()=>Zi(e),now:()=>Wt.isProcessing?Wt.timestamp:an.now()}},PU=(t,e,n=10)=>{let r="";const i=Math.max(Math.round(e/n),2);for(let o=0;o<i;o++)r+=Math.round(t(o/(i-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},Vd=2e4;function lA(t){let e=0;const n=50;let r=t.next(e);for(;!r.done&&e<Vd;)e+=n,r=t.next(e);return e>=Vd?1/0:e}function jH(t,e=100,n){const r=n({...t,keyframes:[0,e]}),i=Math.min(lA(r),Vd);return{type:"keyframes",ease:o=>r.next(i*o).value/e,duration:zn(i)}}const FH=5;function RU(t,e,n){const r=Math.max(e-FH,0);return lU(n-t(r),e-r)}const vt={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},dy=.001;function HH({duration:t=vt.duration,bounce:e=vt.bounce,velocity:n=vt.velocity,mass:r=vt.mass}){let i,o,s=1-e;s=Er(vt.minDamping,vt.maxDamping,s),t=Er(vt.minDuration,vt.maxDuration,zn(t)),s<1?(i=f=>{const p=f*s,y=p*t,v=p-n,x=Vx(f,s),w=Math.exp(-y);return dy-v/x*w},o=f=>{const y=f*s*t,v=y*n+n,x=Math.pow(s,2)*Math.pow(f,2)*t,w=Math.exp(-y),A=Vx(Math.pow(f,2),s);return(-i(f)+dy>0?-1:1)*((v-x)*w)/A}):(i=f=>{const p=Math.exp(-f*t),y=(f-n)*t+1;return-dy+p*y},o=f=>{const p=Math.exp(-f*t),y=(n-f)*(t*t);return p*y});const u=5/t,c=zH(i,o,u);if(t=cr(t),isNaN(c))return{stiffness:vt.stiffness,damping:vt.damping,duration:t};{const f=Math.pow(c,2)*r;return{stiffness:f,damping:s*2*Math.sqrt(r*f),duration:t}}}const GH=12;function zH(t,e,n){let r=n;for(let i=1;i<GH;i++)r=r-t(r)/e(r);return r}function Vx(t,e){return t*Math.sqrt(1-e*e)}const KH=["duration","bounce"],YH=["stiffness","damping","mass"];function tM(t,e){return e.some(n=>t[n]!==void 0)}function WH(t){let e={velocity:vt.velocity,stiffness:vt.stiffness,damping:vt.damping,mass:vt.mass,isResolvedFromDuration:!1,...t};if(!tM(t,YH)&&tM(t,KH))if(e.velocity=0,t.visualDuration){const n=t.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,o=2*Er(.05,1,1-(t.bounce||0))*Math.sqrt(i);e={...e,mass:vt.mass,stiffness:i,damping:o}}else{const n=HH({...t,velocity:0});e={...e,...n,mass:vt.mass},e.isResolvedFromDuration=!0}return e}function jd(t=vt.visualDuration,e=vt.bounce){const n=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:r,restDelta:i}=n;const o=n.keyframes[0],s=n.keyframes[n.keyframes.length-1],u={done:!1,value:o},{stiffness:c,damping:f,mass:p,duration:y,velocity:v,isResolvedFromDuration:x}=WH({...n,velocity:-zn(n.velocity||0)}),w=v||0,A=f/(2*Math.sqrt(c*p)),S=s-o,C=zn(Math.sqrt(c/p)),P=Math.abs(S)<5;r||(r=P?vt.restSpeed.granular:vt.restSpeed.default),i||(i=P?vt.restDelta.granular:vt.restDelta.default);let M;if(A<1){const E=Vx(C,A);M=N=>{const D=Math.exp(-A*C*N);return s-D*((w+A*C*S)/E*Math.sin(E*N)+S*Math.cos(E*N))}}else if(A===1)M=E=>s-Math.exp(-C*E)*(S+(w+C*S)*E);else{const E=C*Math.sqrt(A*A-1);M=N=>{const D=Math.exp(-A*C*N),L=Math.min(E*N,300);return s-D*((w+A*C*S)*Math.sinh(L)+E*S*Math.cosh(L))/E}}const O={calculatedDuration:x&&y||null,next:E=>{const N=M(E);if(x)u.done=E>=y;else{let D=E===0?w:0;A<1&&(D=E===0?cr(w):RU(M,E,N));const L=Math.abs(D)<=r,U=Math.abs(s-N)<=i;u.done=L&&U}return u.value=u.done?s:N,u},toString:()=>{const E=Math.min(lA(O),Vd),N=PU(D=>O.next(E*D).value,E,30);return E+"ms "+N},toTransition:()=>{}};return O}jd.applyToOptions=t=>{const e=jH(t,100,jd);return t.ease=e.ease,t.duration=cr(e.duration),t.type="keyframes",t};function jx({keyframes:t,velocity:e=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:s,min:u,max:c,restDelta:f=.5,restSpeed:p}){const y=t[0],v={done:!1,value:y},x=L=>u!==void 0&&L<u||c!==void 0&&L>c,w=L=>u===void 0?c:c===void 0||Math.abs(u-L)<Math.abs(c-L)?u:c;let A=n*e;const S=y+A,C=s===void 0?S:s(S);C!==S&&(A=C-y);const P=L=>-A*Math.exp(-L/r),M=L=>C+P(L),O=L=>{const U=P(L),F=M(L);v.done=Math.abs(U)<=f,v.value=v.done?C:F};let E,N;const D=L=>{x(v.value)&&(E=L,N=jd({keyframes:[v.value,w(v.value)],velocity:RU(M,L,v.value),damping:i,stiffness:o,restDelta:f,restSpeed:p}))};return D(0),{calculatedDuration:null,next:L=>{let U=!1;return!N&&E===void 0&&(U=!0,O(L),D(L)),E!==void 0&&L>=E?N.next(L-E):(!U&&O(L),v)}}}function XH(t,e,n){const r=[],i=n||ai.mix||MU,o=t.length-1;for(let s=0;s<o;s++){let u=i(t[s],t[s+1]);if(e){const c=Array.isArray(e)?e[s]||Yn:e;u=Mc(c,u)}r.push(u)}return r}function JH(t,e,{clamp:n=!0,ease:r,mixer:i}={}){const o=t.length;if(eA(o===e.length),o===1)return()=>e[0];if(o===2&&e[0]===e[1])return()=>e[1];const s=t[0]===t[1];t[0]>t[o-1]&&(t=[...t].reverse(),e=[...e].reverse());const u=XH(e,r,i),c=u.length,f=p=>{if(s&&p<t[0])return e[0];let y=0;if(c>1)for(;y<t.length-2&&!(p<t[y+1]);y++);const v=qu(t[y],t[y+1],p);return u[y](v)};return n?p=>f(Er(t[0],t[o-1],p)):f}function ZH(t,e){const n=t[t.length-1];for(let r=1;r<=e;r++){const i=qu(0,e,r);t.push(pt(n,1,i))}}function QH(t){const e=[0];return ZH(e,t.length-1),e}function e8(t,e){return t.map(n=>n*e)}function t8(t,e){return t.map(()=>e||yU).splice(0,t.length-1)}function Cu({duration:t=300,keyframes:e,times:n,ease:r="easeInOut"}){const i=dH(r)?r.map(WE):WE(r),o={done:!1,value:e[0]},s=e8(n&&n.length===e.length?n:QH(e),t),u=JH(s,e,{ease:Array.isArray(i)?i:t8(e,i)});return{calculatedDuration:t,next:c=>(o.value=u(c),o.done=c>=t,o)}}const n8=t=>t!==null;function uA(t,{repeat:e,repeatType:n="loop"},r,i=1){const o=t.filter(n8),u=i<0||e&&n!=="loop"&&e%2===1?0:o.length-1;return!u||r===void 0?o[u]:r}const r8={decay:jx,inertia:jx,tween:Cu,keyframes:Cu,spring:jd};function NU(t){typeof t.type=="string"&&(t.type=r8[t.type])}class cA{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,n){return this.finished.then(e,n)}}const i8=t=>t/100;class fA extends cA{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var r,i;const{motionValue:n}=this.options;n&&n.updatedAt!==an.now()&&this.tick(an.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(i=(r=this.options).onStop)==null||i.call(r))},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){const{options:e}=this;NU(e);const{type:n=Cu,repeat:r=0,repeatDelay:i=0,repeatType:o,velocity:s=0}=e;let{keyframes:u}=e;const c=n||Cu;c!==Cu&&typeof u[0]!="number"&&(this.mixKeyframes=Mc(i8,MU(u[0],u[1])),u=[0,100]);const f=c({...e,keyframes:u});o==="mirror"&&(this.mirroredGenerator=c({...e,keyframes:[...u].reverse(),velocity:-s})),f.calculatedDuration===null&&(f.calculatedDuration=lA(f));const{calculatedDuration:p}=f;this.calculatedDuration=p,this.resolvedDuration=p+i,this.totalDuration=this.resolvedDuration*(r+1)-i,this.generator=f}updateTime(e){const n=Math.round(e-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(e,n=!1){const{generator:r,totalDuration:i,mixKeyframes:o,mirroredGenerator:s,resolvedDuration:u,calculatedDuration:c}=this;if(this.startTime===null)return r.next(0);const{delay:f=0,keyframes:p,repeat:y,repeatType:v,repeatDelay:x,type:w,onUpdate:A,finalKeyframe:S}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-i/this.speed,this.startTime)),n?this.currentTime=e:this.updateTime(e);const C=this.currentTime-f*(this.playbackSpeed>=0?1:-1),P=this.playbackSpeed>=0?C<0:C>i;this.currentTime=Math.max(C,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let M=this.currentTime,O=r;if(y){const L=Math.min(this.currentTime,i)/u;let U=Math.floor(L),F=L%1;!F&&L>=1&&(F=1),F===1&&U--,U=Math.min(U,y+1),!!(U%2)&&(v==="reverse"?(F=1-F,x&&(F-=x/u)):v==="mirror"&&(O=s)),M=Er(0,1,F)*u}const E=P?{done:!1,value:p[0]}:O.next(M);o&&(E.value=o(E.value));let{done:N}=E;!P&&c!==null&&(N=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const D=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&N);return D&&w!==jx&&(E.value=uA(p,this.options,S,this.speed)),A&&A(E.value),D&&this.finish(),E}then(e,n){return this.finished.then(e,n)}get duration(){return zn(this.calculatedDuration)}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+zn(e)}get time(){return zn(this.currentTime)}set time(e){var n;e=cr(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),(n=this.driver)==null||n.start(!1)}get speed(){return this.playbackSpeed}set speed(e){this.updateTime(an.now());const n=this.playbackSpeed!==e;this.playbackSpeed=e,n&&(this.time=zn(this.currentTime))}play(){var i,o;if(this.isStopped)return;const{driver:e=VH,startTime:n}=this.options;this.driver||(this.driver=e(s=>this.tick(s))),(o=(i=this.options).onPlay)==null||o.call(i);const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(an.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var e,n;this.notifyFinished(),this.teardown(),this.state="finished",(n=(e=this.options).onComplete)==null||n.call(e)}cancel(){var e,n;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(n=(e=this.options).onCancel)==null||n.call(e)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){var n;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(n=this.driver)==null||n.stop(),e.observe(this)}}function o8(t){for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}const Lo=t=>t*180/Math.PI,Fx=t=>{const e=Lo(Math.atan2(t[1],t[0]));return Hx(e)},a8={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:Fx,rotateZ:Fx,skewX:t=>Lo(Math.atan(t[1])),skewY:t=>Lo(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},Hx=t=>(t=t%360,t<0&&(t+=360),t),nM=Fx,rM=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),iM=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),s8={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:rM,scaleY:iM,scale:t=>(rM(t)+iM(t))/2,rotateX:t=>Hx(Lo(Math.atan2(t[6],t[5]))),rotateY:t=>Hx(Lo(Math.atan2(-t[2],t[0]))),rotateZ:nM,rotate:nM,skewX:t=>Lo(Math.atan(t[4])),skewY:t=>Lo(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function Gx(t){return t.includes("scale")?1:0}function zx(t,e){if(!t||t==="none")return Gx(e);const n=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,i;if(n)r=s8,i=n;else{const u=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=a8,i=u}if(!i)return Gx(e);const o=r[e],s=i[1].split(",").map(u8);return typeof o=="function"?o(s):s[o]}const l8=(t,e)=>{const{transform:n="none"}=getComputedStyle(t);return zx(n,e)};function u8(t){return parseFloat(t.trim())}const zs=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Ks=new Set(zs),oM=t=>t===Gs||t===ye,c8=new Set(["x","y","z"]),f8=zs.filter(t=>!c8.has(t));function d8(t){const e=[];return f8.forEach(n=>{const r=t.getValue(n);r!==void 0&&(e.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),e}const zi={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:(t,{transform:e})=>zx(e,"x"),y:(t,{transform:e})=>zx(e,"y")};zi.translateX=zi.x;zi.translateY=zi.y;const jo=new Set;let Kx=!1,Yx=!1,Wx=!1;function OU(){if(Yx){const t=Array.from(jo).filter(r=>r.needsMeasurement),e=new Set(t.map(r=>r.element)),n=new Map;e.forEach(r=>{const i=d8(r);i.length&&(n.set(r,i),r.render())}),t.forEach(r=>r.measureInitialState()),e.forEach(r=>{r.render();const i=n.get(r);
vendor: 1,610 bytes, line 72
72i&&i.forEach(([o,s])=>{var u;(u=r.getValue(o))==null||u.set(s)})}),t.forEach(r=>r.measureEndState()),t.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Yx=!1,Kx=!1,jo.forEach(t=>t.complete(Wx)),jo.clear()}function DU(){jo.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(Yx=!0)})}function h8(){Wx=!0,DU(),OU(),Wx=!1}class dA{constructor(e,n,r,i,o,s=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=n,this.name=r,this.motionValue=i,this.element=o,this.isAsync=s}scheduleResolve(){this.state="scheduled",this.isAsync?(jo.add(this),Kx||(Kx=!0,at.read(DU),at.resolveKeyframes(OU))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:n,element:r,motionValue:i}=this;if(e[0]===null){const o=i==null?void 0:i.get(),s=e[e.length-1];if(o!==void 0)e[0]=o;else if(r&&n){const u=r.readValue(n,s);u!=null&&(e[0]=u)}e[0]===void 0&&(e[0]=s),i&&o===void 0&&i.set(e[0])}o8(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),jo.delete(this)}cancel(){this.state==="scheduled"&&(jo.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const p8=t=>t.startsWith("--");function m8(t,e,n){p8(e)?t.style.setProperty(e,n):t.style[e]=n}const g8={};function IU(t,e){const n=sU(t);return()=>g8[e]??n()}const y8=IU(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),kU=IU(()=>{try{document.createElement("div").animate({opacity:0}
vendor: 4,926 bytes, line 72
72,{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Tu=([t,e,n,r])=>`cubic-bezier(${t}, ${e}, ${n}, ${r})`,aM={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Tu([0,.65,.55,1]),circOut:Tu([.55,0,1,.45]),backIn:Tu([.31,.01,.66,-.59]),backOut:Tu([.33,1.53,.69,.99])};function LU(t,e){if(t)return typeof t=="function"?kU()?PU(t,e):"ease-out":vU(t)?Tu(t):Array.isArray(t)?t.map(n=>LU(n,e)||aM.easeOut):aM[t]}function v8(t,e,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:s="loop",ease:u="easeOut",times:c}={},f=void 0){const p={[e]:n};c&&(p.offset=c);const y=LU(u,i);Array.isArray(y)&&(p.easing=y);const v={delay:r,duration:i,easing:Array.isArray(y)?"linear":y,fill:"both",iterations:o+1,direction:s==="reverse"?"alternate":"normal"};return f&&(v.pseudoElement=f),t.animate(p,v)}function UU(t){return typeof t=="function"&&"applyToOptions"in t}function b8({type:t,...e}){return UU(t)&&kU()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}class qU extends cA{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;const{element:n,name:r,keyframes:i,pseudoElement:o,allowFlatten:s=!1,finalKeyframe:u,onComplete:c}=e;this.isPseudoElement=!!o,this.allowFlatten=s,this.options=e,eA(typeof e.type!="string");const f=b8(e);this.animation=v8(n,r,i,f,o),f.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!o){const p=uA(i,this.options,u,this.speed);this.updateMotionValue?this.updateMotionValue(p):m8(n,r,p),this.animation.cancel()}c==null||c(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var e,n;(n=(e=this.animation).finish)==null||n.call(e)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:e}=this;e==="idle"||e==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var n,r,i;const e=(n=this.options)==null?void 0:n.element;!this.isPseudoElement&&(e!=null&&e.isConnected)&&((i=(r=this.animation).commitStyles)==null||i.call(r))}get duration(){var n,r;const e=((r=(n=this.animation.effect)==null?void 0:n.getComputedTiming)==null?void 0:r.call(n).duration)||0;return zn(Number(e))}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+zn(e)}get time(){return zn(Number(this.animation.currentTime)||0)}set time(e){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=cr(e)}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,observe:n}){var r;return this.allowFlatten&&((r=this.animation.effect)==null||r.updateTiming({easing:"linear"})),this.animation.onfinish=null,e&&y8()?(this.animation.timeline=e,Yn):n(this)}}const BU={anticipate:pU,backInOut:hU,circInOut:gU};function x8(t){return t in BU}function T8(t){typeof t.ease=="string"&&x8(t.ease)&&(t.ease=BU[t.ease])}const hy=10;class S8 extends qU{constructor(e){T8(e),NU(e),super(e),e.startTime!==void 0&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){const{motionValue:n,onUpdate:r,onComplete:i,element:o,...s}=this.options;if(!n)return;if(e!==void 0){n.set(e);return}const u=new fA({...s,autoplay:!1}),c=Math.max(hy,an.now()-this.startTime),f=Er(0,hy,c-hy);n.setWithVelocity(u.sample(Math.max(0,c-f)).value,u.sample(c).value,f),u.stop()}}const sM=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(fr.test(t)||t==="0")&&!t.startsWith("url("));function A8(t){const e=t[0];if(t.length===1)return!0;for(let n=0;n<t.length;n++)if(t[n]!==e)return!0}function w8(t,e,n,r){const i=t[0];if(i===null)return!1;if(e==="display"||e==="visibility")return!0;const o=t[t.length-1],s=sM(i,e),u=sM(o,e);return!s||!u?!1:A8(t)||(n==="spring"||UU(n))&&r}function Xx(t){t.duration=0,t.type="keyframes"}const _8=new Set(["opacity","clipPath","filter","transform"]),C8=sU(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function E8(t){var p;const{motionValue:e,name:n,repeatDelay:r,repeatType:i,damping:o,type:s}=t;if(!(((p=e==null?void 0:e.owner)==null?void 0:p.current)instanceof HTMLElement))return!1;const{onUpdate:c,transformTemplate:f}=e.owner.getProps();return C8()&&n&&_8.has(n)&&(n!=="transform"||!f)&&!c&&!r&&i!=="mirror"&&o!==0&&s!=="inertia"}const M8=40;class P8 extends cA{constructor({autoplay:e=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:s="loop",keyframes:u,n
72ame:c,motionValue:f,element:p,...y}){var w;super(),this.stop=()=>{var A,S;this._animation&&(this._animation.stop(),(A=this.stopTimeline)==null||A.call(this)),(S=this.keyframeResolver)==null||S.cancel()},this.createdAt=an.now();const v={autoplay:e,delay:n,type:r,repeat:i,repeatDelay:o,repeatType:s,name:c,motionValue:f,element:p,...y},x=(p==null?void 0:p.KeyframeResolver)||dA;this.keyframeResolver=new x(u,(A,S,C)=>this.onKeyframesResolved(A,S,v,!C),c,f,p),(w=this.keyframeResolver)==null||w.scheduleResolve()}onKeyframesResolved(e,n,r,i){var S,C;this.keyframeResolver=void 0;const{name:o,type:s,velocity:u,delay:c,isHandoff:f,onUpdate:p}=r;this.resolvedAt=an.now(),w8(e,o,s,u)||((ai.instantAnimations||!c)&&(p==null||p(uA(e,r,n))),e[0]=e[e.length-1],Xx(r),r.repeat=0);const v={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>M8?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:e},x=!f&&E8(v),w=(C=(S=v.motionValue)==null?void 0:S.owner)==null?void 0:C.current,A=x?new S8({...v,element:w}):new fA(v);A.finished.then(()=>{this.notifyFinished()}).catch(Yn),this.pendingTimeline&&(this.stopTimeline=A.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=A}get finished(){return this._animation?this.animation.finished:this._finished}then(e,n){return this.finished.finally(e).then(()=>{})}get animation(){var e;return this._animation||((e=this.keyframeResolver)==null||e.resume(),h8()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var e;this._animation&&this.animation.cancel(),(e=this.keyframeResolver)==null||e.cancel()}}function $U(t,e,n,r=0,i=1){const o=Array.from(t).sort((f,p)=>f.sortNodePosition(p)).indexOf(e),s=t.size,u=(s-1)*r;return typeof n=="function"?n(o,s):i===1?o*r:u-o*r}const R8=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function N8(t){const e=R8.exec(t);if(!e)return[,];const[,n,r,i]=e;return[`--${n??r}`,i]}function VU(t,e,n=1){const[r,i]=N8(t);if(!r)return;const o=window.getComputedStyle(e).getPropertyValue(r);if(o){const s=o.trim();return iU(s)?parseFloat(s):s}return iA(i)?VU(i,e,n+1):i}const O8={type:"spring",stiffness:500,damping:25,restSpeed:10},D8=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),I8={type:"keyframes",duration:.8},k8={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},L8=(t,{keyframes:e})=>e.length>2?I8:Ks.has(t)?t.startsWith("scale")?D8(e[1]):O8:k8,U8=t=>t!==null;function q8(t,{repeat:e,repeatType:n="loop"},r){const i=t.filter(U8),o=e&&n!=="loop"&&e%2===1?0:i.length-1;return i[o]}function jU(t,e){if(t!=null&&t.inherit&&e){const{inherit:n,...r}=t;return{...e,...r}}return t}function hA(t,e){const n=(t==null?void 0:t[e])??(t==null?void 0:t.default)??t;return n!==t?jU(n,t):n}function B8({when:t,delay:e,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:s,repeatDelay:u,from:c,elapsed:f,...p}){return!!Object.keys(p).length}const pA=(t,e,n,r={},i,o)=>s=>{const u=hA(r,t)||{},c=u.delay||r.delay||0;let{elapsed:f=0}=r;f=f-cr(c);const p={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...u,delay:-f,onUpdate:v=>{e.set(v),u.onUpdate&&u.onUpdate(v)},onComplete:()=>{s(),u.onComplete&&u.onComplete()},name:t,motionValue:e,element:o?void 0:i};B8(u)||Object.assign(p,L8(t,p)),p.duration&&(p.duration=cr(p.duration)),p.repeatDelay&&(p.repeatDelay=cr(p.repeatDelay)),p.from!==void 0&&(p.keyframes[0]=p.from);let y=!1;if((p.type===!1||p.duration===0&&!p.repeatDelay)&&(Xx(p),p.delay===0&&(y=!0)),(ai.instantAnimations||ai.skipAnimations||i!=null&&i.shouldSkipAnimations)&&(y=!0,Xx(p),p.delay=0),p.allowFlatten=!u.type&&!u.ease,y&&!o&&e.get()!==void 0){const v=q8(p.keyframes,u);if(v!==void 0){at.update(()=>{p.onUpdate(v),p.onComplete()});return}}return u.isSync?new fA(p):new P8(p)};function lM(t){const e=[{},{}];
vendor: 20,633 bytes, line 72
72return t==null||t.values.forEach((n,r)=>{e[0][r]=n.get(),e[1][r]=n.getVelocity()}),e}function mA(t,e,n,r){if(typeof e=="function"){const[i,o]=lM(r);e=e(n!==void 0?n:t.custom,i,o)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){const[i,o]=lM(r);e=e(n!==void 0?n:t.custom,i,o)}return e}function ls(t,e,n){const r=t.getProps();return mA(r,e,n!==void 0?n:r.custom,t)}const FU=new Set(["width","height","top","left","right","bottom",...zs]),uM=30,$8=t=>!isNaN(parseFloat(t));class V8{constructor(e,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{var o;const i=an.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&((o=this.events.change)==null||o.notify(this.current),this.dependents))for(const s of this.dependents)s.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=n.owner}setCurrent(e){this.current=e,this.updatedAt=an.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=$8(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,n){this.events[e]||(this.events[e]=new tA);const r=this.events[e].add(n);return e==="change"?()=>{r(),at.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,n){this.passiveEffect=e,this.stopPassiveEffect=n}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-r}jump(e,n=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var e;(e=this.events.change)==null||e.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const e=an.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>uM)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,uM);return lU(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(e){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=e(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){var e,n;(e=this.dependents)==null||e.clear(),(n=this.events.destroy)==null||n.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function ys(t,e){return new V8(t,e)}const Jx=t=>Array.isArray(t);function j8(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,ys(n))}function F8(t){return Jx(t)?t[t.length-1]||0:t}function H8(t,e){const n=ls(t,e);let{transitionEnd:r={},transition:i={},...o}=n||{};o={...o,...r};for(const s in o){const u=F8(o[s]);j8(t,s,u)}}const nn=t=>!!(t&&t.getVelocity);function G8(t){return!!(nn(t)&&t.add)}function Zx(t,e){const n=t.getValue("willChange");if(G8(n))return n.add(e);if(!n&&ai.WillChange){const r=new ai.WillChange("auto");t.addValue("willChange",r),r.add(e)}}function gA(t){return t.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}const z8="framerAppearId",HU="data-"+gA(z8);function GU(t){return t.props[HU]}function K8({protectedKeys:t,needsAnimating:e},n){const r=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,r}function zU(t,e,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:o,transitionEnd:s,...u}=e;const c=t.getDefaultTransition();o=o?jU(o,c):c;const f=o==null?void 0:o.reduceMotion;r&&(o=r);const p=[],y=i&&t.animationState&&t.animationState.getState()[i];for(const v in u){const x=t.getValue(v,t.latestValues[v]??null),w=u[v];if(w===void 0||y&&K8(y,v))continue;const A={delay:n,...hA(o||{},v)},S=x.get();if(S!==void 0&&!x.isAnimating&&!Array.isArray(w)&&w===S&&!A.velocity)continue;let C=!1;if(window.MotionHandoffAnimation){const O=GU(t);if(O){const E=window.MotionHandoffAnimation(O,v,at);E!==null&&(A.startTime=E,C=!0)}}Zx(t,v);const P=f??t.shouldReduceMotion;x.start(pA(v,x,w,P&&FU.has(v)?{type:!1}:A,t,C));const M=x.animation;M&&p.push(M)}if(s){const v=()=>at.update(()=>{s&&H8(t,s)});p.length?Promise.all(p).then(v):v()}return p}function Qx(t,e,n={}){var c;const r=ls(t,e,n.type==="exit"?(c=t.presenceContext)==null?void 0:c.custom:void 0);let{transition:i=t.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const o=r?()=>Promise.all(zU(t,r,n)):()=>Promise.resolve(),s=t.variantChildren&&t.variantChildren.size?(f=0)=>{const{delayChildren:p=0,staggerChildren:y,staggerDirection:v}=i;return Y8(t,e,f,p,y,v,n)}:()=>Promise.resolve(),{when:u}=i;if(u){const[f,p]=u==="beforeChildren"?[o,s]:[s,o];return f().then(()=>p())}else return Promise.all([o(),s(n.delay)])}function Y8(t,e,n=0,r=0,i=0,o=1,s){const u=[];for(const c of t.variantChildren)c.notify("AnimationStart",e),u.push(Qx(c,e,{...s,delay:n+(typeof r=="function"?0:r)+$U(t.variantChildren,c,r,i,o)}).then(()=>c.notify("AnimationComplete",e)));return Promise.all(u)}function W8(t,e,n={}){t.notify("AnimationStart",e);let r;if(Array.isArray(e)){const i=e.map(o=>Qx(t,o,n));r=Promise.all(i)}else if(typeof e=="string")r=Qx(t,e,n);else{const i=typeof e=="function"?ls(t,e,n.custom):e;r=Promise.all(zU(t,i,n))}return r.then(()=>{t.notify("AnimationComplete",e)})}const X8={test:t=>t==="auto",parse:t=>t},KU=t=>e=>e.test(t),YU=[Gs,ye,Ar,Vi,_H,wH,X8],cM=t=>YU.find(KU(t));function J8(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||aU(t):!0}const Z8=new Set(["brightness","contrast","saturate","opacity"]);function Q8(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[r]=n.match(oA)||[];if(!r)return t;const i=n.replace(r,"");let o=Z8.has(e)?1:0;return r!==n&&(o*=100),e+"("+o+i+")"}const e5=/\b([a-z-]*)\(.*?\)/gu,eT={...fr,getAnimatableNone:t=>{const e=t.match(e5);return e?e.map(Q8).join(" "):t}},tT={...fr,getAnimatableNone:t=>{const e=fr.parse(t);return fr.createTransformer(t)(e.map(r=>typeof r=="number"?0:typeof r=="object"?{...r,alpha:1}:r))}},fM={...Gs,transform:Math.round},t5={rotate:Vi,rotateX:Vi,rotateY:Vi,rotateZ:Vi,scale:ad,scaleX:ad,scaleY:ad,scaleZ:ad,skew:Vi,skewX:Vi,skewY:Vi,distance:ye,translateX:ye,translateY:ye,translateZ:ye,x:ye,y:ye,z:ye,perspective:ye,transformPerspective:ye,opacity:Bu,originX:JE,originY:JE,originZ:ye},yA={borderWidth:ye,borderTopWidth:ye,borderRightWidth:ye,borderBottomWidth:ye,borderLeftWidth:ye,borderRadius:ye,borderTopLeftRadius:ye,borderTopRightRadius:ye,borderBottomRightRadius:ye,borderBottomLeftRadius:ye,width:ye,maxWidth:ye,height:ye,maxHeight:ye,top:ye,right:ye,bottom:ye,left:ye,inset:ye,insetBlock:ye,insetBlockStart:ye,insetBlockEnd:ye,insetInline:ye,insetInlineStart:ye,insetInlineEnd:ye,padding:ye,paddingTop:ye,paddingRight:ye,paddingBottom:ye,paddingLeft:ye,paddingBlock:ye,paddingBlockStart:ye,paddingBlockEnd:ye,paddingInline:ye,paddingInlineStart:ye,paddingInlineEnd:ye,margin:ye,marginTop:ye,marginRight:ye,marginBottom:ye,marginLeft:ye,marginBlock:ye,marginBlockStart:ye,marginBlockEnd:ye,marginInline:ye,marginInlineStart:ye,marginInlineEnd:ye,fontSize:ye,backgroundPositionX:ye,backgroundPositionY:ye,...t5,zIndex:fM,fillOpacity:Bu,strokeOpacity:Bu,numOctaves:fM},n5={...yA,color:Mt,backgroundColor:Mt,outlineColor:Mt,fill:Mt,stroke:Mt,borderColor:Mt,borderTopColor:Mt,borderRightColor:Mt,borderBottomColor:Mt,borderLeftColor:Mt,filter:eT,WebkitFilter:eT,mask:tT,WebkitMask:tT},WU=t=>n5[t],r5=new Set([eT,tT]);function XU(t,e){let n=WU(t);return r5.has(n)||(n=fr),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const i5=new Set(["auto","none","0"]);function o5(t,e,n){let r=0,i;for(;r<t.length&&!i;){const o=t[r];typeof o=="string"&&!i5.has(o)&&$u(o).values.length&&(i=t[r]),r++}if(i&&n)for(const o of e)t[o]=XU(n,i)}class a5 extends dA{constructor(e,n,r,i,o){super(e,n,r,i,o,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let p=0;p<e.length;p++){let y=e[p];if(typeof y=="string"&&(y=y.trim(),iA(y))){const v=VU(y,n.current);v!==void 0&&(e[p]=v),p===e.length-1&&(this.finalKeyframe=y)}}if(this.resolveNoneKeyframes(),!FU.has(r)||e.length!==2)return;const[i,o]=e,s=cM(i),u=cM(o),c=XE(i),f=XE(o);if(c!==f&&zi[r]){this.needsMeasurement=!0;return}if(s!==u)if(oM(s)&&oM(u))for(let p=0;p<e.length;p++){const y=e[p];typeof y=="string"&&(e[p]=parseFloat(y))}else zi[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:n}=this,r=[];for(let i=0;i<e.length;i++)(e[i]===null||J8(e[i]))&&r.push(i);r.length&&o5(e,r,n)}measureInitialState(){const{element:e,unresolvedKeyframes:n,name:r}=this;if(!e||!e.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=zi[r](e.measureViewportBox(),window.getComputedStyle(e.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&e.getValue(r,i).jump(i,!1)}measureEndState(){var u;const{element:e,name:n,unresolvedKeyframes:r}=this;if(!e||!e.current)return;const i=e.getValue(n);i&&i.jump(this.measuredOrigin,!1);const o=r.length-1,s=r[o];r[o]=zi[n](e.measureViewportBox(),window.getComputedStyle(e.current)),s!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=s),(u=this.removedTransforms)!=null&&u.length&&this.removedTransforms.forEach(([c,f])=>{e.getValue(c).set(f)}),this.resolveNoneKeyframes()}}const s5=new Set(["opacity","clipPath","filter","transform"]);function JU(t,e,n){if(t==null)return[];if(t instanceof EventTarget)return[t];if(typeof t=="string"){let r=document;const i=(n==null?void 0:n[t])??r.querySelectorAll(t);return i?Array.from(i):[]}return Array.from(t).filter(r=>r!=null)}const ZU=(t,e)=>e&&typeof t=="number"?e.transform(t):t;function nT(t){return oU(t)&&"offsetHeight"in t}const{schedule:vA}=bU(queueMicrotask,!1),or={x:!1,y:!1};function QU(){return or.x||or.y}function l5(t){return t==="x"||t==="y"?or[t]?null:(or[t]=!0,()=>{or[t]=!1}):or.x||or.y?null:(or.x=or.y=!0,()=>{or.x=or.y=!1})}function eq(t,e){const n=JU(t),r=new AbortController,i={passive:!0,...e,signal:r.signal};return[n,i,()=>r.abort()]}function u5(t){return!(t.pointerType==="touch"||QU())}function c5(t,e,n={}){const[r,i,o]=eq(t,n);return r.forEach(s=>{let u=!1,c=!1,f;const p=()=>{s.removeEventListener("pointerleave",w)},y=S=>{f&&(f(S),f=void 0),p()},v=S=>{u=!1,window.removeEventListener("pointerup",v),window.removeEventListener("pointercancel",v),c&&(c=!1,y(S))},x=()=>{u=!0,window.addEventListener("pointerup",v,i),window.addEventListener("pointercancel",v,i)},w=S=>{if(S.pointerType!=="touch"){if(u){c=!0;return}y(S)}},A=S=>{if(!u5(S))return;c=!1;const C=e(s,S);typeof C=="function"&&(f=C,s.addEventListener("pointerleave",w,i))};s.addEventListener("pointerenter",A,i),s.addEventListener("pointerdown",x,i)}),o}const tq=(t,e)=>e?t===e?!0:tq(t,e.parentElement):!1,bA=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1,f5=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function d5(t){return f5.has(t.tagName)||t.isContentEditable===!0}const h5=new Set(["INPUT","SELECT","TEXTAREA"]);function p5(t){return h5.has(t.tagName)||t.isContentEditable===!0}const Md=new WeakSet;function dM(t){return e=>{e.key==="Enter"&&t(e)}}function py(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const m5=(t,e)=>{const n=t.currentTarget;if(!n)return;const r=dM(()=>{if(Md.has(n))return;py(n,"down");const i=dM(()=>{py(n,"up")}),o=()=>py(n,"cancel");n.addEventListener("keyup",i,e),n.addEventListener("blur",o,e)});n.addEventListener("keydown",r,e),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),e)};function hM(t){return bA(t)&&!QU()}const pM=new WeakSet;function g5(t,e,n={}){const[r,i,o]=eq(t,n),s=u=>{const c=u.currentTarget;if(!hM(u)||pM.has(u))return;Md.add(c),n.stopPropagation&&pM.add(u);const f=e(c,u),p=(x,w)=>{window.removeEventListener("pointerup",y),window.removeEventListener("pointercancel",v),Md.has(c)&&Md.delete(c),hM(x)&&typeof f=="function"&&f(x,{success:w})},y=x=>{p(x,c===window||c===document||n.useGlobalTarget||tq(c,x.target))},v=x=>{p(x,!1)};window.addEventListener("pointerup",y,i),window.addEventListener("pointercancel",v,i)};return r.forEach(u=>{(n.useGlobalTarget?window:u).addEventListener("pointerdown",s,i),nT(u)&&(u.addEventListener("focus",f=>m5(f,i)),!d5(u)&&!u.hasAttribute("tabindex")&&(u.tabIndex=0))}),o}function xA(t){return oU(t)&&"ownerSVGElement"in t}const Pd=new WeakMap;let ji;const nq=(t,e,n)=>(r,i)=>i&&i[0]?i[0][t+"Size"]:xA(r)&&"getBBox"in r?r.getBBox()[e]:r[n],y5=nq("inline","width","offsetWidth"),v5=nq("block","height","offsetHeight");function b5({target:t,borderBoxSize:e}){var n;(n=Pd.get(t))==null||n.forEach(r=>{r(t,{get width(){return y5(t,e)},get height(){return v5(t,e)}})})}function x5(t){t.forEach(b5)}function T5(){typeof ResizeObserver>"u"||(ji=new ResizeObserver(x5))}function S5(t,e){ji||T5();const n=JU(t);return n.forEach(r=>{let i=Pd.get(r);i||(i=new Set,Pd.set(r,i)),i.add(e),ji==null||ji.observe(r)}),()=>{n.forEach(r=>{const i=Pd.get(r);i==null||i.delete(e),i!=null&&i.size||ji==null||ji.unobserve(r)})}}const Rd=new Set;let Za;function A5(){Za=()=>{const t={get width(){return window.innerWidth},get height(){return window.innerHeight}};Rd.forEach(e=>e(t))},window.addEventListener("resize",Za)}function w5(t){return Rd.add(t),Za||A5(),()=>{Rd.delete(t),!Rd.size&&typeof Za=="function"&&(window.removeEventListener("resize",Za),Za=void 0)}}function mM(t,e){return typeof t=="function"?w5(t):S5(t,e)}function _5(t){return xA(t)&&t.tagName==="svg"}const C5=[...YU,Mt,fr],E5=t=>C5.find(KU(t)),gM=()=>({translate:0,scale:1,origin:0,originPoint:0}),Qa=()=>({x:gM(),y:gM()}),yM=()=>({min:0,max:0}),It=()=>({x:yM(),y:yM()}),M5=new WeakMap;function Xh(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}function Vu(t){return typeof t=="string"||Array.isArray(t)}const TA=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],SA=["initial",...TA];function Jh(t){return Xh(t.animate)||SA.some(e=>Vu(t[e]))}function rq(t){return!!(Jh(t)||t.variants)}function P5(t,e,n){for(const r in e){const i=e[r],o=n[r];if(nn(i))t.addValue(r,i);else if(nn(o))t.addValue(r,ys(i,{owner:t}));else if(o!==i)if(t.hasValue(r)){const s=t.getValue(r);s.liveStyle===!0?s.jump(i):s.hasAnimated||s.set(i)}else{const s=t.getStaticValue(r);t.addValue(r,ys(s!==void 0?s:i,{owner:t}))}}for(const r in n)e[r]===void 0&&t.removeValue(r);return e}const rT={current:null},iq={current:!1},R5=typeof window<"u";function N5(){if(iq.current=!0,!!R5)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>rT.current=t.matches;t.addEventListener("change",e),e()}else rT.current=!1}const vM=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let Fd={};function oq(t){Fd=t}function O5(){return Fd}class D5{scrapeMotionValuesFromProps(e,n,r){return{}}constructor({parent:e,props:n,presenceContext:r,reducedMotionConfig:i,skipAnimations:o,blockInitialAnimation:s,visualState:u},c={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=dA,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,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 x=an.now();this.renderScheduledAt<x&&(this.renderScheduledAt=x,at.render(this.render,!1,!0))};const{latestValues:f,renderState:p}=u;this.latestValues=f,this.baseTarget={...f},this.initialValues=n.initial?{...f}:{},this.renderState=p,this.parent=e,this.props=n,this.presenceContext=r,this.depth=e?e.depth+1:0,this.reducedMotionConfig=i,this.skipAnimationsConfig=o,this.options=c,this.blockInitialAnimation=!!s,this.isControllingVariants=Jh(n),this.isVariantNode=rq(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:y,...v}=this.scrapeMotionValuesFromProps(n,{},this);for(const x in v){const w=v[x];f[x]!==void 0&&nn(w)&&w.set(f[x])}}mount(e){var n,r;if(this.hasBeenMounted)for(const i in this.initialValues)(n=this.values.get(i))==null||n.jump(this.initialValues[i]),this.latestValues[i]=this.initialValues[i];this.current=e,M5.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((i,o)=>this.bindToMotionValue(o,i)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(iq.current||N5(),this.shouldReduceMotion=rT.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,(r=this.parent)==null||r.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){var e;this.projection&&this.projection.unmount(),Zi(this.notifyUpdate),Zi(this.render),this.valueSubscriptions.forEach(n=>n()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(e=this.parent)==null||e.removeChild(this);for(const n in this.events)this.events[n].clear();for(const n in this.features){const r=this.features[n];r&&(r.unmount(),r.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,n){if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),n.accelerate&&s5.has(e)&&this.current instanceof HTMLElement){const{factory:s,keyframes:u,times:c,ease:f,duration:p}=n.accelerate,y=new qU({element:this.current,name:e,keyframes:u,times:c,ease:f,duration:cr(p)}),v=s(y);this.valueSubscriptions.set(e,()=>{v(),y.cancel()});return}const r=Ks.has(e);r&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",s=>{this.latestValues[e]=s,this.props.onUpdate&&at.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let o;typeof window<"u"&&window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,e,n)),this.valueSubscriptions.set(e,()=>{i(),o&&o(),n.owner&&n.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in Fd){const n=Fd[e];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[e]&&i&&r(this.props)&&(this.features[e]=new i(this)),this.features[e]){const o=this.features[e];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):It()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,n){this.latestValues[e]=n}update(e,n){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<vM.length;r++){const i=vM[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o="on"+i,s=e[o];s&&(this.propEventSubscriptions[i]=this.on(i,s))}this.prevMotionValues=P5(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}
vendor: 6,460 bytes, line 72
72addVariantChild(e){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(e),()=>n.variantChildren.delete(e)}addValue(e,n){const r=this.values.get(e);n!==r&&(r&&this.removeValue(e),this.bindToMotionValue(e,n),this.values.set(e,n),this.latestValues[e]=n.get())}removeValue(e){this.values.delete(e);const n=this.valueSubscriptions.get(e);n&&(n(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,n){if(this.props.values&&this.props.values[e])return this.props.values[e];let r=this.values.get(e);return r===void 0&&n!==void 0&&(r=ys(n===null?void 0:n,{owner:this}),this.addValue(e,r)),r}readValue(e,n){let r=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return r!=null&&(typeof r=="string"&&(iU(r)||aU(r))?r=parseFloat(r):!E5(r)&&fr.test(n)&&(r=XU(e,n)),this.setBaseTarget(e,nn(r)?r.get():r)),nn(r)?r.get():r}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){var o;const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const s=mA(this.props,n,(o=this.presenceContext)==null?void 0:o.custom);s&&(r=s[e])}if(n&&r!==void 0)return r;const i=this.getBaseTargetFromProps(this.props,e);return i!==void 0&&!nn(i)?i:this.initialValues[e]!==void 0&&r===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new tA),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}scheduleRenderMicrotask(){vA.render(this.render)}}class aq extends D5{constructor(){super(...arguments),this.KeyframeResolver=a5}sortInstanceNodePosition(e,n){return e.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(e,n){const r=e.style;return r?r[n]:void 0}removeValueFromRenderState(e,{vars:n,style:r}){delete n[e],delete r[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;nn(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class eo{constructor(e){this.isMounted=!1,this.node=e}update(){}}function sq({top:t,left:e,right:n,bottom:r}){return{x:{min:e,max:n},y:{min:t,max:r}}}function I5({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function k5(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),r=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function my(t){return t===void 0||t===1}function iT({scale:t,scaleX:e,scaleY:n}){return!my(t)||!my(e)||!my(n)}function No(t){return iT(t)||lq(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function lq(t){return bM(t.x)||bM(t.y)}function bM(t){return t&&t!=="0%"}function Hd(t,e,n){const r=t-n,i=e*r;return n+i}function xM(t,e,n,r,i){return i!==void 0&&(t=Hd(t,i,r)),Hd(t,n,r)+e}function oT(t,e=0,n=1,r,i){t.min=xM(t.min,e,n,r,i),t.max=xM(t.max,e,n,r,i)}function uq(t,{x:e,y:n}){oT(t.x,e.translate,e.scale,e.originPoint),oT(t.y,n.translate,n.scale,n.originPoint)}const TM=.999999999999,SM=1.0000000000001;function L5(t,e,n,r=!1){const i=n.length;if(!i)return;e.x=e.y=1;let o,s;for(let u=0;u<i;u++){o=n[u],s=o.projectionDelta;const{visualElement:c}=o.options;c&&c.props.style&&c.props.style.display==="contents"||(r&&o.options.layoutScroll&&o.scroll&&o!==o.root&&ts(t,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),s&&(e.x*=s.x.scale,e.y*=s.y.scale,uq(t,s)),r&&No(o.latestValues)&&ts(t,o.latestValues))}e.x<SM&&e.x>TM&&(e.x=1),e.y<SM&&e.y>TM&&(e.y=1)}function es(t,e){t.min=t.min+e,t.max=t.max+e}function AM(t,e,n,r,i=.5){const o=pt(t.min,t.max,i);oT(t,e,n,o,r)}function ts(t,e){AM(t.x,e.x,e.scaleX,e.scale,e.originX),AM(t.y,e.y,e.scaleY,e.scale,e.originY)}function cq(t,e){return sq(k5(t.getBoundingClientRect(),e))}function U5(t,e,n){const r=cq(t,n),{scroll:i}=e;return i&&(es(r.x,i.offset.x),es(r.y,i.offset.y)),r}const q5={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},B5=zs.length;function $5(t,e,n){let r="",i=!0;for(let o=0;o<B5;o++){const s=zs[o],u=t[s];if(u===void 0)continue;let c=!0;if(typeof u=="number")c=u===(s.startsWith("scale")?1:0);else{const f=parseFloat(u);c=s.startsWith("scale")?f===1:f===0}if(!c||n){const f=ZU(u,yA[s]);if(!c){i=!1;const p=q5[s]||s;r+=`${p}(${f}) `}n&&(e[s]=f)}}return r=r.trim(),n?r=n(e,i?"":r):i&&(r="none"),r}function AA(t,e,n){const{style:r,vars:i,transformOrigin:o}=t;let s=!1,u=!1;for(const c in e){const f=e[c];if(Ks.has(c)){s=!0;continue}else if(TU(c)){i[c]=f;continue}else{const p=ZU(f,yA[c]);c.startsWith("origin")?(u=!0,o[c]=p):r[c]=p}}if(e.transform||(s||n?r.transform=$5(e,t.transform,n):r.transform&&(r.transform="none")),u){const{originX:c="50%",originY:f="50%",originZ:p=0}=o;r.transformOrigin=`${c} ${f} ${p}`}}function fq(t,{style:e,vars:n},r,i){const o=t.style;let s;for(s in e)o[s]=e[s];i==null||i.applyProjectionStyles(o,r);for(s in n)o.setProperty(s,n[s])}function wM(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const su={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(ye.test(t))t=parseFloat(t);else return t;const n=wM(t,e.target.x),r=wM(t,e.target.y);return`${n}% ${r}%`}},V5={correct:(t,{treeScale:e,projectionDelta:n})=>{const r=t,i=fr.parse(t);if(i.length>5)return r;const o=fr.createTransformer(t),s=typeof i[0]!="number"?1:0,u=n.x.scale*e.x,c=n.y.scale*e.y;i[0+s]/=u,i[1+s]/=c;const f=pt(u,c,.5);return typeof i[2+s]=="number"&&(i[2+s]/=f),typeof i[3+s]=="number"&&(i[3+s]/=f),o(i)}},aT={borderRadius:{...su,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:su,borderTopRightRadius:su,borderBottomLeftRadius:su,borderBottomRightRadius:su,boxShadow:V5};function dq(t,{layout:e,layoutId:n}){return Ks.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!aT[t]||t==="opacity")}function wA(t,e,n){var s;const r=t.style,i=e==null?void 0:e.style,o={};if(!r)return o;for(const u in r)(nn(r[u])||i&&nn(i[u])||dq(u,t)||((s=n==null?void 0:n.getValue(u))==null?void 0:s.liveStyle)!==void 0)&&(o[u]=r[u]);return o}function j5(t){return window.getComputedStyle(t)}class F5 extends aq{constructor(){super(...arguments),this.type="html",this.renderInstance=fq}readValueFromInstance(e,n){var r;if(Ks.has(n))return(r=this.projection)!=null&&r.isProjecting?Gx(n):l8(e,n);{const i=j5(e),o=(TU(n)?i.getPropertyValue(n):i[n])||0;
vendor: 3,721 bytes, line 72
72return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(e,{transformPagePoint:n}){return cq(e,n)}build(e,n,r){AA(e,n,r.transformTemplate)}scrapeMotionValuesFromProps(e,n,r){return wA(e,n,r)}}const H5={offset:"stroke-dashoffset",array:"stroke-dasharray"},G5={offset:"strokeDashoffset",array:"strokeDasharray"};function z5(t,e,n=1,r=0,i=!0){t.pathLength=1;const o=i?H5:G5;t[o.offset]=`${-r}`,t[o.array]=`${e} ${n}`}const K5=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function hq(t,{attrX:e,attrY:n,attrScale:r,pathLength:i,pathSpacing:o=1,pathOffset:s=0,...u},c,f,p){if(AA(t,u,f),c){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:y,style:v}=t;y.transform&&(v.transform=y.transform,delete y.transform),(v.transform||y.transformOrigin)&&(v.transformOrigin=y.transformOrigin??"50% 50%",delete y.transformOrigin),v.transform&&(v.transformBox=(p==null?void 0:p.transformBox)??"fill-box",delete y.transformBox);for(const x of K5)y[x]!==void 0&&(v[x]=y[x],delete y[x]);e!==void 0&&(y.x=e),n!==void 0&&(y.y=n),r!==void 0&&(y.scale=r),i!==void 0&&z5(y,i,o,s,!1)}const pq=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"]),mq=t=>typeof t=="string"&&t.toLowerCase()==="svg";function Y5(t,e,n,r){fq(t,e,void 0,r);for(const i in e.attrs)t.setAttribute(pq.has(i)?i:gA(i),e.attrs[i])}function gq(t,e,n){const r=wA(t,e,n);for(const i in t)if(nn(t[i])||nn(e[i])){const o=zs.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[o]=t[i]}return r}class W5 extends aq{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=It}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(Ks.has(n)){const r=WU(n);return r&&r.default||0}return n=pq.has(n)?n:gA(n),e.getAttribute(n)}scrapeMotionValuesFromProps(e,n,r){return gq(e,n,r)}build(e,n,r){hq(e,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(e,n,r,i){Y5(e,n,r,i)}mount(e){this.isSVGTag=mq(e.tagName),super.mount(e)}}const X5=SA.length;function yq(t){if(!t)return;if(!t.isControllingVariants){const n=t.parent?yq(t.parent)||{}:{};return t.props.initial!==void 0&&(n.initial=t.props.initial),n}const e={};for(let n=0;n<X5;n++){const r=SA[n],i=t.props[r];(Vu(i)||i===!1)&&(e[r]=i)}return e}function vq(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}const J5=[...TA].reverse(),Z5=TA.length;function Q5(t){return e=>Promise.all(e.map(({animation:n,options:r})=>W8(t,n,r)))}function eG(t){let e=Q5(t),n=_M(),r=!0;const i=c=>(f,p)=>{var v;const y=ls(t,p,c==="exit"?(v=t.presenceContext)==null?void 0:v.custom:void 0);if(y){const{transition:x,transitionEnd:w,...A}=y;f={...f,...A,...w}}return f};function o(c){e=c(t)}function s(c){const{props:f}=t,p=yq(t.parent)||{},y=[],v=new Set;let x={},w=1/0;for(let S=0;S<Z5;S++){const C=J5[S],P=n[C],M=f[C]!==void 0?f[C]:p[C],O=Vu(M),E=C===c?P.isActive:null;E===!1&&(w=S);let N=M===p[C]&&M!==f[C]&&O;if(N&&r&&t.manuallyAnimateOnMount&&(N=!1),P.protectedKeys={...x},!P.isActive&&E===null||!M&&!P.prevProp||Xh(M)||typeof M=="boolean")continue;if(C==="exit"&&P.isActive&&E!==!0){P.prevResolvedValues&&(x={...x,...P.prevResolvedValues});continue}const D=tG(P.prevProp,M);let L=D||C===c&&P.isActive&&!N&&O||S>w&&O,U=!1;const F=Array.isArray(M)?M:[M];let B=F.reduce(i(C),{});E===!1&&(B={});const{prevResolvedValues:z={}}
vendor: 4,232 bytes, line 72
72=P,W={...z,...B},ne=G=>{L=!0,v.has(G)&&(U=!0,v.delete(G)),P.needsAnimating[G]=!0;const te=t.getValue(G);te&&(te.liveStyle=!1)};for(const G in W){const te=B[G],ue=z[G];if(x.hasOwnProperty(G))continue;let q=!1;Jx(te)&&Jx(ue)?q=!vq(te,ue):q=te!==ue,q?te!=null?ne(G):v.add(G):te!==void 0&&v.has(G)?ne(G):P.protectedKeys[G]=!0}P.prevProp=M,P.prevResolvedValues=B,P.isActive&&(x={...x,...B}),r&&t.blockInitialAnimation&&(L=!1);const J=N&&D;L&&(!J||U)&&y.push(...F.map(G=>{const te={type:C};if(typeof G=="string"&&r&&!J&&t.manuallyAnimateOnMount&&t.parent){const{parent:ue}=t,q=ls(ue,G);if(ue.enteringChildren&&q){const{delayChildren:Z}=q.transition||{};te.delay=$U(ue.enteringChildren,t,Z)}}return{animation:G,options:te}}))}if(v.size){const S={};if(typeof f.initial!="boolean"){const C=ls(t,Array.isArray(f.initial)?f.initial[0]:f.initial);C&&C.transition&&(S.transition=C.transition)}v.forEach(C=>{const P=t.getBaseTarget(C),M=t.getValue(C);M&&(M.liveStyle=!0),S[C]=P??null}),y.push({animation:S})}let A=!!y.length;return r&&(f.initial===!1||f.initial===f.animate)&&!t.manuallyAnimateOnMount&&(A=!1),r=!1,A?e(y):Promise.resolve()}function u(c,f){var y;if(n[c].isActive===f)return Promise.resolve();(y=t.variantChildren)==null||y.forEach(v=>{var x;return(x=v.animationState)==null?void 0:x.setActive(c,f)}),n[c].isActive=f;const p=s(c);for(const v in n)n[v].protectedKeys={};return p}return{animateChanges:s,setActive:u,setAnimateFunction:o,getState:()=>n,reset:()=>{n=_M()}}}function tG(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!vq(e,t):!1}function _o(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function _M(){return{animate:_o(!0),whileInView:_o(),whileHover:_o(),whileTap:_o(),whileDrag:_o(),whileFocus:_o(),exit:_o()}}function CM(t,e){t.min=e.min,t.max=e.max}function nr(t,e){CM(t.x,e.x),CM(t.y,e.y)}function EM(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}const bq=1e-4,nG=1-bq,rG=1+bq,xq=.01,iG=0-xq,oG=0+xq;function sn(t){return t.max-t.min}function aG(t,e,n){return Math.abs(t-e)<=n}function MM(t,e,n,r=.5){t.origin=r,t.originPoint=pt(e.min,e.max,t.origin),t.scale=sn(n)/sn(e),t.translate=pt(n.min,n.max,t.origin)-t.originPoint,(t.scale>=nG&&t.scale<=rG||isNaN(t.scale))&&(t.scale=1),(t.translate>=iG&&t.translate<=oG||isNaN(t.translate))&&(t.translate=0)}function Eu(t,e,n,r){MM(t.x,e.x,n.x,r?r.originX:void 0),MM(t.y,e.y,n.y,r?r.originY:void 0)}function PM(t,e,n){t.min=n.min+e.min,t.max=t.min+sn(e)}function sG(t,e,n){PM(t.x,e.x,n.x),PM(t.y,e.y,n.y)}function RM(t,e,n){t.min=e.min-n.min,t.max=t.min+sn(e)}function Gd(t,e,n){RM(t.x,e.x,n.x),RM(t.y,e.y,n.y)}function NM(t,e,n,r,i){return t-=e,t=Hd(t,1/n,r),i!==void 0&&(t=Hd(t,1/i,r)),t}function lG(t,e=0,n=1,r=.5,i,o=t,s=t){if(Ar.test(e)&&(e=parseFloat(e),e=pt(s.min,s.max,e/100)-s.min),typeof e!="number")return;let u=pt(o.min,o.max,r);t===o&&(u-=e),t.min=NM(t.min,e,n,u,i),t.max=NM(t.max,e,n,u,i)}function OM(t,e,[n,r,i],o,s){lG(t,e[n],e[r],e[i],e.scale,o,s)}const uG=["x","scaleX","originX"],cG=["y","scaleY","originY"];function DM(t,e,n,r){OM(t.x,e,uG,n?n.x:void 0,r?r.x:void 0),OM(t.y,e,cG,n?n.y:void 0,r?r.y:void 0)}function IM(t){return t.translate===0&&t.scale===1}function Tq(t){return IM(t.x)&&IM(t.y)}function kM(t,e){return t.min===e.min&&t.max===e.max}function fG(t,e){return kM(t.x,e.x)&&kM(t.y,e.y)}function LM(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function Sq(t,e){return LM(t.x,e.x)&&LM(t.y,e.y)}function UM(t){return sn(t.x)/sn(t.y)}function qM(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}function Tr(t){return[t("x"),t("y")]}function dG(t,e,n){let r="";const i=t.x.translate/e.x,o=t.y.translate/e.y,s=(n==null?void 0:n.z)||0;if((i||o||s)&&(r=`translate3d(${i}px, ${o}px, ${s}px) `),(e.x!==1||e.y!==1)&&(r+=`scale(${1/e.x}, ${1/e.y}) `),n){const{transformPerspective:f,rotate:p,rotateX:y,rotateY:v,skewX:x,skewY:w}=n;f&&(r=`perspective(${f}px) ${r}`),p&&(r+=`rotate(${p}deg) `),y&&(r+=`rotateX(${y}deg) `),v&&(r+=`rotateY(${v}deg) `),x&&(r+=`skewX(${x}deg) `),w&&(r+=`skewY(${w}deg) `)}const u=t.x.scale*e.x,c=t.y.scale*e.y;return(u!==1||c!==1)&&(r+=`scale(${u}, ${c}
72)`),r||"none"}const Aq=["TopLeft","TopRight","BottomLeft","BottomRight"],hG=Aq.length,BM=t=>typeof t=="string"?parseFloat(t):t,$M=t=>typeof t=="number"||ye.test(t);function pG(t,e,n,r,i,o){i?(t.opacity=pt(0,n.opacity??1,mG(r)),t.opacityExit=pt(e.opacity??1,0,gG(r))):o&&(t.opacity=pt(e.opacity??1,n.opacity??1,r));for(let s=0;s<hG;s++){const u=`border${Aq[s]}Radius`;let c=VM(e,u),f=VM(n,u);if(c===void 0&&f===void 0)continue;c||(c=0),f||(f=0),c===0||f===0||$M(c)===$M(f)?(t[u]=Math.max(pt(BM(c),BM(f),r),0),(Ar.test(f)||Ar.test(c))&&(t[u]+="%")):t[u]=f}(e.rotate||n.rotate)&&(t.rotate=pt(e.rotate||0,n.rotate||0,r))}function VM(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const mG=wq(0,.5,mU),gG=wq(.5,.95,Yn);function wq(t,e,n){return r=>r<t?0:r>e?1:n(qu(t,e,r))}function yG(t,e,n){const r=nn(t)?t:ys(t);return r.start(pA("",r,e,n)),r.animation}function ju(t,e,n,r={passive:!0}){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n)}const vG=(t,e)=>t.depth-e.depth;class bG{constructor(){this.children=[],this.isDirty=!1}add(e){QS(this.children,e),this.isDirty=!0}remove(e){Bd(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(vG),this.isDirty=!1,this.children.forEach(e)}}function xG(t,e){const n=an.now(),r=({timestamp:i})=>{const o=i-n;o>=e&&(Zi(r),t(o-e))};return at.setup(r,!0),()=>Zi(r)}function Nd(t){return nn(t)?t.get():t}class TG{constructor(){this.members=[]}add(e){QS(this.members,e);for(let n=this.members.length-1;n>=0;n--){const r=this.members[n];if(r===e||r===this.lead||r===this.prevLead)continue;const i=r.instance;i&&i.isConnected===!1&&r.isPresent!==!1&&!r.snapshot&&Bd(this.members,r)}e.scheduleRender()}remove(e){if(Bd(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(e){const n=this.members.findIndex(i=>e===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const o=this.members[i],s=o.instance;if(o.isPresent!==!1&&(!s||s.isConnected!==!1)){r=o;break}}return r?(this.promote(r),!0):!1}promote(e,n){const r=this.lead;if(e!==r&&(this.prevLead=r,this.lead=e,e.show(),r)){r.instance&&r.scheduleRender(),e.scheduleRender();const i=r.options.layoutDependency,o=e.options.layoutDependency;if(!(i!==void 0&&o!==void 0&&i===o)){const c=r.instance;c&&c.isConnected===!1&&!r.snapshot||(e.resumeFrom=r,n&&(e.resumeFrom.preserveOpacity=!0),r.snapshot&&(e.snapshot=r.snapshot,e.snapshot.latestValues=r.animationValues||r.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0))}const{crossfade:u}=e.options;u===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:n,resumingFrom:r}=e;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}const Od={hasAnimatedSinceResize:!0,hasEverUpdated:!1},gy=["","X","Y","Z"],SG=1e3;let AG=0;function yy(t,e,n,r){const{latestValues:i}=e;i[t]&&(n[t]=i[t],e.setStaticValue(t,0),r&&(r[t]=0))}function _q(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const n=GU(e);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:o}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",at,!(i||o))}const{parent:r}=t;r&&!r.hasCheckedOptimisedAppear&&_q(r)}function Cq({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(s={},u=e==null?void 0:e()){this.id=AG++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>
vendor: 14,579 bytes, line 72
72{this.projectionUpdateScheduled=!1,this.nodes.forEach(CG),this.nodes.forEach(RG),this.nodes.forEach(NG),this.nodes.forEach(EG)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=u?u.root||u:this,this.path=u?[...u.path,u]:[],this.parent=u,this.depth=u?u.depth+1:0;for(let c=0;c<this.path.length;c++)this.path[c].shouldResetTransform=!0;this.root===this&&(this.nodes=new bG)}addEventListener(s,u){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new tA),this.eventHandlers.get(s).add(u)}notifyListeners(s,...u){const c=this.eventHandlers.get(s);c&&c.notify(...u)}hasListeners(s){return this.eventHandlers.has(s)}mount(s){if(this.instance)return;this.isSVG=xA(s)&&!_5(s),this.instance=s;const{layoutId:u,layout:c,visualElement:f}=this.options;if(f&&!f.current&&f.mount(s),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(c||u)&&(this.isLayoutDirty=!0),t){let p,y=0;const v=()=>this.root.updateBlockedByResize=!1;at.read(()=>{y=window.innerWidth}),t(s,()=>{const x=window.innerWidth;x!==y&&(y=x,this.root.updateBlockedByResize=!0,p&&p(),p=xG(v,250),Od.hasAnimatedSinceResize&&(Od.hasAnimatedSinceResize=!1,this.nodes.forEach(HM)))})}u&&this.root.registerSharedNode(u,this),this.options.animate!==!1&&f&&(u||c)&&this.addEventListener("didUpdate",({delta:p,hasLayoutChanged:y,hasRelativeLayoutChanged:v,layout:x})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const w=this.options.transition||f.getDefaultTransition()||LG,{onLayoutAnimationStart:A,onLayoutAnimationComplete:S}=f.getProps(),C=!this.targetLayout||!Sq(this.targetLayout,x),P=!y&&v;if(this.options.layoutRoot||this.resumeFrom||P||y&&(C||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const M={...hA(w,"layout"),onPlay:A,onComplete:S};(f.shouldReduceMotion||this.options.layoutRoot)&&(M.delay=0,M.type=!1),this.startAnimation(M),this.setAnimationOrigin(p,P)}else y||HM(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=x})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Zi(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(OG),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&_q(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let p=0;p<this.path.length;p++){const y=this.path[p];y.shouldResetTransform=!0,y.updateScroll("snapshot"),y.options.layoutRoot&&y.willUpdate(!1)}const{layoutId:u,layout:c}=this.options;if(u===void 0&&!c)return;const f=this.getTransformTemplate();this.prevTransformTemplateValue=f?f(this.latestValues,""):void 0,this.updateSnapshot(),s&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(jM);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(FM);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(PG),this.nodes.forEach(wG),this.nodes.forEach(_G)):this.nodes.forEach(FM),this.clearAllSnapshots();const u=an.now();Wt.delta=Er(0,1e3/60,u-Wt.timestamp),Wt.timestamp=u,Wt.isProcessing=!0,ly.update.process(Wt),ly.preRender.process(Wt),ly.render.process(Wt),Wt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,vA.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(MG),this.sharedNodes.forEach(DG)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,at.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){at.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!sn(this.snapshot.measuredBox.x)&&!sn(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let c=0;c<this.path.length;c++)this.path[c].updateScroll();const s=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=It(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:u}=this.options;u&&u.notify("LayoutMeasure",this.layout.layoutBox,s?s.layoutBox:void 0)}updateScroll(s="measure"){let u=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===s&&(u=!1),u&&this.instance){const c=r(this.instance);this.scroll={animationId:this.root.animationId,phase:s,isRoot:c,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:c}}}resetTransform(){if(!i)return;const s=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,u=this.projectionDelta&&!Tq(this.projectionDelta),c=this.getTransformTemplate(),f=c?c(this.latestValues,""):void 0,p=f!==this.prevTransformTemplateValue;s&&this.instance&&(u||No(this.latestValues)||p)&&(i(this.instance,f),this.shouldResetTransform=!1,this.scheduleRender())}measure(s=!0){const u=this.measurePageBox();let c=this.removeElementScroll(u);return s&&(c=this.removeTransform(c)),UG(c),{animationId:this.root.animationId,measuredBox:u,layoutBox:c,latestValues:{},source:this.id}}measurePageBox(){var f;const{visualElement:s}=this.options;if(!s)return It();const u=s.measureViewportBox();if(!(((f=this.scroll)==null?void 0:f.wasRoot)||this.path.some(qG))){const{scroll:p}=this.root;p&&(es(u.x,p.offset.x),es(u.y,p.offset.y))}return u}removeElementScroll(s){var c;const u=It();if(nr(u,s),(c=this.scroll)!=null&&c.wasRoot)return u;for(let f=0;f<this.path.length;f++){const p=this.path[f],{scroll:y,options:v}=p;p!==this.root&&y&&v.layoutScroll&&(y.wasRoot&&nr(u,s),es(u.x,y.offset.x),es(u.y,y.offset.y))}return u}applyTransform(s,u=!1){const c=It();nr(c,s);for(let f=0;f<this.path.length;f++){const p=this.path[f];!u&&p.options.layoutScroll&&p.scroll&&p!==p.root&&ts(c,{x:-p.scroll.offset.x,y:-p.scroll.offset.y}),No(p.latestValues)&&ts(c,p.latestValues)}return No(this.latestValues)&&ts(c,this.latestValues),c}removeTransform(s){const u=It();nr(u,s);for(let c=0;c<this.path.length;c++){const f=this.path[c];if(!f.instance||!No(f.latestValues))continue;iT(f.latestValues)&&f.updateSnapshot();const p=It(),y=f.measurePageBox();nr(p,y),DM(u,f.latestValues,f.snapshot?f.snapshot.layoutBox:void 0,p)}return No(this.latestValues)&&DM(u,this.latestValues),u}setTargetDelta(s){this.targetDelta=s,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(s){this.options={...this.options,...s,crossfade:s.crossfade!==void 0?s.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!==Wt.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(s=!1){var x;const u=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=u.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=u.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=u.isSharedProjectionDirty);const c=!!this.resumingFrom||this!==u;if(!(s||c&&this.isSharedProjectionDirty||this.isProjectionDirty||(x=this.parent)!=null&&x.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:p,layoutId:y}=this.options;if(!this.layout||!(p||y))return;this.resolvedRelativeTargetAt=Wt.timestamp;const v=this.getClosestProjectingParent();v&&this.linkedParentVersion!==v.layoutVersion&&!v.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(v&&v.layout?this.createRelativeTarget(v,this.layout.layoutBox,v.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=It(),this.targetWithTransforms=It()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),sG(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):nr(this.target,this.layout.layoutBox),uq(this.target,this.targetDelta)):nr(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,v&&!!v.resumingFrom==!!this.resumingFrom&&!v.options.layoutScroll&&v.target&&this.animationProgress!==1?this.createRelativeTarget(v,this.target,v.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||iT(this.parent.latestValues)||lq(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(s,u,c){this.relativeParent=s,this.linkedParentVersion=s.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=It(),this.relativeTargetOrigin=It(),Gd(this.relativeTargetOrigin,u,c),nr(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){var w;const s=this.getLead(),u=!!this.resumingFrom||this!==s;let c=!0;if((this.isProjectionDirty||(w=this.parent)!=null&&w.isProjectionDirty)&&(c=!1),u&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(c=!1),this.resolvedRelativeTargetAt===Wt.timestamp&&(c=!1),c)return;const{layout:f,layoutId:p}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(f||p))return;nr(this.layoutCorrected,this.layout.layoutBox);const y=this.treeScale.x,v=this.treeScale.y;L5(this.layoutCorrected,this.treeScale,this.path,u),s.layout&&!s.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(s.target=s.layout.layoutBox,s.targetWithTransforms=It());const{target:x}=s;if(!x){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(EM(this.prevProjectionDelta.x,this.projectionDelta.x),EM(this.prevProjectionDelta.y,this.projectionDelta.y)),Eu(this.projectionDelta,this.layoutCorrected,x,this.latestValues),(this.treeScale.x!==y||this.treeScale.y!==v||!qM(this.projectionDelta.x,this.prevProjectionDelta.x)||!qM(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",x))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(s=!0){var u;if((u=this.options.visualElement)==null||u.scheduleRender(),s){const c=this.getStack();c&&c.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Qa(),this.projectionDelta=Qa(),this.projectionDeltaWithTransform=Qa()}setAnimationOrigin(s,u=!1){const c=this.snapshot,f=c?c.latestValues:{},p={...this.latestValues},y=Qa();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!u;const v=It(),x=c?c.source:void 0,w=this.layout?this.layout.source:void 0,A=x!==w,S=this.getStack(),C=!S||S.members.length<=1,P=!!(A&&!C&&this.options.crossfade===!0&&!this.path.some(kG));this.animationProgress=0;let M;this.mixTargetDelta=O=>{const E=O/1e3;GM(y.x,s.x,E),GM(y.y,s.y,E),this.setTargetDelta(y),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Gd(v,this.layout.layoutBox,this.relativeParent.layout.layoutBox),IG(this.relativeTarget,this.relativeTargetOrigin,v,E),M&&fG(this.relativeTarget,M)&&(this.isProjectionDirty=!1),M||(M=It()),nr(M,this.relativeTarget)),A&&(this.animationValues=p,pG(p,f,this.latestValues,E,P,C)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=E},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){var u,c,f;this.notifyListeners("animationStart"),(u=this.currentAnimation)==null||u.stop(),(f=(c=this.resumingFrom)==null?void 0:c.currentAnimation)==null||f.stop(),this.pendingAnimation&&(Zi(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=at.update(()=>{Od.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=ys(0)),this.motionValue.jump(0,!1),this.currentAnimation=yG(this.motionValue,[0,1e3],{...s,velocity:0,isSync:!0,onUpdate:p=>{this.mixTargetDelta(p),s.onUpdate&&s.onUpdate(p)},onStop:()=>{},onComplete:()=>{s.onComplete&&s.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 s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(SG),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:u,target:c,layout:f,latestValues:p}=s;
vendor: 4,841 bytes, line 72
72if(!(!u||!c||!f)){if(this!==s&&this.layout&&f&&Eq(this.options.animationType,this.layout.layoutBox,f.layoutBox)){c=this.target||It();const y=sn(this.layout.layoutBox.x);c.x.min=s.target.x.min,c.x.max=c.x.min+y;const v=sn(this.layout.layoutBox.y);c.y.min=s.target.y.min,c.y.max=c.y.min+v}nr(u,c),ts(u,p),Eu(this.projectionDeltaWithTransform,this.layoutCorrected,u,p)}}registerSharedNode(s,u){this.sharedNodes.has(s)||this.sharedNodes.set(s,new TG),this.sharedNodes.get(s).add(u);const f=u.options.initialPromotionConfig;u.promote({transition:f?f.transition:void 0,preserveFollowOpacity:f&&f.shouldPreserveFollowOpacity?f.shouldPreserveFollowOpacity(u):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){var u;const{layoutId:s}=this.options;return s?((u=this.getStack())==null?void 0:u.lead)||this:this}getPrevLead(){var u;const{layoutId:s}=this.options;return s?(u=this.getStack())==null?void 0:u.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:u,preserveFollowOpacity:c}={}){const f=this.getStack();f&&f.promote(this,c),s&&(this.projectionDelta=void 0,this.needsReset=!0),u&&this.setOptions({transition:u})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetSkewAndRotation(){const{visualElement:s}=this.options;if(!s)return;let u=!1;const{latestValues:c}=s;if((c.z||c.rotate||c.rotateX||c.rotateY||c.rotateZ||c.skewX||c.skewY)&&(u=!0),!u)return;const f={};c.z&&yy("z",s,f,this.animationValues);for(let p=0;p<gy.length;p++)yy(`rotate${gy[p]}`,s,f,this.animationValues),yy(`skew${gy[p]}`,s,f,this.animationValues);s.render();for(const p in f)s.setStaticValue(p,f[p]),this.animationValues&&(this.animationValues[p]=f[p]);s.scheduleRender()}applyProjectionStyles(s,u){if(!this.instance||this.isSVG)return;if(!this.isVisible){s.visibility="hidden";return}const c=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,s.visibility="",s.opacity="",s.pointerEvents=Nd(u==null?void 0:u.pointerEvents)||"",s.transform=c?c(this.latestValues,""):"none";return}const f=this.getLead();if(!this.projectionDelta||!this.layout||!f.target){this.options.layoutId&&(s.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,s.pointerEvents=Nd(u==null?void 0:u.pointerEvents)||""),this.hasProjected&&!No(this.latestValues)&&(s.transform=c?c({},""):"none",this.hasProjected=!1);return}s.visibility="";const p=f.animationValues||f.latestValues;this.applyTransformsToTarget();let y=dG(this.projectionDeltaWithTransform,this.treeScale,p);c&&(y=c(p,y)),s.transform=y;const{x:v,y:x}=this.projectionDelta;s.transformOrigin=`${v.origin*100}% ${x.origin*100}% 0`,f.animationValues?s.opacity=f===this?p.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:p.opacityExit:s.opacity=f===this?p.opacity!==void 0?p.opacity:"":p.opacityExit!==void 0?p.opacityExit:0;for(const w in aT){if(p[w]===void 0)continue;const{correct:A,applyTo:S,isCSSVariable:C}=aT[w],P=y==="none"?p[w]:A(p[w],f);if(S){const M=S.length;for(let O=0;O<M;O++)s[S[O]]=P}else C?this.options.visualElement.renderState.vars[w]=P:s[w]=P}this.options.layoutId&&(s.pointerEvents=f===this?Nd(u==null?void 0:u.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>{var u;return(u=s.currentAnimation)==null?void 0:u.stop()}),this.root.nodes.forEach(jM),this.root.sharedNodes.clear()}}}function wG(t){t.updateLayout()}function _G(t){var n;const e=((n=t.resumeFrom)==null?void 0:n.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=t.layout,{animationType:o}=t.options,s=e.source!==t.layout.source;o==="size"?Tr(y=>{const v=s?e.measuredBox[y]:e.layoutBox[y],x=sn(v);v.min=r[y].min,v.max=v.min+x}):Eq(o,e.layoutBox,r)&&Tr(y=>{const v=s?e.measuredBox[y]:e.layoutBox[y],x=sn(r[y]);v.max=v.min+x,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[y].max=t.relativeTarget[y].min+x)});const u=Qa();Eu(u,r,e.layoutBox);const c=Qa();s?Eu(c,t.applyTransform(i,!0),e.measuredBox):Eu(c,r,e.layoutBox);const f=!Tq(u);let p=!1;if(!t.resumeFrom){const y=t.getClosestProjectingParent();if(y&&!y.resumeFrom){const{snapshot:v,layout:x}=y;if(v&&x){const w=It();Gd(w,e.layoutBox,v.layoutBox);const A=It();Gd(A,r,x.layoutBox),Sq(w,A)||(p=!0),y.options.layoutRoot&&(t.relativeTarget=A,t.relativeTargetOrigin=w,t.relativeParent=y)}}}t.notifyListeners("didUpdate",{layout:r,snapshot:e,delta:c,layoutDelta:u,hasLayoutChanged:f,hasRelativeLayoutChanged:p})}else if(t.isLead()){const{onExitComplete:r}=t.options;r&&r()}t.options.transition=void 0}function CG(t){t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.
vendor: 9,406 bytes, lines 72-80
72isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function EG(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function MG(t){t.clearSnapshot()}function jM(t){t.clearMeasurements()}function FM(t){t.isLayoutDirty=!1}function PG(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function HM(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function RG(t){t.resolveTargetDelta()}function NG(t){t.calcProjection()}function OG(t){t.resetSkewAndRotation()}function DG(t){t.removeLeadSnapshot()}function GM(t,e,n){t.translate=pt(e.translate,0,n),t.scale=pt(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function zM(t,e,n,r){t.min=pt(e.min,n.min,r),t.max=pt(e.max,n.max,r)}function IG(t,e,n,r){zM(t.x,e.x,n.x,r),zM(t.y,e.y,n.y,r)}function kG(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const LG={duration:.45,ease:[.4,0,.1,1]},KM=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),YM=KM("applewebkit/")&&!KM("chrome/")?Math.round:Yn;function WM(t){t.min=YM(t.min),t.max=YM(t.max)}function UG(t){WM(t.x),WM(t.y)}function Eq(t,e,n){return t==="position"||t==="preserve-aspect"&&!aG(UM(e),UM(n),.2)}function qG(t){var e;return t!==t.root&&((e=t.scroll)==null?void 0:e.wasRoot)}const BG=Cq({attachResizeListener:(t,e)=>ju(t,"resize",e),measureScroll:()=>{var t,e;return{x:document.documentElement.scrollLeft||((t=document.body)==null?void 0:t.scrollLeft)||0,y:document.documentElement.scrollTop||((e=document.body)==null?void 0:e.scrollTop)||0}},checkIsScrollRoot:()=>!0}),vy={current:void 0},Mq=Cq({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!vy.current){const t=new BG({});t.mount(window),t.setOptions({layoutScroll:!0}),vy.current=t}return vy.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),_A=k.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});function XM(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}function $G(...t){return e=>{let n=!1;const r=t.map(i=>{const o=XM(i,e);return!n&&typeof o=="function"&&(n=!0),o});if(n)return()=>{for(let i=0;i<r.length;i++){const o=r[i];typeof o=="function"?o():XM(t[i],null)}}}}function VG(...t){return k.useCallback($G(...t),t)}class jG extends k.Component{getSnapshotBeforeUpdate(e){const n=this.props.childRef.current;if(n&&e.isPresent&&!this.props.isPresent&&this.props.pop!==!1){const r=n.offsetParent,i=nT(r)&&r.offsetWidth||0,o=nT(r)&&r.offsetHeight||0,s=this.props.sizeRef.current;s.height=n.offsetHeight||0,s.width=n.offsetWidth||0,s.top=n.offsetTop,s.left=n.offsetLeft,s.right=i-s.width-s.left,s.bottom=o-s.height-s.top}return null}componentDidUpdate(){}render(){return this.props.children}}function FG({children:t,isPresent:e,anchorX:n,anchorY:r,root:i,pop:o}){var v;const s=k.useId(),u=k.useRef(null),c=k.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:f}=k.useContext(_A),p=((v=t.props)==null?void 0:v.ref)??(t==null?void 0:t.ref),y=VG(u,p);return k.useInsertionEffect(()=>{const{width:x,height:w,top:A,left:S,right:C,bottom:P}=c.current;if(e||o===!1||!u.current||!x||!w)return;const M=n==="left"?`left: ${S}`:`right: ${C}`,O=r==="bottom"?`bottom: ${P}`:`top: ${A}`;u.current.dataset.motionPopId=s;const E=document.createElement("style");f&&(E.nonce=f);const N=i??document.head;return N.appendChild(E),E.sheet&&E.sheet.insertRule(` 73 [data-motion-pop-id="${s}"] { 74 position: absolute !important; 75 width: ${x}px !important; 76 height: ${w}px !important; 77 ${M}px !important; 78 ${O}px !important; 79 } 80 `),()=>{N.contains(E)&&N.removeChild(E)}},[e]),_.jsx(jG,{isPresent:e,childRef:u,sizeRef:c,pop:o,children:o===!1?t:k.cloneElement(t,{ref:y})})}const HG=({children:t,initial:e,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:o,mode:s,anchorX:u,anchorY:c,root:f})=>{const p=ZS(GG),y=k.useId();let v=!0,x=k.useMemo(()=>(v=!1,{id:y,initial:e,isPresent:n,custom:i,onExitComplete:w=>{p.set(w,!0);for(const A of p.values())if(!A)return;r&&r()},register:w=>(p.set(w,!1),()=>p.delete(w))}),[n,p,r]);return o&&v&&(x={...x}),k.useMemo(()=>{p.forEach((w,A)=>p.set(A,!1))},[n]),k.useEffect(()=>{!n&&!p.size&&r&&r()},[n]),t=_.jsx(FG,{pop:s==="popLayout",isPresent:n,anchorX:u,anchorY:c,root:f,children:t}),_.jsx(Wh.Provider,{value:x,children:t})};function GG(){return new Map}function Pq(t=!0){const e=k.useContext(Wh);if(e===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=e,o=k.useId();k.useEffect(()=>{if(t)return i(o)},[t]);const s=k.useCallback(()=>t&&r&&r(o),[o,r,t]);return!n&&r?[!1,s]:[!0]}const sd=t=>t.key||"";function JM(t){const e=[];return k.Children.forEach(t,n=>{k.isValidElement(n)&&e.push(n)}),e}const zG=({children:t,custom:e,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:o="sync",propagate:s=!1,anchorX:u="left",anchorY:c="top",root:f})=>{const[p,y]=Pq(s),v=k.useMemo(()=>JM(t),[t]),x=s&&!p?[]:v.map(sd),w=k.useRef(!0),A=k.useRef(v),S=ZS(()=>new Map),C=k.useRef(new Set),[P,M]=k.useState(v),[O,E]=k.useState(v);rU(()=>{w.current=!1,A.current=v;for(let L=0;L<O.length;L++){const U=sd(O[L]);x.includes(U)?(S.delete(U),C.current.delete(U)):S.get(U)!==!0&&S.set(U,!1)}},[O,x.length,x.join("-")]);const N=[];if(v!==P){let L=[...v];for(let U=0;U<O.length;U++){const F=O[U],B=sd(F);x.includes(B)||(L.splice(U,0,F),N.push(F))}return o==="wait"&&N.length&&(L=N),E(JM(L)),M(v),null}const{forceRender:D}=k.useContext(JS);return _.jsx(_.Fragment,{children:O.map(L=>{const U=sd(L),F=s&&!p?!1:v===O||x.includes(U),B=()=>{if(C.current.has(U))return;if(C.current.add(U),S.has(U))S.set(U,!0);else return;let z=!0;S.forEach(W=>{W||(z=!1)}),z&&(D==null||D(),E(A.current),s&&(y==null||y()),r&&r())};return _.jsx(HG,{isPresent:F,initial:!w.current||n?void 0:!1,custom:e,presenceAffectsLayout:i,mode:o,root:f,onExitComplete:F?void 0:B,anchorX:u,anchorY:c,children:L},U)})})},Rq=k.createContext({strict:!1}),ZM={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"]};let QM=!1;function KG(){if(QM)return;const t={};for(const e in ZM)t[e]={isEnabled:n=>ZM[e].some(r=>!!n[r])};oq(t),QM=!0}function Nq(){return KG(),O5()}function YG(t){const e=Nq();for(const n in t)e[n]={...e[n],...t[n]};oq(e)}const WG=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","propagate","ignoreStrict","viewport"]);function zd(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||WG.has(t)}let Oq=t=>!zd(t);function XG(t){typeof t=="function"&&(Oq=e=>e.startsWith("on")?!zd(e):t(e))}try{XG(require("@emotion/is-prop-valid").default)}catch{}function JG(t,e,n){const r={};for(const i in t)i==="values"&&typeof t.values=="object"||(Oq(i)||n===!0&&zd(i)||!e&&!zd(i)||t.draggable&&i.startsWith("onDrag"))&&(r[i]=t[i]);return r}const Zh=k.createContext({});function ZG(t,e){if(Jh(t)){const{initial:n,animate:r}=t;return{initial:n===!1||Vu(n)?n:void 0,animate:Vu(r)?r:void 0}}return t.inherit!==!1?e:{}}function QG(t){const{initial:e,animate:n}=ZG(t,k.useContext(Zh));return k.useMemo(()=>({initial:e,animate:n}),[eP(e),eP(n)])}function eP(t){return Array.isArray(t)?t.join(" "):t}const CA=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Dq(t,e,n){for(const r in e)!nn(e[r])&&!dq(r,n)&&(t[r]=e[r])}function ez({transformTemplate:t},e){return k.useMemo(()=>{const n=CA();return AA(n,e,t),Object.assign({},n.vars,n.style)},[e])}function tz(t,e){const n=t.style||{},r={};return Dq(r,n,t),Object.assign(r,ez(t,e)),r}function nz(t,e){const n={},r=tz(t,e);return t.drag&&t.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=r,n}const Iq=()=>({...CA(),attrs:{}});function rz(t,e,n,r){const i=k.useMemo(()=>{const o=Iq();return hq(o,e,mq(r),t.transformTemplate,t.style),{...o.attrs,style:{...o.style}}},[e]);if(t.style){const o={};Dq(o,t.style,t),i.style={...o,...i.style}}return i}const iz=["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 EA(t){return typeof t!="string"||t.includes("-")?!1:!!(iz.
vendor: 22,014 bytes, line 80
80indexOf(t)>-1||/[A-Z]/u.test(t))}function oz(t,e,n,{latestValues:r},i,o=!1,s){const c=(s??EA(t)?rz:nz)(e,r,i,t),f=JG(e,typeof t=="string",o),p=t!==k.Fragment?{...f,...c,ref:n}:{},{children:y}=e,v=k.useMemo(()=>nn(y)?y.get():y,[y]);return k.createElement(t,{...p,children:v})}function az({scrapeMotionValuesFromProps:t,createRenderState:e},n,r,i){return{latestValues:sz(n,r,i,t),renderState:e()}}function sz(t,e,n,r){const i={},o=r(t,{});for(const v in o)i[v]=Nd(o[v]);let{initial:s,animate:u}=t;const c=Jh(t),f=rq(t);e&&f&&!c&&t.inherit!==!1&&(s===void 0&&(s=e.initial),u===void 0&&(u=e.animate));let p=n?n.initial===!1:!1;p=p||s===!1;const y=p?u:s;if(y&&typeof y!="boolean"&&!Xh(y)){const v=Array.isArray(y)?y:[y];for(let x=0;x<v.length;x++){const w=mA(t,v[x]);if(w){const{transitionEnd:A,transition:S,...C}=w;for(const P in C){let M=C[P];if(Array.isArray(M)){const O=p?M.length-1:0;M=M[O]}M!==null&&(i[P]=M)}for(const P in A)i[P]=A[P]}}}return i}const kq=t=>(e,n)=>{const r=k.useContext(Zh),i=k.useContext(Wh),o=()=>az(t,e,r,i);return n?o():ZS(o)},lz=kq({scrapeMotionValuesFromProps:wA,createRenderState:CA}),uz=kq({scrapeMotionValuesFromProps:gq,createRenderState:Iq}),cz=Symbol.for("motionComponentSymbol");function fz(t,e,n){const r=k.useRef(n);k.useInsertionEffect(()=>{r.current=n});const i=k.useRef(null);return k.useCallback(o=>{var u;o&&((u=t.onMount)==null||u.call(t,o)),e&&(o?e.mount(o):e.unmount());const s=r.current;if(typeof s=="function")if(o){const c=s(o);typeof c=="function"&&(i.current=c)}else i.current?(i.current(),i.current=null):s(o);else s&&(s.current=o)},[e])}const Lq=k.createContext({});function Wa(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function dz(t,e,n,r,i,o){var M,O;const{visualElement:s}=k.useContext(Zh),u=k.useContext(Rq),c=k.useContext(Wh),f=k.useContext(_A),p=f.reducedMotion,y=f.skipAnimations,v=k.useRef(null),x=k.useRef(!1);r=r||u.renderer,!v.current&&r&&(v.current=r(t,{visualState:e,parent:s,props:n,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:p,skipAnimations:y,isSVG:o}),x.current&&v.current&&(v.current.manuallyAnimateOnMount=!0));const w=v.current,A=k.useContext(Lq);w&&!w.projection&&i&&(w.type==="html"||w.type==="svg")&&hz(v.current,n,i,A);const S=k.useRef(!1);k.useInsertionEffect(()=>{w&&S.current&&w.update(n,c)});const C=n[HU],P=k.useRef(!!C&&!((M=window.MotionHandoffIsComplete)!=null&&M.call(window,C))&&((O=window.MotionHasOptimisedAnimation)==null?void 0:O.call(window,C)));return rU(()=>{x.current=!0,w&&(S.current=!0,window.MotionIsMounted=!0,w.updateFeatures(),w.scheduleRenderMicrotask(),P.current&&w.animationState&&w.animationState.animateChanges())}),k.useEffect(()=>{w&&(!P.current&&w.animationState&&w.animationState.animateChanges(),P.current&&(queueMicrotask(()=>{var E;(E=window.MotionHandoffMarkAsComplete)==null||E.call(window,C)}),P.current=!1),w.enteringChildren=void 0)}),w}function hz(t,e,n,r){const{layoutId:i,layout:o,drag:s,dragConstraints:u,layoutScroll:c,layoutRoot:f,layoutCrossfade:p}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:Uq(t.parent)),t.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!s||u&&Wa(u),visualElement:t,animationType:typeof o=="string"?o:"both",initialPromotionConfig:r,crossfade:p,layoutScroll:c,layoutRoot:f})}function Uq(t){if(t)return t.options.allowProjection!==!1?t.projection:Uq(t.parent)}function by(t,{forwardMotionProps:e=!1,type:n}={},r,i){r&&YG(r);const o=n?n==="svg":EA(t),s=o?uz:lz;function u(f,p){let y;const v={...k.useContext(_A),...f,layoutId:pz(f)},{isStatic:x}=v,w=QG(f),A=s(f,x);if(!x&&nU){mz();const S=gz(v);y=S.MeasureLayout,w.visualElement=dz(t,A,v,i,S.ProjectionNode,o)}return _.jsxs(Zh.Provider,{value:w,children:[y&&w.visualElement?_.jsx(y,{visualElement:w.visualElement,...v}):null,oz(t,f,fz(A,w.visualElement,p),A,x,e,o)]})}u.displayName=`motion.${typeof t=="string"?t:`create(${t.displayName??t.name??""})`}`;const c=k.forwardRef(u);return c[cz]=t,c}function pz({layoutId:t}){const e=k.useContext(JS).id;return e&&t!==void 0?e+"-"+t:t}function mz(t,e){k.useContext(Rq).strict}function gz(t){const e=Nq(),{drag:n,layout:r}=e;if(!n&&!r)return{};const i={...n,...r};return{MeasureLayout:n!=null&&n.isEnabled(t)||r!=null&&r.isEnabled(t)?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}function yz(t,e){if(typeof Proxy>"u")return by;const n=new Map,r=(o,s)=>by(o,s,t,e),i=(o,s)=>r(o,s);return new Proxy(i,{get:(o,s)=>s==="create"?r:(n.has(s)||n.set(s,by(s,void 0,t,e)),n.get(s))})}const vz=(t,e)=>e.isSVG??EA(t)?new W5(e):new F5(e,{allowProjection:t!==k.Fragment});class bz extends eo{constructor(e){super(e),e.animationState||(e.animationState=eG(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();Xh(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:n}=this.node.prevProps||{};e!==n&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),(e=this.unmountControls)==null||e.call(this)}}let xz=0;class Tz extends eo{constructor(){super(...arguments),this.id=xz++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===r)return;const i=this.node.animationState.setActive("exit",!e);n&&!e&&i.then(()=>{n(this.id)})}mount(){const{register:e,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),e&&(this.unmount=e(this.id))}unmount(){}}const Sz={animation:{Feature:bz},exit:{Feature:Tz}};function Nc(t){return{point:{x:t.pageX,y:t.pageY}}}const Az=t=>e=>bA(e)&&t(e,Nc(e));function Mu(t,e,n,r){return ju(t,e,Az(n),r)}const qq=({current:t})=>t?t.ownerDocument.defaultView:null,tP=(t,e)=>Math.abs(t-e);function wz(t,e){const n=tP(t.x,e.x),r=tP(t.y,e.y);return Math.sqrt(n**2+r**2)}const nP=new Set(["auto","scroll"]);class Bq{constructor(e,n,{transformPagePoint:r,contextWindow:i=window,dragSnapToOrigin:o=!1,distanceThreshold:s=3,element:u}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=x=>{this.handleScroll(x.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const x=Ty(this.lastMoveEventInfo,this.history),w=this.startEvent!==null,A=wz(x.offset,{x:0,y:0})>=this.distanceThreshold;if(!w&&!A)return;const{point:S}=x,{timestamp:C}=Wt;this.history.push({...S,timestamp:C});const{onStart:P,onMove:M}=this.handlers;w||(P&&P(this.lastMoveEvent,x),this.startEvent=this.lastMoveEvent),M&&M(this.lastMoveEvent,x)},this.handlePointerMove=(x,w)=>{this.lastMoveEvent=x,this.lastMoveEventInfo=xy(w,this.transformPagePoint),at.update(this.updatePoint,!0)},this.handlePointerUp=(x,w)=>{this.end();const{onEnd:A,onSessionEnd:S,resumeAnimation:C}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&C&&C(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const P=Ty(x.type==="pointercancel"?this.lastMoveEventInfo:xy(w,this.transformPagePoint),this.history);this.startEvent&&A&&A(x,P),S&&S(x,P)},!bA(e))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=s,this.contextWindow=i||window;const c=Nc(e),f=xy(c,this.transformPagePoint),{point:p}=f,{timestamp:y}=Wt;this.history=[{...p,timestamp:y}];const{onSessionStart:v}=n;v&&v(e,Ty(f,this.history)),this.removeListeners=Mc(Mu(this.contextWindow,"pointermove",this.handlePointerMove),Mu(this.contextWindow,"pointerup",this.handlePointerUp),Mu(this.contextWindow,"pointercancel",this.handlePointerUp)),u&&this.startScrollTracking(u)}startScrollTracking(e){let n=e.parentElement;for(;n;){const r=getComputedStyle(n);(nP.has(r.overflowX)||nP.has(r.overflowY))&&this.scrollPositions.set(n,{x:n.scrollLeft,y:n.scrollTop}),n=n.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(e){const n=this.scrollPositions.get(e);if(!n)return;const r=e===window,i=r?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},o={x:i.x-n.x,y:i.y-n.y};o.x===0&&o.y===0||(r?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=o.x,this.lastMoveEventInfo.point.y+=o.y):this.history.length>0&&(this.history[0].x-=o.x,this.history[0].y-=o.y),this.scrollPositions.set(e,i),at.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),Zi(this.updatePoint)}}function xy(t,e){return e?{point:e(t.point)}:t}function rP(t,e){return{x:t.x-e.x,y:t.y-e.y}}function Ty({point:t},e){return{point:t,delta:rP(t,$q(e)),offset:rP(t,_z(e)),velocity:Cz(e,.1)}}function _z(t){return t[0]}function $q(t){return t[t.length-1]}function Cz(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,r=null;const i=$q(t);for(;n>=0&&(r=t[n],!(i.timestamp-r.timestamp>cr(e)));)n--;if(!r)return{x:0,y:0};r===t[0]&&t.length>2&&i.timestamp-r.timestamp>cr(e)*2&&(r=t[1]);const o=zn(i.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const s={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function Ez(t,{min:e,max:n},r){return e!==void 0&&t<e?t=r?pt(e,t,r.min):Math.max(t,e):n!==void 0&&t>n&&(t=r?pt(n,t,r.max):Math.min(t,n)),t}function iP(t,e,n){return{min:e!==void 0?t.min+e:void 0,max:n!==void 0?t.max+n-(t.max-t.min):void 0}}function Mz(t,{top:e,left:n,bottom:r,right:i}){return{x:iP(t.x,n,i),y:iP(t.y,e,r)}}function oP(t,e){let n=e.min-t.min,r=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,r]=[r,n]),{min:n,max:r}}function Pz(t,e){return{x:oP(t.x,e.x),y:oP(t.y,e.y)}}function Rz(t,e){let n=.5;const r=sn(t),i=sn(e);return i>r?n=qu(e.min,e.max-r,t.min):r>i&&(n=qu(t.min,t.max-i,e.min)),Er(0,1,n)}function Nz(t,e){const n={};return e.min!==void 0&&(n.min=e.min-t.min),e.max!==void 0&&(n.max=e.max-t.min),n}const sT=.35;function Oz(t=sT){return t===!1?t=0:t===!0&&(t=sT),{x:aP(t,"left","right"),y:aP(t,"top","bottom")}}function aP(t,e,n){return{min:sP(t,e),max:sP(t,n)}}function sP(t,e){return typeof t=="number"?t:t[e]||0}const Dz=new WeakMap;class Iz{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=It(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:n=!1,distanceThreshold:r}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const o=y=>{n&&this.snapToCursor(Nc(y).point),this.stopAnimation()},s=(y,v)=>{const{drag:x,dragPropagation:w,onDragStart:A}=this.getProps();if(x&&!w&&(this.openDragLock&&this.openDragLock(),this.openDragLock=l5(x),!this.openDragLock))return;this.latestPointerEvent=y,this.latestPanInfo=v,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Tr(C=>{let P=this.getAxisMotionValue(C).get()||0;if(Ar.test(P)){const{projection:M}=this.visualElement;if(M&&M.layout){const O=M.layout.layoutBox[C];O&&(P=sn(O)*(parseFloat(P)/100))}}this.originPoint[C]=P}),A&&at.update(()=>A(y,v),!1,!0),Zx(this.visualElement,"transform");const{animationState:S}=this.visualElement;S&&S.setActive("whileDrag",!0)},u=(y,v)=>{this.latestPointerEvent=y,this.latestPanInfo=v;const{dragPropagation:x,dragDirectionLock:w,onDirectionLock:A,onDrag:S}=this.getProps();if(!x&&!this.openDragLock)return;const{offset:C}=v;if(w&&this.currentDirection===null){this.currentDirection=Lz(C),this.currentDirection!==null&&A&&A(this.currentDirection);return}this.updateAxis("x",v.point,C),this.updateAxis("y",v.point,C),this.visualElement.render(),S&&at.update(()=>S(y,v),!1,!0)},c=(y,v)=>{this.latestPointerEvent=y,this.latestPanInfo=v,this.stop(y,v),this.latestPointerEvent=null,this.latestPanInfo=null},f=()=>{const{dragSnapToOrigin:y}=this.getProps();(y||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:p}=this.getProps();this.panSession=new Bq(e,{onSessionStart:o,onStart:s,onMove:u,onSessionEnd:c,resumeAnimation:f},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:p,distanceThreshold:r,contextWindow:qq(this.visualElement),element:this.visualElement.current})}stop(e,n){const r=e||this.latestPointerEvent,i=n||this.latestPanInfo,o=this.isDragging;if(this.cancel(),!o||!i||!r)return;const{velocity:s}=i;this.startAnimation(s);const{onDragEnd:u}=this.getProps();u&&at.postRender(()=>u(r,i))}cancel(){this.isDragging=!1;const{projection:e,animationState:n}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,n,r){const{drag:i}=this.getProps();if(!r||!ld(e,i,this.currentDirection))return;const o=this.getAxisMotionValue(e);let s=this.originPoint[e]+r[e];this.constraints&&this.constraints[e]&&(s=Ez(s,this.constraints[e],this.elastic[e])),o.set(s)}resolveConstraints(){var o;const{dragConstraints:e,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(o=this.visualElement.projection)==null?void 0:o.layout,i=this.constraints;e&&Wa(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&r?this.constraints=Mz(r.layoutBox,e):this.constraints=!1,this.elastic=Oz(n),i!==this.constraints&&!Wa(e)&&r&&this.constraints&&!this.hasMutatedConstraints&&Tr(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=Nz(r.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!Wa(e))return!1;const r=e.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=U5(r,i.root,this.visualElement.getTransformPagePoint());let s=Pz(i.layout.layoutBox,o);if(n){const u=n(I5(s));this.hasMutatedConstraints=!!u,u&&(s=sq(u))}return s}startAnimation(e){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:s,onDragTransitionEnd:u}=this.getProps(),c=this.constraints||{},f=Tr(p=>{if(!ld(p,n,this.currentDirection))return;let y=c&&c[p]||{};s&&(y={min:0,max:0});const v=i?200:1e6,x=i?40:1e7,w={type:"inertia",velocity:r?e[p]:0,bounceStiffness:v,bounceDamping:x,timeConstant:750,restDelta:1,restSpeed:10,...o,...y};return this.startAxisValueAnimation(p,w)});return Promise.all(f).then(u)}startAxisValueAnimation(e,n){const r=this.getAxisMotionValue(e);return Zx(this.visualElement,e),r.start(pA(e,r,0,n,this.visualElement,!1))}stopAnimation(){Tr(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){const n=`_drag${e.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(e,(r.initial?r.initial[e]:void 0)||0)}snapToCursor(e){Tr(n=>{const{drag:r}=this.getProps();if(!ld(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:s,max:u}=i.layout.layoutBox[n],c=o.get()||0;o.set(e[n]-pt(s,u,.5)+c)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Wa(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Tr(s=>{const u=this.getAxisMotionValue(s);if(u&&this.constraints!==!1){const c=u.get();i[s]=Rz({min:c,max:c},this.constraints[s])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.constraints=!1,this.resolveConstraints(),Tr(s=>{if(!ld(s,e,null))return;const u=this.getAxisMotionValue(s),{min:c,max:f}=this.constraints[s];u.set(pt(c,f,i[s]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;Dz.set(this.visualElement,this);const e=this.visualElement.current,n=Mu(e,"pointerdown",f=>{const{drag:p,dragListener:y=!0}=this.getProps(),v=f.target,x=v!==e&&p5(v);p&&y&&!x&&this.start(f)});let r;const i=()=>{const{dragConstraints:f}=this.getProps();Wa(f)&&f.current&&(this.constraints=this.resolveRefConstraints(),r||(r=kz(e,f.current,()=>this.scalePositionWithinConstraints())))},{projection:o}=this.visualElement,s=o.addEventListener("measure",i);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),at.read(i);const u=ju(window,"resize",()=>this.scalePositionWithinConstraints()),c=o.addEventListener("didUpdate",(({delta:f,hasLayoutChanged:p})=>{this.isDragging&&p&&(Tr(y=>{const v=this.getAxisMotionValue(y);v&&(this.originPoint[y]+=f[y].translate,v.set(v.get()+f[y].translate))}),this.visualElement.render())}));return()=>{u(),n(),s(),c&&c(),r&&r()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:s=sT,dragMomentum:u=!0}=e;return{...e,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:s,dragMomentum:u}}}function lP(t){let e=!0;return()=>{if(e){e=!1;return}t()}}function kz(t,e,n){const r=mM(t,lP(n)),i=mM(e,lP(n));return()=>{r(),i()}}function ld(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function Lz(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class Uz extends eo{constructor(e){super(e),this.removeGroupControls=Yn,this.removeListeners=Yn,this.controls=new Iz(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Yn}update(){const{dragControls:e}=this.node.getProps(),{dragControls:n}=this.node.prevProps||{};e!==n&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const Sy=t=>(e,n)=>{t&&at.update(()=>t(e,n),!1,!0)};class qz extends eo{constructor(){super(...arguments),this.removePointerDownListener=Yn}onPointerDown(e){this.session=new Bq(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:qq(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:Sy(e),onStart:Sy(n),onMove:Sy(r),onEnd:(o,s)=>{delete this.session,i&&at.postRender(()=>i(o,s))}}}mount(){this.removePointerDownListener=Mu(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let Ay=!1;class Bz extends k.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=e;o&&(n.group&&n.group.add(o),r&&r.register&&i&&r.register(o),Ay&&o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),Od.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:r,drag:i,isPresent:o}=this.props,{projection:s}=r;return s&&(s.isPresent=o,e.layoutDependency!==n&&s.setOptions({...s.options,layoutDependency:n}),Ay=!0,i||e.layoutDependency!==n||n===void 0||e.isPresent!==o?s.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?s.promote():s.relegate()||at.postRender(()=>{const u=s.getStack();(!u||!u.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),vA.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=e;Ay=!0,i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function Vq(t){const[e,n]=Pq(),r=k.useContext(JS);return _.jsx(Bz,{...t,layoutGroup:r,switchLayoutGroup:k.useContext(Lq),isPresent:e,safeToRemove:n})}const $z={pan:{Feature:qz},drag:{Feature:Uz,ProjectionNode:Mq,MeasureLayout:Vq}};function uP(t,e,n){const{props:r}=t;t.animationState&&r.whileHover&&t.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,o=r[i];o&&at.postRender(()=>o(e,Nc(e)))}class Vz extends eo{mount(){const{current:e}=this.node;e&&(this.unmount=c5(e,(n,r)=>(uP(this.node,r,"Start"),i=>uP(this.node,i,"End"))))}unmount(){}}class jz extends eo{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch{e=!0}!e||!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=Mc(ju(this.node.current,"focus",()=>this.onFocus()),ju(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function cP(t,e,n){const{props:r}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&r.whileTap&&t.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),o=r[i];o&&at.postRender(()=>o(e,Nc(e)))}class Fz extends eo{mount(){const{current:e}=this.node;if(!e)return;
80const{globalTapTarget:n,propagate:r}=this.node.props;this.unmount=g5(e,(i,o)=>(cP(this.node,o,"Start"),(s,{success:u})=>cP(this.node,s,u?"End":"Cancel")),{useGlobalTarget:n,stopPropagation:(r==null?void 0:r.tap)===!1})}unmount(){}}const lT=new WeakMap,wy=new WeakMap,Hz=t=>{const e=lT.get(t.target);e&&e(t)},Gz=t=>{t.forEach(Hz)};function zz({root:t,...e}){const n=t||document;wy.has(n)||wy.set(n,{});const r=wy.get(n),i=JSON.stringify(e);return r[i]||(r[i]=new IntersectionObserver(Gz,{root:t,...e})),r[i]}function Kz(t,e,n){const r=zz(e);return lT.set(t,n),r.observe(t),()=>{lT.delete(t),r.unobserve(t)}}const Yz={some:0,all:1};class Wz extends eo{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:o}=e,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:Yz[i]},u=c=>{const{isIntersecting:f}=c;if(this.isInView===f||(this.isInView=f,o&&!f&&this.hasEnteredView))return;f&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",f);const{onViewportEnter:p,onViewportLeave:y}=this.node.getProps(),v=f?p:y;v&&v(c)};return Kz(this.node.current,s,u)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:n}=this.node;["amount","margin","root"].some(Xz(e,n))&&this.startObserver()}unmount(){}}function Xz({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const Jz={inView:{Feature:Wz},tap:{Feature:Fz},focus:{Feature:jz},hover:{Feature:Vz}},Zz={layout:{ProjectionNode:Mq,MeasureLayout:Vq}},Qz={...Sz,...Jz,...$z,...Zz},Co=yz(Qz,vz);/** 81 * @license lucide-react v0.575.0 - ISC 82 * 83 * This source code is licensed under the ISC license. 84 * See the LICENSE file in the root directory of this source tree. 85 */const jq=(...t)=>t.filter((e,n,r)=>!!e&&e.trim()!==""&&r.indexOf(e)===n).join(" ").trim();/** 86 * @license lucide-react v0.575.0 - ISC 87 * 88 * This source code is licensed under the ISC license. 89 * See the LICENSE file in the root directory of this source tree. 90 */const e7=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/** 91 * @license lucide-react v0.575.0 - ISC 92 * 93 * This source code is licensed under the ISC license. 94 * See the LICENSE file in the root directory of this source tree. 95 */const t7=t=>t.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,n,r)=>r?r.toUpperCase():n.toLowerCase());/** 96 * @license lucide-react v0.575.0 - ISC 97 * 98 * This source code is licensed under the ISC license. 99 * See the LICENSE file in the root directory of this source tree. 100 */const fP=t=>{const e=t7(t);return e.charAt(0).toUpperCase()+e.slice(1)};/** 101 * @license lucide-react v0.575.0 - ISC 102 * 103 * This source code is licensed under the ISC license. 104 * See the LICENSE file in the root directory of this source tree. 105 */var n7={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"};/** 106 * @license lucide-react v0.575.0 - ISC 107 * 108 * This source code is licensed under the ISC license. 109 * See the LICENSE file in the root directory of this source tree. 110 */const r7=t=>{for(const e in t)if(e.startsWith("aria-")||e==="role"||e==="title")return!0;return!1};/** 111 * @license lucide-react v0.575.0 - ISC 112 * 113 * This source code is licensed under the ISC license. 114 * See the LICENSE file in the root directory of this source tree. 115 */const i7=k.forwardRef(({color:t="currentColor",size:e=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i="",children:o,iconNode:s,...u},c)=>k.createElement("svg",{ref:c,...n7,width:e,height:e,stroke:t,strokeWidth:r?Number(n)*24/Number(e):n,className:jq("lucide",i),...!o&&!r7(u)&&{"aria-hidden":"true"},...u},[...s.map(([f,p])=>k.createElement(f,p)),...Array.isArray(o)?o:[o]]));/** 116 * @license lucide-react v0.575.0 - ISC 117 * 118 * This source code is licensed under the ISC license. 119 * See the LICENSE file in the root directory of this source tree. 120 */const fi=(t,e)=>{const n=k.forwardRef(({className:r,...i},o)=>k.createElement(i7,{ref:o,iconNode:e,className:jq(`lucide-${e7(fP(t))}`,`lucide-${t}`,r),...i}));return n.displayName=fP(t),n};/** 121 * @license lucide-react v0.575.0 - ISC 122 * 123 * This source code is licensed under the ISC license. 124 * See the LICENSE file in the root directory of this source tree. 125 */const o7=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],a7=fi("arrow-left",o7);/** 126 * @license lucide-react v0.575.0 - ISC 127 * 128 * This source code is licensed under the ISC license. 129 * See the LICENSE file in the root directory of this source tree. 130 */const s7=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],dP=fi("arrow-right",s7);/** 131 * @license lucide-react v0.575.0 - ISC 132 * 133 * This source code is licensed under the ISC license. 134 * See the LICENSE file in the root directory of this source tree. 135 */const l7=[["path",{d:"M4.5 3h15",key:"c7n0jr"}],["path",{d:"M6 3v16a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V3",key:"m1uhx7"}],["path",{d:"M6 14h12",key:"4cwo0f"}]],u7=fi("beaker",l7);/** 136 * @license lucide-react v0.575.0 - ISC 137 * 138 * This source code is licensed under the ISC license. 139 * See the LICENSE file in the root directory of this source tree. 140 */const c7=[["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"}]],Fq=fi("calendar",c7);/** 141 * @license lucide-react v0.575.0 - ISC 142 * 143 * This source code is licensed under the ISC license. 144 * See the LICENSE file in the root directory of this source tree. 145 */const f7=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],d7=fi("chevron-left",f7);/** 146 * @license lucide-react v0.575.0 - ISC 147 * 148 * This source code is licensed under the ISC license. 149 * See the LICENSE file in the root directory of this source tree. 150 */const h7=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Hq=fi("chevron-right",h7);/** 151 * @license lucide-react v0.575.0 - ISC 152 * 153 * This source code is licensed under the ISC license. 154 * See the LICENSE file in the root directory of this source tree. 155 */const p7=[["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M17 20v2",key:"1rnc9c"}],["path",{d:"M17 2v2",key:"11trls"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M2 17h2",key:"7oei6x"}],["path",{d:"M2 7h2",key:"asdhe0"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"M20 17h2",key:"1fpfkl"}
155],["path",{d:"M20 7h2",key:"1o8tra"}],["path",{d:"M7 20v2",key:"4gnj0m"}],["path",{d:"M7 2v2",key:"1i4yhu"}],["rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",key:"1vbyd7"}],["rect",{x:"8",y:"8",width:"8",height:"8",rx:"1",key:"z9xiuo"}]],m7=fi("cpu",p7);/** 156 * @license lucide-react v0.575.0 - ISC 157 * 158 * This source code is licensed under the ISC license. 159 * See the LICENSE file in the root directory of this source tree. 160 */const g7=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],y7=fi("globe",g7);/** 161 * @license lucide-react v0.575.0 - ISC 162 * 163 * This source code is licensed under the ISC license. 164 * See the LICENSE file in the root directory of this source tree. 165 */const v7=[["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"}]],b7=fi("zap",v7),vs=[{id:"cxr-net",title:"Hierarchical CXR-Net: A Two-Stage Framework for Efficient and Interpretable Chest X-Ray Diagnosis",domain:"Healthcare",summary:'A two-stage deep learning framework designed to mimic an efficient clinical workflow. Stage 1 employs a lightweight, imbalance-robust EfficientNet-B0 as a rapid triage screener (0.831 Test AUROC) to separate "Likely Normal" from "Potentially Abnormal" scans. Stage 2 deploys a more powerful EfficientNet-B2 expert diagnostician (0.814 Mean AUROC) to perform fine-grained, 14-class multi-label classification only on the cases flagged by the screener.',imageUrl:"/assets/images/projects/cxr-net.jpeg",status:"Completed",impactMetric:"Reduced Radiologist Workload by 85%",team:["Phillip Ssempeebwa","Irene Phoebe Akitwi","Allen Ayebale"],repoUrl:"#"}],MA=[{id:"pub-1",title:"Hierarchical CXR-Net: A Two-Stage Framework for Efficient and Interpretable Chest X-Ray Diagnosis",authors:["Phillip Ssempeebwa","Irene Phoebe Akitwi","Allen Ayebale","Bruno Sekiwere"],venue:"Preprint at Research Square",year:2025,doi:"https://doi.org/10.21203/rs.3.rs-8373899/v1",citationCount:42,pdfUrl:"https://digitalhealthafrica.org/wp-content/uploads/2025/08/Poster-2-Phillip-Ssempeebwa-1.pdf"}],Fu=[{id:"bruno-sekiwere",name:"Bruno Sekiwere",role:"Team Lead",committee:"Team Leads",imageUrl:"/assets/images/fellows/bruno.jpeg",githubUsername:"bruno-sekiwere",bio:"Bruno provides strategic leadership and guidance to the entire IndabaX Uganda team, ensuring alignment with the lab's mission and goals."},{id:"claire-babirye",name:"Claire Babirye",role:"Team Lead",committee:"Team Leads",imageUrl:"/assets/images/fellows/claire-b.jpeg",githubUsername:"claire-babirye",bio:"Claire co-leads the team, focusing on operational excellence and fostering a collaborative research environment."},{id:"philldevcoder",name:"Phillip Ssempeebwa",role:"Research Fellow",committee:"Research Fellows",imageUrl:"/assets/images/fellows/phillipssempeebwa.jpg",bio:"Dedicated AI Researcher and Software Engineer with a strong foundation in Information Technology and a focus on AI for Global Health and Public Safety. Proven track record in developing interpretable deep learning frameworks for medical imaging and stochastic simulations for emergency response. Lead author of peer-reviewed research in medical AI and experienced in deploying end-to-end machine learning solutions. Passionate about leveraging computational sciences to build climate and health resilience in Africa.",githubUsername:"PhillDev-coder256",googleScholarId:"W1jXlYAAAAAJ",orcid:"0000-0002-1825-0097",socialLinks:[{platform:"Twitter",url:"https://twitter.com/philldevcoder"},{platform:"LinkedIn",url:"https://www.linkedin.com/in/phillip-ssempeebwa-332652227/"},{platform:"Personal Website",url:"https://philldevcoder.netlify.app"}]},{id:"irene-phoebe-akitwi",name:"Irene Phoebe Akitwi",role:"Research Fellow",committee:"Research Fellows",imageUrl:"/assets/images/fellows/irene.jpeg",bio:"Irene Phoebe Akitwi is a Product Designer and AI Research Fellow at IndabaX Uganda with a background in Information Systems and Technology. She specializes in human-centered design, combining UI/UX expertise with data-driven research to build intuitive and impactful digital products. Irene has industry experience in graphic design and user interface development, where she has worked closely with engineering teams to design and improve web and mobile applications. Her work focuses on translating complex ideas into accessible user experiences while contributing to AI research, data analysis, and feature engineering within the IndabaX Uganda community.",socialLinks:[{platform:"LinkedIn",url:"https://www.linkedin.com/in/irene-phoebe-akitwi-95b80b171/"}]},{id:"namutebi-esther",name:"Namutebi Esther",role:"Research Fellow",committee:"Research Fellows",imageUrl:"/assets/images/fellows/esther.jpeg",bio:"Namutebi Esther is a Ugandan Computer Scientist, AI researcher, and Research Fellow at the AI Research Lab Uganda. She holds a Bachelor of Computer Science from Kabale University, where she specialized in machine learning, data analysis, system development, and artificial intelligence. Her work focuses on applying machine learning to real-world challenges in healthcare, agriculture, and emerging scientific domains. Esther has conducted research on predictive modeling for HIV drug resistance using genotypic data, where she developed machine learning models to support improved treatment planning and decision-making in healthcare systems. Esther is an active member of Africaâs growing AI research community and has participated in leading AI initiatives such as Deep Learning Indaba and IndabaX Uganda, where she has contributed as both a researcher and speaker. At Deep Learning Indaba 2023 in Ghana, she presented a
165network anomaly detection model, demonstrating her interest in AI applications for cybersecurity and network systems. She later served as a keynote speaker at Deep Learning IndabaX Uganda 2024, presenting her research on machine learning approaches to HIV drug resistance prediction. Beyond research, Esther is passionate about AI education, mentorship, and community building. She has tutored students in artificial intelligence and machine learning and actively volunteers with AI communities to support the growth of young African researchers in technology. Her research interests span machine learning, health AI, computational modeling, and emerging interdisciplinary fields such as astrophysics, where she is exploring new applications of data science and AI to scientific discovery",githubUsername:"Namutebiesther",socialLinks:[{platform:"Twitter",url:"https://twitter.com/marsciara1"},{platform:"LinkedIn",url:"https://linkedin.com/in/phillip-ssempeebwa"}]},{id:"jovia-nakazibwe",name:"Jovia Nakazibwe",role:"Research Fellow",committee:"Research Fellows",imageUrl:"/assets/images/fellows/jovia.jpeg",bio:"Jovia helps coordinate logistics and events for the AI Clubs, ensuring smooth and impactful workshops and competitions."},{id:"nakabuuka-regina-desire",name:"Nakabuuka Regina Desire",role:"Research Fellow",committee:"Research Fellows",imageUrl:"/assets/images/fellows/regina.png",bio:"Regina contributes to the Research Fellows by managing communications and social media to highlight student achievements."},{id:"allen-ayebale",name:"Allen Ayebale",role:"Research Fellow",committee:"Research Fellows",imageUrl:"/assets/images/fellows/allen.jpeg",bio:"Allen supports the Research Fellows by fostering partnerships with tech companies to provide mentorship and resources for students."},{id:"cissy",name:"Kenyangi CECILIA",role:"Human Resource Manager",committee:"Research Fellows",imageUrl:"/assets/images/fellows/cissy.jpeg",bio:"Cecilia Kenyangi is a dedicated Human Resource Management professional with strong experience in front desk administration, meeting coordination, and workplace organization. She is skilled in managing office operations, handling incoming and outgoing communications, and maintaining office supplies and equipment to ensure efficient day-to-day operations. Currently in her third year pursuing a Bachelorâs degree in Human Resource Management, Cecilia is a fast learner, self-driven, and results-oriented individual who is passionate about creating productive working environments and supporting collaborative teams."}],Gq=[{id:"indabax-uganda-2026",title:"Deep Learning IndabaX Uganda 2026",startDate:"2026-03-23",endDate:"2026-03-27",time:"9:00 AM - 5:00 PM EAT",type:"Conference",description:"The 7th Annual Deep Learning Indabað Uganda, held from 23rdâ27th March 2026 at Silver Springs Hotel, Bugolobi â Kampala, is Ugandaâs premier Artificial Intelligence and Machine Learning conference. This five-day event brings together researchers, students, engineers, industry leaders, and policymakers to advance the AI ecosystem in Uganda and across Africa.",registrationUrl:"https://conference.indabaxug.com/",location:"Silver Springs Hotel, Port Bell Road, Bugolobi, Kampala, Uganda"}],zq=[],x7=[{id:"model-1",name:"CXR-Net - EfficientNet-B0",description:'A lightweight model for rapid triage of chest X-rays into "Likely Normal" and "Potentially Abnormal" categories, achieving 0.831 Test AUROC.',doi:"https://doi.org/10.21203/rs.3.rs-8373899/v1",license:"CC BY 4.0",weightsUrl:"https://digitalhealthafrica.org/wp-content/uploads/2025/08/CXR-Net-EfficientNet-B0-Weights.pth",projectId:"proj-1",metrics:[{name:"Accuracy",value:"83.1%"},{name:"F1-Score (macro)",value:""},{name:"Size",value:""}]}],T7=[{id:"partner-1",name:"Makerere University AI Lab",logoUrl:"/assets/images/partners/mak-ai-lab.png",description:"A leading academic institution in Uganda, collaborating on fundamental AI research and talent development.",websiteUrl:"#",type:"Academic"},{id:"partner-5",name:"Sunbird AI",logoUrl:"/assets/images/partners/sunbird-ai.jpeg",description:"Collaborating on NLP research for low-resource Ugandan languages and promoting AI for social good.",websiteUrl:"#",type:"Community"},{id:"partner-6",name:"Gulu University",logoUrl:"/assets/images/partners/gulu-uni.png",description:"A key academic partner focusing on the application of AI in agriculture and Northern Uganda context.",websiteUrl:"#",type:"Academic"},{id:"kabale-university",name:"Kabale University",logoUrl:"/assets/images/partners/kab-uni.jpg",description:"A prominent academic institution in Uganda, contributing to AI research and education.",websiteUrl:"https://www.kab.ac.ug",type:"Academic"}],Pu=[{id:"afriverse-ai-african-representation",title:"AfriVerse AI: Building Culturally Accurate African Representation in Generative AI",excerpt:"Generative AI struggles to accurately represent African culture due to biased training data. AfriVerse AI introduces a culturally grounded dataset and training pipeline to improve representation of African attire, ceremonies, and traditions.",date:"March 5, 2026",readingTime:"12 min read",category:"Research",authorId:"person-4",authorName:"Namutebi Esther",imageUrl:"https://images.unsplash.com/photo-1677442136019-21780ecad995?q=80&w=1200",tags:["Generative AI","AI Ethics","African AI","Cultural AI","Computer Vision"],content:[{type:"paragraph",text:"Artificial Intelligence is rapidly transforming how we create and interact with digital content. From image generation to storytelling, modern generative AI systems can produce realistic visuals and narratives from simple text prompts."},{type:"paragraph",text:"However, despite these impressive capabilities, many generative models struggle when it comes to representing African cultures accurately."},{type:"heading",text:"The Problem: Cultural Representation Gaps in AI"},{type:"paragraph",text:"Most generative AI models are trained on massive internet-scale datasets that are heavily biased toward Western contexts."},{type:"callout",text:"When African cultural prompts are used, the AI often produces generic imagery that fails to capture correct attire, ceremony structure, and symbolism."},{type:"list",items:["A Muganda bride wearing a gomesi","A traditional introduction ceremony in Uganda","A couple dressed in gomesi and kanzu at a wedding"]},{type:"paragraph",text:"In many cases, the model produces African individuals but fails to represent traditional garments like the gomesi, kanzu, or mishanana correctly."}
165,{type:"heading",text:"The Vision Behind AfriVerse AI"},{type:"paragraph",text:"AfriVerse AI was created to address this gap by building culturally grounded datasets and tools that help generative AI systems better understand African traditions."},{type:"heading",text:"How AfriVerse AI Works"},{type:"list",items:["Collecting culturally relevant visual data","Extracting frames from video using OpenCV and FFmpeg","Annotating images with cultural context","Fine-tuning generative AI models"]},{type:"quote",text:"African traditions deserve accurate representation in the AI systems shaping our digital future."},{type:"heading",text:"Recognition at the Deep Learning Indaba Ideathon"},{type:"paragraph",text:"AfriVerse AI was presented at the Deep Learning Indaba Ideathon where it received an Honourable Mention and reached the finals of the competition."},{type:"heading",text:"Whatâs Next for AfriVerse AI"},{type:"list",items:["Expanding the dataset to cover more African cultures","Improving annotation pipelines with cultural experts","Developing metrics for cultural accuracy","Releasing open research datasets"]}]},{id:"the-unseen-cost-of-model-fit",title:"The Unseen Cost of model.fit(): Why Sustainable AI is Africaâs Next Opportunity",excerpt:"Every time we run a training cell, we leave a trace beyond the terminal. Beyond GPU credits lies a hidden cost of carbon and water that the AI community can no longer ignore.",date:"August 24, 2025",readingTime:"10 min read",category:"Ethics",authorId:"phillip-ssempeebwa",authorName:"Phillip Ssempeebwa",imageUrl:"https://images.unsplash.com/photo-1473341304170-971dccb5ac1e?q=80&w=1200&auto=format&fit=crop",tags:["Green AI","Sustainability","Machine Learning","MLOps","Uganda"],content:[{type:"paragraph",text:"Ever imagined what actually happens when you run that model.fit() cell? For many developers, the focus is entirely on the loss curve and accuracy metrics. But there is a silent metric we rarely track: the environmental cost of our compute."},{type:"quote",text:"When I trained my first medical imaging model, it ran for days on GPUs. I celebrated the accuracyâbut I never asked how much power it really used. It wasnât about the GPU cloud credits anymore; it was about carbon."},{type:"heading",text:"The Heavy Weight of Large Language Models"},{type:"paragraph",text:"The scale of modern AI is staggering. According to the 2024 Stanford AI Report, training GPT-3 alone consumed roughly 1,287 MWh of electricity and produced 502 tons of CO2. To put that in perspective, that is equivalent to the lifetime emissions of 30 average gasoline-powered cars."},{type:"callout",text:"By 2027, AI could consume as much power as the entire country of the Netherlands (up to 134 TWh/year). AIâs footprint is scaling faster than our transition to renewables."},{type:"heading",text:"Training vs. Inference: The Forever Meter"},{type:"paragraph",text:"While we often talk about the massive energy required to train a model, training is a one-time cost. The real drain begins after deployment. Every prompt sent and every prediction made adds to the 'Inference' cost."},{type:"list",items:["Inference accounts for approximately 60% of AI's total energy consumption.","Training accounts for the remaining 40%.","Every single prompt can quietly cost a few liters of clean water for cooling data centers."]},{type:"heading",text:"From Red AI to Green AI"},{type:"paragraph",text:"Historically, 'Red AI' has chased accuracy at all costs, regardless of parameters or power. We are now entering the era of 'Green AI,' where the new benchmark for intelligence isn't sizeâit's efficiency."},{type:"quote",text:"Efficiency is the ultimate innovation. We don't always need a billion parameters to solve a local problem."},{type:"heading",text:"Practical Steps for Sustainable ML"},{type:"list",items:["Use EfficientNet, MobileNet, or pruned models for edge deployment.","Fine-tune existing models before deciding to retrain from scratch.","Choose your cloud region wisely; training on a green energy grid can reduce emissions by up to 50x.","Use tools like CodeCarbon to monitor the carbon footprint of your Python code in real-time."]},{type:"heading",text:"The African Opportunity"},{type:"paragraph",text:"Africa has a unique opportunity to lead in Green AI. Because our digital infrastru
165cture is still young, we can design it to be sustainable from the start. We don't need to compete in model size; we can compete in efficiency and relevance."},{type:"callout",text:"As Dr. Monica Musenero, Uganda's Minister of Science & Technology, noted: 'The only way for us to build sustainable AI is to be creators, not just consumers. AI must be an extension of our skills to drive economic developmentânot just convenience.'"},{type:"paragraph",text:"Our code has a carbon signature. Letâs measure success not only by the accuracy of our predictions but by the sustainability of our systems. Every line of code we write shapes not just our software, but our planet."}]}],PA=({project:t})=>_.jsxs("div",{className:"bg-white rounded-lg shadow-lg overflow-hidden transform hover:-translate-y-2 transition-transform duration-300 flex flex-col",children:[_.jsx("img",{className:"h-56 w-full object-cover",src:t.imageUrl,alt:t.title}),_.jsxs("div",{className:"p-6 flex flex-col flex-grow",children:[_.jsxs("div",{className:"flex justify-between items-center mb-2",children:[_.jsx("span",{className:"text-sm font-semibold text-brand-primary uppercase tracking-wider",children:t.domain}),_.jsx("span",{className:`px-2 py-1 text-xs font-semibold rounded-full ${t.status==="Active"?"bg-green-100 text-green-800":"bg-gray-200 text-gray-800"}`,children:t.status})]}),_.jsx("h3",{className:"text-xl font-serif font-bold text-brand-text mb-2",children:t.title}),_.jsx("p",{className:"text-gray-600 text-sm flex-grow",children:t.summary}),t.impactMetric&&_.jsx("p",{className:"mt-4 text-sm font-bold text-brand-accent-warm",children:t.impactMetric})]}),_.jsx("div",{className:"p-6 bg-gray-50 border-t",children:_.jsx(Pe,{to:`/projects/${t.id}`,className:"text-brand-primary font-bold hover:underline",children:"Learn More â"})})]}),S7=({doi:t})=>_.jsx("a",{href:`https://doi.org/${t}`,target:"_blank",rel:"noopener noreferrer",className:"inline-block bg-brand-accent text-brand-primary text-xs font-bold px-2 py-1 rounded-md hover:bg-yellow-500 transition-colors",children:"DOI"}),RA=({publication:t})=>_.jsxs("div",{className:"bg-white p-6 rounded-lg shadow-md hover:shadow-xl transition-shadow duration-300",children:[_.jsx("h4",{className:"text-lg font-serif font-bold text-brand-text mb-2",children:_.jsx("a",{href:`${t.doi}`,target:"_blank",rel:"noopener noreferrer",className:"hover:text-brand-primary",children:t.title})}),_.jsx("p",{className:"text-sm text-gray-600 mb-3",children:t.authors.join(", ")}),_.jsxs("p",{className:"text-sm text-gray-500 italic mb-4",children:[t.venue,", ",t.year]}),_.jsx("div",{className:"flex items-center justify-between",children:_.jsxs("div",{className:"flex items-center space-x-4",children:[_.jsx(S7,{doi:t.doi}),t.pdfUrl&&_.jsx("a",{href:t.pdfUrl,target:"_blank",rel:"noopener noreferrer",className:"text-brand-primary font-semibold text-sm hover:underline",children:"PDF"}),_.jsx("button",{className:"text-brand-primary font-semibold text-sm hover:underline",children:"Cite"})]})})]}),Kq=({event:t})=>{const e=new Date(t.startDate);return _.jsxs("div",{className:"bg-white p-6 rounded-lg shadow-md flex",children:[_.jsxs("div",{className:"flex-shrink-0 mr-6 text-center border-r pr-6",children:[_.jsx("div",{className:"text-sm font-bold text-brand-accent-warm uppercase",children:e.toLocaleString("en-US",{month:"short"})}),_.jsx("div",{className:"text-3xl font-bold text-brand-text",children:e.getDate()})]}),_.jsxs("div",{children:[_.jsx("span",{className:"text-sm font-semibold text-brand-primary uppercase tracking-wider",children:t.type}),_.jsx("h4",{className:"text-lg font-serif font-bold text-brand-text mb-1",children:t.title}),_.jsxs("p",{className:"text-sm text-gray-600 mb-2",children:[t.time," ⢠",t.location]}),_.jsx("p",{className:"text-sm text-gray-500 text-justify border p-3 rounded",children:t.description}),_.jsx("a",{href:t.registrationUrl,target:"_blank",rel:"noopener noreferrer",className:"inline-block mt-3 text-brand-primary font-bold hover:underline",children:"Register â"})]})]})};var _y,hP;function A7(){if(hP)return _y;hP=1;var t=typeof Element<"u",e=typeof Map=="function",n=typeof Set=="function",r=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function i(o,s){if(o===s)return!0;
165if(o&&s&&typeof o=="object"&&typeof s=="object"){if(o.constructor!==s.constructor)return!1;var u,c,f;if(Array.isArray(o)){if(u=o.length,u!=s.length)return!1;for(c=u;c--!==0;)if(!i(o[c],s[c]))return!1;return!0}var p;if(e&&o instanceof Map&&s instanceof Map){if(o.size!==s.size)return!1;for(p=o.entries();!(c=p.next()).done;)if(!s.has(c.value[0]))return!1;for(p=o.entries();!(c=p.next()).done;)if(!i(c.value[1],s.get(c.value[0])))return!1;return!0}if(n&&o instanceof Set&&s instanceof Set){if(o.size!==s.size)return!1;for(p=o.entries();!(c=p.next()).done;)if(!s.has(c.value[0]))return!1;return!0}if(r&&ArrayBuffer.isView(o)&&ArrayBuffer.isView(s)){if(u=o.length,u!=s.length)return!1;for(c=u;c--!==0;)if(o[c]!==s[c])return!1;return!0}if(o.constructor===RegExp)return o.source===s.source&&o.flags===s.flags;if(o.valueOf!==Object.prototype.valueOf&&typeof o.valueOf=="function"&&typeof s.valueOf=="function")return o.valueOf()===s.valueOf();if(o.toString!==Object.prototype.toString&&typeof o.toString=="function"&&typeof s.toString=="function")return o.toString()===s.toString();if(f=Object.keys(o),u=f.length,u!==Object.keys(s).length)return!1;for(c=u;c--!==0;)if(!Object.prototype.hasOwnProperty.call(s,f[c]))return!1;if(t&&o instanceof Element)return!1;for(c=u;c--!==0;)if(!((f[c]==="_owner"||f[c]==="__v"||f[c]==="__o")&&o.$$typeof)&&!i(o[f[c]],s[f[c]]))return!1;return!0}return o!==o&&s!==s}return _y=function(s,u){try{return i(s,u)}catch(c){if((c.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw c}},_y}var w7=A7();const _7=$e(w7);var Cy,pP;function C7(){if(pP)return Cy;pP=1;var t=function(e,n,r,i,o,s,u,c){if(!e){var f;if(n===void 0)f=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var p=[r,i,o,s,u,c],y=0;f=new Error(n.replace(/%s/g,function(){return p[y++]})),f.name="Invariant Violation"}throw f.framesToPop=1,f}};return Cy=t,Cy}var E7=C7();const mP=$e(E7);var Ey,gP;function M7(){return gP||(gP=1,Ey=function(e,n,r,i){var o=r?r.call(i,e,n):void 0;if(o!==void 0)return!!o;if(e===n)return!0;if(typeof e!="object"||!e||typeof n!="object"||!n)return!1;var s=Object.keys(e),u=Object.keys(n);if(s.length!==u.length)return!1;for(var c=Object.prototype.hasOwnProperty.bind(n),f=0;f<s.length;f++){var p=s[f];if(!c(p))return!1;var y=e[p],v=n[p];if(o=r?r.call(i,y,v,p):void 0,o===!1||o===void 0&&y!==v)return!1}return!0}),Ey}var P7=M7();const R7=$e(P7);var Yq=(t=>(t.BASE="base",t.BODY="body",t.HEAD="head",t.HTML="html",t.LINK="link",t.META="meta",t.NOSCRIPT="noscript",t.SCRIPT="script",t.STYLE="style",t.TITLE="title",t.FRAGMENT="Symbol(react.fragment)",t))(Yq||{}),My={link:{rel:["amphtml","canonical","alternate"]},script:{type:["application/ld+json"]},meta:{charset:"",name:["generator","robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]}},yP=Object.values(Yq),Qh={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},Wq=Object.entries(Qh).reduce((t,[e,n])=>(t[n]=e,t),{}),ur="data-rh",us={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate",PRIORITIZE_SEO_TAGS:"prioritizeSeoTags"},cs=(t,e)=>{for(let n=t.length-1;n>=0;n-=1){const r=t[n];if(Object.prototype.hasOwnProperty.call(r,e))return r[e]}return null},N7=t=>{let e=cs(t,"title");const n=cs(t,us.TITLE_TEMPLATE);if(Array.isArray(e)&&(e=e.join("")),n&&e)return n.replace(/%s/g,()=>e);const r=cs(t,us.DEFAULT_TITLE);return e||r||void 0},O7=t=>cs(t,us.ON_CHANGE_CLIENT_STATE)||(()=>{}),Py=(t,e)=>e.filter(n=>typeof n[t]<"u").map(n=>n[t]).reduce((n,r)=>({...n,...r}),{}),D7=(t,e)=>e.filter(n=>typeof n.base<"u").map(n=>n.base).reverse().reduce((n,r)=>{if(!n.length){const i=Object.keys(r);for(let o=0;o<i.length;o+=1){const u=i[o].toLowerCase();if(t.indexOf(u)!==-1&&r[u])return n.concat(r)}}return n},[]),I7=t=>console&&typeof console.warn=="function"&&console.warn(t),lu=(t,e,n)=>{const r={};return n.filter(i=>Array.isArray(i[t])?!0:(typeof i[t]<"u"&&I7(`Helmet: ${t} should be of type "Array". Instead found type "${typeof i[t]}"`),!1)).map(i=>i[t]).reverse().reduce((i,o)=>{const s={};o.filter(c=>{let f;const p=Object.keys(c);for(let v=0;v<p.length;v+=1){const x=p[v],w=x.toLowerCase();e.indexOf(w)!==-1&&!(f==="rel"&&c[f].toLowerCase()==="canonical")&&!(w==="rel"&&c[w].toLowerCase()==="stylesheet")&&(f=w),e.indexOf(x)!==-1&&(x==="innerHTML"||x==="cssText"||x==="itemprop")&&(f=x)}if(!f||!c[f])return!1;const y=c[f].toLowerCase();return r[f]||(r[f]={}),s[f]||(s[f]={}),r[f][y]?!1:(s[f][y]=!0,!0)}
165).reverse().forEach(c=>i.push(c));const u=Object.keys(s);for(let c=0;c<u.length;c+=1){const f=u[c],p={...r[f],...s[f]};r[f]=p}return i},[]).reverse()},k7=(t,e)=>{if(Array.isArray(t)&&t.length){for(let n=0;n<t.length;n+=1)if(t[n][e])return!0}return!1},L7=t=>({baseTag:D7(["href"],t),bodyAttributes:Py("bodyAttributes",t),defer:cs(t,us.DEFER),encode:cs(t,us.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:Py("htmlAttributes",t),linkTags:lu("link",["rel","href"],t),metaTags:lu("meta",["name","charset","http-equiv","property","itemprop"],t),noscriptTags:lu("noscript",["innerHTML"],t),onChangeClientState:O7(t),scriptTags:lu("script",["src","innerHTML"],t),styleTags:lu("style",["cssText"],t),title:N7(t),titleAttributes:Py("titleAttributes",t),prioritizeSeoTags:k7(t,us.PRIORITIZE_SEO_TAGS)}),Xq=t=>Array.isArray(t)?t.join(""):t,U7=(t,e)=>{const n=Object.keys(t);for(let r=0;r<n.length;r+=1)if(e[n[r]]&&e[n[r]].includes(t[n[r]]))return!0;return!1},Ry=(t,e)=>Array.isArray(t)?t.reduce((n,r)=>(U7(r,e)?n.priority.push(r):n.default.push(r),n),{priority:[],default:[]}):{default:t,priority:[]},vP=(t,e)=>({...t,[e]:void 0}),q7=["noscript","script","style"],uT=(t,e=!0)=>e===!1?String(t):String(t).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"),Jq=t=>Object.keys(t).reduce((e,n)=>{const r=typeof t[n]<"u"?`${n}="${t[n]}"`:`${n}`;return e?`${e} ${r}`:r},""),B7=(t,e,n,r)=>{const i=Jq(n),o=Xq(e);return i?`<${t} ${ur}="true" ${i}>${uT(o,r)}</${t}>`:`<${t} ${ur}="true">${uT(o,r)}</${t}>`},$7=(t,e,n=!0)=>e.reduce((r,i)=>{const o=i,s=Object.keys(o).filter(f=>!(f==="innerHTML"||f==="cssText")).reduce((f,p)=>{const y=typeof o[p]>"u"?p:`${p}="${uT(o[p],n)}"`;return f?`${f} ${y}`:y},""),u=o.innerHTML||o.cssText||"",c=q7.indexOf(t)===-1;return`${r}<${t} ${ur}="true" ${s}${c?"/>":`>${u}</${t}>`}`},""),Zq=(t,e={})=>Object.keys(t).reduce((n,r)=>{const i=Qh[r];return n[i||r]=t[r],n},e),V7=(t,e,n)=>{const r={key:e,[ur]:!0},i=Zq(n,r);return[j.createElement("title",i,e)]},Dd=(t,e)=>e.map((n,r)=>{const i={key:r,[ur]:!0};return Object.keys(n).forEach(o=>{const u=Qh[o]||o;if(u==="innerHTML"||u==="cssText"){const c=n.innerHTML||n.cssText;i.dangerouslySetInnerHTML={__html:c}}else i[u]=n[o]}),j.createElement(t,i)}),Hn=(t,e,n=!0)=>{switch(t){case"title":return{toComponent:()=>V7(t,e.title,e.titleAttributes),toString:()=>B7(t,e.title,e.titleAttributes,n)};case"bodyAttributes":case"htmlAttributes":return{toComponent:()=>Zq(e),toString:()=>Jq(e)};default:return{toComponent:()=>Dd(t,e),toString:()=>$7(t,e,n)}}},j7=({metaTags:t,linkTags:e,scriptTags:n,encode:r})=>{const i=Ry(t,My.meta),o=Ry(e,My.link),s=Ry(n,My.script);return{priorityMethods:{toComponent:()=>[...Dd("meta",i.priority),...Dd("link",o.priority),...Dd("script",s.priority)],toString:()=>`${Hn("meta",i.priority,r)} ${Hn("link",o.priority,r)} ${Hn("script",s.priority,r)}`},metaTags:i.default,linkTags:o.default,scriptTags:s.default}},F7=t=>{const{baseTag:e,bodyAttributes:n,encode:r=!0,htmlAttributes:i,noscriptTags:o,styleTags:s,title:u="",titleAttributes:c,prioritizeSeoTags:f}=t;let{linkTags:p,metaTags:y,scriptTags:v}=t,x={toComponent:()=>[],toString:()=>""};return f&&({priorityMethods:x,linkTags:p,metaTags:y,scriptTags:v}=j7(t)),{priority:x,base:Hn("base",e,r),bodyAttributes:Hn("bodyAttributes",n,r),htmlAttributes:Hn("htmlAttributes",i,r),link:Hn("link",p,r),meta:Hn("meta",y,r),noscript:Hn("noscript",o,r),script:Hn("script",v,r),style:Hn("style",s,r),title:Hn("title",{title:u,titleAttributes:c},r)}},cT=F7,ud=[],NA=!!(typeof window<"u"&&window.document&&window.document.createElement),fT=class{constructor(t,e){Xr(this,"instances",[]);Xr(this,"canUseDOM",NA);Xr(this,"context");Xr(this,"value",{setHelmet:t=>{this.context.helmet=t},helmetInstances:{get:()=>this.canUseDOM?ud:this.instances,add:t=>{(this.canUseDOM?ud:this.instances).push(t)},remove:t=>{const e=(this.canUseDOM?ud:this.instances).indexOf(t);(this.canUseDOM?ud:this.instances).splice(e,1)}}});this.context=t,this.canUseDOM=e||!1,e||(t.helmet=cT({baseTag:[],bodyAttributes:{},htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))}},H7=parseInt(j.version.split(".")[0],10),dT=H7>=19,G7={},Qq=j.createContext(G7),Vo,eB=(Vo=class extends k.Component{constructor(n){super(n);Xr(this,"helmetData");dT?this.helmetData=null:this.helmetData=new fT(this.props.context||{},Vo.canUseDOM)}render(){return dT?j.createElement(j.Fragment,null,this.props.children):j.createElement(Qq.Provider,{value:this.helmetData.value},this.props.children)}},Xr(Vo,"canUseDOM",NA),Vo),Ga=(t,e)=>{const n=document.head||document.querySelector("head"),r=n.querySelectorAll(`${t}[${ur}]`),i=[].slice.call(r),o=[];let s;return e&&e.length&&e.forEach(u=>{const c=document.createElement(t);for(const f in u)if(Object.prototype.hasOwnProperty.call(u,f))if(f==="innerHTML")c.innerHTML=u.innerHTML;else if(f==="cssText"){const p=u.cssText;c.appendChild(document.createTextNode(p))}else{const p=f,y=typeof u[p]>"u"?"":u[p];c.setAttribute(f,y)}c.setAttribute(ur,"true"),i.some((f,p)=>
165(s=p,c.isEqualNode(f)))?i.splice(s,1):o.push(c)}),i.forEach(u=>{var c;return(c=u.parentNode)==null?void 0:c.removeChild(u)}),o.forEach(u=>n.appendChild(u)),{oldTags:i,newTags:o}},hT=(t,e)=>{const n=document.getElementsByTagName(t)[0];if(!n)return;const r=n.getAttribute(ur),i=r?r.split(","):[],o=[...i],s=Object.keys(e);for(const u of s){const c=e[u]||"";n.getAttribute(u)!==c&&n.setAttribute(u,c),i.indexOf(u)===-1&&i.push(u);const f=o.indexOf(u);f!==-1&&o.splice(f,1)}for(let u=o.length-1;u>=0;u-=1)n.removeAttribute(o[u]);i.length===o.length?n.removeAttribute(ur):n.getAttribute(ur)!==s.join(",")&&n.setAttribute(ur,s.join(","))},z7=(t,e)=>{typeof t<"u"&&document.title!==t&&(document.title=Xq(t)),hT("title",e)},bP=(t,e)=>{const{baseTag:n,bodyAttributes:r,htmlAttributes:i,linkTags:o,metaTags:s,noscriptTags:u,onChangeClientState:c,scriptTags:f,styleTags:p,title:y,titleAttributes:v}=t;hT("body",r),hT("html",i),z7(y,v);const x={baseTag:Ga("base",n),linkTags:Ga("link",o),metaTags:Ga("meta",s),noscriptTags:Ga("noscript",u),scriptTags:Ga("script",f),styleTags:Ga("style",p)},w={},A={};Object.keys(x).forEach(S=>{const{newTags:C,oldTags:P}=x[S];C.length&&(w[S]=C),P.length&&(A[S]=x[S].oldTags)}),e&&e(),c(t,w,A)},uu=null,K7=t=>{uu&&cancelAnimationFrame(uu),t.defer?uu=requestAnimationFrame(()=>{bP(t,()=>{uu=null})}):(bP(t),uu=null)},Y7=K7,xP=class extends k.Component{constructor(){super(...arguments);Xr(this,"rendered",!1)}shouldComponentUpdate(e){return!R7(e,this.props)}componentDidUpdate(){this.emitChange()}componentWillUnmount(){const{helmetInstances:e}=this.props.context;e.remove(this),this.emitChange()}emitChange(){const{helmetInstances:e,setHelmet:n}=this.props.context;let r=null;const i=L7(e.get().map(o=>{const{context:s,...u}=o.props;return u}));eB.canUseDOM?Y7(i):cT&&(r=cT(i)),n(r)}init(){if(this.rendered)return;this.rendered=!0;const{helmetInstances:e}=this.props.context;e.add(this),this.emitChange()}render(){return this.init(),null}},Id=[],TP=t=>{const e={};for(const n of Object.keys(t))e[Wq[n]||n]=t[n];return e},Eo=t=>{const e={};for(const n of Object.keys(t)){const r=Qh[n];e[r||n]=t[n]}return e},SP=(t,e)=>{if(!NA)return;const n=document.getElementsByTagName(t)[0];if(!n)return;const r="data-rh-managed",i=n.getAttribute(r),o=i?i.split(","):[],s=Object.keys(e);for(const u of o)s.includes(u)||n.removeAttribute(u);for(const u of s){const c=e[u];c==null||c===!1?n.removeAttribute(u):c===!0?n.setAttribute(u,""):n.setAttribute(u,String(c))}s.length>0?n.setAttribute(r,s.join(",")):n.removeAttribute(r)},Ny=()=>{const t={},e={};for(const n of Id){const{htmlAttributes:r,bodyAttributes:i}=n.props;r&&Object.assign(t,TP(r)),i&&Object.assign(e,TP(i))}SP("html",t),SP("body",e)},W7=class extends k.Component{componentDidMount(){Id.push(this),Ny()}componentDidUpdate(){Ny()}componentWillUnmount(){const t=Id.indexOf(this);t!==-1&&Id.splice(t,1),Ny()}resolveTitle(){const{title:t,titleTemplate:e,defaultTitle:n}=this.props;return t&&e?e.replace(/%s/g,()=>Array.isArray(t)?t.join(""):t):t||n||void 0}renderTitle(){const t=this.resolveTitle();if(t===void 0)return null;const e=this.props.titleAttributes||{};return j.createElement("title",Eo(e),t)}renderBase(){const{base:t}=this.props;return t?j.createElement("base",Eo(t)):null}renderMeta(){const{meta:t}=this.props;return!t||!Array.isArray(t)?null:t.map((e,n)=>j.createElement("meta",{key:n,...Eo(e)}))}renderLink(){const{link:t}=this.props;return!t||!Array.isArray(t)?null:t.map((e,n)=>j.createElement("link",{key:n,...Eo(e)}))}renderScript(){const{script:t}=this.props;return!t||!Array.isArray(t)?null:t.map((e,n)=>{const{innerHTML:r,...i}=e,o=Eo(i);return r&&(o.dangerouslySetInnerHTML={__html:r}),j.createElement("script",{key:n,...o})})}renderStyle(){const{style:t}=this.props;return!t||!Array.isArray(t)?null:t.map((e,n)=>{const{cssText:r,...i}=e,o=Eo(i);return r&&(o.dangerouslySetInnerHTML={__html:r}),j.createElement("style",{key:n,...o})})}renderNoscript(){const{noscript:t}=this.props;return!t||!Array.isArray(t)?null:t.map((e,n)=>{const{innerHTML:r,...i}=e,o=Eo(i);return r&&(o.dangerouslySetInnerHTML={__html:r}),j.createElement("noscript",{key:n,...o})})}render(){return j.createElement(j.Fragment,null,this.renderTitle(),this.renderBase(),this.renderMeta(),this.renderLink(),this.renderScript(),this.renderStyle(),this.renderNoscript())}},Lx,X7=(Lx=class extends k.Component{shouldComponentUpdate(t){return!_7(vP(this.props,"helmetData"),vP(t,"helmetData"))}mapNestedChildrenToProps(t,e){if(!e)return null;switch(t.type){case"script":case"noscript":return{innerHTML:e};case"style":return{cssText:e};default:throw new Error(`<${t.type} /> elements are self-closing and can not contain children. Refer to our API for more information.`)}}flattenArrayTypeChildren(t,e,n,r){return{...e,[t.type]:[...e[t.type]||[],{...n,...this.mapNestedChildrenToProps(t,r)}]}}mapObjectTypeChildren(t,e,n,r){switch(t.type){case"title":return{...e,[t.type]:r,titleAttributes:{...n}};case"body":return{...e,bodyAttributes:{...n}};case"html":return{...e,htmlAttributes:{...n}};default:return{...e,[t.type]:{...n}}}}mapArrayTypeChildrenToProps(t,e){let n={...e};return Object.keys(t).forEach(r=>{n={...n,[r]:t[r]}}),n}
165warnOnInvalidChildren(t,e){return mP(yP.some(n=>t.type===n),typeof t.type=="function"?"You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information.":`Only elements types ${yP.join(", ")} are allowed. Helmet does not support rendering <${t.type}> elements. Refer to our API for more information.`),mP(!e||typeof e=="string"||Array.isArray(e)&&!e.some(n=>typeof n!="string"),`Helmet expects a string as a child of <${t.type}>. Did you forget to wrap your children in braces? ( <${t.type}>{\`\`}</${t.type}> ) Refer to our API for more information.`),!0}mapChildrenToProps(t,e){let n={};return j.Children.forEach(t,r=>{if(!r||!r.props)return;const{children:i,...o}=r.props,s=Object.keys(o).reduce((c,f)=>(c[Wq[f]||f]=o[f],c),{});let{type:u}=r;switch(typeof u=="symbol"?u=u.toString():this.warnOnInvalidChildren(r,i),u){case"Symbol(react.fragment)":e=this.mapChildrenToProps(i,e);break;case"link":case"meta":case"noscript":case"script":case"style":n=this.flattenArrayTypeChildren(r,n,s,i);break;default:e=this.mapObjectTypeChildren(r,e,s,i);break}}),this.mapArrayTypeChildrenToProps(n,e)}render(){const{children:t,...e}=this.props;let n={...e},{helmetData:r}=e;if(t&&(n=this.mapChildrenToProps(t,n)),r&&!(r instanceof fT)){const i=r;r=new fT(i.context,!0),delete n.helmetData}return dT?j.createElement(W7,{...n}):r?j.createElement(xP,{...n,context:r.value}):j.createElement(Qq.Consumer,null,i=>j.createElement(xP,{...n,context:i}))}},Xr(Lx,"defaultProps",{defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1}),Lx);const Ys=({title:t,description:e,image:n="/og-image.jpg",url:r=window.location.href,type:i="website"})=>{const o="IndabaX Uganda",s=t?`${t} | ${o}`:o,u="Uganda's Premier AI & Machine Learning Research Lab and Conference.";return _.jsxs(X7,{children:[_.jsx("title",{children:s}),_.jsx("meta",{name:"description",content:e||u}),_.jsx("meta",{property:"og:type",content:i}),_.jsx("meta",{property:"og:title",content:s}),_.jsx("meta",{property:"og:description",content:e||u}),_.jsx("meta",{property:"og:image",content:n}),_.jsx("meta",{property:"og:url",content:r}),_.jsx("meta",{name:"twitter:card",content:"summary_large_image"}),_.jsx("meta",{name:"twitter:title",content:s}),_.jsx("meta",{name:"twitter:description",content:e||u}),_.jsx("meta",{name:"twitter:image",content:n})]})},rr=[{id:1,title:"Deep Learning IndabaX & Spring School 2026",subtitle:"UGANDA'S PREMIER AI EVENT",description:"Theme: Building a Responsible AI Ecosystem for Sustainable Innovation. Join us for 5 days of intensive research, Agent-Based Modeling, and community building.",image:"/assets/images/day1-attendance.jpg",cta:"Get Tickets",link:"https://conference.indabaxug.com/",secondaryCta:"View Program",secondaryLink:"https://conference.indabaxug.com/program",icon:_.jsx(Fq,{className:"w-6 h-6"}),details:"March 23rdâ27th 2026 ⢠Silver Springs Hotel, Kampala"},{id:2,title:"Driving AI Innovation in Africa",subtitle:"RESEARCH & DEVELOPMENT",description:"Empowering Ugandan researchers to solve complex local challenges through state-of-the-art machine learning.",image:"https://images.unsplash.com/photo-1677442136019-21780ecad995?auto=format&fit=crop&q=80&w=2000",cta:"Explore Research",link:"/research",icon:_.jsx(u7,{className:"w-6 h-6"})},{id:3,title:"Intelligence for Agriculture & Health",subtitle:"LOCAL IMPACT",description:"Building sustainable AI tools designed specifically for the unique data landscapes of East Africa.",image:"https://images.unsplash.com/photo-1523961131990-5ea7c61b2107?auto=format&fit=crop&q=80&w=2000",cta:"Our Projects",link:"/projects",icon:_.jsx(m7,{className:"w-6 h-6"})},{id:4,title:"A Thriving AI Community",subtitle:"COLLABORATION",description:"Join a network of over 500+ data scientists and engineers building the future of the continent.",image:"https://images.unsplash.com/photo-1550751827-4bd374c3f58b?auto=format&fit=crop&q=80&w=2000",cta:"Join IndabaX",link:"/join",icon:_.jsx(y7,{className:"w-6 h-6"})}],J7=()=>{const[t,e]=k.useState(0);k.useEffect(()=>{const i=setInterval(()=>{e(o=>o===rr.length-1?0:o+1)},6e3);return()=>clearInterval(i)},[]);const n=()=>e(i=>i===rr.length-1?0:i+1),r=()=>e(i=>i===0?rr.length-1:i-1);return _.jsxs("div",{className:"bg-brand-background min-h-screen",children:[_.jsx(Ys,{title:"Driving AI Innovation in Africa",description:"Join the 7th Annual Deep Learning IndabaX Uganda. 5 days of intensive AI research and community building."}),_.jsxs("section",{className:"relative h-[90vh] md:h-screen w-full overflow-hidden bg-brand-primary px-12",children:[_.jsx(zG,{mode:"wait",children:_.jsxs(Co.div,{initial:{opacity:0}
165,animate:{opacity:1},exit:{opacity:0},transition:{duration:1},className:"absolute inset-0",children:[_.jsx(Co.div,{initial:{scale:1.1},animate:{scale:1},transition:{duration:6},className:"absolute inset-0 bg-cover bg-center",style:{backgroundImage:`url(${rr[t].image})`}}),_.jsx("div",{className:"absolute inset-0 bg-gradient-to-r from-brand-primary/90 via-brand-primary/60 to-transparent"}),_.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-brand-primary via-transparent to-transparent opacity-80"}),_.jsx("div",{className:"absolute inset-0 opacity-10 bg-[url('https://www.transparenttextures.com/patterns/carbon-fibre.png')]"})]},t)}),_.jsx("div",{className:"relative z-10 container mx-auto px-6 h-full flex flex-col justify-center",children:_.jsxs("div",{className:"max-w-4xl",children:[_.jsxs(Co.div,{initial:{y:20,opacity:0},animate:{y:0,opacity:1},transition:{delay:.2},className:"flex items-center space-x-3 mb-4",children:[_.jsx("span",{className:"bg-brand-accent p-2 rounded-sm text-brand-primary",children:rr[t].icon}),_.jsx("span",{className:"text-brand-accent font-bold tracking-[0.2em] uppercase text-sm",children:rr[t].subtitle})]},`subtitle-${t}`),_.jsx(Co.h3,{initial:{y:30,opacity:0},animate:{y:0,opacity:1},transition:{delay:.4,duration:.8},className:"text-6xl md:text-6xl font-serif font-black text-white mb-6 leading-[1.1]",children:rr[t].title.split(" ").map((i,o)=>_.jsxs("span",{className:i==="AI"||i==="Africa"?"text-brand-accent":"",children:[i," "]},o))},`title-${t}`),_.jsx(Co.p,{initial:{y:30,opacity:0},animate:{y:0,opacity:1},transition:{delay:.6},className:"text-xl md:text-2xl text-gray-200 max-w-2xl mb-10 leading-relaxed font-light",children:rr[t].description},`desc-${t}`),_.jsxs(Co.div,{initial:{y:30,opacity:0},animate:{y:0,opacity:1},transition:{delay:.8},className:"flex flex-wrap gap-4",children:[_.jsxs(Pe,{to:rr[t].link,className:"group flex items-center bg-brand-accent hover:bg-yellow-500 text-brand-primary font-black py-4 px-10 rounded-full transition-all duration-300 transform hover:scale-105 shadow-2xl",children:[rr[t].cta,_.jsx(dP,{className:"ml-2 group-hover:translate-x-2 transition-transform"})]}),_.jsx(Pe,{to:"/community",className:"backdrop-blur-md bg-white/10 border border-white/20 hover:bg-white/20 text-white font-bold py-4 px-10 rounded-full transition-all",children:"Join Community"})]})]})}),_.jsxs("div",{className:"absolute bottom-12 right-6 md:right-12 z-20 flex space-x-4",children:[_.jsx("button",{onClick:r,className:"p-3 border border-white/30 rounded-full text-white hover:bg-brand-accent hover:text-brand-primary transition-all",children:_.jsx(d7,{size:24})}),_.jsx("button",{onClick:n,className:"p-3 border border-white/30 rounded-full text-white hover:bg-brand-accent hover:text-brand-primary transition-all",children:_.jsx(Hq,{size:24})})]}),_.jsx("div",{className:"absolute bottom-12 left-6 md:left-12 z-20 flex space-x-3",children:rr.map((i,o)=>_.jsx("div",{onClick:()=>e(o),className:`h-1 transition-all duration-500 cursor-pointer ${t===o?"w-12 bg-brand-accent":"w-6 bg-white/30"}`},o))})]}),_.jsx("section",{className:"py-24 relative overflow-hidden",children:_.jsxs("div",{className:"container mx-auto px-6",children:[_.jsxs("div",{className:"flex flex-col md:flex-row justify-between items-end mb-16",children:[_.jsxs("div",{children:[_.jsx("h2",{className:"text-brand-accent font-bold tracking-widest uppercase text-sm mb-2",children:"Portfolio"}),_.jsx("h3",{className:"text-4xl md:text-5xl font-serif font-bold text-brand-text",children:"Featured Research"})]}),_.jsxs(Pe,{to:"/projects",className:"text-brand-primary font-bold flex items-center hover:text-brand-accent transition-colors",children:["Explore All Projects ",_.jsx(dP,{size:20,className:"ml-2"})]})]}),_.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-10",children:vs.map((i,o)=>_.jsx(Co.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{delay:o*.1},viewport:{once:!0},children:_.jsx(PA,{project:i})},i.id))})]})}),_.jsxs("section",{className:"bg-brand-primary py-24 relative",children:[_.jsx("div",{className:"abolute top-0 right-0 w-1/3 h-full bg-brand-accent/5 skew-x-12 transform translate-x-20"}),_.jsxs("div",{className:"container mx-auto px-6 text-center text-white relative z-10",children:[_.jsx("h2",{className:"text-4xl md:text-5xl font-serif font-bold mb-6",children:"Building the Future of Uganda, Together"}),_.jsx("p",{className:"max-w-2xl mx-auto mb-10 text-xl text-gray-300 font-light",children:"Whether you are a researcher looking for data, a student seeking mentorship, or a partner wanting to innovate, there is a place for you."}),_.jsx(Pe,{to:"/partners",className:"bg-brand-accent-warm hover:bg-orange-700 text-white font-black py-5 px-12 rounded-xl transition-all inline-block shadow-xl hover:-translate-y-1",children:"Become a Partner"})]})]}),_.jsx("section",{className:"py-24 bg-white",children:_.jsxs("div",{className:"container mx-auto px-6 grid lg:grid-cols-5 ga
165p-16",children:[_.jsxs("div",{className:"lg:col-span-3",children:[_.jsxs("div",{className:"border-b border-gray-100 pb-4 mb-8 flex justify-between items-center",children:[_.jsx("h2",{className:"text-3xl font-serif font-bold text-brand-text",children:"Recent Publications"}),_.jsx(Pe,{to:"/publications",className:"text-sm font-bold text-brand-primary",children:"View All"})]}),_.jsx("div",{className:"space-y-8",children:MA.slice(0,3).map(i=>_.jsx(RA,{publication:i},i.id))})]}),_.jsx("div",{className:"lg:col-span-2",children:_.jsxs("div",{className:"bg-brand-background p-8 rounded-3xl border border-brand-accent/20",children:[_.jsxs("h2",{className:"text-2xl font-serif font-bold text-brand-text mb-8 flex items-center",children:[_.jsx("span",{className:"w-2 h-8 bg-brand-accent mr-4 rounded-full"}),"Upcoming Events"]}),_.jsx("div",{className:"space-y-8",children:Gq.map(i=>_.jsx(Kq,{event:i},i.id))})]})})]})})]})},Z7=({person:t})=>_.jsx(Pe,{to:`/people/${t.id}`,className:"block group",children:_.jsxs("div",{className:"bg-white text-center p-6 rounded-lg shadow-lg group-hover:shadow-xl transition-shadow duration-300 transform group-hover:-translate-y-1 h-full flex flex-col",children:[_.jsx("img",{className:"w-32 h-32 rounded-full mx-auto mb-4 object-cover",src:t.imageUrl,alt:t.name}),_.jsx("h3",{className:"text-xl font-serif font-bold text-brand-text",children:t.name}),_.jsx("p",{className:"text-brand-primary font-semibold mb-3",children:t.role}),_.jsx("p",{className:"text-sm text-gray-600 mb-4 flex-grow",children:t.bio.split(" ").length>25?t.bio.split(" ").slice(0,25).join(" ")+"...":t.bio}),_.jsxs("div",{className:"flex justify-center space-x-4 mt-auto",children:[t.orcid&&_.jsx("a",{href:`https://orcid.org/${t.orcid}`,target:"_blank",rel:"noopener noreferrer",className:"text-gray-500 hover:text-brand-primary",onClick:e=>e.stopPropagation(),children:_.jsx(XS,{})}),t.githubUsername&&_.jsx("a",{href:`https://github.com/${t.githubUsername}`,target:"_blank",rel:"noopener noreferrer",className:"text-gray-500 hover:text-brand-primary",onClick:e=>e.stopPropagation(),children:_.jsx(Yh,{})}),t.googleScholarId&&_.jsx("a",{href:`https://scholar.google.com/citations?user=${t.googleScholarId}`,target:"_blank",rel:"noopener noreferrer",className:"text-gray-500 hover:text-brand-primary font-bold text-lg",onClick:e=>e.stopPropagation(),children:"G"}),_.jsx("button",{onClick:e=>{e.preventDefault(),e.stopPropagation();const n={title:`${t.name} - IndabaX Uganda AI Lab`,text:`Check out the profile of ${t.name} at IndabaX Uganda AI Lab.`,url:window.location.origin+`/people/${t.id}`};navigator.share?navigator.share(n).catch(r=>console.error("Error sharing:",r)):navigator.clipboard.writeText(n.url).then(()=>{alert("Profile URL copied to clipboard!")}).catch(r=>console.error("Could not copy text: ",r))},className:"text-gray-500 hover:text-brand-primary","aria-label":`Share ${t.name}'s profile`,children:_.jsx(nH,{})})]})]})}),tB=()=>{const[t,e]=k.useState(""),[n,r]=k.useState("All"),i=k.useMemo(()=>["All",...Array.from(new Set(Fu.map(s=>s.committee)))],[]),o=k.useMemo(()=>Fu.filter(s=>n==="All"||s.committee===n).filter(s=>s.name.toLowerCase().includes(t.toLowerCase())||s.role.toLowerCase().includes(t.toLowerCase())),[t,n]);return _.jsxs("div",{className:"py-16",children:[_.jsx(Ys,{title:"Our Team â IndabaðUg AI Lab",description:"Meet the passionate researchers, engineers, and students driving AI innovation at IndabaðUg AI Lab.",url:"/people",type:"website"}),_.jsxs("div",{className:"container mx-auto px-6",children:[_.jsxs("div",{className:"text-center mb-12",children:[_.jsx("h1",{className:"text-4xl md:text-5xl font-serif font-bold text-brand-text mb-4",children:"Our Team"}),_.jsx("p",{className:"text-lg max-w-3xl mx-auto text-gray-700",children:"Meet the passionate researchers, engineers, and students driving our mission forward."})]}),_.jsxs("div",{className:"mb-12",children:[_.jsx("div",{className:"flex flex-col md:flex-row gap-4 justify-center items-center mb-6",children:_.jsx("div",{className:"flex flex-wrap justify-center gap-2",children:i.map(s=>_.jsx("button",{onClick:()=>r(s),className:`px-4 py-2 text-sm font-semibold rounded-full transition-colors duration-300 ${n===s?"bg-brand-primary text-white":"bg-white text-brand-text hover:bg-gray-100"}`,children:s},s))})}),_.jsx("div",{className:"max-w-md mx-auto",children:_.jsx("input",{type:"text",placeholder:"Search by name or role...",value:t,onChange:s=>e(s.target.value),className:"w-full px-4 py-3 border border-gray-300 rounded-lg shadow-sm focus:outline-none focus:ring-2 focus:ring-brand-primary"})})]}),o.length>0?_.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-8",children:o.map(s=>_.jsx(Z7,{person:s},s.id))}):_.jsx("p",{className:"text-center text-gray-500 text-lg",children:"No team members found matching your criteria."})]})]})},Q7=()=>_.jsx("div",{className:"bg-brand-background py-16",children:_.jsxs("div",{className:"container mx-auto px-6",children:[_.jsxs("div",{className:"text-center border p-8 rounded-lg shadow-lg bg-white",children:[_.jsx("h1",{className:"text-4xl md:text-5xl font-serif font-bold text-brand-text mb-4",children:"About IndabaðUg AI Lab"}),_.jsx("p",{className:"text-lg max-w-3xl mx-auto text-gray-700",children:"We are a community-first AI research lab dedicated to fostering innovation and building capacity to solve Uganda's most pressing local challenges."})]}),_.jsxs("div",{className:"grid md:grid-cols-2 gap-12 mt-16 items-center",children:[_.jsxs("div",{children:[_.jsx("h2",{className:"text-3xl font-serif font-bold text-brand-primary mb-4",children:"Our Mission"}),_.jsx("p",{className:"text-gray-700 mb-4",children:"Our mission is to cultivate a vibrant, inclusive, and sustainable AI ecosystem in Uganda. We aim to conduct world-class, contextually-relevant research, develop open-source tools and datasets, and empower the next generation of AI practitioners and researchers through mentorship, training, and collaboration."}),_.jsx("p",{className:"text-gray-700",children:"We focus on key areas like healthcare, agriculture, and education, believing that AI can be a powerful catalyst for positive social and economic transformation."})]}),_.jsx("div",{className:"relative",children:_.jsx("div",{className:"rounded-2xl p-[3px] bg-gradient-to-br from-brand-primary/80 via-brand-secondary/60 to-brand-primary/80 shadow-2xl",children:_.jsx("div",{className:"rounded-2xl overflow-hidden bg-white",children:_.jsx("img",{src:"/assets/images/collaborating.jpg",alt:"Team collaborating",className:"rounded-2xl transform hover:scale-[1.02] transition-transform duration-500 ease-out"})})})})]}),_.jsx("div",{className:"mt-20",children:_.jsx(tB,{})})]})}),e9=()=>{const[t,e]=k.useState("All"),[n,r]=k.useState("All"),[i,o]=k.useState("title"),s=k.useMemo(()=>["All",...Array.from(new Set(vs.map(f=>f.domain)))],[]),u=["All","Active","Completed"],c=k.useMemo(()=>{let f=[...vs];return t!=="All"&&(f=f.filter(p=>p.domain===t)),n!=="All"&&(f=f.filter(p=>p.status===n)),i==="title"?f.sort((p,y)=>p.title.localeCompare(y.title)):i==="impact"&&f.sort((p,y)=>p.impactMetric&&!y.impactMetric?-1:!p.impactMetric&&y.impactMetric?1:!p.impactMetric||!y.impactMetric?0:p.impactMetric.localeCompare(y.impactMetric)),f},[t,n,i]);return _.jsx("div",{className:"py-16",children:_.jsxs("div",{className:"container mx-auto px-6",children:[_.jsxs("div",{className:"text-center mb-12",children:[_.jsx("h1",{className:"text-4xl md:text-5xl font-serif font-bold text-brand-text mb-4",children:"Our Research Projects"}),_.jsx("p",{className:"text-lg max-w-3xl mx-auto text-gray-700",children:"Filter and sort through our projects to explore solutions that are both innovative and practical."})]}),_.jsx("div",{className:"bg-white p-4 rounded-lg shadow-lg mb-12 sticky top-20 z-40 backdrop-blur-sm bg-white/80",children:_.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[_.jsxs("div",{children:[_.jsx("label",{htmlFor:"domain-filter",className:"block text-sm font-medium text-gray-700 mb-1",children:"Filter by Domain"}),_.jsx("select",{id:"domain-filter",value:t,onChange:f=>e(f.target.value),className:"w-full px-3 py-2 border border-gray-300 bg-white rounded-md shadow-sm focus:outline-none focus:ring-1 focus:ring-brand-primary",children:s.map(f=>_.jsx("option",{value:f,children:f},f))})]}),_.jsxs("div",{children:[_.jsx("label",{htmlFor:"status-filter",className:"block text-sm font-medium text-gray-700 mb-1",children:"Filter by Status"}),_.jsx("select",{id:"status-filter",value:n,onChange:f=>r(f.target.value),className:"w-full px-3 py-2 border border-gray-300 bg-white rounded-md shadow-sm focus:outline-none focus:ring-1 focus:ring-brand-primary",children:u.map(f=>_.jsx("option",{value:f,children:f},f))})]}),_.jsxs("div",{children:[_.jsx("label",{htmlFor:"sort-by",className:"block text-sm font-medium text-gray-700 mb-1",children:"Sort By"}
165),_.jsxs("select",{id:"sort-by",value:i,onChange:f=>o(f.target.value),className:"w-full px-3 py-2 border border-gray-300 bg-white rounded-md shadow-sm focus:outline-none focus:ring-1 focus:ring-brand-primary",children:[_.jsx("option",{value:"title",children:"Title (A-Z)"}),_.jsx("option",{value:"impact",children:"Impact Metric"})]})]})]})}),c.length>0?_.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-8",children:c.map(f=>_.jsx(PA,{project:f},f.id))}):_.jsxs("div",{className:"text-center py-16",children:[_.jsx("h3",{className:"text-2xl font-serif font-bold text-brand-text",children:"No Projects Found"}),_.jsx("p",{className:"text-gray-600 mt-2",children:"Try adjusting your filters to find what you're looking for."})]})]})})},t9=()=>{const[t,e]=k.useState(""),n=MA.filter(r=>r.title.toLowerCase().includes(t.toLowerCase())||r.authors.join(", ").toLowerCase().includes(t.toLowerCase())||r.venue.toLowerCase().includes(t.toLowerCase()));return _.jsx("div",{className:"py-16",children:_.jsxs("div",{className:"container mx-auto px-6",children:[_.jsxs("div",{className:"text-center mb-12",children:[_.jsx("h1",{className:"text-4xl md:text-5xl font-serif font-bold text-brand-text mb-4",children:"Publications"}),_.jsx("p",{className:"text-lg max-w-3xl mx-auto text-gray-700",children:"Explore our lab's contributions to the global body of AI research."})]}),_.jsx("div",{className:"mb-8 max-w-2xl mx-auto",children:_.jsx("input",{type:"text",placeholder:"Search by title, author, or venue...",value:t,onChange:r=>e(r.target.value),className:"w-full px-4 py-3 border border-gray-300 rounded-lg shadow-sm focus:outline-none focus:ring-2 focus:ring-brand-primary"})}),_.jsx("div",{className:"space-y-6",children:n.length>0?n.map(r=>_.jsx(RA,{publication:r},r.id)):_.jsx("p",{className:"text-center text-gray-500",children:"No publications found matching your search."})})]})})},n9=()=>_.jsx("div",{className:"py-16",children:_.jsxs("div",{className:"container mx-auto px-6",children:[_.jsxs("div",{className:"text-center mb-12",children:[_.jsx("h1",{className:"text-4xl md:text-5xl font-serif font-bold text-brand-text mb-4",children:"Events"}),_.jsx("p",{className:"text-lg max-w-3xl mx-auto text-gray-700",children:"Join our workshops, seminars, and community events to learn, connect, and collaborate."})]}),_.jsx("div",{className:"max-w-3xl mx-auto space-y-8",children:Gq.map(t=>_.jsx(Kq,{event:t},t.id))})]})}),r9=()=>_.jsxs("div",{className:"py-16",children:[_.jsx(Ys,{title:"Join IndabaðUg AI Lab",description:"Become part of our mission to advance AI in Uganda. Opportunities for students, researchers, and volunteers.",url:"/join",type:"website"}),_.jsxs("div",{className:"container mx-auto px-6 max-w-4xl",children:[_.jsxs("div",{className:"text-center mb-12",children:[_.jsx("h1",{className:"text-4xl md:text-5xl font-serif font-bold text-brand-text mb-4",children:"Join Us"}),_.jsx("p",{className:"text-lg max-w-3xl mx-auto text-gray-700",children:"Become a part of our mission to advance AI in Uganda. We have opportunities for students, researchers, and volunteers."})]}),_.jsxs("div",{className:"bg-white p-8 rounded-lg shadow-lg",children:[_.jsx("h2",{className:"text-2xl font-serif font-bold text-brand-primary mb-6",children:"Application Process"}),_.jsx("p",{className:"text-gray-700 mb-4",children:"We are excited about your interest in joining the IndabaðUg AI Lab. Our application process is designed to be straightforward. Please fill out the embedded Google Form below with your details."}),_.jsx("p",{className:"text-gray-700 mb-6",children:"If you have trouble with the embedded form, you can open it in a new tab or download a PDF version of the application to submit via email."}),_.jsx("div",{className:"bg-gray-100 p-4 rounded-lg mb-6",children:_.jsx("div",{className:"aspect-w-16 aspect-h-9",children:_.jsx("iframe",{src:"https://docs.google.com/forms/d/e/1FAIpQLSc_ex-placeholder-form/viewform?embedded=true",width:"100%",height:"500",frameBorder:"0",marginHeight:0,marginWidth:0,children:"Loadingâ¦"})})}),_.jsxs("div",{className:"flex justify-center space-x-4",children:[_.jsx("a",{href:"#",target:"_blank",rel:"noopener noreferrer",className:"bg-brand-primary hover:bg-teal-800 text-white font-bold py-2 px-6 rounded-md transition duration-300",children:"Open Form in New Tab"}),_.jsx("a",{href:"#",className:"border border-brand-primary text-brand-primary hover:bg-brand-primary hover:text-white font-bold py-2 px-6 rounded-md transition duration-300",children:"Download PDF"})]})]})]})]});/** 166 * @license 167 * Copyright 2025 Google LLC 168 * SPDX-License-Identifier: Apache-2.0 169 */let i9,o9;function a9(){return{geminiUrl:i9,vertexUrl:o9}}function s9(t,e,n,r){var i,o;if(!(t!=null&&t.baseUrl)){const s=a9();return e?(i=s.vertexUrl)!==null&&i!==void 0?i:n:(o=s.geminiUrl)!==null&&o!==void 0?o:r}return t.baseUrl}/** 170 * @license 171 * Copyright 2025 Google LLC 172 * SPDX-License-Identifier: Apache-2.0 173 */class Zo{}function me(t,e){const n=/\{([^}]+)\}/g;return t.replace(n,(r,i)=>{if(Object.prototype.hasOwnProperty.call(e,i)){const o=e[i];return o!=null?String(o):""}else throw new Error(`Key '${i}' not found in valueMap.`)})}function m(t,e,n){for(let o=0;o<e.length-1;o++){const s=e[o];if(s.endsWith("[]")){const u=s.slice(0,-2);if(!(u in t))if(Array.isArray(n))t[u]=Array.from({length:n.length},()=>({}));else throw new Error(`Value must be a list given an array path ${s}`);if(Array.isArray(t[u])){const c=t[u];
173if(Array.isArray(n))for(let f=0;f<c.length;f++){const p=c[f];m(p,e.slice(o+1),n[f])}else for(const f of c)m(f,e.slice(o+1),n)}return}else if(s.endsWith("[0]")){const u=s.slice(0,-3);u in t||(t[u]=[{}]);const c=t[u];m(c[0],e.slice(o+1),n);return}(!t[s]||typeof t[s]!="object")&&(t[s]={}),t=t[s]}const r=e[e.length-1],i=t[r];if(i!==void 0){if(!n||typeof n=="object"&&Object.keys(n).length===0||n===i)return;if(typeof i=="object"&&typeof n=="object"&&i!==null&&n!==null)Object.assign(i,n);else throw new Error(`Cannot set value for an existing key. Key: ${r}`)}else r==="_self"&&typeof n=="object"&&n!==null&&!Array.isArray(n)?Object.assign(t,n):t[r]=n}function h(t,e){try{if(e.length===1&&e[0]==="_self")return t;for(let n=0;n<e.length;n++){if(typeof t!="object"||t===null)return;const r=e[n];if(r.endsWith("[]")){const i=r.slice(0,-2);if(i in t){const o=t[i];return Array.isArray(o)?o.map(s=>h(s,e.slice(n+1))):void 0}else return}else t=t[r]}return t}catch(n){if(n instanceof TypeError)return;throw n}}/** 174 * @license 175 * Copyright 2025 Google LLC 176 * SPDX-License-Identifier: Apache-2.0 177 */function OA(t){if(typeof t!="string")throw new Error("fromImageBytes must be a string");return t}/** 178 * @license 179 * Copyright 2025 Google LLC 180 * SPDX-License-Identifier: Apache-2.0 181 */function l9(t){const e={},n=h(t,["operationName"]);n!=null&&m(e,["operationName"],n);const r=h(t,["resourceName"]);return r!=null&&m(e,["_url","resourceName"],r),e}function u9(t){const e={},n=h(t,["name"]);n!=null&&m(e,["name"],n);const r=h(t,["metadata"]);r!=null&&m(e,["metadata"],r);const i=h(t,["done"]);i!=null&&m(e,["done"],i);const o=h(t,["error"]);o!=null&&m(e,["error"],o);const s=h(t,["response","generateVideoResponse"]);return s!=null&&m(e,["response"],f9(s)),e}function c9(t){const e={},n=h(t,["name"]);n!=null&&m(e,["name"],n);const r=h(t,["metadata"]);r!=null&&m(e,["metadata"],r);const i=h(t,["done"]);i!=null&&m(e,["done"],i);const o=h(t,["error"]);o!=null&&m(e,["error"],o);const s=h(t,["response"]);return s!=null&&m(e,["response"],d9(s)),e}function f9(t){const e={},n=h(t,["generatedSamples"]);if(n!=null){let o=n;Array.isArray(o)&&(o=o.map(s=>h9(s))),m(e,["generatedVideos"],o)}const r=h(t,["raiMediaFilteredCount"]);r!=null&&m(e,["raiMediaFilteredCount"],r);const i=h(t,["raiMediaFilteredReasons"]);return i!=null&&m(e,["raiMediaFilteredReasons"],i),e}function d9(t){const e={},n=h(t,["videos"]);if(n!=null){let o=n;Array.isArray(o)&&(o=o.map(s=>p9(s))),m(e,["generatedVideos"],o)}const r=h(t,["raiMediaFilteredCount"]);r!=null&&m(e,["raiMediaFilteredCount"],r);const i=h(t,["raiMediaFilteredReasons"]);return i!=null&&m(e,["raiMediaFilteredReasons"],i),e}function h9(t){const e={},n=h(t,["_self"]);return n!=null&&m(e,["video"],y9(n)),e}function p9(t){const e={},n=h(t,["_self"]);return n!=null&&m(e,["video"],v9(n)),e}function m9(t){const e={},n=h(t,["operationName"]);return n!=null&&m(e,["_url","operationName"],n),e}function g9(t){const e={},n=h(t,["operationName"]);return n!=null&&m(e,["_url","operationName"],n),e}function y9(t){const e={},n=h(t,["video","uri"]);n!=null&&m(e,["uri"],n);const r=h(t,["video","encodedVideo"]);r!=null&&m(e,["videoBytes"],OA(r));const i=h(t,["encoding"]);return i!=null&&m(e,["mimeType"],i),e}function v9(t){const e={},n=h(t,["gcsUri"]);n!=null&&m(e,["uri"],n);const r=h(t,["bytesBase64Encoded"]);r!=null&&m(e,["videoBytes"],OA(r));const i=h(t,["mimeType"]);return i!=null&&m(e,["mimeType"],i),e}/** 182 * @license 183 * Copyright 2025 Google LLC 184 * SPDX-License-Identifier: Apache-2.0 185 */var AP;(function(t){t.OUTCOME_UNSPECIFIED="OUTCOME_UNSPECIFIED",t.OUTCOME_OK="OUTCOME_OK",t.OUTCOME_FAILED="OUTCOME_FAILED",t.OUTCOME_DEADLINE_EXCEEDED="OUTCOME_DEADLINE_EXCEEDED"})(AP||(AP={}));var wP;(function(t){t.LANGUAGE_UNSPECIFIED="LANGUAGE_UNSPECIFIED",t.PYTHON="PYTHON"})(wP||(wP={}));var Ki;(function(t){t.TYPE_UNSPECIFIED="TYPE_UNSPECIFIED",t.STRING="STRING",t.NUMBER="NUMBER",t.INTEGER="INTEGER",t.BOOLEAN="BOOLEAN",t.ARRAY="ARRAY",t.OBJECT="OBJECT",t.NULL="NULL"})(Ki||(Ki={}));var _P;(function(t){t.HARM_CATEGORY_UNSPECIFIED="HARM_CATEGORY_UNSPECIFIED",t.HARM_CATEGORY_HATE_SPEECH="HARM_CATEGORY_HATE_SPEECH",t.HARM_CATEGORY_DANGEROUS_CONTENT="HARM_CATEGORY_DANGEROUS_CONTENT",t.HARM_CATEGORY_HARASSMENT="HARM_CATEGORY_HARASSMENT",t.HARM_CATEGORY_SEXUALLY_EXPLICIT="HARM_CATEGORY_SEXUALLY_EXPLICIT",t.HARM_CATEGORY_CIVIC_INTEGRITY="HARM_CATEGORY_CIVIC_INTEGRITY",t.HARM_CATEGORY_IMAGE_HATE="HARM_CATEGORY_IMAGE_HATE",t.HARM_CATEGORY_IMAGE_DANGEROUS_CONTENT="HARM_CATEGORY_IMAGE_DANGEROUS_CONTENT",t.HARM_CATEGORY_IMAGE_HARASSMENT="HARM_CATEGORY_IMAGE_HARASSMENT",t.HARM_CATEGORY_IMAGE_SEXUALLY_EXPLICIT="HARM_CATEGORY_IMAGE_SEXUALLY_EXPLICIT"})(_P||(_P={}));var CP;(function(t){t.HARM_BLOCK_METHOD_UNSPECIFIED="HARM_BLOCK_METHOD_UNSPECIFIED",t.SEVERITY="SEVERITY",t.PROBABILITY="PROBABILITY"})(CP||(CP={}));var EP;(function(t){t.HARM_BLOCK_THRESHOLD_UNSPECIFIED="HARM_BLOCK_THRESHOLD_UNSPECIFIED",t.BLOCK_LOW_AND_ABOVE="BLOCK_LOW_AND_ABOVE",t.BLOCK_MEDIUM_AND_ABOVE="BLOCK_MEDIUM_AND_ABOVE",t.BLOCK_ONLY_HIGH="BLOCK_ONLY_HIGH",t.BLOCK_NONE="BLOCK_NONE",t.OFF="OFF"})(EP||(EP={}));var MP;(function(t){t.MODE_UNSPECIFIED="MODE_UNSPECIFIED",t.MODE_DYNAMIC="MODE_DYNAMIC"})(MP||(MP={}));var PP;(function(t){t.AUTH_TYPE_UNSPECIFIED="AUTH_TYPE_UNSPECIFIED",t.NO_AUTH="NO_AUTH",t.API_KEY_AUTH="API_KEY_AUTH",t.HTTP_BASIC_AUTH="HTTP_BASIC_AUTH",t.GOOGLE_SERVICE_ACCOUNT_AUTH="GOOGLE_SERVICE_ACCOUNT_AUTH",t.OAUTH="OAUTH",t.OIDC_AUTH="OIDC_AUTH"})(PP||(PP={}));var RP;(function(t){t.API_SPEC_UNSPECIFIED="API_SPEC_UNSPECIFIED",t.SIMPLE_SEARCH="SIMPLE_SEARCH",t.ELASTIC_SEARCH="ELASTIC_SEARCH"})(RP||(RP={}));var NP;(function(t){t.URL_RETRIEVAL_STATUS_UNSPECIFIED="URL_RETRIEVAL_STATUS_UNSPECIFIED",t.URL_RETRIEVAL_STATUS_SUCCESS="URL_RETRIEVAL_STATUS_SUCCESS",t.U
185RL_RETRIEVAL_STATUS_ERROR="URL_RETRIEVAL_STATUS_ERROR",t.URL_RETRIEVAL_STATUS_PAYWALL="URL_RETRIEVAL_STATUS_PAYWALL",t.URL_RETRIEVAL_STATUS_UNSAFE="URL_RETRIEVAL_STATUS_UNSAFE"})(NP||(NP={}));var OP;(function(t){t.FINISH_REASON_UNSPECIFIED="FINISH_REASON_UNSPECIFIED",t.STOP="STOP",t.MAX_TOKENS="MAX_TOKENS",t.SAFETY="SAFETY",t.RECITATION="RECITATION",t.LANGUAGE="LANGUAGE",t.OTHER="OTHER",t.BLOCKLIST="BLOCKLIST",t.PROHIBITED_CONTENT="PROHIBITED_CONTENT",t.SPII="SPII",t.MALFORMED_FUNCTION_CALL="MALFORMED_FUNCTION_CALL",t.IMAGE_SAFETY="IMAGE_SAFETY",t.UNEXPECTED_TOOL_CALL="UNEXPECTED_TOOL_CALL"})(OP||(OP={}));var DP;(function(t){t.HARM_PROBABILITY_UNSPECIFIED="HARM_PROBABILITY_UNSPECIFIED",t.NEGLIGIBLE="NEGLIGIBLE",t.LOW="LOW",t.MEDIUM="MEDIUM",t.HIGH="HIGH"})(DP||(DP={}));var IP;(function(t){t.HARM_SEVERITY_UNSPECIFIED="HARM_SEVERITY_UNSPECIFIED",t.HARM_SEVERITY_NEGLIGIBLE="HARM_SEVERITY_NEGLIGIBLE",t.HARM_SEVERITY_LOW="HARM_SEVERITY_LOW",t.HARM_SEVERITY_MEDIUM="HARM_SEVERITY_MEDIUM",t.HARM_SEVERITY_HIGH="HARM_SEVERITY_HIGH"})(IP||(IP={}));var kP;(function(t){t.BLOCKED_REASON_UNSPECIFIED="BLOCKED_REASON_UNSPECIFIED",t.SAFETY="SAFETY",t.OTHER="OTHER",t.BLOCKLIST="BLOCKLIST",t.PROHIBITED_CONTENT="PROHIBITED_CONTENT",t.IMAGE_SAFETY="IMAGE_SAFETY"})(kP||(kP={}));var LP;(function(t){t.TRAFFIC_TYPE_UNSPECIFIED="TRAFFIC_TYPE_UNSPECIFIED",t.ON_DEMAND="ON_DEMAND",t.PROVISIONED_THROUGHPUT="PROVISIONED_THROUGHPUT"})(LP||(LP={}));var Kd;(function(t){t.MODALITY_UNSPECIFIED="MODALITY_UNSPECIFIED",t.TEXT="TEXT",t.IMAGE="IMAGE",t.AUDIO="AUDIO"})(Kd||(Kd={}));var UP;(function(t){t.MEDIA_RESOLUTION_UNSPECIFIED="MEDIA_RESOLUTION_UNSPECIFIED",t.MEDIA_RESOLUTION_LOW="MEDIA_RESOLUTION_LOW",t.MEDIA_RESOLUTION_MEDIUM="MEDIA_RESOLUTION_MEDIUM",t.MEDIA_RESOLUTION_HIGH="MEDIA_RESOLUTION_HIGH"})(UP||(UP={}));var pT;(function(t){t.JOB_STATE_UNSPECIFIED="JOB_STATE_UNSPECIFIED",t.JOB_STATE_QUEUED="JOB_STATE_QUEUED",t.JOB_STATE_PENDING="JOB_STATE_PENDING",t.JOB_STATE_RUNNING="JOB_STATE_RUNNING",t.JOB_STATE_SUCCEEDED="JOB_STATE_SUCCEEDED",t.JOB_STATE_FAILED="JOB_STATE_FAILED",t.JOB_STATE_CANCELLING="JOB_STATE_CANCELLING",t.JOB_STATE_CANCELLED="JOB_STATE_CANCELLED",t.JOB_STATE_PAUSED="JOB_STATE_PAUSED",t.JOB_STATE_EXPIRED="JOB_STATE_EXPIRED",t.JOB_STATE_UPDATING="JOB_STATE_UPDATING",t.JOB_STATE_PARTIALLY_SUCCEEDED="JOB_STATE_PARTIALLY_SUCCEEDED"})(pT||(pT={}));var qP;(function(t){t.TUNING_MODE_UNSPECIFIED="TUNING_MODE_UNSPECIFIED",t.TUNING_MODE_FULL="TUNING_MODE_FULL",t.TUNING_MODE_PEFT_ADAPTER="TUNING_MODE_PEFT_ADAPTER"})(qP||(qP={}));var BP;(function(t){t.ADAPTER_SIZE_UNSPECIFIED="ADAPTER_SIZE_UNSPECIFIED",t.ADAPTER_SIZE_ONE="ADAPTER_SIZE_ONE",t.ADAPTER_SIZE_TWO="ADAPTER_SIZE_TWO",t.ADAPTER_SIZE_FOUR="ADAPTER_SIZE_FOUR",t.ADAPTER_SIZE_EIGHT="ADAPTER_SIZE_EIGHT",t.ADAPTER_SIZE_SIXTEEN="ADAPTER_SIZE_SIXTEEN",t.ADAPTER_SIZE_THIRTY_TWO="ADAPTER_SIZE_THIRTY_TWO"})(BP||(BP={}));var $P;(function(t){t.FEATURE_SELECTION_PREFERENCE_UNSPECIFIED="FEATURE_SELECTION_PREFERENCE_UNSPECIFIED",t.PRIORITIZE_QUALITY="PRIORITIZE_QUALITY",t.BALANCED="BALANCED",t.PRIORITIZE_COST="PRIORITIZE_COST"})($P||($P={}));var VP;(function(t){t.UNSPECIFIED="UNSPECIFIED",t.BLOCKING="BLOCKING",t.NON_BLOCKING="NON_BLOCKING"})(VP||(VP={}));var jP;(function(t){t.MODE_UNSPECIFIED="MODE_UNSPECIFIED",t.MODE_DYNAMIC="MODE_DYNAMIC"})(jP||(jP={}));var FP;(function(t){t.ENVIRONMENT_UNSPECIFIED="ENVIRONMENT_UNSPECIFIED",t.ENVIRONMENT_BROWSER="ENVIRONMENT_BROWSER"})(FP||(FP={}));var HP;(function(t){t.MODE_UNSPECIFIED="MODE_UNSPECIFIED",t.AUTO="AUTO",t.ANY="ANY",t.NONE="NONE",t.VALIDATED="VALIDATED"})(HP||(HP={}));var GP;(function(t){t.BLOCK_LOW_AND_ABOVE="BLOCK_LOW_AND_ABOVE",t.BLOCK_MEDIUM_AND_ABOVE="BLOCK_MEDIUM_AND_ABOVE",t.BLOCK_ONLY_HIGH="BLOCK_ONLY_HIGH",t.BLOCK_NONE="BLOCK_NONE"})(GP||(GP={}));var zP;(function(t){t.DONT_ALLOW="DONT_ALLOW",t.ALLOW_ADULT="ALLOW_ADULT",t.ALLOW_ALL="ALLOW_ALL"})(zP||(zP={}));var KP;(function(t){t.auto="auto",t.en="en",t.ja="ja",t.ko="ko",t.hi="hi",t.zh="zh",t.pt="pt",t.es="es"})(KP||(KP={}));var YP;(function(t){t.MASK_MODE_DEFAULT="MASK_MODE_DEFAULT",t.MASK_MODE_USER_PROVIDED="MASK_MODE_USER_PROVIDED",t.MASK_MODE_BACKGROUND="MASK_MODE_BACKGROUND",t.MASK_MODE_FOREGROUND="MASK_MODE_FOREGROUND",t.MASK_MODE_SEMANTIC="MASK_MODE_SEMANTIC"})(YP||(YP={}));var WP;(function(t){t.CONTROL_TYPE_DEFAULT="CONTROL_TYPE_DEFAULT",t.CONTROL_TYPE_CANNY="CONTROL_TYPE_CANNY",t.CONTROL_TYPE_SCRIBBLE="CONTROL_TYPE_SCRIBBLE",t.CONTROL_TYPE_FACE_MESH="CONTROL_TYPE_FACE_MESH"})(WP||(WP={}));var XP;(function(t){t.SUBJECT_TYPE_DEFAULT="SUBJECT_TYPE_DEFAULT",t.SUBJECT_TYPE_PERSON="SUBJECT_TYPE_PERSON",t.SUBJECT_TYPE_ANIMAL="SUBJECT_TYPE_ANIMAL",t.SUBJECT_TYPE_PRODUCT="SUBJECT_TYPE_PRODUCT"})(XP||(XP={}));var JP;(function(t){t.EDIT_MODE_DEFAULT="EDIT_MODE_DEFAULT",t.EDIT_MODE_INPAINT_REMOVAL="EDIT_MODE_INPAINT_REMOVAL",t.EDIT_MODE_INPAINT_INSERTION="EDIT_MODE_INPAINT_INSERTION",t.EDIT_MODE_OUTPAINT="EDIT_MODE_OUTPAINT",t.EDIT_MODE_CONTROLLED_EDITING="EDIT_MODE_CONTROLLED_EDITING",t.EDIT_MODE_STYLE="EDIT_MODE_STYLE",t.EDIT_MODE_BGSWAP="EDIT_MODE_BGSWAP",t.EDIT_MODE_PRODUCT_IMAGE="EDIT_MODE_PRODUCT_IMAGE"})(JP||(JP={}));var ZP;(function(t){t.FOREGROUND="FOREGROUND",t.BACKGROUND="BACKGROUND",t.PROMPT="PROMPT",t.
185SEMANTIC="SEMANTIC",t.INTERACTIVE="INTERACTIVE"})(ZP||(ZP={}));var QP;(function(t){t.ASSET="ASSET",t.STYLE="STYLE"})(QP||(QP={}));var eR;(function(t){t.INSERT="INSERT",t.REMOVE="REMOVE",t.REMOVE_STATIC="REMOVE_STATIC",t.OUTPAINT="OUTPAINT"})(eR||(eR={}));var tR;(function(t){t.OPTIMIZED="OPTIMIZED",t.LOSSLESS="LOSSLESS"})(tR||(tR={}));var nR;(function(t){t.STATE_UNSPECIFIED="STATE_UNSPECIFIED",t.PROCESSING="PROCESSING",t.ACTIVE="ACTIVE",t.FAILED="FAILED"})(nR||(nR={}));var rR;(function(t){t.SOURCE_UNSPECIFIED="SOURCE_UNSPECIFIED",t.UPLOADED="UPLOADED",t.GENERATED="GENERATED"})(rR||(rR={}));var iR;(function(t){t.TURN_COMPLETE_REASON_UNSPECIFIED="TURN_COMPLETE_REASON_UNSPECIFIED",t.MALFORMED_FUNCTION_CALL="MALFORMED_FUNCTION_CALL",t.RESPONSE_REJECTED="RESPONSE_REJECTED",t.NEED_MORE_INPUT="NEED_MORE_INPUT"})(iR||(iR={}));var oR;(function(t){t.MODALITY_UNSPECIFIED="MODALITY_UNSPECIFIED",t.TEXT="TEXT",t.IMAGE="IMAGE",t.VIDEO="VIDEO",t.AUDIO="AUDIO",t.DOCUMENT="DOCUMENT"})(oR||(oR={}));var aR;(function(t){t.START_SENSITIVITY_UNSPECIFIED="START_SENSITIVITY_UNSPECIFIED",t.START_SENSITIVITY_HIGH="START_SENSITIVITY_HIGH",t.START_SENSITIVITY_LOW="START_SENSITIVITY_LOW"})(aR||(aR={}));var sR;(function(t){t.END_SENSITIVITY_UNSPECIFIED="END_SENSITIVITY_UNSPECIFIED",t.END_SENSITIVITY_HIGH="END_SENSITIVITY_HIGH",t.END_SENSITIVITY_LOW="END_SENSITIVITY_LOW"})(sR||(sR={}));var lR;(function(t){t.ACTIVITY_HANDLING_UNSPECIFIED="ACTIVITY_HANDLING_UNSPECIFIED",t.START_OF_ACTIVITY_INTERRUPTS="START_OF_ACTIVITY_INTERRUPTS",t.NO_INTERRUPTION="NO_INTERRUPTION"})(lR||(lR={}));var uR;(function(t){t.TURN_COVERAGE_UNSPECIFIED="TURN_COVERAGE_UNSPECIFIED",t.TURN_INCLUDES_ONLY_ACTIVITY="TURN_INCLUDES_ONLY_ACTIVITY",t.TURN_INCLUDES_ALL_INPUT="TURN_INCLUDES_ALL_INPUT"})(uR||(uR={}));var cR;(function(t){t.SCHEDULING_UNSPECIFIED="SCHEDULING_UNSPECIFIED",t.SILENT="SILENT",t.WHEN_IDLE="WHEN_IDLE",t.INTERRUPT="INTERRUPT"})(cR||(cR={}));var fR;(function(t){t.SCALE_UNSPECIFIED="SCALE_UNSPECIFIED",t.C_MAJOR_A_MINOR="C_MAJOR_A_MINOR",t.D_FLAT_MAJOR_B_FLAT_MINOR="D_FLAT_MAJOR_B_FLAT_MINOR",t.D_MAJOR_B_MINOR="D_MAJOR_B_MINOR",t.E_FLAT_MAJOR_C_MINOR="E_FLAT_MAJOR_C_MINOR",t.E_MAJOR_D_FLAT_MINOR="E_MAJOR_D_FLAT_MINOR",t.F_MAJOR_D_MINOR="F_MAJOR_D_MINOR",t.G_FLAT_MAJOR_E_FLAT_MINOR="G_FLAT_MAJOR_E_FLAT_MINOR",t.G_MAJOR_E_MINOR="G_MAJOR_E_MINOR",t.A_FLAT_MAJOR_F_MINOR="A_FLAT_MAJOR_F_MINOR",t.A_MAJOR_G_FLAT_MINOR="A_MAJOR_G_FLAT_MINOR",t.B_FLAT_MAJOR_G_MINOR="B_FLAT_MAJOR_G_MINOR",t.B_MAJOR_A_FLAT_MINOR="B_MAJOR_A_FLAT_MINOR"})(fR||(fR={}));var dR;(function(t){t.MUSIC_GENERATION_MODE_UNSPECIFIED="MUSIC_GENERATION_MODE_UNSPECIFIED",t.QUALITY="QUALITY",t.DIVERSITY="DIVERSITY",t.VOCALIZATION="VOCALIZATION"})(dR||(dR={}));var ns;(function(t){t.PLAYBACK_CONTROL_UNSPECIFIED="PLAYBACK_CONTROL_UNSPECIFIED",t.PLAY="PLAY",t.PAUSE="PAUSE",t.STOP="STOP",t.RESET_CONTEXT="RESET_CONTEXT"})(ns||(ns={}));class mT{constructor(e){const n={};for(const r of e.headers.entries())n[r[0]]=r[1];this.headers=n,this.responseInternal=e}json(){return this.responseInternal.json()}}class cu{get text(){var e,n,r,i,o,s,u,c;if(((i=(r=(n=(e=this.candidates)===null||e===void 0?void 0:e[0])===null||n===void 0?void 0:n.content)===null||r===void 0?void 0:r.parts)===null||i===void 0?void 0:i.length)===0)return;this.candidates&&this.candidates.length>1&&console.warn("there are multiple candidates in the response, returning text from the first one.");let f="",p=!1;const y=[];for(const v of(c=(u=(s=(o=this.candidates)===null||o===void 0?void 0:o[0])===null||s===void 0?void 0:s.content)===null||u===void 0?void 0:u.parts)!==null&&c!==void 0?c:[]){for(const[x,w]of Object.entries(v))x!=="text"&&x!=="thought"&&(w!==null||w!==void 0)&&y.push(x);if(typeof v.text=="string"){if(typeof v.thought=="boolean"&&v.thought)continue;p=!0,f+=v.text}}return y.length>0&&console.warn(`there are non-text parts ${y} in the response, returning concatenation of all text parts. Please refer to the non text parts for a full response from model.`),p?f:void 0}get data(){var e,n,r,i,o,s,u,c;if(((i=(r=(n=(e=this.candidates)===null||e===void 0?void 0:e[0])===null||n===void 0?void 0:n.content)===null||r===void 0?void 0:r.parts)===null||i===void 0?void 0:i.length)===0)return;this.candidates&&this.candidates.length>1&&console.warn("there are multiple candidates in the response, returning data from the first one.");let f="";const p=[];for(const y of(c=(u=(s=(o=this.candidates)===null||o===void 0?void 0:o[0])===null||s===void 0?void 0:s.content)===null||u===void 0?void 0:u.parts)!==null&&c!==void 0?c:[]){for(const[v,x]of Object.entries(y))v!=="inlineData"&&(x!==null||x!==void 0)&&p.push(v);
185y.inlineData&&typeof y.inlineData.data=="string"&&(f+=atob(y.inlineData.data))}return p.length>0&&console.warn(`there are non-data parts ${p} in the response, returning concatenation of all data parts. Please refer to the non data parts for a full response from model.`),f.length>0?btoa(f):void 0}get functionCalls(){var e,n,r,i,o,s,u,c;if(((i=(r=(n=(e=this.candidates)===null||e===void 0?void 0:e[0])===null||n===void 0?void 0:n.content)===null||r===void 0?void 0:r.parts)===null||i===void 0?void 0:i.length)===0)return;this.candidates&&this.candidates.length>1&&console.warn("there are multiple candidates in the response, returning function calls from the first one.");const f=(c=(u=(s=(o=this.candidates)===null||o===void 0?void 0:o[0])===null||s===void 0?void 0:s.content)===null||u===void 0?void 0:u.parts)===null||c===void 0?void 0:c.filter(p=>p.functionCall).map(p=>p.functionCall).filter(p=>p!==void 0);if((f==null?void 0:f.length)!==0)return f}get executableCode(){var e,n,r,i,o,s,u,c,f;if(((i=(r=(n=(e=this.candidates)===null||e===void 0?void 0:e[0])===null||n===void 0?void 0:n.content)===null||r===void 0?void 0:r.parts)===null||i===void 0?void 0:i.length)===0)return;this.candidates&&this.candidates.length>1&&console.warn("there are multiple candidates in the response, returning executable code from the first one.");const p=(c=(u=(s=(o=this.candidates)===null||o===void 0?void 0:o[0])===null||s===void 0?void 0:s.content)===null||u===void 0?void 0:u.parts)===null||c===void 0?void 0:c.filter(y=>y.executableCode).map(y=>y.executableCode).filter(y=>y!==void 0);if((p==null?void 0:p.length)!==0)return(f=p==null?void 0:p[0])===null||f===void 0?void 0:f.code}get codeExecutionResult(){var e,n,r,i,o,s,u,c,f;if(((i=(r=(n=(e=this.candidates)===null||e===void 0?void 0:e[0])===null||n===void 0?void 0:n.content)===null||r===void 0?void 0:r.parts)===null||i===void 0?void 0:i.length)===0)return;this.candidates&&this.candidates.length>1&&console.warn("there are multiple candidates in the response, returning code execution result from the first one.");const p=(c=(u=(s=(o=this.candidates)===null||o===void 0?void 0:o[0])===null||s===void 0?void 0:s.content)===null||u===void 0?void 0:u.parts)===null||c===void 0?void 0:c.filter(y=>y.codeExecutionResult).map(y=>y.codeExecutionResult).filter(y=>y!==void 0);if((p==null?void 0:p.length)!==0)return(f=p==null?void 0:p[0])===null||f===void 0?void 0:f.output}}class hR{}class pR{}class b9{}class x9{}class T9{}class S9{}class mR{}class gR{}class yR{}class A9{}class Yd{_fromAPIResponse({apiResponse:e,isVertexAI:n}){const r=new Yd;let i;const o=e;return n?i=c9(o):i=u9(o),Object.assign(r,i),r}}class vR{}class bR{}class xR{}class w9{}class _9{}class C9{}class TR{}class E9{get text(){var e,n,r;let i="",o=!1;const s=[];for(const u of(r=(n=(e=this.serverContent)===null||e===void 0?void 0:e.modelTurn)===null||n===void 0?void 0:n.parts)!==null&&r!==void 0?r:[]){for(const[c,f]of Object.entries(u))c!=="text"&&c!=="thought"&&f!==null&&s.push(c);if(typeof u.text=="string"){if(typeof u.thought=="boolean"&&u.thought)continue;o=!0,i+=u.text}}return s.length>0&&console.warn(`there are non-text parts ${s} in the response, returning concatenation of all text parts. Please refer to the non text parts for a full response from model.`),o?i:void 0}get data(){var e,n,r;let i="";const o=[];for(const s of(r=(n=(e=this.serverContent)===null||e===void 0?void 0:e.modelTurn)===null||n===void 0?void 0:n.parts)!==null&&r!==void 0?r:[]){for(const[u,c]of Object.entries(s))u!=="inlineData"&&c!==null&&o.push(u);s.inlineData&&typeof s.inlineData.data=="string"&&(i+=atob(s.inlineData.data))}return o.length>0&&console.warn(`there are non-data parts ${o} in the response, returning concatenation of all data parts. Please refer to the non data parts for a full response from model.`),i.length>0?btoa(i):void 0}}class M9{get audioChunk(){if(this.serverContent&&this.serverContent.audioChunks&&this.serverContent.audioChunks.length>0)return this.serverContent.audioChunks[0]}}/** 186 * @license 187 * Copyright 2025 Google LLC 188 * SPDX-License-Identifier: Apache-2.0 189 */function je(t,e){if(!e||typeof e!="string")throw new Error("model is required and must be a string");if(t.isVertexAI()){if(e.startsWith("publishers/")||e.startsWith("projects/")||e.startsWith("models/"))return e;if(e.indexOf("/")>=0){const n=e.split("/",2);return`publishers/${n[0]}/models/${n[1]}`}else return`publishers/google/models/${e}`}else return e.startsWith("models/")||e.startsWith("tunedModels/")?e:`models/${e}`}function nB(t,e){const n=je(t,e);return n?n.startsWith("publishers/")&&t.isVertexAI()?`projects/${t.getProject()}/locations/${t.getLocation()}/${n}`:n.startsWith("models/")&&t.isVertexAI()?`projects/${t.getProject()}/locations/${t.getLocation()}/publishers/google/${n}`:n:""}function rB(t){return Array.isArray(t)?t.map(e=>Wd(e)):[Wd(t)]}function Wd(t){if(typeof t=="object"&&t!==null)return t;throw new Error(`Could not parse input as Blob. Unsupported blob type: ${typeof t}`)}function iB(t){const e=Wd(t);
189if(e.mimeType&&e.mimeType.startsWith("image/"))return e;throw new Error(`Unsupported mime type: ${e.mimeType}`)}function oB(t){const e=Wd(t);if(e.mimeType&&e.mimeType.startsWith("audio/"))return e;throw new Error(`Unsupported mime type: ${e.mimeType}`)}function SR(t){if(t==null)throw new Error("PartUnion is required");if(typeof t=="object")return t;if(typeof t=="string")return{text:t};throw new Error(`Unsupported part type: ${typeof t}`)}function aB(t){if(t==null||Array.isArray(t)&&t.length===0)throw new Error("PartListUnion is required");return Array.isArray(t)?t.map(e=>SR(e)):[SR(t)]}function gT(t){return t!=null&&typeof t=="object"&&"parts"in t&&Array.isArray(t.parts)}function AR(t){return t!=null&&typeof t=="object"&&"functionCall"in t}function wR(t){return t!=null&&typeof t=="object"&&"functionResponse"in t}function rn(t){if(t==null)throw new Error("ContentUnion is required");return gT(t)?t:{role:"user",parts:aB(t)}}function DA(t,e){if(!e)return[];if(t.isVertexAI()&&Array.isArray(e))return e.flatMap(n=>{const r=rn(n);return r.parts&&r.parts.length>0&&r.parts[0].text!==void 0?[r.parts[0].text]:[]});if(t.isVertexAI()){const n=rn(e);return n.parts&&n.parts.length>0&&n.parts[0].text!==void 0?[n.parts[0].text]:[]}return Array.isArray(e)?e.map(n=>rn(n)):[rn(e)]}function Wn(t){if(t==null||Array.isArray(t)&&t.length===0)throw new Error("contents are required");if(!Array.isArray(t)){if(AR(t)||wR(t))throw new Error("To specify functionCall or functionResponse parts, please wrap them in a Content object, specifying the role for them");return[rn(t)]}const e=[],n=[],r=gT(t[0]);for(const i of t){const o=gT(i);if(o!=r)throw new Error("Mixing Content and Parts is not supported, please group the parts into a the appropriate Content objects and specify the roles for them");if(o)e.push(i);else{if(AR(i)||wR(i))throw new Error("To specify functionCall or functionResponse parts, please wrap them, and any other parts, in Content objects as appropriate, specifying the role for them");n.push(i)}}return r||e.push({role:"user",parts:aB(n)}),e}function P9(t,e){t.includes("null")&&(e.nullable=!0);const n=t.filter(r=>r!=="null");if(n.length===1)e.type=Object.values(Ki).includes(n[0].toUpperCase())?n[0].toUpperCase():Ki.TYPE_UNSPECIFIED;else{e.anyOf=[];for(const r of n)e.anyOf.push({type:Object.values(Ki).includes(r.toUpperCase())?r.toUpperCase():Ki.TYPE_UNSPECIFIED})}}function fs(t){const e={},n=["items"],r=["anyOf"],i=["properties"];if(t.type&&t.anyOf)throw new Error("type and anyOf cannot be both populated.");const o=t.anyOf;o!=null&&o.length==2&&(o[0].type==="null"?(e.nullable=!0,t=o[1]):o[1].type==="null"&&(e.nullable=!0,t=o[0])),t.type instanceof Array&&P9(t.type,e);for(const[s,u]of Object.entries(t))if(u!=null)if(s=="type"){if(u==="null")throw new Error("type: null can not be the only possible type for the field.");if(u instanceof Array)continue;e.type=Object.values(Ki).includes(u.toUpperCase())?u.toUpperCase():Ki.TYPE_UNSPECIFIED}else if(n.includes(s))e[s]=fs(u);else if(r.includes(s)){const c=[];for(const f of u){if(f.type=="null"){e.nullable=!0;continue}c.push(fs(f))}e[s]=c}else if(i.includes(s)){const c={};for(const[f,p]of Object.entries(u))c[f]=fs(p);e[s]=c}else{if(s==="additionalProperties")continue;e[s]=u}return e}function IA(t){return fs(t)}function kA(t){if(typeof t=="object")return t;if(typeof t=="string")return{voiceConfig:{prebuiltVoiceConfig:{voiceName:t}}};throw new Error(`Unsupported speechConfig type: ${typeof t}`)}function LA(t){if("multiSpeakerVoiceConfig"in t)throw new Error("multiSpeakerVoiceConfig is not supported in the live API.");return t}function Ws(t){if(t.functionDeclarations)for(const e of t.functionDeclarations)e.parameters&&(Object.keys(e.parameters).includes("$schema")?e.parametersJsonSchema||(e.parametersJsonSchema=e.parameters,delete e.parameters):e.parameters=fs(e.parameters)),e.response&&(Object.keys(e.response).includes("$schema")?e.responseJsonSchema||(e.responseJsonSchema=e.response,delete e.response):e.response=fs(e.response));return t}function Xs(t){if(t==null)throw new Error("tools is required");if(!Array.isArray(t))throw new Error("tools is required and must be an array of Tools");const e=[];for(const n of t)e.push(n);return e}function R9(t,e,n,r=1){const i=!e.startsWith(`${n}/`)&&e.split("/").length===r;return t.isVertexAI()?e.startsWith("projects/")?e:e.startsWith("locations/")?`projects/${t.getProject()}/${e}`:e.startsWith(`${n}/`)?`projects/${t.getProject()}/locations/${t.getLocation()}/${e}`:i?`projects/${t.getProject()}/locations/${t.getLocation()}/${n}/${e}`:e:i?`${n}/${e}`:e}function di(t,e){if(typeof e!="string")throw new Error("name must be a string");return R9(t,e,"cachedContents")}function sB(t){switch(t){case"STATE_UNSPECIFIED":return"JOB_STATE_UNSPECIFIED";case"CREATING":return"JOB_STATE_RUNNING";case"ACTIVE":return"JOB_STATE_SUCCEEDED";case"FAILED":return"JOB_STATE_FAILED";default:return t}}function Qo(t){return OA(t)}function N9(t){return t!=null&&typeof t=="object"&&"name"in t}function O9(t){return t!=null&&typeof t=="object"&&"video"in t}function D9(t){return t!=null&&typeof t=="object"&&"uri"in t}function lB(t){var e;let n;if(N9(t)&&(n=t.name),!(D9(t)&&(n=t.uri,n===void 0))&&!(O9(t)&&(n=(e=t.video)===null||e===void 0?void 0:e.uri,n===void 0))){if(typeof t=="string"&&(n=t),n===void 0)throw new Error("Could not extract file name from the provided input.");if(n.startsWith("https://")){const i=n.split("files/")[1].match(/[a-z0-9]+/);if(i===null)throw new Error(`Could not extract file name from URI ${n}`);n=i[0]}else n.startsWith("files/")&&(n=n.split("files/")[1]);return n}}function uB(t,e){let n;return t.isVertexAI()?n=e?"publishers/google/models":"models":n=e?"models":"tunedModels",n}function cB(t){for(const e of["models","tunedModels","publisherModels"])if(I9(t,e))return t[e];return[]}function I9(t,e){return t!==null&&typeof t=="object"&&e in t}function k9(t,e={}){const n=t,r={name:n.name,description:n.description,parametersJsonSchema:n.inputSchema};
189return n.outputSchema&&(r.responseJsonSchema=n.outputSchema),e.behavior&&(r.behavior=e.behavior),{functionDeclarations:[r]}}function L9(t,e={}){const n=[],r=new Set;for(const i of t){const o=i.name;if(r.has(o))throw new Error(`Duplicate function name ${o} found in MCP tools. Please ensure function names are unique.`);r.add(o);const s=k9(i,e);s.functionDeclarations&&n.push(...s.functionDeclarations)}return{functionDeclarations:n}}function fB(t,e){let n;if(typeof e=="string")if(t.isVertexAI())if(e.startsWith("gs://"))n={format:"jsonl",gcsUri:[e]};else if(e.startsWith("bq://"))n={format:"bigquery",bigqueryUri:e};else throw new Error(`Unsupported string source for Vertex AI: ${e}`);else if(e.startsWith("files/"))n={fileName:e};else throw new Error(`Unsupported string source for Gemini API: ${e}`);else if(Array.isArray(e)){if(t.isVertexAI())throw new Error("InlinedRequest[] is not supported in Vertex AI.");n={inlinedRequests:e}}else n=e;const r=[n.gcsUri,n.bigqueryUri].filter(Boolean).length,i=[n.inlinedRequests,n.fileName].filter(Boolean).length;if(t.isVertexAI()){if(i>0||r!==1)throw new Error("Exactly one of `gcsUri` or `bigqueryUri` must be set for Vertex AI.")}else if(r>0||i!==1)throw new Error("Exactly one of `inlinedRequests`, `fileName`, must be set for Gemini API.");return n}function U9(t){if(typeof t!="string")return t;const e=t;if(e.startsWith("gs://"))return{format:"jsonl",gcsUri:e};if(e.startsWith("bq://"))return{format:"bigquery",bigqueryUri:e};throw new Error(`Unsupported destination: ${e}`)}function dB(t){if(typeof t!="object"||t===null)return{};const e=t,n=e.inlinedResponses;if(typeof n!="object"||n===null)return t;const i=n.inlinedResponses;if(!Array.isArray(i)||i.length===0)return t;let o=!1;for(const s of i){if(typeof s!="object"||s===null)continue;const c=s.response;if(typeof c!="object"||c===null)continue;if(c.embedding!==void 0){o=!0;break}}return o&&(e.inlinedEmbedContentResponses=e.inlinedResponses,delete e.inlinedResponses),t}function Js(t,e){const n=e;if(!t.isVertexAI()){if(/batches\/[^/]+$/.test(n))return n.split("/").pop();throw new Error(`Invalid batch job name: ${n}.`)}if(/^projects\/[^/]+\/locations\/[^/]+\/batchPredictionJobs\/[^/]+$/.test(n))return n.split("/").pop();if(/^\d+$/.test(n))return n;throw new Error(`Invalid batch job name: ${n}.`)}function hB(t){const e=t;return e==="BATCH_STATE_UNSPECIFIED"?"JOB_STATE_UNSPECIFIED":e==="BATCH_STATE_PENDING"?"JOB_STATE_PENDING":e==="BATCH_STATE_RUNNING"?"JOB_STATE_RUNNING":e==="BATCH_STATE_SUCCEEDED"?"JOB_STATE_SUCCEEDED":e==="BATCH_STATE_FAILED"?"JOB_STATE_FAILED":e==="BATCH_STATE_CANCELLED"?"JOB_STATE_CANCELLED":e==="BATCH_STATE_EXPIRED"?"JOB_STATE_EXPIRED":e}/** 190 * @license 191 * Copyright 2025 Google LLC 192 * SPDX-License-Identifier: Apache-2.0 193 */function q9(t){const e={},n=h(t,["responsesFile"]);n!=null&&m(e,["fileName"],n);const r=h(t,["inlinedResponses","inlinedResponses"]);if(r!=null){let o=r;Array.isArray(o)&&(o=o.map(s=>wK(s))),m(e,["inlinedResponses"],o)}const i=h(t,["inlinedEmbedContentResponses","inlinedResponses"]);if(i!=null){let o=i;Array.isArray(o)&&(o=o.map(s=>SK(s))),m(e,["inlinedEmbedContentResponses"],o)}return e}function B9(t){const e={},n=h(t,["predictionsFormat"]);n!=null&&m(e,["format"],n);const r=h(t,["gcsDestination","outputUriPrefix"]);r!=null&&m(e,["gcsUri"],r);const i=h(t,["bigqueryDestination","outputUri"]);return i!=null&&m(e,["bigqueryUri"],i),e}function $9(t){const e={},n=h(t,["format"]);n!=null&&m(e,["predictionsFormat"],n);const r=h(t,["gcsUri"]);r!=null&&m(e,["gcsDestination","outputUriPrefix"],r);const i=h(t,["bigqueryUri"]);if(i!=null&&m(e,["bigqueryDestination","outputUri"],i),h(t,["fileName"])!==void 0)throw new Error("fileName parameter is not supported in Vertex AI.");if(h(t,["inlinedResponses"])!==void 0)throw new Error("inlinedResponses parameter is not supported in Vertex AI.");if(h(t,["inlinedEmbedContentResponses"])!==void 0)throw new Error("inlinedEmbedContentResponses parameter is not supported in Vertex AI.");return e}function Xa(t){const e={},n=h(t,["name"]);n!=null&&m(e,["name"],n);const r=h(t,["metadata","displayName"]);r!=null&&m(e,["displayName"],r);
193const i=h(t,["metadata","state"]);i!=null&&m(e,["state"],hB(i));const o=h(t,["metadata","createTime"]);o!=null&&m(e,["createTime"],o);const s=h(t,["metadata","endTime"]);s!=null&&m(e,["endTime"],s);const u=h(t,["metadata","updateTime"]);u!=null&&m(e,["updateTime"],u);const c=h(t,["metadata","model"]);c!=null&&m(e,["model"],c);const f=h(t,["metadata","output"]);return f!=null&&m(e,["dest"],q9(dB(f))),e}function yT(t){const e={},n=h(t,["name"]);n!=null&&m(e,["name"],n);const r=h(t,["displayName"]);r!=null&&m(e,["displayName"],r);const i=h(t,["state"]);i!=null&&m(e,["state"],hB(i));const o=h(t,["error"]);o!=null&&m(e,["error"],mB(o));const s=h(t,["createTime"]);s!=null&&m(e,["createTime"],s);const u=h(t,["startTime"]);u!=null&&m(e,["startTime"],u);const c=h(t,["endTime"]);c!=null&&m(e,["endTime"],c);const f=h(t,["updateTime"]);f!=null&&m(e,["updateTime"],f);const p=h(t,["model"]);p!=null&&m(e,["model"],p);const y=h(t,["inputConfig"]);y!=null&&m(e,["src"],V9(y));const v=h(t,["outputConfig"]);return v!=null&&m(e,["dest"],B9(dB(v))),e}function V9(t){const e={},n=h(t,["instancesFormat"]);n!=null&&m(e,["format"],n);const r=h(t,["gcsSource","uris"]);r!=null&&m(e,["gcsUri"],r);const i=h(t,["bigquerySource","inputUri"]);return i!=null&&m(e,["bigqueryUri"],i),e}function j9(t,e){const n={};if(h(e,["format"])!==void 0)throw new Error("format parameter is not supported in Gemini API.");if(h(e,["gcsUri"])!==void 0)throw new Error("gcsUri parameter is not supported in Gemini API.");if(h(e,["bigqueryUri"])!==void 0)throw new Error("bigqueryUri parameter is not supported in Gemini API.");const r=h(e,["fileName"]);r!=null&&m(n,["fileName"],r);const i=h(e,["inlinedRequests"]);if(i!=null){let o=i;Array.isArray(o)&&(o=o.map(s=>AK(t,s))),m(n,["requests","requests"],o)}return n}function F9(t){const e={},n=h(t,["format"]);n!=null&&m(e,["instancesFormat"],n);const r=h(t,["gcsUri"]);r!=null&&m(e,["gcsSource","uris"],r);const i=h(t,["bigqueryUri"]);if(i!=null&&m(e,["bigquerySource","inputUri"],i),h(t,["fileName"])!==void 0)throw new Error("fileName parameter is not supported in Vertex AI.");if(h(t,["inlinedRequests"])!==void 0)throw new Error("inlinedRequests parameter is not supported in Vertex AI.");return e}function H9(t){const e={},n=h(t,["data"]);n!=null&&m(e,["data"],n);const r=h(t,["mimeType"]);return r!=null&&m(e,["mimeType"],r),e}function G9(t){const e={};if(h(t,["displayName"])!==void 0)throw new Error("displayName parameter is not supported in Gemini API.");const n=h(t,["data"]);n!=null&&m(e,["data"],n);const r=h(t,["mimeType"]);return r!=null&&m(e,["mimeType"],r),e}function z9(t,e){const n={},r=h(e,["name"]);return r!=null&&m(n,["_url","name"],Js(t,r)),n}function K9(t,e){const n={},r=h(e,["name"]);return r!=null&&m(n,["_url","name"],Js(t,r)),n}function Y9(t){const e={},n=h(t,["content"]);n!=null&&m(e,["content"],J9(n));const r=h(t,["citationMetadata"]);r!=null&&m(e,["citationMetadata"],W9(r));const i=h(t,["tokenCount"]);i!=null&&m(e,["tokenCount"],i);const o=h(t,["finishReason"]);o!=null&&m(e,["finishReason"],o);const s=h(t,["urlContextMetadata"]);s!=null&&m(e,["urlContextMetadata"],KK(s));const u=h(t,["avgLogprobs"]);u!=null&&m(e,["avgLogprobs"],u);const c=h(t,["groundingMetadata"]);c!=null&&m(e,["groundingMetadata"],c);const f=h(t,["index"]);f!=null&&m(e,["index"],f);const p=h(t,["logprobsResult"]);p!=null&&m(e,["logprobsResult"],p);const y=h(t,["safetyRatings"]);return y!=null&&m(e,["safetyRatings"],y),e}function W9(t){const e={},n=h(t,["citationSources"]);return n!=null&&m(e,["citations"],n),e}function X9(t){const e={},n=h(t,["values"]);return n!=null&&m(e,["values"],n),e}function J9(t){const e={},n=h(t,["parts"]);if(n!=null){let i=n;Array.isArray(i)&&(i=i.map(o=>IK(o))),m(e,["parts"],i)}const r=h(t,["role"]);return r!=null&&m(e,["role"],r),e}function pB(t){const e={},n=h(t,["parts"]);if(n!=null){let i=n;Array.isArray(i)&&(i=i.map(o=>kK(o))),m(e,["parts"],i)}const r=h(t,["role"]);return r!=null&&m(e,["role"],r),e}function Z9(t,e){const n={},r=h(t,["displayName"]);if(e!==void 0&&r!=null&&m(e,["batch","displayName"],r),h(t,["dest"])!==void 0)throw new Error("dest parameter is not supported in Gemini API.");return n}function Q9(t,e){const n={},r=h(t,["displayName"]);e!==void 0&&r!=null&&m(e,["displayName"],r);const i=h(t,["dest"]);return e!==void 0&&i!=null&&m(e,["outputConfig"],$9(U9(i))),n}function Oy(t,e){const n={},r=h(e,["model"]);r!=null&&m(n,["_url","model"],je(t,r));const i=h(e,["src"]);i!=null&&m(n,["batch","inputConfig"],j9(t,fB(t,i)));const o=h(e,["config"]);return o!=null&&Z9(o,n),n}function eK(t,e){const n={},r=h(e,["model"]);r!=null&&m(n,["model"],je(t,r));const i=h(e,["src"]);i!=null&&m(n,["inputConfig"],F9(fB(t,i)));const o=h(e,["config"]);return o!=null&&Q9(o,n),n}function tK(t,e){const n={},r=h(t,["displayName"]);return e!==void 0&&r!=null&&m(e,["batch","displayName"],r),n}function Dy(t,e){const n={},r=h(e,["model"]);r!=null&&m(n,["_url","model"],je(t,r));const i=h(e,["src"]);i!=null&&m(n,["batch","inputConfig"],uK(t,i));const o=h(e,["config"]);return o!=null&&tK(o,n),n}function nK(t,e){const n={},r=h(e,["name"]);return r!=null&&m(n,["_url","name"],Js(t,r)),n}function rK(t,e){const n={},r=h(e,["name"]);return r!=null&&m(n,["_url","name"],Js(t,r)),n}function iK(t){const e={},n=h(t,["sdkHttpResponse"]);n!=null&&m(e,["sdkHttpResponse"],n);const r=h(t,["name"]);r!=null&&m(e,["name"],r);const i=h(t,["done"]);i!=null&&m(e,["done"],i);const o=h(t,["error"]);return o!=null&&m(e,["error"],UA(o)),e}function oK(t){const e={},n=h(t,["sdkHttpResponse"]);n!=null&&m(e,["sdkHttpResponse"],n);const r=h(t,["name"]);r!=null&&m(e,["name"],r);const i=h(t,["done"]);i!=null&&m(e,["done"],i);const o=h(t,["error"]);return o!=null&&m(e,["error"],mB(o)),e}function aK(t){const e={},n=h(t,["mode"]);n!=null&&m(e,["mode"],n);const r=h(t,["dynamicThreshold"]);return r!=null&&m(e,["dynamicThreshold"],r),e}function sK(t,e){const n={},r=h(e,["contents"]);r!=null&&m(n,["requests[]","request","content"],DA(t,r));const i=h(e,["config"]);return i!=null&&m(n,["config"],lK(i,n)),n}function lK(t,e){const n={},r=h(t,["taskType"]);e!==void 0&&r!=null&&m(e,["requests[]","taskType"],r);const i=h(t,["title"]);e!==void 0&&i!=null&&m(e,["requests[]","title"],i);const o=h(t,["outputDimensionality"]);if(e!==void 0&&o!=null&&m(e,["requests[]","outputDimensionality"],o),h(t,["mimeType"])!==void 0)throw new Error("mimeType parameter is not supported in Gemini API.");if(h(t,["autoTruncate"])!==void 0)throw new Error("autoTruncate parameter is not supported in Gemini API.");return n}function uK(t,e){const n={},r=h(e,["fileName"]);r!=null&&m(n,["file_name"],r);const i=h(e,["inlinedRequests"]);return i!=null&&m(n,["requests"],sK(t,i)),n}function cK(t){const e={},n=h(t,["fileUri"]);n!=null&&m(e,["fileUri"],n);const r=h(t,["mimeType"]);return r!=null&&m(e,["mimeType"],r),e}function fK(t){const e={};if(h(t,["displayName"])!==void 0)throw new Error("displayName parameter is not supported in Gemini API.");const n=h(t,["fileUri"]);n!=null&&m(e,["fileUri"],n);const r=h(t,["mimeType"]);return r!=null&&m(e,["mimeType"],r),e}function dK(t){const e={},n=h(t,["id"]);n!=null&&m(e,["id"],n);const r=h(t,["args"]);r!=null&&m(e,["args"],r);const i=h(t,["name"]);return i!=null&&m(e,["name"],i),e}function hK(t){const e={},n=h(t,["id"]);n!=null&&m(e,["id"],n);const r=h(t,["args"]);r!=null&&m(e,["args"],r);const i=h(t,["name"]);return i!=null&&m(e,["name"],i),e}function pK(t){const e={},n=h(t,["mode"]);n!=null&&m(e,["mode"],n);const r=h(t,["allowedFunctionNames"]);return r!=null&&m(e,["allowedFunctionNames"],r),e}function mK(t){const e={},n=h(t,["behavior"]);n!=null&&m(e,["behavior"],n);const r=h(t,["description"]);r!=null&&m(e,["description"],r);const i=h(t,["name"]);i!=null&&m(e,["name"],i);const o=h(t,["parameters"]);o!=null&&m(e,["parameters"],o);const s=h(t,["parametersJsonSchema"]);s!=null&&m(e,["parametersJsonSchema"],s);const u=h(t,["response"]);u!=null&&m(e,["response"],u);const c=h(t,["responseJsonSchema"]);return c!=null&&m(e,["responseJsonSchema"],c),e}function gK(t,e,n){const r={},i=h(e,["systemInstruction"]);n!==void 0&&i!=null&&m(n,["systemInstruction"],pB(rn(i)));const o=h(e,["temperature"]);o!=null&&m(r,["temperature"],o);const s=h(e,["topP"]);s!=null&&m(r,["topP"],s);const u=h(e,["topK"]);u!=null&&m(r,["topK"],u);const c=h(e,["candidateCount"]);c!=null&&m(r,["candidateCount"],c);const f=h(e,["maxOutputTokens"]);f!=null&&m(r,["maxOutputTokens"],f);const p=h(e,["stopSequences"]);p!=null&&m(r,["stopSequences"],p);const y=h(e,["responseLogprobs"]);y!=null&&m(r,["responseLogprobs"],y);const v=h(e,["logprobs"]);v!=null&&m(r,["logprobs"],v);const x=h(e,["presencePenalty"]);x!=null&&m(r,["presencePenalty"],x);const w=h(e,["frequencyPenalty"]);w!=null&&m(r,["frequencyPenalty"],w);const A=h(e,["seed"]);A!=null&&m(r,["seed"],A);const S=h(e,["responseMimeType"]);S!=null&&m(r,["responseMimeType"],S);const C=h(e,["responseSchema"]);C!=null&&m(r,["responseSchema"],BK(IA(C)));const P=h(e,["responseJsonSchema"]);if(P!=null&&m(r,["responseJsonSchema"],P),h(e,["routingConfig"])!==void 0)throw new Error("routingConfig parameter is not supported in Gemini API.");if(h(e,["modelSelectionConfig"])!==void 0)throw new Error("modelSelectionConfig parameter is not supported in Gemini API.");const M=h(e,["safetySettings"]);if(n!==void 0&&M!=null){let B=M;Array.isArray(B)&&(B=B.map(z=>qK(z))),m(n,["safetySettings"],B)}const O=h(e,["tools"]);if(n!==void 0&&O!=null){let B=Xs(O);Array.isArray(B)&&(B=B.map(z=>zK(Ws(z)))),m(n,["tools"],B)}const E=h(e,["toolConfig"]);if(n!==void 0&&E!=null&&m(n,["toolConfig"],GK(E)),h(e,["labels"])!==void 0)throw new Error("labels parameter is not supported in Gemini API.");const N=h(e,["cachedContent"]);n!==void 0&&N!=null&&m(n,["cachedContent"],di(t,N));const D=h(e,["responseModalities"]);D!=null&&m(r,["responseModalities"],D);const L=h(e,["mediaResolution"]);L!=null&&m(r,["mediaResolution"],L);const U=h(e,["speechConfig"]);if(U!=null&&m(r,["speechConfig"],jK(kA(U))),h(e,["audioTimestamp"])!==void 0)throw new Error("audioTimestamp parameter is not supported in Gemini API.");const F=h(e,["thinkingConfig"]);return F!=null&&m(r,["thinkingConfig"],FK(F)),r}function yK(t){const e={},n=h(t,["sdkHttpResponse"]);n!=null&&m(e,["sdkHttpResponse"],n);const r=h(t,["candidates"]);if(r!=null){let c=r;Array.isArray(c)&&(c=c.map(f=>Y9(f))),m(e,["candidates"],c)}const i=h(t,["modelVersion"]);i!=null&&m(e,["modelVersion"],i);const o=h(t,["promptFeedback"]);o!=null&&m(e,["promptFeedback"],o);const s=h(t,["responseId"]);s!=null&&m(e,["responseId"],s);const u=h(t,["usageMetadata"]);return u!=null&&m(e,["usageMetadata"],u),e}function vK(t,e){const n={},r=h(e,["name"]);return r!=null&&m(n,["_url","name"],Js(t,r)),n}function bK(t,e){const n={},r=h(e,["name"]);return r!=null&&m(n,["_url","name"],Js(t,r)),n}function xK(t){const e={},n=h(t,["dynamicRetrievalConfig"]);return n!=null&&m(e,["dynamicRetrievalConfig"],aK(n)),e}function TK(t){const e={},n=h(t,["timeRangeFilter"]);if(n!=null&&m(e,["timeRangeFilter"],_K(n)),h(t,["excludeDomains"])!==void 0)throw new Error("excludeDomains parameter is not supported in Gemini API.");return e}function SK(t){const e={},n=h(t,["response"]);n!=null&&m(e,["response"],$K(n));const r=h(t,["error"]);return r!=null&&m(e,["error"],UA(r)),e}function AK(t,e){const n={},r=h(e,["model"]);r!=null&&m(n,["request","model"],je(t,r));const i=h(e,["contents"]);if(i!=null){let s=Wn(i);Array.isArray(s)&&(s=s.map(u=>pB(u))),m(n,["request","contents"],s)}const o=h(e,["config"]);return o!=null&&m(n,["request","generationConfig"],gK(t,o,n)),n}function wK(t){const e={},n=h(t,["response"]);n!=null&&m(e,["response"],yK(n));const r=h(t,["error"]);return r!=null&&m(e,["error"],UA(r)),e}function _K(t){const e={},n=h(t,["startTime"]);n!=null&&m(e,["startTime"],n);const r=h(t,["endTime"]);return r!=null&&m(e,["endTime"],r),e}function UA(t){const e={},n=h(t,["details"]);n!=null&&m(e,["details"],n);const r=h(t,["code"]);r!=null&&m(e,["code"],r);const i=h(t,["message"]);return i!=null&&m(e,["message"],i),e}function mB(t){const e={},n=h(t,["details"]);n!=null&&m(e,["details"],n);const r=h(t,["code"]);r!=null&&m(e,["code"],r);const i=h(t,["message"]);return i!=null&&m(e,["message"],i),e}function CK(t){const e={},n=h(t,["latitude"]);n!=null&&m(e,["latitude"],n);const r=h(t,["longitude"]);return r!=null&&m(e,["longitude"],r),e}function EK(t,e){const n={},r=h(t,["pageSize"]);e!==void 0&&r!=null&&m(e,["_query","pageSize"],r);const i=h(t,["pageToken"]);if(e!==void 0&&i!=null&&m(e,["_query","pageToken"],i),h(t,["filter"])!==void 0)throw new Error("filter parameter is not supported in Gemini API.");return n}function MK(t,e){const n={},r=h(t,["pageSize"]);e!==void 0&&r!=null&&m(e,["_query","pageSize"],r);const i=h(t,["pageToken"]);e!==void 0&&i!=null&&m(e,["_query","pageToken"],i);const o=h(t,["filter"]);return e!==void 0&&o!=null&&m(e,["_query","filter"],o),n}function PK(t){const e={},n=h(t,["config"]);return n!=null&&EK(n,e),e}function RK(t){const e={},n=h(t,["config"]);return n!=null&&MK(n,e),e}function NK(t){const e={},n=h(t,["sdkHttpResponse"]);n!=null&&m(e,["sdkHttpResponse"],n);const r=h(t,["nextPageToken"]);r!=null&&m(e,["nextPageToken"],r);const i=h(t,["operations"]);if(i!=null){let o=i;Array.isArray(o)&&(o=o.map(s=>Xa(s))),m(e,["batchJobs"],o)}return e}function OK(t){const e={},n=h(t,["sdkHttpResponse"]);n!=null&&m(e,["sdkHttpResponse"],n);const r=h(t,["nextPageToken"]);r!=null&&m(e,["nextPageToken"],r);const i=h(t,["batchPredictionJobs"]);if(i!=null){let o=i;Array.isArray(o)&&(o=o.map(s=>yT(s))),m(e,["batchJobs"],o)}return e}function DK(t){const e={},n=h(t,["speakerVoiceConfigs"]);if(n!=null){let r=n;Array.isArray(r)&&(r=r.map(i=>VK(i))),m(e,["speakerVoiceConfigs"],r)}return e}function IK(t){const e={},n=h(t,["videoMetadata"]);n!=null&&m(e,["videoMetadata"],XK(n));const r=h(t,["thought"]);r!=null&&m(e,["thought"],r);const i=h(t,["inlineData"]);i!=null&&m(e,["inlineData"],H9(i));const o=h(t,["fileData"]);o!=null&&m(e,["fileData"],cK(o));const s=h(t,["thoughtSignature"]);s!=null&&m(e,["thoughtSignature"],s);const u=h(t,["functionCall"]);u!=null&&m(e,["functionCall"],dK(u));const c=h(t,["codeExecutionResult"]);c!=null&&m(e,["codeExecutionResult"],c);const f=h(t,["executableCode"]);f!=null&&m(e,["executableCode"],f);const p=h(t,["functionResponse"]);p!=null&&m(e,["functionResponse"],p);const y=h(t,["text"]);return y!=null&&m(e,["text"],y),e}function kK(t){const e={},n=h(t,["videoMetadata"]);n!=null&&m(e,["videoMetadata"],JK(n));const r=h(t,["thought"]);r!=null&&m(e,["thought"],r);const i=h(t,["inlineData"]);i!=null&&m(e,["inlineData"],G9(i));const o=h(t,["fileData"]);o!=null&&m(e,["fileData"],fK(o));const s=h(t,["thoughtSignature"]);s!=null&&m(e,["thoughtSignature"],s);const u=h(t,["functionCall"]);u!=null&&m(e,["functionCall"],hK(u));const c=h(t,["codeExecutionResult"]);c!=null&&m(e,["codeExecutionResult"],c);const f=h(t,["executableCode"]);f!=null&&m(e,["executableCode"],f);const p=h(t,["functionResponse"]);p!=null&&m(e,["functionResponse"],p);const y=h(t,["text"]);return y!=null&&m(e,["text"],y),e}function LK(t){const e={},n=h(t,["voiceName"]);return n!=null&&m(e,["voiceName"],n),e}function UK(t){const e={},n=h(t,["latLng"]);n!=null&&m(e,["latLng"],CK(n));const r=h(t,["languageCode"]);return r!=null&&m(e,["languageCode"],r),e}function qK(t){const e={};if(h(t,["method"])!==void 0)throw new Error("method parameter is not supported in Gemini API.");const n=h(t,["category"]);n!=null&&m(e,["category"],n);const r=h(t,["threshold"]);return r!=null&&m(e,["threshold"],r),e}function BK(t){const e={},n=h(t,["anyOf"]);n!=null&&m(e,["anyOf"],n);const r=h(t,["default"]);r!=null&&m(e,["default"],r);const i=h(t,["description"]);i!=null&&m(e,["description"],i);const o=h(t,["enum"]);o!=null&&m(e,["enum"],o);const s=h(t,["example"]);s!=null&&m(e,["example"],s);const u=h(t,["format"]);u!=null&&m(e,["format"],u);const c=h(t,["items"]);c!=null&&m(e,["items"],c);const f=h(t,["maxItems"]);f!=null&&m(e,["maxItems"],f);const p=h(t,["maxLength"]);p!=null&&m(e,["maxLength"],p);const y=h(t,["maxProperties"]);y!=null&&m(e,["maxProperties"],y);const v=h(t,["maximum"]);v!=null&&m(e,["maximum"],v);const x=h(t,["minItems"]);x!=null&&m(e,["minItems"],x);const w=h(t,["minLength"]);w!=null&&m(e,["minLength"],w);const A=h(t,["minProperties"]);A!=null&&m(e,["minProperties"],A);const S=h
193(t,["minimum"]);S!=null&&m(e,["minimum"],S);const C=h(t,["nullable"]);C!=null&&m(e,["nullable"],C);const P=h(t,["pattern"]);P!=null&&m(e,["pattern"],P);const M=h(t,["properties"]);M!=null&&m(e,["properties"],M);const O=h(t,["propertyOrdering"]);O!=null&&m(e,["propertyOrdering"],O);const E=h(t,["required"]);E!=null&&m(e,["required"],E);const N=h(t,["title"]);N!=null&&m(e,["title"],N);const D=h(t,["type"]);return D!=null&&m(e,["type"],D),e}function $K(t){const e={},n=h(t,["embedding"]);n!=null&&m(e,["embedding"],X9(n));const r=h(t,["tokenCount"]);return r!=null&&m(e,["tokenCount"],r),e}function VK(t){const e={},n=h(t,["speaker"]);n!=null&&m(e,["speaker"],n);const r=h(t,["voiceConfig"]);return r!=null&&m(e,["voiceConfig"],gB(r)),e}function jK(t){const e={},n=h(t,["voiceConfig"]);n!=null&&m(e,["voiceConfig"],gB(n));const r=h(t,["multiSpeakerVoiceConfig"]);r!=null&&m(e,["multiSpeakerVoiceConfig"],DK(r));const i=h(t,["languageCode"]);return i!=null&&m(e,["languageCode"],i),e}function FK(t){const e={},n=h(t,["includeThoughts"]);n!=null&&m(e,["includeThoughts"],n);const r=h(t,["thinkingBudget"]);return r!=null&&m(e,["thinkingBudget"],r),e}function HK(t){const e={},n=h(t,["environment"]);n!=null&&m(e,["environment"],n);const r=h(t,["excludedPredefinedFunctions"]);return r!=null&&m(e,["excludedPredefinedFunctions"],r),e}function GK(t){const e={},n=h(t,["functionCallingConfig"]);n!=null&&m(e,["functionCallingConfig"],pK(n));const r=h(t,["retrievalConfig"]);return r!=null&&m(e,["retrievalConfig"],UK(r)),e}function zK(t){const e={},n=h(t,["functionDeclarations"]);if(n!=null){let c=n;Array.isArray(c)&&(c=c.map(f=>mK(f))),m(e,["functionDeclarations"],c)}if(h(t,["retrieval"])!==void 0)throw new Error("retrieval parameter is not supported in Gemini API.");const r=h(t,["googleSearch"]);r!=null&&m(e,["googleSearch"],TK(r));const i=h(t,["googleSearchRetrieval"]);if(i!=null&&m(e,["googleSearchRetrieval"],xK(i)),h(t,["enterpriseWebSearch"])!==void 0)throw new Error("enterpriseWebSearch parameter is not supported in Gemini API.");if(h(t,["googleMaps"])!==void 0)throw new Error("googleMaps parameter is not supported in Gemini API.");h(t,["urlContext"])!=null&&m(e,["urlContext"],YK());const s=h(t,["computerUse"]);s!=null&&m(e,["computerUse"],HK(s));const u=h(t,["codeExecution"]);return u!=null&&m(e,["codeExecution"],u),e}function KK(t){const e={},n=h(t,["urlMetadata"]);if(n!=null){let r=n;Array.isArray(r)&&(r=r.map(i=>WK(i))),m(e,["urlMetadata"],r)}return e}function YK(){return{}}function WK(t){const e={},n=h(t,["retrievedUrl"]);n!=null&&m(e,["retrievedUrl"],n);const r=h(t,["urlRetrievalStatus"]);return r!=null&&m(e,["urlRetrievalStatus"],r),e}function XK(t){const e={},n=h(t,["fps"]);n!=null&&m(e,["fps"],n);const r=h(t,["endOffset"]);r!=null&&m(e,["endOffset"],r);const i=h(t,["startOffset"]);return i!=null&&m(e,["startOffset"],i),e}function JK(t){const e={},n=h(t,["fps"]);n!=null&&m(e,["fps"],n);const r=h(t,["endOffset"]);r!=null&&m(e,["endOffset"],r);const i=h(t,["startOffset"]);return i!=null&&m(e,["startOffset"],i),e}function gB(t){const e={},n=h(t,["prebuiltVoiceConfig"]);return n!=null&&m(e,["prebuiltVoiceConfig"],LK(n)),e}/** 194 * @license 195 * Copyright 2025 Google LLC 196 * SPDX-License-Identifier: Apache-2.0 197 */var Go;(function(t){t.PAGED_ITEM_BATCH_JOBS="batchJobs",t.PAGED_ITEM_MODELS="models",t.PAGED_ITEM_TUNING_JOBS="tuningJobs",t.PAGED_ITEM_FILES="files",t.PAGED_ITEM_CACHED_CONTENTS="cachedContents"})(Go||(Go={}));class Oc{constructor(e,n,r,i){this.pageInternal=[],this.paramsInternal={},this.requestInternal=n,this.init(e,r,i)}init(e,n,r){var i,o;this.nameInternal=e,this.pageInternal=n[this.nameInternal]||[],this.sdkHttpResponseInternal=n==null?void 0:n.sdkHttpResponse,this.idxInternal=0;let s={config:{}};!r||Object.keys(r).length===0?s={config:{}}:typeof r=="object"?s=Object.assign({},r):s=r,s.config&&(s.config.pageToken=n.nextPageToken),this.paramsInternal=s,this.pageInternalSize=(o=(i=s.config)===null||i===void 0?void 0:i.pageSize)!==null&&o!==void 0?o:this.pageInternal.length}initNextPage(e){this.init(this.nameInternal,e,this.paramsInternal)}get page(){return this.pageInternal}get name(){return this.nameInternal}get pageSize(){return this.pageInternalSize}get sdkHttpResponse(){return this.sdkHttpResponseInternal}get params(){return this.paramsInternal}get pageLength(){return this.pageInternal.length}getItem(e){return this.pageInternal[e]}[Symbol.asyncIterator](){return{next:async()=>
197{if(this.idxInternal>=this.pageLength)if(this.hasNextPage())await this.nextPage();else return{value:void 0,done:!0};const e=this.getItem(this.idxInternal);return this.idxInternal+=1,{value:e,done:!1}},return:async()=>({value:void 0,done:!0})}}async nextPage(){if(!this.hasNextPage())throw new Error("No more pages to fetch.");const e=await this.requestInternal(this.params);return this.initNextPage(e),this.page}hasNextPage(){var e;return((e=this.params.config)===null||e===void 0?void 0:e.pageToken)!==void 0}}/** 198 * @license 199 * Copyright 2025 Google LLC 200 * SPDX-License-Identifier: Apache-2.0 201 */class ZK extends Zo{constructor(e){super(),this.apiClient=e,this.create=async n=>{var r,i;if(this.apiClient.isVertexAI())return n.config=this.formatDestination(n.src,n.config),this.createInternal(n);const o=n.src;if(!(Array.isArray(n.src)||o.inlinedRequests!==void 0))return this.createInternal(n);const u=this.createInlinedGenerateContentRequest(n),c=u.path,f=u.body,p=Oy(this.apiClient,n)._query||{};return this.apiClient.request({path:c,queryParams:p,body:JSON.stringify(f),httpMethod:"POST",httpOptions:(r=n.config)===null||r===void 0?void 0:r.httpOptions,abortSignal:(i=n.config)===null||i===void 0?void 0:i.abortSignal}).then(v=>v.json()).then(v=>Xa(v))},this.createEmbeddings=async n=>{var r,i;if(console.warn("batches.createEmbeddings() is experimental and may change without notice."),this.apiClient.isVertexAI())throw new Error("Vertex AI does not support batches.createEmbeddings.");if(!(n.src.inlinedRequests!==void 0))return this.createEmbeddingsInternal(n);const u=this.createInlinedEmbedContentRequest(n),c=u.path,f=u.body,p=Dy(this.apiClient,n)._query||{};return this.apiClient.request({path:c,queryParams:p,body:JSON.stringify(f),httpMethod:"POST",httpOptions:(r=n.config)===null||r===void 0?void 0:r.httpOptions,abortSignal:(i=n.config)===null||i===void 0?void 0:i.abortSignal}).then(v=>v.json()).then(v=>Xa(v))},this.list=async(n={})=>new Oc(Go.PAGED_ITEM_BATCH_JOBS,r=>this.listInternal(r),await this.listInternal(n),n)}createInlinedGenerateContentRequest(e){const n=Oy(this.apiClient,e),r=n._url,i=me("{model}:batchGenerateContent",r),u=n.batch.inputConfig.requests,c=u.requests,f=[];for(const p of c){const y=Object.assign({},p);if(y.systemInstruction){const v=y.systemInstruction;delete y.systemInstruction;const x=y.request;x.systemInstruction=v,y.request=x}f.push(y)}return u.requests=f,delete n.config,delete n._url,delete n._query,{path:i,body:n}}createInlinedEmbedContentRequest(e){const n=Dy(this.apiClient,e),r=n._url,i=me("{model}:asyncBatchEmbedContent",r),u=n.batch.inputConfig.requests,c=u.requests,f=[];delete u.config;for(const p of c){const y=Object.assign({},p),v=y.request;for(const x in y)x!=="request"&&(v[x]=y[x],delete y[x]);f.push(y)}return u.requests=f,delete n.config,delete n._url,delete n._query,{path:i,body:n}}getGcsUri(e){if(typeof e=="string")return e.startsWith("gs://")?e:void 0;if(!Array.isArray(e)&&e.gcsUri&&e.gcsUri.length>0)return e.gcsUri[0]}getBigqueryUri(e){if(typeof e=="string")return e.startsWith("bq://")?e:void 0;if(!Array.isArray(e))return e.bigqueryUri}formatDestination(e,n){const r=n?Object.assign({},n):{},i=Date.now().toString();if(r.displayName||(r.displayName=`genaiBatchJob_${i}`),r.dest===void 0){const o=this.getGcsUri(e),s=this.getBigqueryUri(e);if(o)o.endsWith(".jsonl")?r.dest=`${o.slice(0,-6)}/dest`:r.dest=`${o}_dest_${i}`;else if(s)r.dest=`${s}_dest_${i}`;else throw new Error("Unsupported source for Vertex AI: No GCS or BigQuery URI found.")}return r}async createInternal(e){var n,r,i,o;let s,u="",c={};
201if(this.apiClient.isVertexAI()){const f=eK(this.apiClient,e);return u=me("batchPredictionJobs",f._url),c=f._query,delete f._url,delete f._query,s=this.apiClient.request({path:u,queryParams:c,body:JSON.stringify(f),httpMethod:"POST",httpOptions:(n=e.config)===null||n===void 0?void 0:n.httpOptions,abortSignal:(r=e.config)===null||r===void 0?void 0:r.abortSignal}).then(p=>p.json()),s.then(p=>yT(p))}else{const f=Oy(this.apiClient,e);return u=me("{model}:batchGenerateContent",f._url),c=f._query,delete f._url,delete f._query,s=this.apiClient.request({path:u,queryParams:c,body:JSON.stringify(f),httpMethod:"POST",httpOptions:(i=e.config)===null||i===void 0?void 0:i.httpOptions,abortSignal:(o=e.config)===null||o===void 0?void 0:o.abortSignal}).then(p=>p.json()),s.then(p=>Xa(p))}}async createEmbeddingsInternal(e){var n,r;let i,o="",s={};if(this.apiClient.isVertexAI())throw new Error("This method is only supported by the Gemini Developer API.");{const u=Dy(this.apiClient,e);return o=me("{model}:asyncBatchEmbedContent",u._url),s=u._query,delete u._url,delete u._query,i=this.apiClient.request({path:o,queryParams:s,body:JSON.stringify(u),httpMethod:"POST",httpOptions:(n=e.config)===null||n===void 0?void 0:n.httpOptions,abortSignal:(r=e.config)===null||r===void 0?void 0:r.abortSignal}).then(c=>c.json()),i.then(c=>Xa(c))}}async get(e){var n,r,i,o;let s,u="",c={};if(this.apiClient.isVertexAI()){const f=bK(this.apiClient,e);return u=me("batchPredictionJobs/{name}",f._url),c=f._query,delete f._url,delete f._query,s=this.apiClient.request({path:u,queryParams:c,body:JSON.stringify(f),httpMethod:"GET",httpOptions:(n=e.config)===null||n===void 0?void 0:n.httpOptions,abortSignal:(r=e.config)===null||r===void 0?void 0:r.abortSignal}).then(p=>p.json()),s.then(p=>yT(p))}else{const f=vK(this.apiClient,e);return u=me("batches/{name}",f._url),c=f._query,delete f._url,delete f._query,s=this.apiClient.request({path:u,queryParams:c,body:JSON.stringify(f),httpMethod:"GET",httpOptions:(i=e.config)===null||i===void 0?void 0:i.httpOptions,abortSignal:(o=e.config)===null||o===void 0?void 0:o.abortSignal}).then(p=>p.json()),s.then(p=>Xa(p))}}async cancel(e){var n,r,i,o;let s="",u={};if(this.apiClient.isVertexAI()){const c=K9(this.apiClient,e);s=me("batchPredictionJobs/{name}:cancel",c._url),u=c._query,delete c._url,delete c._query,await this.apiClient.request({path:s,queryParams:u,body:JSON.stringify(c),httpMethod:"POST",httpOptions:(n=e.config)===null||n===void 0?void 0:n.httpOptions,abortSignal:(r=e.config)===null||r===void 0?void 0:r.abortSignal})}else{const c=z9(this.apiClient,e);s=me("batches/{name}:cancel",c._url),u=c._query,delete c._url,delete c._query,await this.apiClient.request({path:s,queryParams:u,body:JSON.stringify(c),httpMethod:"POST",httpOptions:(i=e.config)===null||i===void 0?void 0:i.httpOptions,abortSignal:(o=e.config)===null||o===void 0?void 0:o.abortSignal})}}async listInternal(e){var n,r,i,o;let s,u="",c={};if(this.apiClient.isVertexAI()){const f=RK(e);return u=me("batchPredictionJobs",f._url),c=f._query,delete f._url,delete f._query,s=this.apiClient.request({path:u,queryParams:c,body:JSON.stringify(f),httpMethod:"GET",httpOptions:(n=e.config)===null||n===void 0?void 0:n.httpOptions,abortSignal:(r=e.config)===null||r===void 0?void 0:r.abortSignal}).then(p=>p.json().then(y=>{const v=y;return v.sdkHttpResponse={headers:p.headers},v})),s.then(p=>{const y=OK(p),v=new TR;return Object.assign(v,y),v})}else{const f=PK(e);return u=me("batches",f._url),c=f._query,delete f._url,delete f._query,s=this.apiClient.request({path:u,queryParams:c,body:JSON.stringify(f),httpMethod:"GET",httpOptions:(i=e.config)===null||i===void 0?void 0:i.httpOptions,abortSignal:(o=e.config)===null||o===void 0?void 0:o.abortSignal}).then(p=>p.json().then(y=>{const v=y;return v.sdkHttpResponse={headers:p.headers},v})),s.then(p=>{const y=NK(p),v=new TR;return Object.assign(v,y),v})}}async delete(e){var n,r,i,o;let s,u="",c={};if(this.apiClient.isVertexAI()){const f=rK(this.apiClient,e);return u=me("batchPredictionJobs/{name}",f._url),c=f._query,delete f._url,delete f._query,s=this.apiClient.request({path:u,queryParams:c,body:JSON.stringify(f),httpMethod:"DELETE",httpOptions:(n=e.config)===null||n===void 0?void 0:n.httpOptions,abortSignal:(r=e.config)===null||r===void 0?void 0:r.abortSignal}).then(p=>p.json().then(y=>{const v=y;return v.sdkHttpResponse={headers:p.headers},v})),s.then(p=>oK(p))}else{const f=nK(this.apiClient,e);return u=me("batches/{name}",f._url),c=f._query,delete f._url,delete f._query,s=this.apiClient.request({path:u,queryParams:c,body:JSON.stringify(f),httpMethod:"DELETE",httpOptions:(i=e.config)===null||i===void 0?void 0:i.httpOptions,abortSignal:(o=e.config)===null||o===void 0?void 0:o.abortSignal}).then(p=>p.json().then(y=>{const v=y;return v.sdkHttpResponse={headers:p.headers},v})),s.then(p=>iK(p))}}}/** 202 * @license 203 * Copyright 2025 Google LLC 204 * SPDX-License-Identifier: Apache-2.0 205 */function QK(t){const e={},n=h(t,["apiKeyString"]);return n!=null&&m(e,["apiKeyString"],n),e}function eY(t){const e={},n=h(t,["apiKeyConfig"]);n!=null&&m(e,["apiKeyConfig"],QK(n));const r=h(t,["authType"]);r!=null&&m(e,["authType"],r);const i=h(t,["googleServiceAccountConfig"]);i!=null&&m(e,["googleServiceAccountConfig"],i);const o=h(t,["httpBasicAuthConfig"]);o!=null&&m(e,["httpBasicAuthConfig"],o);const s=h(t,["oauthConfig"]);s!=null&&m(e,["oauthConfig"],s);const u=h(t,["oidcConfig"]);return u!=null&&m(e,["oidcConfig"],u),e}function tY(t){const e={};if(h(t,["displayName"])!==void 0)throw new Error("displayName parameter is not supported in Gemini API.");const n=h(t,["data"]);n!=null&&m(e,["data"],n);const r=h(t,["mimeType"]);return r!=null&&m(e,["mimeType"],r),e}function nY(t){const e={},n=h(t,["displayName"]);n!=null&&m(e,["displayName"],n);const r=h(t,["data"]);r!=null&&m(e,["data"],r);const i=h(t,["mimeType"]);return i!=null&&m(e,["mimeType"],i),e}function kd(t){const e={},n=h(t,["name"]);n!=null&&m(e,["name"],n);const r=h(t,["displayName"]);r!=null&&m(e,["displayName"],r);const i=h(t,["model"]);i!=null&&m(e,["model"],i);const o=h(t,["createTime"]);o!=null&&m(e,["createTime"],o);const s=h(t,["updateTime"]);s!=null&&m(e,["updateTime"],s);const u=h(t,["expireTime"]);u!=null&&m(e,["expireTime"],u);const c=h(t,["usageMetadata"]);return c!=null&&m(e,["usageMetadata"],c),e}function Ld(t){const e={},n=h(t,["name"]);n!=null&&m(e,["name"],n);const r=h(t,["displayName"]);r!=null&&m(e,["displayName"],r);const i=h(t,["model"]);i!=null&&m(e,["model"],i);const o=h(t,["createTime"]);o!=null&&m(e,["createTime"],o);const s=h(t,["updateTime"]);s!=null&&m(e,["updateTime"],s);const u=h(t,["expireTime"]);u!=null&&m(e,["expireTime"],u);const c=h(t,["usageMetadata"]);return c!=null&&m(e,["usageMetadata"],c),e}function _R(t){const e={},n=h(t,["parts"]);if(n!=null){let i=n;Array.isArray(i)&&(i=i.map(o=>BY(o))),m(e,["parts"],i)}const r=h(t,["role"]);return r!=null&&m(e,["role"],r),e}function CR(t){const e={},n=h(t,["parts"]);if(n!=null){let i=n;Array.isArray(i)&&(i=i.map(o=>$Y(o))),m(e,["parts"],i)}const r=h(t,["role"]);return r!=null&&m(e,["role"],r),e}function rY(t,e){const n={},r=h(t,["ttl"]);e!==void 0&&r!=null&&m(e,["ttl"],r);const i=h(t,["expireTime"]);e!==void 0&&i!=null&&m(e,["expireTime"],i);const o=h(t,["displayName"]);e!==void 0&&o!=null&&m(e,["displayName"],o);const s=h(t,["contents"]);if(e!==void 0&&s!=null){let p=Wn(s);Array.isArray(p)&&(p=p.map(y=>_R(y))),m(e,["contents"],p)}const u=h(t,["systemInstruction"]);e!==void 0&&u!=null&&m(e,["systemInstruction"],_R(rn(u)));const c=h(t,["tools"]);if(e!==void 0&&c!=null){let p=c;Array.isArray(p)&&(p=p.map(y=>KY(y))),m(e,["tools"],p)}const f=h(t,["toolConfig"]);if(e!==void 0&&f!=null&&m(e,["toolConfig"],GY(f)),h(t,["kmsKeyName"])!==void 0)throw new Error("kmsKeyName parameter is not supported in Gemini API.");return n}function iY(t,e){const n={},r=h(t,["ttl"]);e!==void 0&&r!=null&&m(e,["ttl"],r);const i=h(t,["expireTime"]);e!==void 0&&i!=null&&m(e,["expireTime"],i);const o=h(t,["displayName"]);e!==void 0&&o!=null&&m(e,["displayName"],o);const s=h(t,["contents"]);if(e!==void 0&&s!=null){let y=Wn(s);Array.isArray(y)&&(y=y.map(v=>CR(v))),m(e,["contents"],y)}const u=h(t,["systemInstruction"]);e!==void 0&&u!=null&&m(e,["systemInstruction"],CR(rn(u)));const c=h(t,["tools"]);if(e!==void 0&&c!=null){let y=c;Array.isArray(y)&&(y=y.map(v=>YY(v))),m(e,["tools"],y)}const f=h(t,["toolConfig"]);e!==void 0&&f!=null&&m(e,["toolConfig"],zY(f));const p=h(t,["kmsKeyName"]);return e!==void 0&&p!=null&&m(e,["encryption_spec","kmsKeyName"],p),n}function oY(t,e){const n={},r=h(e,["model"]);r!=null&&m(n,["model"],nB(t,r));const i=h(e,["config"]);return i!=null&&rY(i,n),n}function aY(t,e){const n={},r=h(e,["model"]);r!=null&&m(n,["model"],nB(t,r));const i=h(e,["config"]);return i!=null&&iY(i,n),n}function sY(t,e){const n={},r=h(e,["name"]);return r!=null&&m(n,["_url","name"],di(t,r)),n}function lY(t,e){const n={},r=h(e,["name"]);return r!=null&&m(n,["_url","name"],di(t,r)),n}function uY(t){const e={},n=h(t,["sdkHttpResponse"]);return n!=null&&m(e,["sdkHttpResponse"],n),e}function cY(t){const e={},n=h(t,["sdkHttpResponse"]);return n!=null&&m(e,["sdkHttpResponse"],n),e}function fY(t){const e={},n=h(t,["mode"]);n!=null&&m(e,["mode"],n);const r=h(t,["dynamicThreshold"]);return r!=null&&m(e,["dynamicThreshold"],r),e}function dY(t){const e={},n=h(t,["mode"]);n!=null&&m(e,["mode"],n);const r=h(t,["dynamicThreshold"]);return r!=null&&m(e,["dynamicThreshold"],r),e}function hY(t){const e={},n=h(t,["excludeDomains"]);return n!=null&&m(e,["excludeDomains"],n),e}function pY(t){const e={};if(h(t,["displayName"])!==void 0)throw new Error("displayName parameter is not supported in Gemini API.");const n=h(t,["fileUri"]);n!=null&&m(e,["fileUri"],n);const r=h(t,["mimeType"]);return r!=null&&m(e,["mimeType"],r),e}function mY(t){const e={},n=h(t,["displayName"]);n!=null&&m(e,["displayName"],n);const r=h(t,["fileUri"]);r!=null&&m(e,["fileUri"],r);const i=h(t,["mimeType"]);return i!=null&&m(e,["mimeType"],i),e}function gY(t){const e={},n=h(t,["id"]);n!=null&&m(e,["id"],n);const r=h(t,["args"]);r!=null&&m(e,["args"],r);const i=h(t,["name"]);return i!=null&&m(e,["name"],i),e}function yY(t){const e={},n=h(t,["id"]);n!=null&&m(e,["id"],n);const r=h(t,["args"]);r!=null&&m(e,["args"],r);const i=h(t,["name"]);return i!=null&&m(e,["name"],i),e}function vY(t){const e={},n=h(t,["mode"]);n!=null&&m(e,["mode"],n);const r=h(t,["allowedFunctionNames"]);return r!=null&&m(e,["allowedFunctionNames"],r),e}function bY(t){const e={},n=h(t,["mode"]);n!=null&&m(e,["mode"],n);const r=h(t,["allowedFunctionNames"]);return r!=null&&m(e,["allowedFunctionNames"],r),e}function xY(t){const e={},n=h(t,["behavior"]);n!=null&&m(e,["behavior"],n);const r=h(t,["description"]);r!=null&&m(e,["description"],r);const i=h(t,["name"]);i!=null&&m(e,["name"],i);const o=h(t,["parameters"]);o!=null&&m(e,["parameters"],o);const s=h(t,["parametersJsonSchema"]);s!=null&&m(e,["parametersJsonSchema"],s);const u=h(t,["response"]);u!=null&&m(e,["response"],u);const c=h(t,["responseJsonSchema"]);return c!=null&&m(e,["responseJsonSchema"],c),e}function TY(t){const e={};if(h(t,["behavior"])!==void 0)throw new Error("behavior parameter is not supported in Vertex AI.");const n=h(t,["description"]);n!=null&&m(e,["description"],n);const r=h(t,["name"]);r!=null&&m(e,["name"],r);const i=h(t,["parameters"]);i!=null&&m(e,["parameters"],i);const o=h(t,["parametersJsonSchema"]);o!=null&&m(e,["parametersJsonSchema"],o);const s=h(t,["response"]);s!=null&&m(e,["response"],s);const u=h(t,["responseJsonSchema"]);return u!=null&&m(e,["responseJsonSchema"],u),e}function SY(t,e){const n={},r=h(e,["name"]);return r!=null&&m(n,["_url","name"],di(t,r)),n}function AY(t,e){const n={},r=h(e,["name"]);return r!=null&&m(n,["_url","name"],di(t,r)),n}function wY(t){const e={},n=h(t,["authConfig"]);return n!=null&&m(e,["authConfig"],eY(n)),e}function _Y(t){const e={},n=h(t,["dynamicRetrievalConfig"]);return n!=null&&m(e,["dynamicRetrievalConfig"],fY(n)),e}function CY(t){const e={},n=h(t,["dynamicRetrievalConfig"]);return n!=null&&m(e,["dynamicRetrievalConfig"],dY(n)),e}function EY(t){const e={},n=h(t,["timeRangeFilter"]);if(n!=null&&m(e,["timeRangeFilter"],PY(n)),h(t,["excludeDomains"])!==void 0)throw new Error("excludeDomains parameter is not supported in Gemini API.");return e}function MY(t){const e={},n=h(t,["timeRangeFilter"]);n!=null&&m(e,["timeRangeFilter"],RY(n));const r=h(t,["excludeDomains"]);return r!=null&&m(e,["excludeDomains"],r),e}function PY(t){const e={},n=h(t,["startTime"]);n!=null&&m(e,["startTime"],n);const r=h(t,["endTime"]);return r!=null&&m(e,["endTime"],r),e}function RY(t){const e={},n=h(t,["startTime"]);n!=null&&m(e,["startTime"],n);const r=h(t,["endTime"]);return r!=null&&m(e,["endTime"],r),e}function NY(t){const e={},n=h(t,["latitude"]);n!=null&&m(e,["latitude"],n);const r=h(t,["longitude"]);return r!=null&&m(e,["longitude"],r),e}function OY(t){const e={},n=h(t,["latitude"]);n!=null&&m(e,["latitude"],n);const r=h(t,["longitude"]);return r!=null&&m(e,["longitude"],r),e}function DY(t,e){const n={},r=h(t,["pageSize"]);e!==void 0&&r!=null&&m(e,["_query","pageSize"],r);const i=h(t,["pageToken"]);return e!==void 0&&i!=null&&m(e,["_query","pageToken"],i),n}function IY(t,e){const n={},r=h(t,["pageSize"]);e!==void 0&&r!=null&&m(e,["_query","pageSize"],r);const i=h(t,["pageToken"]);return e!==void 0&&i!=null&&m(e,["_query","pageToken"],i),n}function kY(t){const e={},n=h(t,["config"]);return n!=null&&DY(n,e),e}function LY(t){const e={},n=h(t,["config"]);return n!=null&&IY(n,e),e}function UY(t){const e={},n=h(t,["sdkHttpResponse"]);n!=null&&m(e,["sdkHttpResponse"],n);const r=h(t,["nextPageToken"]);r!=null&&m(e,["nextPageToken"],r);const i=h(t,["cachedContents"]);if(i!=null){let o=i;Array.isArray(o)&&(o=o.map(s=>kd(s))),m(e,["cachedContents"],o)}return e}function qY(t){const e={},n=h(t,["sdkHttpResponse"]);n!=null&&m(e,["sdkHttpResponse"],n);const r=h(t,["nextPageToken"]);r!=null&&m(e,["nextPageToken"],r);const i=h(t,["cachedContents"]);if(i!=null){let o=i;Array.isArray(o)&&(o=o.map(s=>Ld(s))),m(e,["cachedContents"],o)}return e}function BY(t){const e={},n=h(t,["videoMetadata"]);n!=null&&m(e,["videoMetadata"],tW(n));const r=h(t,["thought"]);r!=null&&m(e,["thought"],r);const i=h(t,["inlineData"]);i!=null&&m(e,["inlineData"],tY(i));const o=h(t,["fileData"]);o!=null&&m(e,["fileData"],pY(o));const s=h(t,["thoughtSignature"]);s!=null&&m(e,["thoughtSignature"],s);const u=h(t,["functionCall"]);u!=null&&m(e,["functionCall"],gY(u));const c=h(t,["codeExecutionResult"]);c!=null&&m(e,["codeExecutionResult"],c);const f=h(t,["executableCode"]);f!=null&&m(e,["executableCode"],f);const p=h(t,["functionResponse"]);p!=null&&m(e,["functionResponse"],p);const y=h(t,["text"]);return y!=null&&m(e,["text"],y),e}function $Y(t){const e={},n=h(t,["videoMetadata"]);n!=null&&m(e,["videoMetadata"],nW(n));const r=h(t,["thought"]);r!=null&&m(e,["thought"],r);const i=h(t,["inlineData"]);i!=null&&m(e,["inlineData"],nY(i));const o=h(t,["fileData"]);o!=null&&m(e,["fileData"],mY(o));const s=h(t,["thoughtSignature"]);s!=null&&m(e,["thoughtSignature"],s);const u=h(t,["functionCall"]);u!=null&&m(e,["functionCall"],yY(u));const c=h(t,["codeExecutionResult"]);c!=null&&m(e,["codeExecutionResult"],c);const f=h(t,["executableCode"]);f!=null&&m(e,["executableCode"],f);const p=h(t,["functionResponse"]);p!=null&&m(e,["functionResponse"],p);const y=h(t,["text"]);return y!=null&&m(e,["text"],y),e}function VY(t){const e={},n=h(t,["latLng"]);n!=null&&m(e,["latLng"],NY(n));const r=h(t,["languageCode"]);return r!=null&&m(e,["languageCode"],r),e}function jY(t){const e={},n=h(t,["latLng"]);n!=null&&m(e,["latLng"],OY(n));const r=h(t,["languageCode"]);return r!=null&&m(e,["languageCode"],r),e}function FY(t){const e={},n=h(t,["environment"]);n!=null&&m(e,["environment"],n);const r=h(t,["excludedPredefinedFunctions"]);return r!=null&&m(e,["excludedPredefinedFunctions"],r),e}function HY(t){const e={},n=h(t,["environment"]);n!=null&&m(e,["environment"],n);const r=h(t,["excludedPredefinedFunctions"]);return r!=null&&m(e,["excludedPredefinedFunctions"],r),e}function GY(t){const e={},n=h(t,["functionCallingConfig"]);n!=null&&m(e,["functionCallingConfig"],vY(n));const r=h(t,["retrievalConfig"]);return r!=null&&m(e,["retrievalConfig"],VY(r)),e}function zY(t){const
205e={},n=h(t,["functionCallingConfig"]);n!=null&&m(e,["functionCallingConfig"],bY(n));const r=h(t,["retrievalConfig"]);return r!=null&&m(e,["retrievalConfig"],jY(r)),e}function KY(t){const e={},n=h(t,["functionDeclarations"]);if(n!=null){let c=n;Array.isArray(c)&&(c=c.map(f=>xY(f))),m(e,["functionDeclarations"],c)}if(h(t,["retrieval"])!==void 0)throw new Error("retrieval parameter is not supported in Gemini API.");const r=h(t,["googleSearch"]);r!=null&&m(e,["googleSearch"],EY(r));const i=h(t,["googleSearchRetrieval"]);if(i!=null&&m(e,["googleSearchRetrieval"],_Y(i)),h(t,["enterpriseWebSearch"])!==void 0)throw new Error("enterpriseWebSearch parameter is not supported in Gemini API.");if(h(t,["googleMaps"])!==void 0)throw new Error("googleMaps parameter is not supported in Gemini API.");h(t,["urlContext"])!=null&&m(e,["urlContext"],QY());const s=h(t,["computerUse"]);s!=null&&m(e,["computerUse"],FY(s));const u=h(t,["codeExecution"]);return u!=null&&m(e,["codeExecution"],u),e}function YY(t){const e={},n=h(t,["functionDeclarations"]);if(n!=null){let y=n;Array.isArray(y)&&(y=y.map(v=>TY(v))),m(e,["functionDeclarations"],y)}const r=h(t,["retrieval"]);r!=null&&m(e,["retrieval"],r);const i=h(t,["googleSearch"]);i!=null&&m(e,["googleSearch"],MY(i));const o=h(t,["googleSearchRetrieval"]);o!=null&&m(e,["googleSearchRetrieval"],CY(o));const s=h(t,["enterpriseWebSearch"]);s!=null&&m(e,["enterpriseWebSearch"],hY(s));const u=h(t,["googleMaps"]);u!=null&&m(e,["googleMaps"],wY(u)),h(t,["urlContext"])!=null&&m(e,["urlContext"],eW());const f=h(t,["computerUse"]);f!=null&&m(e,["computerUse"],HY(f));const p=h(t,["codeExecution"]);return p!=null&&m(e,["codeExecution"],p),e}function WY(t,e){const n={},r=h(t,["ttl"]);e!==void 0&&r!=null&&m(e,["ttl"],r);const i=h(t,["expireTime"]);return e!==void 0&&i!=null&&m(e,["expireTime"],i),n}function XY(t,e){const n={},r=h(t,["ttl"]);e!==void 0&&r!=null&&m(e,["ttl"],r);const i=h(t,["expireTime"]);return e!==void 0&&i!=null&&m(e,["expireTime"],i),n}function JY(t,e){const n={},r=h(e,["name"]);r!=null&&m(n,["_url","name"],di(t,r));const i=h(e,["config"]);return i!=null&&WY(i,n),n}function ZY(t,e){const n={},r=h(e,["name"]);r!=null&&m(n,["_url","name"],di(t,r));const i=h(e,["config"]);return i!=null&&XY(i,n),n}function QY(){return{}}function eW(){return{}}function tW(t){const e={},n=h(t,["fps"]);n!=null&&m(e,["fps"],n);const r=h(t,["endOffset"]);r!=null&&m(e,["endOffset"],r);const i=h(t,["startOffset"]);return i!=null&&m(e,["startOffset"],i),e}function nW(t){const e={},n=h(t,["fps"]);n!=null&&m(e,["fps"],n);const r=h(t,["endOffset"]);r!=null&&m(e,["endOffset"],r);const i=h(t,["startOffset"]);return i!=null&&m(e,["startOffset"],i),e}/** 206 * @license 207 * Copyright 2025 Google LLC 208 * SPDX-License-Identifier: Apache-2.0 209 */class rW extends Zo{constructor(e){super(),this.apiClient=e,this.list=async(n={})=>new Oc(Go.PAGED_ITEM_CACHED_CONTENTS,r=>this.listInternal(r),await this.listInternal(n),n)}async create(e){var n,r,i,o;let s,u="",c={};if(this.apiClient.isVertexAI()){const f=aY(this.apiClient,e);return u=me("cachedContents",f._url),c=f._query,delete f._url,delete f._query,s=this.apiClient.request({path:u,queryParams:c,body:JSON.stringify(f),httpMethod:"POST",httpOptions:(n=e.config)===null||n===void 0?void 0:n.httpOptions,abortSignal:(r=e.config)===null||r===void 0?void 0:r.abortSignal}).then(p=>p.json()),s.then(p=>Ld(p))}else{const f=oY(this.apiClient,e);return u=me("cachedContents",f._url),c=f._query,delete f._url,delete f._query,s=this.apiClient.request({path:u,queryParams:c,body:JSON.stringify(f),httpMethod:"POST",httpOptions:(i=e.config)===null||i===void 0?void 0:i.httpOptions,abortSignal:(o=e.config)===null||o===void 0?void 0:o.abortSignal}).then(p=>p.json()),s.then(p=>kd(p))}}async get(e){var n,r,i,o;let s,u="",c={};if(this.apiClient.isVertexAI()){const f=AY(this.apiClient,e);return u=me("{name}",f._url),c=f._query,delete f._url,delete f._query,s=this.apiClient.request({path:u,queryParams:c,body:JSON.stringify(f),httpMethod:"GET",httpOptions:(n=e.config)===null||n===void 0?void 0:n.httpOptions,abortSignal:(r=e.config)===null||r===void 0?void 0:r.abortSignal}).then(p=>p.json()),s.then(p=>Ld(p))}else{const f=SY(this.apiClient,e);return u=me("{name}",f._url),c=f._query,delete f._url,delete f._query,s=this.apiClient.request({path:u,queryParams:c,body:JSON.stringify(f),httpMethod:"GET",httpOptions:(i=e.config)===null||i===void 0?void 0:i.httpOptions,abortSignal:(o=e.config)===null||o===void 0?void 0:o.abortSignal}).then(p=>p.json()),s.then(p=>kd(p))}}async delete(e){var n,r,i,o;let s,u="",c={};if(this.apiClient.isVertexAI()){const f=lY(this.apiClient,e);return u=me("{name}",f._url),c=f._query,delete f._url,delete f._query,s=this.apiClient.request({path:u,queryParams:c,body:JSON.stringify(f),httpMethod:"DELETE",httpOptions:(n=e.config)===null||n===void 0?void 0:n.httpOptions,abortSignal:(r=e.config)===null||r===void 0?void 0:r.abortSignal}).then(p=>p.json().then(y=>{const v=y;return v.sdkHttpResponse={headers:p.headers},v})),s.then(p=>{const y=cY(p),v=new bR;return Object.assign(v,y),v})}else{const f=sY(this.apiClient,e);return u=me("{name}",f._url),c=f._query,delete f._url,delete f._query,s=this.apiClient.request({path:u,queryParams:c,body:JSON.stringify(f),httpMethod:"DELETE",httpOptions:(i=e.config)===null||i===void 0?void 0:i.httpOptions,abortSignal:(o=e.config)===null||o===void 0?void 0:o.abortSignal}).then(p=>p.json().then(y=>{const v=y;return v.sdkHttpResponse={headers:p.headers},v})),s.then(p=>{const y=uY(p),v=new bR;return Object.assign(v,y),v})}}async update(e){var n,r,i,o;let s,u="",c={};if(this.apiClient.isVertexAI()){const f=ZY(this.apiClient,e);return u=me("{name}",f._url),c=f._query,delete f._url,delete f._query,s=this.apiClient.request({path:u,queryParams:c,body:JSON.stringify(f),httpMethod:"PATCH",httpOptions:(n=e.config)===null||n===void 0?void 0:n.httpOptions,abortSignal:(r=e.config)===null||r===void 0?void 0:r.abortSignal}).then(p=>p.json()),s.then(p=>Ld(p))}else{const f=JY(this.apiClient,e);return u=me("{name}",f._url),c=f._query,delete f._url,delete f._query,s=this.apiClient.request({path:u,queryParams:c,body:JSON.stringify(f),httpMethod:"PATCH",httpOptions:(i=e.config)===null||i===void 0?void 0:i.httpOptions,abortSignal:(o=e.config)===null||o===void 0?void 0:o.abortSignal}).then(p=>p.json()),s.then(p=>kd(p))}}async listInternal(e){var n,r,i,o;let s,u="",c={};if(this.apiClient.isVertexAI()){const f=LY(e);return u=me("cachedContents",f._url),c=f._query,delete f._url,delete f._query,s=this.apiClient.request({path:u,queryParams:c,body:JSON.stringify(f),httpMethod:"GET",httpOptions:(n=e.config)===null||n===void 0?void 0:n.httpOptions,abortSignal:(r=e.config)===null||r===void 0?void 0:r.abortSignal}).then(p=>p.json().then(y=>{const v=y;return v.sdkHttpResponse={headers:p.headers},v})),s.then(p=>{const y=qY(p),v=new xR;return Object.assign(v,y),v})}else{const f=kY(e);return u=me("cachedContents",f._url),c=f._query,delete f._url,delete f._query,s=this.apiClient.request({path:u,queryParams:c,body:JSON.stringify(f),httpMethod:"GET",httpOptions:(i=e.config)===null||i===void 0?void 0:i.httpOptions,abortSignal:(o=e.config)===null||o===void 0?void 0:o.abortSignal}).then(p=>p.json().then(y=>{const v=y;return v.sdkHttpResponse={headers:p.headers},v})),s.then(p=>{const y=UY(p),v=new xR;return Object.assign(v,y),v})}}}function ER(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function ut(t){return this instanceof ut?(this.v=t,this):new ut(t)}function ds(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(t,e||[]),i,o=[];return i=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),u("next"),u("throw"),u("return",s),i[Symbol.asyncIterator]=function(){return this},i;function s(x){return function(w){return Promise.resolve(w).then(x,y)}}function u(x,w){r[x]&&(i[x]=function(A){return new Promise(function(S,C){o.push([x,A,S,C])>1||c(x,A)})},w&&(i[x]=w(i[x])))}function c(x,w){try{f(r[x](w))}catch(A){v(o[0][3],A)}}function f(x){x.value instanceof ut?Promise.resolve(x.value.v).then(p,y):v(o[0][2],x)}function p(x){c("next",x)}function y(x){c("throw",x)}function v(x,w){x(w),o.shift(),o.length&&c(o[0][0],o[0][1])}}function Ru(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],n;return e?e.call(t):(t=typeof ER=="function"?ER(t):t[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(o){n[o]=t[o]&&function(s){return new Promise(function(u,c){s=t[o](s),i(u,c,s.done,s.value)})}}function i(o,s,u,c){Promise.resolve(c).then(function(f){o({value:f,done:u})},s)}}/** 210 * @license 211 * Copyright 2025 Google LLC 212 * SPDX-License-Identifier: Apache-2.0 213 */function iW(t){var e;if(t.candidates==null||t.candidates.length===0)return!1;const n=(e=t.candidates[0])===null||e===void 0?void 0:e.content;return n===void 0?!1:yB(n)}function yB(t){if(t.parts===void 0||t.parts.length===0)return!1;for(const e of t.parts)if(e===void 0||Object.keys(e).length===0)return!1;return!0}function oW(t){if(t.length!==0){for(const e of t)if(e.role!=="user"&&e.role!=="model")throw new Error(`Role must be user or model, but got ${e.role}.`)}}function MR(t){if(t===void 0||t.length===0)return[];const e=[],n=t.length;let r=0;for(;r<n;)if(t[r].role==="user")e.push(t[r]),r++;else{const i=[];let o=!0;for(;r<n&&t[r].role==="model";)i.push(t[r]),o&&!yB(t[r])&&(o=!1),r++;o?e.push(...i):e.pop()}return e}class aW{constructor(e,n){this.modelsModule=e,this.apiClient=n}create(e){return new sW(this.apiClient,this.modelsModule,e.model,e.config,structuredClone(e.history))}}class sW{constructor(e,n,r,i={},o=[]){this.apiClient=e,this.modelsModule=n,this.model=r,this.config=i,this.history=o,this.sendPromise=Promise.resolve(),oW(o)}async sendMessage(e){var n;await this.sendPromise;const r=rn(e.message),i=this.modelsModule.generateContent({model:this.model,contents:this.getHistory(!0).concat(r),config:(n=e.config)!==null&&n!==void 0?n:this.config});return this.sendPromise=(async()=>{var o,s,u;const c=await i,f=(s=(o=c.candidates)===null||o===void 0?void 0:o[0])===null||s===void 0?void 0:s.content,p=c.automaticFunctionCallingHistory,y=this.getHistory(!0).length;let v=[];p!=null&&(v=(u=p.slice(y))!==null&&u!==void 0?u:[]);const x=f?[f]:[];this.recordHistory(r,x,v)})(),await this.sendPromise.catch(()=>{this.sendPromise=Promise.resolve()}),i}async sendMessageStream(e){var n;await this.sendPromise;const r=rn(e.message),i=this.modelsModule.generateContentStream({model:this.model,contents:this.getHistory(!0).concat(r),config:(n=e.config)!==null&&n!==void 0?n:this.config});this.sendPromise=i.then(()=>{}).catch(()=>{});const o=await i;return this.processStreamResponse(o,r)}getHistory(e=!1){const n=e?MR(this.history):this.history;return structuredClone(n)}processStreamResponse(e,n){var r,i;return ds(this,arguments,function*(){var s,u,c,f;const p=[];try{for(var y=!0,v=Ru(e),x;x=yield ut(v.next()),s=x.done,!s;y=!0){f=x.value,y=!1;const w=f;if(iW(w)){const A=(i=(r=w.candidates)===null||r===void 0?void 0:r[0])===null||i===void 0?void 0:i.content;A!==void 0&&p.push(A)}yield yield ut(w)}}catch(w){u={error:w}}finally{try{!y&&!s&&(c=v.return)&&(yield ut(c.call(v)))}finally{if(u)throw u.error}}this.recordHistory(n,p)})}recordHistory(e,n,r){let i=[];n.length>0&&n.every(o=>o.role!==void 0)?i=n:i.push({role:"model",parts:[]}),r&&r.length>0?this.history.push(...MR(r)):this.history.push(e),this.history.push(...i)}}/** 214 * @license 215 * Copyright 2025 Google LLC 216 * SPDX-License-Identifier: Apache-2.0
217 */class ep extends Error{constructor(e){super(e.message),this.name="ApiError",this.status=e.status,Object.setPrototypeOf(this,ep.prototype)}}/** 218 * @license 219 * Copyright 2025 Google LLC 220 * SPDX-License-Identifier: Apache-2.0 221 */function lW(t){const e={},n=h(t,["file"]);return n!=null&&m(e,["file"],pW(n)),e}function uW(t){const e={},n=h(t,["sdkHttpResponse"]);return n!=null&&m(e,["sdkHttpResponse"],n),e}function cW(t){const e={},n=h(t,["name"]);return n!=null&&m(e,["_url","file"],lB(n)),e}function fW(t){const e={},n=h(t,["sdkHttpResponse"]);return n!=null&&m(e,["sdkHttpResponse"],n),e}function vT(t){const e={},n=h(t,["name"]);n!=null&&m(e,["name"],n);const r=h(t,["displayName"]);r!=null&&m(e,["displayName"],r);const i=h(t,["mimeType"]);i!=null&&m(e,["mimeType"],i);const o=h(t,["sizeBytes"]);o!=null&&m(e,["sizeBytes"],o);const s=h(t,["createTime"]);s!=null&&m(e,["createTime"],s);const u=h(t,["expirationTime"]);u!=null&&m(e,["expirationTime"],u);const c=h(t,["updateTime"]);c!=null&&m(e,["updateTime"],c);const f=h(t,["sha256Hash"]);f!=null&&m(e,["sha256Hash"],f);const p=h(t,["uri"]);p!=null&&m(e,["uri"],p);const y=h(t,["downloadUri"]);y!=null&&m(e,["downloadUri"],y);const v=h(t,["state"]);v!=null&&m(e,["state"],v);const x=h(t,["source"]);x!=null&&m(e,["source"],x);const w=h(t,["videoMetadata"]);w!=null&&m(e,["videoMetadata"],w);const A=h(t,["error"]);return A!=null&&m(e,["error"],dW(A)),e}function dW(t){const e={},n=h(t,["details"]);n!=null&&m(e,["details"],n);const r=h(t,["message"]);r!=null&&m(e,["message"],r);const i=h(t,["code"]);return i!=null&&m(e,["code"],i),e}function hW(t){const e={},n=h(t,["details"]);n!=null&&m(e,["details"],n);const r=h(t,["message"]);r!=null&&m(e,["message"],r);const i=h(t,["code"]);return i!=null&&m(e,["code"],i),e}function pW(t){const e={},n=h(t,["name"]);n!=null&&m(e,["name"],n);const r=h(t,["displayName"]);r!=null&&m(e,["displayName"],r);const i=h(t,["mimeType"]);i!=null&&m(e,["mimeType"],i);const o=h(t,["sizeBytes"]);o!=null&&m(e,["sizeBytes"],o);const s=h(t,["createTime"]);s!=null&&m(e,["createTime"],s);const u=h(t,["expirationTime"]);u!=null&&m(e,["expirationTime"],u);const c=h(t,["updateTime"]);c!=null&&m(e,["updateTime"],c);const f=h(t,["sha256Hash"]);f!=null&&m(e,["sha256Hash"],f);const p=h(t,["uri"]);p!=null&&m(e,["uri"],p);const y=h(t,["downloadUri"]);y!=null&&m(e,["downloadUri"],y);const v=h(t,["state"]);v!=null&&m(e,["state"],v);const x=h(t,["source"]);x!=null&&m(e,["source"],x);const w=h(t,["videoMetadata"]);w!=null&&m(e,["videoMetadata"],w);const A=h(t,["error"]);return A!=null&&m(e,["error"],hW(A)),e}function mW(t){const e={},n=h(t,["name"]);return n!=null&&m(e,["_url","file"],lB(n)),e}function gW(t,e){const n={},r=h(t,["pageSize"]);e!==void 0&&r!=null&&m(e,["_query","pageSize"],r);const i=h(t,["pageToken"]);return e!==void 0&&i!=null&&m(e,["_query","pageToken"],i),n}function yW(t){const e={},n=h(t,["config"]);return n!=null&&gW(n,e),e}function vW(t){const e={},n=h(t,["sdkHttpResponse"]);n!=null&&m(e,["sdkHttpResponse"],n);const r=h(t,["nextPageToken"]);r!=null&&m(e,["nextPageToken"],r);const i=h(t,["files"]);if(i!=null){let o=i;Array.isArray(o)&&(o=o.map(s=>vT(s))),m(e,["files"],o)}return e}/** 222 * @license 223 * Copyright 2025 Google LLC 224 * SPDX-License-Identifier: Apache-2.0 225 */class bW extends Zo{constructor(e){super(),this.apiClient=e,this.list=async(n={})=>new Oc(Go.PAGED_ITEM_FILES,r=>this.listInternal(r),await this.listInternal(n),n)}async upload(e){if(this.apiClient.isVertexAI())throw new Error("Vertex AI does not support uploading files. You can share files through a GCS bucket.");return this.apiClient.uploadFile(e.file,e.config).then(n=>vT(n))}async download(e){await this.apiClient.downloadFile(e)}async listInternal(e){var n,r;let i,o="",s={};if(this.apiClient.isVertexAI())throw new Error("This method is only supported by the Gemini Developer API.");{const u=yW(e);return o=me("files",u._url),s=u._query,delete u._url,delete u._query,i=this.apiClient.request({path:o,queryParams:s,body:JSON.stringify(u),httpMethod:"GET",httpOptions:(n=e.config)===null||n===void 0?void 0:n.httpOptions,abortSignal:(r=e.config)===null||r===void 0?void 0:r.abortSignal}).then(c=>c.json().then(f=>{const p=f;return p.sdkHttpResponse={headers:c.headers},p})),i.then(c=>{const f=vW(c),p=new w9;return Object.assign(p,f),p})}}async createInternal(e){var n,r;let i,o="",s={};if(this.apiClient.isVertexAI())throw new Error("This method is only supported by the Gemini Developer API.");{const u=lW(e);return o=me("upload/v1beta/files",u._url),s=u._query,delete u._url,delete u._query,i=this.apiClient.request({path:o,queryParams:s,body:JSON.stringify(u),httpMethod:"POST",httpOptions:(n=e.config)===null||n===void 0?void 0:n.httpOptions,abortSignal:(r=e.config)===null||r===void 0?void 0:r.abortSignal}).then(c=>c.json()),i.then(c=>{const f=uW(c),p=new _9;return Object.assign(p,f),p})}}async get(e){var n,r;let i,o="",s={};if(this.apiClient.isVertexAI())throw new Error("This method is only supported by the Gemini Developer API.");{const u=mW(e);return o=me("files/{file}",u._url),s=u._query,delete u._url,delete u._query,i=this.apiClient.request({path:o,queryParams:s,body:JSON.stringify(u),httpMethod:"GET",httpOptions:(n=e.config)===null||n===void 0?void 0:n.httpOptions,abortSignal:(r=e.config)===null||r===void 0?void 0:r.abortSignal}).then(c=>c.json()),i.then(c=>vT(c))}}async delete(e){var n,r;let i,o="",s={};if(this.apiClient.isVertexAI())throw new Error("This method is only supported by the Gemini Developer API.");{const u=cW(e);return o=me("files/{file}",u._url),s=u._query,delete u._url,delete u._query,i=this.apiClient.request({path:o,queryParams:s,body:JSON.stringify(u),httpMethod:"DELETE",httpOptions:(n=e.config)===null||n===void 0?void 0:n.httpOptions,abortSignal:(r=e.config)===null||r===void 0?void 0:r.abortSignal}).then(c=>c.json().then(f=>{const p=f;return p.sdkHttpResponse={headers:c.headers},p})),i.then(c=>{const f=fW(c),p=new C9;return Object.assign(p,f),p})}}}/** 226 * @license 227 * Copyright 2025 Google LLC 228 * SPDX-License-Identifier: Apache-2.0 229 */function xW(){return{}}function TW(){return{}}function SW(){return{}}function AW(){return{}}function wW(t){const e={},n=h(t,["apiKeyString"]);return n!=null&&m(e,["apiKeyString"],n),e}function _W(t){const e={},n=h(t,["data"]);n!=null&&m(e,["data"],n);const r=h(t,["mimeType"]);r!=null&&m(e,["mimeType"],r);const i=h(t,["sourceMetadata"]);return i!=null&&m(e,["sourceMetadata"],mX(i)),e}function PR(){return{}}function RR(){return{}}function CW(t){const e={},n=h(t,["apiKeyConfig"]);n!=null&&m(e,["apiKeyConfig"],wW(n));const r=h(t,["authType"]);r!=null&&m(e,["authType"],r);const i=h(t,["googleServiceAccountConfig"]);i!=null&&m(e,["googleServiceAccountConfig"],i);const o=h(t,["httpBasicAuthConfig"]);o!=null&&m(e,["httpBasicAuthConfig"],o);const s=h(t,["oauthConfig"]);s!=null&&m(e,["oauthConfig"],s);const u=h(t,["oidcConfig"]);return u!=null&&m(e,["oidcConfig"],u),e}function EW(t){const e={},n=h(t,["disabled"]);n!=null&&m(e,["disabled"],n);const r=h(t,["startOfSpeechSensitivity"]);r!=null&&m(e,["startOfSpeechSensitivity"],r);const i=h(t,["endOfSpeechSensitivity"]);i!=null&&m(e,["endOfSpeechSensitivity"],i);const o=h(t,["prefixPaddingMs"]);o!=null&&m(e,["prefixPaddingMs"],o);const s=h(t,["silenceDurationMs"]);return s!=null&&m(e,["silenceDurationMs"],s),e}function MW(t){const e={},n=h(t,["disabled"]);n!=null&&m(e,["disabled"],n);const r=h(t,["startOfSpeechSensitivity"]);r!=null&&m(e,["startOfSpeechSensitivity"],r);const i=h(t,["endOfSpeechSensitivity"]);i!=null&&m(e,["endOfSpeechSensitivity"],i);const o=h(t,["prefixPaddingMs"]);o!=null&&m(e,["prefixPaddingMs"],o);const s=h(t,["silenceDurationMs"]);return s!=null&&m(e,["silenceDurationMs"],s),e}function PW(t){const e={},n=h(t,["data"]);n!=null&&m(e,["data"],n);const r=h(t,["mimeType"]);return r!=null&&m(e,["mimeType"],r),e}function RW(t){const e={},n=h(t,["displayName"]);n!=null&&m(e,["displayName"],n);const r=h(t,["data"]);r!=null&&m(e,["data"],r);const i=h(t,["mimeType"]);return i!=null&&m(e,["mimeType"],i),e}function NW(t){const e={};if(h(t,["displayName"])!==void 0)throw new Error("displayName parameter is not supported in Gemini API.");const n=h(t,["data"]);n!=null&&m(e,["data"],n);const r=h(t,["mimeType"]);return r!=null&&m(e,["mimeType"],r),e}function OW(t){const e={},n=h(t,["displayName"]);n!=null&&m(e,["displayName"],n);const r=h(t,["data"]);r!=null&&m(e,["data"],r);const i=h(t,["mimeType"]);return i!=null&&m(e,["mimeType"],i),e}function DW(t){const e={},n=h(t,["parts"]);if(n!=null){let i=n;Array.isArray(i)&&(i=i.map(o=>DX(o))),m(e,["parts"],i)}const r=h(t,["role"]);return r!=null&&m(e,["role"],r),e}function IW(t){const e={},n=h(t,["parts"]);if(n!=null){let i=n;Array.isArray(i)&&(i=i.map(o=>IX(o))),m(e,["parts"],i)}const r=h(t,["role"]);return r!=null&&m(e,["role"],r),e}function kW(t){const e={},n=h(t,["parts"]);if(n!=null){let i=n;Array.isArray(i)&&(i=i.map(o=>kX(o))),m(e,["parts"],i)}const r=h(t,["role"]);return r!=null&&m(e,["role"],r),e}function LW(t){const e={},n=h(t,["parts"]);if(n!=null){let i=n;Array.isArray(i)&&(i=i.map(o=>LX(o))),m(e,["parts"],i)}const r=h(t,["role"]);return r!=null&&m(e,["role"],r),e}function UW(t){const e={},n=h(t,["triggerTokens"]);n!=null&&m(e,["triggerTokens"],n);const r=h(t,["slidingWindow"]);return r!=null&&m(e,["slidingWindow"],GX(r)),e}function qW(t){const e={},n=h(t,["triggerTokens"]);n!=null&&m(e,["triggerTokens"],n);const r=h(t,["slidingWindow"]);return r!=null&&m(e,["slidingWindow"],zX(r)),e}function BW(t){const e={},n=h(t,["mode"]);n!=null&&m(e,["mode"],n);const r=h(t,["dynamicThreshold"]);return r!=null&&m(e,["dynamicThreshold"],r),e}function $W(t){const e={},n=h(t,["mode"]);n!=null&&m(e,["mode"],n);const r=h(t,["dynamicThreshold"]);return r!=null&&m(e,["dynamicThreshold"],r),e}function VW(t){const e={},n=h(t,["excludeDomains"]);return n!=null&&m(e,["excludeDomains"],n),e}function jW(t){const e={},n=h(t,["fileUri"]);n!=null&&m(e,["fileUri"],n);const r=h(t,["mimeType"]);return r!=null&&m(e,["mimeType"],r),e}function FW(t){const e={},n=h(t,["displayName"]);n!=null&&m(e,["displayName"],n);const r=h(t,["fileUri"]);r!=null&&m(e,["fileUri"],r);const i=h(t,["mimeType"]);return i!=null&&m(e,["mimeType"],i),e}function HW(t){const e={};if(h(t,["displayName"])!==void 0)throw new Error("displayName parameter is not supported in Gemini API.");const n=h(t,["fileUri"]);n!=null&&m(e,["fileUri"],n);const r=h(t,["mimeType"]);return r!=null&&m(e,["mimeType"],r),e}function GW(t){const e={},n=h(t,["displayName"]);n!=null&&m(e,["displayName"],n);const r=h(t,["fileUri"]);r!=null&&m(e,["fileUri"],r);const i=h(t,["mimeType"]);return i!=null&&m(e,["mimeType"],i),e}function vB(t){const e={},n=h(t,["id"]);n!=null&&m(e,["id"],n);const r=h(t,["args"]);r!=null&&m(e,["args"],r);const i=h(t,["name"]);return i!=null&&m(e,["name"],i),e}function bB(t){const e={},n=h(t,["id"]);n!=null&&m(e,["id"],n);const r=h(t,["args"]);r!=null&&m(e,["args"],r);const i=h(t,["name"]);return i!=null&&m(e,["name"],i),e}function zW(t){const e={},n=h(t,["id"]);n!=null&&m(e,["id"],n);const r=h(t,["args"]);r!=null&&m(e,["args"],r);const i=h(t,["name"]);return i!=null&&m(e,["name"],i),e}function KW(t){const e={},n=h(t,["id"]);n!=null&&m(e,["id"],n);const r=h(t,["args"]);r!=null&&m(e,["args"],r);const i=h(t,["name"]);return i!=null&&m(e,["name"],i),e}function YW(t){const e={},n=h(t,["behavior"]);n!=null&&m(e,["behavior"],n);const r=h(t,["description"]);r!=null&&m(e,["description"],r);const i=h(t,["name"]);i!=null&&m(e,["name"],i);const o=h(t,["parameters"]);o!=null&&m(e,["parameters"],o);const s=h(t,["parametersJsonSchema"]);s!=null&&m(e,["parametersJsonSchema"],s);const u=h(t,["response"]);u!=null&&m(e,["response"],u);const c=h(t,["responseJsonSchema"]);return c!=null&&m(e,["responseJsonSchema"],c),e}function WW(t){const e={};if(h(t,["behavior"])!==void 0)throw new Error("behavior parameter is not supported in Vertex AI.");const n=h(t,["description"]);n!=null&&m(e,["description"],n);const r=h(t,["name"]);r!=null&&m(e,["name"],r);const i=h(t,["parameters"]);i!=null&&m(e,["parameters"],i);const o=h(t,["parametersJsonSchema"]);o!=null&&m(e,["parametersJsonSchema"],o);const s=h(t,["response"]);s!=null&&m(e,["response"],s);const u=h(t,["responseJsonSchema"]);return u!=null&&m(e,["responseJsonSchema"],u),e}function XW(t){const e={},n=h(t,["authConfig"]);return n!=null&&m(e,["authConfig"],CW(n)),e}function JW(t){const e={},n=h(t,["dynamicRetrievalConfig"]);return n!=null&&m(e,["dynamicRetrievalConfig"],BW(n)),e}function ZW(t){const e={},n=h(t,["dynamicRetrievalConfig"]);return n!=null&&m(e,["dynamicRetrievalConfig"],$W(n)),e}function QW(t){const e={},n=h(t,["timeRangeFilter"]);if(n!=null&&m(e,["timeRangeFilter"],tX(n)),h(t,["excludeDomains"])!==void 0)throw new Error("excludeDomains parameter is not supported in Gemini API.");return e}function eX(t){const e={},n=h(t,["timeRangeFilter"]);n!=null&&m(e,["timeRangeFilter"],nX(n));const r=h(t,["excludeDomains"]);return r!=null&&m(e,["excludeDomains"],r),e}function tX(t){const e={},n=h(t,["startTime"]);n!=null&&m(e,["startTime"],n);const r=h(t,["endTime"]);return r!=null&&m(e,["endTime"],r),e}function nX(t){const e={},n=h(t,["startTime"]);n!=null&&m(e,["startTime"],n);const r=h(t,["endTime"]);return r!=null&&m(e,["endTime"],r),e}function rX(t,e){const n={},r=h(t,["generationConfig"]);e!==void 0&&r!=null&&m(e,["setup","generationConfig"],r);const i=h(t,["responseModalities"]);e!==void 0&&i!=null&&m(e,["setup","generationConfig","responseModalities"],i);const o=h(t,["temperature"]);e!==void 0&&o!=null&&m(e,["setup","generationConfig","temperature"],o);const s=h(t,["topP"]);e!==void 0&&s!=null&&m(e,["setup","generationConfig","topP"],s);const u=h(t,["topK"]);e!==void 0&&u!=null&&m(e,["setup","generationConfig","topK"],u);const c=h(t,["maxOutputTokens"]);e!==void 0&&c!=null&&m(e,["setup","generationConfig","maxOutputTokens"],c);const f=h(t,["mediaResolution"]);e!==void 0&&f!=null&&m(e,["setup","generationConfig","mediaResolution"],f);const p=h(t,["seed"]);e!==void 0&&p!=null&&m(e,["setup","generationConfig","seed"],p);const y=h(t,["speechConfig"]);e!==void 0&&y!=null&&m(e,["setup","generationConfig","speechConfig"],YX(LA(y)));const v=h(t,["enableAffectiveDialog"]);e!==void 0&&v!=null&&m(e,["setup","generationConfig","enableAffectiveDialog"],v);const x=h(t,["systemInstruction"]);e!==void 0&&x!=null&&m(e,["setup","systemInstruction"],kW(rn(x)));const w=h(t,["tools"]);if(e!==void 0&&w!=null){let E=Xs(w);Array.isArray(E)&&(E=E.map(N=>ZX(Ws(N)))),m(e,["setup","tools"],E)}const A=h(t,["sessionResumption"]);e!==void 0&&A!=null&&m(e,["setup","sessionResumption"],FX(A));const S=h(t,["inputAudioTranscription"]);e!==void 0&&S!=null&&m(e,["setup","inputAudioTranscription"],PR());const C=h(t,["outputAudioTranscription"]);e!==void 0&&C!=null&&m(e,["setup","outputAudioTranscription"],PR());const P=h(t,["realtimeInputConfig"]);e!==void 0&&P!=null&&m(e,["setup","realtimeInputConfig"],VX(P));const M=h(t,["contextWindowCompression"]);e!==void 0&&M!=null&&m(e,["setup","contextWindowCompression"],UW(M));const O=h(t,["proactivity"]);return e!==void 0&&O!=null&&m(e,["setup","proactivity"],BX(O)),n}function iX(t,e){const n={},r=h(t,["generationConfig"]);e!==void 0&&r!=null&&m(e,["setup","generationConfig"],r);const i=h(t,["responseModalities"]);e!==void 0&&i!=null&&m(e,["setup","generationConfig","responseModalities"],i);const o=h(t,["temperature"]);e!==void 0&&o!=null&&m(e,["setup","generationConfig","temperature"],o);const s=h(t,["topP"]);e!==void 0&&s!=null&&m(e,["setup","generationConfig","topP"],s);const u=h(t,["topK"]);e!==void 0&&u!=null&&m(e,["setup","generationConfig","topK"],u);const c=h(t,["maxOutputTokens"]);e!==void 0&&c!=null&&m(e,["setup","generationConfig","maxOutputTokens"],c);const f=h(t,["mediaResolution"]);e!==void 0&&f!=null&&m(e,["setup","generationConfig","mediaResolution"],f);const p=h(t,["seed"]);e!==void 0&&p!=null&&m(e,["setup","generationConfig","seed"],p);const y=h(t,["speechConfig"]);e!==void 0&&y!=null&&m(e,["setup","generationConfig","speechConfig"],WX(LA(y)));const v=h(t,["enableAffectiveDialog"]);e!==void 0&&v!=null&&m(e,["setup","generationConfig","enableAffectiveDialog"],v);const x=h(t,["systemInstruction"]);e!==void 0&&x!=null&&m(e,["setup","systemInstruction"],LW(rn(x)));const w=h(t,["tools"]);if(e!==void 0&&w!=null){let E=Xs(w);Arra
229y.isArray(E)&&(E=E.map(N=>QX(Ws(N)))),m(e,["setup","tools"],E)}const A=h(t,["sessionResumption"]);e!==void 0&&A!=null&&m(e,["setup","sessionResumption"],HX(A));const S=h(t,["inputAudioTranscription"]);e!==void 0&&S!=null&&m(e,["setup","inputAudioTranscription"],RR());const C=h(t,["outputAudioTranscription"]);e!==void 0&&C!=null&&m(e,["setup","outputAudioTranscription"],RR());const P=h(t,["realtimeInputConfig"]);e!==void 0&&P!=null&&m(e,["setup","realtimeInputConfig"],jX(P));const M=h(t,["contextWindowCompression"]);e!==void 0&&M!=null&&m(e,["setup","contextWindowCompression"],qW(M));const O=h(t,["proactivity"]);return e!==void 0&&O!=null&&m(e,["setup","proactivity"],$X(O)),n}function oX(t,e){const n={},r=h(e,["model"]);r!=null&&m(n,["setup","model"],je(t,r));const i=h(e,["config"]);return i!=null&&m(n,["config"],rX(i,n)),n}function aX(t,e){const n={},r=h(e,["model"]);r!=null&&m(n,["setup","model"],je(t,r));const i=h(e,["config"]);return i!=null&&m(n,["config"],iX(i,n)),n}function sX(t){const e={},n=h(t,["weightedPrompts"]);if(n!=null){let r=n;Array.isArray(r)&&(r=r.map(i=>fJ(i))),m(e,["weightedPrompts"],r)}return e}function xB(t){const e={},n=h(t,["weightedPrompts"]);if(n!=null){let r=n;Array.isArray(r)&&(r=r.map(i=>wB(i))),m(e,["weightedPrompts"],r)}return e}function bT(t){const e={},n=h(t,["setup"]);n!=null&&m(e,["setup"],TB(n));const r=h(t,["clientContent"]);r!=null&&m(e,["clientContent"],xB(r));const i=h(t,["musicGenerationConfig"]);i!=null&&m(e,["musicGenerationConfig"],SB(i));const o=h(t,["playbackControl"]);return o!=null&&m(e,["playbackControl"],o),e}function TB(t){const e={},n=h(t,["model"]);return n!=null&&m(e,["model"],n),e}function lX(t){const e={},n=h(t,["text"]);n!=null&&m(e,["text"],n);const r=h(t,["filteredReason"]);return r!=null&&m(e,["filteredReason"],r),e}function uX(t){const e={},n=h(t,["temperature"]);n!=null&&m(e,["temperature"],n);const r=h(t,["topK"]);r!=null&&m(e,["topK"],r);const i=h(t,["seed"]);i!=null&&m(e,["seed"],i);const o=h(t,["guidance"]);o!=null&&m(e,["guidance"],o);const s=h(t,["bpm"]);s!=null&&m(e,["bpm"],s);const u=h(t,["density"]);u!=null&&m(e,["density"],u);const c=h(t,["brightness"]);c!=null&&m(e,["brightness"],c);const f=h(t,["scale"]);f!=null&&m(e,["scale"],f);const p=h(t,["muteBass"]);p!=null&&m(e,["muteBass"],p);const y=h(t,["muteDrums"]);y!=null&&m(e,["muteDrums"],y);const v=h(t,["onlyBassAndDrums"]);v!=null&&m(e,["onlyBassAndDrums"],v);const x=h(t,["musicGenerationMode"]);return x!=null&&m(e,["musicGenerationMode"],x),e}function SB(t){const e={},n=h(t,["temperature"]);n!=null&&m(e,["temperature"],n);const r=h(t,["topK"]);r!=null&&m(e,["topK"],r);const i=h(t,["seed"]);i!=null&&m(e,["seed"],i);const o=h(t,["guidance"]);o!=null&&m(e,["guidance"],o);const s=h(t,["bpm"]);s!=null&&m(e,["bpm"],s);const u=h(t,["density"]);u!=null&&m(e,["density"],u);const c=h(t,["brightness"]);c!=null&&m(e,["brightness"],c);const f=h(t,["scale"]);f!=null&&m(e,["scale"],f);const p=h(t,["muteBass"]);p!=null&&m(e,["muteBass"],p);const y=h(t,["muteDrums"]);y!=null&&m(e,["muteDrums"],y);const v=h(t,["onlyBassAndDrums"]);v!=null&&m(e,["onlyBassAndDrums"],v);const x=h(t,["musicGenerationMode"]);return x!=null&&m(e,["musicGenerationMode"],x),e}function cX(t){const e={},n=h(t,["audioChunks"]);if(n!=null){let r=n;Array.isArray(r)&&(r=r.map(i=>_W(i))),m(e,["audioChunks"],r)}return e}function fX(t){const e={};h(t,["setupComplete"])!=null&&m(e,["setupComplete"],dX());const r=h(t,["serverContent"]);
229r!=null&&m(e,["serverContent"],cX(r));const i=h(t,["filteredPrompt"]);return i!=null&&m(e,["filteredPrompt"],lX(i)),e}function dX(){return{}}function hX(t){const e={},n=h(t,["musicGenerationConfig"]);return n!=null&&m(e,["musicGenerationConfig"],SB(n)),e}function pX(t){const e={},n=h(t,["weightedPrompts"]);if(n!=null){let r=n;Array.isArray(r)&&(r=r.map(i=>wB(i))),m(e,["weightedPrompts"],r)}return e}function mX(t){const e={},n=h(t,["clientContent"]);n!=null&&m(e,["clientContent"],sX(n));const r=h(t,["musicGenerationConfig"]);return r!=null&&m(e,["musicGenerationConfig"],uX(r)),e}function gX(t){const e={},n=h(t,["media"]);if(n!=null){let f=rB(n);Array.isArray(f)&&(f=f.map(p=>p)),m(e,["mediaChunks"],f)}const r=h(t,["audio"]);r!=null&&m(e,["audio"],oB(r));const i=h(t,["audioStreamEnd"]);i!=null&&m(e,["audioStreamEnd"],i);const o=h(t,["video"]);o!=null&&m(e,["video"],iB(o));const s=h(t,["text"]);return s!=null&&m(e,["text"],s),h(t,["activityStart"])!=null&&m(e,["activityStart"],SW()),h(t,["activityEnd"])!=null&&m(e,["activityEnd"],xW()),e}function yX(t){const e={},n=h(t,["media"]);if(n!=null){let f=rB(n);Array.isArray(f)&&(f=f.map(p=>p)),m(e,["mediaChunks"],f)}const r=h(t,["audio"]);r!=null&&m(e,["audio"],oB(r));const i=h(t,["audioStreamEnd"]);i!=null&&m(e,["audioStreamEnd"],i);const o=h(t,["video"]);o!=null&&m(e,["video"],iB(o));const s=h(t,["text"]);return s!=null&&m(e,["text"],s),h(t,["activityStart"])!=null&&m(e,["activityStart"],AW()),h(t,["activityEnd"])!=null&&m(e,["activityEnd"],TW()),e}function vX(t){const e={},n=h(t,["modelTurn"]);n!=null&&m(e,["modelTurn"],DW(n));const r=h(t,["turnComplete"]);r!=null&&m(e,["turnComplete"],r);const i=h(t,["interrupted"]);i!=null&&m(e,["interrupted"],i);const o=h(t,["groundingMetadata"]);o!=null&&m(e,["groundingMetadata"],o);const s=h(t,["generationComplete"]);s!=null&&m(e,["generationComplete"],s);const u=h(t,["inputTranscription"]);u!=null&&m(e,["inputTranscription"],NR(u));const c=h(t,["outputTranscription"]);c!=null&&m(e,["outputTranscription"],NR(c));const f=h(t,["urlContextMetadata"]);f!=null&&m(e,["urlContextMetadata"],eJ(f));const p=h(t,["turnCompleteReason"]);p!=null&&m(e,["turnCompleteReason"],p);const y=h(t,["waitingForInput"]);return y!=null&&m(e,["waitingForInput"],y),e}function bX(t){const e={},n=h(t,["modelTurn"]);n!=null&&m(e,["modelTurn"],IW(n));const r=h(t,["turnComplete"]);r!=null&&m(e,["turnComplete"],r);const i=h(t,["interrupted"]);i!=null&&m(e,["interrupted"],i);const o=h(t,["groundingMetadata"]);o!=null&&m(e,["groundingMetadata"],o);const s=h(t,["generationComplete"]);s!=null&&m(e,["generationComplete"],s);const u=h(t,["inputTranscription"]);u!=null&&m(e,["inputTranscription"],OR(u));const c=h(t,["outputTranscription"]);c!=null&&m(e,["outputTranscription"],OR(c));const f=h(t,["turnCompleteReason"]);f!=null&&m(e,["turnCompleteReason"],f);const p=h(t,["waitingForInput"]);return p!=null&&m(e,["waitingForInput"],p),e}function xX(t){const e={},n=h(t,["timeLeft"]);return n!=null&&m(e,["timeLeft"],n),e}function TX(t){const e={},n=h(t,["timeLeft"]);return n!=null&&m(e,["timeLeft"],n),e}function SX(t){const e={};h(t,["setupComplete"])!=null&&m(e,["setupComplete"],CX());const r=h(t,["serverContent"]);r!=null&&m(e,["serverContent"],vX(r));const i=h(t,["toolCall"]);i!=null&&m(e,["toolCall"],RX(i));const o=h(t,["toolCallCancellation"]);o!=null&&m(e,["toolCallCancellation"],MX(o));const s=h(t,["usageMetadata"]);s!=null&&m(e,["usageMetadata"],iJ(s));const u=h(t,["goAway"]);u!=null&&m(e,["goAway"],xX(u));const c=h(t,["sessionResumptionUpdate"]);return c!=null&&m(e,["sessionResumptionUpdate"],wX(c)),e}function AX(t){const e={},n=h(t,["setupComplete"]);n!=null&&m(e,["setupComplete"],EX(n));const r=h(t,["serverContent"]);r!=null&&m(e,["serverContent"],bX(r));const i=h(t,["toolCall"]);i!=null&&m(e,["toolCall"],NX(i));const o=h(t,["toolCallCancellation"]);o!=null&&m(e,["toolCallCancellation"],PX(o));const s=h(t,["usageMetadata"]);s!=null&&m(e,["usageMetadata"],oJ(s));const u=h(t,["goAway"]);u!=null&&m(e,["goAway"],TX(u));const c=h(t,["sessionResumptionUpdate"]);return c!=null&&m(e,["sessionResumptionUpdate"],_X(c)),e}function wX(t){const e={},n=h(t,["newHandle"]);n!=null&&m(e,["newHandle"],n);const r=h(t,["resumable"]);r!=null&&m(e,["resumable"],r);const i=h(t,["lastConsumedClientMessageIndex"]);return i!=null&&m(e,["lastConsumedClientMessageIndex"],i),e}function _X(t){const e={},n=h(t,["newHandle"]);n!=null&&m(e,["newHandle"],n);const r=h(t,["resumable"]);r!=null&&m(e,["resumable"],r);const i=h(t,["lastConsumedClientMessageIndex"]);return i!=null&&m(e,["lastConsumedClientMessageIndex"],i),e}function CX(){return{}}function EX(t){const e={},n=h(t,["sessionId"]);return n!=null&&m(e,["sessionId"],n),e}function MX(t){const e={},n=h(t,["ids"]);return n!=null&&m(e,["ids"],n),e}function PX(t){const e={},n=h(t,["ids"]);return n!=null&&m(e,["ids"],n),e}function RX(t){const e={},n=h(t,["functionCalls"]);if(n!=null){let r=n;Array.isArray(r)&&(r=r.map(i=>vB(i))),m(e,["functionCalls"],r)}return e}function NX(t){const e={},n=h(t,["functionCalls"]);if(n!=null){let r=n;Array.isArray(r)&&(r=r.map(i=>bB(i))),m(e,["functionCalls"],r)}return e}function cd(t){const e={},n=h(t,["modality"]);n!=null&&m(e,["modality"],n);const r=h(t,["tokenCount"]);return r!=null&&m(e,["tokenCount"],r),e}function fd(t){const e={},n=h(t,["modality"]);n!=null&&m(e,["modality"],n);const r=h(t,["tokenCount"]);return r!=null&&m(e,["tokenCount"],r),e}function OX(t){const e={},n=h(t,["speakerVoiceConfigs"]);if(n!=null){let r=n;Array.isArray(r)&&(r=r.map(i=>KX(i))),m(e,["speakerVoiceConfigs"],r)}return e}function DX(t){const e={},n=h(t,["videoMetadata"]);n!=null&&m(e,["videoMetadata"],aJ(n));const r=h(t,["thought"]);r!=null&&m(e,["thought"],r);const i=h(t,["inlineData"]);i!=null&&m(e,["inlineData"],PW(i));const o=h(t,["fileData"]);o!=null&&m(e,["fileData"],jW(o));const s=h(t,["thoughtSignature"]);s!=null&&m(e,["thoughtSignature"],s);const u=h(t,["functionCall"]);u!=null&&m(e,["functionCall"],vB(u));const c=h(t,["codeExecutionResult"]);c!=null&&m(e,["codeExecutionResult"],c);const f=h(t,["executableCode"]);f!=null&&m(e,["executableCode"],f);const p=h(t,["functionResponse"]);p!=null&&m(e,["functionResponse"],p);const y=h(t,["text"]);return y!=null&&m(e,["text"],y),e}function IX(t){const e={},n=h(t,["videoMetadata"]);n!=null&&m(e,["videoMetadata"],sJ(n));const r=h(t,["thought"]);r!=null&&m(e,["thought"],r);const i=h(t,["inlineData"]);i!=null&&m(e,["inlineData"],RW(i));const o=h(t,["fileData"]);
229o!=null&&m(e,["fileData"],FW(o));const s=h(t,["thoughtSignature"]);s!=null&&m(e,["thoughtSignature"],s);const u=h(t,["functionCall"]);u!=null&&m(e,["functionCall"],bB(u));const c=h(t,["codeExecutionResult"]);c!=null&&m(e,["codeExecutionResult"],c);const f=h(t,["executableCode"]);f!=null&&m(e,["executableCode"],f);const p=h(t,["functionResponse"]);p!=null&&m(e,["functionResponse"],p);const y=h(t,["text"]);return y!=null&&m(e,["text"],y),e}function kX(t){const e={},n=h(t,["videoMetadata"]);n!=null&&m(e,["videoMetadata"],lJ(n));const r=h(t,["thought"]);r!=null&&m(e,["thought"],r);const i=h(t,["inlineData"]);i!=null&&m(e,["inlineData"],NW(i));const o=h(t,["fileData"]);o!=null&&m(e,["fileData"],HW(o));const s=h(t,["thoughtSignature"]);s!=null&&m(e,["thoughtSignature"],s);const u=h(t,["functionCall"]);u!=null&&m(e,["functionCall"],zW(u));const c=h(t,["codeExecutionResult"]);c!=null&&m(e,["codeExecutionResult"],c);const f=h(t,["executableCode"]);f!=null&&m(e,["executableCode"],f);const p=h(t,["functionResponse"]);p!=null&&m(e,["functionResponse"],p);const y=h(t,["text"]);return y!=null&&m(e,["text"],y),e}function LX(t){const e={},n=h(t,["videoMetadata"]);n!=null&&m(e,["videoMetadata"],uJ(n));const r=h(t,["thought"]);r!=null&&m(e,["thought"],r);const i=h(t,["inlineData"]);i!=null&&m(e,["inlineData"],OW(i));const o=h(t,["fileData"]);o!=null&&m(e,["fileData"],GW(o));const s=h(t,["thoughtSignature"]);s!=null&&m(e,["thoughtSignature"],s);const u=h(t,["functionCall"]);u!=null&&m(e,["functionCall"],KW(u));const c=h(t,["codeExecutionResult"]);c!=null&&m(e,["codeExecutionResult"],c);const f=h(t,["executableCode"]);f!=null&&m(e,["executableCode"],f);const p=h(t,["functionResponse"]);p!=null&&m(e,["functionResponse"],p);const y=h(t,["text"]);return y!=null&&m(e,["text"],y),e}function UX(t){const e={},n=h(t,["voiceName"]);return n!=null&&m(e,["voiceName"],n),e}function qX(t){const e={},n=h(t,["voiceName"]);return n!=null&&m(e,["voiceName"],n),e}function BX(t){const e={},n=h(t,["proactiveAudio"]);return n!=null&&m(e,["proactiveAudio"],n),e}function $X(t){const e={},n=h(t,["proactiveAudio"]);return n!=null&&m(e,["proactiveAudio"],n),e}function VX(t){const e={},n=h(t,["automaticActivityDetection"]);n!=null&&m(e,["automaticActivityDetection"],EW(n));const r=h(t,["activityHandling"]);r!=null&&m(e,["activityHandling"],r);const i=h(t,["turnCoverage"]);return i!=null&&m(e,["turnCoverage"],i),e}function jX(t){const e={},n=h(t,["automaticActivityDetection"]);n!=null&&m(e,["automaticActivityDetection"],MW(n));const r=h(t,["activityHandling"]);r!=null&&m(e,["activityHandling"],r);const i=h(t,["turnCoverage"]);return i!=null&&m(e,["turnCoverage"],i),e}function FX(t){const e={},n=h(t,["handle"]);if(n!=null&&m(e,["handle"],n),h(t,["transparent"])!==void 0)throw new Error("transparent parameter is not supported in Gemini API.");return e}function HX(t){const e={},n=h(t,["handle"]);n!=null&&m(e,["handle"],n);const r=h(t,["transparent"]);return r!=null&&m(e,["transparent"],r),e}function GX(t){const e={},n=h(t,["targetTokens"]);return n!=null&&m(e,["targetTokens"],n),e}function zX(t){const e={},n=h(t,["targetTokens"]);return n!=null&&m(e,["targetTokens"],n),e}function KX(t){const e={},n=h(t,["speaker"]);n!=null&&m(e,["speaker"],n);const r=h(t,["voiceConfig"]);return r!=null&&m(e,["voiceConfig"],AB(r)),e}function YX(t){const e={},n=h(t,["voiceConfig"]);n!=null&&m(e,["voiceConfig"],AB(n));const r=h(t,["multiSpeakerVoiceConfig"]);r!=null&&m(e,["multiSpeakerVoiceConfig"],OX(r));const i=h(t,["languageCode"]);return i!=null&&m(e,["languageCode"],i),e}function WX(t){const e={},n=h(t,["voiceConfig"]);if(n!=null&&m(e,["voiceConfig"],cJ(n)),h(t,["multiSpeakerVoiceConfig"])!==void 0)throw new Error("multiSpeakerVoiceConfig parameter is not supported in Vertex AI.");const r=h(t,["languageCode"]);return r!=null&&m(e,["languageCode"],r),e}function XX(t){const e={},n=h(t,["environment"]);n!=null&&m(e,["environment"],n);const r=h(t,["excludedPredefinedFunctions"]);return r!=null&&m(e,["excludedPredefinedFunctions"],r),e}function JX(t){const e={},n=h(t,["environment"]);n!=null&&m(e,["environment"],n);const r=h(t,["excludedPredefinedFunctions"]);return r!=null&&m(e,["excludedPredefinedFunctions"],r),e}function ZX(t){const e={},n=h(t,["functionDeclarations"]);if(n!=null){let c=n;Array.isArray(c)&&(c=c.map(f=>YW(f))),m(e,["functionDeclarations"],c)}if(h(t,["retrieval"])!==void 0)throw new Error("retrieval parameter is not supported in Gemini API.");const r=h(t,["googleSearch"]);r!=null&&m(e,["googleSearch"],QW(r));const i=h(t,["googleSearchRetrieval"]);if(i!=null&&m(e,["googleSearchRetrieval"],JW(i)),h(t,["enterpriseWebSearch"])!==void 0)throw new Error("enterpriseWebSearch parameter is not supported in Gemini API.");if(h(t,["googleMaps"])!==void 0)throw new Error("googleMaps parameter is not supported in Gemini API.");
229h(t,["urlContext"])!=null&&m(e,["urlContext"],tJ());const s=h(t,["computerUse"]);s!=null&&m(e,["computerUse"],XX(s));const u=h(t,["codeExecution"]);return u!=null&&m(e,["codeExecution"],u),e}function QX(t){const e={},n=h(t,["functionDeclarations"]);if(n!=null){let y=n;Array.isArray(y)&&(y=y.map(v=>WW(v))),m(e,["functionDeclarations"],y)}const r=h(t,["retrieval"]);r!=null&&m(e,["retrieval"],r);const i=h(t,["googleSearch"]);i!=null&&m(e,["googleSearch"],eX(i));const o=h(t,["googleSearchRetrieval"]);o!=null&&m(e,["googleSearchRetrieval"],ZW(o));const s=h(t,["enterpriseWebSearch"]);s!=null&&m(e,["enterpriseWebSearch"],VW(s));const u=h(t,["googleMaps"]);u!=null&&m(e,["googleMaps"],XW(u)),h(t,["urlContext"])!=null&&m(e,["urlContext"],nJ());const f=h(t,["computerUse"]);f!=null&&m(e,["computerUse"],JX(f));const p=h(t,["codeExecution"]);return p!=null&&m(e,["codeExecution"],p),e}function NR(t){const e={},n=h(t,["text"]);n!=null&&m(e,["text"],n);const r=h(t,["finished"]);return r!=null&&m(e,["finished"],r),e}function OR(t){const e={},n=h(t,["text"]);n!=null&&m(e,["text"],n);const r=h(t,["finished"]);return r!=null&&m(e,["finished"],r),e}function eJ(t){const e={},n=h(t,["urlMetadata"]);if(n!=null){let r=n;Array.isArray(r)&&(r=r.map(i=>rJ(i))),m(e,["urlMetadata"],r)}return e}function tJ(){return{}}function nJ(){return{}}function rJ(t){const e={},n=h(t,["retrievedUrl"]);n!=null&&m(e,["retrievedUrl"],n);const r=h(t,["urlRetrievalStatus"]);return r!=null&&m(e,["urlRetrievalStatus"],r),e}function iJ(t){const e={},n=h(t,["promptTokenCount"]);n!=null&&m(e,["promptTokenCount"],n);const r=h(t,["cachedContentTokenCount"]);r!=null&&m(e,["cachedContentTokenCount"],r);const i=h(t,["responseTokenCount"]);i!=null&&m(e,["responseTokenCount"],i);const o=h(t,["toolUsePromptTokenCount"]);o!=null&&m(e,["toolUsePromptTokenCount"],o);const s=h(t,["thoughtsTokenCount"]);s!=null&&m(e,["thoughtsTokenCount"],s);const u=h(t,["totalTokenCount"]);u!=null&&m(e,["totalTokenCount"],u);const c=h(t,["promptTokensDetails"]);if(c!=null){let v=c;Array.isArray(v)&&(v=v.map(x=>cd(x))),m(e,["promptTokensDetails"],v)}const f=h(t,["cacheTokensDetails"]);if(f!=null){let v=f;Array.isArray(v)&&(v=v.map(x=>cd(x))),m(e,["cacheTokensDetails"],v)}const p=h(t,["responseTokensDetails"]);if(p!=null){let v=p;Array.isArray(v)&&(v=v.map(x=>cd(x))),m(e,["responseTokensDetails"],v)}const y=h(t,["toolUsePromptTokensDetails"]);if(y!=null){let v=y;Array.isArray(v)&&(v=v.map(x=>cd(x))),m(e,["toolUsePromptTokensDetails"],v)}return e}function oJ(t){const e={},n=h(t,["promptTokenCount"]);n!=null&&m(e,["promptTokenCount"],n);const r=h(t,["cachedContentTokenCount"]);r!=null&&m(e,["cachedContentTokenCount"],r);const i=h(t,["candidatesTokenCount"]);i!=null&&m(e,["responseTokenCount"],i);const o=h(t,["toolUsePromptTokenCount"]);o!=null&&m(e,["toolUsePromptTokenCount"],o);const s=h(t,["thoughtsTokenCount"]);s!=null&&m(e,["thoughtsTokenCount"],s);const u=h(t,["totalTokenCount"]);u!=null&&m(e,["totalTokenCount"],u);const c=h(t,["promptTokensDetails"]);if(c!=null){let x=c;Array.isArray(x)&&(x=x.map(w=>
229fd(w))),m(e,["promptTokensDetails"],x)}const f=h(t,["cacheTokensDetails"]);if(f!=null){let x=f;Array.isArray(x)&&(x=x.map(w=>fd(w))),m(e,["cacheTokensDetails"],x)}const p=h(t,["candidatesTokensDetails"]);if(p!=null){let x=p;Array.isArray(x)&&(x=x.map(w=>fd(w))),m(e,["responseTokensDetails"],x)}const y=h(t,["toolUsePromptTokensDetails"]);if(y!=null){let x=y;Array.isArray(x)&&(x=x.map(w=>fd(w))),m(e,["toolUsePromptTokensDetails"],x)}const v=h(t,["trafficType"]);return v!=null&&m(e,["trafficType"],v),e}function aJ(t){const e={},n=h(t,["fps"]);n!=null&&m(e,["fps"],n);const r=h(t,["endOffset"]);r!=null&&m(e,["endOffset"],r);const i=h(t,["startOffset"]);return i!=null&&m(e,["startOffset"],i),e}function sJ(t){const e={},n=h(t,["fps"]);n!=null&&m(e,["fps"],n);const r=h(t,["endOffset"]);r!=null&&m(e,["endOffset"],r);const i=h(t,["startOffset"]);return i!=null&&m(e,["startOffset"],i),e}function lJ(t){const e={},n=h(t,["fps"]);n!=null&&m(e,["fps"],n);const r=h(t,["endOffset"]);r!=null&&m(e,["endOffset"],r);const i=h(t,["startOffset"]);return i!=null&&m(e,["startOffset"],i),e}function uJ(t){const e={},n=h(t,["fps"]);n!=null&&m(e,["fps"],n);const r=h(t,["endOffset"]);r!=null&&m(e,["endOffset"],r);const i=h(t,["startOffset"]);return i!=null&&m(e,["startOffset"],i),e}function AB(t){const e={},n=h(t,["prebuiltVoiceConfig"]);return n!=null&&m(e,["prebuiltVoiceConfig"],UX(n)),e}function cJ(t){const e={},n=h(t,["prebuiltVoiceConfig"]);return n!=null&&m(e,["prebuiltVoiceConfig"],qX(n)),e}function fJ(t){const e={},n=h(t,["text"]);n!=null&&m(e,["text"],n);const r=h(t,["weight"]);return r!=null&&m(e,["weight"],r),e}function wB(t){const e={},n=h(t,["text"]);n!=null&&m(e,["text"],n);const r=h(t,["weight"]);return r!=null&&m(e,["weight"],r),e}/** 230 * @license 231 * Copyright 2025 Google LLC 232 * SPDX-License-Identifier: Apache-2.0 233 */function dJ(t){const e={},n=h(t,["apiKeyString"]);return n!=null&&m(e,["apiKeyString"],n),e}function hJ(t){const e={},n=h(t,["apiKeyConfig"]);n!=null&&m(e,["apiKeyConfig"],dJ(n));const r=h(t,["authType"]);r!=null&&m(e,["authType"],r);const i=h(t,["googleServiceAccountConfig"]);i!=null&&m(e,["googleServiceAccountConfig"],i);const o=h(t,["httpBasicAuthConfig"]);o!=null&&m(e,["httpBasicAuthConfig"],o);const s=h(t,["oauthConfig"]);s!=null&&m(e,["oauthConfig"],s);const u=h(t,["oidcConfig"]);return u!=null&&m(e,["oidcConfig"],u),e}function pJ(t){const e={},n=h(t,["data"]);n!=null&&m(e,["data"],n);const r=h(t,["mimeType"]);return r!=null&&m(e,["mimeType"],r),e}function mJ(t){const e={},n=h(t,["displayName"]);n!=null&&m(e,["displayName"],n);const r=h(t,["data"]);r!=null&&m(e,["data"],r);const i=h(t,["mimeType"]);return i!=null&&m(e,["mimeType"],i),e}function gJ(t){const e={};if(h(t,["displayName"])!==void 0)throw new Error("displayName parameter is not supported in Gemini API.");const n=h(t,["data"]);n!=null&&m(e,["data"],n);const r=h(t,["mimeType"]);return r!=null&&m(e,["mimeType"],r),e}function yJ(t){const e={},n=h(t,["displayName"]);n!=null&&m(e,["displayName"],n);const r=h(t,["data"]);r!=null&&m(e,["data"],r);const i=h(t,["mimeType"]);return i!=null&&m(e,["mimeType"],i),e}function vJ(t){const e={},n=h(t,["content"]);n!=null&&m(e,["content"],MJ(n));const r=h(t,["citationMetadata"]);r!=null&&m(e,["citationMetadata"],TJ(r));const i=h(t,["tokenCount"]);i!=null&&m(e,["tokenCount"],i);const o=h(t,["finishReason"]);o!=null&&m(e,["finishReason"],o);const s=h(t,["urlContextMetadata"]);s!=null&&m(e,["urlContextMetadata"],YQ(s));const u=h(t,["avgLogprobs"]);u!=null&&m(e,["avgLogprobs"],u);const c=h(t,["groundingMetadata"]);c!=null&&m(e,["groundingMetadata"],c);const f=h(t,["index"]);f!=null&&m(e,["index"],f);const p=h(t,["logprobsResult"]);p!=null&&m(e,["logprobsResult"],p);const y=h(t,["safetyRatings"]);return y!=null&&m(e,["safetyRatings"],y),e}function bJ(t){const e={},n=h(t,["content"]);n!=null&&m(e,["content"],PJ(n));const r=h(t,["citationMetadata"]);r!=null&&m(e,["citationMetadata"],SJ(r));const i=h(t,["finishMessage"]);i!=null&&m(e,["finishMessage"],i);const o=h(t,["finishReason"]);o!=null&&m(e,["finishReason"],o);const s=h(t,["urlContextMetadata"]);
233s!=null&&m(e,["urlContextMetadata"],WQ(s));const u=h(t,["avgLogprobs"]);u!=null&&m(e,["avgLogprobs"],u);const c=h(t,["groundingMetadata"]);c!=null&&m(e,["groundingMetadata"],c);const f=h(t,["index"]);f!=null&&m(e,["index"],f);const p=h(t,["logprobsResult"]);p!=null&&m(e,["logprobsResult"],p);const y=h(t,["safetyRatings"]);return y!=null&&m(e,["safetyRatings"],y),e}function xJ(t){const e={},n=h(t,["checkpointId"]);n!=null&&m(e,["checkpointId"],n);const r=h(t,["epoch"]);r!=null&&m(e,["epoch"],r);const i=h(t,["step"]);return i!=null&&m(e,["step"],i),e}function TJ(t){const e={},n=h(t,["citationSources"]);return n!=null&&m(e,["citations"],n),e}function SJ(t){const e={},n=h(t,["citations"]);return n!=null&&m(e,["citations"],n),e}function AJ(t,e){const n={},r=h(e,["model"]);r!=null&&m(n,["_url","model"],je(t,r));const i=h(e,["contents"]);if(i!=null){let o=Wn(i);Array.isArray(o)&&(o=o.map(s=>Zs(s))),m(n,["contents"],o)}return n}function wJ(t){const e={},n=h(t,["sdkHttpResponse"]);n!=null&&m(e,["sdkHttpResponse"],n);const r=h(t,["tokensInfo"]);return r!=null&&m(e,["tokensInfo"],r),e}function _J(t){const e={},n=h(t,["values"]);return n!=null&&m(e,["values"],n),e}function CJ(t){const e={},n=h(t,["values"]);n!=null&&m(e,["values"],n);const r=h(t,["statistics"]);return r!=null&&m(e,["statistics"],EJ(r)),e}function EJ(t){const e={},n=h(t,["truncated"]);n!=null&&m(e,["truncated"],n);const r=h(t,["token_count"]);return r!=null&&m(e,["tokenCount"],r),e}function MJ(t){const e={},n=h(t,["parts"]);if(n!=null){let i=n;Array.isArray(i)&&(i=i.map(o=>iQ(o))),m(e,["parts"],i)}const r=h(t,["role"]);return r!=null&&m(e,["role"],r),e}function PJ(t){const e={},n=h(t,["parts"]);if(n!=null){let i=n;Array.isArray(i)&&(i=i.map(o=>oQ(o))),m(e,["parts"],i)}const r=h(t,["role"]);return r!=null&&m(e,["role"],r),e}function tp(t){const e={},n=h(t,["parts"]);if(n!=null){let i=n;Array.isArray(i)&&(i=i.map(o=>aQ(o))),m(e,["parts"],i)}const r=h(t,["role"]);return r!=null&&m(e,["role"],r),e}function Zs(t){const e={},n=h(t,["parts"]);if(n!=null){let i=n;Array.isArray(i)&&(i=i.map(o=>sQ(o))),m(e,["parts"],i)}const r=h(t,["role"]);return r!=null&&m(e,["role"],r),e}function RJ(t){const e={},n=h(t,["controlType"]);n!=null&&m(e,["controlType"],n);const r=h(t,["enableControlImageComputation"]);return r!=null&&m(e,["computeControl"],r),e}function NJ(t){const e={};if(h(t,["systemInstruction"])!==void 0)throw new Error("systemInstruction parameter is not supported in Gemini API.");if(h(t,["tools"])!==void 0)throw new Error("tools parameter is not supported in Gemini API.");if(h(t,["generationConfig"])!==void 0)throw new Error("generationConfig parameter is not supported in Gemini API.");return e}function OJ(t,e){const n={},r=h(t,["systemInstruction"]);e!==void 0&&r!=null&&m(e,["systemInstruction"],Zs(rn(r)));const i=h(t,["tools"]);if(e!==void 0&&i!=null){let s=i;Array.isArray(s)&&(s=s.map(u=>PB(u))),m(e,["tools"],s)}const o=h(t,["generationConfig"]);return e!==void 0&&o!=null&&m(e,["generationConfig"],o),n}function DJ(t,e){const n={},r=h(e,["model"]);r!=null&&m(n,["_url","model"],je(t,r));const i=h(e,["contents"]);if(i!=null){let s=Wn(i);Array.isArray(s)&&(s=s.map(u=>tp(u))),m(n,["contents"],s)}const o=h(e,["config"]);return o!=null&&NJ(o),n}function IJ(t,e){const n={},r=h(e,["model"]);r!=null&&m(n,["_url","model"],je(t,r));const i=h(e,["contents"]);if(i!=null){let s=Wn(i);Array.isArray(s)&&(s=s.map(u=>Zs(u))),m(n,["contents"],s)}const o=h(e,["config"]);return o!=null&&OJ(o,n),n}function kJ(t){const e={},n=h(t,["sdkHttpResponse"]);n!=null&&m(e,["sdkHttpResponse"],n);const r=h(t,["totalTokens"]);r!=null&&m(e,["totalTokens"],r);const i=h(t,["cachedContentTokenCount"]);return i!=null&&m(e,["cachedContentTokenCount"],i),e}function LJ(t){const e={},n=h(t,["sdkHttpResponse"]);n!=null&&m(e,["sdkHttpResponse"],n);const r=h(t,["totalTokens"]);return r!=null&&m(e,["totalTokens"],r),e}function UJ(t,e){const n={},r=h(e,["model"]);return r!=null&&m(n,["_url","name"],je(t,r)),n}function qJ(t,e){const n={},r=h(e,["model"]);return r!=null&&m(n,["_url","name"],je(t,r)),n}function BJ(t){const e={},n=h(t,["sdkHttpResponse"]);return n!=null&&m(e,["sdkHttpResponse"],n),e}function $J(t){const e={},n=h(t,["sdkHttpResponse"]);return n!=null&&m(e,["sdkHttpResponse"],n),e}function VJ(t){const e={},n=h(t,["mode"]);n!=null&&m(e,["mode"],n);const r=h(t,["dynamicThreshold"]);return r!=null&&m(e,["dynamicThreshold"],r),e}function jJ(t){const e={},n=h(t,["mode"]);n!=null&&m(e,["mode"],n);const r=h(t,["dynamicThreshold"]);return r!=null&&m(e,["dynamicThreshold"],r),e}function FJ(t,e){const n={},r=h(t,["outputGcsUri"]);e!==void 0&&r!=null&&m(e,["parameters","storageUri"],r);const i=h(t,["negativePrompt"]);e!==void 0&&i!=null&&m(e,["parameters","negativePrompt"],i);const o=h(t,["numberOfImages"]);
233e!==void 0&&o!=null&&m(e,["parameters","sampleCount"],o);const s=h(t,["aspectRatio"]);e!==void 0&&s!=null&&m(e,["parameters","aspectRatio"],s);const u=h(t,["guidanceScale"]);e!==void 0&&u!=null&&m(e,["parameters","guidanceScale"],u);const c=h(t,["seed"]);e!==void 0&&c!=null&&m(e,["parameters","seed"],c);const f=h(t,["safetyFilterLevel"]);e!==void 0&&f!=null&&m(e,["parameters","safetySetting"],f);const p=h(t,["personGeneration"]);e!==void 0&&p!=null&&m(e,["parameters","personGeneration"],p);const y=h(t,["includeSafetyAttributes"]);e!==void 0&&y!=null&&m(e,["parameters","includeSafetyAttributes"],y);const v=h(t,["includeRaiReason"]);e!==void 0&&v!=null&&m(e,["parameters","includeRaiReason"],v);const x=h(t,["language"]);e!==void 0&&x!=null&&m(e,["parameters","language"],x);const w=h(t,["outputMimeType"]);e!==void 0&&w!=null&&m(e,["parameters","outputOptions","mimeType"],w);const A=h(t,["outputCompressionQuality"]);e!==void 0&&A!=null&&m(e,["parameters","outputOptions","compressionQuality"],A);const S=h(t,["addWatermark"]);e!==void 0&&S!=null&&m(e,["parameters","addWatermark"],S);const C=h(t,["editMode"]);e!==void 0&&C!=null&&m(e,["parameters","editMode"],C);const P=h(t,["baseSteps"]);return e!==void 0&&P!=null&&m(e,["parameters","editConfig","baseSteps"],P),n}function HJ(t,e){const n={},r=h(e,["model"]);r!=null&&m(n,["_url","model"],je(t,r));const i=h(e,["prompt"]);i!=null&&m(n,["instances[0]","prompt"],i);const o=h(e,["referenceImages"]);if(o!=null){let u=o;Array.isArray(u)&&(u=u.map(c=>mQ(c))),m(n,["instances[0]","referenceImages"],u)}const s=h(e,["config"]);return s!=null&&FJ(s,n),n}function GJ(t){const e={},n=h(t,["sdkHttpResponse"]);n!=null&&m(e,["sdkHttpResponse"],n);const r=h(t,["predictions"]);if(r!=null){let i=r;Array.isArray(i)&&(i=i.map(o=>np(o))),m(e,["generatedImages"],i)}return e}function zJ(t,e){const n={},r=h(t,["taskType"]);e!==void 0&&r!=null&&m(e,["requests[]","taskType"],r);const i=h(t,["title"]);e!==void 0&&i!=null&&m(e,["requests[]","title"],i);const o=h(t,["outputDimensionality"]);if(e!==void 0&&o!=null&&m(e,["requests[]","outputDimensionality"],o),h(t,["mimeType"])!==void 0)throw new Error("mimeType parameter is not supported in Gemini API.");if(h(t,["autoTruncate"])!==void 0)throw new Error("autoTruncate parameter is not supported in Gemini API.");return n}function KJ(t,e){const n={},r=h(t,["taskType"]);e!==void 0&&r!=null&&m(e,["instances[]","task_type"],r);const i=h(t,["title"]);e!==void 0&&i!=null&&m(e,["instances[]","title"],i);const o=h(t,["outputDimensionality"]);e!==void 0&&o!=null&&m(e,["parameters","outputDimensionality"],o);const s=h(t,["mimeType"]);e!==void 0&&s!=null&&m(e,["instances[]","mimeType"],s);const u=h(t,["autoTruncate"]);return e!==void 0&&u!=null&&m(e,["parameters","autoTruncate"],u),n}function YJ(){return{}}function WJ(t){const e={},n=h(t,["billableCharacterCount"]);return n!=null&&m(e,["billableCharacterCount"],n),e}function XJ(t,e){const n={},r=h(e,["model"]);r!=null&&m(n,["_url","model"],je(t,r));const i=h(e,["contents"]);i!=null&&m(n,["requests[]","content"],DA(t,i));const o=h(e,["config"]);o!=null&&zJ(o,n);const s=h(e,["model"]);return s!==void 0&&m(n,["requests[]","model"],je(t,s)),n}function JJ(t,e){const n={},r=h(e,["model"]);r!=null&&m(n,["_url","model"],je(t,r));const i=h(e,["contents"]);i!=null&&m(n,["instances[]","content"],DA(t,i));const o=h(e,["config"]);return o!=null&&KJ(o,n),n}function ZJ(t){const e={},n=h(t,["sdkHttpResponse"]);n!=null&&m(e,["sdkHttpResponse"],n);const r=h(t,["embeddings"]);if(r!=null){let o=r;Array.isArray(o)&&(o=o.map(s=>_J(s))),m(e,["embeddings"],o)}return h(t,["metadata"])!=null&&m(e,["metadata"],YJ()),e}function QJ(t){const e={},n=h(t,["sdkHttpResponse"]);n!=null&&m(e,["sdkHttpResponse"],n);const r=h(t,["predictions[]","embeddings"]);if(r!=null){let o=r;Array.isArray(o)&&(o=o.map(s=>CJ(s))),m(e,["embeddings"],o)}const i=h(t,["metadata"]);return i!=null&&m(e,["metadata"],WJ(i)),e}function eZ(t){const e={},n=h(t,["endpoint"]);n!=null&&m(e,["name"],n);const r=h(t,["deployedModelId"]);return r!=null&&m(e,["deployedModelId"],r),e}function tZ(t){const e={},n=h(t,["excludeDomains"]);return n!=null&&m(e,["excludeDomains"],n),e}function nZ(t){const e={},n=h(t,["label"]);n!=null&&m(e,["label"],n);const r=h(t,["score"]);return r!=null&&m(e,["score"],r),e}function rZ(t){const e={},n=h(t,["fileUri"]);n!=null&&m(e,["fileUri"],n);const r=h(t,["mimeType"]);return r!=null&&m(e,["mimeType"],r),e}function iZ(t){const e={},n=h(t,["displayName"]);n!=null&&m(e,["displayName"],n);const r=h(t,["fileUri"]);r!=null&&m(e,["fileUri"],r);const i=h(t,["mimeType"]);return i!=null&&m(e,["mimeType"],i),e}function oZ(t){const e={};if(h(t,["displayName"])!==void 0)throw new Error("displayName parameter is not supported in Gemini API.");const n=h(t,["fileUri"]);n!=null&&m(e,["fileUri"],n);const r=h(t,["mimeType"]);return r!=null&&m(e,["mimeType"],r),e}function aZ(t){const e={},n=h(t,["displayName"]);n!=null&&m(e,["displayName"],n);const r=h(t,["fileUri"]);r!=null&&m(e,["fileUri"],r);const i=h(t,["mimeType"]);return i!=null&&m(e,["mimeType"],i),e}function sZ(t){const e={},n=h(t,["id"]);n!=null&&m(e,["id"],n);const r=h(t,["args"]);r!=null&&m(e,["args"],r);const i=h(t,["name"]);return i!=null&&m(e,["name"],i),e}function lZ(t){const e={},n=h(t,["id"]);n!=null&&m(e,["id"],n);const r=h(t,["args"]);r!=null&&m(e,["args"],r);const i=h(t,["name"]);return i!=null&&m(e,["name"],i),e}function uZ(t){const e={},n=h(t,["id"]);n!=null&&m(e,["id"],n);const r=h(t,["args"]);r!=null&&m(e,["args"],r);const i=h(t,["name"]);return i!=null&&m(e,["name"],i),e}function cZ(t){const e={},n=h(t,["id"]);n!=null&&m(e,["id"],n);const r=h(t,["args"]);r!=null&&m(e,["args"],r);const i=h(t,["name"]);return i!=null&&m(e,["name"],i),e}function fZ(t){const e={},n=h(t,["mode"]);n!=null&&m(e,["mode"],n);const r=h(t,["allowedFunctionNames"]);return r!=null&&m(e,["allowedFunctionNames"],r),e}function dZ(t){const e={},n=h(t,["mode"]);n!=null&&m(e,["mode"],n);const r=h(t,["allowedFunctionNames"]);return r!=null&&m(e,["allowedFunctionNames"],r),e}function hZ(t){const e={},n=h(t,["behavior"]);n!=null&&m(e,["behavior"],n);const r=h(t,["description"]);r!=null&&m(e,["description"],r);const i=h(t,["name"]);i!=null&&m(e,["name"],i);const o=h(t,["parameters"]);o!=null&&m(e,["parameters"],o);const s=h(t,["parametersJsonSchema"]);s!=null&&m(e,["parametersJsonSchema"],s);const u=h(t,["response"]);u!=null&&m(e,["response"],u);const c=h(t,["responseJsonSchema"]);return c!=null&&m(e,["responseJsonSchema"],c),e}function pZ(t){const e={};if(h(t,["behavior"])!==void 0)throw new Error("behavior parameter is not supported in Vertex AI.");const n=h(t,["description"]);n!=null&&m(e,["description"],n);const r=h(t,["name"]);r!=null&&m(e,["name"],r);const i=h(t,["parameters"]);i!=null&&m(e,["parameters"],i);const o=h(t,["parametersJsonSchema"]);o!=null&&m(e,["parametersJsonSchema"],o);const s=h(t,["response"]);s!=null&&m(e,["response"],s);const u=h(t,["responseJsonSchema"]);return u!=null&&m(e,["responseJsonSchema"],u),e}function mZ(t,e,n){const r={},i=h(e,["systemInstruction"]);n!==void 0&&i!=null&&m(n,["systemInstruction"],tp(rn(i)));const o=h(e,["temperature"]);o!=null&&m(r,["temperature"],o);const s=h(e,["topP"]);s!=null&&m(r,["topP"],s);const u=h(e,["topK"]);u!=null&&m(r,["topK"],u);const c=h(e,["candidateCount"]);c!=null&&m(r,["candidateCount"],c);const f=h(e,["maxOutputTokens"]);f!=null&&m(r,["maxOutputTokens"],f);const p=h(e,["stopSequences"]);p!=null&&m(r,["stopSequences"],p);const y=h(e,["responseLogprobs"]);y!=null&&m(r,["responseLogprobs"],y);const v=h(e,["logprobs"]);v!=null&&m(r,["logprobs"],v);const x=h(e,["presencePenalty"]);x!=null&&m(r,["presencePenalty"],x);const w=h(e,["frequencyPenalty"]);w!=null&&m(r,["frequencyPenalty"],w);const A=h(e,["seed"]);A!=null&&m(r,["seed"],A);const S=h(e,["responseMimeType"]);S!=null&&m(r,["responseMimeType"],S);const C=h(e,["responseSchema"]);C!=null&&m(r,["responseSchema"],xQ(IA(C)));const P=h(e,["responseJsonSchema"]);if(P!=null&&m(r,["responseJsonSchema"],P),h(e,["routingConfig"])!==void 0)throw new Error("routingConfig parameter is not supported in Gemini API.");if(h(e,["modelSelectionConfig"])!==void 0)throw new Error("modelSelectionConfig parameter is not supported in Gemini API.");const M=h(e,["safetySettings"]);if(n!==void 0&&M!=null){let B=M;Array.isArray(B)&&(B=B.map(z=>vQ(z))),m(n,["safetySettings"],B)}const O=h(e,["tools"]);if(n!==void 0&&O!=null){let B=Xs(O);Array.isArray(B)&&(B=B.map(z=>qQ(Ws(z)))),m(n,["tools"],B)}const E=h(e,["toolConfig"]);if(n!==void 0&&E!=null&&m(n,["toolConfig"],LQ(E)),h(e,["labels"])!==void 0)throw new Error("labels parameter is not supported in Gemini API.");const N=h(e,["cachedContent"]);n!==void 0&&N!=null&&m(n,["cachedContent"],di(t,N));const D=h(e,["responseModalities"]);D!=null&&m(r,["responseModalities"],D);const L=h(e,["mediaResolution"]);L!=null&&m(r,["mediaResolution"],L);const U=h(e,["speechConfig"]);if(U!=null&&m(r,["speechConfig"],MQ(kA(U))),h(e,["audioTimestamp"])!==void 0)throw new Error("audioTimestamp parameter is not supported in Gemini API.");const F=h(e,["thinkingConfig"]);return F!=null&&m(r,["thinkingConfig"],OQ(F)),r}function gZ(t,e,n){const r={},i=h(e,["systemInstruction"]);n!==void 0&&i!=null&&m(n,["systemInstruction"],Zs(rn(i)));const o=h(e,["temperature"]);o!=null&&m(r,["temperature"],o);const s=h(e,["topP"]);s!=null&&m(r,["topP"],s);const u=h(e,["topK"]);u!=null&&m(r,["topK"],u);const c=h(e,["candidateCount"]);c!=null&&m(r,["candidateCount"],c);const f=h(e,["maxOutputTokens"]);f!=null&&m(r,["maxOutputTokens"],f);const p=h(e,["stopSequences"]);p!=null&&m(r,["stopSequences"],p);const y=h(e,["responseLogprobs"]);y!=null&&m(r,["responseLogprobs"],y);const v=h(e,["logprobs"]);v!=null&&m(r,["logprobs"],v);const x=h(e,["presencePenalty"]);x!=null&&m(r,["presencePenalty"],x);const w=h(e,["frequencyPenalty"]);w!=null&&m(r,["frequencyPenalty"],w);const A=h(e,["seed"]);A!=null&&m(r,["seed"],A);const S=h(e,["responseMimeType"]);S!=null&&m(r,["responseMimeType"],S);const C=h(e,["responseSchema"]);C!=null&&m(r,["responseSchema"],TQ(IA(C)));const P=h(e,["responseJsonSchema"]);P!=null&&m(r,["responseJsonSchema"],P);const M=h(e,["routingConfig"]);M!=null&&m(r,["routingConfig"],M);const O=h(e,["modelSelectionConfig"]);O!=null&&m(r,["modelConfig"],nQ(O));const E=h(e,["safetySettings"]);if(n!==void 0&&E!=null){let J=E;Array.isArray(J)&&(J=J.map($=>bQ($))),m(n,["safetySettings"],J)}const N=h(e,["tools"]);if(n!==void 0&&N!=null){let J=Xs(N);Array.isArray(J)&&(J=J.map($=>PB(Ws($)))),m(n,["tools"],J)}const D=h(e,["toolConfig"]);n!==void 0&&D!=null&&m(n,["toolConfig"],UQ(D));const L=h(e,["labels"]);n!==void 0&&L!=null&&m(n,["labels"],L);const U=h(e,["cachedContent"]);n!==void 0&&U!=null&&m(n,["cachedContent"],di(t,U));const F=h(e,["responseModalities"]);F!=null&&m(r,["responseModalities"],F);const B=h(e,["mediaResolution"]);B!=null&&m(r,["mediaResolution"],B);const z=h(e,["speechConfig"]);z!=null&&m(r,["speechConfig"],PQ(kA(z)));const W=h(e,["audioTimestamp"]);W!=null&&m(r,["audioTimestamp"],W);const ne=h(e,["thinkingConfig"]);return ne!=null&&m(r,["thinkingConfig"],DQ(ne)),r}function DR(t,e){const n={},r=h(e,["model"]);r!=null&&m(n,["_url","model"],je(t,r));const i=h(e,["contents"]);if(i!=null){let s=Wn(i);Array.isArray(s)&&(s=s.map(u=>tp(u))),m(n,["contents"],s)}const o=h(e,["config"]);return o!=null&&m(n,["generationConfig"],mZ(t,o,n)),n}function IR(t,e){const n={},r=h(e,["model"]);r!=null&&m(n,["_url","model"],je(t,r));const i=h(e,["contents"]);if(i!=null){let s=Wn(i);Array.isArray(s)&&(s=s.map(u=>Zs(u))),m(n,["contents"],s)}const o=h(e,["config"]);return o!=null&&m(n,["generationConfig"],gZ(t,o,n)),n}function kR(t){const e={},n=h(t,["sdkHttpResponse"]);n!=null&&m(e,["sdkHttpResponse"],n);const r=h(t,["candidates"]);if(r!=null){let c=r;Array.isArray(c)&&(c=c.map(f=>vJ(f))),m(e,["candidates"],c)}const i=h(t,["modelVersion"]);i!=null&&m(e,["modelVersion"],i);const o=h(t,["promptFeedback"]);o!=null&&m(e,["promptFeedback"],o);const s=h(t,["responseId"]);s!=null&&m(e,["responseId"],s);const u=h(t,["usageMetadata"]);return u!=null&&m(e,["usageMetadata"],u),e}function LR(t){const e={},n=h(t,["sdkHttpResponse"]);n!=null&&m(e,["sdkHttpResponse"],n);const r=h(t,["candidates"]);if(r!=null){let f=r;Array.isArray(f)&&(f=f.map(p=>bJ(p))),m(e,["candidates"],f)}const i=h(t,["createTime"]);i!=null&&m(e,["createTime"],i);const o=h(t,["modelVersion"]);o!=null&&m(e,["modelVersion"],o);const s=h(t,["promptFeedback"]);s!=null&&m(e,["promptFeedback"],s);const u=h(t,["responseId"]);u!=null&&m(e,["responseId"],u);const c=h(t,["usageMetadata"]);return c!=null&&m(e,["usageMetadata"],c),e}function yZ(t,e){const n={};if(h(t,["outputGcsUri"])!==void 0)throw new Error("outputGcsUri parameter is not supported in Gemini API.");if(h(t,["negativePrompt"])!==void 0)throw new Error("negativePrompt parameter is not supported in Gemini API.");const r=h(t,["numberOfImages"]);
233e!==void 0&&r!=null&&m(e,["parameters","sampleCount"],r);const i=h(t,["aspectRatio"]);e!==void 0&&i!=null&&m(e,["parameters","aspectRatio"],i);const o=h(t,["guidanceScale"]);if(e!==void 0&&o!=null&&m(e,["parameters","guidanceScale"],o),h(t,["seed"])!==void 0)throw new Error("seed parameter is not supported in Gemini API.");const s=h(t,["safetyFilterLevel"]);e!==void 0&&s!=null&&m(e,["parameters","safetySetting"],s);const u=h(t,["personGeneration"]);e!==void 0&&u!=null&&m(e,["parameters","personGeneration"],u);const c=h(t,["includeSafetyAttributes"]);e!==void 0&&c!=null&&m(e,["parameters","includeSafetyAttributes"],c);const f=h(t,["includeRaiReason"]);e!==void 0&&f!=null&&m(e,["parameters","includeRaiReason"],f);const p=h(t,["language"]);e!==void 0&&p!=null&&m(e,["parameters","language"],p);const y=h(t,["outputMimeType"]);e!==void 0&&y!=null&&m(e,["parameters","outputOptions","mimeType"],y);const v=h(t,["outputCompressionQuality"]);if(e!==void 0&&v!=null&&m(e,["parameters","outputOptions","compressionQuality"],v),h(t,["addWatermark"])!==void 0)throw new Error("addWatermark parameter is not supported in Gemini API.");const x=h(t,["imageSize"]);if(e!==void 0&&x!=null&&m(e,["parameters","sampleImageSize"],x),h(t,["enhancePrompt"])!==void 0)throw new Error("enhancePrompt parameter is not supported in Gemini API.");return n}function vZ(t,e){const n={},r=h(t,["outputGcsUri"]);e!==void 0&&r!=null&&m(e,["parameters","storageUri"],r);const i=h(t,["negativePrompt"]);e!==void 0&&i!=null&&m(e,["parameters","negativePrompt"],i);const o=h(t,["numberOfImages"]);e!==void 0&&o!=null&&m(e,["parameters","sampleCount"],o);const s=h(t,["aspectRatio"]);e!==void 0&&s!=null&&m(e,["parameters","aspectRatio"],s);const u=h(t,["guidanceScale"]);e!==void 0&&u!=null&&m(e,["parameters","guidanceScale"],u);const c=h(t,["seed"]);e!==void 0&&c!=null&&m(e,["parameters","seed"],c);const f=h(t,["safetyFilterLevel"]);e!==void 0&&f!=null&&m(e,["parameters","safetySetting"],f);const p=h(t,["personGeneration"]);e!==void 0&&p!=null&&m(e,["parameters","personGeneration"],p);const y=h(t,["includeSafetyAttributes"]);e!==void 0&&y!=null&&m(e,["parameters","includeSafetyAttributes"],y);const v=h(t,["includeRaiReason"]);e!==void 0&&v!=null&&m(e,["parameters","includeRaiReason"],v);const x=h(t,["language"]);e!==void 0&&x!=null&&m(e,["parameters","language"],x);const w=h(t,["outputMimeType"]);e!==void 0&&w!=null&&m(e,["parameters","outputOptions","mimeType"],w);const A=h(t,["outputCompressionQuality"]);e!==void 0&&A!=null&&m(e,["parameters","outputOptions","compressionQuality"],A);const S=h(t,["addWatermark"]);e!==void 0&&S!=null&&m(e,["parameters","addWatermark"],S);const C=h(t,["imageSize"]);e!==void 0&&C!=null&&m(e,["parameters","sampleImageSize"],C);const P=h(t,["enhancePrompt"]);return e!==void 0&&P!=null&&m(e,["parameters","enhancePrompt"],P),n}function bZ(t,e){const n={},r=h(e,["model"]);r!=null&&m(n,["_url","model"],je(t,r));const i=h(e,["prompt"]);i!=null&&m(n,["instances[0]","prompt"],i);const o=h(e,["config"]);return o!=null&&yZ(o,n),n}function xZ(t,e){const n={},r=h(e,["model"]);r!=null&&m(n,["_url","model"],je(t,r));const i=h(e,["prompt"]);i!=null&&m(n,["instances[0]","prompt"],i);const o=h(e,["config"]);return o!=null&&vZ(o,n),n}function TZ(t){const e={},n=h(t,["sdkHttpResponse"]);n!=null&&m(e,["sdkHttpResponse"],n);const r=h(t,["predictions"]);if(r!=null){let o=r;Array.isArray(o)&&(o=o.map(s=>DZ(s))),m(e,["generatedImages"],o)}const i=h(t,["positivePromptSafetyAttributes"]);return i!=null&&m(e,["positivePromptSafetyAttributes"],EB(i)),e}function SZ(t){const e={},n=h(t,["sdkHttpResponse"]);n!=null&&m(e,["sdkHttpResponse"],n);const r=h(t,["predictions"]);if(r!=null){let o=r;Array.isArray(o)&&(o=o.map(s=>np(s))),m(e,["generatedImages"],o)}const i=h(t,["positivePromptSafetyAttributes"]);return i!=null&&m(e,["positivePromptSafetyAttributes"],MB(i)),e}function AZ(t,e){const n={},r=h(t,["numberOfVideos"]);if(e!==void 0&&r!=null&&m(e,["parameters","sampleCount"],r),h(t,["outputGcsUri"])!==void 0)throw new Error("outputGcsUri parameter is not supported in Gemini API.");if(h(t,["fps"])!==void 0)throw new Error("fps parameter is not supported in Gemini API.");const i=h(t,["durationSeconds"]);if(e!==void 0&&i!=null&&m(e,["parameters","durationSeconds"],i),h(t,["seed"])!==void 0)throw new Error("seed parameter is not supported in Gemini API.");const o=h(t,["aspectRatio"]);e!==void 0&&o!=null&&m(e,["parameters","aspectRatio"],o);const s=h(t,["resolution"]);e!==void 0&&s!=null&&m(e,["parameters","resolution"],s);const u=h(t,["personGeneration"]);if(e!==void 0&&u!=null&&m(e,["parameters","personGeneration"],u),h(t,["pub
233subTopic"])!==void 0)throw new Error("pubsubTopic parameter is not supported in Gemini API.");const c=h(t,["negativePrompt"]);e!==void 0&&c!=null&&m(e,["parameters","negativePrompt"],c);const f=h(t,["enhancePrompt"]);if(e!==void 0&&f!=null&&m(e,["parameters","enhancePrompt"],f),h(t,["generateAudio"])!==void 0)throw new Error("generateAudio parameter is not supported in Gemini API.");if(h(t,["lastFrame"])!==void 0)throw new Error("lastFrame parameter is not supported in Gemini API.");if(h(t,["referenceImages"])!==void 0)throw new Error("referenceImages parameter is not supported in Gemini API.");if(h(t,["mask"])!==void 0)throw new Error("mask parameter is not supported in Gemini API.");if(h(t,["compressionQuality"])!==void 0)throw new Error("compressionQuality parameter is not supported in Gemini API.");return n}function wZ(t,e){const n={},r=h(t,["numberOfVideos"]);e!==void 0&&r!=null&&m(e,["parameters","sampleCount"],r);const i=h(t,["outputGcsUri"]);e!==void 0&&i!=null&&m(e,["parameters","storageUri"],i);const o=h(t,["fps"]);e!==void 0&&o!=null&&m(e,["parameters","fps"],o);const s=h(t,["durationSeconds"]);e!==void 0&&s!=null&&m(e,["parameters","durationSeconds"],s);const u=h(t,["seed"]);e!==void 0&&u!=null&&m(e,["parameters","seed"],u);const c=h(t,["aspectRatio"]);e!==void 0&&c!=null&&m(e,["parameters","aspectRatio"],c);const f=h(t,["resolution"]);e!==void 0&&f!=null&&m(e,["parameters","resolution"],f);const p=h(t,["personGeneration"]);e!==void 0&&p!=null&&m(e,["parameters","personGeneration"],p);
233const y=h(t,["pubsubTopic"]);e!==void 0&&y!=null&&m(e,["parameters","pubsubTopic"],y);const v=h(t,["negativePrompt"]);e!==void 0&&v!=null&&m(e,["parameters","negativePrompt"],v);const x=h(t,["enhancePrompt"]);e!==void 0&&x!=null&&m(e,["parameters","enhancePrompt"],x);const w=h(t,["generateAudio"]);e!==void 0&&w!=null&&m(e,["parameters","generateAudio"],w);const A=h(t,["lastFrame"]);e!==void 0&&A!=null&&m(e,["instances[0]","lastFrame"],hr(A));const S=h(t,["referenceImages"]);if(e!==void 0&&S!=null){let M=S;Array.isArray(M)&&(M=M.map(O=>ree(O))),m(e,["instances[0]","referenceImages"],M)}const C=h(t,["mask"]);e!==void 0&&C!=null&&m(e,["instances[0]","mask"],nee(C));const P=h(t,["compressionQuality"]);return e!==void 0&&P!=null&&m(e,["parameters","compressionQuality"],P),n}function _Z(t){const e={},n=h(t,["name"]);n!=null&&m(e,["name"],n);const r=h(t,["metadata"]);r!=null&&m(e,["metadata"],r);const i=h(t,["done"]);i!=null&&m(e,["done"],i);const o=h(t,["error"]);o!=null&&m(e,["error"],o);const s=h(t,["response","generateVideoResponse"]);return s!=null&&m(e,["response"],PZ(s)),e}function CZ(t){const e={},n=h(t,["name"]);n!=null&&m(e,["name"],n);const r=h(t,["metadata"]);r!=null&&m(e,["metadata"],r);const i=h(t,["done"]);i!=null&&m(e,["done"],i);const o=h(t,["error"]);o!=null&&m(e,["error"],o);const s=h(t,["response"]);return s!=null&&m(e,["response"],RZ(s)),e}function EZ(t,e){const n={},r=h(e,["model"]);r!=null&&m(n,["_url","model"],je(t,r));const i=h(e,["prompt"]);i!=null&&m(n,["instances[0]","prompt"],i);const o=h(e,["image"]);if(o!=null&&m(n,["instances[0]","image"],CB(o)),h(e,["video"])!==void 0)throw new Error("video parameter is not supported in Gemini API.");const s=h(e,["source"]);s!=null&&NZ(s,n);const u=h(e,["config"]);return u!=null&&AZ(u,n),n}function MZ(t,e){const n={},r=h(e,["model"]);r!=null&&m(n,["_url","model"],je(t,r));const i=h(e,["prompt"]);i!=null&&m(n,["instances[0]","prompt"],i);const o=h(e,["image"]);o!=null&&m(n,["instances[0]","image"],hr(o));const s=h(e,["video"]);s!=null&&m(n,["instances[0]","video"],RB(s));const u=h(e,["source"]);u!=null&&OZ(u,n);const c=h(e,["config"]);return c!=null&&wZ(c,n),n}function PZ(t){const e={},n=h(t,["generatedSamples"]);if(n!=null){let o=n;Array.isArray(o)&&(o=o.map(s=>kZ(s))),m(e,["generatedVideos"],o)}const r=h(t,["raiMediaFilteredCount"]);r!=null&&m(e,["raiMediaFilteredCount"],r);const i=h(t,["raiMediaFilteredReasons"]);return i!=null&&m(e,["raiMediaFilteredReasons"],i),e}function RZ(t){const e={},n=h(t,["videos"]);if(n!=null){let o=n;Array.isArray(o)&&(o=o.map(s=>LZ(s))),m(e,["generatedVideos"],o)}const r=h(t,["raiMediaFilteredCount"]);r!=null&&m(e,["raiMediaFilteredCount"],r);const i=h(t,["raiMediaFilteredReasons"]);return i!=null&&m(e,["raiMediaFilteredReasons"],i),e}function NZ(t,e){const n={},r=h(t,["prompt"]);e!==void 0&&r!=null&&m(e,["instances[0]","prompt"],r);const i=h(t,["image"]);if(e!==void 0&&i!=null&&m(e,["instances[0]","image"],CB(i)),h(t,["video"])!==void 0)throw new Error("video parameter is not supported in Gemini API.");return n}function OZ(t,e){const n={},r=h(t,["prompt"]);e!==void 0&&r!=null&&m(e,["instances[0]","prompt"],r);const i=h(t,["image"]);e!==void 0&&i!=null&&m(e,["instances[0]","image"],hr(i));const o=h(t,["video"]);return e!==void 0&&o!=null&&m(e,["instances[0]","video"],RB(o)),n}function DZ(t){const e={},n=h(t,["_self"]);n!=null&&m(e,["image"],HZ(n));const r=h(t,["raiFilteredReason"]);r!=null&&m(e,["raiFilteredReason"],r);const i=h(t,["_self"]);return i!=null&&m(e,["safetyAttributes"],EB(i)),e}function np(t){const e={},n=h(t,["_self"]);n!=null&&m(e,["image"],_B(n));const r=h(t,["raiFilteredReason"]);r!=null&&m(e,["raiFilteredReason"],r);const i=h(t,["_self"]);i!=null&&m(e,["safetyAttributes"],MB(i));const o=h(t,["prompt"]);return o!=null&&m(e,["enhancedPrompt"],o),e}function IZ(t){const e={},n=h(t,["_self"]);n!=null&&m(e,["mask"],_B(n));const r=h(t,["labels"]);if(r!=null){let i=r;Array.isArray(i)&&(i=i.map(o=>nZ(o))),m(e,["labels"],i)}return e}function kZ(t){const e={},n=h(t,["_self"]);return n!=null&&m(e,["video"],eee(n)),e}function LZ(t){const e={},n=h(t,["_self"]);return n!=null&&m(e,["video"],tee(n)),e}function UZ(t,e){const n={},r=h(e,["model"]);return r!=null&&m(n,["_url","name"],je(t,r)),n}function qZ(t,e){const n={},r=h(e,["model"]);return r!=null&&m(n,["_url","name"],je(t,r)),n}function BZ(t){const e={},n=h(t,["authConfig"]);return n!=null&&m(e,["authConfig"],hJ(n)),e}function $Z(t){const e={},n=h(t,["dynamicRetrievalConfig"]);return n!=null&&m(e,["dynamicRetrievalConfig"],VJ(n)),e}function VZ(t){const e={},n=h(t,["dynamicRetrievalConfig"]);return n!=null&&m(e,["dynamicRetrievalConfig"],jJ(n)),e}function jZ(t){const e={},n=h(t,["timeRangeFilter"]);if(n!=null&&m(e,["timeRangeFilter"],GZ(n)),h(t,["excludeDomains"])!==void 0)throw new Error("excludeDomains parameter is not supported in Gemini API.");return e}function FZ(t){const e={},n=h(t,["timeRangeFilter"]);n!=null&&m(e,["timeRangeFilter"],zZ(n));const r=h(t,["excludeDomains"]);return r!=null&&m(e,["excludeDomains"],r),e}function HZ(t){const e={}
233,n=h(t,["bytesBase64Encoded"]);n!=null&&m(e,["imageBytes"],Qo(n));const r=h(t,["mimeType"]);return r!=null&&m(e,["mimeType"],r),e}function _B(t){const e={},n=h(t,["gcsUri"]);n!=null&&m(e,["gcsUri"],n);const r=h(t,["bytesBase64Encoded"]);r!=null&&m(e,["imageBytes"],Qo(r));const i=h(t,["mimeType"]);return i!=null&&m(e,["mimeType"],i),e}function CB(t){const e={};if(h(t,["gcsUri"])!==void 0)throw new Error("gcsUri parameter is not supported in Gemini API.");const n=h(t,["imageBytes"]);n!=null&&m(e,["bytesBase64Encoded"],Qo(n));const r=h(t,["mimeType"]);return r!=null&&m(e,["mimeType"],r),e}function hr(t){const e={},n=h(t,["gcsUri"]);n!=null&&m(e,["gcsUri"],n);const r=h(t,["imageBytes"]);r!=null&&m(e,["bytesBase64Encoded"],Qo(r));const i=h(t,["mimeType"]);return i!=null&&m(e,["mimeType"],i),e}function GZ(t){const e={},n=h(t,["startTime"]);n!=null&&m(e,["startTime"],n);const r=h(t,["endTime"]);return r!=null&&m(e,["endTime"],r),e}function zZ(t){const e={},n=h(t,["startTime"]);n!=null&&m(e,["startTime"],n);const r=h(t,["endTime"]);return r!=null&&m(e,["endTime"],r),e}function KZ(t){const e={},n=h(t,["latitude"]);n!=null&&m(e,["latitude"],n);const r=h(t,["longitude"]);return r!=null&&m(e,["longitude"],r),e}function YZ(t){const e={},n=h(t,["latitude"]);n!=null&&m(e,["latitude"],n);const r=h(t,["longitude"]);return r!=null&&m(e,["longitude"],r),e}function WZ(t,e,n){const r={},i=h(e,["pageSize"]);n!==void 0&&i!=null&&m(n,["_query","pageSize"],i);const o=h(e,["pageToken"]);n!==void 0&&o!=null&&m(n,["_query","pageToken"],o);const s=h(e,["filter"]);n!==void 0&&s!=null&&m(n,["_query","filter"],s);const u=h(e,["queryBase"]);return n!==void 0&&u!=null&&m(n,["_url","models_url"],uB(t,u)),r}function XZ(t,e,n){const r={},i=h(e,["pageSize"]);n!==void 0&&i!=null&&m(n,["_query","pageSize"],i);const o=h(e,["pageToken"]);n!==void 0&&o!=null&&m(n,["_query","pageToken"],o);const s=h(e,["filter"]);n!==void 0&&s!=null&&m(n,["_query","filter"],s);const u=h(e,["queryBase"]);return n!==void 0&&u!=null&&m(n,["_url","models_url"],uB(t,u)),r}function JZ(t,e){const n={},r=h(e,["config"]);return r!=null&&WZ(t,r,n),n}function ZZ(t,e){const n={},r=h(e,["config"]);return r!=null&&XZ(t,r,n),n}function QZ(t){const e={},n=h(t,["sdkHttpResponse"]);n!=null&&m(e,["sdkHttpResponse"],n);const r=h(t,["nextPageToken"]);r!=null&&m(e,["nextPageToken"],r);const i=h(t,["_self"]);if(i!=null){let o=cB(i);Array.isArray(o)&&(o=o.map(s=>xT(s))),m(e,["models"],o)}return e}function eQ(t){const e={},n=h(t,["sdkHttpResponse"]);n!=null&&m(e,["sdkHttpResponse"],n);const r=h(t,["nextPageToken"]);r!=null&&m(e,["nextPageToken"],r);const i=h(t,["_self"]);if(i!=null){let o=cB(i);Array.isArray(o)&&(o=o.map(s=>TT(s))),m(e,["models"],o)}return e}function tQ(t){const e={},n=h(t,["maskMode"]);n!=null&&m(e,["maskMode"],n);const r=h(t,["segmentationClasses"]);r!=null&&m(e,["maskClasses"],r);const i=h(t,["maskDilation"]);return i!=null&&m(e,["dilation"],i),e}function xT(t){const e={},n=h(t,["name"]);n!=null&&m(e,["name"],n);const r=h(t,["displayName"]);r!=null&&m(e,["displayName"],r);const i=h(t,["description"]);i!=null&&m(e,["description"],i);const o=h(t,["version"]);o!=null&&m(e,["version"],o);const s=h(t,["_self"]);s!=null&&m(e,["tunedModelInfo"],BQ(s));const u=h(t,["inputTokenLimit"]);u!=null&&m(e,["inputTokenLimit"],u);const c=h(t,["outputTokenLimit"]);c!=null&&m(e,["outputTokenLimit"],c);const f=h(t,["supportedGenerationMethods"]);return f!=null&&m(e,["supportedActions"],f),e}function TT(t){const e={},n=h(t,["name"]);n!=null&&m(e,["name"],n);const r=h(t,["displayName"]);r!=null&&m(e,["displayName"],r);const i=h(t,["description"]);i!=null&&m(e,["description"],i);const o=h(t,["versionId"]);o!=null&&m(e,["version"],o);const s=h(t,["deployedModels"]);if(s!=null){let y=s;Array.isArray(y)&&(y=y.map(v=>eZ(v))),m(e,["endpoints"],y)}const u=h(t,["labels"]);u!=null&&m(e,["labels"],u);const c=h(t,["_self"]);c!=null&&m(e,["tunedModelInfo"],$Q(c));const f=h(t,["defaultCheckpointId"]);f!=null&&m(e,["defaultCheckpointId"],f);const p=h(t,["checkpoints"]);if(p!=null){let y=p;Array.isArray(y)&&(y=y.map(v=>xJ(v))),m(e,["checkpoints"],y)}return e}function nQ(t){const e={},n=h(t,["featureSelectionPreference"]);return n!=null&&m(e,["featureSelectionPreference"],n),e}function rQ(t){const e={},n=h(t,["speakerVoiceConfigs"]);if(n!=null){let r=n;Array.isArray(r)&&(r=r.map(i=>EQ(i))),m(e,["speakerVoiceConfigs"],r)}return e}function iQ(t){const e={},n=h(t,["videoMetadata"]);n!=null&&m(e,["videoMetadata"],iee(n));const r=h(t,["thought"]);r!=null&&m(e,["thought"],r);const i=h(t,["inlineData"]);i!=null&&m(e,["inlineData"],pJ(i));const o=h(t,["fileData"]);o!=null&&m(e,["fileData"],rZ(o));const s=h(t,["thoughtSignature"]);s!=null&&m(e,["thoughtSignature"],s);const u=h(t,["functionCall"]);u!=null&&m(e,["functionCall"],sZ(u));const c=h(t,["codeExecutionResult"]);c!=null&&m(e,["codeExecutionResult"],c);const f=h(t,["executableCode"]);f!=null&&m(e,["executableCode"],f);const p=h(t,["functionResponse"]);p!=null&&m(e,["functionResponse"],p);const y=h(t,["text"]);return y!=null&&m(e,["text"],y),e}function oQ(t){const e={},n=h(t,["videoMetadata"]);n!=null&&m(e,["videoMetadata"],oee(n));const r=h(t,["thought"]);r!=null&&m(e,["thought"],r);const i=h(t,["inlineData"]);i!=null&&m(e,["inlineData"],mJ(i));const o=h(t,["fileData"]);o!=null&&m(e,["fileData"],iZ(o));const s=h(t,["thoughtSignature"]);s!=null&&m(e,["thoughtSignature"],s);const u=h(t,["functionCall"]);u!=null&&m(e,["functionCall"],lZ(u));const c=h(t,["codeExecutionResult"]);c!=null&&m(e,["codeExecutionResult"],c);const f=h(t,["executableCode"]);f!=null&&m(e,["executableCode"],f);const p=h(t,["functionResponse"]);p!=null&&m(e,["functionResponse"],p);const y=h(t,["text"]);return y!=null&&m(e,["text"],y),e}function aQ(t){const e={},n=h(t,["videoMetadata"]);n!=null&&m(e,["videoMetadata"],aee(n));const r=h(t,["thought"]);r!=null&&m(e,["thought"],r);const i=h(t,["inlineData"]);i!=null&&m(e,["inlineData"],gJ(i));const o=h(t,["fileData"]);o!=null&&m(e,["fileData"],oZ(o));const s=h(t,["thoughtSignature"]);s!=null&&m(e,["thoughtSignature"],s);const u=h(t,["functionCall"]);u!=null&&m(e,["functionCall"],uZ(u));const c=h(t,["codeExecutionResult"]);c!=null&&m(e,["codeExecutionResult"],c);const f=h(t,["executableCode"]);f!=null&&m(e,["executableCode"],f);const p=h(t,["functionResponse"]);p!=null&&m(e,["functionResponse"],p);const y=h(t,["text"]);return y!=null&&m(e,["text"],y),e}function sQ(t){const e={},n=h(t,["videoMetadata"]);n!=null&&m(e,["videoMetadata"],see(n));const r=h(t,["thought"]);r!=null&&m(e,["thought"],r);const i=h(t,["inlineData"]);i!=null&&m(e,["inlineData"],yJ(i));const o=h(t,["fileData"]);o!=null&&m(e,["fileData"],aZ(o));const s=h(t,["thoughtSignature"]);s!=null&&m(e,["thoughtSignature"],s);const u=h(t,["functionCall"]);u!=null&&m(e,["functionCall"],cZ(u));const c=h(t,["codeExecutionResult"]);c!=null&&m(e,["codeExecutionResult"],c);const f=h(t,["executableCode"]);f!=null&&m(e,["executableCode"],f);const p=h(t,["functionResponse"]);p!=null&&m(e,["functionResponse"],p);const y=h(t,["text"]);return y!=null&&m(e,["text"],y),e}function lQ(t){const e={},n=h(t,["voiceName"]);return n!=null&&m(e,["voiceName"],n),e}function uQ(t){const e={},n=h(t,["voiceName"]);return n!=null&&m(e,["voiceName"],n),e}function cQ(t){const e={},n=h(t,["productImage"]);return n!=null&&m(e,["image"],hr(n)),e}function fQ(t,e){const n={},r=h(t,["numberOfImages"]);
233e!==void 0&&r!=null&&m(e,["parameters","sampleCount"],r);const i=h(t,["baseSteps"]);e!==void 0&&i!=null&&m(e,["parameters","editConfig","baseSteps"],i);const o=h(t,["outputGcsUri"]);e!==void 0&&o!=null&&m(e,["parameters","storageUri"],o);const s=h(t,["seed"]);e!==void 0&&s!=null&&m(e,["parameters","seed"],s);const u=h(t,["safetyFilterLevel"]);e!==void 0&&u!=null&&m(e,["parameters","safetySetting"],u);const c=h(t,["personGeneration"]);e!==void 0&&c!=null&&m(e,["parameters","personGeneration"],c);const f=h(t,["addWatermark"]);e!==void 0&&f!=null&&m(e,["parameters","addWatermark"],f);const p=h(t,["outputMimeType"]);e!==void 0&&p!=null&&m(e,["parameters","outputOptions","mimeType"],p);const y=h(t,["outputCompressionQuality"]);e!==void 0&&y!=null&&m(e,["parameters","outputOptions","compressionQuality"],y);const v=h(t,["enhancePrompt"]);return e!==void 0&&v!=null&&m(e,["parameters","enhancePrompt"],v),n}function dQ(t,e){const n={},r=h(e,["model"]);r!=null&&m(n,["_url","model"],je(t,r));const i=h(e,["source"]);i!=null&&pQ(i,n);const o=h(e,["config"]);return o!=null&&fQ(o,n),n}function hQ(t){const e={},n=h(t,["predictions"]);if(n!=null){let r=n;Array.isArray(r)&&(r=r.map(i=>np(i))),m(e,["generatedImages"],r)}return e}function pQ(t,e){const n={},r=h(t,["prompt"]);e!==void 0&&r!=null&&m(e,["instances[0]","prompt"],r);const i=h(t,["personImage"]);e!==void 0&&i!=null&&m(e,["instances[0]","personImage","image"],hr(i));const o=h(t,["productImages"]);if(e!==void 0&&o!=null){let s=o;Array.isArray(s)&&(s=s.map(u=>cQ(u))),m(e,["instances[0]","productImages"],s)}return n}function mQ(t){const e={},n=h(t,["referenceImage"]);n!=null&&m(e,["referenceImage"],hr(n));const r=h(t,["referenceId"]);r!=null&&m(e,["referenceId"],r);const i=h(t,["referenceType"]);i!=null&&m(e,["referenceType"],i);const o=h(t,["maskImageConfig"]);o!=null&&m(e,["maskImageConfig"],tQ(o));const s=h(t,["controlImageConfig"]);s!=null&&m(e,["controlImageConfig"],RJ(s));const u=h(t,["styleImageConfig"]);u!=null&&m(e,["styleImageConfig"],RQ(u));const c=h(t,["subjectImageConfig"]);return c!=null&&m(e,["subjectImageConfig"],NQ(c)),e}function gQ(t){const e={},n=h(t,["latLng"]);n!=null&&m(e,["latLng"],KZ(n));const r=h(t,["languageCode"]);return r!=null&&m(e,["languageCode"],r),e}function yQ(t){const e={},n=h(t,["latLng"]);n!=null&&m(e,["latLng"],YZ(n));const r=h(t,["languageCode"]);return r!=null&&m(e,["languageCode"],r),e}function EB(t){const e={},n=h(t,["safetyAttributes","categories"]);n!=null&&m(e,["categories"],n);const r=h(t,["safetyAttributes","scores"]);r!=null&&m(e,["scores"],r);const i=h(t,["contentType"]);return i!=null&&m(e,["contentType"],i),e}function MB(t){const e={},n=h(t,["safetyAttributes","categories"]);n!=null&&m(e,["categories"],n);const r=h(t,["safetyAttributes","scores"]);r!=null&&m(e,["scores"],r);const i=h(t,["contentType"]);return i!=null&&m(e,["contentType"],i),e}function vQ(t){const e={};if(h(t,["method"])!==void 0)throw new Error("method parameter is not supported in Gemini API.");const n=h(t,["category"]);n!=null&&m(e,["category"],n);const r=h(t,["threshold"]);return r!=null&&m(e,["threshold"],r),e}function bQ(t){const e={},n=h(t,["method"]);n!=null&&m(e,["method"],n);const r=h(t,["category"]);r!=null&&m(e,["category"],r);const i=h(t,["threshold"]);return i!=null&&m(e,["threshold"],i),e}function xQ(t){const e={},n=h(t,["anyOf"]);n!=null&&m(e,["anyOf"],n);const r=h(t,["default"]);r!=null&&m(e,["default"],r);const i=h(t,["description"]);i!=null&&m(e,["description"],i);const o=h(t,["enum"]);o!=null&&m(e,["enum"],o);const s=h(t,["example"]);s!=null&&m(e,["example"],s);const u=h(t,["format"]);u!=null&&m(e,["format"],u);const c=h(t,["items"]);c!=null&&m(e,["items"],c);const f=h(t,["maxItems"]);f!=null&&m(e,["maxItems"],f);const p=h(t,["maxLength"]);p!=null&&m(e,["maxLength"],p);const y=h(t,["maxProperties"]);y!=null&&m(e,["maxProperties"],y);const v=h(t,["maximum"]);v!=null&&m(e,["maximum"],v);const x=h(t,["minItems"]);x!=null&&m(e,["minItems"],x);const w=h(t,["minLength"]);w!=null&&m(e,["minLength"],w);const A=h(t,["minProperties"]);A!=null&&m(e,["minProperties"],A);const S=h(t,["minimum"]);S!=null&&m(e,["minimum"],S);const C=h(t,["nullable"]);
233C!=null&&m(e,["nullable"],C);const P=h(t,["pattern"]);P!=null&&m(e,["pattern"],P);const M=h(t,["properties"]);M!=null&&m(e,["properties"],M);const O=h(t,["propertyOrdering"]);O!=null&&m(e,["propertyOrdering"],O);const E=h(t,["required"]);E!=null&&m(e,["required"],E);const N=h(t,["title"]);N!=null&&m(e,["title"],N);const D=h(t,["type"]);return D!=null&&m(e,["type"],D),e}function TQ(t){const e={},n=h(t,["anyOf"]);n!=null&&m(e,["anyOf"],n);const r=h(t,["default"]);r!=null&&m(e,["default"],r);const i=h(t,["description"]);i!=null&&m(e,["description"],i);const o=h(t,["enum"]);o!=null&&m(e,["enum"],o);const s=h(t,["example"]);s!=null&&m(e,["example"],s);const u=h(t,["format"]);u!=null&&m(e,["format"],u);const c=h(t,["items"]);c!=null&&m(e,["items"],c);const f=h(t,["maxItems"]);f!=null&&m(e,["maxItems"],f);const p=h(t,["maxLength"]);p!=null&&m(e,["maxLength"],p);const y=h(t,["maxProperties"]);y!=null&&m(e,["maxProperties"],y);const v=h(t,["maximum"]);v!=null&&m(e,["maximum"],v);const x=h(t,["minItems"]);x!=null&&m(e,["minItems"],x);const w=h(t,["minLength"]);w!=null&&m(e,["minLength"],w);const A=h(t,["minProperties"]);A!=null&&m(e,["minProperties"],A);const S=h(t,["minimum"]);S!=null&&m(e,["minimum"],S);const C=h(t,["nullable"]);C!=null&&m(e,["nullable"],C);const P=h(t,["pattern"]);P!=null&&m(e,["pattern"],P);const M=h(t,["properties"]);M!=null&&m(e,["properties"],M);const O=h(t,["propertyOrdering"]);O!=null&&m(e,["propertyOrdering"],O);const E=h(t,["required"]);E!=null&&m(e,["required"],E);const N=h(t,["title"]);N!=null&&m(e,["title"],N);const D=h(t,["type"]);return D!=null&&m(e,["type"],D),e}function SQ(t){const e={},n=h(t,["image"]);return n!=null&&m(e,["image"],hr(n)),e}function AQ(t,e){const n={},r=h(t,["mode"]);e!==void 0&&r!=null&&m(e,["parameters","mode"],r);const i=h(t,["maxPredictions"]);e!==void 0&&i!=null&&m(e,["parameters","maxPredictions"],i);const o=h(t,["confidenceThreshold"]);e!==void 0&&o!=null&&m(e,["parameters","confidenceThreshold"],o);const s=h(t,["maskDilation"]);e!==void 0&&s!=null&&m(e,["parameters","maskDilation"],s);const u=h(t,["binaryColorThreshold"]);return e!==void 0&&u!=null&&m(e,["parameters","binaryColorThreshold"],u),n}function wQ(t,e){const n={},r=h(e,["model"]);r!=null&&m(n,["_url","model"],je(t,r));const i=h(e,["source"]);i!=null&&CQ(i,n);const o=h(e,["config"]);return o!=null&&AQ(o,n),n}function _Q(t){const e={},n=h(t,["predictions"]);if(n!=null){let r=n;Array.isArray(r)&&(r=r.map(i=>IZ(i))),m(e,["generatedMasks"],r)}return e}function CQ(t,e){const n={},r=h(t,["prompt"]);e!==void 0&&r!=null&&m(e,["instances[0]","prompt"],r);const i=h(t,["image"]);e!==void 0&&i!=null&&m(e,["instances[0]","image"],hr(i));const o=h(t,["scribbleImage"]);return e!==void 0&&o!=null&&m(e,["instances[0]","scribble"],SQ(o)),n}function EQ(t){const e={},n=h(t,["speaker"]);n!=null&&m(e,["speaker"],n);const r=h(t,["voiceConfig"]);return r!=null&&m(e,["voiceConfig"],NB(r)),e}function MQ(t){const e={},n=h(t,["voiceConfig"]);n!=null&&m(e,["voiceConfig"],NB(n));const r=h(t,["multiSpeakerVoiceConfig"]);r!=null&&m(e,["multiSpeakerVoiceConfig"],rQ(r));const i=h(t,["languageCode"]);return i!=null&&m(e,["languageCode"],i),e}function PQ(t){const e={},n=h(t,["voiceConfig"]);if(n!=null&&m(e,["voiceConfig"],lee(n)),h(t,["multiSpeakerVoiceConfig"])!==void 0)throw new Error("multiSpeakerVoiceConfig parameter is not supported in Vertex AI.");const r=h(t,["languageCode"]);return r!=null&&m(e,["languageCode"],r),e}function RQ(t){const e={},n=h(t,["styleDescription"]);return n!=null&&m(e,["styleDescription"],n),e}function NQ(t){const e={},n=h(t,["subjectType"]);n!=null&&m(e,["subjectType"],n);const r=h(t,["subjectDescription"]);return r!=null&&m(e,["subjectDescription"],r),e}function OQ(t){const e={},n=h(t,["includeThoughts"]);n!=null&&m(e,["includeThoughts"],n);const r=h(t,["thinkingBudget"]);return r!=null&&m(e,["thinkingBudget"],r),e}function DQ(t){const e={},n=h(t,["includeThoughts"]);n!=null&&m(e,["includeThoughts"],n);const r=h(t,["thinkingBudget"]);return r!=null&&m(e,["thinkingBudget"],r),e}function IQ(t){const e={},n=h(t,["environment"]);n!=null&&m(e,["environment"],n);const r=h(t,["excludedPredefinedFunctions"]);return r!=null&&m(e,["excludedPredefinedFunctions"],r),e}function kQ(t){const e={},n=h(t,["environment"]);n!=null&&m(e,["environment"],n);const r=h(t,["excludedPredefinedFunctions"]);return r!=null&&m(e,["excludedPredefinedFunctions"],r),e}function LQ(t){const e={},n=h(t,["functionCallingConfig"]);n!=null&&m(e,["functionCallingConfig"],fZ(n));const r=h(t,["retrievalConfig"]);return r!=null&&m(e,["retrievalConfig"],gQ(r)),e}function UQ(t){const e={},n=h(t,["functionCallingConfig"]);n!=null&&m(e,["functionCallingConfig"],dZ(n));const r=h(t,["retrievalConfig"]);return r!=null&&m(e,["retrievalConfig"],yQ(r)),e}function qQ(t){const e={},n=h(t,["functionDeclarations"]);if(n!=null){let c=n;Array.isArray(c)&&(c=c.map(f=>hZ(f))),m(e,["functionDeclarations"],c)}if(h(t,["retrieval"])!==void 0)throw new Error("retrieval parameter is not supported in Gemini API.");const r=h(t,["googleSearch"]);r!=null&&m(e,["googleSearch"],jZ(r));const i=h(t,["googleSearchRetrieval"]);if(i!=null&&m(e,["googleSearchRetrieval"],$Z(i)),h(t,["enterpriseWebSearch"])!==void 0)throw new Error("enterpriseWebSearch parameter is not supported in Gemini API.");if(h(t,["googleMaps"])!==void 0)throw new Error("googleMaps parameter is not supported in Gemini API.");
233h(t,["urlContext"])!=null&&m(e,["urlContext"],XQ());const s=h(t,["computerUse"]);s!=null&&m(e,["computerUse"],IQ(s));const u=h(t,["codeExecution"]);return u!=null&&m(e,["codeExecution"],u),e}function PB(t){const e={},n=h(t,["functionDeclarations"]);if(n!=null){let y=n;Array.isArray(y)&&(y=y.map(v=>pZ(v))),m(e,["functionDeclarations"],y)}const r=h(t,["retrieval"]);r!=null&&m(e,["retrieval"],r);const i=h(t,["googleSearch"]);i!=null&&m(e,["googleSearch"],FZ(i));const o=h(t,["googleSearchRetrieval"]);o!=null&&m(e,["googleSearchRetrieval"],VZ(o));const s=h(t,["enterpriseWebSearch"]);s!=null&&m(e,["enterpriseWebSearch"],tZ(s));const u=h(t,["googleMaps"]);u!=null&&m(e,["googleMaps"],BZ(u)),h(t,["urlContext"])!=null&&m(e,["urlContext"],JQ());const f=h(t,["computerUse"]);f!=null&&m(e,["computerUse"],kQ(f));const p=h(t,["codeExecution"]);return p!=null&&m(e,["codeExecution"],p),e}function BQ(t){const e={},n=h(t,["baseModel"]);n!=null&&m(e,["baseModel"],n);const r=h(t,["createTime"]);r!=null&&m(e,["createTime"],r);const i=h(t,["updateTime"]);return i!=null&&m(e,["updateTime"],i),e}function $Q(t){const e={},n=h(t,["labels","google-vertex-llm-tuning-base-model-id"]);n!=null&&m(e,["baseModel"],n);const r=h(t,["createTime"]);r!=null&&m(e,["createTime"],r);const i=h(t,["updateTime"]);return i!=null&&m(e,["updateTime"],i),e}function VQ(t,e){const n={},r=h(t,["displayName"]);e!==void 0&&r!=null&&m(e,["displayName"],r);const i=h(t,["description"]);e!==void 0&&i!=null&&m(e,["description"],i);const o=h(t,["defaultCheckpointId"]);return e!==void 0&&o!=null&&m(e,["defaultCheckpointId"],o),n}function jQ(t,e){const n={},r=h(t,["displayName"]);e!==void 0&&r!=null&&m(e,["displayName"],r);const i=h(t,["description"]);e!==void 0&&i!=null&&m(e,["description"],i);const o=h(t,["defaultCheckpointId"]);return e!==void 0&&o!=null&&m(e,["defaultCheckpointId"],o),n}function FQ(t,e){const n={},r=h(e,["model"]);r!=null&&m(n,["_url","name"],je(t,r));const i=h(e,["config"]);return i!=null&&VQ(i,n),n}function HQ(t,e){const n={},r=h(e,["model"]);r!=null&&m(n,["_url","model"],je(t,r));const i=h(e,["config"]);return i!=null&&jQ(i,n),n}function GQ(t,e){const n={},r=h(t,["outputGcsUri"]);e!==void 0&&r!=null&&m(e,["parameters","storageUri"],r);const i=h(t,["includeRaiReason"]);e!==void 0&&i!=null&&m(e,["parameters","includeRaiReason"],i);const o=h(t,["outputMimeType"]);e!==void 0&&o!=null&&m(e,["parameters","outputOptions","mimeType"],o);const s=h(t,["outputCompressionQuality"]);e!==void 0&&s!=null&&m(e,["parameters","outputOptions","compressionQuality"],s);const u=h(t,["enhanceInputImage"]);e!==void 0&&u!=null&&m(e,["parameters","upscaleConfig","enhanceInputImage"],u);const c=h(t,["imagePreservationFactor"]);e!==void 0&&c!=null&&m(e,["parameters","upscaleConfig","imagePreservationFactor"],c);const f=h(t,["numberOfImages"]);e!==void 0&&f!=null&&m(e,["parameters","sampleCount"],f);const p=h(t,["mode"]);return e!==void 0&&p!=null&&m(e,["parameters","mode"],p),n}function zQ(t,e){const n={},r=h(e,["model"]);r!=null&&m(n,["_url","model"],je(t,r));const i=h(e,["image"]);i!=null&&m(n,["instances[0]","image"],hr(i));const o=h(e,["upscaleFactor"]);o!=null&&m(n,["parameters","upscaleConfig","upscaleFactor"],o);const s=h(e,["config"]);return s!=null&&GQ(s,n),n}function KQ(t){const e={},n=h(t,["sdkHttpResponse"]);n!=null&&m(e,["sdkHttpResponse"],n);const r=h(t,["predictions"]);if(r!=null){let i=r;Array.isArray(i)&&(i=i.map(o=>np(o))),m(e,["generatedImages"],i)}return e}function YQ(t){const e={},n=h(t,["urlMetadata"]);if(n!=null){let r=n;Array.isArray(r)&&(r=r.map(i=>ZQ(i))),m(e,["urlMetadata"],r)}return e}function WQ(t){const e={},n=h(t,["urlMetadata"]);if(n!=null){let r=n;Array.isArray(r)&&(r=r.map(i=>QQ(i))),m(e,["urlMetadata"],r)}return e}function XQ(){return{}}function JQ(){return{}}function ZQ(t){const e={},n=h(t,["retrievedUrl"]);n!=null&&m(e,["retrievedUrl"],n);const r=h(t,["urlRetrievalStatus"]);return r!=null&&m(e,["urlRetrievalStatus"],r),e}function QQ(t){const e={},n=h(t,["retrievedUrl"]);n!=null&&m(e,["retrievedUrl"],n);const r=h(t,["urlRetrievalStatus"]);return r!=null&&m(e,["urlRetrievalStatus"],r),e}function eee(t){const e={},n=h(t,["video","uri"]);n!=null&&m(e,["uri"],n);const r=h(t,["video","encodedVideo"]);r!=null&&m(e,["videoBytes"],Qo(r));const i=h(t,["encoding"]);return i!=null&&m(e,["mimeType"],i),e}function tee(t){const e={},n=h(t,["gcsUri"]);n!=null&&m(e,["uri"],n);
233const r=h(t,["bytesBase64Encoded"]);r!=null&&m(e,["videoBytes"],Qo(r));const i=h(t,["mimeType"]);return i!=null&&m(e,["mimeType"],i),e}function nee(t){const e={},n=h(t,["image"]);n!=null&&m(e,["_self"],hr(n));const r=h(t,["maskMode"]);return r!=null&&m(e,["maskMode"],r),e}function ree(t){const e={},n=h(t,["image"]);n!=null&&m(e,["image"],hr(n));const r=h(t,["referenceType"]);return r!=null&&m(e,["referenceType"],r),e}function iee(t){const e={},n=h(t,["fps"]);n!=null&&m(e,["fps"],n);const r=h(t,["endOffset"]);r!=null&&m(e,["endOffset"],r);const i=h(t,["startOffset"]);return i!=null&&m(e,["startOffset"],i),e}function oee(t){const e={},n=h(t,["fps"]);n!=null&&m(e,["fps"],n);const r=h(t,["endOffset"]);r!=null&&m(e,["endOffset"],r);const i=h(t,["startOffset"]);return i!=null&&m(e,["startOffset"],i),e}function aee(t){const e={},n=h(t,["fps"]);n!=null&&m(e,["fps"],n);const r=h(t,["endOffset"]);r!=null&&m(e,["endOffset"],r);const i=h(t,["startOffset"]);return i!=null&&m(e,["startOffset"],i),e}function see(t){const e={},n=h(t,["fps"]);n!=null&&m(e,["fps"],n);const r=h(t,["endOffset"]);r!=null&&m(e,["endOffset"],r);const i=h(t,["startOffset"]);return i!=null&&m(e,["startOffset"],i),e}function RB(t){const e={},n=h(t,["uri"]);n!=null&&m(e,["gcsUri"],n);const r=h(t,["videoBytes"]);r!=null&&m(e,["bytesBase64Encoded"],Qo(r));const i=h(t,["mimeType"]);return i!=null&&m(e,["mimeType"],i),e}function NB(t){const e={},n=h(t,["prebuiltVoiceConfig"]);return n!=null&&m(e,["prebuiltVoiceConfig"],lQ(n)),e}function lee(t){const e={},n=h(t,["prebuiltVoiceConfig"]);return n!=null&&m(e,["prebuiltVoiceConfig"],uQ(n)),e}/** 234 * @license 235 * Copyright 2025 Google LLC 236 * SPDX-License-Identifier: Apache-2.0 237 */const uee="Content-Type",cee="X-Server-Timeout",fee="User-Agent",ST="x-goog-api-client",dee="1.21.0",hee=`google-genai-sdk/${dee}`,pee="v1beta1",mee="v1beta",UR=/^\s*data: (.*)(?:\n\n|\r\r|\r\n\r\n)/;class gee{constructor(e){var n,r;this.clientOptions=Object.assign(Object.assign({},e),{project:e.project,location:e.location,apiKey:e.apiKey,vertexai:e.vertexai});const i={};this.clientOptions.vertexai?(i.apiVersion=(n=this.clientOptions.apiVersion)!==null&&n!==void 0?n:pee,i.baseUrl=this.baseUrlFromProjectLocation(),this.normalizeAuthParameters()):(i.apiVersion=(r=this.clientOptions.apiVersion)!==null&&r!==void 0?r:mee,i.baseUrl="https://generativelanguage.googleapis.com/"),i.headers=this.getDefaultHeaders(),this.clientOptions.httpOptions=i,e.httpOptions&&(this.clientOptions.httpOptions=this.patchHttpOptions(i,e.httpOptions))}baseUrlFromProjectLocation(){return this.clientOptions.project&&this.clientOptions.location&&this.clientOptions.location!=="global"?`https://${this.clientOptions.location}-aiplatform.googleapis.com/`:"https://aiplatform.googleapis.com/"}normalizeAuthParameters(){if(this.clientOptions.project&&this.clientOptions.location){this.clientOptions.apiKey=void 0;return}this.clientOptions.project=void 0,this.clientOptions.location=void 0}isVertexAI(){var e;return(e=this.clientOptions.vertexai)!==null&&e!==void 0?e:!1}getProject(){return this.clientOptions.project}getLocation(){return this.clientOptions.location}getApiVersion(){if(this.clientOptions.httpOptions&&this.clientOptions.httpOptions.apiVersion!==void 0)return this.clientOptions.httpOptions.apiVersion;throw new Error("API version is not set.")}getBaseUrl(){if(this.clientOptions.httpOptions&&this.clientOptions.httpOptions.baseUrl!==void 0)return this.clientOptions.httpOptions.baseUrl;throw new Error("Base URL is not set.")}getRequestUrl(){return this.getRequestUrlInternal(this.clientOptions.httpOptions)}getHeaders(){if(this.clientOptions.httpOptions&&this.clientOptions.httpOptions.headers!==void 0)return this.clientOptions.httpOptions.headers;throw new Error("Headers are not set.")}getRequestUrlInternal(e){if(!e||e.baseUrl===void 0||e.apiVersion===void 0)throw new Error("HTTP options are not correctly set.");const r=[e.baseUrl.endsWith("/")?e.baseUrl.slice(0,-1):e.baseUrl];return e.apiVersion&&e.apiVersion!==""&&r.push(e.apiVersion),r.join("/")}getBaseResourcePath(){return`projects/${this.clientOptions.project}/locations/${this.clientOptions.location}`}getApiKey(){return this.clientOptions.apiKey}getWebsocketBaseUrl(){const e=this.getBaseUrl(),n=new URL(e);return n.protocol=n.protocol=="http:"?"ws":"wss",n.toString()}setBaseUrl(e){if(this.clientOptions.httpOptions)this.clientOptions.httpOptions.baseUrl=e;else throw new Error("HTTP options are not correctly set.")}constructUrl(e,n,r){const i=[this.getRequestUrlInternal(n)];return r&&i.push(this.getBaseResourcePath()),e!==""&&i.push(e),new URL(`${i.join("/")}`)}shouldPrependVertexProjectPath(e){return!(this.clientOptions.apiKey||!this.clientOptions.vertexai||e.path.startsWith("projects/")||e.httpMethod==="GET"&&e.path.startsWith("publishers/google/models"))}async request(e){let n=this.clientOptions.httpOptions;e.httpOptions&&(n=this.patchHttpOptions(this.clientOptions.httpOptions,e.httpOptions));const r=this.shouldPrependVertexProjectPath(e),i=this.constructUrl(e.path,n,r);if(e.queryParams)for(const[s,u]of Object.entries(e.queryParams))i.searchParams.append(s,String(u));let o={};if(e.httpMethod==="GET"){if(e.body&&e.body!=="{}")throw new Error("Request body should be empty for GET request, but got non empty request body")}else o.body=e.body;return o=await this.includeExtraHttpOptionsToRequestInit(o,n,e.abortSignal),this.unaryApiCall(i,o,e.httpMethod)}patchHttpOptions(e,n){const r=JSON.parse(JSON.stringify(e));for(const[i,o]of Object.entries(n))typeof o=="object"?r[i]=Object.assign(Object.assign({},r[i]),o):o!==void 0&&(r[i]=o);return r}async requestStream(e){let n=this.clientOptions.httpOptions;e.httpOptions&&(n=this.patchHttpOptions(this.clientOptions.httpOptions,e.httpOptions));const r=this.shouldPrependVertexProjectPath(e),i=this.constructUrl(e.path,n,r);(!i.searchParams.has("alt")||i.searchParams.get("alt")!=="sse")&&i.searchParams.set("alt","sse");let o={};return o.body=e.body,o=await this.includeExtraHttpOptionsToRequestInit(o,n,e.abortSignal),this.streamApiCall(i,o,e.httpMethod)}async includeExtraHttpOptionsToRequestInit(e,n,r){if(n&&n.timeout||r){const i=new AbortController,o=i.signal;if(n.timeout&&(n==null?void 0:n.timeout)>0){const s=setTimeout(()=>i.abort(),n.timeout);s&&typeof s.unref=="function"&&s.unref()}r&&r.addEventListener("abort",()=>{i.abort()}),e.signal=o}return n&&n.extraBody!==null&&yee(e,n.extraBody),e.headers=await this.getHeadersInternal(n),e}async unaryApiCall(e,n,r){return this.apiCall(e.toString(),Object.assign(Object.assign({},n),{method:r})).then(async i=>(await qR(i),new mT(i))).catch(i=>{throw i instanceof Error?i:new Error(JSON.stringify(i))})}async streamApiCall(e,n,r){return this.apiCall(e.toString(),Object.assign(Object.assign({},n),{method:r})).then(async i=>(await qR(i),this.processStreamResponse(i))).catch(i=>{throw i instanceof Error?i:new Error(JSON.stringify(i))})}processStreamResponse(e){var n;return ds(this,arguments,function*(){const i=(n=e==null?void 0:e.body)===null||n===void 0?void 0:n.getReader(),o=new TextDecoder("utf-8");if(!i)throw new Error("Response body is empty");try{let s="";for(;;){const{done:u,value:c}=yield ut(i.read());if(u){if(s.trim().length>0)throw new Error("Incomplete JSON segment at the end");break}const f=o.decode(c,{stream:!0});try{const y=JSON.parse(f);if("error"in y){const v=JSON.parse(JSON.stringify(y.error)),x=v.status,w=v.code,A=`got status: ${x}
237. ${JSON.stringify(y)}`;if(w>=400&&w<600)throw new ep({message:A,status:w})}}catch(y){if(y.name==="ApiError")throw y}s+=f;let p=s.match(UR);for(;p;){const y=p[1];try{const v=new Response(y,{headers:e==null?void 0:e.headers,status:e==null?void 0:e.status,statusText:e==null?void 0:e.statusText});yield yield ut(new mT(v)),s=s.slice(p[0].length),p=s.match(UR)}catch(v){throw new Error(`exception parsing stream chunk ${y}. ${v}`)}}}}finally{i.releaseLock()}})}async apiCall(e,n){return fetch(e,n).catch(r=>{throw new Error(`exception ${r} sending request`)})}getDefaultHeaders(){const e={},n=hee+" "+this.clientOptions.userAgentExtra;return e[fee]=n,e[ST]=n,e[uee]="application/json",e}async getHeadersInternal(e){const n=new Headers;if(e&&e.headers){for(const[r,i]of Object.entries(e.headers))n.append(r,i);e.timeout&&e.timeout>0&&n.append(cee,String(Math.ceil(e.timeout/1e3)))}return await this.clientOptions.auth.addAuthHeaders(n),n}async uploadFile(e,n){var r;const i={};n!=null&&(i.mimeType=n.mimeType,i.name=n.name,i.displayName=n.displayName),i.name&&!i.name.startsWith("files/")&&(i.name=`files/${i.name}`);const o=this.clientOptions.uploader,s=await o.stat(e);i.sizeBytes=String(s.size);const u=(r=n==null?void 0:n.mimeType)!==null&&r!==void 0?r:s.type;if(u===void 0||u==="")throw new Error("Can not determine mimeType. Please provide mimeType in the config.");i.mimeType=u;const c=await this.fetchUploadUrl(i,n);return o.upload(e,c,this)}async downloadFile(e){await this.clientOptions.downloader.download(e,this)}async fetchUploadUrl(e,n){var r;let i={};n!=null&&n.httpOptions?i=n.httpOptions:i={apiVersion:"",headers:{"Content-Type":"application/json","X-Goog-Upload-Protocol":"resumable","X-Goog-Upload-Command":"start","X-Goog-Upload-Header-Content-Length":`${e.sizeBytes}`,"X-Goog-Upload-Header-Content-Type":`${e.mimeType}`}};const o={file:e},s=await this.request({path:me("upload/v1beta/files",o._url),body:JSON.stringify(o),httpMethod:"POST",httpOptions:i});if(!s||!(s!=null&&s.headers))throw new Error("Server did not return an HttpResponse or the returned HttpResponse did not have headers.");const u=(r=s==null?void 0:s.headers)===null||r===void 0?void 0:r["x-goog-upload-url"];if(u===void 0)throw new Error("Failed to get upload url. Server did not return the x-google-upload-url in the headers");return u}}async function qR(t){var e;if(t===void 0)throw new Error("response is undefined");if(!t.ok){const n=t.status;let r;!((e=t.headers.get("content-type"))===null||e===void 0)&&e.includes("application/json")?r=await t.json():r={error:{message:await t.text(),code:t.status,status:t.statusText}};const i=JSON.stringify(r);throw n>=400&&n<600?new ep({message:i,status:n}):new Error(i)}}function yee(t,e){if(!e||Object.keys(e).length===0)return;if(t.body instanceof Blob){console.warn("includeExtraBodyToRequestInit: extraBody provided but current request body is a Blob. extraBody will be ignored as merging is not supported for Blob bodies.");return}let n={};if(typeof t.body=="string"&&t.body.length>0)try{const o=JSON.parse(t.body);if(typeof o=="object"&&o!==null&&!Array.isArray(o))n=o;else{console.warn("includeExtraBodyToRequestInit: Original request body is valid JSON but not a non-array object. Skip applying extraBody to the request body.");return}}catch{console.warn("includeExtraBodyToRequestInit: Original request body is not valid JSON. Skip applying extraBody to the request body.");return}function r(o,s){const u=Object.assign({},o);for(const c in s)if(Object.prototype.hasOwnProperty.call(s,c)){const f=s[c],p=u[c];f&&typeof f=="object"&&!Array.isArray(f)&&p&&typeof p=="object"&&!Array.isArray(p)?u[c]=r(p,f):(p&&f&&typeof p!=typeof f&&console.warn(`includeExtraBodyToRequestInit:deepMerge: Type mismatch for key "${c}". Original type: ${typeof p}, New type: ${typeof f}. Overwriting.`),u[c]=f)}return u}const i=r(n,e);t.body=JSON.stringify(i)}/** 238 * @license 239 * Copyright 2025 Google LLC 240 * SPDX-License-Identifier: Apache-2.0 241 */const vee="mcp_used/unknown";let bee=!1;function OB(t){for(const e of t)if(xee(e)||typeof e=="object"&&"inputSchema"in e)return!0;return bee}function DB(t){var e;const n=(e=t[ST])!==null&&e!==void 0?e:"";t[ST]=(n+` ${vee}`).trimStart()}function xee(t){return t!==null&&typeof t=="object"&&t instanceof qA}function Tee(t,e=100){return ds(this,arguments,function*(){let r,i=0;for(;i<e;
241){const o=yield ut(t.listTools({cursor:r}));for(const s of o.tools)yield yield ut(s),i++;if(!o.nextCursor)break;r=o.nextCursor}})}class qA{constructor(e=[],n){this.mcpTools=[],this.functionNameToMcpClient={},this.mcpClients=e,this.config=n}static create(e,n){return new qA(e,n)}async initialize(){var e,n,r,i;if(this.mcpTools.length>0)return;const o={},s=[];for(const p of this.mcpClients)try{for(var u=!0,c=(n=void 0,Ru(Tee(p))),f;f=await c.next(),e=f.done,!e;u=!0){i=f.value,u=!1;const y=i;s.push(y);const v=y.name;if(o[v])throw new Error(`Duplicate function name ${v} found in MCP tools. Please ensure function names are unique.`);o[v]=p}}catch(y){n={error:y}}finally{try{!u&&!e&&(r=c.return)&&await r.call(c)}finally{if(n)throw n.error}}this.mcpTools=s,this.functionNameToMcpClient=o}async tool(){return await this.initialize(),L9(this.mcpTools,this.config)}async callTool(e){await this.initialize();const n=[];for(const r of e)if(r.name in this.functionNameToMcpClient){const i=this.functionNameToMcpClient[r.name];let o;this.config.timeout&&(o={timeout:this.config.timeout});const s=await i.callTool({name:r.name,arguments:r.args},void 0,o);n.push({functionResponse:{name:r.name,response:s.isError?{error:s}:s}})}return n}}/** 242 * @license 243 * Copyright 2025 Google LLC 244 * SPDX-License-Identifier: Apache-2.0 245 */async function See(t,e,n){const r=new M9;let i;n.data instanceof Blob?i=JSON.parse(await n.data.text()):i=JSON.parse(n.data);const o=fX(i);Object.assign(r,o),e(r)}class Aee{constructor(e,n,r){this.apiClient=e,this.auth=n,this.webSocketFactory=r}async connect(e){var n,r;if(this.apiClient.isVertexAI())throw new Error("Live music is not supported for Vertex AI.");console.warn("Live music generation is experimental and may change in future versions.");const i=this.apiClient.getWebsocketBaseUrl(),o=this.apiClient.getApiVersion(),s=Cee(this.apiClient.getDefaultHeaders()),u=this.apiClient.getApiKey(),c=`${i}/ws/google.ai.generativelanguage.${o}.GenerativeService.BidiGenerateMusic?key=${u}`;let f=()=>{};const p=new Promise(M=>{f=M}),y=e.callbacks,v=function(){f({})},x=this.apiClient,w={onopen:v,onmessage:M=>{See(x,y.onmessage,M)},onerror:(n=y==null?void 0:y.onerror)!==null&&n!==void 0?n:function(M){},onclose:(r=y==null?void 0:y.onclose)!==null&&r!==void 0?r:function(M){}},A=this.webSocketFactory.create(c,_ee(s),w);A.connect(),await p;const S=je(this.apiClient,e.model),C=TB({model:S}),P=bT({setup:C});return A.send(JSON.stringify(P)),new wee(A,this.apiClient)}}class wee{constructor(e,n){this.conn=e,this.apiClient=n}async setWeightedPrompts(e){if(!e.weightedPrompts||Object.keys(e.weightedPrompts).length===0)throw new Error("Weighted prompts must be set and contain at least one entry.");const n=pX(e),r=xB(n);this.conn.send(JSON.stringify({clientContent:r}))}async setMusicGenerationConfig(e){e.musicGenerationConfig||(e.musicGenerationConfig={});const n=hX(e),r=bT(n);this.conn.send(JSON.stringify(r))}sendPlaybackControl(e){const n=bT({playbackControl:e});this.conn.send(JSON.stringify(n))}play(){this.sendPlaybackControl(ns.PLAY)}pause(){this.sendPlaybackControl(ns.PAUSE)}stop(){this.sendPlaybackControl(ns.STOP)}resetContext(){this.sendPlaybackControl(ns.RESET_CONTEXT)}close(){this.conn.close()}}function _ee(t){const e={};return t.forEach((n,r)=>{e[r]=n}),e}function Cee(t){const e=new Headers;for(const[n,r]of Object.entries(t))e.append(n,r);return e}/** 246 * @license 247 * Copyright 2025 Google LLC 248 * SPDX-License-Identifier: Apache-2.0 249 */const Eee="FunctionResponse request must have an `id` field from the response of a ToolCall.FunctionalCalls in Google AI.";async function Mee(t,e,n){const r=new E9;let i;n.data instanceof Blob?i=await n.data.text():n.data instanceof ArrayBuffer?i=new TextDecoder().decode(n.data):i=n.data;const o=JSON.parse(i);if(t.isVertexAI()){const s=AX(o);Object.assign(r,s)}else{const s=SX(o);Object.assign(r,s)}e(r)}class Pee{constructor(e,n,r){this.apiClient=e,this.auth=n,this.webSocketFactory=r,this.music=new Aee(this.apiClient,this.auth,this.webSocketFactory)}async connect(e){var n,r,i,o,s,u;if(e.config&&e.config.httpOptions)throw new Error("The Live module does not support httpOptions at request-level in LiveConnectConfig yet. Please use the client-level httpOptions configuration instead.");const c=this.apiClient.getWebsocketBaseUrl(),f=this.apiClient.getApiVersion();let p;const y=this.apiClient.getHeaders();e.config&&e.config.tools&&OB(e.config.tools)&&DB(y);const v=Dee(y);if(this.apiClient.isVertexAI())p=`${c}/ws/google.cloud.aiplatform.${f}.LlmBidiService/BidiGenerateContent`,await this.auth.addAuthHeaders(v);else{const U=this.apiClient.getApiKey();let F="BidiGenerateContent",B="key";U!=null&&U.startsWith("auth_tokens/")&&(console.warn("Warning: Ephemeral token support is experimental and may change in future versions."),f!=="v1alpha"&&console.warn("Warning: The SDK's ephemeral token support is in v1alpha only. Please use const ai = new GoogleGenAI({apiKey: token.name, httpOptions: { apiVersion: 'v1alpha' }}); before session connection."),F="BidiGenerateContentConstrained",B="access_token"),p=`${c}/ws/google.ai.generativelanguage.${f}.GenerativeService.${F}?${B}
249=${U}`}let x=()=>{};const w=new Promise(U=>{x=U}),A=e.callbacks,S=function(){var U;(U=A==null?void 0:A.onopen)===null||U===void 0||U.call(A),x({})},C=this.apiClient,P={onopen:S,onmessage:U=>{Mee(C,A.onmessage,U)},onerror:(n=A==null?void 0:A.onerror)!==null&&n!==void 0?n:function(U){},onclose:(r=A==null?void 0:A.onclose)!==null&&r!==void 0?r:function(U){}},M=this.webSocketFactory.create(p,Oee(v),P);M.connect(),await w;let O=je(this.apiClient,e.model);if(this.apiClient.isVertexAI()&&O.startsWith("publishers/")){const U=this.apiClient.getProject(),F=this.apiClient.getLocation();O=`projects/${U}/locations/${F}/`+O}let E={};this.apiClient.isVertexAI()&&((i=e.config)===null||i===void 0?void 0:i.responseModalities)===void 0&&(e.config===void 0?e.config={responseModalities:[Kd.AUDIO]}:e.config.responseModalities=[Kd.AUDIO]),!((o=e.config)===null||o===void 0)&&o.generationConfig&&console.warn("Setting `LiveConnectConfig.generation_config` is deprecated, please set the fields on `LiveConnectConfig` directly. This will become an error in a future version (not before Q3 2025).");const N=(u=(s=e.config)===null||s===void 0?void 0:s.tools)!==null&&u!==void 0?u:[],D=[];for(const U of N)if(this.isCallableTool(U)){const F=U;D.push(await F.tool())}else D.push(U);D.length>0&&(e.config.tools=D);const L={model:O,config:e.config,callbacks:e.callbacks};return this.apiClient.isVertexAI()?E=aX(this.apiClient,L):E=oX(this.apiClient,L),delete E.config,M.send(JSON.stringify(E)),new Nee(M,this.apiClient)}isCallableTool(e){return"callTool"in e&&typeof e.callTool=="function"}}const Ree={turnComplete:!0};class Nee{constructor(e,n){this.conn=e,this.apiClient=n}tLiveClientContent(e,n){if(n.turns!==null&&n.turns!==void 0){let r=[];try{r=Wn(n.turns),e.isVertexAI()?r=r.map(i=>Zs(i)):r=r.map(i=>tp(i))}catch{throw new Error(`Failed to parse client content "turns", type: '${typeof n.turns}'`)}return{clientContent:{turns:r,turnComplete:n.turnComplete}}}return{clientContent:{turnComplete:n.turnComplete}}}tLiveClienttToolResponse(e,n){let r=[];if(n.functionResponses==null)throw new Error("functionResponses is required.");if(Array.isArray(n.functionResponses)?r=n.functionResponses:r=[n.functionResponses],r.length===0)throw new Error("functionResponses is required.");for(const o of r){if(typeof o!="object"||o===null||!("name"in o)||!("response"in o))throw new Error(`Could not parse function response, type '${typeof o}'.`);if(!e.isVertexAI()&&!("id"in o))throw new Error(Eee)}return{toolResponse:{functionResponses:r}}}sendClientContent(e){e=Object.assign(Object.assign({},Ree),e);const n=this.tLiveClientContent(this.apiClient,e);this.conn.send(JSON.stringify(n))}sendRealtimeInput(e){let n={};this.apiClient.isVertexAI()?n={realtimeInput:yX(e)}:n={realtimeInput:gX(e)},this.conn.send(JSON.stringify(n))}sendToolResponse(e){if(e.functionResponses==null)throw new Error("Tool response parameters are required.");const n=this.tLiveClienttToolResponse(this.apiClient,e);this.conn.send(JSON.stringify(n))}close(){this.conn.close()}}function Oee(t){const e={};return t.forEach((n,r)=>{e[r]=n}),e}function Dee(t){const e=new Headers;for(const[n,r]of Object.entries(t))e.append(n,r);return e}/** 250 * @license 251 * Copyright 2025 Google LLC 252 * SPDX-License-Identifier: Apache-2.0 253 */const BR=10;function $R(t){var e,n,r;if(!((e=t==null?void 0:t.automaticFunctionCalling)===null||e===void 0)&&e.disable)return!0;let i=!1;for(const s of(n=t==null?void 0:t.tools)!==null&&n!==void 0?n:[])if(hs(s)){i=!0;break}if(!i)return!0;const o=(r=t==null?void 0:t.automaticFunctionCalling)===null||r===void 0?void 0:r.maximumRemoteCalls;return o&&(o<0||!Number.isInteger(o))||o==0?(console.warn("Invalid maximumRemoteCalls value provided for automatic function calling. Disabled automatic function calling. Please provide a valid integer value greater than 0. maximumRemoteCalls provided:",o),!0):!1}function hs(t){return"callTool"in t&&typeof t.callTool=="function"}function Iee(t){var e,n,r;return(r=(n=(e=t.config)===null||e===void 0?void 0:e.tools)===null||n===void 0?void 0:n.some(i=>hs(i)))!==null&&r!==void 0?r:!1}function kee(t){var e,n,r;return(r=(n=(e=t.config)===null||e===void 0?void 0:e.tools)===null||n===void 0?void 0:n.some(i=>!hs(i)))!==null&&r!==void 0?r:!1}function VR(t){var e;return!(!((e=t==null?void 0:t.automaticFunctionCalling)===null||e===void 0)&&e.ignoreCallHistory)}/** 254 * @license 255 * Copyright 2025 Google LLC 256 * SPDX-License-Identifier: Apache-2.0 257 */class Lee extends Zo{constructor(e){super(),this.apiClient=e,this.generateContent=async n=>{var r,i,o,s,u;const c=await this.processParamsMaybeAddMcpUsage(n);if(this.maybeMoveToResponseJsonSchem(n),!Iee(n)||$R(n.config))return await this.generateContentInternal(c);if(kee(n))throw new Error("Automatic function calling with CallableTools and Tools is not yet supported.");let f,p;const y=Wn(c.contents),v=(o=(i=(r=c.config)===null||r===void 0?void 0:r.automaticFunctionCalling)===null||i===void 0?void 0:i.maximumRemoteCalls)!==null&&o!==void 0?o:BR;let x=0;for(;x<v&&(f=await this.generateContentInternal(c),!(!f.functionCalls||f.functionCalls.length===0));){const w=f.candidates[0].content,A=[];for(const S of(u=(s=n.config)===null||s===void 0?void 0:s.tools)!==null&&u!==void 0?u:[])if(hs(S)){const P=await S.callTool(f.functionCalls);A.push(...P)}x++,p={role:"user",parts:A},c.contents=Wn(c.contents),c.contents.push(w),c.contents.push(p),VR(c.config)&&(y.push(w),y.push(p))}return VR(c.config)&&(f.automaticFunctionCallingHistory=y),f},this.generateContentStream=async n=>{if(this.maybeMoveToResponseJsonSchem(n),$R(n.config)){const r=await this.processParamsMaybeAddMcpUsage(n);return await this.generateContentStreamInternal(r)}else return await this.processAfcStream(n)},this.generateImages=async n=>await this.generateImagesInternal(n).then(r=>{var i;let o;const s=[];if(r!=null&&r.generatedImages)for(const c of r.generatedImages)c&&(c!=null&&c.safetyAttributes)&&((i=c==null?void 0:c.safetyAttributes)===null||i===void 0?void 0:i.contentType)==="Positive Prompt"?o=c==null?void 0:c.safetyAttributes:s.push(c);let u;return o?u={generatedImages:s,positivePromptSafetyAttributes:o,sdkHttpResponse:r.sdk
257HttpResponse}:u={generatedImages:s,sdkHttpResponse:r.sdkHttpResponse},u}),this.list=async n=>{var r;const s={config:Object.assign(Object.assign({},{queryBase:!0}),n==null?void 0:n.config)};if(this.apiClient.isVertexAI()&&!s.config.queryBase){if(!((r=s.config)===null||r===void 0)&&r.filter)throw new Error("Filtering tuned models list for Vertex AI is not currently supported");s.config.filter="labels.tune-type:*"}return new Oc(Go.PAGED_ITEM_MODELS,u=>this.listInternal(u),await this.listInternal(s),s)},this.editImage=async n=>{const r={model:n.model,prompt:n.prompt,referenceImages:[],config:n.config};return n.referenceImages&&n.referenceImages&&(r.referenceImages=n.referenceImages.map(i=>i.toReferenceImageAPI())),await this.editImageInternal(r)},this.upscaleImage=async n=>{let r={numberOfImages:1,mode:"upscale"};n.config&&(r=Object.assign(Object.assign({},r),n.config));const i={model:n.model,image:n.image,upscaleFactor:n.upscaleFactor,config:r};return await this.upscaleImageInternal(i)},this.generateVideos=async n=>{if((n.prompt||n.image||n.video)&&n.source)throw new Error("Source and prompt/image/video are mutually exclusive. Please only use source.");return await this.generateVideosInternal(n)}}maybeMoveToResponseJsonSchem(e){e.config&&e.config.responseSchema&&(e.config.responseJsonSchema||Object.keys(e.config.responseSchema).includes("$schema")&&(e.config.responseJsonSchema=e.config.responseSchema,delete e.config.responseSchema))}async processParamsMaybeAddMcpUsage(e){var n,r,i;const o=(n=e.config)===null||n===void 0?void 0:n.tools;if(!o)return e;const s=await Promise.all(o.map(async c=>hs(c)?await c.tool():c)),u={model:e.model,contents:e.contents,config:Object.assign(Object.assign({},e.config),{tools:s})};if(u.config.tools=s,e.config&&e.config.tools&&OB(e.config.tools)){const c=(i=(r=e.config.httpOptions)===null||r===void 0?void 0:r.headers)!==null&&i!==void 0?i:{};let f=Object.assign({},c);Object.keys(f).length===0&&(f=this.apiClient.getDefaultHeaders()),DB(f),u.config.httpOptions=Object.assign(Object.assign({},e.config.httpOptions),{headers:f})}return u}async initAfcToolsMap(e){var n,r,i;const o=new Map;for(const s of(r=(n=e.config)===null||n===void 0?void 0:n.tools)!==null&&r!==void 0?r:[])if(hs(s)){const u=s,c=await u.tool();for(const f of(i=c.functionDeclarations)!==null&&i!==void 0?i:[]){if(!f.name)throw new Error("Function declaration name is required.");if(o.has(f.name))throw new Error(`Duplicate tool declaration name: ${f.name}`);o.set(f.name,u)}}return o}async processAfcStream(e){var n,r,i;const o=(i=(r=(n=e.config)===null||n===void 0?void 0:n.automaticFunctionCalling)===null||r===void 0?void 0:r.maximumRemoteCalls)!==null&&i!==void 0?i:BR;let s=!1,u=0;const c=await this.initAfcToolsMap(e);return(function(f,p,y){var v,x;return ds(this,arguments,function*(){for(var w,A,S,C;u<o;){s&&(u++,s=!1);const E=yield ut(f.processParamsMaybeAddMcpUsage(y)),N=yield ut(f.generateContentStreamInternal(E)),D=[],L=[];try{for(var P=!0,M=(A=void 0,Ru(N)),O;O=yield ut(M.next()),w=O.done,!w;P=!0){C=O.value,P=!1;const U=C;if(yield yield ut(U),U.candidates&&(!((v=U.candidates[0])===null||v===void 0)&&v.content)){L.push(U.candidates[0].content);for(const F of(x=U.candidates[0].content.parts)!==null&&x!==void 0?x:[])if(u<o&&F.functionCall){if(!F.functionCall.name)throw new Error("Function call name was not returned by the model.");if(p.has(F.functionCall.name)){const B=yield ut(p.get(F.functionCall.name).callTool([F.functionCall]));D.push(...B)}else throw new Error(`Automatic function calling was requested, but not all the tools the model used implement the CallableTool interface. Available tools: ${p.keys()}, mising tool: ${F.functionCall.name}`)}}}}catch(U){A={error:U}}finally{try{!P&&!w&&(S=M.return)&&(yield ut(S.call(M)))}finally{if(A)throw A.error}}if(D.length>0){s=!0;const U=new cu;U.candidates=[{content:{role:"user",parts:D}}],yield yield ut(U);const F=[];F.push(...L),F.push({role:"user",parts:D});const B=Wn(y.contents).concat(F);y.contents=B}else break}})})(this,c,e)}async generateContentInternal(e){var n,r,i,o;let s,u="",c={};if(this.apiClient.isVertexAI()){const f=IR(this.apiClient,e);return u=me("{model}:generateContent",f._url),c=f._query,delete f._url,delete f._query,s=this.apiClient.request({path:u,queryParams:c,body:JSON.stringify(f),httpMethod:"POST",httpOptions:(n=e.config)===null||n===void 0?void 0:n.httpOptions,abortSignal:(r=e.config)===null||r===void 0?void 0:r.abortSignal}).then(p=>p.json().then(y=>{const v=y;return v.sdkHttpResponse={headers:p.headers},v})),s.then(p=>{const y=LR(p),v=new cu;return Object.assign(v,y),v})}else{const f=DR(this.apiClient,e);return u=me("{model}:generateContent",f._url),c=f._query,delete f._url,delete f._query,s=this.apiClient.request({path:u,queryParams:c,body:JSON.stringify(f),httpMethod:"POST",httpOptions:(i=e.config)===null||i===void 0?void 0:i.httpOptions,abortSignal:(o=e.config)===null||o===void 0?void 0:o.abortSignal}).then(p=>p.json().then(y=>{const v=y;return v.sdkHttpResponse={headers:p.headers},v})),s.then(p=>{const y=kR(p),v=new cu;return Object.assign(v,y),v})}}async generateContentStreamInternal(e){var n,r,i,o;let s,u="",c={};if(this.apiClient.isVertexAI()){const f=IR(this.apiClient,e);return u=me("{model}:streamGenerateContent?alt=sse",f._url),c=f._query,delete f._url,delete f._query,s=this.apiClient.requestStream({path:u,queryParams:c,body:JSON.stringify(f),httpMethod:"POST",httpOptions:(n=e.config)===null||n===void 0?void 0:n.httpOptions,abortSignal:(r=e.config)===null||r===void 0?void 0:r.abortSignal}),s.then(function(y){return ds(this,arguments,function*(){var v,x,w,A;try{for(var S=!0,C=Ru(y),P;P=yield ut(C.next()),v=P.done,!v;S=!0){A=P.value,S=!1;const M=A,O=LR(yield ut(M.json()));O.sdkHttpResponse={headers:M.headers};const E=new cu;Object.assign(E,O),yield yield ut(E)}}catch(M){x={error:M}}finally{try{!S&&!v&&(w=C.return)&&(yield ut(w.call(C)))}finally{if(x)throw x.error}}})})}else{const f=DR(this.apiClient,e);return u=me("{model}:streamGenerateContent?alt=sse",f._url),c=f._query,delete f._url,delete f._query,s=this.apiClient.requestStream({path:u,queryParams:c,body:JSON.stringify(f),httpMethod:"POST",httpOptions:(i=e.config)===null||i===void 0?void 0:i.httpOptions,abortSignal:(o=e.config)===null||o===void 0?void 0:o.abortSignal}),s.then(function(y){return ds(this,arguments,function*(){var v,x,w,A;try{for(var S=!0,C=Ru(y),P;P=yield ut(C.next()),v=P.done,!v;S=!0){A=P.value,S=!1;const M=A,O=kR(yield ut(M.json()));O.sdkHttpResponse={headers:M.headers};const E=new cu;Object.assign(E,O),yield yield ut(E)}}catch(M){x={error:M}}finally{try{!S&&!v&&(w=C.return)&&(yield ut(w.call(C)))}finally{if(x)throw x.error}}})})}}async embedContent(e){var n,r,i,o;let s,u="",c={};if(this.apiClient.isVertexAI()){const f=JJ(this.apiClient,e);return u=me("{model}:predict",f._url),c=f._query,delete f._url,delete f._query,s=this.apiClient.request({path:u,queryParams:c,body:JSON.stringify(f),httpMethod:"POST",httpOptions:(n=e.config)===null||n===void 0?void 0:n.httpOptions,abortSignal:(r=e.config)===null||r===void 0?void 0:r.abortSignal}).then(p=>p.json().then(y=>{const v=y;return v.sdkHttpResponse={headers:p.headers},v})),s.then(p=>{const y=QJ(p),v=new hR;return Object.assign(v,y),v})}else{const f=XJ(this.apiClient,e);return u=me("{model}:batchEmbedContents",f._url),c=f._query,delete f._url,delete f._query,s=this.apiClient.request({path:u,queryParams:c,body:JSON.stringify(f),httpMethod:"POST",httpOptions:(i=e.config)===null||i===void 0?void 0:i.httpOptions,abortSignal:(o=e.config)===null||o===void 0?void 0:o.abortSignal}).then(p=>p.json().then(y=>{const v=y;return v.sdkHttpResponse={headers:p.headers},v})),s.then(p=>{const y=ZJ(p),v=new hR;return Object.assign(v,y),v})}}async generateImagesInternal(e){var n,r,i,o;let s,u="",c={};if(this.apiClient.isVertexAI()){const f=xZ(this.apiClient,e);return u=me("{model}:predict",f._url),c=f._query,delete f._url,delete f._query,s=this.apiClient.request({path:u,queryParams:c,body:JSON.stringify(f),httpMethod:"POST",httpOptions:(n=e.config)===null||n===void 0?void 0:n.httpOptions,abortSignal:(r=e.config)===null||r===void 0?void 0:r.abortSignal}).then(p=>p.json().then(y=>{const v=y;return v.sdkHttpResponse={headers:p.headers},v})),s.then(p=>{const y=SZ(p),v=new pR;return Object.assign(v,y),v})}else{const f=bZ(this.apiClient,e);return u=me("{model}:predict",f._url),c=f._query,delete f._url,delete f._query,s=this.apiClient.request({path:u,queryParams:c,body:JSON.stringify(f),httpMethod:"POST",httpOptions:(i=e.config)===null||i===void 0?void 0:i.httpOptions,abortSignal:(o=e.config)===null||o===void 0?void 0:o.abortSignal}).then(p=>p.json().then(y=>{const v=y;return v.sdkHttpResponse={headers:p.headers},v})),s.then(p=>{const y=TZ(p),v=new pR;return Object.assign(v,y),v})}}async editImageInternal(e){var n,r;let i,o="",s={};if(this.apiClient.isVertexAI()){const u=HJ(this.apiClient,e);return o=me("{model}:predict",u._url),s=u._query,delete u._url,delete u._query,i=this.apiClient.request({path:o,queryParams:s,body:JSON.stringify(u),httpMethod:"POST",httpOptions:(n=e.config)===null||n===void 0?void 0:n.httpOptions,abortSignal:(r=e.config)===null||r===void 0?void 0:r.abortSignal}).then(c=>c.json().then(f=>{const p=f;return p.sdkHttpResponse={headers:c.headers},p})),i.then(c=>{const f=GJ(c),p=new b9;return Object.assign(p,f),p})}else throw new Error("This method is only supported by the Vertex AI.")}async upscaleImageInternal(e){var n,r;let i,o="",s={};if(this.apiClient.isVertexAI()){const u=zQ(this.apiClient,e);return o=me("{model}:predict",u._url),s=u._query,delete u._url,delete u._query,i=this.apiClient.request({path:o,queryParams:s,body:JSON.stringify(u),httpMethod:"POST",httpOptions:(n=e.config)===null||n===void 0?void 0:n.httpOptions,abortSignal:(r=e.config)===null||r===void 0?void 0:r.abortSignal}).then(c=>c.json().then(f=>{const p=f;return p.sdkHttpResponse={headers:c.headers},p})),i.then(c=>{const f=KQ(c),p=new x9;return Object.assign(p,f),p})}else throw new Error("This method is only supported by the Vertex AI.")}async recontextImage(e){var n,r;let i,o="",s={};if(this.apiClient.isVertexAI()){const u=dQ(this.apiClient,e);return o=me("{model}:predict",u._url),s=u._query,delete u._url,delete u._query,i=this.apiClient.request({path:o,queryParams:s,body:JSON.stringify(u),httpMethod:"POST",httpOptions:(n=e.config)===null||n===void 0?void 0:n.httpOptions,abortSignal:(r=e.config)===null||r===void 0?void 0:r.abortSignal}).then(c=>c.json()),i.then(c=>{const f=hQ(c),p=new T9;return Object.assign(p,f),p})}else throw new Error("This method is only supported by the Vertex AI.")}async segmentImage(e){var n,r;let i,o="",s={};if(this.apiClient.isVertexAI()){const u=wQ(this.apiClient,e);return o=me("{model}:predict",u._url),s=u._query,delete u._url,delete u._query,i=this.apiClient.request({path:o,queryParams:s,body:JSON.stringify(u),httpMethod:"POST",httpOptions:(n=e.config)===null||n===void 0?void 0:n.httpOptions,abortSignal:(r=e.config)===null||r===void 0?void 0:r.abortSignal}).then(c=>c.json()),i.then(c=>{const f=_Q(c),p=new S9;return Object.assign(p,f),p})}else throw new Error("This method is only supported by the Vertex AI.")}async get(e){var n,r,i,o;let s,u="",c={};if(this.apiClient.isVertexAI()){const f=qZ(this.apiClient,e);return u=me("{name}",f._url),c=f._query,delete f._url,delete f._query,s=this.apiClient.request({path:u,queryParams:c,body:JSON.stringify(f),httpMethod:"GET",httpOptions:(n=e.config)===null||n===void 0?void 0:n.httpOptions,abortSignal:(r=e.config)===null||r===void 0?void 0:r.abortSignal}).then(p=>p.json()),s.then(p=>TT(p))}else{const f=UZ(this.apiClient,e);return u=me("{name}",f._url),c=f._query,delete f._url,delete f._query,s=this.apiClient.request({path:u,queryParams:c,body:JSON.stringify(f),httpMethod:"GET",httpOptions:(i=e.config)===null||i===void 0?void 0:i.httpOptions,abortSignal:(o=e.config)===null||o===void 0?void 0:o.abortSignal}).then(p=>p.json()),s.then(p=>xT(p))}}async listInternal(e){var n,r,i,o;let s,u="",c={};if(this.apiClient.isVertexAI()){const f=ZZ(this.apiClient,e);return u=me("{models_url}",f._url),c=f._query,delete f._url,delete f._query,s=this.apiClient.request({path:u,queryParams:c,body:JSON.stringify(f),httpMethod:"GET",httpOptions:(n=e.config)===null||n===void 0?void 0:n.httpOptions,abortSignal:(r=e.config)===null||r===void 0?void 0:r.abortSignal}).then(p=>p.json().then(y=>{const v=y;return v.sdkHttpResponse={headers:p.headers},v})),s.then(p=>{const y=eQ(p),v=new mR;return Object.assign(v,y),v})}else{const f=JZ(this.apiClient,e);return u=me("{models_url}",f._url),c=f._query,delete f._url,delete f._query,s=this.apiClient.request({path:u,queryParams:c,body:JSON.stringify(f),httpMethod:"GET",httpOptions:(i=e.config)===null||i===void 0?void 0:i.httpOptions,abortSignal:(o=e.config)===null||o===void 0?void 0:o.abortSignal}).then(p=>p.json().then(y=>{const v=y;return v.sdkHttpResponse={headers:p.headers},v})),s.then(p=>{const y=QZ(p),v=new mR;return Object.assign(v,y),v})}}async update(e){var n,r,i,o;let s,u="",c={};if(this.apiClient.isVertexAI()){const f=HQ(this.apiClient,e);return u=me("{model}",f._url),c=f._query,delete f._url,delete f._query,s=this.apiClient.request({path:u,queryParams:c,body:JSON.stringify(f),httpMethod:"PATCH",httpOptions:(n=e.config)===null||n===void 0?void 0:n.httpOptions,abortSignal:(r=e.config)===null||r===void 0?void 0:r.abortSignal}).then(p=>p.json()),s.then(p=>TT(p))}else{const f=FQ(this.apiClient,e);return u=me("{name}",f._url),c=f._query,delete f._url,delete f._query,s=this.apiClient.request({path:u,queryParams:c,body:JSON.stringify(f),httpMethod:"PATCH",httpOptions:(i=e.config)===null||i===void 0?void 0:i.httpOptions,abortSignal:(o=e.config)===null||o===void 0?void 0:o.abortSignal}).then(p=>p.json()),s.then(p=>xT(p))}}async delete(e){var n,r,i,o;let s,u="",c={};if(this.apiClient.isVertexAI()){const f=qJ(this.apiClient,e);return u=me("{name}",f._url),c=f._query,delete f._url,delete f._query,s=this.apiClient.request({path:u,queryParams:c,body:JSON.stringify(f),httpMethod:"DELETE",httpOptions:(n=e.config)===null||n===void 0?void 0:n.httpOptions,abortSignal:(r=e.config)===null||r===void 0?void 0:r.abortSignal}).then(p=>p.json().then(y=>{const v=y;return v.sdkHttpResponse={headers:p.headers},v})),s.then(p=>{const y=$J(p),v=new gR;return Object.assign(v,y),v})}else{const f=UJ(this.apiClient,e);return u=me("{name}",f._url),c=f._query,delete f._url,delete f._query,s=this.apiClient.request({path:u,queryParams:c,body:JSON.stringify(f),httpMethod:"DELETE",httpOptions:(i=e.config)===null||i===void 0?void 0:i.httpOptions,abortSignal:(o=e.config)===null||o===void 0?void 0:o.abortSignal}).then(p=>p.json().then(y=>{const v=y;return v.sdkHttpResponse={headers:p.headers},v})),s.then(p=>{const y=BJ(p),v=new gR;return Object.assign(v,y),v})}}async countTokens(e){var n,r,i,o;let s,u="",c={};if(this.apiClient.isVertexAI()){const f=IJ(this.apiClient,e);return u=me("{model}:countTokens",f._url),c=f._query,delete f._url,delete f._query,s=this.apiClient.request({path:u,queryParams:c,body:JSON.stringify(f),httpMethod:"POST",httpOptions:(n=e.config)===null||n===void 0?void 0:n.httpOptions,abortSignal:(r=e.config)===null||r===void 0?void 0:r.abortSignal}).then(p=>p.json().then(y=>{const v=y;return v.sdkHttpResponse={headers:p.headers},v})),s.then(p=>{const y=LJ(p),v=new yR;return Object.assign(v,y),v})}else{const f=DJ(this.apiClient,e);return u=me("{model}:countTokens",f._url),c=f._query,delete f._url,delete f._query,s=this.apiClient.request({path:u,queryParams:c,body:JSON.stringify(f),httpMethod:"POST",httpOptions:(i=e.config)===null||i===void 0?void 0:i.httpOptions,abortSignal:(o=e.config)===null||o===void 0?void 0:o.abortSignal}).then(p=>p.json().then(y=>{const v=y;return v.sdkHttpResponse={headers:p.headers},v})),s.then(p=>{const y=kJ(p),v=new yR;return Object.assign(v,y),v})}}async computeTokens(e){var n,r;let i,o="",s={};if(this.apiClient.isVertexAI()){const u=AJ(this.apiClient,e);return o=me("{model}:computeTokens",u._url),s=u._query,delete u._url,delete u._query,i=this.apiClient.request({path:o,queryParams:s,body:JSON.stringify(u),httpMethod:"POST",httpOptions:(n=e.config)===null||n===void 0?void 0:n.httpOptions,abortSignal:(r=e.config)===null||r===void 0?void 0:r.abortSignal}).then(c=>c.json().then(f=>{const p=f;return p.sdkHttpResponse={headers:c.headers},p})),i.t
257hen(c=>{const f=wJ(c),p=new A9;return Object.assign(p,f),p})}else throw new Error("This method is only supported by the Vertex AI.")}async generateVideosInternal(e){var n,r,i,o;let s,u="",c={};if(this.apiClient.isVertexAI()){const f=MZ(this.apiClient,e);return u=me("{model}:predictLongRunning",f._url),c=f._query,delete f._url,delete f._query,s=this.apiClient.request({path:u,queryParams:c,body:JSON.stringify(f),httpMethod:"POST",httpOptions:(n=e.config)===null||n===void 0?void 0:n.httpOptions,abortSignal:(r=e.config)===null||r===void 0?void 0:r.abortSignal}).then(p=>p.json()),s.then(p=>{const y=CZ(p),v=new Yd;return Object.assign(v,y),v})}else{const f=EZ(this.apiClient,e);return u=me("{model}:predictLongRunning",f._url),c=f._query,delete f._url,delete f._query,s=this.apiClient.request({path:u,queryParams:c,body:JSON.stringify(f),httpMethod:"POST",httpOptions:(i=e.config)===null||i===void 0?void 0:i.httpOptions,abortSignal:(o=e.config)===null||o===void 0?void 0:o.abortSignal}).then(p=>p.json()),s.then(p=>{const y=_Z(p),v=new Yd;return Object.assign(v,y),v})}}}/** 258 * @license 259 * Copyright 2025 Google LLC 260 * SPDX-License-Identifier: Apache-2.0 261 */class Uee extends Zo{constructor(e){super(),this.apiClient=e}async getVideosOperation(e){const n=e.operation,r=e.config;if(n.name===void 0||n.name==="")throw new Error("Operation name is required.");if(this.apiClient.isVertexAI()){const i=n.name.split("/operations/")[0];let o;r&&"httpOptions"in r&&(o=r.httpOptions);const s=await this.fetchPredictVideosOperationInternal({operationName:n.name,resourceName:i,config:{httpOptions:o}});return n._fromAPIResponse({apiResponse:s,isVertexAI:!0})}else{const i=await this.getVideosOperationInternal({operationName:n.name,config:r});return n._fromAPIResponse({apiResponse:i,isVertexAI:!1})}}async get(e){const n=e.operation,r=e.config;if(n.name===void 0||n.name==="")throw new Error("Operation name is required.");if(this.apiClient.isVertexAI()){const i=n.name.split("/operations/")[0];let o;r&&"httpOptions"in r&&(o=r.httpOptions);const s=await this.fetchPredictVideosOperationInternal({operationName:n.name,resourceName:i,config:{httpOptions:o}});return n._fromAPIResponse({apiResponse:s,isVertexAI:!0})}else{const i=await this.getVideosOperationInternal({operationName:n.name,config:r});return n._fromAPIResponse({apiResponse:i,isVertexAI:!1})}}async getVideosOperationInternal(e){var n,r,i,o;let s,u="",c={};if(this.apiClient.isVertexAI()){const f=g9(e);return u=me("{operationName}",f._url),c=f._query,delete f._url,delete f._query,s=this.apiClient.request({path:u,queryParams:c,body:JSON.stringify(f),httpMethod:"GET",httpOptions:(n=e.config)===null||n===void 0?void 0:n.httpOptions,abortSignal:(r=e.config)===null||r===void 0?void 0:r.abortSignal}).then(p=>p.json()),s}else{const f=m9(e);return u=me("{operationName}",f._url),c=f._query,delete f._url,delete f._query,s=this.apiClient.request({path:u,queryParams:c,body:JSON.stringify(f),httpMethod:"GET",httpOptions:(i=e.config)===null||i===void 0?void 0:i.httpOptions,abortSignal:(o=e.config)===null||o===void 0?void 0:o.abortSignal}).then(p=>p.json()),s}}async fetchPredictVideosOperationInternal(e){var n,r;let i,o="",s={};if(this.apiClient.isVertexAI()){const u=l9(e);return o=me("{resourceName}:fetchPredictOperation",u._url),s=u._query,delete u._url,delete u._query,i=this.apiClient.request({path:o,queryParams:s,body:JSON.stringify(u),httpMethod:"POST",httpOptions:(n=e.config)===null||n===void 0?void 0:n.httpOptions,abortSignal:(r=e.config)===null||r===void 0?void 0:r.abortSignal}).then(c=>c.json()),i}else throw new Error("This method is only supported by the Vertex AI.")}}/** 262 * @license 263 * Copyright 2025 Google LLC 264 * SPDX-License-Identifier: Apache-2.0 265 */function jR(){return{}}function qee(t){const e={},n=h(t,["name"]);return n!=null&&m(e,["name"],n),e}function Bee(t){const e={},n=h(t,["disabled"]);n!=null&&m(e,["disabled"],n);const r=h(t,["startOfSpeechSensitivity"]);r!=null&&m(e,["startOfSpeechSensitivity"],r);const i=h(t,["endOfSpeechSensitivity"]);i!=null&&m(e,["endOfSpeechSensitivity"],i);const o=h(t,["prefixPaddingMs"]);o!=null&&m(e,["prefixPaddingMs"],o);const s=h(t,["silenceDurationMs"]);return s!=null&&m(e,["silenceDurationMs"],s),e}function $ee(t){const e={};if(h(t,["displayName"])!==void 0)throw new Error("displayName parameter is not supported in Gemini API.");const n=h(t,["data"]);n!=null&&m(e,["data"],n);const r=h(t,["mimeType"]);return r!=null&&m(e,["mimeType"],r),e}function Vee(t){const e={},n=h(t,["parts"]);if(n!=null){let i=n;Array.isArray(i)&&(i=i.map(o=>tte(o))),m(e,["parts"],i)}const r=h(t,["role"]);return r!=null&&m(e,["role"],r),e}function jee(t){const e={},n=h(t,["triggerTokens"]);n!=null&&m(e,["triggerTokens"],n);const r=h(t,["slidingWindow"]);return r!=null&&m(e,["slidingWindow"],ate(r)),e}function Fee(t,e,n){const r={},i=h(e,["expireTime"]);n!==void 0&&i!=null&&m(n,["expireTime"],i);const o=h(e,["newSessionExpireTime"]);n!==void 0&&o!=null&&m(n,["newSessionExpireTime"],o);const s=h(e,["uses"]);n!==void 0&&s!=null&&m(n,["uses"],s);const u=h(e,["liveConnectConstraints"]);n!==void 0&&u!=null&&m(n,["bidiGenerateContentSetup"],Qee(t,u));const c=h(e,["lockAdditionalFields"]);return n!==void 0&&c!=null&&m(n,["fieldMask"],c),r}function Hee(t,e){const n={},r=h(e,["config"]);return r!=null&&m(n,["config"],Fee(t,r,n)),n}function Gee(t){const e={},n=h(t,["mode"]);n!=null&&m(e,["mode"],n);const r=h(t,["dynamicThreshold"]);return r!=null&&m(e,["dynamicThreshold"],r),e}function zee(t){const e={};if(h(t,["displayName"])!==void 0)throw new Error("displayName parameter is not supported in Gemini API.");const n=h(t,["fileUri"]);n!=null&&m(e,["fileUri"],n);const r=h(t,["mimeType"]);return r!=null&&m(e,["mimeType"],r),e}function Kee(t){const e={},n=h(t,["id"]);n!=null&&m(e,["id"],n);const r=h(t,["args"]);r!=null&&m(e,["args"],r);const i=h(t,["name"]);return i!=null&&m(e,["name"],i),e}function Yee(t){const e={},n=h(t,["behavior"]);n!=null&&m(e,["behavior"],n);const r=h(t,["description"]);r!=null&&m(e,["description"],r);const i=h(t,["name"]);i!=null&&m(e,["name"],i);const o=h(t,["parameters"]);o!=null&&m(e,["parameters"],o);const s=h(t,["parametersJsonSchema"]);s!=null&&m(e,["parametersJsonSchema"],s);const u=h(t,["response"]);u!=null&&m(e,["response"],u);const c=h(t,["responseJsonSchema"]);return c!=null&&m(e,["responseJsonSchema"],c),e}function Wee(t){const e={},n=h(t,["dynamicRetrievalConfig"]);return n!=null&&m(e,["dynamicRetrievalConfig"],Gee(n)),e}function Xee(t){const e={},n=h(t,["timeRangeFilter"]);if(n!=null&&m(e,["timeRangeFilter"],Jee(n)),h(t,["excludeDomains"])!==void 0)throw new Error("excludeDomains parameter is not supported in Gemini API.");return e}function Jee(t){const e={},n=h(t,["startTime"]);n!=null&&m(e,["startTime"],n);const r=h(t,["endTime"]);return r!=null&&m(e,["endTime"],r),e}function Zee(t,e){const n={},r=h(t,["generationConfig"]);e!==void 0&&r!=null&&m(e,["setup","generationConfig"],r);const i=h(t,["responseModalities"]);e!==void 0&&i!=null&&m(e,["setup","generationConfig","responseModalities"],i);const o=h(t,["temperature"]);e!==void 0&&o!=null&&m(e,["setup","generationConfig","temperature"],o);const s=h(t,["topP"]);e!==void 0&&s!=null&&m(e,["setup","generationConfig","topP"],s);const u=h(t,["topK"]);e!==void 0&&u!=null&&m(e,["setup","generationConfig","topK"],u);const c=h(t,["maxOutputTokens"]);e!==void 0&&c!=null&&m(e,["setup","generationConfig","maxOutputTokens"],c);const f=h(t,["mediaResolution"]);e!==void 0&&f!=null&&m(e,["setup","generationConfig","mediaResolution"],f);const p=h(t,["seed"]);e!==void 0&&p!=null&&m(e,["setup","generationConfig","seed"],p);const y=h(t,["speechConfig"]);e!==void 0&&y!=null&&m(e,["setup","generationConfig","speechConfig"],lte(LA(y)));const v=h(t,["enableAffectiveDialog"]);e!==void 0&&v!=null&&m(e,["setup","generationConfig","enableAffectiveDialog"],v);const x=h(t,["systemInstruction"]);e!==void 0&&x!=null&&m(e,["setup","systemInstruction"],Vee(rn(x)));const w=h(t,["tools"]);if(e!==void 0&&w!=null){let E=Xs(w);Array.isArray(E)&&(E=E.map(N=>cte(Ws(N)))),m(e,["setup","tools"],E)}const A=h(t,["sessionResumption"]);e!==void 0&&A!=null&&m(e,["setup","sessionResumption"],ote(A));const S=h(t,["inputAudioTranscription"]);e!==void 0&&S!=null&&m(e,["setup","inputAudioTranscription"],jR());const C=h(t,["outputAudioTranscription"]);e!==void 0&&C!=null&&m(e,["setup","outputAudioTranscription"],jR());const P=h(t,["realtimeInputConfig"]);e!==void 0&&P!=null&&m(e,["setup","realtimeInputConfig"],ite(P));const M=h(t,["contextWindowCompression"]);e!==void 0&&M!=null&&m(e,["setup","contextWindowCompression"],jee(M));const O=h(t,["proactivity"]);return e!==void 0&&O!=null&&m(e,["setup","proactivity"],rte(O)),n}function Qee(t,e){const n={},r=h(e,["model"]);r!=null&&m(n,["setup","model"],je(t,r));const i=h(e,["config"]);return i!=null&&m(n,["config"],Zee(i,n)),n}function ete(t){const e={},n=h(t,["speakerVoiceConfigs"]);if(n!=null){let r=n;Array.isArray(r)&&(r=r.map(i=>ste(i))),m(e,["speakerVoiceConfigs"],r)}return e}function tte(t){const e={},n=h(t,["videoMetadata"]);n!=null&&m(e,["videoMetadata"],dte(n));const r=h(t,["thought"]);r!=null&&m(e,["thought"],r);const i=h(t,["inlineData"]);i!=null&&m(e,["inlineData"],$ee(i));const o=h(t,["fileData"]);o!=null&&m(e,["fileData"],zee(o));const s=h(t,["thoughtSignature"]);s!=null&&m(e,["thoughtSignature"],s);const u=h(t,["functionCall"]);u!=null&&m(e,["functionCall"],Kee(u));const c=h(t,["codeExecutionResult"]);c!=null&&m(e,["codeExecutionResult"],c);const f=h(t,["executableCode"]);f!=null&&m(e,["executableCode"],f);const p=h(t,["functionResponse"]);p!=null&&m(e,["functionResponse"],p);const y=h(t,["text"]);return y!=null&&m(e,["text"],y),e}function nte(t){const e={},n=h(t,["voiceName"]);return n!=null&&m(e,["voiceName"],n),e}function rte(t){const e={},n=h(t,["proactiveAudio"]);return n!=null&&m(e,["proactiveAudio"],n),e}function ite(t){const e={},n=h(t,["automaticActivityDetection"]);n!=null&&m(e,["automaticActivityDetection"],Bee(n));const r=h(t,["activityHandling"]);r!=null&&m(e,["activityHandling"],r);const i=h(t,["turnCoverage"]);return i!=null&&m(e,["turnCoverage"],i),e}function ote(t){const e={},n=h(t,["handle"]);if(n!=null&&m(e,["handle"],n),h(t,["transparent"])!==void 0)throw new Error("transparent parameter is not supported in Gemini API.");return e}function ate(t){const e={},n=h(t,["targetTokens"]);return n!=null&&m(e,["targetTokens"],n),e}function ste(t){const e={},n=h(t,["speaker"]);n!=null&&m(e,["speaker"],n);const r=h(t,["voiceConfig"]);return r!=null&&m(e,["voiceConfig"],IB(r)),e}function lte(t){const e={},n=h(t,["voiceConfig"]);n!=null&&m(e,["voiceConfig"],IB(n));const r=h(t,["multiSpeakerVoiceConfig"]);r!=null&&m(e,["multiSpeakerVoiceConfig"],ete(r));const i=h(t,["languageCode"]);return i!=null&&m(e,["languageCode"],i),e}function ute(t){const e={},n=h(t,["environment"]);n!=null&&m(e,["environment"],n);const r=h(t,["excludedPredefinedFunctions"]);return r!=null&&m(e,["excludedPredefinedFunctions"],r),e}function cte(t){const e={},n=h(t,["functionDeclarations"]);if(n!=null){let c=n;Array.isArray(c)&&(c=c.map(f=>Yee(f))),m(e,["functionDeclarations"],c)}if(h(t,["retrieval"])!==void 0)throw new Error("retrieval parameter is not supported in Gemini API.");const r=h(t,["googleSearch"]);r!=null&&m(e,["googleSearch"],Xee(r));const i=h(t,["googleSearchRetrieval"]);if(i!=null&&m(e,["googleSearchRetrieval"],Wee(i)),h(t,["enterpriseWebSearch"])!==void 0)throw new Error("enterpriseWebSearch parameter is not supported in Gemini API.");if(h(t,["googleMaps"])!==void 0)throw new Error("googleMaps parameter is not supported in Gemini API.");
265h(t,["urlContext"])!=null&&m(e,["urlContext"],fte());const s=h(t,["computerUse"]);s!=null&&m(e,["computerUse"],ute(s));const u=h(t,["codeExecution"]);return u!=null&&m(e,["codeExecution"],u),e}function fte(){return{}}function dte(t){const e={},n=h(t,["fps"]);n!=null&&m(e,["fps"],n);const r=h(t,["endOffset"]);r!=null&&m(e,["endOffset"],r);const i=h(t,["startOffset"]);return i!=null&&m(e,["startOffset"],i),e}function IB(t){const e={},n=h(t,["prebuiltVoiceConfig"]);return n!=null&&m(e,["prebuiltVoiceConfig"],nte(n)),e}/** 266 * @license 267 * Copyright 2025 Google LLC 268 * SPDX-License-Identifier: Apache-2.0 269 */function hte(t){const e=[];for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)){const r=t[n];if(typeof r=="object"&&r!=null&&Object.keys(r).length>0){const i=Object.keys(r).map(o=>`${n}.${o}`);e.push(...i)}else e.push(n)}return e.join(",")}function pte(t,e){let n=null;const r=t.bidiGenerateContentSetup;if(typeof r=="object"&&r!==null&&"setup"in r){const o=r.setup;typeof o=="object"&&o!==null?(t.bidiGenerateContentSetup=o,n=o):delete t.bidiGenerateContentSetup}else r!==void 0&&delete t.bidiGenerateContentSetup;const i=t.fieldMask;if(n){const o=hte(n);if(Array.isArray(e==null?void 0:e.lockAdditionalFields)&&(e==null?void 0:e.lockAdditionalFields.length)===0)o?t.fieldMask=o:delete t.fieldMask;else if(e!=null&&e.lockAdditionalFields&&e.lockAdditionalFields.length>0&&i!==null&&Array.isArray(i)&&i.length>0){const s=["temperature","topK","topP","maxOutputTokens","responseModalities","seed","speechConfig"];let u=[];i.length>0&&(u=i.map(f=>s.includes(f)?`generationConfig.${f}`:f));const c=[];o&&c.push(o),u.length>0&&c.push(...u),c.length>0?t.fieldMask=c.join(","):delete t.fieldMask}else delete t.fieldMask}else i!==null&&Array.isArray(i)&&i.length>0?t.fieldMask=i.join(","):delete t.fieldMask;return t}class mte extends Zo{constructor(e){super(),this.apiClient=e}async create(e){var n,r;let i,o="",s={};if(this.apiClient.isVertexAI())throw new Error("The client.tokens.create method is only supported by the Gemini Developer API.");{const u=Hee(this.apiClient,e);o=me("auth_tokens",u._url),s=u._query,delete u.config,delete u._url,delete u._query;const c=pte(u,e.config);return i=this.apiClient.request({path:o,queryParams:s,body:JSON.stringify(c),httpMethod:"POST",httpOptions:(n=e.config)===null||n===void 0?void 0:n.httpOptions,abortSignal:(r=e.config)===null||r===void 0?void 0:r.abortSignal}).then(f=>f.json()),i.then(f=>qee(f))}}}/** 270 * @license 271 * Copyright 2025 Google LLC 272 * SPDX-License-Identifier: Apache-2.0 273 */function gte(t){const e={},n=h(t,["name"]);return n!=null&&m(e,["_url","name"],n),e}function yte(t){const e={},n=h(t,["name"]);return n!=null&&m(e,["_url","name"],n),e}function vte(t,e){const n={};if(h(t,["validationDataset"])!==void 0)throw new Error("validationDataset parameter is not supported in Gemini API.");const r=h(t,["tunedModelDisplayName"]);if(e!==void 0&&r!=null&&m(e,["displayName"],r),h(t,["description"])!==void 0)throw new Error("description parameter is not supported in Gemini API.");const i=h(t,["epochCount"]);e!==void 0&&i!=null&&m(e,["tuningTask","hyperparameters","epochCount"],i);const o=h(t,["learningRateMultiplier"]);if(o!=null&&m(n,["tuningTask","hyperparameters","learningRateMultiplier"],o),h(t,["exportLastCheckpointOnly"])!==void 0)throw new Error("exportLastCheckpointOnly parameter is not supported in Gemini API.");if(h(t,["preTunedModelCheckpointId"])!==void 0)throw new Error("preTunedModelCheckpointId parameter is not supported in Gemini API.");if(h(t,["adapterSize"])!==void 0)throw new Error("adapterSize parameter is not supported in Gemini API.");const s=h(t,["batchSize"]);e!==void 0&&s!=null&&m(e,["tuningTask","hyperparameters","batchSize"],s);const u=h(t,["learningRate"]);if(e!==void 0&&u!=null&&m(e,["tuningTask","hyperparameters","learningRate"],u),h(t,["labels"])!==void 0)throw new Error("labels parameter is not supported in Gemini API.");return n}function bte(t,e){const n={},r=h(t,["validationDataset"]);e!==void 0&&r!=null&&m(e,["supervisedTuningSpec"],Ute(r,n));const i=h(t,["tunedModelDisplayName"]);e!==void 0&&i!=null&&m(e,["tunedModelDisplayName"],i);const o=h(t,["description"]);e!==void 0&&o!=null&&m(e,["description"],o);const s=h(t,["epochCount"]);e!==void 0&&s!=null&&m(e,["supervisedTuningSpec","hyperParameters","epochCount"],s);const u=h(t,["learningRateMultiplier"]);e!==void 0&&u!=null&&m(e,["supervisedTuningSpec","hyperParameters","learningRateMultiplier"],u);const c=h(t,["exportLastCheckpointOnly"]);e!==void 0&&c!=null&&m(e,["supervisedTuningSpec","exportLastCheckpointOnly"],c);const f=h(t,["adapterSize"]);if(e!==void 0&&f!=null&&m(e,["supervisedTuningSpec","hyperParameters","adapterSize"],f),h(t,["batchSize"])!==void 0)throw new Error("batchSize parameter is not supported in Vertex AI.");
273if(h(t,["learningRate"])!==void 0)throw new Error("learningRate parameter is not supported in Vertex AI.");const p=h(t,["labels"]);return e!==void 0&&p!=null&&m(e,["labels"],p),n}function xte(t){const e={},n=h(t,["baseModel"]);n!=null&&m(e,["baseModel"],n);const r=h(t,["preTunedModel"]);r!=null&&m(e,["preTunedModel"],r);const i=h(t,["trainingDataset"]);i!=null&&m(e,["tuningTask","trainingData"],Dte(i));const o=h(t,["config"]);return o!=null&&vte(o,e),e}function Tte(t){const e={},n=h(t,["baseModel"]);n!=null&&m(e,["baseModel"],n);const r=h(t,["preTunedModel"]);r!=null&&m(e,["preTunedModel"],r);const i=h(t,["trainingDataset"]);i!=null&&m(e,["supervisedTuningSpec","trainingDatasetUri"],Ite(i,e));const o=h(t,["config"]);return o!=null&&bte(o,e),e}function Ste(t){const e={},n=h(t,["name"]);return n!=null&&m(e,["_url","name"],n),e}function Ate(t){const e={},n=h(t,["name"]);return n!=null&&m(e,["_url","name"],n),e}function wte(t,e){const n={},r=h(t,["pageSize"]);e!==void 0&&r!=null&&m(e,["_query","pageSize"],r);const i=h(t,["pageToken"]);e!==void 0&&i!=null&&m(e,["_query","pageToken"],i);const o=h(t,["filter"]);return e!==void 0&&o!=null&&m(e,["_query","filter"],o),n}function _te(t,e){const n={},r=h(t,["pageSize"]);e!==void 0&&r!=null&&m(e,["_query","pageSize"],r);const i=h(t,["pageToken"]);e!==void 0&&i!=null&&m(e,["_query","pageToken"],i);const o=h(t,["filter"]);return e!==void 0&&o!=null&&m(e,["_query","filter"],o),n}function Cte(t){const e={},n=h(t,["config"]);return n!=null&&wte(n,e),e}function Ete(t){const e={},n=h(t,["config"]);return n!=null&&_te(n,e),e}function Mte(t){const e={},n=h(t,["sdkHttpResponse"]);n!=null&&m(e,["sdkHttpResponse"],n);const r=h(t,["nextPageToken"]);r!=null&&m(e,["nextPageToken"],r);const i=h(t,["tunedModels"]);if(i!=null){let o=i;Array.isArray(o)&&(o=o.map(s=>kB(s))),m(e,["tuningJobs"],o)}return e}function Pte(t){const e={},n=h(t,["sdkHttpResponse"]);n!=null&&m(e,["sdkHttpResponse"],n);const r=h(t,["nextPageToken"]);r!=null&&m(e,["nextPageToken"],r);const i=h(t,["tuningJobs"]);if(i!=null){let o=i;Array.isArray(o)&&(o=o.map(s=>AT(s))),m(e,["tuningJobs"],o)}return e}function Rte(t){const e={},n=h(t,["checkpointId"]);n!=null&&m(e,["checkpointId"],n);const r=h(t,["epoch"]);r!=null&&m(e,["epoch"],r);const i=h(t,["step"]);i!=null&&m(e,["step"],i);const o=h(t,["endpoint"]);return o!=null&&m(e,["endpoint"],o),e}function Nte(t){const e={},n=h(t,["name"]);n!=null&&m(e,["model"],n);const r=h(t,["name"]);return r!=null&&m(e,["endpoint"],r),e}function Ote(t){const e={},n=h(t,["model"]);n!=null&&m(e,["model"],n);const r=h(t,["endpoint"]);r!=null&&m(e,["endpoint"],r);const i=h(t,["checkpoints"]);if(i!=null){let o=i;Array.isArray(o)&&(o=o.map(s=>Rte(s))),m(e,["checkpoints"],o)}return e}function Dte(t){const e={};if(h(t,["gcsUri"])!==void 0)throw new Error("gcsUri parameter is not supported in Gemini API.");if(h(t,["vertexDatasetResource"])!==void 0)throw new Error("vertexDatasetResource parameter is not supported in Gemini API.");const n=h(t,["examples"]);if(n!=null){let r=n;Array.isArray(r)&&(r=r.map(i=>kte(i))),m(e,["examples","examples"],r)}return e}function Ite(t,e){const n={},r=h(t,["gcsUri"]);e!==void 0&&r!=null&&m(e,["supervisedTuningSpec","trainingDatasetUri"],r);const i=h(t,["vertexDatasetResource"]);if(e!==void 0&&i!=null&&m(e,["supervisedTuningSpec","trainingDatasetUri"],i),h(t,["examples"])!==void 0)throw new Error("examples parameter is not supported in Vertex AI.");return n}function kte(t){const e={},n=h(t,["textInput"]);n!=null&&m(e,["textInput"],n);const r=h(t,["output"]);return r!=null&&m(e,["output"],r),e}function kB(t){const e={},n=h(t,["sdkHttpResponse"]);n!=null&&m(e,["sdkHttpResponse"],n);const r=h(t,["name"]);r!=null&&m(e,["name"],r);const i=h(t,["state"]);i!=null&&m(e,["state"],sB(i));const o=h(t,["createTime"]);o!=null&&m(e,["createTime"],o);const s=h(t,["tuningTask","startTime"]);s!=null&&m(e,["startTime"],s);const u=h(t,["tuningTask","completeTime"]);u!=null&&m(e,["endTime"],u);const c=h(t,["updateTime"]);c!=null&&m(e,["updateTime"],c);const f=h(t,["description"]);f!=null&&m(e,["description"],f);const p=h(t,["baseModel"]);p!=null&&m(e,["baseModel"],p);const y=h(t,["_self"]);y!=null&&m(e,["tunedModel"],Nte(y));const v=h(t,["customBaseModel"]);v!=null&&m(e,["customBaseModel"],v);const x=h(t,["experiment"]);x!=null&&m(e,["experiment"],x);const w=h(t,["labels"]);w!=null&&m(e,["labels"],w);const A=h(t,["outputUri"]);A!=null&&m(e,["outputUri"],A);const S=h(t,["pipelineJob"]);S!=null&&m(e,["pipelineJob"],S);const C=h(t,["serviceAccount"]);C!=null&&m(e,["serviceAccount"],C);const P=h(t,["tunedModelDisplayName"]);return P!=null&&m(e,["tunedModelDisplayName"],P),e}function AT(t){const e={},n=h(t,["sdkHttpResponse"]);n!=null&&m(e,["sdkHttpResponse"],n);const r=h(t,["name"]);r!=null&&m(e,["name"],r);const i=h(t,["state"]);i!=null&&m(e,["state"],sB(i));const o=h(t,["createTime"]);o!=null&&m(e,["createTime"],o);const s=h(t,["startTime"]);s!=null&&m(e,["startTime"],s);const u=h(t,["endTime"]);u!=null&&m(e,["endTime"],u);const c=h(t,["updateTime"]);c!=null&&m(e,["updateTime"],c);const f=h(t,["error"]);f!=null&&m(e,["error"],f);const p=h(t,["description"]);p!=null&&m(e,["description"],p);const y=h(t,["baseModel"]);y!=null&&m(e,["baseModel"],y);const v=h(t,["tunedModel"]);v!=null&&m(e,["tunedModel"],Ote(v));const x=h(t,["preTunedModel"]);x!=null&&m(e,["preTunedModel"],x);const w=h(t,["supervisedTuningSpec"]);w!=null&&m(e,["supervisedTuningSpec"],w);const A=h(t,["tuningDataStats"]);A!=null&&m(e,["tuningDataStats"],A);const S=h(t,["encryptionSpec"]);S!=null&&m(e,["encryptionSpec"],S);const C=h(t,["partnerModelTuningSpec"]);C!=null&&m(e,["partnerModelTuningSpec"],C);const P=h(t,["customBaseModel"]);P!=null&&m(e,["customBaseModel"],P);const M=h(t,["experiment"]);M!=null&&m(e,["experiment"],M);const O=h(t,["labels"]);O!=null&&m(e,["labels"],O);const E=h(t,["outputUri"]);E!=null&&m(e,["outputUri"],E);const N=h(t,["pipelineJob"]);N!=null&&m(e,["pipelineJob"],N);const D=h(t,["serviceAccount"]);D!=null&&m(e,["serviceAccount"],D);const L=h(t,["tunedModelDisplayName"]);return L!=null&&m(e,["tunedModelDisplayName"],L),e}function Lte(t){const e={},n=h(t,["sdkHttpResponse"]);n!=null&&m(e,["sdkHttpResponse"],n);const r=h(t,["name"]);r!=null&&m(e,["name"],r);const i=h(t,["metadata"]);i!=null&&m(e,["metadata"],i);const o=h(t,["done"]);o!=null&&m(e,["done"],o);const s=h(t,["error"]);return s!=null&&m(e,["error"],s),e}function Ute(t,e){const n={},r=h(t,["gcsUri"]);r!=null&&m(n,["validationDatasetUri"],r);const i=h(t,["vertexDatasetResource"]);return e!==void 0&&i!=null&&m(e,["supervisedTuningSpec","trainingDatasetUri"],i),n}/** 274 * @license 275 * Copyright 2025 Google LLC 276 * SPDX-License-Identifier: Apache-2.0 277 */class qte extends Zo{constructor(e){super(),this.apiClient=e,this.get=async n=>await this.getInternal(n),this.list=async(n={})=>new Oc(Go.PAGED_ITEM_TUNING_JOBS,r=>this.listInternal(r),await this.listInternal(n),n),this.tune=async n=>{var r;if(this.apiClient.isVertexAI())if(n.baseModel.startsWith("projects/")){const i={tunedModelName:n.baseModel};!((r=n.config)===null||r===void 0)&&r.preTunedModelCheckpointId&&(i.checkpointId=n.config.preTunedModelCheckpointId);const o=Object.assign(Object.assign({},n),{preTunedModel:i});return o.baseModel=void 0,await this.tuneInternal(o)}else{const i=Object.assign({},n);return await this.tuneInternal(i)}else{const i=Object.assign({},n),o=await this.tuneMldevInternal(i);let s="";return o.metadata!==void 0&&o.metadata.tunedModel!==void 0?s=o.metadata.tunedModel:o.name!==void 0&&o.name.includes("/operations/")&&(s=o.name.split("/operations/")[0]),{name:s,state:pT.JOB_STATE_QUEUED}}}}async getInternal(e){var n,r,i,o;let s,u="",c={};if(this.apiClient.isVertexAI()){const f=Ate(e);return u=me("{name}",f._url),c=f._query,delete f._url,delete f._query,s=this.apiClient.request({path:u,queryParams:c,body:JSON.stringify(f),httpMethod:"GET",httpOptions:(n=e.config)===null||n===void 0?void 0:n.httpOptions,abortSignal:(r=e.config)===null||r===void 0?void 0:r.abortSignal}).then(p=>p.json().then(y=>{const v=y;return v.sdkHttpResponse={headers:p.headers},v})),s.then(p=>AT(p))}else{const f=Ste(e);return u=me("{name}",f._url),c=f._query,delete f._url,delete f._query,s=this.apiClient.request({path:u,queryParams:c,body:JSON.stringify(f),httpMethod:"GET",httpOptions:(i=e.config)===null||i===void 0?void 0:i.httpOptions,abortSignal:(o=e.config)===null||o===void 0?void 0:o.abortSignal}).then(p=>p.json().then(y=>{const v=y;return v.sdkHttpResponse={headers:p.headers},v})),s.then(p=>kB(p))}}async listInternal(e){var n,r,i,o;let s,u="",c={};if(this.apiClient.isVertexAI()){const f=Ete(e);return u=me("tuningJobs",f._url),c=f._query,delete f._url,delete f._query,s=this.apiClient.request({path:u,queryParams:c,body:JSON.stringify(f),httpMethod:"GET",httpOptions:(n=e.config)===null||n===void 0?void 0:n.httpOptions,abortSignal:(r=e.config)===null||r===void 0?void 0:r.abortSignal}).then(p=>p.json().then(y=>{const v=y;return v.sdkHttpResponse={headers:p.headers},v})),s.then(p=>{const y=Pte(p),v=new vR;return Object.assign(v,y),v})}else{const f=Cte(e);return u=me("tunedModels",f._url),c=f._query,delete f._url,delete f._query,s=this.apiClient.request({path:u,queryParams:c,body:JSON.stringify(f),httpMethod:"GET",httpOptions:(i=e.config)===null||i===void 0?void 0:i.httpOptions,abortSignal:(o=e.config)===null||o===void 0?void 0:o.abortSignal}).then(p=>p.json().then(y=>{const v=y;return v.sdkHttpResponse={headers:p.headers},v})),s.then(p=>{const y=Mte(p),v=new vR;return Object.assign(v,y),v})}}async cancel(e){var n,r,i,o;let s="",u={};if(this.apiClient.isVertexAI()){const c=yte(e);s=me("{name}:cancel",c._url),u=c._query,delete c._url,delete c._query,await this.apiClient.request({path:s,queryParams:u,body:JSON.stringify(c),httpMethod:"POST",httpOptions:(n=e.config)===null||n===void 0?void 0:n.httpOptions,abortSignal:(r=e.config)===null||r===void 0?void 0:r.abortSignal})}else{const c=gte(e);s=me("{name}:cancel",c._url),u=c._query,delete c._url,delete c._query,await this.apiClient.request({path:s,queryParams:u,body:JSON.stringify(c),httpMethod:"POST",httpOptions:(i=e.config)===null||i===void 0?void 0:i.httpOptions,abortSignal:(o=e.config)===null||o===void 0?void 0:o.abortSignal})}}async tuneInternal(e){var n,r;let i,o="",s={};if(this.apiClient.isVertexAI()){const u=Tte(e);return o=me("tuningJobs",u._url),s=u._query,delete u._url,delete u._query,i=this.apiClient.request({path:o,queryParams:s,body:JSON.stringify(u),httpMethod:"POST",httpOptions:(n=e.config)===null||n===void 0?void 0:n.httpOptions,abortSignal:(r=e.config)===null||r===void 0?void 0:r.abortSignal}).then(c=>c.json().then(f=>{const p=f;return p.sdkHttpResponse={headers:c.headers},p})),i.then(c=>AT(c))}else throw new Error("This method is only supported by the Vertex AI.")}async tuneMldevInternal(e){var n,r;let i,o="",s={};if(this.apiClient.isVertexAI())throw new Error("This method is only supported by the Gemini Developer API.");{const u=xte(e);return o=me("tunedModels",u._url),s=u._query,delete u._url,delete u._query,i=this.apiClient.request({path:o,queryParams:s,body:JSON.stringify(u),httpMethod:"POST",httpOptions:(n=e.config)===null||n===void 0?void 0:n.httpOptions,abortSignal:(r=e.config)===null||r===void 0?void 0:r.abortSignal}).then(c=>c.json().then(f=>{const p=f;return p.sdkHttpResponse={headers:c.headers},p})),i.then(c=>Lte(c))}}}/** 278 * @license 279 * Copyright 2025 Google LLC 280 * SPDX-License-Identifier: Apache-2.0 281 */class Bte{async download(e,n){throw new Error("Download to file is not supported in the browser, please use a browser compliant download like an <a> tag.")}}const $te=1024*1024*8,Vte=3,jte=1e3,Fte=2,Iy="x-goog-upload-status";async function Hte(t,e,n){var r,i,o;let s=0,u=0,c=new mT(new Response),f="upload";for(s=t.size;u<s;){const y=Math.min($te,s-u),v=t.slice(u,u+y);u+y>=s&&(f+=", finalize");let x=0,w=jte;
281for(;x<Vte&&(c=await n.request({path:"",body:v,httpMethod:"POST",httpOptions:{apiVersion:"",baseUrl:e,headers:{"X-Goog-Upload-Command":f,"X-Goog-Upload-Offset":String(u),"Content-Length":String(y)}}}),!(!((r=c==null?void 0:c.headers)===null||r===void 0)&&r[Iy]));)x++,await zte(w),w=w*Fte;if(u+=y,((i=c==null?void 0:c.headers)===null||i===void 0?void 0:i[Iy])!=="active")break;if(s<=u)throw new Error("All content has been uploaded, but the upload status is not finalized.")}const p=await(c==null?void 0:c.json());if(((o=c==null?void 0:c.headers)===null||o===void 0?void 0:o[Iy])!=="final")throw new Error("Failed to upload file: Upload status is not finalized.");return p.file}async function Gte(t){return{size:t.size,type:t.type}}function zte(t){return new Promise(e=>setTimeout(e,t))}class Kte{async upload(e,n,r){if(typeof e=="string")throw new Error("File path is not supported in browser uploader.");return await Hte(e,n,r)}async stat(e){if(typeof e=="string")throw new Error("File path is not supported in browser uploader.");return await Gte(e)}}/** 282 * @license 283 * Copyright 2025 Google LLC 284 * SPDX-License-Identifier: Apache-2.0 285 */class Yte{create(e,n,r){return new Wte(e,n,r)}}class Wte{constructor(e,n,r){this.url=e,this.headers=n,this.callbacks=r}connect(){this.ws=new WebSocket(this.url),this.ws.onopen=this.callbacks.onopen,this.ws.onerror=this.callbacks.onerror,this.ws.onclose=this.callbacks.onclose,this.ws.onmessage=this.callbacks.onmessage}send(e){if(this.ws===void 0)throw new Error("WebSocket is not connected");this.ws.send(e)}close(){if(this.ws===void 0)throw new Error("WebSocket is not connected");this.ws.close()}}/** 286 * @license 287 * Copyright 2025 Google LLC 288 * SPDX-License-Identifier: Apache-2.0 289 */const FR="x-goog-api-key";class Xte{constructor(e){this.apiKey=e}async addAuthHeaders(e){if(e.get(FR)===null){if(this.apiKey.startsWith("auth_tokens/"))throw new Error("Ephemeral tokens are only supported by the live API.");if(!this.apiKey)throw new Error("API key is missing. Please provide a valid API key.");e.append(FR,this.apiKey)}}}/** 290 * @license 291 * Copyright 2025 Google LLC 292 * SPDX-License-Identifier: Apache-2.0 293 */const Jte="gl-node/";class Zte{constructor(e){var n;if(e.apiKey==null)throw new Error("An API Key must be set when running in a browser");if(e.project||e.location)throw new Error("Vertex AI project based authentication is not supported on browser runtimes. Please do not provide a project or location.");this.vertexai=(n=e.vertexai)!==null&&n!==void 0?n:!1,this.apiKey=e.apiKey;const r=s9(e.httpOptions,e.vertexai,void 0,void 0);r&&(e.httpOptions?e.httpOptions.baseUrl=r:e.httpOptions={baseUrl:r}),this.apiVersion=e.apiVersion;const i=new Xte(this.apiKey);this.apiClient=new gee({auth:i,apiVersion:this.apiVersion,apiKey:this.apiKey,vertexai:this.vertexai,httpOptions:e.httpOptions,userAgentExtra:Jte+"web",uploader:new Kte,downloader:new Bte}),this.models=new Lee(this.apiClient),this.live=new Pee(this.apiClient,i,new Yte),this.batches=new ZK(this.apiClient),this.chats=new aW(this.models,this.apiClient),this.caches=new rW(this.apiClient),this.files=new bW(this.apiClient),this.operations=new Uee(this.apiClient),this.authTokens=new mte(this.apiClient),this.tunings=new qte(this.apiClient)}}const Qte=async t=>{const e=new Zte({apiKey:void 0});try{return(await e.models.generateContent({model:"gemini-2.5-flash",contents:t})).text}catch(n){throw console.error("Error calling Gemini API:",n),new Error("Failed to get a response from the AI model.")}},ene=()=>{const[t,e]=k.useState("Explain how AI can help Ugandan farmers in 50 words."),[n,r]=k.useState(!1),[i,o]=k.useState(""),[s,u]=k.useState(null),c=async f=>{f.preventDefault(),r(!0),u(null),o("");try{const p=await Qte(t);o(p)}catch(p){u("An error occurred while communicating with the model."),console.error(p)}finally{r(!1)}};return _.jsx("div",{className:"py-16",children:_.jsxs("div",{className:"container mx-auto px-6 max-w-3xl",children:[_.jsxs("div",{className:"text-center mb-12 border p-8 rounded-lg shadow-lg bg-white",children:[_.jsx("h1",{className:"text-4xl md:text-5xl font-serif font-bold text-brand-text mb-4",children:"Model Sandbox"}),_.jsx("p",{className:"text-lg max-w-3xl mx-auto text-gray-700",children:"Interact with a live demo of one of our models. This is a safe, rate-limited environment."})]}),_.jsxs("div",{className:"bg-white p-8 rounded-lg shadow-lg",children:[_.jsxs("form",{onSubmit:c,children:[_.jsx("label",{htmlFor:"prompt",className:"block text-lg font-semibold text-brand-text mb-2",children:"Enter your prompt:"}),_.jsx("textarea",{id:"prompt",rows:4,value:t,onChange:f=>e(f.target.value),className:"w-full px-4 py-3 border border-gray-300 rounded-lg shadow-sm focus:outline-none focus:ring-2 focus:ring-brand-primary",placeholder:"e.g., How can we detect diseases in cassava plants?"}),_.jsx("button",{type:"submit",disabled:n,className:"mt-4 w-full bg-brand-primary hover:bg-teal-800 text-white font-bold py-3 px-6 rounded-md transition duration-300 disabled:bg-gray-400 disabled:cursor-not-allowed flex items-center justify-center",children:n?_.
293jsxs(_.Fragment,{children:[_.jsxs("svg",{className:"animate-spin -ml-1 mr-3 h-5 w-5 text-white",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[_.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),_.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),"Generating..."]}):"Run Model"})]}),s&&_.jsx("div",{className:"mt-6 p-4 bg-red-100 border border-red-400 text-red-700 rounded-lg",children:s}),i&&_.jsxs("div",{className:"mt-6",children:[_.jsx("h3",{className:"text-lg font-semibold text-brand-text mb-2",children:"Model Response:"}),_.jsx("div",{className:"bg-gray-50 p-4 rounded-lg border",children:_.jsx("p",{className:"text-gray-800 whitespace-pre-wrap",children:i})})]})]})]})})},tne=()=>{const{id:t}=zh(),e=vs.find(n=>n.id===t);return e?_.jsx("div",{className:"bg-white py-16",children:_.jsxs("div",{className:"container mx-auto px-6",children:[_.jsxs("div",{className:"mb-8",children:[_.jsx("span",{className:"text-brand-primary font-semibold uppercase tracking-wider",children:e.domain}),_.jsx("h1",{className:"text-4xl md:text-5xl font-serif font-bold text-brand-text mt-2 mb-4",children:e.title})]}),_.jsxs("div",{className:"grid lg:grid-cols-3 gap-12",children:[_.jsxs("div",{className:"lg:col-span-2",children:[_.jsx("img",{src:e.imageUrl,alt:e.title,className:"w-full h-auto rounded-lg shadow-lg mb-8"}),_.jsx("h2",{className:"text-2xl font-serif font-bold text-brand-text mb-4",children:"Project Overview"}),_.jsxs("p",{className:"text-gray-700 leading-relaxed mb-8",children:[e.summary," We are also adding more details here to make it a proper project page. This project utilizes a Convolutional Neural Network (CNN) architecture, specifically MobileNetV2, for efficient on-device performance. The model was trained on a dataset of over 5,000 images collected from local farms in collaboration with agricultural extension officers."]}),_.jsx("h3",{className:"text-xl font-serif font-bold text-brand-text mb-4",children:"Methodology"}),_.jsx("p",{className:"text-gray-700 leading-relaxed mb-8",children:"Data was pre-processed through augmentation techniques like rotation, flipping, and color jittering to improve model robustness. We employed transfer learning, fine-tuning a pre-trained MobileNetV2 model on our specific cassava disease dataset. The final model is quantized for deployment on Android devices using TensorFlow Lite."}),_.jsx("h3",{className:"text-xl font-serif font-bold text-brand-text mb-4",children:"Outcomes & Impact"}),_.jsxs("p",{className:"text-gray-700 leading-relaxed",children:[e.impactMetric?`The model achieved ${e.impactMetric} on our test set.`:""," This tool has the potential to significantly reduce crop loss and improve livelihoods for thousands of smallholder farmers by enabling early and accurate disease diagnosis, reducing the need for costly expert consultations."]})]}),_.jsx("div",{className:"lg:col-span-1",children:_.jsxs("div",{className:"bg-gray-50 p-6 rounded-lg shadow-md sticky top-24",children:[_.jsx("h3",{className:"text-xl font-serif font-bold text-brand-text mb-4",children:"Project Details"}),_.jsxs("div",{className:"mb-4",children:[_.jsx("h4",{className:"font-bold text-gray-800",children:"Status"}),_.jsx("span",{className:`px-2 py-1 text-sm font-semibold rounded-full inline-block mt-1 ${e.status==="Active"?"bg-green-100 text-green-800":"bg-gray-200 text-gray-800"}`,children:e.status})]}),_.jsxs("div",{className:"mb-4",children:[_.jsx("h4",{className:"font-bold text-gray-800",children:"Team Members"}),_.jsx("ul",{className:"list-disc list-inside text-brand-primary mt-1",children:e.team.map(n=>{const r=Fu.find(i=>i.name===n);return r?_.jsx("li",{children:_.jsx(Pe,{to:`/people/${r.id}`,className:"hover:underline",children:r.name})},r.id):_.jsx("li",{className:"text-gray-700",children:n},n)})})]}),_.jsxs("div",{className:"flex flex-col space-y-3",children:[e.repoUrl&&_.jsxs("a",{href:e.repoUrl,target:"_blank",rel:"noopener noreferrer",className:"flex items-center justify-center bg-brand-text hover:bg-gray-800 text-white font-bold py-2 px-4 roun
293ded-md transition duration-300",children:[_.jsx(Yh,{}),_.jsx("span",{className:"ml-2",children:"View Repository"})]}),e.demoUrl&&_.jsx(Pe,{to:e.demoUrl.replace("#",""),className:"bg-brand-accent-warm hover:bg-orange-700 text-white text-center font-bold py-2 px-4 rounded-md transition duration-300",children:"Live Demo"})]})]})})]})]})}):_.jsxs("div",{className:"text-center py-20",children:[_.jsx("h1",{className:"text-4xl font-serif font-bold text-brand-text mb-4",children:"Project Not Found"}),_.jsx("p",{className:"text-lg text-gray-700",children:"The project you are looking for does not exist."}),_.jsx(Pe,{to:"/research",className:"mt-8 inline-block bg-brand-primary hover:bg-teal-800 text-white font-bold py-3 px-6 rounded-md transition duration-300",children:"Back to Research"})]})},nne=()=>{const{id:t}=zh(),e=Fu.find(i=>i.id===t);if(!e)return _.jsxs("div",{className:"text-center py-20",children:[_.jsx("h1",{className:"text-4xl font-serif font-bold text-brand-text mb-4",children:"Member Not Found"}),_.jsx("p",{className:"text-lg text-gray-700",children:"The team member you are looking for does not exist."}),_.jsx(Pe,{to:"/people",className:"mt-8 inline-block bg-brand-primary hover:bg-teal-800 text-white font-bold py-3 px-6 rounded-md transition duration-300",children:"Back to Our Team"})]});const n=vs.filter(i=>i.team.includes(e.name)),r=MA.filter(i=>i.authors.includes(e.name));return _.jsxs("div",{className:"bg-brand-background py-16",children:[e&&_.jsx(Ys,{title:`${e.name} - ${e.role}`,description:e.bio,image:e.imageUrl}),_.jsxs("div",{className:"container mx-auto px-6",children:[_.jsxs("div",{className:"flex flex-col md:flex-row items-center md:items-start bg-white p-8 rounded-lg shadow-xl mb-12",children:[_.jsx("img",{src:e.imageUrl,alt:e.name,className:"w-48 h-48 rounded-full object-cover shadow-md mb-6 md:mb-0 md:mr-8 flex-shrink-0"}),_.jsxs("div",{className:"text-center md:text-left",children:[_.jsx("h1",{className:"text-4xl font-serif font-bold text-brand-text mb-2",children:e.name}),_.jsx("p",{className:"text-xl font-semibold text-brand-primary mb-4",children:e.role}),_.jsx("p",{className:"text-gray-700 leading-relaxed max-w-2l mb-6",children:e.bio}),_.jsxs("div",{className:"flex justify-center md:justify-start space-x-4",children:[e.orcid&&_.jsx("a",{href:`https://orcid.org/${e.orcid}`,target:"_blank",rel:"noopener noreferrer",className:"text-gray-500 hover:text-brand-primary transition-colors duration-300","aria-label":`${e.name}'s ORCID profile`,children:_.jsx(XS,{})}),e.githubUsername&&_.jsx("a",{href:`https://github.com/${e.githubUsername}`,target:"_blank",rel:"noopener noreferrer",className:"text-gray-500 hover:text-brand-primary transition-colors duration-300","aria-label":`${e.name}'s GitHub profile`,children:_.jsx(Yh,{})}),e.googleScholarId&&_.jsx("a",{href:`https://scholar.google.com/citations?user=${e.googleScholarId}`,target:"_blank",rel:"noopener noreferrer",className:"text-gray-500 hover:text-brand-primary font-bold text-2xl transition-colors duration-300","aria-label":`${e.name}'s Google Scholar profile`,children:"G"}),e.socialLinks&&e.socialLinks.map(i=>_.jsxs("a",{href:i.url,target:"_blank",rel:"noopener noreferrer",className:"text-gray-500 hover:text-brand-primary transition-colors duration-300","aria-label":`${e.name}'s ${i.platform} profile`,children:[i.platform==="Twitter"&&_.jsx(tU,{}),i.platform==="LinkedIn"&&_.jsx(rH,{}),i.platform==="Personal Website"&&_.jsx(iH,{})]},i.platform))]})]})]}),n.length>0&&_.jsxs("div",{className:"mb-12",children:[_.jsx("h2",{className:"text-3xl font-serif font-bold text-brand-text mb-8",children:"Associated Projects"}),_.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-8",children:n.map(i=>_.jsx(PA,{project:i},i.id))})]}),r.length>0&&_.jsxs("div",{children:[_.jsx("h2",{className:"text-3xl font-serif font-bold text-brand-text mb-8",children:"Publications"}),_.jsx("div",{className:"space-y-6",children:r.map(i=>_.jsx(RA,{publication:i},i.id))})]}),_.jsx("div",{className:"flex justify-center md:justify-start space-x-4",children:_.jsxs(Pe,{to:"/people",className:"mt-8 inl
293ine-block bg-brand-primary hover:bg-teal-800 text-white font-bold py-3 px-6 rounded-md transition duration-300",children:[_.jsx("span",{className:"mr-2",children:"â"})," Back to Our Team"]})})]})]})},rne=({dataset:t})=>_.jsxs("div",{className:"bg-white p-6 rounded-lg shadow-md hover:shadow-xl transition-shadow duration-300 flex flex-col",children:[_.jsx("h3",{className:"text-xl font-serif font-bold text-brand-text mb-2",children:t.title}),_.jsx("p",{className:"text-gray-600 text-sm mb-4 flex-grow",children:t.description}),_.jsxs("div",{className:"text-xs font-mono mb-4",children:[_.jsxs("a",{href:`https://doi.org/${t.doi}`,target:"_blank",rel:"noopener noreferrer",className:"text-brand-primary hover:underline",children:["DOI: ",t.doi]}),_.jsx("span",{className:"mx-2",children:"|"}),_.jsxs("span",{children:["License: ",t.license]})]}),_.jsx("div",{className:"mt-auto border-t pt-4",children:_.jsxs("div",{className:"flex items-center justify-between",children:[_.jsx(Pe,{to:`/datasets/${t.id}`,className:"font-bold text-brand-primary hover:underline",children:"View Details â"}),_.jsx(Pe,{to:`/projects/${t.projectId}`,className:"text-sm text-gray-500 hover:underline",children:"Related Project"})]})})]}),ine=()=>{const[t,e]=k.useState(""),n=k.useMemo(()=>zq.filter(r=>r.title.toLowerCase().includes(t.toLowerCase())||r.description.toLowerCase().includes(t.toLowerCase())),[t]);return _.jsx("div",{className:"py-16",children:_.jsxs("div",{className:"container mx-auto px-6",children:[_.jsxs("div",{className:"text-center mb-12",children:[_.jsx("h1",{className:"text-4xl md:text-5xl font-serif font-bold text-brand-text mb-4",children:"Datasets"}),_.jsx("p",{className:"text-lg max-w-3xl mx-auto text-gray-700",children:"Explore the open datasets curated and published by our lab to foster reproducible research."})]}),_.jsx("div",{className:"mb-8 max-w-2xl mx-auto",children:_.jsx("input",{type:"text",placeholder:"Search datasets by title or description...",value:t,onChange:r=>e(r.target.value),className:"w-full px-4 py-3 border border-gray-300 rounded-lg shadow-sm focus:outline-none focus:ring-2 focus:ring-brand-primary"})}),_.jsx("div",{className:"grid md:grid-cols-1 lg:grid-cols-2 gap-8",children:n.length>0?n.map(r=>_.jsx(rne,{dataset:r},r.id)):_.jsx("p",{className:"text-center text-gray-500 lg:col-span-2",children:"No datasets found matching your search."})})]})})};function LB(t){var e,n,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t)){var i=t.length;for(e=0;e<i;e++)t[e]&&(n=LB(t[e]))&&(r&&(r+=" "),r+=n)}else for(n in t)t[n]&&(r&&(r+=" "),r+=n);return r}function De(){for(var t,e,n=0,r="",i=arguments.length;n<i;n++)(t=arguments[n])&&(e=LB(t))&&(r&&(r+=" "),r+=e);return r}var ky,HR;function yn(){if(HR)return ky;HR=1;var t=Array.isArray;return ky=t,ky}var Ly,GR;function UB(){if(GR)return Ly;GR=1;var t=typeof rd=="object"&&rd&&rd.Object===Object&&rd;return Ly=t,Ly}var Uy,zR;function Nr(){if(zR)return Uy;zR=1;var t=UB(),e=typeof self=="object"&&self&&self.Object===Object&&self,n=t||e||Function("return this")();return Uy=n,Uy}var qy,KR;function Dc(){if(KR)return qy;KR=1;var t=Nr(),e=t.Symbol;return qy=e,qy}var By,YR;function one(){if(YR)return By;YR=1;var t=Dc(),e=Object.prototype,n=e.hasOwnProperty,r=e.toString,i=t?t.toStringTag:void 0;function o(s){var u=n.call(s,i),c=s[i];try{s[i]=void 0;var f=!0}catch{}var p=r.call(s);return f&&(u?s[i]=c:delete s[i]),p}return By=o,By}var $y,WR;function ane(){if(WR)return $y;WR=1;var t=Object.prototype,e=t.toString;function n(r){return e.call(r)}return $y=n,$y}var Vy,XR;function hi(){if(XR)return Vy;XR=1;var t=Dc(),e=one(),n=ane(),r="[object Null]",i="[object Undefined]",o=t?t.toStringTag:void 0;function s(u){return u==null?u===void 0?i:r:o&&o in Object(u)?e(u):n(u)}return Vy=s,Vy}var jy,JR;function pi(){if(JR)return jy;JR=1;function t(e){return e!=null&&typeof e=="object"}return jy=t,jy}var Fy,ZR;function Qs(){if(ZR)return Fy;ZR=1;var t=hi(),e=pi(),n="[object Symbol]";function r(i){return typeof i=="symbol"||e(i)&&t(i)==n}return Fy=r,Fy}var Hy,QR;function BA(){if(QR)return Hy;QR=1;var t=yn(),e=Qs(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;function i(o,s){if(t(o))return!1;var u=typeof o;return u=="number"||u=="symbol"||u=="boolean"||o==null||e(o)?!0:r.test(o)||!n.test(o)||s!=null&&o in Object(s)}return Hy=i,Hy}var Gy,eN;function to(){if(eN)return Gy;eN=1;function t(e){var n=typeof e;return e!=null&&(n=="object"||n=="function")}return Gy=t,Gy}var zy,tN;function $A(){if(tN)return zy;tN=1;var t=hi(),e=to(),n="[object AsyncFunction]",r="[object Function]",i="[object GeneratorFunction]",o="[object Proxy]";function s(u){if(!e(u))return!1;var c=t(u);return c==r||c==i||c==n||c==o}return zy=s,zy}var Ky,nN;function sne(){if(nN)return Ky;nN=1;var t=Nr(),e=t["__core-js_shared__"];return Ky=e,Ky}var Yy,rN;
vendor: 4,358 bytes, line 293
293function lne(){if(rN)return Yy;rN=1;var t=sne(),e=(function(){var r=/[^.]+$/.exec(t&&t.keys&&t.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""})();function n(r){return!!e&&e in r}return Yy=n,Yy}var Wy,iN;function qB(){if(iN)return Wy;iN=1;var t=Function.prototype,e=t.toString;function n(r){if(r!=null){try{return e.call(r)}catch{}try{return r+""}catch{}}return""}return Wy=n,Wy}var Xy,oN;function une(){if(oN)return Xy;oN=1;var t=$A(),e=lne(),n=to(),r=qB(),i=/[\\^$.*+?()[\]{}|]/g,o=/^\[object .+?Constructor\]$/,s=Function.prototype,u=Object.prototype,c=s.toString,f=u.hasOwnProperty,p=RegExp("^"+c.call(f).replace(i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function y(v){if(!n(v)||e(v))return!1;var x=t(v)?p:o;return x.test(r(v))}return Xy=y,Xy}var Jy,aN;function cne(){if(aN)return Jy;aN=1;function t(e,n){return e==null?void 0:e[n]}return Jy=t,Jy}var Zy,sN;function ea(){if(sN)return Zy;sN=1;var t=une(),e=cne();function n(r,i){var o=e(r,i);return t(o)?o:void 0}return Zy=n,Zy}var Qy,lN;function rp(){if(lN)return Qy;lN=1;var t=ea(),e=t(Object,"create");return Qy=e,Qy}var ev,uN;function fne(){if(uN)return ev;uN=1;var t=rp();function e(){this.__data__=t?t(null):{},this.size=0}return ev=e,ev}var tv,cN;function dne(){if(cN)return tv;cN=1;function t(e){var n=this.has(e)&&delete this.__data__[e];return this.size-=n?1:0,n}return tv=t,tv}var nv,fN;function hne(){if(fN)return nv;fN=1;var t=rp(),e="__lodash_hash_undefined__",n=Object.prototype,r=n.hasOwnProperty;function i(o){var s=this.__data__;if(t){var u=s[o];return u===e?void 0:u}return r.call(s,o)?s[o]:void 0}return nv=i,nv}var rv,dN;function pne(){if(dN)return rv;dN=1;var t=rp(),e=Object.prototype,n=e.hasOwnProperty;function r(i){var o=this.__data__;return t?o[i]!==void 0:n.call(o,i)}return rv=r,rv}var iv,hN;function mne(){if(hN)return iv;hN=1;var t=rp(),e="__lodash_hash_undefined__";function n(r,i){var o=this.__data__;return this.size+=this.has(r)?0:1,o[r]=t&&i===void 0?e:i,this}return iv=n,iv}var ov,pN;function gne(){if(pN)return ov;pN=1;var t=fne(),e=dne(),n=hne(),r=pne(),i=mne();function o(s){var u=-1,c=s==null?0:s.length;for(this.clear();++u<c;){var f=s[u];this.set(f[0],f[1])}}return o.prototype.clear=t,o.prototype.delete=e,o.prototype.get=n,o.prototype.has=r,o.prototype.set=i,ov=o,ov}var av,mN;function yne(){if(mN)return av;mN=1;function t(){this.__data__=[],this.size=0}return av=t,av}var sv,gN;function VA(){if(gN)return sv;gN=1;function t(e,n){return e===n||e!==e&&n!==n}return sv=t,sv}var lv,yN;function ip(){if(yN)return lv;yN=1;var t=VA();function e(n,r){for(var i=n.length;i--;)if(t(n[i][0],r))return i;return-1}return lv=e,lv}var uv,vN;function vne(){if(vN)return uv;vN=1;var t=ip(),e=Array.prototype,n=e.splice;function r(i){var o=this.__data__,s=t(o,i);if(s<0)return!1;var u=o.length-1;return s==u?o.pop():n.call(o,s,1),--this.size,!0}return uv=r,uv}var cv,bN;function bne(){if(bN)return cv;bN=1;var t=ip();function e(n){var r=this.__data__,i=t(r,n);return i<0?void 0:r[i][1]}return cv=e,cv}var fv,xN;function xne(){if(xN)return fv;xN=1;var t=ip();function e(n){return t(this.__data__,n)>-1}return fv=e,fv}var dv,TN;function Tne(){if(TN)return dv;TN=1;var t=ip();function e(n,r){var i=this.__data__,o=t(i,n);return o<0?(++this.size,i.push([n,r])):i[o][1]=r,this}return dv=e,dv}var hv,SN;function op(){if(SN)return hv;SN=1;var t=yne(),e=vne(),n=bne(),r=xne(),i=Tne();function o(s){var u=-1,c=s==null?0:s.length;for(this.clear();++u<c;){var f=s[u];this.set(f[0],f[1])}}return o.prototype.clear=t,o.prototype.delete=e,o.prototype.get=n,o.prototype.has=r,o.prototype.set=i,hv=o,hv}var pv,AN;function jA(){if(AN)return pv;AN=1;var t=ea(),e=Nr(),n=t(e,"Map");return pv=n,pv}var mv,wN;function Sne(){if(wN)return mv;wN=1;var t=gne(),e=op(),n=jA();function r(){this.size=0,this.__data__={hash:new t,map:new(n||e),string:new t}}return mv=r,mv}var gv,_N;function Ane(){if(_N)return gv;_N=1;function t(e){var n=typeof e;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?e!=="__proto__":e===null}return gv=t,gv}var yv,CN;function ap(){if(CN)return yv;CN=1;var t=Ane();function e(n,r){var i=n.__data__;return t(r)?i[typeof r=="string"?"string":"hash"]:i.map}return yv=e,yv}var vv,EN;function wne(){if(EN)return vv;EN=1;var t=ap();function e(n){var r=t(this,n).delete(n);return this.size-=r?1:0,r}return vv=e,vv}var bv,MN;
vendor: 8,606 bytes, lines 293-301
293function _ne(){if(MN)return bv;MN=1;var t=ap();function e(n){return t(this,n).get(n)}return bv=e,bv}var xv,PN;function Cne(){if(PN)return xv;PN=1;var t=ap();function e(n){return t(this,n).has(n)}return xv=e,xv}var Tv,RN;function Ene(){if(RN)return Tv;RN=1;var t=ap();function e(n,r){var i=t(this,n),o=i.size;return i.set(n,r),this.size+=i.size==o?0:1,this}return Tv=e,Tv}var Sv,NN;function FA(){if(NN)return Sv;NN=1;var t=Sne(),e=wne(),n=_ne(),r=Cne(),i=Ene();function o(s){var u=-1,c=s==null?0:s.length;for(this.clear();++u<c;){var f=s[u];this.set(f[0],f[1])}}return o.prototype.clear=t,o.prototype.delete=e,o.prototype.get=n,o.prototype.has=r,o.prototype.set=i,Sv=o,Sv}var Av,ON;function BB(){if(ON)return Av;ON=1;var t=FA(),e="Expected a function";function n(r,i){if(typeof r!="function"||i!=null&&typeof i!="function")throw new TypeError(e);var o=function(){var s=arguments,u=i?i.apply(this,s):s[0],c=o.cache;if(c.has(u))return c.get(u);var f=r.apply(this,s);return o.cache=c.set(u,f)||c,f};return o.cache=new(n.Cache||t),o}return n.Cache=t,Av=n,Av}var wv,DN;function Mne(){if(DN)return wv;DN=1;var t=BB(),e=500;function n(r){var i=t(r,function(s){return o.size===e&&o.clear(),s}),o=i.cache;return i}return wv=n,wv}var _v,IN;function Pne(){if(IN)return _v;IN=1;var t=Mne(),e=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,n=/\\(\\)?/g,r=t(function(i){var o=[];return i.charCodeAt(0)===46&&o.push(""),i.replace(e,function(s,u,c,f){o.push(c?f.replace(n,"$1"):u||s)}),o});return _v=r,_v}var Cv,kN;function HA(){if(kN)return Cv;kN=1;function t(e,n){for(var r=-1,i=e==null?0:e.length,o=Array(i);++r<i;)o[r]=n(e[r],r,e);return o}return Cv=t,Cv}var Ev,LN;function Rne(){if(LN)return Ev;LN=1;var t=Dc(),e=HA(),n=yn(),r=Qs(),i=t?t.prototype:void 0,o=i?i.toString:void 0;function s(u){if(typeof u=="string")return u;if(n(u))return e(u,s)+"";if(r(u))return o?o.call(u):"";var c=u+"";return c=="0"&&1/u==-1/0?"-0":c}return Ev=s,Ev}var Mv,UN;function $B(){if(UN)return Mv;UN=1;var t=Rne();function e(n){return n==null?"":t(n)}return Mv=e,Mv}var Pv,qN;function VB(){if(qN)return Pv;qN=1;var t=yn(),e=BA(),n=Pne(),r=$B();function i(o,s){return t(o)?o:e(o,s)?[o]:n(r(o))}return Pv=i,Pv}var Rv,BN;function sp(){if(BN)return Rv;BN=1;var t=Qs();function e(n){if(typeof n=="string"||t(n))return n;var r=n+"";return r=="0"&&1/n==-1/0?"-0":r}return Rv=e,Rv}var Nv,$N;function GA(){if($N)return Nv;$N=1;var t=VB(),e=sp();function n(r,i){i=t(i,r);for(var o=0,s=i.length;r!=null&&o<s;)r=r[e(i[o++])];return o&&o==s?r:void 0}return Nv=n,Nv}var Ov,VN;function jB(){if(VN)return Ov;VN=1;var t=GA();function e(n,r,i){var o=n==null?void 0:t(n,r);return o===void 0?i:o}return Ov=e,Ov}var Nne=jB();const Rn=$e(Nne);var Dv,jN;function One(){if(jN)return Dv;jN=1;function t(e){return e==null}return Dv=t,Dv}var Dne=One();const ke=$e(Dne);var Iv,FN;function Ine(){if(FN)return Iv;FN=1;var t=hi(),e=yn(),n=pi(),r="[object String]";function i(o){return typeof o=="string"||!e(o)&&n(o)&&t(o)==r}return Iv=i,Iv}var kne=Ine();const zo=$e(kne);var Lne=$A();const Ce=$e(Lne);var Une=to();const el=$e(Une);var kv={exports:{}},Ge={};/** 294 * @license React 295 * react-is.production.min.js 296 * 297 * Copyright (c) Facebook, Inc. and its affiliates. 298 * 299 * This source code is licensed under the MIT license found in the 300 * LICENSE file in the root directory of this source tree. 301 */var HN;function qne(){if(HN)return Ge;HN=1;var t=Symbol.for("react.element"),e=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),s=Symbol.for("react.context"),u=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),y=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),x=Symbol.for("react.offscreen"),w;w=Symbol.for("react.module.reference");function A(S){if(typeof S=="object"&&S!==null){var C=S.$$typeof;switch(C){case t:switch(S=S.type,S){case n:case i:case r:case f:case p:return S;default:switch(S=S&&S.$$typeof,S){case u:case s:case c:case v:case y:case o:return S;default:return C}}case e:return C}}}return Ge.ContextConsumer=s,Ge.ContextProvider=o,Ge.Element=t,Ge.ForwardRef=c,Ge.Fragment=n,Ge.Lazy=v,Ge.Memo=y,Ge.Portal=e,Ge.Profiler=i,Ge.StrictMode=r,Ge.Suspense=f,Ge.SuspenseList=p,Ge.isAsyncMode=function(){return!1},Ge.isConcurrentMode=function(){return!1},Ge.isContextConsumer=function(S){return A(S)===s},Ge.isContextProvider=function(S){return A(S)===o},Ge.isElement=function(S){return typeof S=="object"&&S!==null&&S.$$typeof===t},Ge.isForwardRef=function(S){return A(S)===c},Ge.isFragment=function(S){return A(S)===n},Ge.isLazy=function(S){return A(S)===v},Ge.isMemo=function(S){return A(S)===y},Ge.isPortal=function(S){return A(S)===e},Ge.isProfiler=function(S){return A(S)===i},Ge.isStrictMode=function(S){return A(S)===r},Ge.isSuspense=function(S){return A(S)===f},Ge.isSuspenseList=function(S){return A(S)===p},Ge.isValidElementType=function(S){return typeof S=="string"||typeof S=="function"||S===n||S===i||S===r||S===f||S===p||S===x||typeof S=="object"&&S!==null&&(S.$$typeof===v||S.$$typeof===y||S.$$typeof===o||S.$$typeof===s||S.$$typeof===c||S.$$typeof===w||S.getModuleId!==void 0)},Ge.typeOf=A,Ge}var GN;function Bne(){return GN||(GN=1,kv.exports=qne()),kv.exports}var $ne=Bne(),Lv,zN;function FB(){if(zN)return Lv;zN=1;var t=hi(),e=pi(),n="[object Number]";function r(i){return typeof i=="number"||e(i)&&t(i)==n}return Lv=r,Lv}var Uv,KN;function Vne(){if(KN)return Uv;KN=1;var t=FB();function e(n){return t(n)&&n!=+n}return Uv=e,Uv}var jne=Vne();const Ic=$e(jne);var Fne=FB();const Hne=$e(Fne);var ln=function(e){return e===0?0:e>0?1:-1},Uo=function(e){return zo(e)&&e.indexOf("%")===e.length-1},fe=function(e){return Hne(e)&&!Ic(e)},Gne=function(e){return ke(e)},kt=function(e){return fe(e)||zo(e)},zne=0,kc=function(e){var n=++zne;return"".concat(e||"").concat(n)},un=function(e,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!fe(e)&&!zo(e))return r;var o;if(Uo(e)){var s=e.indexOf("%");o=n*parseFloat(e.slice(0,s))/100}else o=+e;return Ic(o)&&(o=r),i&&o>n&&(o=n),o},Gi=function(e){if(!e)return null;var n=Object.keys(e);return n&&n.length?e[n[0]]:null},Kne=function(e){if(!Array.isArray(e))return!1;for(var n=e.length,r={},i=0;i<n;i++)if(!r[e[i]])r[e[i]]=!0;else return!0;return!1},Fi=function(e,n){return fe(e)&&fe(n)?function(r){return e+r*(n-e)}:function(){return n}};function wT(t,e,n){return!t||!t.length?null:t.find(function(r){return r&&(typeof e=="function"?e(r):Rn(r,e))===n})}var Yne=function(e,n){return fe(e)&&fe(n)?e-n:zo(e)&&zo(n)?e.localeCompare(n):e instanceof Date&&n instanceof Date?e.getTime()-n.getTime():String(e).localeCompare(String(n))};function ps(t,e){for(var n in t)if({}.hasOwnProperty.call(t,n)&&(!{}.hasOwnProperty.call(e,n)||t[n]!==e[n]))return!1;for(var r in e)if({}.hasOwnProperty.call(e,r)&&!{}.hasOwnProperty.call(t,r))return!1;return!0}function _T(t){"@babel/helpers - typeof";return _T=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_T(t)}var Wne=["viewBox","children"],Xne=["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
301dering","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"],YN=["points","pathLength"],qv={svg:Wne,polygon:YN,polyline:YN},zA=["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
301Capture","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"],Xd=function(e,n){if(!e||typeof e=="function"||typeof e=="boolean")return null;var r=e;if(k.isValidElement(e)&&(r=e.props),!el(r))return null;var i={};return Object.keys(r).forEach(function(o){zA.includes(o)&&(i[o]=n||function(s){return r[o](r,s)})}),i},Jne=function(e,n,r){return function(i){return e(n,r,i),null}},Ko=function(e,n,r){if(!el(e)||_T(e)!=="object")return null;var i=null;return Object.keys(e).forEach(function(o){var s=e[o];zA.includes(o)&&typeof s=="function"&&(i||(i={}),i[o]=Jne(s,n,r))}),i},Zne=["children"],Qne=["children"];function WN(t,e){if(t==null)return{};var n=ere(t,e),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)r=o[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function ere(t,e){if(t==null)return{};var n={};for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){if(e.indexOf(r)>=0)continue;n[r]=t[r]}return n}var XN={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"},ri=function(e){return typeof e=="string"?e:e?e.displayName||e.name||"Component":""},JN=null,Bv=null,KA=function t(e){if(e===JN&&Array.isArray(Bv))return Bv;var n=[];return k.Children.forEach(e,function(r){ke(r)||($ne.isFragment(r)?n=n.concat(t(r.props.children)):n.push(r))}),Bv=n,JN=e,n};function Xn(t,e){var n=[],r=[];return Array.isArray(e)?r=e.map(function(i){return ri(i)}):r=[ri(e)],KA(t).forEach(function(i){var o=Rn(i,"type.displayName")||Rn(i,"type.name");r.indexOf(o)!==-1&&n.push(i)}),n}function Mn(t,e){var n=Xn(t,e);return n&&n[0]}var ZN=function(e){if(!e||!e.props)return!1;var n=e.props,r=n.width,i=n.height;return!(!fe(r)||r<=0||!fe(i)||i<=0)},tre=["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"],nre=function(e){return e&&e.type&&zo(e.type)&&tre.indexOf(e.type)>=0},rre=function(e,n,r,i){var o,s=(o=qv==null?void 0:qv[i])!==null&&o!==void 0?o:[];return n.startsWith("data-")||!Ce(e)&&(i&&s.includes(n)||Xne.includes(n))||r&&zA.includes(n)},_e=function(e,n,r){if(!e||typeof e=="function"||typeof e=="boolean")return null;var i=e;if(k.isValidElement(e)&&(i=e.props),!el(i))return null;var o={};
301return Object.keys(i).forEach(function(s){var u;rre((u=i)===null||u===void 0?void 0:u[s],s,n,r)&&(o[s]=i[s])}),o},CT=function t(e,n){if(e===n)return!0;var r=k.Children.count(e);if(r!==k.Children.count(n))return!1;if(r===0)return!0;if(r===1)return QN(Array.isArray(e)?e[0]:e,Array.isArray(n)?n[0]:n);for(var i=0;i<r;i++){var o=e[i],s=n[i];if(Array.isArray(o)||Array.isArray(s)){if(!t(o,s))return!1}else if(!QN(o,s))return!1}return!0},QN=function(e,n){if(ke(e)&&ke(n))return!0;if(!ke(e)&&!ke(n)){var r=e.props||{},i=r.children,o=WN(r,Zne),s=n.props||{},u=s.children,c=WN(s,Qne);return i&&u?ps(o,c)&&CT(i,u):!i&&!u?ps(o,c):!1}return!1},eO=function(e,n){var r=[],i={};return KA(e).forEach(function(o,s){if(nre(o))r.push(o);else if(o){var u=ri(o.type),c=n[u]||{},f=c.handler,p=c.once;if(f&&(!p||!i[u])){var y=f(o,u,s);r.push(y),i[u]=!0}}}),r},ire=function(e){var n=e&&e.type;return n&&XN[n]?XN[n]:null},ore=function(e,n){return KA(n).indexOf(e)},are=["children","width","height","viewBox","className","style","title","desc"];function ET(){return ET=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},ET.apply(this,arguments)}function sre(t,e){if(t==null)return{};var n=lre(t,e),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)r=o[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function lre(t,e){if(t==null)return{};var n={};for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){if(e.indexOf(r)>=0)continue;n[r]=t[r]}return n}function MT(t){var e=t.children,n=t.width,r=t.height,i=t.viewBox,o=t.className,s=t.style,u=t.title,c=t.desc,f=sre(t,are),p=i||{width:n,height:r,x:0,y:0},y=De("recharts-surface",o);return j.createElement("svg",ET({},_e(f,!0,"svg"),{className:y,width:n,height:r,style:s,viewBox:"".concat(p.x," ").concat(p.y," ").concat(p.width," ").concat(p.height)}),j.createElement("title",null,u),j.createElement("desc",null,c),e)}var ure=["children","className"];function PT(){return PT=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},PT.apply(this,arguments)}function cre(t,e){if(t==null)return{};var n=fre(t,e),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)r=o[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function fre(t,e){if(t==null)return{};var n={};for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){if(e.indexOf(r)>=0)continue;n[r]=t[r]}return n}var We=j.forwardRef(function(t,e){var n=t.children,r=t.className,i=cre(t,ure),o=De("recharts-layer",r);return j.createElement("g",PT({className:o},_e(i,!0),{ref:e}),n)}),dr=function(e,n){for(var r=arguments.length,i=new Array(r>2?r-2:0),o=2;o<r;o++)i[o-2]=arguments[o]},$v,tO;function dre(){if(tO)return $v;tO=1;function t(e,n,r){var i=-1,o=e.length;n<0&&(n=-n>o?0:o+n),r=r>o?o:r,r<0&&(r+=o),o=n>r?0:r-n>>>0,n>>>=0;for(var s=Array(o);++i<o;)s[i]=e[i+n];return s}return $v=t,$v}var Vv,nO;function hre(){if(nO)return Vv;nO=1;var t=dre();function e(n,r,i){var o=n.length;return i=i===void 0?o:i,!r&&i>=o?n:t(n,r,i)}return Vv=e,Vv}var jv,rO;function HB(){if(rO)return jv;rO=1;var t="\\ud800-\\udfff",e="\\u0300-\\u036f",n="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",i=e+n+r,o="\\ufe0e\\ufe0f",s="\\u200d",u=RegExp("["+s+t+i+o+"]");function c(f){return u.test(f)}return jv=c,jv}var Fv,iO;function pre(){if(iO)return Fv;iO=1;function t(e){return e.split("")}return Fv=t,Fv}var Hv,oO;function mre(){if(oO)return Hv;oO=1;var t="\\ud800-\\udfff",e="\\u0300-\\u036f",n="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",i=e+n+r,o="\\ufe0e\\ufe0f",s="["+t+"]",u="["+i+"]",c="\\ud83c[\\udffb-\\udfff]",f="(?:"+u+"|"+c+")",p="[^"+t+"]",y="(?:\\ud83c[\\udde6-\\uddff]){2}",v="[\\ud800-\\udbff][\\udc00-\\udfff]",x="\\u200d",w=f+"?",A="["+o+"]?",S="(?:"+x+"(?:"+[p,y,v].join("|")+")"+A+w+")*",C=A+w+S,P="(?:"+[p+u+"?",u,y,v,s].join("|")+")",M=RegExp(c+"(?="+c+")|"+P+C,"g");function O(E){return E.match(M)||[]}return Hv=O,Hv}var Gv,aO;function gre(){if(aO)return Gv;aO=1;var t=pre(),e=HB(),n=mre();function r(i){return e(i)?n(i):t(i)}return Gv=r,Gv}var zv,sO;function yre(){if(sO)return zv;sO=1;var t=hre(),e=HB(),n=gre(),r=$B();function i(o){return function(s){s=r(s);var u=e(s)?n(s):void 0,c=u?u[0]:s.charAt(0),f=u?t(u,1).join(""):s.slice(1);return c[o]()+f}}return zv=i,zv}var Kv,lO;function vre(){if(lO)return Kv;lO=1;var t=yre(),e=t("toUpperCase");return Kv=e,Kv}var bre=vre();const lp=$e(bre);function ot(t){return function(){return t}}const GB=Math.cos,Jd=Math.sin,pr=Math.sqrt,Zd=Math.PI,up=2*Zd,RT=Math.PI,NT=2*RT,Oo=1e-6,xre=NT-Oo;function zB(t){this._+=t[0];for(let e=1,n=t.length;e<n;++e)this._+=arguments[e]+t[e]}function Tre(t){let e=Math.floor(t);if(!(e>=0))throw new Error(`invalid digits: ${t}`);if(e>15)return zB;const n=10**e;return function(r){this._+=r[0];for(let i=1,o=r.length;i<o;++i)this._+=Math.round(arguments[i]*n)/n+r[i]}}class Sre{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=e==null?zB:Tre(e)}moveTo(e,n){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,n){this._append`L${this._x1=+e},${this._y1=+n}`}quadraticCurveTo(e,n,r,i){this._append`Q${+e},${+n},${this._x1=+r},${this._y1=+i}`}bezierCurveTo(e,n,r,i,o,s){this._append`C${+e},${+n},${+r},${+i},${this._x1=+o},${this._y1=+s}`}arcTo(e,n,r,i,o){if(e=+e,n=+n,r=+r,i=+i,o=+o,o<0)throw new Error(`negative radius: ${o}`);let s=this._x1,u=this._y1,c=r-e,f=i-n,p=s-e,y=u-n,v=p*p+y*y;if(this._x1===null)this._append`M${this._x1=e},${this._y1=n}`;else if(v>Oo)if(!(Math.abs(y*c-f*p)>Oo)||!o)this._append`L${this._x1=e},${this._y1=n}`;else{let x=r-s,w=i-u,A=c*c+f*f,S=x*x+w*w,C=Math.sqrt(A),P=Math.sqrt(v),M=o*Math.tan((RT-Math.acos((A+v-S)/(2*C*P)))/2),O=M/P,E=M/C;Math.abs(O-1)>Oo&&this._append`L${e+O*p},${n+O*y}`,this._append`A${o},${o},0,0,${+(y*x>p*w)},${this._x1=e+E*c},${this._y1=n+E*f}`}}
vendor: 12,455 bytes, line 301
301arc(e,n,r,i,o,s){if(e=+e,n=+n,r=+r,s=!!s,r<0)throw new Error(`negative radius: ${r}`);let u=r*Math.cos(i),c=r*Math.sin(i),f=e+u,p=n+c,y=1^s,v=s?i-o:o-i;this._x1===null?this._append`M${f},${p}`:(Math.abs(this._x1-f)>Oo||Math.abs(this._y1-p)>Oo)&&this._append`L${f},${p}`,r&&(v<0&&(v=v%NT+NT),v>xre?this._append`A${r},${r},0,1,${y},${e-u},${n-c}A${r},${r},0,1,${y},${this._x1=f},${this._y1=p}`:v>Oo&&this._append`A${r},${r},0,${+(v>=RT)},${y},${this._x1=e+r*Math.cos(o)},${this._y1=n+r*Math.sin(o)}`)}rect(e,n,r,i){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+n}h${r=+r}v${+i}h${-r}Z`}toString(){return this._}}function YA(t){let e=3;return t.digits=function(n){if(!arguments.length)return e;if(n==null)e=null;else{const r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);e=r}return t},()=>new Sre(e)}function WA(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function KB(t){this._context=t}KB.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(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e);break}}};function cp(t){return new KB(t)}function YB(t){return t[0]}function WB(t){return t[1]}function XB(t,e){var n=ot(!0),r=null,i=cp,o=null,s=YA(u);t=typeof t=="function"?t:t===void 0?YB:ot(t),e=typeof e=="function"?e:e===void 0?WB:ot(e);function u(c){var f,p=(c=WA(c)).length,y,v=!1,x;for(r==null&&(o=i(x=s())),f=0;f<=p;++f)!(f<p&&n(y=c[f],f,c))===v&&((v=!v)?o.lineStart():o.lineEnd()),v&&o.point(+t(y,f,c),+e(y,f,c));if(x)return o=null,x+""||null}return u.x=function(c){return arguments.length?(t=typeof c=="function"?c:ot(+c),u):t},u.y=function(c){return arguments.length?(e=typeof c=="function"?c:ot(+c),u):e},u.defined=function(c){return arguments.length?(n=typeof c=="function"?c:ot(!!c),u):n},u.curve=function(c){return arguments.length?(i=c,r!=null&&(o=i(r)),u):i},u.context=function(c){return arguments.length?(c==null?r=o=null:o=i(r=c),u):r},u}function dd(t,e,n){var r=null,i=ot(!0),o=null,s=cp,u=null,c=YA(f);t=typeof t=="function"?t:t===void 0?YB:ot(+t),e=typeof e=="function"?e:ot(e===void 0?0:+e),n=typeof n=="function"?n:n===void 0?WB:ot(+n);function f(y){var v,x,w,A=(y=WA(y)).length,S,C=!1,P,M=new Array(A),O=new Array(A);for(o==null&&(u=s(P=c())),v=0;v<=A;++v){if(!(v<A&&i(S=y[v],v,y))===C)if(C=!C)x=v,u.areaStart(),u.lineStart();else{for(u.lineEnd(),u.lineStart(),w=v-1;w>=x;--w)u.point(M[w],O[w]);u.lineEnd(),u.areaEnd()}C&&(M[v]=+t(S,v,y),O[v]=+e(S,v,y),u.point(r?+r(S,v,y):M[v],n?+n(S,v,y):O[v]))}if(P)return u=null,P+""||null}function p(){return XB().defined(i).curve(s).context(o)}return f.x=function(y){return arguments.length?(t=typeof y=="function"?y:ot(+y),r=null,f):t},f.x0=function(y){return arguments.length?(t=typeof y=="function"?y:ot(+y),f):t},f.x1=function(y){return arguments.length?(r=y==null?null:typeof y=="function"?y:ot(+y),f):r},f.y=function(y){return arguments.length?(e=typeof y=="function"?y:ot(+y),n=null,f):e},f.y0=function(y){return arguments.length?(e=typeof y=="function"?y:ot(+y),f):e},f.y1=function(y){return arguments.length?(n=y==null?null:typeof y=="function"?y:ot(+y),f):n},f.lineX0=f.lineY0=function(){return p().x(t).y(e)},f.lineY1=function(){return p().x(t).y(n)},f.lineX1=function(){return p().x(r).y(e)},f.defined=function(y){return arguments.length?(i=typeof y=="function"?y:ot(!!y),f):i},f.curve=function(y){return arguments.length?(s=y,o!=null&&(u=s(o)),f):s},f.context=function(y){return arguments.length?(y==null?o=u=null:u=s(o=y),f):o},f}class JB{constructor(e,n){this._context=e,this._x=n}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(e,n){switch(e=+e,n=+n,this._point){case 0:{this._point=1,this._line?this._context.lineTo(e,n):this._context.moveTo(e,n);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,n,e,n):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+n)/2,e,this._y0,e,n);break}}this._x0=e,this._y0=n}}function Are(t){return new JB(t,!0)}function wre(t){return new JB(t,!1)}const XA={draw(t,e){const n=pr(e/Zd);t.moveTo(n,0),t.arc(0,0,n,0,up)}},_re={draw(t,e){const n=pr(e/5)/2;t.moveTo(-3*n,-n),t.lineTo(-n,-n),t.lineTo(-n,-3*n),t.lineTo(n,-3*n),t.lineTo(n,-n),t.lineTo(3*n,-n),t.lineTo(3*n,n),t.lineTo(n,n),t.lineTo(n,3*n),t.lineTo(-n,3*n),t.lineTo(-n,n),t.lineTo(-3*n,n),t.closePath()}},ZB=pr(1/3),Cre=ZB*2,Ere={draw(t,e){const n=pr(e/Cre),r=n*ZB;t.moveTo(0,-n),t.lineTo(r,0),t.lineTo(0,n),t.lineTo(-r,0),t.closePath()}},Mre={draw(t,e){const n=pr(e),r=-n/2;t.rect(r,r,n,n)}},Pre=.8908130915292852,QB=Jd(Zd/10)/Jd(7*Zd/10),Rre=Jd(up/10)*QB,Nre=-GB(up/10)*QB,Ore={draw(t,e){const n=pr(e*Pre),r=Rre*n,i=Nre*n;t.moveTo(0,-n),t.lineTo(r,i);for(let o=1;o<5;++o){const s=up*o/5,u=GB(s),c=Jd(s);t.lineTo(c*n,-u*n),t.lineTo(u*r-c*i,c*r+u*i)}t.closePath()}},Yv=pr(3),Dre={draw(t,e){const n=-pr(e/(Yv*3));t.moveTo(0,n*2),t.lineTo(-Yv*n,-n),t.lineTo(Yv*n,-n),t.closePath()}},Vn=-.5,jn=pr(3)/2,OT=1/pr(12),Ire=(OT/2+1)*3,kre={draw(t,e){const n=pr(e/Ire),r=n/2,i=n*OT,o=r,s=n*OT+n,u=-o,c=s;t.moveTo(r,i),t.lineTo(o,s),t.lineTo(u,c),t.lineTo(Vn*r-jn*i,jn*r+Vn*i),t.lineTo(Vn*o-jn*s,jn*o+Vn*s),t.lineTo(Vn*u-jn*c,jn*u+Vn*c),t.lineTo(Vn*r+jn*i,Vn*i-jn*r),t.lineTo(Vn*o+jn*s,Vn*s-jn*o),t.lineTo(Vn*u+jn*c,Vn*c-jn*u),t.closePath()}};function Lre(t,e){let n=null,r=YA(i);t=typeof t=="function"?t:ot(t||XA),e=typeof e=="function"?e:ot(e===void 0?64:+e);function i(){let o;if(n||(n=o=r()),t.apply(this,arguments).draw(n,+e.apply(this,arguments)),o)return n=null,o+""||null}return i.type=function(o){return arguments.length?(t=typeof o=="function"?o:ot(o),i):t},i.size=function(o){return arguments.length?(e=typeof o=="function"?o:ot(+o),i):e},i.context=function(o){return arguments.length?(n=o??null,i):n},i}function Qd(){}function eh(t,e,n){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+n)/6)}function e$(t){this._context=t}e$.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:eh(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(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:eh(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function Ure(t){return new e$(t)}function t$(t){this._context=t}t$.prototype={areaStart:Qd,areaEnd:Qd,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(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:eh(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function qre(t){return new t$(t)}function n$(t){this._context=t}n$.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(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+t)/6,r=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:eh(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function Bre(t){return new n$(t)}function r$(t){this._context=t}r$.prototype={areaStart:Qd,areaEnd:Qd,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}};function $re(t){return new r$(t)}function uO(t){return t<0?-1:1}function cO(t,e,n){var r=t._x1-t._x0,i=e-t._x1,o=(t._y1-t._y0)/(r||i<0&&-0),s=(n-t._y1)/(i||r<0&&-0),u=(o*i+s*r)/(r+i);return(uO(o)+uO(s))*Math.min(Math.abs(o),Math.abs(s),.5*Math.abs(u))||0}function fO(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function Wv(t,e,n){var r=t._x0,i=t._y0,o=t._x1,s=t._y1,u=(o-r)/3;t._context.bezierCurveTo(r+u,i+u*e,o-u,s-u*n,o,s)}function th(t){this._context=t}th.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:Wv(this,this._t0,fO(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var n=NaN;if(t=+t,e=+e,!(t===this._x1&&e===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,Wv(this,fO(this,n=cO(this,t,e)),n);break;default:Wv(this,this._t0,n=cO(this,t,e));break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=n}}};function i$(t){this._context=new o$(t)}(i$.prototype=Object.create(th.prototype)).point=function(t,e){th.prototype.point.call(this,e,t)};function o$(t){this._context=t}o$.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,n,r,i,o){this._context.bezierCurveTo(e,t,r,n,o,i)}};function Vre(t){return new th(t)}function jre(t){return new i$(t)}function a$(t){this._context=t}a$.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,n=t.length;if(n)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),n===2)this._context.lineTo(t[1],e[1]);else for(var r=dO(t),i=dO(e),o=0,s=1;s<n;++o,++s)this._context.bezierCurveTo(r[0][o],i[0][o],r[1][o],i[1][o],t[s],e[s]);(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,e){this._x.push(+t),this._y.push(+e)}};function dO(t){var e,n=t.length-1,r,i=new Array(n),o=new Array(n),s=new Array(n);for(i[0]=0,o[0]=2,s[0]=t[0]+2*t[1],e=1;e<n-1;++e)i[e]=1,o[e]=4,s[e]=4*t[e]+2*t[e+1];for(i[n-1]=2,o[n-1]=7,s[n-1]=8*t[n-1]+t[n],e=1;e<n;++e)r=i[e]/o[e-1],o[e]-=r,s[e]-=r*s[e-1];for(i[n-1]=s[n-1]/o[n-1],e=n-2;e>=0;--e)i[e]=(s[e]-i[e+1])/o[e];for(o[n-1]=(t[n]+i[n-1])/2,e=0;e<n-1;++e)o[e]=2*t[e+1]-i[e+1];return[i,o]}function Fre(t){return new a$(t)}function fp(t,e){this._context=t,this._t=e}fp.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(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;
vendor: 15,597 bytes, lines 301-304
301default:{if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var n=this._x*(1-this._t)+t*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,e)}break}}this._x=t,this._y=e}};function Hre(t){return new fp(t,.5)}function Gre(t){return new fp(t,0)}function zre(t){return new fp(t,1)}function bs(t,e){if((s=t.length)>1)for(var n=1,r,i,o=t[e[0]],s,u=o.length;n<s;++n)for(i=o,o=t[e[n]],r=0;r<u;++r)o[r][1]+=o[r][0]=isNaN(i[r][1])?i[r][0]:i[r][1]}function DT(t){for(var e=t.length,n=new Array(e);--e>=0;)n[e]=e;return n}function Kre(t,e){return t[e]}function Yre(t){const e=[];return e.key=t,e}function Wre(){var t=ot([]),e=DT,n=bs,r=Kre;function i(o){var s=Array.from(t.apply(this,arguments),Yre),u,c=s.length,f=-1,p;for(const y of o)for(u=0,++f;u<c;++u)(s[u][f]=[0,+r(y,s[u].key,f,o)]).data=y;for(u=0,p=WA(e(s));u<c;++u)s[p[u]].index=u;return n(s,p),s}return i.keys=function(o){return arguments.length?(t=typeof o=="function"?o:ot(Array.from(o)),i):t},i.value=function(o){return arguments.length?(r=typeof o=="function"?o:ot(+o),i):r},i.order=function(o){return arguments.length?(e=o==null?DT:typeof o=="function"?o:ot(Array.from(o)),i):e},i.offset=function(o){return arguments.length?(n=o??bs,i):n},i}function Xre(t,e){if((r=t.length)>0){for(var n,r,i=0,o=t[0].length,s;i<o;++i){for(s=n=0;n<r;++n)s+=t[n][i][1]||0;if(s)for(n=0;n<r;++n)t[n][i][1]/=s}bs(t,e)}}function Jre(t,e){if((i=t.length)>0){for(var n=0,r=t[e[0]],i,o=r.length;n<o;++n){for(var s=0,u=0;s<i;++s)u+=t[s][n][1]||0;r[n][1]+=r[n][0]=-u/2}bs(t,e)}}function Zre(t,e){if(!(!((s=t.length)>0)||!((o=(i=t[e[0]]).length)>0))){for(var n=0,r=1,i,o,s;r<o;++r){for(var u=0,c=0,f=0;u<s;++u){for(var p=t[e[u]],y=p[r][1]||0,v=p[r-1][1]||0,x=(y-v)/2,w=0;w<u;++w){var A=t[e[w]],S=A[r][1]||0,C=A[r-1][1]||0;x+=S-C}c+=y,f+=x*y}i[r-1][1]+=i[r-1][0]=n,c&&(n-=f/c)}i[r-1][1]+=i[r-1][0]=n,bs(t,e)}}function Hu(t){"@babel/helpers - typeof";return Hu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Hu(t)}var Qre=["type","size","sizeType"];function IT(){return IT=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},IT.apply(this,arguments)}function hO(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function pO(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?hO(Object(n),!0).forEach(function(r){eie(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):hO(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function eie(t,e,n){return e=tie(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function tie(t){var e=nie(t,"string");return Hu(e)=="symbol"?e:e+""}function nie(t,e){if(Hu(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(Hu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function rie(t,e){if(t==null)return{};var n=iie(t,e),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)r=o[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function iie(t,e){if(t==null)return{};var n={};for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){if(e.indexOf(r)>=0)continue;n[r]=t[r]}return n}var s$={symbolCircle:XA,symbolCross:_re,symbolDiamond:Ere,symbolSquare:Mre,symbolStar:Ore,symbolTriangle:Dre,symbolWye:kre},oie=Math.PI/180,aie=function(e){var n="symbol".concat(lp(e));return s$[n]||XA},sie=function(e,n,r){if(n==="area")return e;switch(r){case"cross":return 5*e*e/9;case"diamond":return .5*e*e/Math.sqrt(3);case"square":return e*e;case"star":{var i=18*oie;return 1.25*e*e*(Math.tan(i)-Math.tan(i*2)*Math.pow(Math.tan(i),2))}case"triangle":return Math.sqrt(3)*e*e/4;case"wye":return(21-10*Math.sqrt(3))*e*e/8;default:return Math.PI*e*e/4}},lie=function(e,n){s$["symbol".concat(lp(e))]=n},JA=function(e){var n=e.type,r=n===void 0?"circle":n,i=e.size,o=i===void 0?64:i,s=e.sizeType,u=s===void 0?"area":s,c=rie(e,Qre),f=pO(pO({},c),{},{type:r,size:o,sizeType:u}),p=function(){var S=aie(r),C=Lre().type(S).size(sie(o,u,r));return C()},y=f.className,v=f.cx,x=f.cy,w=_e(f,!0);return v===+v&&x===+x&&o===+o?j.createElement("path",IT({},w,{className:De("recharts-symbols",y),transform:"translate(".concat(v,", ").concat(x,")"),d:p()})):null};JA.registerSymbol=lie;function xs(t){"@babel/helpers - typeof";return xs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},xs(t)}function kT(){return kT=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},kT.apply(this,arguments)}function mO(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function uie(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?mO(Object(n),!0).forEach(function(r){Gu(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):mO(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function cie(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function fie(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,u$(r.key),r)}}function die(t,e,n){return e&&fie(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function hie(t,e,n){return e=nh(e),pie(t,l$()?Reflect.construct(e,n||[],nh(t).constructor):e.apply(t,n))}function pie(t,e){if(e&&(xs(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return mie(t)}function mie(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function l$(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(l$=function(){return!!t})()}function nh(t){return nh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},nh(t)}function gie(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&<(t,e)}function LT(t,e){return LT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},LT(t,e)}function Gu(t,e,n){return e=u$(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function u$(t){var e=yie(t,"string");return xs(e)=="symbol"?e:e+""}function yie(t,e){if(xs(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(xs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var Fn=32,ZA=(function(t){function e(){return cie(this,e),hie(this,e,arguments)}return gie(e,t),die(e,[{key:"renderIcon",value:function(r){var i=this.props.inactiveColor,o=Fn/2,s=Fn/6,u=Fn/3,c=r.inactive?i:r.color;if(r.type==="plainline")return j.createElement("line",{strokeWidth:4,fill:"none",stroke:c,strokeDasharray:r.payload.strokeDasharray,x1:0,y1:o,x2:Fn,y2:o,className:"recharts-legend-icon"});if(r.type==="line")return j.createElement("path",{strokeWidth:4,fill:"none",stroke:c,d:"M0,".concat(o,"h").concat(u,` 302 A`).concat(s,",").concat(s,",0,1,1,").concat(2*u,",").concat(o,` 303 H`).concat(Fn,"M").concat(2*u,",").concat(o,` 304 A`).concat(s,",").concat(s,",0,1,1,").concat(u,",").concat(o),className:"recharts-legend-icon"});if(r.type==="rect")return j.createElement("path",{stroke:"none",fill:c,d:"M0,".concat(Fn/8,"h").concat(Fn,"v").concat(Fn*3/4,"h").concat(-Fn,"z"),className:"recharts-legend-icon"});if(j.isValidElement(r.legendIcon)){var f=uie({},r);return delete f.legendIcon,j.cloneElement(r.legendIcon,f)}return j.createElement(JA,{fill:c,cx:o,cy:o,size:Fn,sizeType:"diameter",type:r.type})}},{key:"renderItems",value:function(){var r=this,i=this.props,o=i.payload,s=i.iconSize,u=i.layout,c=i.formatter,f=i.inactiveColor,p={x:0,y:0,width:Fn,height:Fn},y={display:u==="horizontal"?"inline-block":"block",marginRight:10},v={display:"inline-block",verticalAlign:"middle",marginRight:4};return o.map(function(x,w){var A=x.formatter||c,S=De(Gu(Gu({"recharts-legend-item":!0},"legend-item-".concat(w),!0),"inactive",x.inactive));if(x.type==="none")return null;var C=Ce(x.value)?null:x.value;dr(!Ce(x.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 P=x.inactive?f:x.color;return j.createElement("li",kT({className:S,style:y,key:"legend-item-".concat(w)},Ko(r.props,x,w)),j.createElement(MT,{width:s,height:s,viewBox:p,style:v},r.renderIcon(x)),j.createElement("span",{className:"recharts-legend-item-text",style:{color:P}},A?A(C,x,w):C))})}},{key:"render",value:function(){var r=this.props,i=r.payload,o=r.layout,s=r.align;if(!i||!i.length)return null;var u={padding:0,margin:0,textAlign:o==="horizontal"?s:"left"};return j.createElement("ul",{className:"recharts-default-legend",style:u},this.renderItems())}}])})(k.PureComponent);Gu(ZA,"displayName","Legend");Gu(ZA,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var Xv,gO;function vie(){if(gO)return Xv;gO=1;var t=op();function e(){this.__data__=new t,this.size=0}return Xv=e,Xv}var Jv,yO;function bie(){if(yO)return Jv;yO=1;function t(e){var n=this.__data__,r=n.delete(e);return this.size=n.size,r}return Jv=t,Jv}var Zv,vO;function xie(){if(vO)return Zv;vO=1;function t(e){return this.__data__.get(e)}return Zv=t,Zv}var Qv,bO;function Tie(){if(bO)return Qv;bO=1;function t(e){return this.__data__.has(e)}return Qv=t,Qv}var e0,xO;function Sie(){if(xO)return e0;xO=1;var t=op(),e=jA(),n=FA(),r=200;function i(o,s){var u=this.__data__;if(u instanceof t){var c=u.__data__;if(!e||c.length<r-1)return c.push([o,s]),this.size=++u.size,this;u=this.__data__=new n(c)}return u.set(o,s),this.size=u.size,this}return e0=i,e0}var t0,TO;function c$(){if(TO)return t0;TO=1;var t=op(),e=vie(),n=bie(),r=xie(),i=Tie(),o=Sie();function s(u){var c=this.__data__=new t(u);this.size=c.size}return s.prototype.clear=e,s.prototype.delete=n,s.prototype.get=r,s.prototype.has=i,s.prototype.set=o,t0=s,t0}var n0,SO;function Aie(){if(SO)return n0;SO=1;var t="__lodash_hash_undefined__";function e(n){return this.__data__.set(n,t),this}return n0=e,n0}var r0,AO;function wie(){if(AO)return r0;AO=1;function t(e){return this.__data__.has(e)}return r0=t,r0}var i0,wO;function f$(){if(wO)return i0;wO=1;var t=FA(),e=Aie(),n=wie();function r(i){var o=-1,s=i==null?0:i.length;for(this.__data__=new t;++o<s;)this.add(i[o])}return r.prototype.add=r.prototype.push=e,r.prototype.has=n,i0=r,i0}var o0,_O;function d$(){if(_O)return o0;_O=1;function t(e,n){for(var r=-1,i=e==null?0:e.length;++r<i;)if(n(e[r],r,e))return!0;return!1}return o0=t,o0}var a0,CO;function h$(){if(CO)return a0;CO=1;function t(e,n){return e.has(n)}return a0=t,a0}var s0,EO;function p$(){if(EO)return s0;EO=1;var t=f$(),e=d$(),n=h$(),r=1,i=2;function o(s,u,c,f,p,y){var v=c&r,x=s.length,w=u.length;if(x!=w&&!(v&&w>x))return!1;var A=y.get(s),S=y.get(u);if(A&&S)return A==u&&S==s;var C=-1,P=!0,M=c&i?new t:void 0;for(y.set(s,u),y.set(u,s);++C<x;){var O=s[C],E=u[C];if(f)var N=v?f(E,O,C,u,s,y):f(O,E,C,s,u,y);if(N!==void 0){if(N)continue;P=!1;break}if(M){if(!e(u,function(D,L){if(!n(M,L)&&(O===D||p(O,D,c,f,y)))return M.push(L)})){P=!1;break}}else if(!(O===E||p(O,E,c,f,y))){P=!1;break}}return y.delete(s),y.delete(u),P}return s0=o,s0}var l0,MO;function _ie(){if(MO)return l0;MO=1;var t=Nr(),e=t.Uint8Array;return l0=e,l0}var u0,PO;function Cie(){if(PO)return u0;PO=1;function t(e){var n=-1,r=Array(e.size);return e.forEach(function(i,o){r[++n]=[o,i]}),r}return u0=t,u0}var c0,RO;function QA(){if(RO)return c0;RO=1;function t(e){var n=-1,r=Array(e.size);return e.forEach(function(i){r[++n]=i}),r}return c0=t,c0}var f0,NO;function Eie(){if(NO)return f0;NO=1;var t=Dc(),e=_ie(),n=VA(),r=p$(),i=Cie(),o=QA(),s=1,u=2,c="[object Boolean]",f="[object Date]",p="[object Error]",y="[object Map]",v="[object Number]",x="[object RegExp]",w="[object Set]",A="[object String]",S="[object Symbol]",C="[object ArrayBuffer]",P="[object DataView]",M=t?t.prototype:void 0,O=M?M.valueOf:void 0;function E(N,D,L,U,F,B,z){switch(L){case P:if(N.byteLength!=D.byteLength||N.byteOffset!=D.byteOffset)return!1;N=N.buffer,D=D.buffer;case C:return!(N.byteLength!=D.byteLength||!B(new e(N),new e(D)));case c:case f:case v:return n(+N,+D);case p:return N.name==D.name&&N.message==D.message;case x:case A:return N==D+"";case y:var W=i;case w:var ne=U&s;if(W||(W=o),N.size!=D.size&&!ne)return!1;var J=z.get(N);if(J)return J==D;U|=u,z.set(N,D);var $=r(W(N),W(D),U,F,B,z);return z.delete(N),$;case S:if(O)return O.call(N)==O.call(D)}return!1}return f0=E,f0}var d0,OO;function m$(){if(OO)return d0;OO=1;function t(e,n){for(var r=-1,i=n.length,o=e.length;++r<i;)e[o+r]=n[r];return e}return d0=t,d0}var h0,DO;function Mie(){if(DO)return h0;DO=1;var t=m$(),e=yn();function n(r,i,o){var s=i(r);return e(r)?s:t(s,o(r))}return h0=n,h0}var p0,IO;function Pie(){if(IO)return p0;IO=1;function t(e,n){for(var r=-1,i=e==null?0:e.length,o=0,s=[];++r<i;){var u=e[r];n(u,r,e)&&(s[o++]=u)}return s}return p0=t,p0}var m0,kO;function Rie(){if(kO)return m0;kO=1;function t(){return[]}return m0=t,m0}var g0,LO;function Nie(){if(LO)return g0;LO=1;var t=Pie(),e=Rie(),n=Object.prototype,r=n.propertyIsEnumerable,i=Object.getOwnPropertySymbols,o=i?function(s){return s==null?[]:(s=Object(s),t(i(s),function(u){return r.call(s,u)}))}:e;return g0=o,g0}var y0,UO;function Oie(){if(UO)return y0;UO=1;function t(e,n){for(var r=-1,i=Array(e);++r<e;)i[r]=n(r);return i}return y0=t,y0}var v0,qO;function Die(){if(qO)return v0;qO=1;var t=hi(),e=pi(),n="[object Arguments]";function r(i){return e(i)&&t(i)==n}return v0=r,v0}var b0,BO;function ew(){if(BO)return b0;BO=1;var t=Die(),e=pi(),n=Object.prototype,r=n.hasOwnProperty,i=n.propertyIsEnumerable,o=t((function(){return arguments})())?t:function(s){return e(s)&&r.call(s,"callee")&&!i.call(s,"callee")};return b0=o,b0}var Su={exports:{}},x0,$O;function Iie(){if($O)return x0;$O=1;function t(){return!1}return x0=t,x0}Su.exports;var VO;function g$(){return VO||(VO=1,(function(t,e){var n=Nr(),r=Iie(),i=e&&!e.nodeType&&e,o=i&&!0&&t&&!t.nodeType&&t,s=o&&o.exports===i,u=s?n.Buffer:void 0,c=u?u.isBuffer:void 0,f=c||r;t.exports=f})(Su,Su.exports)),Su.exports}var T0,jO;
vendor: 5,282 bytes, line 304
304function tw(){if(jO)return T0;jO=1;var t=9007199254740991,e=/^(?:0|[1-9]\d*)$/;function n(r,i){var o=typeof r;return i=i??t,!!i&&(o=="number"||o!="symbol"&&e.test(r))&&r>-1&&r%1==0&&r<i}return T0=n,T0}var S0,FO;function nw(){if(FO)return S0;FO=1;var t=9007199254740991;function e(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=t}return S0=e,S0}var A0,HO;function kie(){if(HO)return A0;HO=1;var t=hi(),e=nw(),n=pi(),r="[object Arguments]",i="[object Array]",o="[object Boolean]",s="[object Date]",u="[object Error]",c="[object Function]",f="[object Map]",p="[object Number]",y="[object Object]",v="[object RegExp]",x="[object Set]",w="[object String]",A="[object WeakMap]",S="[object ArrayBuffer]",C="[object DataView]",P="[object Float32Array]",M="[object Float64Array]",O="[object Int8Array]",E="[object Int16Array]",N="[object Int32Array]",D="[object Uint8Array]",L="[object Uint8ClampedArray]",U="[object Uint16Array]",F="[object Uint32Array]",B={};B[P]=B[M]=B[O]=B[E]=B[N]=B[D]=B[L]=B[U]=B[F]=!0,B[r]=B[i]=B[S]=B[o]=B[C]=B[s]=B[u]=B[c]=B[f]=B[p]=B[y]=B[v]=B[x]=B[w]=B[A]=!1;function z(W){return n(W)&&e(W.length)&&!!B[t(W)]}return A0=z,A0}var w0,GO;function y$(){if(GO)return w0;GO=1;function t(e){return function(n){return e(n)}}return w0=t,w0}var Au={exports:{}};Au.exports;var zO;function Lie(){return zO||(zO=1,(function(t,e){var n=UB(),r=e&&!e.nodeType&&e,i=r&&!0&&t&&!t.nodeType&&t,o=i&&i.exports===r,s=o&&n.process,u=(function(){try{var c=i&&i.require&&i.require("util").types;return c||s&&s.binding&&s.binding("util")}catch{}})();t.exports=u})(Au,Au.exports)),Au.exports}var _0,KO;function v$(){if(KO)return _0;KO=1;var t=kie(),e=y$(),n=Lie(),r=n&&n.isTypedArray,i=r?e(r):t;return _0=i,_0}var C0,YO;function Uie(){if(YO)return C0;YO=1;var t=Oie(),e=ew(),n=yn(),r=g$(),i=tw(),o=v$(),s=Object.prototype,u=s.hasOwnProperty;function c(f,p){var y=n(f),v=!y&&e(f),x=!y&&!v&&r(f),w=!y&&!v&&!x&&o(f),A=y||v||x||w,S=A?t(f.length,String):[],C=S.length;for(var P in f)(p||u.call(f,P))&&!(A&&(P=="length"||x&&(P=="offset"||P=="parent")||w&&(P=="buffer"||P=="byteLength"||P=="byteOffset")||i(P,C)))&&S.push(P);return S}return C0=c,C0}var E0,WO;function qie(){if(WO)return E0;WO=1;var t=Object.prototype;function e(n){var r=n&&n.constructor,i=typeof r=="function"&&r.prototype||t;return n===i}return E0=e,E0}var M0,XO;function b$(){if(XO)return M0;XO=1;function t(e,n){return function(r){return e(n(r))}}return M0=t,M0}var P0,JO;function Bie(){if(JO)return P0;JO=1;var t=b$(),e=t(Object.keys,Object);return P0=e,P0}var R0,ZO;function $ie(){if(ZO)return R0;ZO=1;var t=qie(),e=Bie(),n=Object.prototype,r=n.hasOwnProperty;function i(o){if(!t(o))return e(o);var s=[];for(var u in Object(o))r.call(o,u)&&u!="constructor"&&s.push(u);return s}return R0=i,R0}var N0,QO;function Lc(){if(QO)return N0;QO=1;var t=$A(),e=nw();function n(r){return r!=null&&e(r.length)&&!t(r)}return N0=n,N0}var O0,eD;function dp(){if(eD)return O0;eD=1;var t=Uie(),e=$ie(),n=Lc();function r(i){return n(i)?t(i):e(i)}return O0=r,O0}var D0,tD;function Vie(){if(tD)return D0;tD=1;var t=Mie(),e=Nie(),n=dp();function r(i){return t(i,n,e)}return D0=r,D0}var I0,nD;function jie(){if(nD)return I0;nD=1;var t=Vie(),e=1,n=Object.prototype,r=n.hasOwnProperty;function i(o,s,u,c,f,p){var y=u&e,v=t(o),x=v.length,w=t(s),A=w.length;if(x!=A&&!y)return!1;for(var S=x;S--;){var C=v[S];if(!(y?C in s:r.call(s,C)))return!1}var P=p.get(o),M=p.get(s);if(P&&M)return P==s&&M==o;var O=!0;p.set(o,s),p.set(s,o);for(var E=y;++S<x;){C=v[S];var N=o[C],D=s[C];if(c)var L=y?c(D,N,C,s,o,p):c(N,D,C,o,s,p);if(!(L===void 0?N===D||f(N,D,u,c,p):L)){O=!1;break}E||(E=C=="constructor")}if(O&&!E){var U=o.constructor,F=s.constructor;U!=F&&"constructor"in o&&"constructor"in s&&!(typeof U=="function"&&U instanceof U&&typeof F=="function"&&F instanceof F)&&(O=!1)}return p.delete(o),p.delete(s),O}return I0=i,I0}var k0,rD;function Fie(){if(rD)return k0;rD=1;var t=ea(),e=Nr(),n=t(e,"DataView");return k0=n,k0}var L0,iD;function Hie(){if(iD)return L0;iD=1;var t=ea(),e=Nr(),n=t(e,"Promise");return L0=n,L0}var U0,oD;function x$(){if(oD)return U0;oD=1;var t=ea(),e=Nr(),n=t(e,"Set");return U0=n,U0}var q0,aD;function Gie(){if(aD)return q0;aD=1;var t=ea(),e=Nr(),n=t(e,"WeakMap");return q0=n,q0}var B0,sD;function zie(){if(sD)return B0;sD=1;var t=Fie(),e=jA(),n=Hie(),r=x$(),i=Gie(),o=hi(),s=qB(),u="[object Map]",c="[object Object]",f="[object Promise]",p="[object Set]",y="[object WeakMap]",v="[object DataView]",x=s(t),w=s(e),A=s(n),S=s(r),C=s(i),P=o;return(t&&P(new t(new ArrayBuffer(1)))!=v||e&&P(new e)!=u||n&&P(n.resolve())!=f||r&&P(new r)!=p||i&&P(new i)!=y)&&(P=function(M){var O=o(M),E=O==c?M.constructor:void 0,N=E?s(E):"";if(N)switch(N){case x:return v;case w:return u;case A:return f;case S:return p;case C:return y}return O}),B0=P,B0}var $0,lD;function Kie(){if(lD)return $0;lD=1;var t=c$(),e=p$(),n=Eie(),r=jie(),i=zie(),o=yn(),s=g$(),u=v$(),c=1,f="[object Arguments]",p="[object Array]",y="[object Object]",v=Object.prototype,x=v.hasOwnProperty;function w(A,S,C,P,M,O){var E=o(A),N=o(S),D=E?p:i(A),L=N?p:i(S);D=D==f?y:D,L=L==f?y:L;var U=D==y,F=L==y,B=D==L;if(B&&s(A)){if(!s(S))return!1;E=!0,U=!1}if(B&&!U)return O||(O=new t),E||u(A)?e(A,S,C,P,M,O):n(A,S,D,C,P,M,O);if(!(C&c)){var z=U&&x.call(A,"__wrapped__"),W=F&&x.call(S,"__wrapped__");
vendor: 44,849 bytes, lines 304-311
304if(z||W){var ne=z?A.value():A,J=W?S.value():S;return O||(O=new t),M(ne,J,C,P,O)}}return B?(O||(O=new t),r(A,S,C,P,M,O)):!1}return $0=w,$0}var V0,uD;function rw(){if(uD)return V0;uD=1;var t=Kie(),e=pi();function n(r,i,o,s,u){return r===i?!0:r==null||i==null||!e(r)&&!e(i)?r!==r&&i!==i:t(r,i,o,s,n,u)}return V0=n,V0}var j0,cD;function Yie(){if(cD)return j0;cD=1;var t=c$(),e=rw(),n=1,r=2;function i(o,s,u,c){var f=u.length,p=f,y=!c;if(o==null)return!p;for(o=Object(o);f--;){var v=u[f];if(y&&v[2]?v[1]!==o[v[0]]:!(v[0]in o))return!1}for(;++f<p;){v=u[f];var x=v[0],w=o[x],A=v[1];if(y&&v[2]){if(w===void 0&&!(x in o))return!1}else{var S=new t;if(c)var C=c(w,A,x,o,s,S);if(!(C===void 0?e(A,w,n|r,c,S):C))return!1}}return!0}return j0=i,j0}var F0,fD;function T$(){if(fD)return F0;fD=1;var t=to();function e(n){return n===n&&!t(n)}return F0=e,F0}var H0,dD;function Wie(){if(dD)return H0;dD=1;var t=T$(),e=dp();function n(r){for(var i=e(r),o=i.length;o--;){var s=i[o],u=r[s];i[o]=[s,u,t(u)]}return i}return H0=n,H0}var G0,hD;function S$(){if(hD)return G0;hD=1;function t(e,n){return function(r){return r==null?!1:r[e]===n&&(n!==void 0||e in Object(r))}}return G0=t,G0}var z0,pD;function Xie(){if(pD)return z0;pD=1;var t=Yie(),e=Wie(),n=S$();function r(i){var o=e(i);return o.length==1&&o[0][2]?n(o[0][0],o[0][1]):function(s){return s===i||t(s,i,o)}}return z0=r,z0}var K0,mD;function Jie(){if(mD)return K0;mD=1;function t(e,n){return e!=null&&n in Object(e)}return K0=t,K0}var Y0,gD;function Zie(){if(gD)return Y0;gD=1;var t=VB(),e=ew(),n=yn(),r=tw(),i=nw(),o=sp();function s(u,c,f){c=t(c,u);for(var p=-1,y=c.length,v=!1;++p<y;){var x=o(c[p]);if(!(v=u!=null&&f(u,x)))break;u=u[x]}return v||++p!=y?v:(y=u==null?0:u.length,!!y&&i(y)&&r(x,y)&&(n(u)||e(u)))}return Y0=s,Y0}var W0,yD;function Qie(){if(yD)return W0;yD=1;var t=Jie(),e=Zie();function n(r,i){return r!=null&&e(r,i,t)}return W0=n,W0}var X0,vD;function eoe(){if(vD)return X0;vD=1;var t=rw(),e=jB(),n=Qie(),r=BA(),i=T$(),o=S$(),s=sp(),u=1,c=2;function f(p,y){return r(p)&&i(y)?o(s(p),y):function(v){var x=e(v,p);return x===void 0&&x===y?n(v,p):t(y,x,u|c)}}return X0=f,X0}var J0,bD;function tl(){if(bD)return J0;bD=1;function t(e){return e}return J0=t,J0}var Z0,xD;function toe(){if(xD)return Z0;xD=1;function t(e){return function(n){return n==null?void 0:n[e]}}return Z0=t,Z0}var Q0,TD;function noe(){if(TD)return Q0;TD=1;var t=GA();function e(n){return function(r){return t(r,n)}}return Q0=e,Q0}var eb,SD;function roe(){if(SD)return eb;SD=1;var t=toe(),e=noe(),n=BA(),r=sp();function i(o){return n(o)?t(r(o)):e(o)}return eb=i,eb}var tb,AD;function Or(){if(AD)return tb;AD=1;var t=Xie(),e=eoe(),n=tl(),r=yn(),i=roe();function o(s){return typeof s=="function"?s:s==null?n:typeof s=="object"?r(s)?e(s[0],s[1]):t(s):i(s)}return tb=o,tb}var nb,wD;function A$(){if(wD)return nb;wD=1;function t(e,n,r,i){for(var o=e.length,s=r+(i?1:-1);i?s--:++s<o;)if(n(e[s],s,e))return s;return-1}return nb=t,nb}var rb,_D;function ioe(){if(_D)return rb;_D=1;function t(e){return e!==e}return rb=t,rb}var ib,CD;function ooe(){if(CD)return ib;CD=1;function t(e,n,r){for(var i=r-1,o=e.length;++i<o;)if(e[i]===n)return i;return-1}return ib=t,ib}var ob,ED;function aoe(){if(ED)return ob;ED=1;var t=A$(),e=ioe(),n=ooe();function r(i,o,s){return o===o?n(i,o,s):t(i,e,s)}return ob=r,ob}var ab,MD;function soe(){if(MD)return ab;MD=1;var t=aoe();function e(n,r){var i=n==null?0:n.length;return!!i&&t(n,r,0)>-1}return ab=e,ab}var sb,PD;function loe(){if(PD)return sb;PD=1;function t(e,n,r){for(var i=-1,o=e==null?0:e.length;++i<o;)if(r(n,e[i]))return!0;return!1}return sb=t,sb}var lb,RD;function uoe(){if(RD)return lb;RD=1;function t(){}return lb=t,lb}var ub,ND;function coe(){if(ND)return ub;ND=1;var t=x$(),e=uoe(),n=QA(),r=1/0,i=t&&1/n(new t([,-0]))[1]==r?function(o){return new t(o)}:e;return ub=i,ub}var cb,OD;function foe(){if(OD)return cb;OD=1;var t=f$(),e=soe(),n=loe(),r=h$(),i=coe(),o=QA(),s=200;function u(c,f,p){var y=-1,v=e,x=c.length,w=!0,A=[],S=A;if(p)w=!1,v=n;else if(x>=s){var C=f?null:i(c);if(C)return o(C);w=!1,v=r,S=new t}else S=f?[]:A;e:for(;++y<x;){var P=c[y],M=f?f(P):P;if(P=p||P!==0?P:0,w&&M===M){for(var O=S.length;O--;)if(S[O]===M)continue e;f&&S.push(M),A.push(P)}else v(S,M,p)||(S!==A&&S.push(M),A.push(P))}return A}return cb=u,cb}var fb,DD;function doe(){if(DD)return fb;DD=1;var t=Or(),e=foe();function n(r,i){return r&&r.length?e(r,t(i,2)):[]}return fb=n,fb}var hoe=doe();const ID=$e(hoe);function w$(t,e,n){return e===!0?ID(t,n):Ce(e)?ID(t,e):t}function Ts(t){"@babel/helpers - typeof";return Ts=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ts(t)}var poe=["ref"];function kD(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Jr(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?kD(Object(n),!0).forEach(function(r){hp(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):kD(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function moe(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function LD(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,C$(r.key),r)}}function goe(t,e,n){return e&&LD(t.prototype,e),n&&LD(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function yoe(t,e,n){return e=rh(e),voe(t,_$()?Reflect.construct(e,n||[],rh(t).constructor):e.apply(t,n))}function voe(t,e){if(e&&(Ts(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return boe(t)}function boe(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _$(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_$=function(){return!!t})()}function rh(t){return rh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},rh(t)}function xoe(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&UT(t,e)}function UT(t,e){return UT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},UT(t,e)}function hp(t,e,n){return e=C$(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function C$(t){var e=Toe(t,"string");return Ts(e)=="symbol"?e:e+""}function Toe(t,e){if(Ts(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(Ts(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}function Soe(t,e){if(t==null)return{};var n=Aoe(t,e),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)r=o[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function Aoe(t,e){if(t==null)return{};var n={};for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){if(e.indexOf(r)>=0)continue;n[r]=t[r]}return n}function woe(t){return t.value}function _oe(t,e){if(j.isValidElement(t))return j.cloneElement(t,e);if(typeof t=="function")return j.createElement(t,e);e.ref;var n=Soe(e,poe);return j.createElement(ZA,n)}var UD=1,Wi=(function(t){function e(){var n;moe(this,e);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n=yoe(this,e,[].concat(i)),hp(n,"lastBoundingBox",{width:-1,height:-1}),n}return xoe(e,t),goe(e,[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();return r.height=this.wrapperNode.offsetHeight,r.width=this.wrapperNode.offsetWidth,r}return null}},{key:"updateBBox",value:function(){var r=this.props.onBBoxUpdate,i=this.getBBox();i?(Math.abs(i.width-this.lastBoundingBox.width)>UD||Math.abs(i.height-this.lastBoundingBox.height)>UD)&&(this.lastBoundingBox.width=i.width,this.lastBoundingBox.height=i.height,r&&r(i)):(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,r&&r(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?Jr({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(r){var i=this.props,o=i.layout,s=i.align,u=i.verticalAlign,c=i.margin,f=i.chartWidth,p=i.chartHeight,y,v;if(!r||(r.left===void 0||r.left===null)&&(r.right===void 0||r.right===null))if(s==="center"&&o==="vertical"){var x=this.getBBoxSnapshot();y={left:((f||0)-x.width)/2}}else y=s==="right"?{right:c&&c.right||0}:{left:c&&c.left||0};if(!r||(r.top===void 0||r.top===null)&&(r.bottom===void 0||r.bottom===null))if(u==="middle"){var w=this.getBBoxSnapshot();v={top:((p||0)-w.height)/2}}else v=u==="bottom"?{bottom:c&&c.bottom||0}:{top:c&&c.top||0};return Jr(Jr({},y),v)}},{key:"render",value:function(){var r=this,i=this.props,o=i.content,s=i.width,u=i.height,c=i.wrapperStyle,f=i.payloadUniqBy,p=i.payload,y=Jr(Jr({position:"absolute",width:s||"auto",height:u||"auto"},this.getDefaultPosition(c)),c);return j.createElement("div",{className:"recharts-legend-wrapper",style:y,ref:function(x){r.wrapperNode=x}},_oe(o,Jr(Jr({},this.props),{},{payload:w$(p,f,woe)})))}}],[{key:"getWithHeight",value:function(r,i){var o=Jr(Jr({},this.defaultProps),r.props),s=o.layout;return s==="vertical"&&fe(r.props.height)?{height:r.props.height}:s==="horizontal"?{width:r.props.width||i}:null}}])})(k.PureComponent);hp(Wi,"displayName","Legend");hp(Wi,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var db,qD;function Coe(){if(qD)return db;qD=1;var t=Dc(),e=ew(),n=yn(),r=t?t.isConcatSpreadable:void 0;function i(o){return n(o)||e(o)||!!(r&&o&&o[r])}return db=i,db}var hb,BD;function E$(){if(BD)return hb;BD=1;var t=m$(),e=Coe();function n(r,i,o,s,u){var c=-1,f=r.length;for(o||(o=e),u||(u=[]);++c<f;){var p=r[c];i>0&&o(p)?i>1?n(p,i-1,o,s,u):t(u,p):s||(u[u.length]=p)}return u}return hb=n,hb}var pb,$D;function Eoe(){if($D)return pb;$D=1;function t(e){return function(n,r,i){for(var o=-1,s=Object(n),u=i(n),c=u.length;c--;){var f=u[e?c:++o];if(r(s[f],f,s)===!1)break}return n}}return pb=t,pb}var mb,VD;function Moe(){if(VD)return mb;VD=1;var t=Eoe(),e=t();return mb=e,mb}var gb,jD;function M$(){if(jD)return gb;jD=1;var t=Moe(),e=dp();function n(r,i){return r&&t(r,i,e)}return gb=n,gb}var yb,FD;function Poe(){if(FD)return yb;FD=1;var t=Lc();function e(n,r){return function(i,o){if(i==null)return i;if(!t(i))return n(i,o);for(var s=i.length,u=r?s:-1,c=Object(i);(r?u--:++u<s)&&o(c[u],u,c)!==!1;);return i}}return yb=e,yb}var vb,HD;function iw(){if(HD)return vb;HD=1;var t=M$(),e=Poe(),n=e(t);return vb=n,vb}var bb,GD;function P$(){if(GD)return bb;GD=1;var t=iw(),e=Lc();function n(r,i){var o=-1,s=e(r)?Array(r.length):[];return t(r,function(u,c,f){s[++o]=i(u,c,f)}),s}return bb=n,bb}var xb,zD;function Roe(){if(zD)return xb;zD=1;function t(e,n){var r=e.length;for(e.sort(n);r--;)e[r]=e[r].value;return e}return xb=t,xb}var Tb,KD;function Noe(){if(KD)return Tb;KD=1;var t=Qs();function e(n,r){if(n!==r){var i=n!==void 0,o=n===null,s=n===n,u=t(n),c=r!==void 0,f=r===null,p=r===r,y=t(r);if(!f&&!y&&!u&&n>r||u&&c&&p&&!f&&!y||o&&c&&p||!i&&p||!s)return 1;if(!o&&!u&&!y&&n<r||y&&i&&s&&!o&&!u||f&&i&&s||!c&&s||!p)return-1}return 0}return Tb=e,Tb}var Sb,YD;function Ooe(){if(YD)return Sb;YD=1;var t=Noe();function e(n,r,i){for(var o=-1,s=n.criteria,u=r.criteria,c=s.length,f=i.length;++o<c;){var p=t(s[o],u[o]);if(p){if(o>=f)return p;var y=i[o];return p*(y=="desc"?-1:1)}}return n.index-r.index}return Sb=e,Sb}var Ab,WD;function Doe(){if(WD)return Ab;WD=1;var t=HA(),e=GA(),n=Or(),r=P$(),i=Roe(),o=y$(),s=Ooe(),u=tl(),c=yn();function f(p,y,v){y.length?y=t(y,function(A){return c(A)?function(S){return e(S,A.length===1?A[0]:A)}:A}):y=[u];var x=-1;y=t(y,o(n));var w=r(p,function(A,S,C){var P=t(y,function(M){return M(A)});return{criteria:P,index:++x,value:A}});return i(w,function(A,S){return s(A,S,v)})}return Ab=f,Ab}var wb,XD;function Ioe(){if(XD)return wb;XD=1;function t(e,n,r){switch(r.length){case 0:return e.call(n);case 1:return e.call(n,r[0]);case 2:return e.call(n,r[0],r[1]);case 3:return e.call(n,r[0],r[1],r[2])}return e.apply(n,r)}return wb=t,wb}var _b,JD;function koe(){if(JD)return _b;JD=1;var t=Ioe(),e=Math.max;function n(r,i,o){return i=e(i===void 0?r.length-1:i,0),function(){for(var s=arguments,u=-1,c=e(s.length-i,0),f=Array(c);++u<c;)f[u]=s[i+u];u=-1;for(var p=Array(i+1);++u<i;)p[u]=s[u];return p[i]=o(f),t(r,this,p)}}return _b=n,_b}var Cb,ZD;function Loe(){if(ZD)return Cb;ZD=1;function t(e){return function(){return e}}return Cb=t,Cb}var Eb,QD;function R$(){if(QD)return Eb;QD=1;var t=ea(),e=(function(){try{var n=t(Object,"defineProperty");return n({},"",{}),n}catch{}})();return Eb=e,Eb}var Mb,eI;function Uoe(){if(eI)return Mb;eI=1;var t=Loe(),e=R$(),n=tl(),r=e?function(i,o){return e(i,"toString",{configurable:!0,enumerable:!1,value:t(o),writable:!0})}:n;return Mb=r,Mb}var Pb,tI;function qoe(){if(tI)return Pb;tI=1;var t=800,e=16,n=Date.now;function r(i){var o=0,s=0;return function(){var u=n(),c=e-(u-s);if(s=u,c>0){if(++o>=t)return arguments[0]}else o=0;return i.apply(void 0,arguments)}}return Pb=r,Pb}var Rb,nI;function Boe(){if(nI)return Rb;nI=1;var t=Uoe(),e=qoe(),n=e(t);return Rb=n,Rb}var Nb,rI;function $oe(){if(rI)return Nb;rI=1;var t=tl(),e=koe(),n=Boe();function r(i,o){return n(e(i,o,t),i+"")}return Nb=r,Nb}var Ob,iI;function pp(){if(iI)return Ob;iI=1;var t=VA(),e=Lc(),n=tw(),r=to();function i(o,s,u){if(!r(u))return!1;var c=typeof s;return(c=="number"?e(u)&&n(s,u.length):c=="string"&&s in u)?t(u[s],o):!1}return Ob=i,Ob}var Db,oI;function Voe(){if(oI)return Db;oI=1;var t=E$(),e=Doe(),n=$oe(),r=pp(),i=n(function(o,s){if(o==null)return[];var u=s.length;return u>1&&r(o,s[0],s[1])?s=[]:u>2&&r(s[0],s[1],s[2])&&(s=[s[0]]),e(o,t(s,1),[])});return Db=i,Db}var joe=Voe();const ow=$e(joe);function zu(t){"@babel/helpers - typeof";return zu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},zu(t)}function qT(){return qT=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},qT.apply(this,arguments)}function Foe(t,e){return Koe(t)||zoe(t,e)||Goe(t,e)||Hoe()}function Hoe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 305In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Goe(t,e){if(t){if(typeof t=="string")return aI(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return aI(t,e)}}function aI(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function zoe(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,o,s,u=[],c=!0,f=!1;try{if(o=(n=n.call(t)).next,e!==0)for(;!(c=(r=o.call(n)).done)&&(u.push(r.value),u.length!==e);c=!0);}catch(p){f=!0,i=p}finally{try{if(!c&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(f)throw i}}return u}}function Koe(t){if(Array.isArray(t))return t}function sI(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Ib(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?sI(Object(n),!0).forEach(function(r){Yoe(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):sI(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Yoe(t,e,n){return e=Woe(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Woe(t){var e=Xoe(t,"string");return zu(e)=="symbol"?e:e+""}function Xoe(t,e){if(zu(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(zu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Joe(t){return Array.isArray(t)&&kt(t[0])&&kt(t[1])?t.join(" ~ "):t}var Zoe=function(e){var n=e.separator,r=n===void 0?" : ":n,i=e.contentStyle,o=i===void 0?{}:i,s=e.itemStyle,u=s===void 0?{}:s,c=e.labelStyle,f=c===void 0?{}:c,p=e.payload,y=e.formatter,v=e.itemSorter,x=e.wrapperClassName,w=e.labelClassName,A=e.label,S=e.labelFormatter,C=e.accessibilityLayer,P=C===void 0?!1:C,M=function(){if(p&&p.length){var z={padding:0,margin:0},W=(v?ow(p,v):p).map(function(ne,J){if(ne.type==="none")return null;var $=Ib({display:"block",paddingTop:4,paddingBottom:4,color:ne.color||"#000"},u),G=ne.formatter||y||Joe,te=ne.value,ue=ne.name,q=te,Z=ue;if(G&&q!=null&&Z!=null){var re=G(te,ue,ne,J,p);if(Array.isArray(re)){var ae=Foe(re,2);q=ae[0],Z=ae[1]}else q=re}return j.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(J),style:$},kt(Z)?j.createElement("span",{className:"recharts-tooltip-item-name"},Z):null,kt(Z)?j.createElement("span",{className:"recharts-tooltip-item-separator"},r):null,j.createElement("span",{className:"recharts-tooltip-item-value"},q),j.createElement("span",{className:"recharts-tooltip-item-unit"},ne.unit||""))});return j.createElement("ul",{className:"recharts-tooltip-item-list",style:z},W)}return null},O=Ib({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},o),E=Ib({margin:0},f),N=!ke(A),D=N?A:"",L=De("recharts-default-tooltip",x),U=De("recharts-tooltip-label",w);N&&S&&p!==void 0&&p!==null&&(D=S(A,p));var F=P?{role:"status","aria-live":"assertive"}:{};return j.createElement("div",qT({className:L,style:O},F),j.createElement("p",{className:U,style:E},j.isValidElement(D)?D:"".concat(D)),M())};function Ku(t){"@babel/helpers - typeof";return Ku=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ku(t)}function hd(t,e,n){return e=Qoe(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Qoe(t){var e=eae(t,"string");return Ku(e)=="symbol"?e:e+""}function eae(t,e){if(Ku(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(Ku(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var fu="recharts-tooltip-wrapper",tae={visibility:"hidden"};function nae(t){var e=t.coordinate,n=t.translateX,r=t.translateY;return De(fu,hd(hd(hd(hd({},"".concat(fu,"-right"),fe(n)&&e&&fe(e.x)&&n>=e.x),"".concat(fu,"-left"),fe(n)&&e&&fe(e.x)&&n<e.x),"".concat(fu,"-bottom"),fe(r)&&e&&fe(e.y)&&r>=e.y),"".concat(fu,"-top"),fe(r)&&e&&fe(e.y)&&r<e.y))}function lI(t){var e=t.allowEscapeViewBox,n=t.coordinate,r=t.key,i=t.offsetTopLeft,o=t.position,s=t.reverseDirection,u=t.tooltipDimension,c=t.viewBox,f=t.viewBoxDimension;if(o&&fe(o[r]))return o[r];var p=n[r]-u-i,y=n[r]+i;if(e[r])return s[r]?p:y;if(s[r]){var v=p,x=c[r];return v<x?Math.max(y,c[r]):Math.max(p,c[r])}var w=y+u,A=c[r]+f;return w>A?Math.max(p,c[r]):Math.max(y,c[r])}function rae(t){var e=t.translateX,n=t.translateY,r=t.useTranslate3d;return{transform:r?"translate3d(".concat(e,"px, ").concat(n,"px, 0)"):"translate(".concat(e,"px, ").concat(n,"px)")}}function iae(t){var e=t.allowEscapeViewBox,n=t.coordinate,r=t.offsetTopLeft,i=t.position,o=t.reverseDirection,s=t.tooltipBox,u=t.useTranslate3d,c=t.viewBox,f,p,y;return s.height>0&&s.width>0&&n?(p=lI({allowEscapeViewBox:e,coordinate:n,key:"x",offsetTopLeft:r,position:i,reverseDirection:o,tooltipDimension:s.width,viewBox:c,viewBoxDimension:c.width}),y=lI({allowEscapeViewBox:e,coordinate:n,key:"y",offsetTopLeft:r,position:i,reverseDirection:o,tooltipDimension:s.height,viewBox:c,viewBoxDimension:c.height}),f=rae({translateX:p,translateY:y,useTranslate3d:u})):f=tae,{cssProperties:f,cssClasses:nae({translateX:p,translateY:y,coordinate:n})}}function Ss(t){"@babel/helpers - typeof";return Ss=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ss(t)}function uI(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function cI(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?uI(Object(n),!0).forEach(function(r){$T(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):uI(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function oae(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function aae(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,O$(r.key),r)}}function sae(t,e,n){return e&&aae(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function lae(t,e,n){return e=ih(e),uae(t,N$()?Reflect.construct(e,n||[],ih(t).constructor):e.apply(t,n))}function uae(t,e){if(e&&(Ss(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return cae(t)}function cae(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function N$(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(N$=function(){return!!t})()}function ih(t){return ih=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ih(t)}function fae(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&BT(t,e)}function BT(t,e){return BT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},BT(t,e)}function $T(t,e,n){return e=O$(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function O$(t){var e=dae(t,"string");return Ss(e)=="symbol"?e:e+""}function dae(t,e){if(Ss(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(Ss(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var fI=1,hae=(function(t){function e(){var n;oae(this,e);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n=lae(this,e,[].concat(i)),$T(n,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),$T(n,"handleKeyDown",function(s){if(s.key==="Escape"){var u,c,f,p;n.setState({dismissed:!0,dismissedAtCoordinate:{x:(u=(c=n.props.coordinate)===null||c===void 0?void 0:c.x)!==null&&u!==void 0?u:0,y:(f=(p=n.props.coordinate)===null||p===void 0?void 0:p.y)!==null&&f!==void 0?f:0}})}}),n}return fae(e,t),sae(e,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();(Math.abs(r.width-this.state.lastBoundingBox.width)>fI||Math.abs(r.height-this.state.lastBoundingBox.height)>fI)&&this.setState({lastBoundingBox:{width:r.width,height:r.height}})}else(this.state.lastBoundingBox.width!==-1||this.state.lastBoundingBox.height!==-1)&&this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var r,i;this.props.active&&this.updateBBox(),this.state.dismissed&&(((r=this.props.coordinate)===null||r===void 0?void 0:r.x)!==this.state.dismissedAtCoordinate.x||((i=this.props.coordinate)===null||i===void 0?void 0:i.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var r=this,i=this.props,o=i.active,s=i.allowEscapeViewBox,u=i.animationDuration,c=i.animationEasing,f=i.children,p=i.coordinate,y=i.hasPayload,v=i.isAnimationActive,x=i.offset,w=i.position,A=i.reverseDirection,S=i.useTranslate3d,C=i.viewBox,P=i.wrapperStyle,M=iae({allowEscapeViewBox:s,coordinate:p,offsetTopLeft:x,position:w,reverseDirection:A,tooltipBox:this.state.lastBoundingBox,useTranslate3d:S,viewBox:C}),O=M.cssClasses,E=M.cssProperties,N=cI(cI({transition:v&&o?"transform ".concat(u,"ms ").concat(c):void 0},E),{},{pointerEvents:"none",visibility:!this.state.dismissed&&o&&y?"visible":"hidden",position:"absolute",top:0,left:0},P);return j.createElement("div",{tabIndex:-1,className:O,style:N,ref:function(L){r.wrapperNode=L}},f)}}])})(k.PureComponent),pae=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},nl={isSsr:pae()};function As(t){"@babel/helpers - typeof";return As=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},As(t)}function dI(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function hI(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?dI(Object(n),!0).forEach(function(r){aw(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):dI(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function mae(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function gae(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,I$(r.key),r)}}function yae(t,e,n){return e&&gae(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function vae(t,e,n){return e=oh(e),bae(t,D$()?Reflect.construct(e,n||[],oh(t).constructor):e.apply(t,n))}function bae(t,e){if(e&&(As(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return xae(t)}function xae(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function D$(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(D$=function(){return!!t})()}function oh(t){return oh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},oh(t)}function Tae(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&VT(t,e)}function VT(t,e){return VT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},VT(t,e)}function aw(t,e,n){return e=I$(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function I$(t){var e=Sae(t,"string");return As(e)=="symbol"?e:e+""}function Sae(t,e){if(As(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(As(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}function Aae(t){return t.dataKey}function wae(t,e){return j.isValidElement(t)?j.cloneElement(t,e):typeof t=="function"?j.createElement(t,e):j.createElement(Zoe,e)}var ar=(function(t){function e(){return mae(this,e),vae(this,e,arguments)}return Tae(e,t),yae(e,[{key:"render",value:function(){var r=this,i=this.props,o=i.active,s=i.allowEscapeViewBox,u=i.animationDuration,c=i.animationEasing,f=i.content,p=i.coordinate,y=i.filterNull,v=i.isAnimationActive,x=i.offset,w=i.payload,A=i.payloadUniqBy,S=i.position,C=i.reverseDirection,P=i.useTranslate3d,M=i.viewBox,O=i.wrapperStyle,E=w??[];y&&E.length&&(E=w$(w.filter(function(D){return D.value!=null&&(D.hide!==!0||r.props.includeHidden)}),A,Aae));var N=E.length>0;return j.createElement(hae,{allowEscapeViewBox:s,animationDuration:u,animationEasing:c,isAnimationActive:v,active:o,coordinate:p,hasPayload:N,offset:x,position:S,reverseDirection:C,useTranslate3d:P,viewBox:M,wrapperStyle:O},wae(f,hI(hI({},this.props),{},{payload:E})))}}])})(k.PureComponent);aw(ar,"displayName","Tooltip");aw(ar,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!nl.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 kb,pI;function _ae(){if(pI)return kb;pI=1;var t=Nr(),e=function(){return t.Date.now()};return kb=e,kb}var Lb,mI;function Cae(){if(mI)return Lb;mI=1;var t=/\s/;function e(n){for(var r=n.length;r--&&t.test(n.charAt(r)););return r}return Lb=e,Lb}var Ub,gI;function Eae(){if(gI)return Ub;gI=1;var t=Cae(),e=/^\s+/;function n(r){return r&&r.slice(0,t(r)+1).replace(e,"")}return Ub=n,Ub}var qb,yI;function k$(){if(yI)return qb;yI=1;var t=Eae(),e=to(),n=Qs(),r=NaN,i=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,s=/^0o[0-7]+$/i,u=parseInt;function c(f){if(typeof f=="number")return f;if(n(f))return r;if(e(f)){var p=typeof f.valueOf=="function"?f.valueOf():f;f=e(p)?p+"":p}if(typeof f!="string")return f===0?f:+f;f=t(f);var y=o.test(f);return y||s.test(f)?u(f.slice(2),y?2:8):i.test(f)?r:+f}return qb=c,qb}var Bb,vI;function Mae(){if(vI)return Bb;vI=1;var t=to(),e=_ae(),n=k$(),r="Expected a function",i=Math.max,o=Math.min;function s(u,c,f){var p,y,v,x,w,A,S=0,C=!1,P=!1,M=!0;if(typeof u!="function")throw new TypeError(r);c=n(c)||0,t(f)&&(C=!!f.leading,P="maxWait"in f,v=P?i(n(f.maxWait)||0,c):v,M="trailing"in f?!!f.trailing:M);function O(W){var ne=p,J=y;return p=y=void 0,S=W,x=u.apply(J,ne),x}function E(W){return S=W,w=setTimeout(L,c),C?O(W):x}function N(W){var ne=W-A,J=W-S,$=c-ne;return P?o($,v-J):$}function D(W){var ne=W-A,J=W-S;return A===void 0||ne>=c||ne<0||P&&J>=v}function L(){var W=e();if(D(W))return U(W);w=setTimeout(L,N(W))}function U(W){return w=void 0,M&&p?O(W):(p=y=void 0,x)}function F(){w!==void 0&&clearTimeout(w),S=0,p=A=y=w=void 0}function B(){return w===void 0?x:U(e())}function z(){var W=e(),ne=D(W);if(p=arguments,y=this,A=W,ne){if(w===void 0)return E(A);if(P)return clearTimeout(w),w=setTimeout(L,c),O(A)}return w===void 0&&(w=setTimeout(L,c)),x}return z.cancel=F,z.flush=B,z}return Bb=s,Bb}var $b,bI;function Pae(){if(bI)return $b;bI=1;var t=Mae(),e=to(),n="Expected a function";function r(i,o,s){var u=!0,c=!0;if(typeof i!="function")throw new TypeError(n);return e(s)&&(u="leading"in s?!!s.leading:u,c="trailing"in s?!!s.trailing:c),t(i,o,{leading:u,maxWait:o,trailing:c})}return $b=r,$b}var Rae=Pae();const L$=$e(Rae);function Yu(t){"@babel/helpers - typeof";return Yu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Yu(t)}function xI(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function pd(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?xI(Object(n),!0).forEach(function(r){Nae(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):xI(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Nae(t,e,n){return e=Oae(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Oae(t){var e=Dae(t,"string");return Yu(e)=="symbol"?e:e+""}function Dae(t,e){if(Yu(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(Yu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Iae(t,e){return qae(t)||Uae(t,e)||Lae(t,e)||kae()}function kae(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 306In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Lae(t,e){if(t){if(typeof t=="string")return TI(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return TI(t,e)}}function TI(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Uae(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,o,s,u=[],c=!0,f=!1;try{if(o=(n=n.call(t)).next,e!==0)for(;!(c=(r=o.call(n)).done)&&(u.push(r.value),u.length!==e);c=!0);}catch(p){f=!0,i=p}finally{try{if(!c&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(f)throw i}}return u}}function qae(t){if(Array.isArray(t))return t}var SI=k.forwardRef(function(t,e){var n=t.aspect,r=t.initialDimension,i=r===void 0?{width:-1,height:-1}:r,o=t.width,s=o===void 0?"100%":o,u=t.height,c=u===void 0?"100%":u,f=t.minWidth,p=f===void 0?0:f,y=t.minHeight,v=t.maxHeight,x=t.children,w=t.debounce,A=w===void 0?0:w,S=t.id,C=t.className,P=t.onResize,M=t.style,O=M===void 0?{}:M,E=k.useRef(null),N=k.useRef();N.current=P,k.useImperativeHandle(e,function(){return Object.defineProperty(E.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),E.current},configurable:!0})});var D=k.useState({containerWidth:i.width,containerHeight:i.height}),L=Iae(D,2),U=L[0],F=L[1],B=k.useCallback(function(W,ne){F(function(J){var $=Math.round(W),G=Math.round(ne);return J.containerWidth===$&&J.containerHeight===G?J:{containerWidth:$,containerHeight:G}})},[]);k.useEffect(function(){var W=function(ue){var q,Z=ue[0].contentRect,re=Z.width,ae=Z.height;B(re,ae),(q=N.current)===null||q===void 0||q.call(N,re,ae)};A>0&&(W=L$(W,A,{trailing:!0,leading:!1}));var ne=new ResizeObserver(W),J=E.current.getBoundingClientRect(),$=J.width,G=J.height;return B($,G),ne.observe(E.current),function(){ne.disconnect()}},[B,A]);var z=k.useMemo(function(){var W=U.containerWidth,ne=U.containerHeight;if(W<0||ne<0)return null;dr(Uo(s)||Uo(c),`The width(%s) and height(%s) are both fixed numbers, 307 maybe you don't need to use a ResponsiveContainer.`,s,c),dr(!n||n>0,"The aspect(%s) must be greater than zero.",n);var J=Uo(s)?W:s,$=Uo(c)?ne:c;n&&n>0&&(J?$=J/n:$&&(J=$*n),v&&$>v&&($=v)),dr(J>0||$>0,`The width(%s) and height(%s) of chart should be greater than 0, 308 please check the style of container, or the props width(%s) and height(%s), 309 or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the 310 height and width.`,J,$,s,c,p,y,n);var G=!Array.isArray(x)&&ri(x.type).endsWith("Chart");return j.Children.map(x,function(te){return j.isValidElement(te)?k.cloneElement(te,pd({width:J,height:$},G?{style:pd({height:"100%",width:"100%",maxHeight:$,maxWidth:J},te.props.style)}:{})):te})},[n,x,c,v,y,p,U,s]);return j.createElement("div",{id:S?"".concat(S):void 0,className:De("recharts-responsive-container",C),style:pd(pd({},O),{},{width:s,height:c,minWidth:p,minHeight:y,maxHeight:v}),ref:E},z)}),mp=function(e){return null};mp.displayName="Cell";function Wu(t){"@babel/helpers - typeof";return Wu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Wu(t)}function AI(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function jT(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?AI(Object(n),!0).forEach(function(r){Bae(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):AI(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Bae(t,e,n){return e=$ae(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function $ae(t){var e=Vae(t,"string");return Wu(e)=="symbol"?e:e+""}function Vae(t,e){if(Wu(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(Wu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var za={widthCache:{},cacheCount:0},jae=2e3,Fae={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},wI="recharts_measurement_span";function Hae(t){var e=jT({},t);return Object.keys(e).forEach(function(n){e[n]||delete e[n]}),e}var Nu=function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(e==null||nl.isSsr)return{width:0,height:0};var r=Hae(n),i=JSON.stringify({text:e,copyStyle:r});if(za.widthCache[i])return za.widthCache[i];try{var o=document.getElementById(wI);o||(o=document.createElement("span"),o.setAttribute("id",wI),o.setAttribute("aria-hidden","true"),document.body.appendChild(o));var s=jT(jT({},Fae),r);Object.assign(o.style,s),o.textContent="".concat(e);var u=o.getBoundingClientRect(),c={width:u.width,height:u.height};return za.widthCache[i]=c,++za.cacheCount>jae&&(za.cacheCount=0,za.widthCache={}),c}catch{return{width:0,height:0}}},Gae=function(e){return{top:e.top+window.scrollY-document.documentElement.clientTop,left:e.left+window.scrollX-document.documentElement.clientLeft}};function Xu(t){"@babel/helpers - typeof";return Xu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Xu(t)}function ah(t,e){return Wae(t)||Yae(t,e)||Kae(t,e)||zae()}function zae(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 311In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Kae(t,e){if(t){if(typeof t=="string")return _I(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _I(t,e)}}function _I(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Yae(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,o,s,u=[],c=!0,f=!1;try{if(o=(n=n.call(t)).next,e===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(u.push(r.value),u.length!==e);c=!0);}catch(p){f=!0,i=p}finally{try{if(!c&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(f)throw i}}return u}}function Wae(t){if(Array.isArray(t))return t}function Xae(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function CI(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Zae(r.key),r)}}function Jae(t,e,n){return e&&CI(t.prototype,e),n&&CI(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function Zae(t){var e=Qae(t,"string");return Xu(e)=="symbol"?e:e+""}function Qae(t,e){if(Xu(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(Xu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var EI=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,MI=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,ese=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,tse=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,U$={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},nse=Object.keys(U$),rs="NaN";function rse(t,e){return t*U$[e]}var md=(function(){function t(e,n){Xae(this,t),this.num=e,this.unit=n,this.num=e,this.unit=n,Number.isNaN(e)&&(this.unit=""),n!==""&&!ese.test(n)&&(this.num=NaN,this.unit=""),nse.includes(n)&&(this.num=rse(e,n),this.unit="px")}return Jae(t,[{key:"add",value:function(n){return this.unit!==n.unit?new t(NaN,""):new t(this.num+n.num,this.unit)}},{key:"subtract",value:function(n){return this.unit!==n.unit?new t(NaN,""):new t(this.num-n.num,this.unit)}},{key:"multiply",value:function(n){return this.unit!==""&&n.unit!==""&&this.unit!==n.unit?new t(NaN,""):new t(this.num*n.num,this.unit||n.unit)}},{key:"divide",value:function(n){return this.unit!==""&&n.unit!==""&&this.unit!==n.unit?new t(NaN,""):new t(this.num/n.num,this.unit||n.unit)}},{key:"toString",value:function(){return"".concat(this.num).concat(this.unit)}},{key:"isNaN",value:function(){return Number.isNaN(this.num)}}],[{key:"parse",value:function(n){var r,i=(r=tse.exec(n))!==null&&r!==void 0?r:[],o=ah(i,3),s=o[1],u=o[2];return new t(parseFloat(s),u??"")}}])})();function q$(t){if(t.includes(rs))return rs;for(var e=t;e.includes("*")||e.includes("/");){var n,r=(n=EI.exec(e))!==null&&n!==void 0?n:[],i=ah(r,4),o=i[1],s=i[2],u=i[3],c=md.parse(o??""),f=md.parse(u??""),p=s==="*"?c.multiply(f):c.divide(f);if(p.isNaN())return rs;e=e.replace(EI,p.toString())}for(;e.includes("+")||/.-\d+(?:\.\d+)?/.test(e);){var y,v=(y=MI.exec(e))!==null&&y!==void 0?y:[],x=ah(v,4),w=x[1],A=x[2],S=x[3],C=md.parse(w??""),P=md.parse(S??""),M=A==="+"?C.add(P):C.subtract(P);if(M.isNaN())return rs;e=e.replace(MI,M.toString())}return e}var PI=/\(([^()]*)\)/;function ise(t){for(var e=t;e.includes("(");){var n=PI.exec(e),r=ah(n,2),i=r[1];e=e.replace(PI,q$(i))}return e}function ose(t){var e=t.replace(/\s+/g,"");return e=ise(e),e=q$(e),e}function ase(t){try{return ose(t)}catch{return rs}}function Vb(t){var e=ase(t.slice(5,-1));return e===rs?"":e}var sse=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],lse=["dx","dy","angle","className","breakAll"];function FT(){return FT=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},FT.apply(this,arguments)}function RI(t,e){if(t==null)return{};var n=use(t,e),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)r=o[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function use(t,e){if(t==null)return{};var n={};for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){if(e.indexOf(r)>=0)continue;n[r]=t[r]}return n}function NI(t,e){return hse(t)||dse(t,e)||fse(t,e)||cse()}
311function cse(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 312In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function fse(t,e){if(t){if(typeof t=="string")return OI(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return OI(t,e)}}function OI(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function dse(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,o,s,u=[],c=!0,f=!1;try{if(o=(n=n.call(t)).next,e===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(u.push(r.value),u.length!==e);c=!0);}catch(p){f=!0,i=p}finally{try{if(!c&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(f)throw i}}return u}}function hse(t){if(Array.isArray(t))return t}var B$=/[ \f\n\r\t\v\u2028\u2029]+/,$$=function(e){var n=e.children,r=e.breakAll,i=e.style;try{var o=[];ke(n)||(r?o=n.toString().split(""):o=n.toString().split(B$));var s=o.map(function(c){return{word:c,width:Nu(c,i).width}}),u=r?0:Nu(" ",i).width;return{wordsWithComputedWidth:s,spaceWidth:u}}catch{return null}},pse=function(e,n,r,i,o){var s=e.maxLines,u=e.children,c=e.style,f=e.breakAll,p=fe(s),y=u,v=function(){var J=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return J.reduce(function($,G){var te=G.word,ue=G.width,q=$[$.length-1];if(q&&(i==null||o||q.width+ue+r<Number(i)))q.words.push(te),q.width+=ue+r;else{var Z={words:[te],width:ue};$.push(Z)}return $},[])},x=v(n),w=function(J){return J.reduce(function($,G){return $.width>G.width?$:G})};if(!p)return x;for(var A="â¦",S=function(J){var $=y.slice(0,J),G=$$({breakAll:f,style:c,children:$+A}).wordsWithComputedWidth,te=v(G),ue=te.length>s||w(te).width>Number(i);return[ue,te]},C=0,P=y.length-1,M=0,O;C<=P&&M<=y.length-1;){var E=Math.floor((C+P)/2),N=E-1,D=S(N),L=NI(D,2),U=L[0],F=L[1],B=S(E),z=NI(B,1),W=z[0];if(!U&&!W&&(C=E+1),U&&W&&(P=E-1),!U&&W){O=F;break}M++}return O||x},DI=function(e){var n=ke(e)?[]:e.toString().split(B$);return[{words:n}]},mse=function(e){var n=e.width,r=e.scaleToFit,i=e.children,o=e.style,s=e.breakAll,u=e.maxLines;if((n||r)&&!nl.isSsr){var c,f,p=$$({breakAll:s,children:i,style:o});if(p){var y=p.wordsWithComputedWidth,v=p.spaceWidth;c=y,f=v}else return DI(i);return pse({breakAll:s,children:i,maxLines:u,style:o},c,f,n,r)}return DI(i)},II="#808080",Yo=function(e){var n=e.x,r=n===void 0?0:n,i=e.y,o=i===void 0?0:i,s=e.lineHeight,u=s===void 0?"1em":s,c=e.capHeight,f=c===void 0?"0.71em":c,p=e.scaleToFit,y=p===void 0?!1:p,v=e.textAnchor,x=v===void 0?"start":v,w=e.verticalAnchor,A=w===void 0?"end":w,S=e.fill,C=S===void 0?II:S,P=RI(e,sse),M=k.useMemo(function(){return mse({breakAll:P.breakAll,children:P.children,maxLines:P.maxLines,scaleToFit:y,style:P.style,width:P.width})},[P.breakAll,P.children,P.maxLines,y,P.style,P.width]),O=P.dx,E=P.dy,N=P.angle,D=P.className,L=P.breakAll,U=RI(P,lse);if(!kt(r)||!kt(o))return null;var F=r+(fe(O)?O:0),B=o+(fe(E)?E:0),z;switch(A){case"start":z=Vb("calc(".concat(f,")"));break;case"middle":z=Vb("calc(".concat((M.length-1)/2," * -").concat(u," + (").concat(f," / 2))"));break;default:z=Vb("calc(".concat(M.length-1," * -").concat(u,")"));break}var W=[];if(y){var ne=M[0].width,J=P.width;W.push("scale(".concat((fe(J)?J/ne:1)/ne,")"))}return N&&W.push("rotate(".concat(N,", ").concat(F,", ").concat(B,")")),W.length&&(U.transform=W.join(" ")),j.createElement("text",FT({},_e(U,!0),{x:F,y:B,className:De("recharts-text",D),textAnchor:x,fill:C.includes("url")?II:C}),M.map(function($,G){var te=$.words.join(L?"":" ");return j.createElement("tspan",{x:F,dy:G===0?z:u,key:"".concat(te,"-").concat(G)},te)}))};function Xi(t,e){return t==null||e==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function gse(t,e){return t==null||e==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function sw(t){let e,n,r;t.length!==2?(e=Xi,n=(u,c)=>Xi(t(u),c),r=(u,c)=>t(u)-c):(e=t===Xi||t===gse?t:yse,n=t,r=t);function i(u,c,f=0,p=u.length){if(f<p){if(e(c,c)!==0)return p;do{const y=f+p>>>1;n(u[y],c)<0?f=y+1:p=y}while(f<p)}return f}function o(u,c,f=0,p=u.length){if(f<p){if(e(c,c)!==0)return p;do{const y=f+p>>>1;n(u[y],c)<=0?f=y+1:p=y}while(f<p)}return f}function s(u,c,f=0,p=u.length){const y=i(u,c,f,p-1);return y>f&&r(u[y-1],c)>-r(u[y],c)?y-1:y}return{left:i,center:s,right:o}}function yse(){return 0}function V$(t){return t===null?NaN:+t}function*vse(t,e){for(let n of t)n!=null&&(n=+n)>=n&&(yield n)}const bse=sw(Xi),Uc=bse.right;sw(V$).center;class kI extends Map{constructor(e,n=Sse){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),e!=null)for(const[r,i]of e)this.set(r,i)}get(e){return super.get(LI(this,e))}has(e){return super.has(LI(this,e))}set(e,n){return super.set(xse(this,e),n)}delete(e){return super.delete(Tse(this,e))}}function LI({_intern:t,_key:e},n){const r=e(n);return t.has(r)?t.get(r):n}function xse({_intern:t,_key:e},n){const r=e(n);return t.has(r)?t.get(r):(t.set(r,n),n)}function Tse({_intern:t,_key:e},n){const r=e(n);return t.has(r)&&(n=t.get(r),t.delete(r)),n}function Sse(t){return t!==null&&typeof t=="object"?t.valueOf():t}function Ase(t=Xi){if(t===Xi)return j$;if(typeof t!="function")throw new TypeError("compare is not a function");return(e,n)=>{const r=t(e,n);return r||r===0?r:(t(n,n)===0)-(t(e,e)===0)}}function j$(t,e){return(t==null||!(t>=t))-(e==null||!(e>=e))||(t<e?-1:t>e?1:0)}const wse=Math.sqrt(50),_se=Math.sqrt(10),Cse=Math.sqrt(2);function sh(t,e,n){const r=(e-t)/Math.max(0,n),i=Math.floor(Math.log10(r)),o=r/Math.pow(10,i),s=o>=wse?10:o>=_se?5:o>=Cse?2:1;let u,c,f;return i<0?(f=Math.pow(10,-i)/s,u=Math.round(t*f),c=Math.round(e*f),u/f<t&&++u,c/f>e&&--c,f=-f):(f=Math.pow(10,i)*s,u=Math.round(t/f),c=Math.round(e/f),u*f<t&&++u,c*f>e&&--c),c<u&&.5<=n&&n<2?sh(t,e,n*2):[u,c,f]}function HT(t,e,n){if(e=+e,t=+t,n=+n,!(n>0))return[];if(t===e)return[t];
312const r=e<t,[i,o,s]=r?sh(e,t,n):sh(t,e,n);if(!(o>=i))return[];const u=o-i+1,c=new Array(u);if(r)if(s<0)for(let f=0;f<u;++f)c[f]=(o-f)/-s;else for(let f=0;f<u;++f)c[f]=(o-f)*s;else if(s<0)for(let f=0;f<u;++f)c[f]=(i+f)/-s;else for(let f=0;f<u;++f)c[f]=(i+f)*s;return c}function GT(t,e,n){return e=+e,t=+t,n=+n,sh(t,e,n)[2]}function zT(t,e,n){e=+e,t=+t,n=+n;const r=e<t,i=r?GT(e,t,n):GT(t,e,n);return(r?-1:1)*(i<0?1/-i:i)}function UI(t,e){let n;for(const r of t)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);return n}function qI(t,e){let n;for(const r of t)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);return n}function F$(t,e,n=0,r=1/0,i){if(e=Math.floor(e),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(t.length-1,r)),!(n<=e&&e<=r))return t;for(i=i===void 0?j$:Ase(i);r>n;){if(r-n>600){const c=r-n+1,f=e-n+1,p=Math.log(c),y=.5*Math.exp(2*p/3),v=.5*Math.sqrt(p*y*(c-y)/c)*(f-c/2<0?-1:1),x=Math.max(n,Math.floor(e-f*y/c+v)),w=Math.min(r,Math.floor(e+(c-f)*y/c+v));F$(t,e,x,w,i)}const o=t[e];let s=n,u=r;for(du(t,n,e),i(t[r],o)>0&&du(t,n,r);s<u;){for(du(t,s,u),++s,--u;i(t[s],o)<0;)++s;for(;i(t[u],o)>0;)--u}i(t[n],o)===0?du(t,n,u):(++u,du(t,u,r)),u<=e&&(n=u+1),e<=u&&(r=u-1)}return t}function du(t,e,n){const r=t[e];t[e]=t[n],t[n]=r}function Ese(t,e,n){if(t=Float64Array.from(vse(t)),!(!(r=t.length)||isNaN(e=+e))){if(e<=0||r<2)return qI(t);
vendor: 9,815 bytes, line 312
312if(e>=1)return UI(t);var r,i=(r-1)*e,o=Math.floor(i),s=UI(F$(t,o).subarray(0,o+1)),u=qI(t.subarray(o+1));return s+(u-s)*(i-o)}}function Mse(t,e,n=V$){if(!(!(r=t.length)||isNaN(e=+e))){if(e<=0||r<2)return+n(t[0],0,t);if(e>=1)return+n(t[r-1],r-1,t);var r,i=(r-1)*e,o=Math.floor(i),s=+n(t[o],o,t),u=+n(t[o+1],o+1,t);return s+(u-s)*(i-o)}}function Pse(t,e,n){t=+t,e=+e,n=(i=arguments.length)<2?(e=t,t=0,1):i<3?1:+n;for(var r=-1,i=Math.max(0,Math.ceil((e-t)/n))|0,o=new Array(i);++r<i;)o[r]=t+r*n;return o}function Zn(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t);break}return this}function mi(t,e){switch(arguments.length){case 0:break;case 1:{typeof t=="function"?this.interpolator(t):this.range(t);break}default:{this.domain(t),typeof e=="function"?this.interpolator(e):this.range(e);break}}return this}const KT=Symbol("implicit");function lw(){var t=new kI,e=[],n=[],r=KT;function i(o){let s=t.get(o);if(s===void 0){if(r!==KT)return r;t.set(o,s=e.push(o)-1)}return n[s%n.length]}return i.domain=function(o){if(!arguments.length)return e.slice();e=[],t=new kI;for(const s of o)t.has(s)||t.set(s,e.push(s)-1);return i},i.range=function(o){return arguments.length?(n=Array.from(o),i):n.slice()},i.unknown=function(o){return arguments.length?(r=o,i):r},i.copy=function(){return lw(e,n).unknown(r)},Zn.apply(i,arguments),i}function Ju(){var t=lw().unknown(void 0),e=t.domain,n=t.range,r=0,i=1,o,s,u=!1,c=0,f=0,p=.5;delete t.unknown;function y(){var v=e().length,x=i<r,w=x?i:r,A=x?r:i;o=(A-w)/Math.max(1,v-c+f*2),u&&(o=Math.floor(o)),w+=(A-w-o*(v-c))*p,s=o*(1-c),u&&(w=Math.round(w),s=Math.round(s));var S=Pse(v).map(function(C){return w+o*C});return n(x?S.reverse():S)}return t.domain=function(v){return arguments.length?(e(v),y()):e()},t.range=function(v){return arguments.length?([r,i]=v,r=+r,i=+i,y()):[r,i]},t.rangeRound=function(v){return[r,i]=v,r=+r,i=+i,u=!0,y()},t.bandwidth=function(){return s},t.step=function(){return o},t.round=function(v){return arguments.length?(u=!!v,y()):u},t.padding=function(v){return arguments.length?(c=Math.min(1,f=+v),y()):c},t.paddingInner=function(v){return arguments.length?(c=Math.min(1,v),y()):c},t.paddingOuter=function(v){return arguments.length?(f=+v,y()):f},t.align=function(v){return arguments.length?(p=Math.max(0,Math.min(1,v)),y()):p},t.copy=function(){return Ju(e(),[r,i]).round(u).paddingInner(c).paddingOuter(f).align(p)},Zn.apply(y(),arguments)}function H$(t){var e=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,delete t.paddingOuter,t.copy=function(){return H$(e())},t}function Ou(){return H$(Ju.apply(null,arguments).paddingInner(1))}function uw(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function G$(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function qc(){}var Zu=.7,lh=1/Zu,ms="\\s*([+-]?\\d+)\\s*",Qu="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",wr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Rse=/^#([0-9a-f]{3,8})$/,Nse=new RegExp(`^rgb\\(${ms},${ms},${ms}\\)$`),Ose=new RegExp(`^rgb\\(${wr},${wr},${wr}\\)$`),Dse=new RegExp(`^rgba\\(${ms},${ms},${ms},${Qu}\\)$`),Ise=new RegExp(`^rgba\\(${wr},${wr},${wr},${Qu}\\)$`),kse=new RegExp(`^hsl\\(${Qu},${wr},${wr}\\)$`),Lse=new RegExp(`^hsla\\(${Qu},${wr},${wr},${Qu}\\)$`),BI={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};uw(qc,ec,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:$I,formatHex:$I,formatHex8:Use,formatHsl:qse,formatRgb:VI,toString:VI});function $I(){return this.rgb().formatHex()}function Use(){return this.rgb().formatHex8()}function qse(){return z$(this).formatHsl()}function VI(){return this.rgb().formatRgb()}function ec(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=Rse.exec(t))?(n=e[1].length,e=parseInt(e[1],16),n===6?jI(e):n===3?new gn(e>>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):n===8?gd(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):n===4?gd(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=Nse.exec(t))?new gn(e[1],e[2],e[3],1):(e=Ose.exec(t))?new gn(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=Dse.exec(t))?gd(e[1],e[2],e[3],e[4]):(e=Ise.exec(t))?gd(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=kse.exec(t))?GI(e[1],e[2]/100,e[3]/100,1):(e=Lse.exec(t))?GI(e[1],e[2]/100,e[3]/100,e[4]):BI.hasOwnProperty(t)?jI(BI[t]):t==="transparent"?new gn(NaN,NaN,NaN,0):null}function jI(t){return new gn(t>>16&255,t>>8&255,t&255,1)}function gd(t,e,n,r){return r<=0&&(t=e=n=NaN),new gn(t,e,n,r)}function Bse(t){return t instanceof qc||(t=ec(t)),t?(t=t.rgb(),new gn(t.r,t.g,t.b,t.opacity)):new gn}function YT(t,e,n,r){return arguments.length===1?Bse(t):new gn(t,e,n,r??1)}function gn(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}uw(gn,YT,G$(qc,{brighter(t){return t=t==null?lh:Math.pow(lh,t),new gn(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?Zu:Math.pow(Zu,t),new gn(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new gn(Fo(this.r),Fo(this.g),Fo(this.b),uh(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:FI,formatHex:FI,formatHex8:$se,formatRgb:HI,toString:HI}));function FI(){return`#${qo(this.r)}${qo(this.g)}${qo(this.b)}`}function $se(){return`#${qo(this.r)}${qo(this.g)}${qo(this.b)}${qo((isNaN(this.opacity)?1:this.opacity)*255)}`}function HI(){const t=uh(this.opacity);return`${t===1?"rgb(":"rgba("}${Fo(this.r)}, ${Fo(this.g)}, ${Fo(this.b)}${t===1?")":`, ${t})`}`}function uh(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function Fo(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function qo(t){return t=Fo(t),(t<16?"0":"")+t.toString(16)}function GI(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new lr(t,e,n,r)}function z$(t){if(t instanceof lr)return new lr(t.h,t.s,t.l,t.opacity);if(t instanceof qc||(t=ec(t)),!t)return new lr;if(t instanceof lr)return t;t=t.rgb();var e=t.r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),o=Math.max(e,n,r),s=NaN,u=o-i,c=(o+i)/2;return u?(e===o?s=(n-r)/u+(n<r)*6:n===o?s=(r-e)/u+2:s=(e-n)/u+4,u/=c<.5?o+i:2-o-i,s*=60):u=c>0&&c<1?0:s,new lr(s,u,c,t.opacity)}function Vse(t,e,n,r){return arguments.length===1?z$(t):new lr(t,e,n,r??1)}function lr(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}uw(lr,Vse,G$(qc,{brighter(t){return t=t==null?lh:Math.pow(lh,t),new lr(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?Zu:Math.pow(Zu,t),new lr(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new gn(jb(t>=240?t-240:t+120,i,r),jb(t,i,r),jb(t<120?t+240:t-120,i,r),this.opacity)},clamp(){return new lr(zI(this.h),yd(this.s),yd(this.l),uh(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 t=uh(this.opacity);return`${t===1?"hsl(":"hsla("}${zI(this.h)}, ${yd(this.s)*100}%, ${yd(this.l)*100}%${t===1?")":`, ${t})`}`}}));function zI(t){return t=(t||0)%360,t<0?t+360:t}
vendor: 4,320 bytes, line 312
312function yd(t){return Math.max(0,Math.min(1,t||0))}function jb(t,e,n){return(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)*255}const cw=t=>()=>t;function jse(t,e){return function(n){return t+n*e}}function Fse(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}function Hse(t){return(t=+t)==1?K$:function(e,n){return n-e?Fse(e,n,t):cw(isNaN(e)?n:e)}}function K$(t,e){var n=e-t;return n?jse(t,n):cw(isNaN(t)?e:t)}const KI=(function t(e){var n=Hse(e);function r(i,o){var s=n((i=YT(i)).r,(o=YT(o)).r),u=n(i.g,o.g),c=n(i.b,o.b),f=K$(i.opacity,o.opacity);return function(p){return i.r=s(p),i.g=u(p),i.b=c(p),i.opacity=f(p),i+""}}return r.gamma=t,r})(1);function Gse(t,e){e||(e=[]);var n=t?Math.min(e.length,t.length):0,r=e.slice(),i;return function(o){for(i=0;i<n;++i)r[i]=t[i]*(1-o)+e[i]*o;return r}}function zse(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function Kse(t,e){var n=e?e.length:0,r=t?Math.min(n,t.length):0,i=new Array(r),o=new Array(n),s;for(s=0;s<r;++s)i[s]=rl(t[s],e[s]);for(;s<n;++s)o[s]=e[s];return function(u){for(s=0;s<r;++s)o[s]=i[s](u);return o}}function Yse(t,e){var n=new Date;return t=+t,e=+e,function(r){return n.setTime(t*(1-r)+e*r),n}}function ch(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}function Wse(t,e){var n={},r={},i;(t===null||typeof t!="object")&&(t={}),(e===null||typeof e!="object")&&(e={});for(i in e)i in t?n[i]=rl(t[i],e[i]):r[i]=e[i];return function(o){for(i in n)r[i]=n[i](o);return r}}var WT=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Fb=new RegExp(WT.source,"g");function Xse(t){return function(){return t}}function Jse(t){return function(e){return t(e)+""}}function Zse(t,e){var n=WT.lastIndex=Fb.lastIndex=0,r,i,o,s=-1,u=[],c=[];for(t=t+"",e=e+"";(r=WT.exec(t))&&(i=Fb.exec(e));)(o=i.index)>n&&(o=e.slice(n,o),u[s]?u[s]+=o:u[++s]=o),(r=r[0])===(i=i[0])?u[s]?u[s]+=i:u[++s]=i:(u[++s]=null,c.push({i:s,x:ch(r,i)})),n=Fb.lastIndex;return n<e.length&&(o=e.slice(n),u[s]?u[s]+=o:u[++s]=o),u.length<2?c[0]?Jse(c[0].x):Xse(e):(e=c.length,function(f){for(var p=0,y;p<e;++p)u[(y=c[p]).i]=y.x(f);return u.join("")})}function rl(t,e){var n=typeof e,r;return e==null||n==="boolean"?cw(e):(n==="number"?ch:n==="string"?(r=ec(e))?(e=r,KI):Zse:e instanceof ec?KI:e instanceof Date?Yse:zse(e)?Gse:Array.isArray(e)?Kse:typeof e.valueOf!="function"&&typeof e.toString!="function"||isNaN(e)?Wse:ch)(t,e)}function fw(t,e){return t=+t,e=+e,function(n){return Math.round(t*(1-n)+e*n)}}function Qse(t,e){e===void 0&&(e=t,t=rl);for(var n=0,r=e.length-1,i=e[0],o=new Array(r<0?0:r);n<r;)o[n]=t(i,i=e[++n]);return function(s){var u=Math.max(0,Math.min(r-1,Math.floor(s*=r)));return o[u](s-u)}}function ele(t){return function(){return t}}function fh(t){return+t}var YI=[0,1];function cn(t){return t}function XT(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:ele(isNaN(e)?NaN:.5)}function tle(t,e){var n;return t>e&&(n=t,t=e,e=n),function(r){return Math.max(t,Math.min(e,r))}}function nle(t,e,n){var r=t[0],i=t[1],o=e[0],s=e[1];return i<r?(r=XT(i,r),o=n(s,o)):(r=XT(r,i),o=n(o,s)),function(u){return o(r(u))}}function rle(t,e,n){var r=Math.min(t.length,e.length)-1,i=new Array(r),o=new Array(r),s=-1;for(t[r]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++s<r;)i[s]=XT(t[s],t[s+1]),o[s]=n(e[s],e[s+1]);return function(u){var c=Uc(t,u,1,r)-1;return o[c](i[c](u))}}function Bc(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function gp(){var t=YI,e=YI,n=rl,r,i,o,s=cn,u,c,f;function p(){var v=Math.min(t.length,e.length);return s!==cn&&(s=tle(t[0],t[v-1])),u=v>2?rle:nle,c=f=null,y}function y(v){return v==null||isNaN(v=+v)?o:(c||(c=u(t.map(r),e,n)))(r(s(v)))}return y.invert=function(v){return s(i((f||(f=u(e,t.map(r),ch)))(v)))},y.domain=function(v){return arguments.length?(t=Array.from(v,fh),p()):t.slice()},y.range=function(v){return arguments.length?(e=Array.from(v),p()):e.slice()},y.rangeRound=function(v){return e=Array.from(v),n=fw,p()},y.clamp=function(v){return arguments.length?(s=v?!0:cn,p()):s!==cn},y.interpolate=function(v){return arguments.length?(n=v,p()):n},y.unknown=function(v){return arguments.length?(o=v,y):o},function(v,x){return r=v,i=x,p()}}function dw(){return gp()(cn,cn)}function ile(t){return Math.abs(t=Math.round(t))>
vendor: 3,777 bytes, line 312
312=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)}function dh(t,e){if((n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var n,r=t.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+t.slice(n+1)]}function ws(t){return t=dh(Math.abs(t)),t?t[1]:NaN}function ole(t,e){return function(n,r){for(var i=n.length,o=[],s=0,u=t[0],c=0;i>0&&u>0&&(c+u+1>r&&(u=Math.max(1,r-c)),o.push(n.substring(i-=u,i+u)),!((c+=u+1)>r));)u=t[s=(s+1)%t.length];return o.reverse().join(e)}}function ale(t){return function(e){return e.replace(/[0-9]/g,function(n){return t[+n]})}}var sle=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function tc(t){if(!(e=sle.exec(t)))throw new Error("invalid format: "+t);var e;return new hw({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}tc.prototype=hw.prototype;function hw(t){this.fill=t.fill===void 0?" ":t.fill+"",this.align=t.align===void 0?">":t.align+"",this.sign=t.sign===void 0?"-":t.sign+"",this.symbol=t.symbol===void 0?"":t.symbol+"",this.zero=!!t.zero,this.width=t.width===void 0?void 0:+t.width,this.comma=!!t.comma,this.precision=t.precision===void 0?void 0:+t.precision,this.trim=!!t.trim,this.type=t.type===void 0?"":t.type+""}hw.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 lle(t){e:for(var e=t.length,n=1,r=-1,i;n<e;++n)switch(t[n]){case".":r=i=n;break;case"0":r===0&&(r=n),i=n;break;default:if(!+t[n])break e;r>0&&(r=0);break}return r>0?t.slice(0,r)+t.slice(i+1):t}var Y$;function ule(t,e){var n=dh(t,e);if(!n)return t+"";var r=n[0],i=n[1],o=i-(Y$=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,s=r.length;return o===s?r:o>s?r+new Array(o-s+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+dh(t,Math.max(0,e+o-1))[0]}function WI(t,e){var n=dh(t,e);if(!n)return t+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}const XI={"%":(t,e)=>(t*100).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:ile,e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>WI(t*100,e),r:WI,s:ule,X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function JI(t){return t}var ZI=Array.prototype.map,QI=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function cle(t){var e=t.grouping===void 0||t.thousands===void 0?JI:ole(ZI.call(t.grouping,Number),t.thousands+""),n=t.currency===void 0?"":t.currency[0]+"",r=t.currency===void 0?"":t.currency[1]+"",i=t.decimal===void 0?".":t.decimal+"",o=t.numerals===void 0?JI:ale(ZI.call(t.numerals,String)),s=t.percent===void 0?"%":t.percent+"",u=t.minus===void 0?"â":t.minus+"",c=t.nan===void 0?"NaN":t.nan+"";function f(y){y=tc(y);var v=y.fill,x=y.align,w=y.sign,A=y.symbol,S=y.zero,C=y.width,P=y.comma,M=y.precision,O=y.trim,E=y.type;E==="n"?(P=!0,E="g"):XI[E]||(M===void 0&&(M=12),O=!0,E="g"),(S||v==="0"&&x==="=")&&(S=!0,v="0",x="=");var N=A==="$"?n:A==="#"&&/[boxX]/.test(E)?"0"+E.toLowerCase():"",D=A==="$"?r:/[%p]/.test(E)?s:"",L=XI[E],U=/[defgprs%]/.test(E);M=M===void 0?6:/[gprs]/.test(E)?Math.max(1,Math.min(21,M)):Math.max(0,Math.min(20,M));function F(B){var z=N,W=D,ne,J,$;if(E==="c")W=L(B)+W,B="";else{B=+B;var G=B<0||1/B<0;if(B=isNaN(B)?c:L(Math.abs(B),M),O&&(B=lle(B)),G&&+B==0&&w!=="+"&&(G=!1),z=(G?w==="("?w:u:w==="-"||w==="("?"":w)+z,W=(E==="s"?QI[8+Y$/3]:"")+W+(G&&w==="("?")":""),U){for(ne=-1,J=B.length;++ne<J;
vendor: 5,067 bytes, line 312
312)if($=B.charCodeAt(ne),48>$||$>57){W=($===46?i+B.slice(ne+1):B.slice(ne))+W,B=B.slice(0,ne);break}}}P&&!S&&(B=e(B,1/0));var te=z.length+B.length+W.length,ue=te<C?new Array(C-te+1).join(v):"";switch(P&&S&&(B=e(ue+B,ue.length?C-W.length:1/0),ue=""),x){case"<":B=z+B+W+ue;break;case"=":B=z+ue+B+W;break;case"^":B=ue.slice(0,te=ue.length>>1)+z+B+W+ue.slice(te);break;default:B=ue+z+B+W;break}return o(B)}return F.toString=function(){return y+""},F}function p(y,v){var x=f((y=tc(y),y.type="f",y)),w=Math.max(-8,Math.min(8,Math.floor(ws(v)/3)))*3,A=Math.pow(10,-w),S=QI[8+w/3];return function(C){return x(A*C)+S}}return{format:f,formatPrefix:p}}var vd,pw,W$;fle({thousands:",",grouping:[3],currency:["$",""]});function fle(t){return vd=cle(t),pw=vd.format,W$=vd.formatPrefix,vd}function dle(t){return Math.max(0,-ws(Math.abs(t)))}function hle(t,e){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(ws(e)/3)))*3-ws(Math.abs(t)))}function ple(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,ws(e)-ws(t))+1}function X$(t,e,n,r){var i=zT(t,e,n),o;switch(r=tc(r??",f"),r.type){case"s":{var s=Math.max(Math.abs(t),Math.abs(e));return r.precision==null&&!isNaN(o=hle(i,s))&&(r.precision=o),W$(r,s)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(o=ple(i,Math.max(Math.abs(t),Math.abs(e))))&&(r.precision=o-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(o=dle(i))&&(r.precision=o-(r.type==="%")*2);break}}return pw(r)}function no(t){var e=t.domain;return t.ticks=function(n){var r=e();return HT(r[0],r[r.length-1],n??10)},t.tickFormat=function(n,r){var i=e();return X$(i[0],i[i.length-1],n??10,r)},t.nice=function(n){n==null&&(n=10);var r=e(),i=0,o=r.length-1,s=r[i],u=r[o],c,f,p=10;for(u<s&&(f=s,s=u,u=f,f=i,i=o,o=f);p-- >0;){if(f=GT(s,u,n),f===c)return r[i]=s,r[o]=u,e(r);if(f>0)s=Math.floor(s/f)*f,u=Math.ceil(u/f)*f;else if(f<0)s=Math.ceil(s*f)/f,u=Math.floor(u*f)/f;else break;c=f}return t},t}function hh(){var t=dw();return t.copy=function(){return Bc(t,hh())},Zn.apply(t,arguments),no(t)}function J$(t){var e;function n(r){return r==null||isNaN(r=+r)?e:r}return n.invert=n,n.domain=n.range=function(r){return arguments.length?(t=Array.from(r,fh),n):t.slice()},n.unknown=function(r){return arguments.length?(e=r,n):e},n.copy=function(){return J$(t).unknown(e)},t=arguments.length?Array.from(t,fh):[0,1],no(n)}function Z$(t,e){t=t.slice();var n=0,r=t.length-1,i=t[n],o=t[r],s;return o<i&&(s=n,n=r,r=s,s=i,i=o,o=s),t[n]=e.floor(i),t[r]=e.ceil(o),t}function e2(t){return Math.log(t)}function t2(t){return Math.exp(t)}function mle(t){return-Math.log(-t)}function gle(t){return-Math.exp(-t)}function yle(t){return isFinite(t)?+("1e"+t):t<0?0:t}function vle(t){return t===10?yle:t===Math.E?Math.exp:e=>Math.pow(t,e)}function ble(t){return t===Math.E?Math.log:t===10&&Math.log10||t===2&&Math.log2||(t=Math.log(t),e=>Math.log(e)/t)}function n2(t){return(e,n)=>-t(-e,n)}function mw(t){const e=t(e2,t2),n=e.domain;let r=10,i,o;function s(){return i=ble(r),o=vle(r),n()[0]<0?(i=n2(i),o=n2(o),t(mle,gle)):t(e2,t2),e}return e.base=function(u){return arguments.length?(r=+u,s()):r},e.domain=function(u){return arguments.length?(n(u),s()):n()},e.ticks=u=>{const c=n();let f=c[0],p=c[c.length-1];const y=p<f;y&&([f,p]=[p,f]);let v=i(f),x=i(p),w,A;const S=u==null?10:+u;let C=[];if(!(r%1)&&x-v<S){if(v=Math.floor(v),x=Math.ceil(x),f>0){for(;v<=x;++v)for(w=1;w<r;++w)if(A=v<0?w/o(-v):w*o(v),!(A<f)){if(A>p)break;C.push(A)}}else for(;v<=x;++v)for(w=r-1;w>=1;--w)if(A=v>0?w/o(-v):w*o(v),!(A<f)){if(A>p)break;C.push(A)}C.length*2<S&&(C=HT(f,p,S))}else C=HT(v,x,Math.min(x-v,S)).map(o);return y?C.reverse():C},e.tickFormat=(u,c)=>{if(u==null&&(u=10),c==null&&(c=r===10?"s":","),typeof c!="function"&&(!(r%1)&&(c=tc(c)).precision==null&&(c.trim=!0),c=pw(c)),u===1/0)return c;const f=Math.max(1,r*u/e.ticks().length);return p=>{let y=p/o(Math.round(i(p)));return y*r<r-.5&&(y*=r),y<=f?c(p):""}},e.nice=()=>n(Z$(n(),{floor:u=>o(Math.floor(i(u))),ceil:u=>o(Math.ceil(i(u)))})),e}function Q$(){const t=mw(gp()).domain([1,10]);return t.copy=()=>Bc(t,Q$()).base(t.base()),Zn.apply(t,arguments),t}function r2(t){return function(e){return Math.sign(e)*Math.log1p(Math.abs(e/t))}}function i2(t){return function(e){return Math.sign(e)*Math.expm1(Math.abs(e))*t}}function gw(t){var e=1,n=t(r2(e),i2(e));return n.constant=function(r){return arguments.length?t(r2(e=+r),i2(e)):e},no(n)}function eV(){var t=gw(gp());return t.copy=function(){return Bc(t,eV()).constant(t.constant())},Zn.apply(t,arguments)}function o2(t){return function(e){return e<0?-Math.pow(-e,t):Math.pow(e,t)}}function xle(t){return t<0?-Math.sqrt(-t):Math.sqrt(t)}function Tle(t){return t<0?-t*t:t*t}function yw(t){var e=t(cn,cn),n=1;function r(){return n===1?t(cn,cn):n===.5?t(xle,Tle):t(o2(n),o2(1/n))}return e.exponent=function(i){return arguments.length?(n=+i,r()):n},no(e)}function vw(){var t=yw(gp());return t.copy=function(){return Bc(t,vw()).exponent(t.exponent())},Zn.apply(t,arguments),t}function Sle(){return vw.apply(null,arguments).exponent(.5)}function a2(t){return Math.sign(t)*t*t}
312function Ale(t){return Math.sign(t)*Math.sqrt(Math.abs(t))}function tV(){var t=dw(),e=[0,1],n=!1,r;function i(o){var s=Ale(t(o));return isNaN(s)?r:n?Math.round(s):s}return i.invert=function(o){return t.invert(a2(o))},i.domain=function(o){return arguments.length?(t.domain(o),i):t.domain()},i.range=function(o){return arguments.length?(t.range((e=Array.from(o,fh)).map(a2)),i):e.slice()},i.rangeRound=function(o){return i.range(o).round(!0)},i.round=function(o){return arguments.length?(n=!!o,i):n},i.clamp=function(o){return arguments.length?(t.clamp(o),i):t.clamp()},i.unknown=function(o){return arguments.length?(r=o,i):r},i.copy=function(){return tV(t.domain(),e).round(n).clamp(t.clamp()).unknown(r)},Zn.apply(i,arguments),no(i)}function nV(){var t=[],e=[],n=[],r;function i(){var s=0,u=Math.max(1,e.length);for(n=new Array(u-1);++s<u;)n[s-1]=Mse(t,s/u);return o}function o(s){return s==null||isNaN(s=+s)?r:e[Uc(n,s)]}return o.invertExtent=function(s){var u=e.indexOf(s);return u<0?[NaN,NaN]:[u>0?n[u-1]:t[0],u<n.length?n[u]:t[t.length-1]]},o.domain=function(s){if(!arguments.length)return t.slice();t=[];for(let u of s)u!=null&&!isNaN(u=+u)&&t.push(u);return t.sort(Xi),i()},o.range=function(s){return arguments.length?(e=Array.from(s),i()):e.slice()},o.unknown=function(s){return arguments.length?(r=s,o):r},o.quantiles=function(){return n.slice()},o.copy=function(){return nV().domain(t).range(e).unknown(r)},Zn.apply(o,arguments)}function rV(){var t=0,e=1,n=1,r=[.5],i=[0,1],o;function s(c){return c!=null&&c<=c?i[Uc(r,c,0,n)]:o}function u(){var c=-1;for(r=new Array(n);++c<n;)r[c]=((c+1)*e-(c-n)*t)/(n+1);return s}return s.domain=function(c){return arguments.length?([t,e]=c,t=+t,e=+e,u()):[t,e]},s.range=function(c){return arguments.length?(n=(i=Array.from(c)).length-1,u()):i.slice()},s.invertExtent=function(c){var f=i.indexOf(c);return f<0?[NaN,NaN]:f<1?[t,r[0]]:f>=n?[r[n-1],e]:[r[f-1],r[f]]},s.unknown=function(c){return arguments.length&&(o=c),s},s.thresholds=function(){return r.slice()},s.copy=function(){return rV().domain([t,e]).range(i).unknown(o)},Zn.apply(no(s),arguments)}function iV(){var t=[.5],e=[0,1],n,r=1;function i(o){return o!=null&&o<=o?e[Uc(t,o,0,r)]:n}return i.domain=function(o){return arguments.length?(t=Array.from(o),r=Math.min(t.length,e.length-1),i):t.slice()},i.range=function(o){return arguments.length?(e=Array.from(o),r=Math.min(t.length,e.length-1),i):e.slice()},i.invertExtent=function(o){var s=e.indexOf(o);return[t[s-1],t[s]]},i.unknown=function(o){return arguments.length?(n=o,i):n},i.copy=function(){return iV().domain(t).range(e).unknown(n)},Zn.apply(i,arguments)}const Hb=new Date,Gb=new Date;function Lt(t,e,n,r){function i(o){return t(o=arguments.length===0?new Date:new Date(+o)),o}return i.floor=o=>(t(o=new Date(+o)),o),i.ceil=o=>(t(o=new Date(o-1)),e(o,1),t(o),o),i.round=o=>{const s=i(o),u=i.ceil(o);return o-s<u-o?s:u},i.offset=(o,s)=>(e(o=new Date(+o),s==null?1:Math.floor(s)),o),i.range=(o,s,u)=>{const c=[];if(o=i.ceil(o),u=u==null?1:Math.floor(u),!(o<s)||!(u>0))return c;let f;do c.push(f=new Date(+o)),e(o,u),t(o);while(f<o&&o<s);return c},i.filter=o=>Lt(s=>{if(s>=s)for(;t(s),!o(s);)s.setTime(s-1)},(s,u)=>{if(s>=s)if(u<0)for(;++u<=0;)for(;e(s,-1),!o(s););else for(;--u>=0;)for(;e(s,1),!o(s););}),n&&(i.count=(o,s)=>(Hb.setTime(+o),Gb.setTime(+s),t(Hb),t(Gb),Math.floor(n(Hb,Gb))),i.every=o=>(o=Math.floor(o),!isFinite(o)||!(o>0)?null:o>1?i.filter(r?s=>r(s)%o===0:s=>i.count(0,s)%o===0):i)),i}const ph=Lt(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);ph.every=t=>(t=Math.floor(t),!isFinite(t)||!(t>0)?null:t>1?Lt(e=>{e.setTime(Math.floor(e/t)*t)},(e,n)=>{e.setTime(+e+n*t)},(e,n)=>(n-e)/t):ph);ph.range;const Qr=1e3,Kn=Qr*60,ei=Kn*60,si=ei*24,bw=si*7,s2=si*30,zb=si*365,Bo=Lt(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+e*Qr)},(t,e)=>(e-t)/Qr,t=>t.getUTCSeconds());Bo.range;const xw=Lt(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*Qr)},(t,e)=>{t.setTime(+t+e*Kn)},(t,e)=>(e-t)/Kn,t=>t.getMinutes());xw.range;const Tw=Lt(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+e*Kn)},(t,e)=>(e-t)/Kn,t=>t.getUTCMinutes());Tw.range;const Sw=Lt(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*Qr-t.getMinutes()*Kn)},(t,e)=>{t.setTime(+t+e*ei)},(t,e)=>(e-t)/ei,t=>t.getHours());Sw.range;const Aw=Lt(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+e*ei)},(t,e)=>(e-t)/ei,t=>t.getUTCHours());Aw.range;const $c=Lt(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*Kn)/si,t=>t.getDate()-1);$c.range;const yp=Lt(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/si,t=>t.getUTCDate()-1);yp.range;const oV=Lt(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/si,t=>Math.floor(t/si));oV.range;function ta(t){return Lt(e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},(e,n)=>{e.setDate(e.getDate()+n*7)},(e,n)=>(n-e-(n.getTimezoneOffset()-e.getTimezoneOffset())*Kn)/bw)}const vp=ta(0),mh=ta(1),wle=ta(2),_le=ta(3),_s=ta(4),Cle=ta(5),Ele=ta(6);vp.range;mh.range;wle.range;_le.range;_s.range;Cle.range;Ele.range;function na(t){return Lt(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCDate(e.getUTCDate()+n*7)},(e,n)=>(n-e)/bw)}const bp=na(0),gh=na(1),Mle=na(2),Ple=na(3),Cs=na(4),Rle=na(5),Nle=na(6);bp.range;gh.range;Mle.range;Ple.range;Cs.range;Rle.range;Nle.range;const ww=Lt(t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e)=>{t.setMonth(t.getMonth()+e)},(t,e)=>e.getMonth()-t.getMonth()+(e.getFullYear()-t.getFullYear())*12,t=>t.getMonth());ww.range;const _w=Lt(t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)},(t,e)=>e.getUTCMonth()-t.getUTCMonth()+(e.getUTCFullYear()-t.getUTCFullYear())*12,t=>t.getUTCMonth());_w.range;const li=Lt(t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e)=>{t.setFullYear(t.getFullYear()+e)},(t,e)=>e.getFullYear()-t.getFullYear(),t=>t.getFullYear());li.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:Lt(e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,n)=>{e.setFullYear(e.getFullYear()+n*t)});li.range;const ui=Lt(t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)},(t,e)=>e.getUTCFullYear()-t.getUTCFullYear(),t=>t.getUTCFullYear());ui.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:Lt(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCFullYear(e.getUTCFullYear()+n*t)});ui.range;function aV(t,e,n,r,i,o){const s=[[Bo,1,Qr],[Bo,5,5*Qr],[Bo,15,15*Qr],[Bo,30,30*Qr],[o,1,Kn],[o,5,5*Kn],[o,15,15*Kn
vendor: 5,925 bytes, line 312
312],[o,30,30*Kn],[i,1,ei],[i,3,3*ei],[i,6,6*ei],[i,12,12*ei],[r,1,si],[r,2,2*si],[n,1,bw],[e,1,s2],[e,3,3*s2],[t,1,zb]];function u(f,p,y){const v=p<f;v&&([f,p]=[p,f]);const x=y&&typeof y.range=="function"?y:c(f,p,y),w=x?x.range(f,+p+1):[];return v?w.reverse():w}function c(f,p,y){const v=Math.abs(p-f)/y,x=sw(([,,S])=>S).right(s,v);if(x===s.length)return t.every(zT(f/zb,p/zb,y));if(x===0)return ph.every(Math.max(zT(f,p,y),1));const[w,A]=s[v/s[x-1][2]<s[x][2]/v?x-1:x];return w.every(A)}return[u,c]}const[Ole,Dle]=aV(ui,_w,bp,oV,Aw,Tw),[Ile,kle]=aV(li,ww,vp,$c,Sw,xw);function Kb(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function Yb(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function hu(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}function Lle(t){var e=t.dateTime,n=t.date,r=t.time,i=t.periods,o=t.days,s=t.shortDays,u=t.months,c=t.shortMonths,f=pu(i),p=mu(i),y=pu(o),v=mu(o),x=pu(s),w=mu(s),A=pu(u),S=mu(u),C=pu(c),P=mu(c),M={a:G,A:te,b:ue,B:q,c:null,d:h2,e:h2,f:oue,g:mue,G:yue,H:nue,I:rue,j:iue,L:sV,m:aue,M:sue,p:Z,q:re,Q:g2,s:y2,S:lue,u:uue,U:cue,V:fue,w:due,W:hue,x:null,X:null,y:pue,Y:gue,Z:vue,"%":m2},O={a:ae,A:he,b:xe,B:ve,c:null,d:p2,e:p2,f:Sue,g:Oue,G:Iue,H:bue,I:xue,j:Tue,L:uV,m:Aue,M:wue,p:xt,q:Ne,Q:g2,s:y2,S:_ue,u:Cue,U:Eue,V:Mue,w:Pue,W:Rue,x:null,X:null,y:Nue,Y:Due,Z:kue,"%":m2},E={a:F,A:B,b:z,B:W,c:ne,d:f2,e:f2,f:Zle,g:c2,G:u2,H:d2,I:d2,j:Yle,L:Jle,m:Kle,M:Wle,p:U,q:zle,Q:eue,s:tue,S:Xle,u:Vle,U:jle,V:Fle,w:$le,W:Hle,x:J,X:$,y:c2,Y:u2,Z:Gle,"%":Qle};M.x=N(n,M),M.X=N(r,M),M.c=N(e,M),O.x=N(n,O),O.X=N(r,O),O.c=N(e,O);function N(de,Ee){return function(Me){var ce=[],nt=-1,Le=0,Tt=de.length,St,lt,mr;for(Me instanceof Date||(Me=new Date(+Me));++nt<Tt;)de.charCodeAt(nt)===37&&(ce.push(de.slice(Le,nt)),(lt=l2[St=de.charAt(++nt)])!=null?St=de.charAt(++nt):lt=St==="e"?" ":"0",(mr=Ee[St])&&(St=mr(Me,lt)),ce.push(St),Le=nt+1);return ce.push(de.slice(Le,nt)),ce.join("")}}function D(de,Ee){return function(Me){var ce=hu(1900,void 0,1),nt=L(ce,de,Me+="",0),Le,Tt;if(nt!=Me.length)return null;if("Q"in ce)return new Date(ce.Q);if("s"in ce)return new Date(ce.s*1e3+("L"in ce?ce.L:0));if(Ee&&!("Z"in ce)&&(ce.Z=0),"p"in ce&&(ce.H=ce.H%12+ce.p*12),ce.m===void 0&&(ce.m="q"in ce?ce.q:0),"V"in ce){if(ce.V<1||ce.V>53)return null;"w"in ce||(ce.w=1),"Z"in ce?(Le=Yb(hu(ce.y,0,1)),Tt=Le.getUTCDay(),Le=Tt>4||Tt===0?gh.ceil(Le):gh(Le),Le=yp.offset(Le,(ce.V-1)*7),ce.y=Le.getUTCFullYear(),ce.m=Le.getUTCMonth(),ce.d=Le.getUTCDate()+(ce.w+6)%7):(Le=Kb(hu(ce.y,0,1)),Tt=Le.getDay(),Le=Tt>4||Tt===0?mh.ceil(Le):mh(Le),Le=$c.offset(Le,(ce.V-1)*7),ce.y=Le.getFullYear(),ce.m=Le.getMonth(),ce.d=Le.getDate()+(ce.w+6)%7)}else("W"in ce||"U"in ce)&&("w"in ce||(ce.w="u"in ce?ce.u%7:"W"in ce?1:0),Tt="Z"in ce?Yb(hu(ce.y,0,1)).getUTCDay():Kb(hu(ce.y,0,1)).getDay(),ce.m=0,ce.d="W"in ce?(ce.w+6)%7+ce.W*7-(Tt+5)%7:ce.w+ce.U*7-(Tt+6)%7);return"Z"in ce?(ce.H+=ce.Z/100|0,ce.M+=ce.Z%100,Yb(ce)):Kb(ce)}}function L(de,Ee,Me,ce){for(var nt=0,Le=Ee.length,Tt=Me.length,St,lt;nt<Le;){if(ce>=Tt)return-1;if(St=Ee.charCodeAt(nt++),St===37){if(St=Ee.charAt(nt++),lt=E[St in l2?Ee.charAt(nt++):St],!lt||(ce=lt(de,Me,ce))<0)return-1}else if(St!=Me.charCodeAt(ce++))return-1}return ce}function U(de,Ee,Me){var ce=f.exec(Ee.slice(Me));return ce?(de.p=p.get(ce[0].toLowerCase()),Me+ce[0].length):-1}function F(de,Ee,Me){var ce=x.exec(Ee.slice(Me));return ce?(de.w=w.get(ce[0].toLowerCase()),Me+ce[0].length):-1}function B(de,Ee,Me){var ce=y.exec(Ee.slice(Me));return ce?(de.w=v.get(ce[0].toLowerCase()),Me+ce[0].length):-1}function z(de,Ee,Me){var ce=C.exec(Ee.slice(Me));return ce?(de.m=P.get(ce[0].toLowerCase()),Me+ce[0].length):-1}function W(de,Ee,Me){var ce=A.exec(Ee.slice(Me));return ce?(de.m=S.get(ce[0].toLowerCase()),Me+ce[0].length):-1}function ne(de,Ee,Me){return L(de,e,Ee,Me)}function J(de,Ee,Me){return L(de,n,Ee,Me)}function $(de,Ee,Me){return L(de,r,Ee,Me)}function G(de){return s[de.getDay()]}function te(de){return o[de.getDay()]}function ue(de){return c[de.getMonth()]}function q(de){return u[de.getMonth()]}function Z(de){return i[+(de.getHours()>=12)]}function re(de){return 1+~~(de.getMonth()/3)}function ae(de){return s[de.getUTCDay()]}function he(de){return o[de.getUTCDay()]}function xe(de){return c[de.getUTCMonth()]}function ve(de){return u[de.getUTCMonth()]}function xt(de){return i[+(de.getUTCHours()>=12)]}function Ne(de){return 1+~~(de.getUTCMonth()/3)}return{format:function(de){var Ee=N(de+="",M);return Ee.toString=function(){return de},Ee},parse:function(de){var Ee=D(de+="",!1);return Ee.toString=function(){return de},Ee},utcFormat:function(de){var Ee=N(de+="",O);return Ee.toString=function(){return de},Ee},utcParse:function(de){var Ee=D(de+="",!0);return Ee.toString=function(){return de},Ee}}}var l2={"-":"",_:" ",0:"0"},Ft=/^\s*\d+/,Ule=/^%/,qle=/[\\^$*+?|[\]().{}]/g;function Fe(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",o=i.length;return r+(o<n?new Array(n-o+1).join(e)+i:i)}function Ble(t){return t.replace(qle,"\\$&")}function pu(t){return new RegExp("^(?:"+t.map(Ble).join("|")+")","i")}function mu(t){return new Map(t.map((e,n)=>[e.toLowerCase(),n]))}function $le(t,e,n){var r=Ft.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function Vle(t,e,n){var r=Ft.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function jle(t,e,n){var r=Ft.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function Fle(t,e,n){var r=Ft.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function Hle(t,e,n){var r=Ft.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function u2(t,e,n){var r=Ft.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function c2(t,e,n){var r=Ft.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}
vendor: 4,565 bytes, line 312
312function Gle(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function zle(t,e,n){var r=Ft.exec(e.slice(n,n+1));return r?(t.q=r[0]*3-3,n+r[0].length):-1}function Kle(t,e,n){var r=Ft.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function f2(t,e,n){var r=Ft.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function Yle(t,e,n){var r=Ft.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function d2(t,e,n){var r=Ft.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function Wle(t,e,n){var r=Ft.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function Xle(t,e,n){var r=Ft.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function Jle(t,e,n){var r=Ft.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function Zle(t,e,n){var r=Ft.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Qle(t,e,n){var r=Ule.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function eue(t,e,n){var r=Ft.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function tue(t,e,n){var r=Ft.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function h2(t,e){return Fe(t.getDate(),e,2)}function nue(t,e){return Fe(t.getHours(),e,2)}function rue(t,e){return Fe(t.getHours()%12||12,e,2)}function iue(t,e){return Fe(1+$c.count(li(t),t),e,3)}function sV(t,e){return Fe(t.getMilliseconds(),e,3)}function oue(t,e){return sV(t,e)+"000"}function aue(t,e){return Fe(t.getMonth()+1,e,2)}function sue(t,e){return Fe(t.getMinutes(),e,2)}function lue(t,e){return Fe(t.getSeconds(),e,2)}function uue(t){var e=t.getDay();return e===0?7:e}function cue(t,e){return Fe(vp.count(li(t)-1,t),e,2)}function lV(t){var e=t.getDay();return e>=4||e===0?_s(t):_s.ceil(t)}function fue(t,e){return t=lV(t),Fe(_s.count(li(t),t)+(li(t).getDay()===4),e,2)}function due(t){return t.getDay()}function hue(t,e){return Fe(mh.count(li(t)-1,t),e,2)}function pue(t,e){return Fe(t.getFullYear()%100,e,2)}function mue(t,e){return t=lV(t),Fe(t.getFullYear()%100,e,2)}function gue(t,e){return Fe(t.getFullYear()%1e4,e,4)}function yue(t,e){var n=t.getDay();return t=n>=4||n===0?_s(t):_s.ceil(t),Fe(t.getFullYear()%1e4,e,4)}function vue(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+Fe(e/60|0,"0",2)+Fe(e%60,"0",2)}function p2(t,e){return Fe(t.getUTCDate(),e,2)}function bue(t,e){return Fe(t.getUTCHours(),e,2)}function xue(t,e){return Fe(t.getUTCHours()%12||12,e,2)}function Tue(t,e){return Fe(1+yp.count(ui(t),t),e,3)}function uV(t,e){return Fe(t.getUTCMilliseconds(),e,3)}function Sue(t,e){return uV(t,e)+"000"}function Aue(t,e){return Fe(t.getUTCMonth()+1,e,2)}function wue(t,e){return Fe(t.getUTCMinutes(),e,2)}function _ue(t,e){return Fe(t.getUTCSeconds(),e,2)}function Cue(t){var e=t.getUTCDay();return e===0?7:e}function Eue(t,e){return Fe(bp.count(ui(t)-1,t),e,2)}function cV(t){var e=t.getUTCDay();return e>=4||e===0?Cs(t):Cs.ceil(t)}function Mue(t,e){return t=cV(t),Fe(Cs.count(ui(t),t)+(ui(t).getUTCDay()===4),e,2)}function Pue(t){return t.getUTCDay()}function Rue(t,e){return Fe(gh.count(ui(t)-1,t),e,2)}function Nue(t,e){return Fe(t.getUTCFullYear()%100,e,2)}function Oue(t,e){return t=cV(t),Fe(t.getUTCFullYear()%100,e,2)}function Due(t,e){return Fe(t.getUTCFullYear()%1e4,e,4)}function Iue(t,e){var n=t.getUTCDay();return t=n>=4||n===0?Cs(t):Cs.ceil(t),Fe(t.getUTCFullYear()%1e4,e,4)}function kue(){return"+0000"}function m2(){return"%"}function g2(t){return+t}function y2(t){return Math.floor(+t/1e3)}var Ka,fV,dV;Lue({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 Lue(t){return Ka=Lle(t),fV=Ka.format,Ka.parse,dV=Ka.utcFormat,Ka.utcParse,Ka}function Uue(t){return new Date(t)}function que(t){return t instanceof Date?+t:+new Date(+t)}function Cw(t,e,n,r,i,o,s,u,c,f){var p=dw(),y=p.invert,v=p.domain,x=f(".%L"),w=f(":%S"),A=f("%I:%M"),S=f("%I %p"),C=f("%a %d"),P=f("%b %d"),M=f("%B"),O=f("%Y");function E(N){return(c(N)<N?x:u(N)<N?w:s(N)<N?A:o(N)<N?S:r(N)<N?i(N)<N?C:P:n(N)<N?M:O)(N)}return p.invert=function(N){return new Date(y(N))},p.domain=function(N){return arguments.length?v(Array.from(N,que)):v().map(Uue)},p.ticks=function(N){var D=v();
vendor: 72,849 bytes, lines 312-339
312return t(D[0],D[D.length-1],N??10)},p.tickFormat=function(N,D){return D==null?E:f(D)},p.nice=function(N){var D=v();return(!N||typeof N.range!="function")&&(N=e(D[0],D[D.length-1],N??10)),N?v(Z$(D,N)):p},p.copy=function(){return Bc(p,Cw(t,e,n,r,i,o,s,u,c,f))},p}function Bue(){return Zn.apply(Cw(Ile,kle,li,ww,vp,$c,Sw,xw,Bo,fV).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function $ue(){return Zn.apply(Cw(Ole,Dle,ui,_w,bp,yp,Aw,Tw,Bo,dV).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function xp(){var t=0,e=1,n,r,i,o,s=cn,u=!1,c;function f(y){return y==null||isNaN(y=+y)?c:s(i===0?.5:(y=(o(y)-n)*i,u?Math.max(0,Math.min(1,y)):y))}f.domain=function(y){return arguments.length?([t,e]=y,n=o(t=+t),r=o(e=+e),i=n===r?0:1/(r-n),f):[t,e]},f.clamp=function(y){return arguments.length?(u=!!y,f):u},f.interpolator=function(y){return arguments.length?(s=y,f):s};function p(y){return function(v){var x,w;return arguments.length?([x,w]=v,s=y(x,w),f):[s(0),s(1)]}}return f.range=p(rl),f.rangeRound=p(fw),f.unknown=function(y){return arguments.length?(c=y,f):c},function(y){return o=y,n=y(t),r=y(e),i=n===r?0:1/(r-n),f}}function ro(t,e){return e.domain(t.domain()).interpolator(t.interpolator()).clamp(t.clamp()).unknown(t.unknown())}function hV(){var t=no(xp()(cn));return t.copy=function(){return ro(t,hV())},mi.apply(t,arguments)}function pV(){var t=mw(xp()).domain([1,10]);return t.copy=function(){return ro(t,pV()).base(t.base())},mi.apply(t,arguments)}function mV(){var t=gw(xp());return t.copy=function(){return ro(t,mV()).constant(t.constant())},mi.apply(t,arguments)}function Ew(){var t=yw(xp());return t.copy=function(){return ro(t,Ew()).exponent(t.exponent())},mi.apply(t,arguments)}function Vue(){return Ew.apply(null,arguments).exponent(.5)}function gV(){var t=[],e=cn;function n(r){if(r!=null&&!isNaN(r=+r))return e((Uc(t,r,1)-1)/(t.length-1))}return n.domain=function(r){if(!arguments.length)return t.slice();t=[];for(let i of r)i!=null&&!isNaN(i=+i)&&t.push(i);return t.sort(Xi),n},n.interpolator=function(r){return arguments.length?(e=r,n):e},n.range=function(){return t.map((r,i)=>e(i/(t.length-1)))},n.quantiles=function(r){return Array.from({length:r+1},(i,o)=>Ese(t,o/r))},n.copy=function(){return gV(e).domain(t)},mi.apply(n,arguments)}function Tp(){var t=0,e=.5,n=1,r=1,i,o,s,u,c,f=cn,p,y=!1,v;function x(A){return isNaN(A=+A)?v:(A=.5+((A=+p(A))-o)*(r*A<r*o?u:c),f(y?Math.max(0,Math.min(1,A)):A))}x.domain=function(A){return arguments.length?([t,e,n]=A,i=p(t=+t),o=p(e=+e),s=p(n=+n),u=i===o?0:.5/(o-i),c=o===s?0:.5/(s-o),r=o<i?-1:1,x):[t,e,n]},x.clamp=function(A){return arguments.length?(y=!!A,x):y},x.interpolator=function(A){return arguments.length?(f=A,x):f};function w(A){return function(S){var C,P,M;return arguments.length?([C,P,M]=S,f=Qse(A,[C,P,M]),x):[f(0),f(.5),f(1)]}}return x.range=w(rl),x.rangeRound=w(fw),x.unknown=function(A){return arguments.length?(v=A,x):v},function(A){return p=A,i=A(t),o=A(e),s=A(n),u=i===o?0:.5/(o-i),c=o===s?0:.5/(s-o),r=o<i?-1:1,x}}function yV(){var t=no(Tp()(cn));return t.copy=function(){return ro(t,yV())},mi.apply(t,arguments)}function vV(){var t=mw(Tp()).domain([.1,1,10]);return t.copy=function(){return ro(t,vV()).base(t.base())},mi.apply(t,arguments)}function bV(){var t=gw(Tp());return t.copy=function(){return ro(t,bV()).constant(t.constant())},mi.apply(t,arguments)}function Mw(){var t=yw(Tp());return t.copy=function(){return ro(t,Mw()).exponent(t.exponent())},mi.apply(t,arguments)}function jue(){return Mw.apply(null,arguments).exponent(.5)}const v2=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:Ju,scaleDiverging:yV,scaleDivergingLog:vV,scaleDivergingPow:Mw,scaleDivergingSqrt:jue,scaleDivergingSymlog:bV,scaleIdentity:J$,scaleImplicit:KT,scaleLinear:hh,scaleLog:Q$,scaleOrdinal:lw,scalePoint:Ou,scalePow:vw,scaleQuantile:nV,scaleQuantize:rV,scaleRadial:tV,scaleSequential:hV,scaleSequentialLog:pV,scaleSequentialPow:Ew,scaleSequentialQuantile:gV,scaleSequentialSqrt:Vue,scaleSequentialSymlog:mV,scaleSqrt:Sle,scaleSymlog:eV,scaleThreshold:iV,scaleTime:Bue,scaleUtc:$ue,tickFormat:X$},Symbol.toStringTag,{value:"Module"}));var Wb,b2;function Sp(){if(b2)return Wb;b2=1;var t=Qs();function e(n,r,i){for(var o=-1,s=n.length;++o<s;){var u=n[o],c=r(u);if(c!=null&&(f===void 0?c===c&&!t(c):i(c,f)))var f=c,p=u}return p}return Wb=e,Wb}var Xb,x2;function xV(){if(x2)return Xb;x2=1;function t(e,n){return e>n}return Xb=t,Xb}var Jb,T2;function Fue(){if(T2)return Jb;T2=1;var t=Sp(),e=xV(),n=tl();function r(i){return i&&i.length?t(i,n,e):void 0}return Jb=r,Jb}var Hue=Fue();const Ap=$e(Hue);var Zb,S2;function TV(){if(S2)return Zb;S2=1;function t(e,n){return e<n}return Zb=t,Zb}var Qb,A2;function Gue(){if(A2)return Qb;A2=1;var t=Sp(),e=TV(),n=tl();function r(i){return i&&i.length?t(i,n,e):void 0}return Qb=r,Qb}var zue=Gue();const wp=$e(zue);var ex,w2;function Kue(){if(w2)return ex;w2=1;var t=HA(),e=Or(),n=P$(),r=yn();function i(o,s){var u=r(o)?t:n;return u(o,e(s,3))}return ex=i,ex}var tx,_2;function Yue(){if(_2)return tx;_2=1;var t=E$(),e=Kue();function n(r,i){return t(e(r,i),1)}return tx=n,tx}var Wue=Yue();const Xue=$e(Wue);var nx,C2;function Jue(){if(C2)return nx;C2=1;var t=rw();function e(n,r){return t(n,r)}return nx=e,nx}var Zue=Jue();const _p=$e(Zue);var il=1e9,Que={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},Rw,dt=!0,Jn="[DecimalError] ",Ho=Jn+"Invalid argument: ",Pw=Jn+"Exponent out of range: ",ol=Math.floor,Do=Math.pow,ece=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Pn,Vt=1e7,ct=7,SV=9007199254740991,yh=ol(SV/ct),pe={};pe.absoluteValue=pe.abs=function(){var t=new this.constructor(this);return t.s&&(t.s=1),t};pe.comparedTo=pe.cmp=function(t){var e,n,r,i,o=this;if(t=new o.constructor(t),o.s!==t.s)return o.s||-t.s;if(o.e!==t.e)return o.e>t.e^o.s<0?1:-1;for(r=o.d.length,i=t.d.length,e=0,n=r<i?r:i;e<n;++e)if(o.d[e]!==t.d[e])return o.d[e]>t.d[e]^o.s<0?1:-1;return r===i?0:r>i^o.s<0?1:-1};pe.decimalPlaces=pe.dp=function(){var t=this,e=t.d.length-1,n=(e-t.e)*ct;if(e=t.d[e],e)for(;e%10==0;e/=10)n--;return n<0?0:n};pe.dividedBy=pe.div=function(t){return ii(this,new this.constructor(t))};pe.dividedToIntegerBy=pe.idiv=function(t){var e=this,n=e.constructor;return tt(ii(e,new n(t),0,1),n.precision)};pe.equals=pe.eq=function(t){return!this.cmp(t)};pe.exponent=function(){return Pt(this)};pe.greaterThan=pe.gt=function(t){return this.cmp(t)>0};pe.greaterThanOrEqualTo=pe.gte=function(t){return this.cmp(t)>=0};pe.isInteger=pe.isint=function(){return this.e>this.d.length-2};pe.isNegative=pe.isneg=function(){return this.s<0};pe.isPositive=pe.ispos=function(){return this.s>0};pe.isZero=function(){return this.s===0};pe.lessThan=pe.lt=function(t){return this.cmp(t)<0};pe.lessThanOrEqualTo=pe.lte=function(t){return this.cmp(t)<1};pe.logarithm=pe.log=function(t){var e,n=this,r=n.constructor,i=r.precision,o=i+5;if(t===void 0)t=new r(10);else if(t=new r(t),t.s<1||t.eq(Pn))throw Error(Jn+"NaN");if(n.s<1)throw Error(Jn+(n.s?"NaN":"-Infinity"));return n.eq(Pn)?new r(0):(dt=!1,e=ii(nc(n,o),nc(t,o),o),dt=!0,tt(e,i))};pe.minus=pe.sub=function(t){var e=this;return t=new e.constructor(t),e.s==t.s?_V(e,t):AV(e,(t.s=-t.s,t))};pe.modulo=pe.mod=function(t){var e,n=this,r=n.constructor,i=r.precision;if(t=new r(t),!t.s)throw Error(Jn+"NaN");return n.s?(dt=!1,e=ii(n,t,0,1).times(t),dt=!0,n.minus(e)):tt(new r(n),i)};pe.naturalExponential=pe.exp=function(){return wV(this)};pe.naturalLogarithm=pe.ln=function(){return nc(this)};pe.negated=pe.neg=function(){var t=new this.constructor(this);return t.s=-t.s||0,t};pe.plus=pe.add=function(t){var e=this;return t=new e.constructor(t),e.s==t.s?AV(e,t):_V(e,(t.s=-t.s,t))};pe.precision=pe.sd=function(t){var e,n,r,i=this;if(t!==void 0&&t!==!!t&&t!==1&&t!==0)throw Error(Ho+t);if(e=Pt(i)+1,r=i.d.length-1,n=r*ct+1,r=i.d[r],r){for(;r%10==0;r/=10)n--;for(r=i.d[0];r>=10;r/=10)n++}return t&&e>n?e:n};pe.squareRoot=pe.sqrt=function(){var t,e,n,r,i,o,s,u=this,c=u.constructor;if(u.s<1){if(!u.s)return new c(0);throw Error(Jn+"NaN")}for(t=Pt(u),dt=!1,i=Math.sqrt(+u),i==0||i==1/0?(e=Sr(u.d),(e.length+t)%2==0&&(e+="0"),i=Math.sqrt(e),t=ol((t+1)/2)-(t<0||t%2),i==1/0?e="5e"+t:(e=i.toExponential(),e=e.slice(0,e.indexOf("e")+1)+t),r=new c(e)):r=new c(i.toString()),n=c.precision,i=s=n+3;;)if(o=r,r=o.plus(ii(u,o,s+2)).times(.5),Sr(o.d).slice(0,s)===(e=Sr(r.d)).slice(0,s)){if(e=e.slice(s-3,s+1),i==s&&e=="4999"){if(tt(o,n+1,0),o.times(o).eq(u)){r=o;break}}else if(e!="9999")break;s+=4}return dt=!0,tt(r,n)};pe.times=pe.mul=function(t){var e,n,r,i,o,s,u,c,f,p=this,y=p.constructor,v=p.d,x=(t=new y(t)).d;if(!p.s||!t.s)return new y(0);for(t.s*=p.s,n=p.e+t.e,c=v.length,f=x.length,c<f&&(o=v,v=x,x=o,s=c,c=f,f=s),o=[],s=c+f,r=s;r--;)o.push(0);for(r=f;--r>=0;){for(e=0,i=c+r;i>r;)u=o[i]+x[r]*v[i-r-1]+e,o[i--]=u%Vt|0,e=u/Vt|0;o[i]=(o[i]+e)%Vt|0}for(;!o[--s];)o.pop();return e?++n:o.shift(),t.d=o,t.e=n,dt?tt(t,y.precision):t};pe.toDecimalPlaces=pe.todp=function(t,e){var n=this,r=n.constructor;return n=new r(n),t===void 0?n:(Mr(t,0,il),e===void 0?e=r.rounding:Mr(e,0,8),tt(n,t+Pt(n)+1,e))};pe.toExponential=function(t,e){var n,r=this,i=r.constructor;return t===void 0?n=Wo(r,!0):(Mr(t,0,il),e===void 0?e=i.rounding:Mr(e,0,8),r=tt(new i(r),t+1,e),n=Wo(r,!0,t+1)),n};pe.toFixed=function(t,e){var n,r,i=this,o=i.constructor;return t===void 0?Wo(i):(Mr(t,0,il),e===void 0?e=o.rounding:Mr(e,0,8),r=tt(new o(i),t+Pt(i)+1,e),n=Wo(r.abs(),!1,t+Pt(r)+1),i.isneg()&&!i.isZero()?"-"+n:n)};pe.toInteger=pe.toint=function(){var t=this,e=t.constructor;return tt(new e(t),Pt(t)+1,e.rounding)};pe.toNumber=function(){return+this};pe.toPower=pe.pow=function(t){var e,n,r,i,o,s,u=this,c=u.constructor,f=12,p=+(t=new c(t));if(!t.s)return new c(Pn);if(u=new c(u),!u.s){if(t.s<1)throw Error(Jn+"Infinity");return u}if(u.eq(Pn))return u;if(r=c.precision,t.eq(Pn))return tt(u,r);if(e=t.e,n=t.d.length-1,s=e>=n,o=u.s,s){if((n=p<0?-p:p)<=SV){for(i=new c(Pn),e=Math.ceil(r/ct+4),dt=!1;n%2&&(i=i.times(u),M2(i.d,e)),n=ol(n/2),n!==0;)u=u.times(u),M2(u.d,e);return dt=!0,t.s<0?new c(Pn).div(i):tt(i,r)}}else if(o<0)throw Error(Jn+"NaN");return o=o<0&&t.d[Math.max(e,n)]&1?-1:1,u.s=1,dt=!1,i=t.times(nc(u,r+f)),dt=!0,i=wV(i),i.s=o,i};pe.toPrecision=function(t,e){var n,r,i=this,o=i.constructor;return t===void 0?(n=Pt(i),r=Wo(i,n<=o.toExpNeg||n>=o.toExpPos)):(Mr(t,1,il),e===void 0?e=o.rounding:Mr(e,0,8),i=tt(new o(i),t,e),n=Pt(i),r=Wo(i,t<=n||n<=o.toExpNeg,t)),r};pe.toSignificantDigits=pe.tosd=function(t,e){var n=this,r=n.constructor;return t===void 0?(t=r.precision,e=r.rounding):(Mr(t,1,il),e===void 0?e=r.rounding:Mr(e,0,8)),tt(new r(n),t,e)};pe.toString=pe.valueOf=pe.val=pe.toJSON=pe[Symbol.for("nodejs.util.inspect.custom")]=function(){var t=this,e=Pt(t),n=t.constructor;return Wo(t,e<=n.toExpNeg||e>=n.toExpPos)};function AV(t,e){var n,r,i,o,s,u,c,f,p=t.constructor,y=p.precision;if(!t.s||!e.s)return e.s||(e=new p(t)),dt?tt(e,y):e;if(c=t.d,f=e.d,s=t.e,i=e.e,c=c.slice(),o=s-i,o){for(o<0?(r=c,o=-o,u=f.length):(r=f,i=s,u=c.length),s=Math.ceil(y/ct),u=s>u?s+1:u+1,o>u&&(o=u,r.length=1),r.reverse();o--;)r.push(0);r.reverse()}for(u=c.length,o=f.length,u-o<0&&(o=u,r=f,f=c,c=r),n=0;o;)n=(c[--o]=c[o]+f[o]+n)/Vt|0,c[o]%=Vt;for(n&&(c.unshift(n),++i),u=c.length;c[--u]==0;)c.pop();return e.d=c,e.e=i,dt?tt(e,y):e}function Mr(t,e,n){if(t!==~~t||t<e||t>n)throw Error(Ho+t)}function Sr(t){var e,n,r,i=t.length-1,o="",s=t[0];if(i>0){for(o+=s,e=1;e<i;e++)r=t[e]+"",n=ct-r.length,n&&(o+=Hi(n)),o+=r;s=t[e],r=s+"",n=ct-r.length,n&&(o+=Hi(n))}else if(s===0)return"0";for(;s%10===0;)s/=10;return o+s}var ii=(function(){function t(r,i){var o,s=0,u=r.length;for(r=r.slice();u--;)o=r[u]*i+s,r[u]=o%Vt|0,s=o/Vt|0;return s&&r.unshift(s),r}function e(r,i,o,s){var u,c;if(o!=s)c=o>s?1:-1;else for(u=c=0;u<o;u++)if(r[u]!=i[u]){c=r[u]>i[u]?1:-1;break}return c}function n(r,i,o){for(var s=0;o--;)r[o]-=s,s=r[o]<i[o]?1:0,r[o]=s*Vt+r[o]-i[o];for(;!r[0]&&r.length>1;)r.shift()}return function(r,i,o,s){var u,c,f,p,y,v,x,w,A,S,C,P,M,O,E,N,D,L,U=r.constructor,F=r.s==i.s?1:-1,B=r.d,z=i.d;if(!r.s)return new U(r);if(!i.s)throw Error(Jn+"Division by zero");for(c=r.e-i.e,D=z.length,E=B.length,x=new U(F),w=x.d=[],f=0;z[f]==(B[f]||0);)++f;if(z[f]>(B[f]||0)&&--c,o==null?P=o=U.precision:s?P=o+(Pt(r)-Pt(i))+1:P=o,P<0)return new U(0);if(P=P/ct+2|0,f=0,D==1)for(p=0,z=z[0],P++;(f<E||p)&&P--;f++)M=p*Vt+(B[f]||0),w[f]=M/z|0,p=M%z|0;else{for(p=Vt/(z[0]+1)|0,p>1&&(z=t(z,p),B=t(B,p),D=z.length,E=B.length),O=D,A=B.slice(0,D),S=A.length;S<D;)A[S++]=0;L=z.slice(),L.unshift(0),N=z[0],z[1]>=Vt/2&&++N;do p=0,u=e(z,A,D,S),u<0?(C=A[0],D!=S&&(C=C*Vt+(A[1]||0)),p=C/N|0,p>1?(p>=Vt&&(p=Vt-1),y=t(z,p),v=y.length,S=A.length,u=e(y,A,v,S),u==1&&(p--,n(y,D<v?L:z,v))):(p==0&&(u=p=1),y=z.slice()),v=y.length,v<S&&y.unshift(0),n(A,y,S),u==-1&&(S=A.length,u=e(z,A,D,S),u<1&&(p++,n(A,D<S?L:z,S))),S=A.length):u===0&&(p++,A=[0]),w[f++]=p,u&&A[0]?A[S++]=B[O]||0:(A=[B[O]],S=1);while((O++<E||A[0]!==void 0)&&P--)}return w[0]||w.shift(),x.e=c,tt(x,s?o+Pt(x)+1:o)}})();function wV(t,e){var n,r,i,o,s,u,c=0,f=0,p=t.constructor,y=p.precision;if(Pt(t)>16)throw Error(Pw+Pt(t));if(!t.s)return new p(Pn);for(dt=!1,u=y,s=new p(.03125);t.abs().gte(.1);)t=t.times(s),f+=5;for(r=Math.log(Do(2,f))/Math.LN10*2+5|0,u+=r,n=i=o=new p(Pn),p.precision=u;;){if(i=tt(i.times(t),u),n=n.times(++c),s=o.plus(ii(i,n,u)),Sr(s.d).slice(0,u)===Sr(o.d).slice(0,u)){for(;f--;)o=tt(o.times(o),u);return p.precision=y,e==null?(dt=!0,tt(o,y)):o}o=s}}function Pt(t){for(var e=t.e*ct,n=t.d[0];n>=10;n/=10)e++;return e}function rx(t,e,n){if(e>t.LN10.sd())throw dt=!0,n&&(t.precision=n),Error(Jn+"LN10 precision limit exceeded");return tt(new t(t.LN10),e)}function Hi(t){for(var e="";t--;)e+="0";return e}function nc(t,e){var n,r,i,o,s,u,c,f,p,y=1,v=10,x=t,w=x.d,A=x.constructor,S=A.precision;if(x.s<1)throw Error(Jn+(x.s?"NaN":"-Infinity"));if(x.eq(Pn))return new A(0);if(e==null?(dt=!1,f=S):f=e,x.eq(10))return e==null&&(dt=!0),rx(A,f);if(f+=v,A.precision=f,n=Sr(w),r=n.charAt(0),o=Pt(x),Math.abs(o)<15e14){for(;r<7&&r!=1||r==1&&n.charAt(1)>3;)x=x.times(t),n=Sr(x.d),r=n.charAt(0),y++;o=Pt(x),r>1?(x=new A("0."+n),o++):x=new A(r+"."+n.slice(1))}else return c=rx(A,f+2,S).times(o+""),x=nc(new A(r+"."+n.slice(1)),f-v).plus(c),A.precision=S,e==null?(dt=!0,tt(x,S)):x;for(u=s=x=ii(x.minus(Pn),x.plus(Pn),f),p=tt(x.times(x),f),i=3;;){if(s=tt(s.times(p),f),c=u.plus(ii(s,new A(i),f)),Sr(c.d).slice(0,f)===Sr(u.d).slice(0,f))return u=u.times(2),o!==0&&(u=u.plus(rx(A,f+2,S).times(o+""))),u=ii(u,new A(y),f),A.precision=S,e==null?(dt=!0,tt(u,S)):u;u=c,i+=2}}function E2(t,e){var n,r,i;for((n=e.indexOf("."))>-1&&(e=e.replace(".","")),(r=e.search(/e/i))>0?(n<0&&(n=r),n+=+e.slice(r+1),e=e.substring(0,r)):n<0&&(n=e.length),r=0;e.charCodeAt(r)===48;)++r;for(i=e.length;e.charCodeAt(i-1)===48;)--i;if(e=e.slice(r,i),e){if(i-=r,n=n-r-1,t.e=ol(n/ct),t.d=[],r=(n+1)%ct,n<0&&(r+=ct),r<i){for(r&&t.d.push(+e.slice(0,r)),i-=ct;r<i;)t.d.push(+e.slice(r,r+=ct));e=e.slice(r),r=ct-e.length}else r-=i;for(;r--;)e+="0";if(t.d.push(+e),dt&&(t.e>yh||t.e<-yh))throw Error(Pw+n)}else t.s=0,t.e=0,t.d=[0];return t}function tt(t,e,n){var r,i,o,s,u,c,f,p,y=t.d;for(s=1,o=y[0];o>=10;o/=10)s++;if(r=e-s,r<0)r+=ct,i=e,f=y[p=0];else{if(p=Math.ceil((r+1)/ct),o=y.length,p>=o)return t;for(f=o=y[p],s=1;o>=10;o/=10)s++;r%=ct,i=r-ct+s}if(n!==void 0&&(o=Do(10,s-i-1),u=f/o%10|0,c=e<0||y[p+1]!==void 0||f%o,c=n<4?(u||c)&&(n==0||n==(t.s<0?3:2)):u>5||u==5&&(n==4||c||n==6&&(r>0?i>0?f/Do(10,s-i):0:y[p-1])%10&1||n==(t.s<0?8:7))),e<1||!y[0])return c?(o=Pt(t),y.length=1,e=e-o-1,y[0]=Do(10,(ct-e%ct)%ct),t.e=ol(-e/ct)||0):(y.length=1,y[0]=t.e=t.s=0),t;if(r==0?(y.length=p,o=1,p--):(y.length=p+1,o=Do(10,ct-r),y[p]=i>0?(f/Do(10,s-i)%Do(10,i)|0)*o:0),c)for(;;)if(p==0){(y[0]+=o)==Vt&&(y[0]=1,++t.e);break}else{if(y[p]+=o,y[p]!=Vt)break;y[p--]=0,o=1}for(r=y.length;y[--r]===0;)y.pop();if(dt&&(t.e>yh||t.e<-yh))throw Error(Pw+Pt(t));return t}function _V(t,e){var n,r,i,o,s,u,c,f,p,y,v=t.constructor,x=v.precision;if(!t.s||!e.s)return e.s?e.s=-e.s:e=new v(t),dt?tt(e,x):e;if(c=t.d,y=e.d,r=e.e,f=t.e,c=c.slice(),s=f-r,s){for(p=s<0,p?(n=c,s=-s,u=y.length):(n=y,r=f,u=c.length),i=Math.max(Math.ceil(x/ct),u)+2,s>i&&(s=i,n.length=1),n.reverse(),i=s;i--;)n.push(0);n.reverse()}else{for(i=c.length,u=y.length,p=i<u,p&&(u=i),i=0;i<u;i++)if(c[i]!=y[i]){p=c[i]<y[i];break}s=0}for(p&&(n=c,c=y,y=n,e.s=-e.s),u=c.length,i=y.length-u;i>0;--i)c[u++]=0;for(i=y.length;i>s;){if(c[--i]<y[i]){for(o=i;o&&c[--o]===0;)c[o]=Vt-1;--c[o],c[i]+=Vt}c[i]-=y[i]}for(;c[--u]===0;)c.pop();for(;c[0]===0;c.shift())--r;return c[0]?(e.d=c,e.e=r,dt?tt(e,x):e):new v(0)}function Wo(t,e,n){var r,i=Pt(t),o=Sr(t.d),s=o.length;return e?(n&&(r=n-s)>0?o=o.charAt(0)+"."+o.slice(1)+Hi(r):s>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(i<0?"e":"e+")+i):i<0?(o="0."+Hi(-i-1)+o,n&&(r=n-s)>0&&(o+=Hi(r))):i>=s?(o+=Hi(i+1-s),n&&(r=n-i-1)>0&&(o=o+"."+Hi(r))):((r=i+1)<s&&(o=o.slice(0,r)+"."+o.slice(r)),n&&(r=n-s)>0&&(i+1===s&&(o+="."),o+=Hi(r))),t.s<0?"-"+o:o}function M2(t,e){if(t.length>e)return t.length=e,!0}function CV(t){var e,n,r;function i(o){var s=this;if(!(s instanceof i))return new i(o);if(s.constructor=i,o instanceof i){s.s=o.s,s.e=o.e,s.d=(o=o.d)?o.slice():o;return}if(typeof o=="number"){if(o*0!==0)throw Error(Ho+o);if(o>0)s.s=1;else if(o<0)o=-o,s.s=-1;else{s.s=0,s.e=0,s.d=[0];return}if(o===~~o&&o<1e7){s.e=0,s.d=[o];return}return E2(s,o.toString())}else if(typeof o!="string")throw Error(Ho+o);if(o.charCodeAt(0)===45?(o=o.slice(1),s.s=-1):s.s=1,ece.test(o))E2(s,o);else throw Error(Ho+o)}if(i.prototype=pe,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=CV,i.config=i.set=tce,t===void 0&&(t={}),t)for(r=["precision","rounding","toExpNeg","toExpPos","LN10"],e=0;e<r.length;)t.hasOwnProperty(n=r[e++])||(t[n]=this[n]);return i.config(t),i}function tce(t){if(!t||typeof t!="object")throw Error(Jn+"Object expected");var e,n,r,i=["precision",1,il,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(e=0;e<i.length;e+=3)if((r=t[n=i[e]])!==void 0)if(ol(r)===r&&r>=i[e+1]&&r<=i[e+2])this[n]=r;else throw Error(Ho+n+": "+r);if((r=t[n="LN10"])!==void 0)if(r==Math.LN10)this[n]=new this(r);else throw Error(Ho+n+": "+r);return this}var Rw=CV(Que);Pn=new Rw(1);const Qe=Rw;function nce(t){return ace(t)||oce(t)||ice(t)||rce()}function rce(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 313In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ice(t,e){if(t){if(typeof t=="string")return JT(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return JT(t,e)}}function oce(t){if(typeof Symbol<"u"&&Symbol.iterator in Object(t))return Array.from(t)}function ace(t){if(Array.isArray(t))return JT(t)}function JT(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var sce=function(e){return e},EV={},MV=function(e){return e===EV},P2=function(e){return function n(){return arguments.length===0||arguments.length===1&&MV(arguments.length<=0?void 0:arguments[0])?n:e.apply(void 0,arguments)}},lce=function t(e,n){return e===1?n:P2(function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];var s=i.filter(function(u){return u!==EV}).length;return s>=e?n.apply(void 0,i):t(e-s,P2(function(){for(var u=arguments.length,c=new Array(u),f=0;f<u;f++)c[f]=arguments[f];var p=i.map(function(y){return MV(y)?c.shift():y});return n.apply(void 0,nce(p).concat(c))}))})},Cp=function(e){return lce(e.length,e)},ZT=function(e,n){for(var r=[],i=e;i<n;++i)r[i-e]=i;return r},uce=Cp(function(t,e){return Array.isArray(e)?e.map(t):Object.keys(e).map(function(n){return e[n]}).map(t)}),cce=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];if(!n.length)return sce;var i=n.reverse(),o=i[0],s=i.slice(1);return function(){return s.reduce(function(u,c){return c(u)},o.apply(void 0,arguments))}},QT=function(e){return Array.isArray(e)?e.reverse():e.split("").reverse.join("")},PV=function(e){var n=null,r=null;return function(){for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return n&&o.every(function(u,c){return u===n[c]})||(n=o,r=e.apply(void 0,o)),r}};function fce(t){var e;return t===0?e=1:e=Math.floor(new Qe(t).abs().log(10).toNumber())+1,e}function dce(t,e,n){for(var r=new Qe(t),i=0,o=[];r.lt(e)&&i<1e5;)o.push(r.toNumber()),r=r.add(n),i++;return o}var hce=Cp(function(t,e,n){var r=+t,i=+e;return r+n*(i-r)}),pce=Cp(function(t,e,n){var r=e-+t;return r=r||1/0,(n-t)/r}),mce=Cp(function(t,e,n){var r=e-+t;return r=r||1/0,Math.max(0,Math.min(1,(n-t)/r))});const Ep={rangeStep:dce,getDigitCount:fce,interpolateNumber:hce,uninterpolateNumber:pce,uninterpolateTruncation:mce};function eS(t){return vce(t)||yce(t)||RV(t)||gce()}function gce(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 314In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function yce(t){if(typeof Symbol<"u"&&Symbol.iterator in Object(t))return Array.from(t)}function vce(t){if(Array.isArray(t))return tS(t)}function rc(t,e){return Tce(t)||xce(t,e)||RV(t,e)||bce()}function bce(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 315In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function RV(t,e){if(t){if(typeof t=="string")return tS(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return tS(t,e)}}function tS(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function xce(t,e){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(t)))){var n=[],r=!0,i=!1,o=void 0;try{for(var s=t[Symbol.iterator](),u;!(r=(u=s.next()).done)&&(n.push(u.value),!(e&&n.length===e));r=!0);}catch(c){i=!0,o=c}finally{try{!r&&s.return!=null&&s.return()}finally{if(i)throw o}}return n}}function Tce(t){if(Array.isArray(t))return t}function NV(t){var e=rc(t,2),n=e[0],r=e[1],i=n,o=r;return n>r&&(i=r,o=n),[i,o]}function OV(t,e,n){if(t.lte(0))return new Qe(0);var r=Ep.getDigitCount(t.toNumber()),i=new Qe(10).pow(r),o=t.div(i),s=r!==1?.05:.1,u=new Qe(Math.ceil(o.div(s).toNumber())).add(n).mul(s),c=u.mul(i);return e?c:new Qe(Math.ceil(c))}function Sce(t,e,n){var r=1,i=new Qe(t);if(!i.isint()&&n){var o=Math.abs(t);o<1?(r=new Qe(10).pow(Ep.getDigitCount(t)-1),i=new Qe(Math.floor(i.div(r).toNumber())).mul(r)):o>1&&(i=new Qe(Math.floor(t)))}else t===0?i=new Qe(Math.floor((e-1)/2)):n||(i=new Qe(Math.floor(t)));var s=Math.floor((e-1)/2),u=cce(uce(function(c){return i.add(new Qe(c-s).mul(r)).toNumber()}),ZT);return u(0,e)}function DV(t,e,n,r){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((e-t)/(n-1)))return{step:new Qe(0),tickMin:new Qe(0),tickMax:new Qe(0)};var o=OV(new Qe(e).sub(t).div(n-1),r,i),s;t<=0&&e>=0?s=new Qe(0):(s=new Qe(t).add(e).div(2),s=s.sub(new Qe(s).mod(o)));var u=Math.ceil(s.sub(t).div(o).toNumber()),c=Math.ceil(new Qe(e).sub(s).div(o).toNumber()),f=u+c+1;return f>n?DV(t,e,n,r,i+1):(f<n&&(c=e>0?c+(n-f):c,u=e>0?u:u+(n-f)),{step:o,tickMin:s.sub(new Qe(u).mul(o)),tickMax:s.add(new Qe(c).mul(o))})}function Ace(t){var e=rc(t,2),n=e[0],r=e[1],i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,s=Math.max(i,2),u=NV([n,r]),c=rc(u,2),f=c[0],p=c[1];if(f===-1/0||p===1/0){var y=p===1/0?[f].concat(eS(ZT(0,i-1).map(function(){return 1/0}))):[].concat(eS(ZT(0,i-1).map(function(){return-1/0})),[p]);return n>r?QT(y):y}if(f===p)return Sce(f,i,o);var v=DV(f,p,s,o),x=v.step,w=v.tickMin,A=v.tickMax,S=Ep.rangeStep(w,A.add(new Qe(.1).mul(x)),x);return n>r?QT(S):S}function wce(t,e){var n=rc(t,2),r=n[0],i=n[1],o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,s=NV([r,i]),u=rc(s,2),c=u[0],f=u[1];if(c===-1/0||f===1/0)return[r,i];if(c===f)return[c];var p=Math.max(e,2),y=OV(new Qe(f).sub(c).div(p-1),o,0),v=[].concat(eS(Ep.rangeStep(new Qe(c),new Qe(f).sub(new Qe(.99).mul(y)),y)),[f]);return r>i?QT(v):v}var _ce=PV(Ace),Cce=PV(wce),Ece="Invariant failed";function Xo(t,e){throw new Error(Ece)}var Mce=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function Es(t){"@babel/helpers - typeof";return Es=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Es(t)}function vh(){return vh=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},vh.apply(this,arguments)}function Pce(t,e){return Dce(t)||Oce(t,e)||Nce(t,e)||Rce()}function Rce(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 316In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Nce(t,e){if(t){if(typeof t=="string")return R2(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return R2(t,e)}}function R2(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Oce(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,o,s,u=[],c=!0,f=!1;try{if(o=(n=n.call(t)).next,e!==0)for(;!(c=(r=o.call(n)).done)&&(u.push(r.value),u.length!==e);c=!0);}catch(p){f=!0,i=p}finally{try{if(!c&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(f)throw i}}return u}}function Dce(t){if(Array.isArray(t))return t}function Ice(t,e){if(t==null)return{};var n=kce(t,e),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)r=o[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function kce(t,e){if(t==null)return{};var n={};for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){if(e.indexOf(r)>=0)continue;n[r]=t[r]}return n}function Lce(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Uce(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,LV(r.key),r)}}function qce(t,e,n){return e&&Uce(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function Bce(t,e,n){return e=bh(e),$ce(t,IV()?Reflect.construct(e,n||[],bh(t).constructor):e.apply(t,n))}function $ce(t,e){if(e&&(Es(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Vce(t)}function Vce(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function IV(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(IV=function(){return!!t})()}function bh(t){return bh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},bh(t)}function jce(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&nS(t,e)}function nS(t,e){return nS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},nS(t,e)}function kV(t,e,n){return e=LV(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function LV(t){var e=Fce(t,"string");return Es(e)=="symbol"?e:e+""}function Fce(t,e){if(Es(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(Es(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var Mp=(function(t){function e(){return Lce(this,e),Bce(this,e,arguments)}return jce(e,t),qce(e,[{key:"render",value:function(){var r=this.props,i=r.offset,o=r.layout,s=r.width,u=r.dataKey,c=r.data,f=r.dataPointFormatter,p=r.xAxis,y=r.yAxis,v=Ice(r,Mce),x=_e(v,!1);this.props.direction==="x"&&p.type!=="number"&&Xo();var w=c.map(function(A){var S=f(A,u),C=S.x,P=S.y,M=S.value,O=S.errorVal;if(!O)return null;var E=[],N,D;if(Array.isArray(O)){var L=Pce(O,2);N=L[0],D=L[1]}else N=D=O;if(o==="vertical"){var U=p.scale,F=P+i,B=F+s,z=F-s,W=U(M-N),ne=U(M+D);E.push({x1:ne,y1:B,x2:ne,y2:z}),E.push({x1:W,y1:F,x2:ne,y2:F}),E.push({x1:W,y1:B,x2:W,y2:z})}else if(o==="horizontal"){var J=y.scale,$=C+i,G=$-s,te=$+s,ue=J(M-N),q=J(M+D);E.push({x1:G,y1:q,x2:te,y2:q}),E.push({x1:$,y1:ue,x2:$,y2:q}),E.push({x1:G,y1:ue,x2:te,y2:ue})}return j.createElement(We,vh({className:"recharts-errorBar",key:"bar-".concat(E.map(function(Z){return"".concat(Z.x1,"-").concat(Z.x2,"-").concat(Z.y1,"-").concat(Z.y2)}))},x),E.map(function(Z){return j.createElement("line",vh({},Z,{key:"line-".concat(Z.x1,"-").concat(Z.x2,"-").concat(Z.y1,"-").concat(Z.y2)}))}))});return j.createElement(We,{className:"recharts-errorBars"},w)}}])})(j.Component);kV(Mp,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});kV(Mp,"displayName","ErrorBar");function ic(t){"@babel/helpers - typeof";return ic=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ic(t)}function N2(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Mo(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?N2(Object(n),!0).forEach(function(r){Hce(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):N2(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Hce(t,e,n){return e=Gce(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Gce(t){var e=zce(t,"string");return ic(e)=="symbol"?e:e+""}function zce(t,e){if(ic(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(ic(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var UV=function(e){var n=e.children,r=e.formattedGraphicalItems,i=e.legendWidth,o=e.legendContent,s=Mn(n,Wi);if(!s)return null;var u=Wi.defaultProps,c=u!==void 0?Mo(Mo({},u),s.props):{},f;return s.props&&s.props.payload?f=s.props&&s.props.payload:o==="children"?f=(r||[]).reduce(function(p,y){var v=y.item,x=y.props,w=x.sectors||x.data||[];return p.concat(w.map(function(A){return{type:s.props.iconType||v.props.legendType,value:A.name,color:A.fill,payload:A}}))},[]):f=(r||[]).map(function(p){var y=p.item,v=y.type.defaultProps,x=v!==void 0?Mo(Mo({},v),y.props):{},w=x.dataKey,A=x.name,S=x.legendType,C=x.hide;return{inactive:C,dataKey:w,type:c.iconType||S||"square",color:Nw(y),value:A||w,payload:x}}),Mo(Mo(Mo({},c),Wi.getWithHeight(s,i)),{},{payload:f,item:s})};function oc(t){"@babel/helpers - typeof";return oc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},oc(t)}function O2(t){return Xce(t)||Wce(t)||Yce(t)||Kce()}function Kce(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 317In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Yce(t,e){if(t){if(typeof t=="string")return rS(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return rS(t,e)}}function Wce(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Xce(t){if(Array.isArray(t))return rS(t)}function rS(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function D2(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function bt(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?D2(Object(n),!0).forEach(function(r){gs(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):D2(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function gs(t,e,n){return e=Jce(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Jce(t){var e=Zce(t,"string");return oc(e)=="symbol"?e:e+""}function Zce(t,e){if(oc(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(oc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function tn(t,e,n){return ke(t)||ke(e)?n:kt(e)?Rn(t,e,n):Ce(e)?e(t):n}function Du(t,e,n,r){var i=Xue(t,function(u){return tn(u,e)});if(n==="number"){var o=i.filter(function(u){return fe(u)||parseFloat(u)});return o.length?[wp(o),Ap(o)]:[1/0,-1/0]}var s=r?i.filter(function(u){return!ke(u)}):i;return s.map(function(u){return kt(u)||u instanceof Date?u:""})}var Qce=function(e){var n,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],i=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,s=-1,u=(n=r==null?void 0:r.length)!==null&&n!==void 0?n:0;if(u<=1)return 0;if(o&&o.axisType==="angleAxis"&&Math.abs(Math.abs(o.range[1]-o.range[0])-360)<=1e-6)for(var c=o.range,f=0;f<u;f++){var p=f>0?i[f-1].coordinate:i[u-1].coordinate,y=i[f].coordinate,v=f>=u-1?i[0].coordinate:i[f+1].coordinate,x=void 0;if(ln(y-p)!==ln(v-y)){var w=[];if(ln(v-y)===ln(c[1]-c[0])){x=v;var A=y+c[1]-c[0];w[0]=Math.min(A,(A+p)/2),w[1]=Math.max(A,(A+p)/2)}else{x=p;var S=v+c[1]-c[0];w[0]=Math.min(y,(S+y)/2),w[1]=Math.max(y,(S+y)/2)}var C=[Math.min(y,(x+y)/2),Math.max(y,(x+y)/2)];if(e>C[0]&&e<=C[1]||e>=w[0]&&e<=w[1]){s=i[f].index;break}}else{var P=Math.min(p,v),M=Math.max(p,v);if(e>(P+y)/2&&e<=(M+y)/2){s=i[f].index;break}}}else for(var O=0;O<u;O++)if(O===0&&e<=(r[O].coordinate+r[O+1].coordinate)/2||O>0&&O<u-1&&e>(r[O].coordinate+r[O-1].coordinate)/2&&e<=(r[O].coordinate+r[O+1].coordinate)/2||O===u-1&&e>(r[O].coordinate+r[O-1].coordinate)/2){s=r[O].index;break}return s},Nw=function(e){var n,r=e,i=r.type.displayName,o=(n=e.type)!==null&&n!==void 0&&n.defaultProps?bt(bt({},e.type.defaultProps),e.props):e.props,s=o.stroke,u=o.fill,c;switch(i){case"Line":c=s;break;case"Area":case"Radar":c=s&&s!=="none"?s:u;break;default:c=u;break}return c},efe=function(e){var n=e.barSize,r=e.totalSize,i=e.stackGroups,o=i===void 0?{}:i;if(!o)return{};for(var s={},u=Object.keys(o),c=0,f=u.length;c<f;c++)for(var p=o[u[c]].stackGroups,y=Object.keys(p),v=0,x=y.length;v<x;v++){var w=p[y[v]],A=w.items,S=w.cateAxisId,C=A.filter(function(D){return ri(D.type).indexOf("Bar")>=0});if(C&&C.length){var P=C[0].type.defaultProps,M=P!==void 0?bt(bt({},P),C[0].props):C[0].props,O=M.barSize,E=M[S];s[E]||(s[E]=[]);var N=ke(O)?n:O;s[E].push({item:C[0],stackList:C.slice(1),barSize:ke(N)?void 0:un(N,r,0)})}}return s},tfe=function(e){var n=e.barGap,r=e.barCategoryGap,i=e.bandSize,o=e.sizeList,s=o===void 0?[]:o,u=e.maxBarSize,c=s.length;if(c<1)return null;var f=un(n,i,0,!0),p,y=[];if(s[0].barSize===+s[0].barSize){var v=!1,x=i/c,w=s.reduce(function(O,E){return O+E.barSize||0},0);w+=(c-1)*f,w>=i&&(w-=(c-1)*f,f=0),w>=i&&x>0&&(v=!0,x*=.9,w=c*x);var A=(i-w)/2>>0,S={offset:A-f,size:0};p=s.reduce(function(O,E){var N={item:E.item,position:{offset:S.offset+S.size+f,size:v?x:E.barSize}},D=[].concat(O2(O),[N]);return S=D[D.length-1].position,E.stackList&&E.stackList.length&&E.stackList.forEach(function(L){D.push({item:L,position:S})}),D},y)}else{var C=un(r,i,0,!0);i-2*C-(c-1)*f<=0&&(f=0);var P=(i-2*C-(c-1)*f)/c;P>1&&(P>>=0);var M=u===+u?Math.min(P,u):P;p=s.reduce(function(O,E,N){var D=[].concat(O2(O),[{item:E.item,position:{offset:C+(P+f)*N+(P-M)/2,size:M}}]);return E.stackList&&E.stackList.length&&E.stackList.forEach(function(L){D.push({item:L,position:D[D.length-1].position})}),D},y)}return p},nfe=function(e,n,r,i){var o=r.children,s=r.width,u=r.margin,c=s-(u.left||0)-(u.right||0),f=UV({children:o,legendWidth:c});if(f){var p=i||{},y=p.width,v=p.height,x=f.align,w=f.verticalAlign,A=f.layout;if((A==="vertical"||A==="horizontal"&&w==="middle")&&x!=="center"&&fe(e[x]))return bt(bt({},e),{},gs({},x,e[x]+(y||0)));if((A==="horizontal"||A==="vertical"&&x==="center")&&w!=="middle"&&fe(e[w]))return bt(bt({},e),{},gs({},w,e[w]+(v||0)))}return e},rfe=function(e,n,r){return ke(n)?!0:e==="horizontal"?n==="yAxis":e==="vertical"||r==="x"?n==="xAxis":r==="y"?n==="yAxis":!0},qV=function(e,n,r,i,o){var s=n.props.children,u=Xn(s,Mp).filter(function(f){return rfe(i,o,f.props.direction)});if(u&&u.length){var c=u.map(function(f){return f.props.dataKey});return e.reduce(function(f,p){var y=tn(p,r);if(ke(y))return f;var v=Array.isArray(y)?[wp(y),Ap(y)]:[y,y],x=c.reduce(function(w,A){var S=tn(p,A,0),C=v[0]-Math.abs(Array.isArray(S)?S[0]:S),P=v[1]+Math.abs(Array.isArray(S)?S[1]:S);return[Math.min(C,w[0]),Math.max(P,w[1])]},[1/0,-1/0]);return[Math.min(x[0],f[0]),Math.max(x[1],f[1])]},[1/0,-1/0])}return null},ife=function(e,n,r,i,o){var s=n.map(function(u){return qV(e,u,r,o,i)}).filter(function(u){return!ke(u)});return s&&s.length?s.reduce(function(u,c){return[Math.min(u[0],c[0]),Math.max(u[1],c[1])]},[1/0,-1/0]):null},BV=function(e,n,r,i,o){var s=n.map(function(c){var f=c.props.dataKey;return r==="number"&&f&&qV(e,c,f,i)||Du(e,f,r,o)});if(r==="number")return s.reduce(function(c,f){return[Math.min(c[0],f[0]),Math.max(c[1],f[1])]},[1/0,-1/0]);var u={};return s.reduce(function(c,f){for(var p=0,y=f.length;p<y;p++)u[f[p]]||(u[f[p]]=!0,c.push(f[p]));return c},[])},$V=function(e,n){return e==="horizontal"&&n==="xAxis"||e==="vertical"&&n==="yAxis"||e==="centric"&&n==="angleAxis"||e==="radial"&&n==="radiusAxis"},VV=function(e,n,r,i){if(i)return e.map(function(c){return c.coordinate});var o,s,u=e.map(function(c){return c.coordinate===n&&(o=!0),c.coordinate===r&&(s=!0),c.coordinate});return o||u.push(n),s||u.push(r),u},ti=function(e,n,r){if(!e)return null;var i=e.scale,o=e.duplicateDomain,s=e.type,u=e.range,c=e.realScaleType==="scaleBand"?i.bandwidth()/2:2,f=(n||r)&&s==="category"&&i.bandwidth?i.bandwidth()/c:0;if(f=e.axisType==="angleAxis"&&(u==null?void 0:u.length)>=2?ln(u[0]-u[1])*2*f:f,n&&(e.ticks||e.niceTicks)){var p=(e.ticks||e.niceTicks).map(function(y){var v=o?o.indexOf(y):y;return{coordinate:i(v)+f,value:y,offset:f}});return p.filter(function(y){return!Ic(y.coordinate)})}return e.isCategorical&&e.categoricalDomain?e.categoricalDomain.map(function(y,v){return{coordinate:i(y)+f,value:y,index:v,offset:f}}):i.ticks&&!r?i.ticks(e.tickCount).map(function(y){return{coordinate:i(y)+f,value:y,offset:f}}):i.domain().map(function(y,v){return{coordinate:i(y)+f,value:o?o[y]:y,index:v,offset:f}})},ix=new WeakMap,bd=function(e,n){if(typeof n!="function")return e;ix.has(e)||ix.set(e,new WeakMap);var r=ix.get(e);if(r.has(n))return r.get(n);var i=function(){e.apply(void 0,arguments),n.apply(void 0,arguments)};return r.set(n,i),i},jV=function(e,n,r){var i=e.scale,o=e.type,s=e.layout,u=e.axisType;if(i==="auto")return s==="radial"&&u==="radiusAxis"?{scale:Ju(),realScaleType:"band"}:s==="radial"&&u==="angleAxis"?{scale:hh(),realScaleType:"linear"}:o==="category"&&n&&(n.indexOf("LineChart")>=0||n.indexOf("AreaChart")>=0||n.indexOf("ComposedChart")>=0&&!r)?{scale:Ou(),realScaleType:"point"}:o==="category"?{scale:Ju(),realScaleType:"band"}:{scale:hh(),realScaleType:"linear"};if(zo(i)){var c="scale".concat(lp(i));return{scale:(v2[c]||Ou)(),realScaleType:v2[c]?c:"point"}}return Ce(i)?{scale:i}:{scale:Ou(),realScaleType:"point"}},I2=1e-4,FV=function(e){var n=e.domain();if(!(!n||n.length<=2)){var r=n.length,i=e.range(),o=Math.min(i[0],i[1])-I2,s=Math.max(i[0],i[1])+I2,u=e(n[0]),c=e(n[r-1]);(u<o||u>s||c<o||c>s)&&e.domain([n[0],n[r-1]])}},ofe=function(e,n){if(!e)return null;for(var r=0,i=e.length;r<i;r++)if(e[r].item===n)return e[r].position;return null},afe=function(e,n){if(!n||n.length!==2||!fe(n[0])||!fe(n[1]))return e;var r=Math.min(n[0],n[1]),i=Math.max(n[0],n[1]),o=[e[0],e[1]];return(!fe(e[0])||e[0]<r)&&(o[0]=r),(!fe(e[1])||e[1]>i)&&(o[1]=i),o[0]>i&&(o[0]=i),o[1]<r&&(o[1]=r),o},sfe=function(e){var n=e.length;if(!(n<=0))for(var r=0,i=e[0].length;r<i;++r)for(var o=0,s=0,u=0;u<n;++u){var c=Ic(e[u][r][1])?e[u][r][0]:e[u][r][1];c>=0?(e[u][r][0]=o,e[u][r][1]=o+c,o=e[u][r][1]):(e[u][r][0]=s,e[u][r][1]=s+c,s=e[u][r][1])}},lfe=function(e){var n=e.length;if(!(n<=0))for(var r=0,i=e[0].length;r<i;++r)for(var o=0,s=0;s<n;++s){var u=Ic(e[s][r][1])?e[s][r][0]:e[s][r][1];u>=0?(e[s][r][0]=o,e[s][r][1]=o+u,o=e[s][r][1]):(e[s][r][0]=0,e[s][r][1]=0)}},ufe={sign:sfe,expand:Xre,none:bs,silhouette:Jre,wiggle:Zre,positive:lfe},cfe=function(e,n,r){var i=n.map(function(u){return u.props.dataKey}),o=ufe[r],s=Wre().keys(i).value(function(u,c){return+tn(u,c,0)}).order(DT).offset(o);return s(e)},ffe=function(e,n,r,i,o,s){if(!e)return null;var u=s?n.reverse():n,c={},f=u.reduce(function(y,v){var x,w=(x=v.type)!==null&&x!==void 0&&x.defaultProps?bt(bt({},v.type.defaultProps),v.props):v.props,A=w.stackId,S=w.hide;if(S)return y;var C=w[r],P=y[C]||{hasStack:!1,stackGroups:{}};if(kt(A)){var M=P.stackGroups[A]||{numericAxisId:r,cateAxisId:i,items:[]};M.items.push(v),P.hasStack=!0,P.stackGroups[A]=M}else P.stackGroups[kc("_stackId_")]={numericAxisId:r,cateAxisId:i,items:[v]};return bt(bt({},y),{},gs({},C,P))},c),p={};return Object.keys(f).reduce(function(y,v){var x=f[v];if(x.hasStack){var w={};x.stackGroups=Object.keys(x.stackGroups).reduce(function(A,S){var C=x.stackGroups[S];return bt(bt({},A),{},gs({},S,{numericAxisId:r,cateAxisId:i,items:C.items,stackedData:cfe(e,C.items,o)}))},w)}return bt(bt({},y),{},gs({},v,x))},p)},HV=function(e,n){var r=n.realScaleType,i=n.type,o=n.tickCount,s=n.originalDomain,u=n.allowDecimals,c=r||n.scale;if(c!=="auto"&&c!=="linear")return null;if(o&&i==="number"&&s&&(s[0]==="auto"||s[1]==="auto")){var f=e.domain();if(!f.length)return null;var p=_ce(f,o,u);return e.domain([wp(p),Ap(p)]),{niceTicks:p}}if(o&&i==="number"){var y=e.domain(),v=Cce(y,o,u);return{niceTicks:v}}return null},k2=function(e){var n=e.axis,r=e.ticks,i=e.offset,o=e.bandSize,s=e.entry,u=e.index;if(n.type==="category")return r[u]?r[u].coordinate+i:null;var c=tn(s,n.dataKey,n.domain[u]);return ke(c)?null:n.scale(c)-o/2+i},dfe=function(e){var n=e.numericAxis,r=n.scale.domain();if(n.type==="number"){var i=Math.min(r[0],r[1]),o=Math.max(r[0],r[1]);return i<=0&&o>=0?0:o<0?o:i}return r[0]},hfe=function(e,n){var r,i=(r=e.type)!==null&&r!==void 0&&r.defaultProps?bt(bt({},e.type.defaultProps),e.props):e.props,o=i.stackId;if(kt(o)){var s=n[o];if(s){var u=s.items.indexOf(e);return u>=0?s.stackedData[u]:null}}return null},pfe=function(e){return e.reduce(function(n,r){return[wp(r.concat([n[0]]).filter(fe)),Ap(r.concat([n[1]]).filter(fe))]},[1/0,-1/0])},GV=function(e,n,r){return Object.keys(e).reduce(function(i,o){var s=e[o],u=s.stackedData,c=u.reduce(function(f,p){var y=pfe(p.slice(n,r+1));return[Math.min(f[0],y[0]),Math.max(f[1],y[1])]},[1/0,-1/0]);return[Math.min(c[0],i[0]),Math.max(c[1],i[1])]},[1/0,-1/0]).map(function(i){return i===1/0||i===-1/0?0:i})},L2=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,U2=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,iS=function(e,n,r){if(Ce(e))return e(n,r);if(!Array.isArray(e))return n;var i=[];if(fe(e[0]))i[0]=r?e[0]:Math.min(e[0],n[0]);else if(L2.test(e[0])){var o=+L2.exec(e[0])[1];i[0]=n[0]-o}else Ce(e[0])?i[0]=e[0](n[0]):i[0]=n[0];if(fe(e[1]))i[1]=r?e[1]:Math.max(e[1],n[1]);else if(U2.test(e[1])){var s=+U2.exec(e[1])[1];i[1]=n[1]+s}else Ce(e[1])?i[1]=e[1](n[1]):i[1]=n[1];return i},xh=function(e,n,r){if(e&&e.scale&&e.scale.bandwidth){var i=e.scale.bandwidth();if(!r||i>0)return i}if(e&&n&&n.length>=2){for(var o=ow(n,function(y){return y.coordinate}),s=1/0,u=1,c=o.length;u<c;u++){var f=o[u],p=o[u-1];s=Math.min((f.coordinate||0)-(p.coordinate||0),s)}return s===1/0?0:s}return r?void 0:0},q2=function(e,n,r){return!e||!e.length||_p(e,Rn(r,"type.defaultProps.domain"))?n:e},zV=function(e,n){var r=e.type.defaultProps?bt(bt({},e.type.defaultProps),e.props):e.props,i=r.dataKey,o=r.name,s=r.unit,u=r.formatter,c=r.tooltipType,f=r.chartType,p=r.hide;return bt(bt({},_e(e,!1)),{},{dataKey:i,unit:s,formatter:u,name:o||i,color:Nw(e),value:tn(n,i),type:c,payload:n,chartType:f,hide:p})};function ac(t){"@babel/helpers - typeof";return ac=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ac(t)}function B2(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Zr(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?B2(Object(n),!0).forEach(function(r){KV(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):B2(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function KV(t,e,n){return e=mfe(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function mfe(t){var e=gfe(t,"string");return ac(e)=="symbol"?e:e+""}function gfe(t,e){if(ac(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(ac(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function yfe(t,e){return Tfe(t)||xfe(t,e)||bfe(t,e)||vfe()}function vfe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 318In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function bfe(t,e){if(t){if(typeof t=="string")return $2(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return $2(t,e)}}function $2(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function xfe(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,o,s,u=[],c=!0,f=!1;try{if(o=(n=n.call(t)).next,e!==0)for(;!(c=(r=o.call(n)).done)&&(u.push(r.value),u.length!==e);c=!0);}catch(p){f=!0,i=p}finally{try{if(!c&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(f)throw i}}return u}}function Tfe(t){if(Array.isArray(t))return t}var Th=Math.PI/180,Sfe=function(e){return e*180/Math.PI},st=function(e,n,r,i){return{x:e+Math.cos(-Th*i)*r,y:n+Math.sin(-Th*i)*r}},YV=function(e,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(e-(r.left||0)-(r.right||0)),Math.abs(n-(r.top||0)-(r.bottom||0)))/2},Afe=function(e,n,r,i,o){var s=e.width,u=e.height,c=e.startAngle,f=e.endAngle,p=un(e.cx,s,s/2),y=un(e.cy,u,u/2),v=YV(s,u,r),x=un(e.innerRadius,v,0),w=un(e.outerRadius,v,v*.8),A=Object.keys(n);return A.reduce(function(S,C){var P=n[C],M=P.domain,O=P.reversed,E;if(ke(P.range))i==="angleAxis"?E=[c,f]:i==="radiusAxis"&&(E=[x,w]),O&&(E=[E[1],E[0]]);else{E=P.range;var N=E,D=yfe(N,2);c=D[0],f=D[1]}var L=jV(P,o),U=L.realScaleType,F=L.scale;F.domain(M).range(E),FV(F);var B=HV(F,Zr(Zr({},P),{},{realScaleType:U})),z=Zr(Zr(Zr({},P),B),{},{range:E,radius:w,realScaleType:U,scale:F,cx:p,cy:y,innerRadius:x,outerRadius:w,startAngle:c,endAngle:f});return Zr(Zr({},S),{},KV({},C,z))},{})},wfe=function(e,n){var r=e.x,i=e.y,o=n.x,s=n.y;return Math.sqrt(Math.pow(r-o,2)+Math.pow(i-s,2))},_fe=function(e,n){var r=e.x,i=e.y,o=n.cx,s=n.cy,u=wfe({x:r,y:i},{x:o,y:s});if(u<=0)return{radius:u};var c=(r-o)/u,f=Math.acos(c);return i>s&&(f=2*Math.PI-f),{radius:u,angle:Sfe(f),angleInRadian:f}},Cfe=function(e){var n=e.startAngle,r=e.endAngle,i=Math.floor(n/360),o=Math.floor(r/360),s=Math.min(i,o);return{startAngle:n-s*360,endAngle:r-s*360}},Efe=function(e,n){var r=n.startAngle,i=n.endAngle,o=Math.floor(r/360),s=Math.floor(i/360),u=Math.min(o,s);return e+u*360},V2=function(e,n){var r=e.x,i=e.y,o=_fe({x:r,y:i},n),s=o.radius,u=o.angle,c=n.innerRadius,f=n.outerRadius;if(s<c||s>f)return!1;if(s===0)return!0;var p=Cfe(n),y=p.startAngle,v=p.endAngle,x=u,w;if(y<=v){for(;x>v;)x-=360;for(;x<y;)x+=360;w=x>=y&&x<=v}else{for(;x>y;)x-=360;for(;x<v;)x+=360;w=x>=v&&x<=y}return w?Zr(Zr({},n),{},{radius:s,angle:Efe(x,n)}):null},WV=function(e){return!k.isValidElement(e)&&!Ce(e)&&typeof e!="boolean"?e.className:""};function sc(t){"@babel/helpers - typeof";return sc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},sc(t)}var Mfe=["offset"];function Pfe(t){return Dfe(t)||Ofe(t)||Nfe(t)||Rfe()}function Rfe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 319In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Nfe(t,e){if(t){if(typeof t=="string")return oS(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return oS(t,e)}}function Ofe(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Dfe(t){if(Array.isArray(t))return oS(t)}function oS(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Ife(t,e){if(t==null)return{};var n=kfe(t,e),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)r=o[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function kfe(t,e){if(t==null)return{};var n={};for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){if(e.indexOf(r)>=0)continue;n[r]=t[r]}return n}function j2(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Dt(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?j2(Object(n),!0).forEach(function(r){Lfe(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):j2(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Lfe(t,e,n){return e=Ufe(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ufe(t){var e=qfe(t,"string");return sc(e)=="symbol"?e:e+""}function qfe(t,e){if(sc(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(sc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function lc(){return lc=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},lc.apply(this,arguments)}var Bfe=function(e){var n=e.value,r=e.formatter,i=ke(e.children)?n:e.children;return Ce(r)?r(i):i},$fe=function(e,n){var r=ln(n-e),i=Math.min(Math.abs(n-e),360);return r*i},Vfe=function(e,n,r){var i=e.position,o=e.viewBox,s=e.offset,u=e.className,c=o,f=c.cx,p=c.cy,y=c.innerRadius,v=c.outerRadius,x=c.startAngle,w=c.endAngle,A=c.clockWise,S=(y+v)/2,C=$fe(x,w),P=C>=0?1:-1,M,O;i==="insideStart"?(M=x+P*s,O=A):i==="insideEnd"?(M=w-P*s,O=!A):i==="end"&&(M=w+P*s,O=A),O=C<=0?O:!O;var E=st(f,p,S,M),N=st(f,p,S,M+(O?1:-1)*359),D="M".concat(E.x,",").concat(E.y,` 320 A`).concat(S,",").concat(S,",0,1,").concat(O?0:1,`, 321 `).concat(N.x,",").concat(N.y),L=ke(e.id)?kc("recharts-radial-line-"):e.id;return j.createElement("text",lc({},r,{dominantBaseline:"central",className:De("recharts-radial-bar-label",u)}),j.createElement("defs",null,j.createElement("path",{id:L,d:D})),j.createElement("textPath",{xlinkHref:"#".concat(L)},n))},jfe=function(e){var n=e.viewBox,r=e.offset,i=e.position,o=n,s=o.cx,u=o.cy,c=o.innerRadius,f=o.outerRadius,p=o.startAngle,y=o.endAngle,v=(p+y)/2;if(i==="outside"){var x=st(s,u,f+r,v),w=x.x,A=x.y;return{x:w,y:A,textAnchor:w>=s?"start":"end",verticalAnchor:"middle"}}if(i==="center")return{x:s,y:u,textAnchor:"middle",verticalAnchor:"middle"};if(i==="centerTop")return{x:s,y:u,textAnchor:"middle",verticalAnchor:"start"};if(i==="centerBottom")return{x:s,y:u,textAnchor:"middle",verticalAnchor:"end"};var S=(c+f)/2,C=st(s,u,S,v),P=C.x,M=C.y;return{x:P,y:M,textAnchor:"middle",verticalAnchor:"middle"}},Ffe=function(e){var n=e.viewBox,r=e.parentViewBox,i=e.offset,o=e.position,s=n,u=s.x,c=s.y,f=s.width,p=s.height,y=p>=0?1:-1,v=y*i,x=y>0?"end":"start",w=y>0?"start":"end",A=f>=0?1:-1,S=A*i,C=A>0?"end":"start",P=A>0?"start":"end";if(o==="top"){var M={x:u+f/2,y:c-y*i,textAnchor:"middle",verticalAnchor:x};return Dt(Dt({},M),r?{height:Math.max(c-r.y,0),width:f}:{})}if(o==="bottom"){var O={x:u+f/2,y:c+p+v,textAnchor:"middle",verticalAnchor:w};return Dt(Dt({},O),r?{height:Math.max(r.y+r.height-(c+p),0),width:f}:{})}if(o==="left"){var E={x:u-S,y:c+p/2,textAnchor:C,verticalAnchor:"middle"};return Dt(Dt({},E),r?{width:Math.max(E.x-r.x,0),height:p}:{})}if(o==="right"){var N={x:u+f+S,y:c+p/2,textAnchor:P,verticalAnchor:"middle"};return Dt(Dt({},N),r?{width:Math.max(r.x+r.width-N.x,0),height:p}:{})}var D=r?{width:f,height:p}:{};return o==="insideLeft"?Dt({x:u+S,y:c+p/2,textAnchor:P,verticalAnchor:"middle"},D):o==="insideRight"?Dt({x:u+f-S,y:c+p/2,textAnchor:C,verticalAnchor:"middle"},D):o==="insideTop"?Dt({x:u+f/2,y:c+v,textAnchor:"middle",verticalAnchor:w},D):o==="insideBottom"?Dt({x:u+f/2,y:c+p-v,textAnchor:"middle",verticalAnchor:x},D):o==="insideTopLeft"?Dt({x:u+S,y:c+v,textAnchor:P,verticalAnchor:w},D):o==="insideTopRight"?Dt({x:u+f-S,y:c+v,textAnchor:C,verticalAnchor:w},D):o==="insideBottomLeft"?Dt({x:u+S,y:c+p-v,textAnchor:P,verticalAnchor:x},D):o==="insideBottomRight"?Dt({x:u+f-S,y:c+p-v,textAnchor:C,verticalAnchor:x},D):el(o)&&(fe(o.x)||Uo(o.x))&&(fe(o.y)||Uo(o.y))?Dt({x:u+un(o.x,f),y:c+un(o.y,p),textAnchor:"end",verticalAnchor:"end"},D):Dt({x:u+f/2,y:c+p/2,textAnchor:"middle",verticalAnchor:"middle"},D)},Hfe=function(e){return"cx"in e&&fe(e.cx)};function jt(t){var e=t.offset,n=e===void 0?5:e,r=Ife(t,Mfe),i=Dt({offset:n},r),o=i.viewBox,s=i.position,u=i.value,c=i.children,f=i.content,p=i.className,y=p===void 0?"":p,v=i.textBreakAll;if(!o||ke(u)&&ke(c)&&!k.isValidElement(f)&&!Ce(f))return null;if(k.isValidElement(f))return k.cloneElement(f,i);var x;if(Ce(f)){if(x=k.createElement(f,i),k.isValidElement(x))return x}else x=Bfe(i);var w=Hfe(o),A=_e(i,!0);if(w&&(s==="insideStart"||s==="insideEnd"||s==="end"))return Vfe(i,x,A);var S=w?jfe(i):Ffe(i);return j.createElement(Yo,lc({className:De("recharts-label",y)},A,S,{breakAll:v}),x)}jt.displayName="Label";var XV=function(e){var n=e.cx,r=e.cy,i=e.angle,o=e.startAngle,s=e.endAngle,u=e.r,c=e.radius,f=e.innerRadius,p=e.outerRadius,y=e.x,v=e.y,x=e.top,w=e.left,A=e.width,S=e.height,C=e.clockWise,P=e.labelViewBox;if(P)return P;if(fe(A)&&fe(S)){if(fe(y)&&fe(v))return{x:y,y:v,width:A,height:S};if(fe(x)&&fe(w))return{x,y:w,width:A,height:S}}return fe(y)&&fe(v)?{x:y,y:v,width:0,height:0}:fe(n)&&fe(r)?{cx:n,cy:r,startAngle:o||i||0,endAngle:s||i||0,innerRadius:f||0,outerRadius:p||c||u||0,clockWise:C}:e.viewBox?e.viewBox:{}},Gfe=function(e,n){return e?e===!0?j.createElement(jt,{key:"label-implicit",viewBox:n}):kt(e)?j.createElement(jt,{key:"label-implicit",viewBox:n,value:e}):k.isValidElement(e)?e.type===jt?k.cloneElement(e,{key:"label-implicit",viewBox:n}):j.createElement(jt,{key:"label-implicit",content:e,viewBox:n}):Ce(e)?j.createElement(jt,{key:"label-implicit",content:e,viewBox:n}):el(e)?j.createElement(jt,lc({viewBox:n},e,{key:"label-implicit"})):null:null},zfe=function(e,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&r&&!e.label)return null;var i=e.children,o=XV(e),s=Xn(i,jt).map(function(c,f){return k.cloneElement(c,{viewBox:n||o,key:"label-".concat(f)})});if(!r)return s;var u=Gfe(e.label,n||o);return[u].concat(Pfe(s))};jt.parseViewBox=XV;jt.renderCallByParent=zfe;var ox,F2;function Kfe(){if(F2)return ox;F2=1;function t(e){var n=e==null?0:e.length;return n?e[n-1]:void 0}return ox=t,ox}var Yfe=Kfe();const Wfe=$e(Yfe);function uc(t){"@babel/helpers - typeof";return uc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},uc(t)}var Xfe=["valueAccessor"],Jfe=["data","dataKey","clockWise","id","textBreakAll"];function Zfe(t){return nde(t)||tde(t)||ede(t)||Qfe()}function Qfe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 322In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ede(t,e){if(t){if(typeof t=="string")return aS(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return aS(t,e)}}function tde(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function nde(t){if(Array.isArray(t))return aS(t)}function aS(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Sh(){return Sh=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Sh.apply(this,arguments)}function H2(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function G2(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?H2(Object(n),!0).forEach(function(r){rde(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):H2(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function rde(t,e,n){return e=ide(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ide(t){var e=ode(t,"string");return uc(e)=="symbol"?e:e+""}function ode(t,e){if(uc(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(uc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function z2(t,e){if(t==null)return{};var n=ade(t,e),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)r=o[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function ade(t,e){if(t==null)return{};var n={};for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){if(e.indexOf(r)>=0)continue;n[r]=t[r]}return n}var sde=function(e){return Array.isArray(e.value)?Wfe(e.value):e.value};function Ji(t){var e=t.valueAccessor,n=e===void 0?sde:e,r=z2(t,Xfe),i=r.data,o=r.dataKey,s=r.clockWise,u=r.id,c=r.textBreakAll,f=z2(r,Jfe);return!i||!i.length?null:j.createElement(We,{className:"recharts-label-list"},i.map(function(p,y){var v=ke(o)?n(p,y):tn(p&&p.payload,o),x=ke(u)?{}:{id:"".concat(u,"-").concat(y)};return j.createElement(jt,Sh({},_e(p,!0),f,x,{parentViewBox:p.parentViewBox,value:v,textBreakAll:c,viewBox:jt.parseViewBox(ke(s)?p:G2(G2({},p),{},{clockWise:s})),key:"label-".concat(y),index:y}))}))}Ji.displayName="LabelList";function lde(t,e){return t?t===!0?j.createElement(Ji,{key:"labelList-implicit",data:e}):j.isValidElement(t)||Ce(t)?j.createElement(Ji,{key:"labelList-implicit",data:e,content:t}):el(t)?j.createElement(Ji,Sh({data:e},t,{key:"labelList-implicit"})):null:null}function ude(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!t||!t.children&&n&&!t.label)return null;var r=t.children,i=Xn(r,Ji).map(function(s,u){return k.cloneElement(s,{data:e,key:"labelList-".concat(u)})});if(!n)return i;var o=lde(t.label,e);return[o].concat(Zfe(i))}Ji.renderCallByParent=ude;function cc(t){"@babel/helpers - typeof";return cc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},cc(t)}function sS(){return sS=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},sS.apply(this,arguments)}function K2(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Y2(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?K2(Object(n),!0).forEach(function(r){cde(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):K2(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function cde(t,e,n){return e=fde(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function fde(t){var e=dde(t,"string");return cc(e)=="symbol"?e:e+""}function dde(t,e){if(cc(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(cc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var hde=function(e,n){var r=ln(n-e),i=Math.min(Math.abs(n-e),359.999);return r*i},xd=function(e){var n=e.cx,r=e.cy,i=e.radius,o=e.angle,s=e.sign,u=e.isExternal,c=e.cornerRadius,f=e.cornerIsExternal,p=c*(u?1:-1)+i,y=Math.asin(c/p)/Th,v=f?o:o+s*y,x=st(n,r,p,v),w=st(n,r,i,v),A=f?o-s*y:o,S=st(n,r,p*Math.cos(y*Th),A);return{center:x,circleTangency:w,lineTangency:S,theta:y}},JV=function(e){var n=e.cx,r=e.cy,i=e.innerRadius,o=e.outerRadius,s=e.startAngle,u=e.endAngle,c=hde(s,u),f=s+c,p=st(n,r,o,s),y=st(n,r,o,f),v="M ".concat(p.x,",").concat(p.y,` 323 A `).concat(o,",").concat(o,`,0, 324 `).concat(+(Math.abs(c)>180),",").concat(+(s>f),`, 325 `).concat(y.x,",").concat(y.y,` 326 `);if(i>0){var x=st(n,r,i,s),w=st(n,r,i,f);v+="L ".concat(w.x,",").concat(w.y,` 327 A `).concat(i,",").concat(i,`,0, 328 `).concat(+(Math.abs(c)>180),",").concat(+(s<=f),`, 329 `).concat(x.x,",").concat(x.y," Z")}else v+="L ".concat(n,",").concat(r," Z");return v},pde=function(e){var n=e.cx,r=e.cy,i=e.innerRadius,o=e.outerRadius,s=e.cornerRadius,u=e.forceCornerRadius,c=e.cornerIsExternal,f=e.startAngle,p=e.endAngle,y=ln(p-f),v=xd({cx:n,cy:r,radius:o,angle:f,sign:y,cornerRadius:s,cornerIsExternal:c}),x=v.circleTangency,w=v.lineTangency,A=v.theta,S=xd({cx:n,cy:r,radius:o,angle:p,sign:-y,cornerRadius:s,cornerIsExternal:c}),C=S.circleTangency,P=S.lineTangency,M=S.theta,O=c?Math.abs(f-p):Math.abs(f-p)-A-M;if(O<0)return u?"M ".concat(w.x,",").concat(w.y,` 330 a`).concat(s,",").concat(s,",0,0,1,").concat(s*2,`,0 331 a`).concat(s,",").concat(s,",0,0,1,").concat(-s*2,`,0 332 `):JV({cx:n,cy:r,innerRadius:i,outerRadius:o,startAngle:f,endAngle:p});var E="M ".concat(w.x,",").concat(w.y,` 333 A`).concat(s,",").concat(s,",0,0,").concat(+(y<0),",").concat(x.x,",").concat(x.y,` 334 A`).concat(o,",").concat(o,",0,").concat(+(O>180),",").concat(+(y<0),",").concat(C.x,",").concat(C.y,` 335 A`).concat(s,",").concat(s,",0,0,").concat(+(y<0),",").concat(P.x,",").concat(P.y,` 336 `);if(i>0){var N=xd({cx:n,cy:r,radius:i,angle:f,sign:y,isExternal:!0,cornerRadius:s,cornerIsExternal:c}),D=N.circleTangency,L=N.lineTangency,U=N.theta,F=xd({cx:n,cy:r,radius:i,angle:p,sign:-y,isExternal:!0,cornerRadius:s,cornerIsExternal:c}),B=F.circleTangency,z=F.lineTangency,W=F.theta,ne=c?Math.abs(f-p):Math.abs(f-p)-U-W;if(ne<0&&s===0)return"".concat(E,"L").concat(n,",").concat(r,"Z");E+="L".concat(z.x,",").concat(z.y,` 337 A`).concat(s,",").concat(s,",0,0,").concat(+(y<0),",").concat(B.x,",").concat(B.y,` 338 A`).concat(i,",").concat(i,",0,").concat(+(ne>180),",").concat(+(y>0),",").concat(D.x,",").concat(D.y,` 339 A`).concat(s,",").concat(s,",0,0,").concat(+(y<0),",").concat(L.x,",").concat(L.y,"Z")}else E+="L".concat(n,",").concat(r,"Z");return E},mde={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},ZV=function(e){var n=Y2(Y2({},mde),e),r=n.cx,i=n.cy,o=n.innerRadius,s=n.outerRadius,u=n.cornerRadius,c=n.forceCornerRadius,f=n.cornerIsExternal,p=n.startAngle,y=n.endAngle,v=n.className;if(s<o||p===y)return null;var x=De("recharts-sector",v),w=s-o,A=un(u,w,0,!0),S;return A>0&&Math.abs(p-y)<360?S=pde({cx:r,cy:i,innerRadius:o,outerRadius:s,cornerRadius:Math.min(A,w/2),forceCornerRadius:c,cornerIsExternal:f,startAngle:p,endAngle:y}):S=JV({cx:r,cy:i,innerRadius:o,outerRadius:s,startAngle:p,endAngle:y}),j.createElement("path",sS({},_e(n,!0),{className:x,d:S,role:"img"}))};function fc(t){"@babel/helpers - typeof";return fc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},fc(t)}function lS(){return lS=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},lS.apply(this,arguments)}function W2(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function X2(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?W2(Object(n),!0).forEach(function(r){gde(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):W2(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function gde(t,e,n){return e=yde(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function yde(t){var e=vde(t,"string");return fc(e)=="symbol"?e:e+""}function vde(t,e){if(fc(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(fc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var J2={curveBasisClosed:qre,curveBasisOpen:Bre,curveBasis:Ure,curveBumpX:Are,curveBumpY:wre,curveLinearClosed:$re,curveLinear:cp,curveMonotoneX:Vre,curveMonotoneY:jre,curveNatural:Fre,curveStep:Hre,curveStepAfter:zre,curveStepBefore:Gre},Td=function(e){return e.x===+e.x&&e.y===+e.y},gu=function(e){return e.x},yu=function(e){return e.y},bde=function(e,n){if(Ce(e))return e;var r="curve".concat(lp(e));return(r==="curveMonotone"||r==="curveBump")&&n?J2["".concat(r).concat(n==="vertical"?"Y":"X")]:J2[r]||cp},xde=function(e){var n=e.type,r=n===void 0?"linear":n,i=e.points,o=i===void 0?[]:i,s=e.baseLine,u=e.layout,c=e.connectNulls,f=c===void 0?!1:c,p=bde(r,u),y=f?o.filter(function(A){return Td(A)}):o,v;if(Array.isArray(s)){var x=f?s.filter(function(A){return Td(A)}):s,w=y.map(function(A,S){return X2(X2({},A),{},{base:x[S]})});return u==="vertical"?v=dd().y(yu).x1(gu).x0(function(A){return A.base.x}):v=dd().x(gu).y1(yu).y0(function(A){return A.base.y}),v.defined(Td).curve(p),v(w)}return u==="vertical"&&fe(s)?v=dd().y(yu).x1(gu).x0(s):fe(s)?v=dd().x(gu).y1(yu).y0(s):v=XB().x(gu).y(yu),v.defined(Td).curve(p),v(y)},uS=function(e){var n=e.className,r=e.points,i=e.path,o=e.pathRef;if((!r||!r.length)&&!i)return null;var s=r&&r.length?xde(e):i;return k.createElement("path",lS({},_e(e,!1),Xd(e),{className:De("recharts-curve",n),d:s,ref:o}))},ax={exports:{}},sx,Z2;function Tde(){if(Z2)return sx;Z2=1;var t="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return sx=t,sx}var lx,Q2;function Sde(){if(Q2)return lx;Q2=1;var t=Tde();function e(){}function n(){}return n.resetWarningCache=e,lx=function(){function r(s,u,c,f,p,y){if(y!==t){var v=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw v.name="Invariant Violation",v}}r.isRequired=r;function i(){return r}var o={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:e};return o.PropTypes=o,o},lx}var ek;function Ade(){return ek||(ek=1,ax.exports=Sde()()),ax.exports}var wde=Ade();const ze=$e(wde);var _de=Object.getOwnPropertyNames,Cde=Object.getOwnPropertySymbols,Ede=Object.prototype.hasOwnProperty;function tk(t,e){return function(r,i,o){return t(r,i,o)&&e(r,i,o)}}function Sd(t){return function(n,r,i){if(!n||!r||typeof n!="object"||typeof r!="object")return t(n,r,i);var o=i.cache,s=o.get(n),u=o.get(r);if(s&&u)return s===r&&u===n;o.set(n,r),o.set(r,n);var c=t(n,r,i);return o.delete(n),o.delete(r),c}}function Mde(t){return t!=null?t[Symbol.toStringTag]:void 0}function nk(t){return _de(t).concat(Cde(t))}var Pde=Object.hasOwn||(function(t,e){return Ede.call(t,e)});function ra(t,e){return t===e||!t&&!e&&t!==t&&e!==e}var Rde="__v",Nde="__o",Ode="_owner",rk=Object.getOwnPropertyDescriptor,ik=Object.keys;function Dde(t,e,n){var r=t.length;if(e.length!==r)return!1;for(;r-- >0;)if(!n.equals(t[r],e[r],r,r,t,e,n))return!1;return!0}function Ide(t,e){return ra(t.getTime(),e.getTime())}function kde(t,e){return t.name===e.name&&t.message===e.message&&t.cause===e.cause&&t.stack===e.stack}function Lde(t,e){return t===e}function ok(t,e,n){var r=t.size;if(r!==e.size)return!1;if(!r)return!0;for(var i=new Array(r),o=t.entries(),s,u,c=0;(s=o.next())&&!s.done;){for(var f=e.entries(),p=!1,y=0;(u=f.next())&&!u.done;){if(i[y]){y++;continue}var v=s.value,x=u.value;if(n.equals(v[0],x[0],c,y,t,e,n)&&n.equals(v[1],x[1],v[0],x[0],t,e,n)){p=i[y]=!0;break}y++}if(!p)return!1;c++}return!0}var Ude=ra;function qde(t,e,n){var r=ik(t),i=r.length;if(ik(e).length!==i)return!1;for(;i-- >0;)if(!QV(t,e,n,r[i]))return!1;return!0}function vu(t,e,n){var r=nk(t),i=r.length;if(nk(e).length!==i)return!1;for(var o,s,u;i-- >0;)if(o=r[i],!QV(t,e,n,o)||(s=rk(t,o),u=rk(e,o),(s||u)&&(!s||!u||s.configurable!==u.configurable||s.enumerable!==u.enumerable||s.writable!==u.writable)))return!1;return!0}function Bde(t,e){return ra(t.valueOf(),e.valueOf())}function $de(t,e){return t.source===e.source&&t.flags===e.flags}function ak(t,e,n){var r=t.size;if(r!==e.size)return!1;if(!r)return!0;for(var i=new Array(r),o=t.values(),s,u;(s=o.next())&&!s.done;){for(var c=e.values(),f=!1,p=0;(u=c.next())&&!u.done;){if(!i[p]&&n.equals(s.value,u.value,s.value,u.value,t,e,n)){f=i[p]=!0;break}p++}if(!f)return!1}return!0}function Vde(t,e){var n=t.length;if(e.length!==n)return!1;for(;n-- >0;)if(t[n]!==e[n])return!1;return!0}
339function jde(t,e){return t.hostname===e.hostname&&t.pathname===e.pathname&&t.protocol===e.protocol&&t.port===e.port&&t.hash===e.hash&&t.username===e.username&&t.password===e.password}function QV(t,e,n,r){return(r===Ode||r===Nde||r===Rde)&&(t.$$typeof||e.$$typeof)?!0:Pde(e,r)&&n.equals(t[r],e[r],r,r,t,e,n)}var Fde="[object Arguments]",Hde="[object Boolean]",Gde="[object Date]",zde="[object Error]",Kde="[object Map]",Yde="[object Number]",Wde="[object Object]",Xde="[object RegExp]",Jde="[object Set]",Zde="[object String]",Qde="[object URL]",ehe=Array.isArray,sk=typeof ArrayBuffer=="function"&&ArrayBuffer.isView?ArrayBuffer.isView:null,lk=Object.assign,the=Object.prototype.toString.call.bind(Object.prototype.toString);function nhe(t){var e=t.areArraysEqual,n=t.areDatesEqual,r=t.areErrorsEqual,i=t.areFunctionsEqual,o=t.areMapsEqual,s=t.areNumbersEqual,u=t.areObjectsEqual,c=t.arePrimitiveWrappersEqual,f=t.areRegExpsEqual,p=t.areSetsEqual,y=t.areTypedArraysEqual,v=t.areUrlsEqual,x=t.unknownTagComparators;return function(A,S,C){if(A===S)return!0;if(A==null||S==null)return!1;var P=typeof A;if(P!==typeof S)return!1;if(P!=="object")return P==="number"?s(A,S,C):P==="function"?i(A,S,C):!1;var M=A.constructor;if(M!==S.constructor)return!1;if(M===Object)return u(A,S,C);if(ehe(A))return e(A,S,C);if(sk!=null&&sk(A))return y(A,S,C);if(M===Date)return n(A,S,C);if(M===RegExp)return f(A,S,C);if(M===Map)return o(A,S,C);if(M===Set)return p(A,S,C);var O=the(A);if(O===Gde)return n(A,S,C);if(O===Xde)return f(A,S,C);if(O===Kde)return o(A,S,C);if(O===Jde)return p(A,S,C);if(O===Wde)return typeof A.then!="function"&&typeof S.then!="function"&&u(A,S,C);if(O===Qde)return v(A,S,C);if(O===zde)return r(A,S,C);if(O===Fde)return u(A,S,C);if(O===Hde||O===Yde||O===Zde)return c(A,S,C);if(x){var E=x[O];if(!E){var N=Mde(A);N&&(E=x[N])}if(E)return E(A,S,C)}return!1}}function rhe(t){var e=t.circular,n=t.createCustomConfig,r=t.strict,i={areArraysEqual:r?vu:Dde,areDatesEqual:Ide,areErrorsEqual:kde,areFunctionsEqual:Lde,areMapsEqual:r?tk(ok,vu):ok,areNumbersEqual:Ude,areObjectsEqual:r?vu:qde,arePrimitiveWrappersEqual:Bde,areRegExpsEqual:$de,areSetsEqual:r?tk(ak,vu):ak,areTypedArraysEqual:r?vu:Vde,areUrlsEqual:jde,unknownTagComparators:void 0};if(n&&(i=lk({},i,n(i))),e){var o=Sd(i.areArraysEqual),s=Sd(i.areMapsEqual),u=Sd(i.areObjectsEqual),c=Sd(i.areSetsEqual);i=lk({},i,{areArraysEqual:o,areMapsEqual:s,areObjectsEqual:u,areSetsEqual:c})}return i}function ihe(t){return function(e,n,r,i,o,s,u){return t(e,n,u)}}function ohe(t){var e=t.circular,n=t.comparator,r=t.createState,i=t.equals,o=t.strict;if(r)return function(c,f){var p=r(),y=p.cache,v=y===void 0?e?new WeakMap:void 0:y,x=p.meta;return n(c,f,{cache:v,equals:i,meta:x,strict:o})};if(e)return function(c,f){return n(c,f,{cache:new WeakMap,equals:i,meta:void 0,strict:o})};var s={cache:void 0,equals:i,meta:void 0,strict:o};return function(c,f){return n(c,f,s)}}var ahe=io();io({strict:!0});io({circular:!0});io({circular:!0,strict:!0});io({createInternalComparator:function(){return ra}});io({strict:!0,createInternalComparator:function(){return ra}});io({circular:!0,createInternalComparator:function(){return ra}});io({circular:!0,createInternalComparator:function(){return ra},strict:!0});function io(t){t===void 0&&(t={});var e=t.circular,n=e===void 0?!1:e,r=t.createInternalComparator,i=t.createState,o=t.strict,s=o===void 0?!1:o,u=rhe(t),c=nhe(u),f=r?r(c):ihe(c);return ohe({circular:n,comparator:c,createState:i,equals:f,strict:s})}function she(t){typeof requestAnimationFrame<"u"&&requestAnimationFrame(t)}function uk(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=-1,r=function i(o){n<0&&(n=o),o-n>e?(t(o),n=-1):she(i)};requestAnimationFrame(r)}function cS(t){"@babel/helpers - typeof";return cS=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},cS(t)}function lhe(t){return dhe(t)||fhe(t)||che(t)||uhe()}
vendor: 60,522 bytes, lines 339-358
339function uhe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 340In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function che(t,e){if(t){if(typeof t=="string")return ck(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ck(t,e)}}function ck(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function fhe(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function dhe(t){if(Array.isArray(t))return t}function hhe(){var t={},e=function(){return null},n=!1,r=function i(o){if(!n){if(Array.isArray(o)){if(!o.length)return;var s=o,u=lhe(s),c=u[0],f=u.slice(1);if(typeof c=="number"){uk(i.bind(null,f),c);return}i(c),uk(i.bind(null,f));return}cS(o)==="object"&&(t=o,e(t)),typeof o=="function"&&o()}};return{stop:function(){n=!0},start:function(o){n=!1,r(o)},subscribe:function(o){return e=o,function(){e=function(){return null}}}}}function dc(t){"@babel/helpers - typeof";return dc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},dc(t)}function fk(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function dk(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?fk(Object(n),!0).forEach(function(r){e3(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):fk(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function e3(t,e,n){return e=phe(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function phe(t){var e=mhe(t,"string");return dc(e)==="symbol"?e:String(e)}function mhe(t,e){if(dc(t)!=="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(dc(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var ghe=function(e,n){return[Object.keys(e),Object.keys(n)].reduce(function(r,i){return r.filter(function(o){return i.includes(o)})})},yhe=function(e){return e},vhe=function(e){return e.replace(/([A-Z])/g,function(n){return"-".concat(n.toLowerCase())})},Iu=function(e,n){return Object.keys(n).reduce(function(r,i){return dk(dk({},r),{},e3({},i,e(i,n[i])))},{})},hk=function(e,n,r){return e.map(function(i){return"".concat(vhe(i)," ").concat(n,"ms ").concat(r)}).join(",")};function bhe(t,e){return She(t)||The(t,e)||t3(t,e)||xhe()}function xhe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 341In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function The(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,o,s,u=[],c=!0,f=!1;try{if(o=(n=n.call(t)).next,e!==0)for(;!(c=(r=o.call(n)).done)&&(u.push(r.value),u.length!==e);c=!0);}catch(p){f=!0,i=p}finally{try{if(!c&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(f)throw i}}return u}}function She(t){if(Array.isArray(t))return t}function Ahe(t){return Che(t)||_he(t)||t3(t)||whe()}function whe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 342In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function t3(t,e){if(t){if(typeof t=="string")return fS(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return fS(t,e)}}function _he(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Che(t){if(Array.isArray(t))return fS(t)}function fS(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var Ah=1e-4,n3=function(e,n){return[0,3*e,3*n-6*e,3*e-3*n+1]},r3=function(e,n){return e.map(function(r,i){return r*Math.pow(n,i)}).reduce(function(r,i){return r+i})},pk=function(e,n){return function(r){var i=n3(e,n);return r3(i,r)}},Ehe=function(e,n){return function(r){var i=n3(e,n),o=[].concat(Ahe(i.map(function(s,u){return s*u}).slice(1)),[0]);return r3(o,r)}},mk=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var i=n[0],o=n[1],s=n[2],u=n[3];if(n.length===1)switch(n[0]){case"linear":i=0,o=0,s=1,u=1;break;case"ease":i=.25,o=.1,s=.25,u=1;break;case"ease-in":i=.42,o=0,s=1,u=1;break;case"ease-out":i=.42,o=0,s=.58,u=1;break;case"ease-in-out":i=0,o=0,s=.58,u=1;break;default:{var c=n[0].split("(");if(c[0]==="cubic-bezier"&&c[1].split(")")[0].split(",").length===4){var f=c[1].split(")")[0].split(",").map(function(S){return parseFloat(S)}),p=bhe(f,4);i=p[0],o=p[1],s=p[2],u=p[3]}}}var y=pk(i,s),v=pk(o,u),x=Ehe(i,s),w=function(C){return C>1?1:C<0?0:C},A=function(C){for(var P=C>1?1:C,M=P,O=0;O<8;++O){var E=y(M)-P,N=x(M);if(Math.abs(E-P)<Ah||N<Ah)return v(M);M=w(M-E/N)}return v(M)};return A.isStepper=!1,A},Mhe=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=e.stiff,r=n===void 0?100:n,i=e.damping,o=i===void 0?8:i,s=e.dt,u=s===void 0?17:s,c=function(p,y,v){var x=-(p-y)*r,w=v*o,A=v+(x-w)*u/1e3,S=v*u/1e3+p;return Math.abs(S-y)<Ah&&Math.abs(A)<Ah?[y,0]:[S,A]};return c.isStepper=!0,c.dt=u,c},Phe=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var i=n[0];if(typeof i=="string")switch(i){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return mk(i);case"spring":return Mhe();default:if(i.split("(")[0]==="cubic-bezier")return mk(i)}return typeof i=="function"?i:null};function hc(t){"@babel/helpers - typeof";return hc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},hc(t)}function gk(t){return Ohe(t)||Nhe(t)||i3(t)||Rhe()}function Rhe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 343In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Nhe(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Ohe(t){if(Array.isArray(t))return hS(t)}function yk(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Yt(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?yk(Object(n),!0).forEach(function(r){dS(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):yk(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function dS(t,e,n){return e=Dhe(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Dhe(t){var e=Ihe(t,"string");return hc(e)==="symbol"?e:String(e)}function Ihe(t,e){if(hc(t)!=="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(hc(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function khe(t,e){return qhe(t)||Uhe(t,e)||i3(t,e)||Lhe()}function Lhe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 344In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function i3(t,e){if(t){if(typeof t=="string")return hS(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return hS(t,e)}}function hS(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Uhe(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,o,s,u=[],c=!0,f=!1;try{if(o=(n=n.call(t)).next,e!==0)for(;!(c=(r=o.call(n)).done)&&(u.push(r.value),u.length!==e);c=!0);}catch(p){f=!0,i=p}finally{try{if(!c&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(f)throw i}}return u}}function qhe(t){if(Array.isArray(t))return t}var wh=function(e,n,r){return e+(n-e)*r},pS=function(e){var n=e.from,r=e.to;return n!==r},Bhe=function t(e,n,r){var i=Iu(function(o,s){if(pS(s)){var u=e(s.from,s.to,s.velocity),c=khe(u,2),f=c[0],p=c[1];return Yt(Yt({},s),{},{from:f,velocity:p})}return s},n);return r<1?Iu(function(o,s){return pS(s)?Yt(Yt({},s),{},{velocity:wh(s.velocity,i[o].velocity,r),from:wh(s.from,i[o].from,r)}):s},n):t(e,i,r-1)};const $he=(function(t,e,n,r,i){var o=ghe(t,e),s=o.reduce(function(S,C){return Yt(Yt({},S),{},dS({},C,[t[C],e[C]]))},{}),u=o.reduce(function(S,C){return Yt(Yt({},S),{},dS({},C,{from:t[C],velocity:0,to:e[C]}))},{}),c=-1,f,p,y=function(){return null},v=function(){return Iu(function(C,P){return P.from},u)},x=function(){return!Object.values(u).filter(pS).length},w=function(C){f||(f=C);var P=C-f,M=P/n.dt;u=Bhe(n,u,M),i(Yt(Yt(Yt({},t),e),v())),f=C,x()||(c=requestAnimationFrame(y))},A=function(C){p||(p=C);var P=(C-p)/r,M=Iu(function(E,N){return wh.apply(void 0,gk(N).concat([n(P)]))},s);if(i(Yt(Yt(Yt({},t),e),M)),P<1)c=requestAnimationFrame(y);else{var O=Iu(function(E,N){return wh.apply(void 0,gk(N).concat([n(1)]))},s);i(Yt(Yt(Yt({},t),e),O))}};return y=n.isStepper?w:A,function(){return requestAnimationFrame(y),function(){cancelAnimationFrame(c)}}});function Ms(t){"@babel/helpers - typeof";return Ms=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ms(t)}var Vhe=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function jhe(t,e){if(t==null)return{};var n=Fhe(t,e),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)r=o[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function Fhe(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o<r.length;o++)i=r[o],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}function ux(t){return Khe(t)||zhe(t)||Ghe(t)||Hhe()}function Hhe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 345In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ghe(t,e){if(t){if(typeof t=="string")return mS(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return mS(t,e)}}function zhe(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Khe(t){if(Array.isArray(t))return mS(t)}function mS(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function vk(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function ir(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?vk(Object(n),!0).forEach(function(r){wu(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):vk(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function wu(t,e,n){return e=o3(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Yhe(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Whe(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,o3(r.key),r)}}function Xhe(t,e,n){return e&&Whe(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function o3(t){var e=Jhe(t,"string");return Ms(e)==="symbol"?e:String(e)}function Jhe(t,e){if(Ms(t)!=="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(Ms(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Zhe(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&gS(t,e)}function gS(t,e){return gS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},gS(t,e)}function Qhe(t){var e=epe();return function(){var r=_h(t),i;if(e){var o=_h(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return yS(this,i)}}function yS(t,e){if(e&&(Ms(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return vS(t)}function vS(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function epe(){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 _h(t){return _h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},_h(t)}var ci=(function(t){Zhe(n,t);var e=Qhe(n);function n(r,i){var o;Yhe(this,n),o=e.call(this,r,i);var s=o.props,u=s.isActive,c=s.attributeName,f=s.from,p=s.to,y=s.steps,v=s.children,x=s.duration;if(o.handleStyleChange=o.handleStyleChange.bind(vS(o)),o.changeStyle=o.changeStyle.bind(vS(o)),!u||x<=0)return o.state={style:{}},typeof v=="function"&&(o.state={style:p}),yS(o);if(y&&y.length)o.state={style:y[0].style};else if(f){if(typeof v=="function")return o.state={style:f},yS(o);o.state={style:c?wu({},c,f):f}}else o.state={style:{}};return o}return Xhe(n,[{key:"componentDidMount",value:function(){var i=this.props,o=i.isActive,s=i.canBegin;this.mounted=!0,!(!o||!s)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(i){var o=this.props,s=o.isActive,u=o.canBegin,c=o.attributeName,f=o.shouldReAnimate,p=o.to,y=o.from,v=this.state.style;if(u){if(!s){var x={style:c?wu({},c,p):p};this.state&&v&&(c&&v[c]!==p||!c&&v!==p)&&this.setState(x);return}if(!(ahe(i.to,p)&&i.canBegin&&i.isActive)){var w=!i.canBegin||!i.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var A=w||f?y:i.to;if(this.state&&v){var S={style:c?wu({},c,A):A};(c&&v[c]!==A||!c&&v!==A)&&this.setState(S)}this.runAnimation(ir(ir({},this.props),{},{from:A,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var i=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),i&&i()}},{key:"handleStyleChange",value:function(i){this.changeStyle(i)}},{key:"changeStyle",value:function(i){this.mounted&&this.setState({style:i})}},{key:"runJSAnimation",value:function(i){var o=this,s=i.from,u=i.to,c=i.duration,f=i.easing,p=i.begin,y=i.onAnimationEnd,v=i.onAnimationStart,x=$he(s,u,Phe(f),c,this.changeStyle),w=function(){o.stopJSAnimation=x()};this.manager.start([v,p,w,c,y])}},{key:"runStepAnimation",value:function(i){var o=this,s=i.steps,u=i.begin,c=i.onAnimationStart,f=s[0],p=f.style,y=f.duration,v=y===void 0?0:y,x=function(A,S,C){if(C===0)return A;var P=S.duration,M=S.easing,O=M===void 0?"ease":M,E=S.style,N=S.properties,D=S.onAnimationEnd,L=C>0?s[C-1]:S,U=N||Object.keys(E);if(typeof O=="function"||O==="spring")return[].concat(ux(A),[o.runJSAnimation.bind(o,{from:L.style,to:E,duration:P,easing:O}),P]);var F=hk(U,P,O),B=ir(ir(ir({},L.style),E),{},{transition:F});return[].concat(ux(A),[B,P,D]).filter(yhe)};return this.manager.start([c].concat(ux(s.reduce(x,[p,Math.max(v,u)])),[i.onAnimationEnd]))}},{key:"runAnimation",value:function(i){this.manager||(this.manager=hhe());var o=i.begin,s=i.duration,u=i.attributeName,c=i.to,f=i.easing,p=i.onAnimationStart,y=i.onAnimationEnd,v=i.steps,x=i.children,w=this.manager;if(this.unSubscribe=w.subscribe(this.handleStyleChange),typeof f=="function"||typeof x=="function"||f==="spring"){this.runJSAnimation(i);return}if(v.length>1){this.runStepAnimation(i);return}var A=u?wu({},u,c):c,S=hk(Object.keys(A),s,f);w.start([p,o,ir(ir({},A),{},{transition:S}),s,y])}},{key:"render",value:function(){var i=this.props,o=i.children;i.begin;var s=i.duration;i.attributeName,i.easing;var u=i.isActive;i.steps,i.from,i.to,i.canBegin,i.onAnimationEnd,i.shouldReAnimate,i.onAnimationReStart;var c=jhe(i,Vhe),f=k.Children.count(o),p=this.state.style;if(typeof o=="function")return o(p);if(!u||f===0||s<=0)return o;var y=function(x){var w=x.props,A=w.style,S=A===void 0?{}:A,C=w.className,P=k.cloneElement(x,ir(ir({},c),{},{style:ir(ir({},S),p),className:C}));return P};return f===1?y(k.Children.only(o)):j.createElement("div",null,k.Children.map(o,function(v){return y(v)}))}}]),n})(k.PureComponent);ci.displayName="Animate";ci.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};ci.propTypes={from:ze.oneOfType([ze.object,ze.string]),to:ze.oneOfType([ze.object,ze.string]),attributeName:ze.string,duration:ze.number,begin:ze.number,easing:ze.oneOfType([ze.string,ze.func]),steps:ze.arrayOf(ze.shape({duration:ze.number.isRequired,style:ze.object.isRequired,easing:ze.oneOfType([ze.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),ze.func]),properties:ze.arrayOf("string"),onAnimationEnd:ze.func})),children:ze.oneOfType([ze.node,ze.func]),isActive:ze.bool,canBegin:ze.bool,onAnimationEnd:ze.func,shouldReAnimate:ze.bool,onAnimationStart:ze.func,onAnimationReStart:ze.func};function pc(t){"@babel/helpers - typeof";return pc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},pc(t)}function Ch(){return Ch=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Ch.apply(this,arguments)}function tpe(t,e){return ope(t)||ipe(t,e)||rpe(t,e)||npe()}function npe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 346In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function rpe(t,e){if(t){if(typeof t=="string")return bk(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return bk(t,e)}}function bk(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function ipe(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,o,s,u=[],c=!0,f=!1;try{if(o=(n=n.call(t)).next,e!==0)for(;!(c=(r=o.call(n)).done)&&(u.push(r.value),u.length!==e);c=!0);}catch(p){f=!0,i=p}finally{try{if(!c&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(f)throw i}}return u}}function ope(t){if(Array.isArray(t))return t}function xk(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Tk(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?xk(Object(n),!0).forEach(function(r){ape(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):xk(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function ape(t,e,n){return e=spe(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function spe(t){var e=lpe(t,"string");return pc(e)=="symbol"?e:e+""}function lpe(t,e){if(pc(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(pc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Sk=function(e,n,r,i,o){var s=Math.min(Math.abs(r)/2,Math.abs(i)/2),u=i>=0?1:-1,c=r>=0?1:-1,f=i>=0&&r>=0||i<0&&r<0?1:0,p;if(s>0&&o instanceof Array){for(var y=[0,0,0,0],v=0,x=4;v<x;v++)y[v]=o[v]>s?s:o[v];p="M".concat(e,",").concat(n+u*y[0]),y[0]>0&&(p+="A ".concat(y[0],",").concat(y[0],",0,0,").concat(f,",").concat(e+c*y[0],",").concat(n)),p+="L ".concat(e+r-c*y[1],",").concat(n),y[1]>0&&(p+="A ".concat(y[1],",").concat(y[1],",0,0,").concat(f,`, 347 `).concat(e+r,",").concat(n+u*y[1])),p+="L ".concat(e+r,",").concat(n+i-u*y[2]),y[2]>0&&(p+="A ".concat(y[2],",").concat(y[2],",0,0,").concat(f,`, 348 `).concat(e+r-c*y[2],",").concat(n+i)),p+="L ".concat(e+c*y[3],",").concat(n+i),y[3]>0&&(p+="A ".concat(y[3],",").concat(y[3],",0,0,").concat(f,`, 349 `).concat(e,",").concat(n+i-u*y[3])),p+="Z"}else if(s>0&&o===+o&&o>0){var w=Math.min(s,o);p="M ".concat(e,",").concat(n+u*w,` 350 A `).concat(w,",").concat(w,",0,0,").concat(f,",").concat(e+c*w,",").concat(n,` 351 L `).concat(e+r-c*w,",").concat(n,` 352 A `).concat(w,",").concat(w,",0,0,").concat(f,",").concat(e+r,",").concat(n+u*w,` 353 L `).concat(e+r,",").concat(n+i-u*w,` 354 A `).concat(w,",").concat(w,",0,0,").concat(f,",").concat(e+r-c*w,",").concat(n+i,` 355 L `).concat(e+c*w,",").concat(n+i,` 356 A `).concat(w,",").concat(w,",0,0,").concat(f,",").concat(e,",").concat(n+i-u*w," Z")}else p="M ".concat(e,",").concat(n," h ").concat(r," v ").concat(i," h ").concat(-r," Z");return p},upe=function(e,n){if(!e||!n)return!1;var r=e.x,i=e.y,o=n.x,s=n.y,u=n.width,c=n.height;if(Math.abs(u)>0&&Math.abs(c)>0){var f=Math.min(o,o+u),p=Math.max(o,o+u),y=Math.min(s,s+c),v=Math.max(s,s+c);return r>=f&&r<=p&&i>=y&&i<=v}return!1},cpe={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},Ow=function(e){var n=Tk(Tk({},cpe),e),r=k.useRef(),i=k.useState(-1),o=tpe(i,2),s=o[0],u=o[1];k.useEffect(function(){if(r.current&&r.current.getTotalLength)try{var O=r.current.getTotalLength();O&&u(O)}catch{}},[]);var c=n.x,f=n.y,p=n.width,y=n.height,v=n.radius,x=n.className,w=n.animationEasing,A=n.animationDuration,S=n.animationBegin,C=n.isAnimationActive,P=n.isUpdateAnimationActive;if(c!==+c||f!==+f||p!==+p||y!==+y||p===0||y===0)return null;var M=De("recharts-rectangle",x);return P?j.createElement(ci,{canBegin:s>0,from:{width:p,height:y,x:c,y:f},to:{width:p,height:y,x:c,y:f},duration:A,animationEasing:w,isActive:P},function(O){var E=O.width,N=O.height,D=O.x,L=O.y;return j.createElement(ci,{canBegin:s>0,from:"0px ".concat(s===-1?1:s,"px"),to:"".concat(s,"px 0px"),attributeName:"strokeDasharray",begin:S,duration:A,isActive:C,easing:w},j.createElement("path",Ch({},_e(n,!0),{className:M,d:Sk(D,L,E,N,v),ref:r})))}):j.createElement("path",Ch({},_e(n,!0),{className:M,d:Sk(c,f,p,y,v)}))},fpe=["points","className","baseLinePoints","connectNulls"];function is(){return is=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},is.apply(this,arguments)}function dpe(t,e){if(t==null)return{};var n=hpe(t,e),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)r=o[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function hpe(t,e){if(t==null)return{};var n={};for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){if(e.indexOf(r)>=0)continue;n[r]=t[r]}return n}function Ak(t){return ype(t)||gpe(t)||mpe(t)||ppe()}function ppe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 357In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function mpe(t,e){if(t){if(typeof t=="string")return bS(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return bS(t,e)}}function gpe(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function ype(t){if(Array.isArray(t))return bS(t)}function bS(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var wk=function(e){return e&&e.x===+e.x&&e.y===+e.y},vpe=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=[[]];return e.forEach(function(r){wk(r)?n[n.length-1].push(r):n[n.length-1].length>0&&n.push([])}),wk(e[0])&&n[n.length-1].push(e[0]),n[n.length-1].length<=0&&(n=n.slice(0,-1)),n},ku=function(e,n){var r=vpe(e);n&&(r=[r.reduce(function(o,s){return[].concat(Ak(o),Ak(s))},[])]);var i=r.map(function(o){return o.reduce(function(s,u,c){return"".concat(s).concat(c===0?"M":"L").concat(u.x,",").concat(u.y)},"")}).join("");return r.length===1?"".concat(i,"Z"):i},bpe=function(e,n,r){var i=ku(e,r);return"".concat(i.slice(-1)==="Z"?i.slice(0,-1):i,"L").concat(ku(n.reverse(),r).slice(1))},xpe=function(e){var n=e.points,r=e.className,i=e.baseLinePoints,o=e.connectNulls,s=dpe(e,fpe);if(!n||!n.length)return null;var u=De("recharts-polygon",r);if(i&&i.length){var c=s.stroke&&s.stroke!=="none",f=bpe(n,i,o);return j.createElement("g",{className:u},j.createElement("path",is({},_e(s,!0),{fill:f.slice(-1)==="Z"?s.fill:"none",stroke:"none",d:f})),c?j.createElement("path",is({},_e(s,!0),{fill:"none",d:ku(n,o)})):null,c?j.createElement("path",is({},_e(s,!0),{fill:"none",d:ku(i,o)})):null)}var p=ku(n,o);return j.createElement("path",is({},_e(s,!0),{fill:p.slice(-1)==="Z"?s.fill:"none",className:u,d:p}))};function xS(){return xS=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},xS.apply(this,arguments)}var Dw=function(e){var n=e.cx,r=e.cy,i=e.r,o=e.className,s=De("recharts-dot",o);return n===+n&&r===+r&&i===+i?k.createElement("circle",xS({},_e(e,!1),Xd(e),{className:s,cx:n,cy:r,r:i})):null};function mc(t){"@babel/helpers - typeof";return mc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},mc(t)}var Tpe=["x","y","top","left","width","height","className"];function TS(){return TS=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},TS.apply(this,arguments)}function _k(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Spe(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?_k(Object(n),!0).forEach(function(r){Ape(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):_k(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Ape(t,e,n){return e=wpe(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function wpe(t){var e=_pe(t,"string");return mc(e)=="symbol"?e:e+""}function _pe(t,e){if(mc(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(mc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Cpe(t,e){if(t==null)return{};var n=Epe(t,e),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)r=o[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function Epe(t,e){if(t==null)return{};var n={};for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){if(e.indexOf(r)>=0)continue;n[r]=t[r]}return n}var Mpe=function(e,n,r,i,o,s){return"M".concat(e,",").concat(o,"v").concat(i,"M").concat(s,",").concat(n,"h").concat(r)},Ppe=function(e){var n=e.x,r=n===void 0?0:n,i=e.y,o=i===void 0?0:i,s=e.top,u=s===void 0?0:s,c=e.left,f=c===void 0?0:c,p=e.width,y=p===void 0?0:p,v=e.height,x=v===void 0?0:v,w=e.className,A=Cpe(e,Tpe),S=Spe({x:r,y:o,top:u,left:f,width:y,height:x},A);return!fe(r)||!fe(o)||!fe(y)||!fe(x)||!fe(u)||!fe(f)?null:j.createElement("path",TS({},_e(S,!0),{className:De("recharts-cross",w),d:Mpe(r,o,y,x,u,f)}))},cx,Ck;function Rpe(){if(Ck)return cx;Ck=1;var t=Sp(),e=xV(),n=Or();function r(i,o){return i&&i.length?t(i,n(o,2),e):void 0}return cx=r,cx}var Npe=Rpe();const Ope=$e(Npe);var fx,Ek;function Dpe(){if(Ek)return fx;Ek=1;var t=Sp(),e=Or(),n=TV();function r(i,o){return i&&i.length?t(i,e(o,2),n):void 0}return fx=r,fx}var Ipe=Dpe();const kpe=$e(Ipe);var Lpe=["cx","cy","angle","ticks","axisLine"],Upe=["ticks","tick","angle","tickFormatter","stroke"];function Ps(t){"@babel/helpers - typeof";return Ps=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ps(t)}function Lu(){return Lu=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Lu.apply(this,arguments)}function Mk(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Po(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Mk(Object(n),!0).forEach(function(r){Pp(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Mk(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Pk(t,e){if(t==null)return{};var n=qpe(t,e),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)r=o[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function qpe(t,e){if(t==null)return{};var n={};for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){if(e.indexOf(r)>=0)continue;n[r]=t[r]}return n}function Bpe(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Rk(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,s3(r.key),r)}}function $pe(t,e,n){return e&&Rk(t.prototype,e),n&&Rk(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function Vpe(t,e,n){return e=Eh(e),jpe(t,a3()?Reflect.construct(e,n||[],Eh(t).constructor):e.apply(t,n))}function jpe(t,e){if(e&&(Ps(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Fpe(t)}function Fpe(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function a3(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(a3=function(){return!!t})()}function Eh(t){return Eh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Eh(t)}function Hpe(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&SS(t,e)}function SS(t,e){return SS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},SS(t,e)}function Pp(t,e,n){return e=s3(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function s3(t){var e=Gpe(t,"string");return Ps(e)=="symbol"?e:e+""}function Gpe(t,e){if(Ps(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(Ps(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var Rp=(function(t){function e(){return Bpe(this,e),Vpe(this,e,arguments)}return Hpe(e,t),$pe(e,[{key:"getTickValueCoord",value:function(r){var i=r.coordinate,o=this.props,s=o.angle,u=o.cx,c=o.cy;return st(u,c,i,s)}},{key:"getTickTextAnchor",value:function(){var r=this.props.orientation,i;switch(r){case"left":i="end";break;case"right":i="start";break;default:i="middle";break}return i}},{key:"getViewBox",value:function(){var r=this.props,i=r.cx,o=r.cy,s=r.angle,u=r.ticks,c=Ope(u,function(p){return p.coordinate||0}),f=kpe(u,function(p){return p.coordinate||0});return{cx:i,cy:o,startAngle:s,endAngle:s,innerRadius:f.coordinate||0,outerRadius:c.coordinate||0}}},{key:"renderAxisLine",value:function(){var r=this.props,i=r.cx,o=r.cy,s=r.angle,u=r.ticks,c=r.axisLine,f=Pk(r,Lpe),p=u.reduce(function(w,A){return[Math.min(w[0],A.coordinate),Math.max(w[1],A.coordinate)]},[1/0,-1/0]),y=st(i,o,p[0],s),v=st(i,o,p[1],s),x=Po(Po(Po({},_e(f,!1)),{},{fill:"none"},_e(c,!1)),{},{x1:y.x,y1:y.y,x2:v.x,y2:v.y});return j.createElement("line",Lu({className:"recharts-polar-radius-axis-line"},x))}},{key:"renderTicks",value:function(){var r=this,i=this.props,o=i.ticks,s=i.tick,u=i.angle,c=i.tickFormatter,f=i.stroke,p=Pk(i,Upe),y=this.getTickTextAnchor(),v=_e(p,!1),x=_e(s,!1),w=o.map(function(A,S){var C=r.getTickValueCoord(A),P=Po(Po(Po(Po({textAnchor:y,transform:"rotate(".concat(90-u,", ").concat(C.x,", ").concat(C.y,")")},v),{},{stroke:"none",fill:f},x),{},{index:S},C),{},{payload:A});return j.createElement(We,Lu({className:De("recharts-polar-radius-axis-tick",WV(s)),key:"tick-".concat(A.coordinate)},Ko(r.props,A,S)),e.renderTickItem(s,P,c?c(A.value,S):A.value))});return j.createElement(We,{className:"recharts-polar-radius-axis-ticks"},w)}},{key:"render",value:function(){var r=this.props,i=r.ticks,o=r.axisLine,s=r.tick;return!i||!i.length?null:j.createElement(We,{className:De("recharts-polar-radius-axis",this.props.className)},o&&this.renderAxisLine(),s&&this.renderTicks(),jt.renderCallByParent(this.props,this.getViewBox()))}}],[{key:"renderTickItem",value:function(r,i,o){var s;return j.isValidElement(r)?s=j.cloneElement(r,i):Ce(r)?s=r(i):s=j.createElement(Yo,Lu({},i,{className:"recharts-polar-radius-axis-tick-value"}),o),s}}])})(k.PureComponent);Pp(Rp,"displayName","PolarRadiusAxis");Pp(Rp,"axisType","radiusAxis");Pp(Rp,"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 Rs(t){"@babel/helpers - typeof";return Rs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Rs(t)}function Io(){return Io=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Io.apply(this,arguments)}function Nk(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Ro(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Nk(Object(n),!0).forEach(function(r){Np(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Nk(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function zpe(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ok(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,u3(r.key),r)}}function Kpe(t,e,n){return e&&Ok(t.prototype,e),n&&Ok(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function Ype(t,e,n){return e=Mh(e),Wpe(t,l3()?Reflect.construct(e,n||[],Mh(t).constructor):e.apply(t,n))}function Wpe(t,e){if(e&&(Rs(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Xpe(t)}function Xpe(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function l3(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(l3=function(){return!!t})()}function Mh(t){return Mh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Mh(t)}function Jpe(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&AS(t,e)}function AS(t,e){return AS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},AS(t,e)}function Np(t,e,n){return e=u3(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function u3(t){var e=Zpe(t,"string");return Rs(e)=="symbol"?e:e+""}function Zpe(t,e){if(Rs(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(Rs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var Qpe=Math.PI/180,Dk=1e-5,Op=(function(t){function e(){return zpe(this,e),Ype(this,e,arguments)}return Jpe(e,t),Kpe(e,[{key:"getTickLineCoord",value:function(r){var i=this.props,o=i.cx,s=i.cy,u=i.radius,c=i.orientation,f=i.tickSize,p=f||8,y=st(o,s,u,r.coordinate),v=st(o,s,u+(c==="inner"?-1:1)*p,r.coordinate);return{x1:y.x,y1:y.y,x2:v.x,y2:v.y}}},{key:"getTickTextAnchor",value:function(r){var i=this.props.orientation,o=Math.cos(-r.coordinate*Qpe),s;return o>Dk?s=i==="outer"?"start":"end":o<-Dk?s=i==="outer"?"end":"start":s="middle",s}},{key:"renderAxisLine",value:function(){var r=this.props,i=r.cx,o=r.cy,s=r.radius,u=r.axisLine,c=r.axisLineType,f=Ro(Ro({},_e(this.props,!1)),{},{fill:"none"},_e(u,!1));if(c==="circle")return j.createElement(Dw,Io({className:"recharts-polar-angle-axis-line"},f,{cx:i,cy:o,r:s}));var p=this.props.ticks,y=p.map(function(v){return st(i,o,s,v.coordinate)});return j.createElement(xpe,Io({className:"recharts-polar-angle-axis-line"},f,{points:y}))}},{key:"renderTicks",value:function(){var r=this,i=this.props,o=i.ticks,s=i.tick,u=i.tickLine,c=i.tickFormatter,f=i.stroke,p=_e(this.props,!1),y=_e(s,!1),v=Ro(Ro({},p),{},{fill:"none"},_e(u,!1)),x=o.map(function(w,A){var S=r.getTickLineCoord(w),C=r.getTickTextAnchor(w),P=Ro(Ro(Ro({textAnchor:C},p),{},{stroke:"none",fill:f},y),{},{index:A,payload:w,x:S.x2,y:S.y2});return j.createElement(We,Io({className:De("recharts-polar-angle-axis-tick",WV(s)),key:"tick-".concat(w.coordinate)},Ko(r.props,w,A)),u&&j.createElement("line",Io({className:"recharts-polar-angle-axis-tick-line"},v,S)),s&&e.renderTickItem(s,P,c?c(w.value,A):w.value))});return j.createElement(We,{className:"recharts-polar-angle-axis-ticks"},x)}},{key:"render",value:function(){var r=this.props,i=r.ticks,o=r.radius,s=r.axisLine;return o<=0||!i||!i.length?null:j.createElement(We,{className:De("recharts-polar-angle-axis",this.props.className)},s&&this.renderAxisLine(),this.renderTicks())}}],[{key:"renderTickItem",value:function(r,i,o){var s;return j.isValidElement(r)?s=j.cloneElement(r,i):Ce(r)?s=r(i):s=j.createElement(Yo,Io({},i,{className:"recharts-polar-angle-axis-tick-value"}),o),s}}])})(k.PureComponent);Np(Op,"displayName","PolarAngleAxis");Np(Op,"axisType","angleAxis");Np(Op,"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 dx,Ik;function eme(){if(Ik)return dx;Ik=1;var t=b$(),e=t(Object.getPrototypeOf,Object);return dx=e,dx}var hx,kk;function tme(){if(kk)return hx;kk=1;var t=hi(),e=eme(),n=pi(),r="[object Object]",i=Function.prototype,o=Object.prototype,s=i.toString,u=o.hasOwnProperty,c=s.call(Object);function f(p){if(!n(p)||t(p)!=r)return!1;var y=e(p);if(y===null)return!0;var v=u.call(y,"constructor")&&y.constructor;return typeof v=="function"&&v instanceof v&&s.call(v)==c}return hx=f,hx}var nme=tme();const rme=$e(nme);var px,Lk;function ime(){if(Lk)return px;Lk=1;var t=hi(),e=pi(),n="[object Boolean]";function r(i){return i===!0||i===!1||e(i)&&t(i)==n}return px=r,px}var ome=ime();const ame=$e(ome);function gc(t){"@babel/helpers - typeof";return gc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},gc(t)}function Ph(){return Ph=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Ph.apply(this,arguments)}function sme(t,e){return fme(t)||cme(t,e)||ume(t,e)||lme()}function lme(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 358In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ume(t,e){if(t){if(typeof t=="string")return Uk(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Uk(t,e)}}function Uk(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function cme(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,o,s,u=[],c=!0,f=!1;try{if(o=(n=n.call(t)).next,e!==0)for(;!(c=(r=o.call(n)).done)&&(u.push(r.value),u.length!==e);c=!0);}catch(p){f=!0,i=p}finally{try{if(!c&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(f)throw i}}return u}}function fme(t){if(Array.isArray(t))return t}function qk(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Bk(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?qk(Object(n),!0).forEach(function(r){dme(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):qk(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function dme(t,e,n){return e=hme(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function hme(t){var e=pme(t,"string");return gc(e)=="symbol"?e:e+""}function pme(t,e){if(gc(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(gc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var $k=function(e,n,r,i,o){var s=r-i,u;return u="M ".concat(e,",").concat(n),u+="L ".concat(e+r,",").concat(n),u+="L ".concat(e+r-s/2,",").concat(n+o),u+="L ".concat(e+r-s/2-i,",").concat(n+o),u+="L ".concat(e,",").concat(n," Z"),u},mme={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},gme=function(e){var n=Bk(Bk({},mme),e),r=k.useRef(),i=k.useState(-1),o=sme(i,2),s=o[0],u=o[1];k.useEffect(function(){if(r.current&&r.current.getTotalLength)try{var M=r.current.getTotalLength();M&&u(M)}catch{}},[]);var c=n.x,f=n.y,p=n.upperWidth,y=n.lowerWidth,v=n.height,x=n.className,w=n.animationEasing,A=n.animationDuration,S=n.animationBegin,C=n.isUpdateAnimationActive;if(c!==+c||f!==+f||p!==+p||y!==+y||v!==+v||p===0&&y===0||v===0)return null;var P=De("recharts-trapezoid",x);return C?j.createElement(ci,{canBegin:s>0,from:{upperWidth:0,lowerWidth:0,height:v,x:c,y:f},to:{upperWidth:p,lowerWidth:y,height:v,x:c,y:f},duration:A,animationEasing:w,isActive:C},function(M){var O=M.upperWidth,E=M.lowerWidth,N=M.height,D=M.x,L=M.y;return j.createElement(ci,{canBegin:s>0,from:"0px ".concat(s===-1?1:s,"px"),to:"".concat(s,"px 0px"),attributeName:"strokeDasharray",begin:S,duration:A,easing:w},j.createElement("path",Ph({},_e(n,!0),{className:P,d:$k(D,L,O,E,N),ref:r})))}):j.createElement("g",null,j.createElement("path",Ph({},_e(n,!0),{className:P,d:$k(c,f,p,y,v)})))},yme=["option","shapeType","propTransformer","activeClassName","isActive"];function yc(t){"@babel/helpers - typeof";return yc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},yc(t)}function vme(t,e){if(t==null)return{};var n=bme(t,e),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)r=o[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function bme(t,e){if(t==null)return{};var n={};for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){if(e.indexOf(r)>=0)continue;n[r]=t[r]}return n}function Vk(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Rh(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Vk(Object(n),!0).forEach(function(r){xme(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Vk(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function xme(t,e,n){return e=Tme(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Tme(t){var e=Sme(t,"string");return yc(e)=="symbol"?e:e+""}function Sme(t,e){if(yc(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(yc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Ame(t,e){return Rh(Rh({},e),t)}function wme(t,e){return t==="symbols"}function jk(t){var e=t.shapeType,n=t.elementProps;switch(e){case"rectangle":return j.createElement(Ow,n);case"trapezoid":return j.createElement(gme,n);case"sector":return j.createElement(ZV,n);case"symbols":if(wme(e))return j.createElement(JA,n);break;default:return null}}function _me(t){return k.isValidElement(t)?t.props:t}function c3(t){var e=t.option,n=t.shapeType,r=t.propTransformer,i=r===void 0?Ame:r,o=t.activeClassName,s=o===void 0?"recharts-active-shape":o,u=t.isActive,c=vme(t,yme),f;if(k.isValidElement(e))f=k.cloneElement(e,Rh(Rh({},c),_me(e)));else if(Ce(e))f=e(c);else if(rme(e)&&!ame(e)){var p=i(e,c);f=j.createElement(jk,{shapeType:n,elementProps:p})}else{var y=c;f=j.createElement(jk,{shapeType:n,elementProps:y})}return u?j.createElement(We,{className:s},f):f}function Dp(t,e){return e!=null&&"trapezoids"in t.props}function Ip(t,e){return e!=null&&"sectors"in t.props}function vc(t,e){return e!=null&&"points"in t.props}function Cme(t,e){var n,r,i=t.x===(e==null||(n=e.labelViewBox)===null||n===void 0?void 0:n.x)||t.x===e.x,o=t.y===(e==null||(r=e.labelViewBox)===null||r===void 0?void 0:r.y)||t.y===e.y;return i&&o}function Eme(t,e){var n=t.endAngle===e.endAngle,r=t.startAngle===e.startAngle;return n&&r}function Mme(t,e){var n=t.x===e.x,r=t.y===e.y,i=t.z===e.z;return n&&r&&i}function Pme(t,e){var n;return Dp(t,e)?n=Cme:Ip(t,e)?n=Eme:vc(t,e)&&(n=Mme),n}function Rme(t,e){var n;return Dp(t,e)?n="trapezoids":Ip(t,e)?n="sectors":vc(t,e)&&(n="points"),n}function Nme(t,e){if(Dp(t,e)){var n;return(n=e.tooltipPayload)===null||n===void 0||(n=n[0])===null||n===void 0||(n=n.payload)===null||n===void 0?void 0:n.payload}if(Ip(t,e)){var r;return(r=e.tooltipPayload)===null||r===void 0||(r=r[0])===null||r===void 0||(r=r.payload)===null||r===void 0?void 0:r.payload}return vc(t,e)?e.payload:{}}function Ome(t){var e=t.activeTooltipItem,n=t.graphicalItem,r=t.itemData,i=Rme(n,e),o=Nme(n,e),s=r.filter(function(c,f){var p=_p(o,c),y=n.props[i].filter(function(w){var A=Pme(n,e);return A(w,e)}),v=n.props[i].indexOf(y[y.length-1]),x=f===v;return p&&x}),u=r.indexOf(s[s.length-1]);return u}var Ud;function Ns(t){"@babel/helpers - typeof";return Ns=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ns(t)}function os(){return os=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},os.apply(this,arguments)}function Fk(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function it(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Fk(Object(n),!0).forEach(function(r){Gn(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Fk(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Dme(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Hk(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,d3(r.key),r)}}function Ime(t,e,n){return e&&Hk(t.prototype,e),n&&Hk(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function kme(t,e,n){return e=Nh(e),Lme(t,f3()?Reflect.construct(e,n||[],Nh(t).constructor):e.apply(t,n))}function Lme(t,e){if(e&&(Ns(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ume(t)}function Ume(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function f3(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(f3=function(){return!!t})()}function Nh(t){return Nh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Nh(t)}function qme(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&wS(t,e)}function wS(t,e){return wS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},wS(t,e)}function Gn(t,e,n){return e=d3(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function d3(t){var e=Bme(t,"string");return Ns(e)=="symbol"?e:e+""}function Bme(t,e){if(Ns(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(Ns(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var gi=(function(t){function e(n){var r;return Dme(this,e),r=kme(this,e,[n]),Gn(r,"pieRef",null),Gn(r,"sectorRefs",[]),Gn(r,"id",kc("recharts-pie-")),Gn(r,"handleAnimationEnd",function(){var i=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),Ce(i)&&i()}),Gn(r,"handleAnimationStart",function(){var i=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),Ce(i)&&i()}),r.state={isAnimationFinished:!n.isAnimationActive,prevIsAnimationActive:n.isAnimationActive,prevAnimationId:n.animationId,sectorToFocus:0},r}return qme(e,t),Ime(e,[{key:"isActiveIndex",value:function(r){var i=this.props.activeIndex;return Array.isArray(i)?i.indexOf(r)!==-1:r===i}},{key:"hasActiveIndex",value:function(){var r=this.props.activeIndex;return Array.isArray(r)?r.length!==0:r||r===0}},{key:"renderLabels",value:function(r){var i=this.props.isAnimationActive;if(i&&!this.state.isAnimationFinished)return null;var o=this.props,s=o.label,u=o.labelLine,c=o.dataKey,f=o.valueKey,p=_e(this.props,!1),y=_e(s,!1),v=_e(u,!1),x=s&&s.offsetRadius||20,w=r.map(function(A,S){var C=(A.startAngle+A.endAngle)/2,P=st(A.cx,A.cy,A.outerRadius+x,C),M=it(it(it(it({},p),A),{},{stroke:"none"},y),{},{index:S,textAnchor:e.getTextAnchor(P.x,A.cx)},P),O=it(it(it(it({},p),A),{},{fill:"none",stroke:A.fill},v),{},{index:S,points:[st(A.cx,A.cy,A.outerRadius,C),P]}),E=c;return ke(c)&&ke(f)?E="value":ke(c)&&(E=f),j.createElement(We,{key:"label-".concat(A.startAngle,"-").concat(A.endAngle,"-").concat(A.midAngle,"-").concat(S)},u&&e.renderLabelLineItem(u,O,"line"),e.renderLabelItem(s,M,tn(A,E)))});return j.createElement(We,{className:"recharts-pie-labels"},w)}},{key:"renderSectorsStatically",value:function(r){var i=this,o=this.props,s=o.activeShape,u=o.blendStroke,c=o.inactiveShape;return r.map(function(f,p){if((f==null?void 0:f.startAngle)===0&&(f==null?void 0:f.endAngle)===0&&r.length!==1)return null;var y=i.isActiveIndex(p),v=c&&i.hasActiveIndex()?c:null,x=y?s:v,w=it(it({},f),{},{stroke:u?f.fill:f.stroke,tabIndex:-1});return j.createElement(We,os({ref:function(S){S&&!i.sectorRefs.includes(S)&&i.sectorRefs.push(S)},tabIndex:-1,className:"recharts-pie-sector"},Ko(i.props,f,p),{key:"sector-".concat(f==null?void 0:f.startAngle,"-").concat(f==null?void 0:f.endAngle,"-").concat(f.midAngle,"-").concat(p)}),j.createElement(c3,os({option:x,isActive:y,shapeType:"sector"},w)))})}},{key:"renderSectorsWithAnimation",value:function(){var r=this,i=this.props,o=i.sectors,s=i.isAnimationActive,u=i.animationBegin,c=i.animationDuration,f=i.animationEasing,p=i.animationId,y=this.state,v=y.prevSectors,x=y.prevIsAnimationActive;return j.createElement(ci,{begin:u,duration:c,isActive:s,easing:f,from:{t:0},to:{t:1},key:"pie-".concat(p,"-").concat(x),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},function(w){var A=w.t,S=[],C=o&&o[0],P=C.startAngle;return o.forEach(function(M,O){var E=v&&v[O],N=O>0?Rn(M,"paddingAngle",0):0;if(E){var D=Fi(E.endAngle-E.startAngle,M.endAngle-M.startAngle),L=it(it({},M),{},{startAngle:P+N,endAngle:P+D(A)+N});S.push(L),P=L.endAngle}else{var U=M.endAngle,F=M.startAngle,B=Fi(0,U-F),z=B(A),W=it(it({},M),{},{startAngle:P+N,endAngle:P+z+N});S.push(W),P=W.endAngle}}),j.createElement(We,null,r.renderSectorsStatically(S))})}},{key:"attachKeyboardHandlers",value:function(r){var i=this;r.onkeydown=function(o){if(!o.altKey)switch(o.key){case"ArrowLeft":{var s=++i.state.sectorToFocus%i.sectorRefs.length;i.sectorRefs[s].focus(),i.setState({sectorToFocus:s});break}case"ArrowRight":{var u=--i.state.sectorToFocus<0?i.sectorRefs.length-1:i.state.sectorToFocus%i.sectorRefs.length;i.sectorRefs[u].focus(),i.setState({sectorToFocus:u});break}case"Escape":{i.sectorRefs[i.state.sectorToFocus].blur(),i.setState({sectorToFocus:0});break}}}}},{key:"renderSectors",value:function(){var r=this.props,i=r.sectors,o=r.isAnimationActive,s=this.state.prevSectors;return o&&i&&i.length&&(!s||!_p(s,i))?this.renderSectorsWithAnimation():this.renderSectorsStatically(i)}},{key:"componentDidMount",value:function(){this.pieRef&&this.attachKeyboardHandlers(this.pieRef)}},{key:"render",value:function(){var r=this,i=this.props,o=i.hide,s=i.sectors,u=i.className,c=i.label,f=i.cx,p=i.cy,y=i.innerRadius,v=i.outerRadius,x=i.isAnimationActive,w=this.state.isAnimationFinished;if(o||!s||!s.length||!fe(f)||!fe(p)||!fe(y)||!fe(v))return null;var A=De("recharts-pie",u);return j.createElement(We,{tabIndex:this.props.rootTabIndex,className:A,ref:function(C){r.pieRef=C}},this.renderSectors(),c&&this.renderLabels(s),jt.renderCallByParent(this.props,null,!1),(!x||w)&&Ji.renderCallByParent(this.props,s,!1))}}],[{key:"getDerivedStateFromProps",value:function(r,i){return i.prevIsAnimationActive!==r.isAnimationActive?{prevIsAnimationActive:r.isAnimationActive,prevAnimationId:r.animationId,curSectors:r.sectors,prevSectors:[],isAnimationFinished:!0}:r.isAnimationActive&&r.animationId!==i.prevAnimationId?{prevAnimationId:r.animationId,curSectors:r.sectors,prevSectors:i.curSectors,isAnimationFinished:!0}:r.sectors!==i.curSectors?{curSectors:r.sectors,isAnimationFinished:!0}:null}},{key:"getTextAnchor",value:function(r,i){return r>i?"start":r<i?"end":"middle"}},{key:"renderLabelLineItem",value:function(r,i,o){if(j.isValidElement(r))return j.cloneElement(r,i);if(Ce(r))return r(i);var s=De("recharts-pie-label-line",typeof r!="boolean"?r.className:"");return j.createElement(uS,os({},i,{key:o,type:"linear",className:s}))}},{key:"renderLabelItem",value:function(r,i,o){if(j.isValidElement(r))return j.cloneElement(r,i);var s=o;if(Ce(r)&&(s=r(i),j.isValidElement(s)))return s;var u=De("recharts-pie-label-text",typeof r!="boolean"&&!Ce(r)?r.className:"");return j.createElement(Yo,os({},i,{alignmentBaseline:"middle",className:u}),s)}}])})(k.PureComponent);Ud=gi;Gn(gi,"displayName","Pie");Gn(gi,"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:!nl.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1,rootTabIndex:0});Gn(gi,"parseDeltaAngle",function(t,e){var n=ln(e-t),r=Math.min(Math.abs(e-t),360);return n*r});Gn(gi,"getRealPieData",function(t){var e=t.data,n=t.children,r=_e(t,!1),i=Xn(n,mp);return e&&e.length?e.map(function(o,s){return it(it(it({payload:o},r),o),i&&i[s]&&i[s].props)}):i&&i.length?i.map(function(o){return it(it({},r),o.props)}):[]});Gn(gi,"parseCoordinateOfPie",function(t,e){var n=e.top,r=e.left,i=e.width,o=e.height,s=YV(i,o),u=r+un(t.cx,i,i/2),c=n+un(t.cy,o,o/2),f=un(t.innerRadius,s,0),p=un(t.outerRadius,s,s*.8),y=t.maxRadius||Math.sqrt(i*i+o*o)/2;return{cx:u,cy:c,innerRadius:f,outerRadius:p,maxRadius:y}});Gn(gi,"getComposedData",function(t){var e=t.item,n=t.offset,r=e.type.defaultProps!==void 0?it(it({},e.type.defaultProps),e.props):e.props,i=Ud.getRealPieData(r);if(!i||!i.length)return null;var o=r.cornerRadius,s=r.startAngle,u=r.endAngle,c=r.paddingAngle,f=r.dataKey,p=r.nameKey,y=r.valueKey,v=r.tooltipType,x=Math.abs(r.minAngle),w=Ud.parseCoordinateOfPie(r,n),A=Ud.parseDeltaAngle(s,u),S=Math.abs(A),C=f;ke(f)&&ke(y)?(dr(!1,`Use "dataKey" to specify the value of pie,
359 the props "valueKey" will be deprecated in 1.1.0`),C="value"):ke(f)&&(dr(!1,`Use "dataKey" to specify the value of pie, 360 the props "valueKey" will be deprecated in 1.1.0`),C=y);var P=i.filter(function(L){return tn(L,C,0)!==0}).length,M=(S>=360?P:P-1)*c,O=S-P*x-M,E=i.reduce(function(L,U){var F=tn(U,C,0);return L+(fe(F)?F:0)},0),N;if(E>0){var D;N=i.map(function(L,U){var F=tn(L,C,0),B=tn(L,p,U),z=(fe(F)?F:0)/E,W;U?W=D.endAngle+ln(A)*c*(F!==0?1:0):W=s;var ne=W+ln(A)*((F!==0?x:0)+z*O),J=(W+ne)/2,$=(w.innerRadius+w.outerRadius)/2,G=[{name:B,value:F,payload:L,dataKey:C,type:v}],te=st(w.cx,w.cy,$,J);return D=it(it(it({percent:z,cornerRadius:o,name:B,tooltipPayload:G,midAngle:J,middleRadius:$,tooltipPosition:te},L),w),{},{value:tn(L,C),startAngle:W,endAngle:ne,payload:L,paddingAngle:ln(A)*c}),D})}return it(it({},w),{},{sectors:N,data:i})});var mx,Gk;function $me(){if(Gk)return mx;Gk=1;var t=Math.ceil,e=Math.max;function n(r,i,o,s){for(var u=-1,c=e(t((i-r)/(o||1)),0),f=Array(c);c--;)f[s?c:++u]=r,r+=o;return f}return mx=n,mx}var gx,zk;function h3(){if(zk)return gx;zk=1;var t=k$(),e=1/0,n=17976931348623157e292;function r(i){if(!i)return i===0?i:0;if(i=t(i),i===e||i===-e){var o=i<0?-1:1;return o*n}return i===i?i:0}return gx=r,gx}var yx,Kk;function Vme(){if(Kk)return yx;Kk=1;var t=$me(),e=pp(),n=h3();function r(i){return function(o,s,u){return u&&typeof u!="number"&&e(o,s,u)&&(s=u=void 0),o=n(o),s===void 0?(s=o,o=0):s=n(s),u=u===void 0?o<s?1:-1:n(u),t(o,s,u,i)}}return yx=r,yx}var vx,Yk;function jme(){if(Yk)return vx;Yk=1;var t=Vme(),e=t();return vx=e,vx}var Fme=jme();const Oh=$e(Fme);function bc(t){"@babel/helpers - typeof";return bc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},bc(t)}function Wk(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Xk(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Wk(Object(n),!0).forEach(function(r){p3(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Wk(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function p3(t,e,n){return e=Hme(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Hme(t){var e=Gme(t,"string");return bc(e)=="symbol"?e:e+""}function Gme(t,e){if(bc(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(bc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var zme=["Webkit","Moz","O","ms"],Kme=function(e,n){var r=e.replace(/(\w)/,function(o){return o.toUpperCase()}),i=zme.reduce(function(o,s){return Xk(Xk({},o),{},p3({},s+r,n))},{});return i[e]=n,i};function Os(t){"@babel/helpers - typeof";return Os=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Os(t)}function Dh(){return Dh=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Dh.apply(this,arguments)}function Jk(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function bx(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Jk(Object(n),!0).forEach(function(r){En(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Jk(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Yme(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Zk(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,g3(r.key),r)}}function Wme(t,e,n){return e&&Zk(t.prototype,e),n&&Zk(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function Xme(t,e,n){return e=Ih(e),Jme(t,m3()?Reflect.construct(e,n||[],Ih(t).constructor):e.apply(t,n))}function Jme(t,e){if(e&&(Os(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Zme(t)}function Zme(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function m3(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(m3=function(){return!!t})()}
vendor: 109,809 bytes, lines 360-364
360function Ih(t){return Ih=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Ih(t)}function Qme(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_S(t,e)}function _S(t,e){return _S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},_S(t,e)}function En(t,e,n){return e=g3(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function g3(t){var e=ege(t,"string");return Os(e)=="symbol"?e:e+""}function ege(t,e){if(Os(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(Os(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var tge=function(e){var n=e.data,r=e.startIndex,i=e.endIndex,o=e.x,s=e.width,u=e.travellerWidth;if(!n||!n.length)return{};var c=n.length,f=Ou().domain(Oh(0,c)).range([o,o+s-u]),p=f.domain().map(function(y){return f(y)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:f(r),endX:f(i),scale:f,scaleValues:p}},Qk=function(e){return e.changedTouches&&!!e.changedTouches.length},Ds=(function(t){function e(n){var r;return Yme(this,e),r=Xme(this,e,[n]),En(r,"handleDrag",function(i){r.leaveTimer&&(clearTimeout(r.leaveTimer),r.leaveTimer=null),r.state.isTravellerMoving?r.handleTravellerMove(i):r.state.isSlideMoving&&r.handleSlideDrag(i)}),En(r,"handleTouchMove",function(i){i.changedTouches!=null&&i.changedTouches.length>0&&r.handleDrag(i.changedTouches[0])}),En(r,"handleDragEnd",function(){r.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var i=r.props,o=i.endIndex,s=i.onDragEnd,u=i.startIndex;s==null||s({endIndex:o,startIndex:u})}),r.detachDragEndListener()}),En(r,"handleLeaveWrapper",function(){(r.state.isTravellerMoving||r.state.isSlideMoving)&&(r.leaveTimer=window.setTimeout(r.handleDragEnd,r.props.leaveTimeOut))}),En(r,"handleEnterSlideOrTraveller",function(){r.setState({isTextActive:!0})}),En(r,"handleLeaveSlideOrTraveller",function(){r.setState({isTextActive:!1})}),En(r,"handleSlideDragStart",function(i){var o=Qk(i)?i.changedTouches[0]:i;r.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:o.pageX}),r.attachDragEndListener()}),r.travellerDragStartHandlers={startX:r.handleTravellerDragStart.bind(r,"startX"),endX:r.handleTravellerDragStart.bind(r,"endX")},r.state={},r}return Qme(e,t),Wme(e,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(r){var i=r.startX,o=r.endX,s=this.state.scaleValues,u=this.props,c=u.gap,f=u.data,p=f.length-1,y=Math.min(i,o),v=Math.max(i,o),x=e.getIndexInRange(s,y),w=e.getIndexInRange(s,v);return{startIndex:x-x%c,endIndex:w===p?p:w-w%c}}},{key:"getTextOfTick",value:function(r){var i=this.props,o=i.data,s=i.tickFormatter,u=i.dataKey,c=tn(o[r],u,r);return Ce(s)?s(c,r):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(r){var i=this.state,o=i.slideMoveStartX,s=i.startX,u=i.endX,c=this.props,f=c.x,p=c.width,y=c.travellerWidth,v=c.startIndex,x=c.endIndex,w=c.onChange,A=r.pageX-o;A>0?A=Math.min(A,f+p-y-u,f+p-y-s):A<0&&(A=Math.max(A,f-s,f-u));var S=this.getIndex({startX:s+A,endX:u+A});(S.startIndex!==v||S.endIndex!==x)&&w&&w(S),this.setState({startX:s+A,endX:u+A,slideMoveStartX:r.pageX})}},{key:"handleTravellerDragStart",value:function(r,i){var o=Qk(i)?i.changedTouches[0]:i;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:r,brushMoveStartX:o.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(r){var i=this.state,o=i.brushMoveStartX,s=i.movingTravellerId,u=i.endX,c=i.startX,f=this.state[s],p=this.props,y=p.x,v=p.width,x=p.travellerWidth,w=p.onChange,A=p.gap,S=p.data,C={startX:this.state.startX,endX:this.state.endX},P=r.pageX-o;P>0?P=Math.min(P,y+v-x-f):P<0&&(P=Math.max(P,y-f)),C[s]=f+P;var M=this.getIndex(C),O=M.startIndex,E=M.endIndex,N=function(){var L=S.length-1;return s==="startX"&&(u>c?O%A===0:E%A===0)||u<c&&E===L||s==="endX"&&(u>c?E%A===0:O%A===0)||u>c&&E===L};this.setState(En(En({},s,f+P),"brushMoveStartX",r.pageX),function(){w&&N()&&w(M)})}},{key:"handleTravellerMoveKeyboard",value:function(r,i){var o=this,s=this.state,u=s.scaleValues,c=s.startX,f=s.endX,p=this.state[i],y=u.indexOf(p);if(y!==-1){var v=y+r;if(!(v===-1||v>=u.length)){var x=u[v];i==="startX"&&x>=f||i==="endX"&&x<=c||this.setState(En({},i,x),function(){o.props.onChange(o.getIndex({startX:o.state.startX,endX:o.state.endX}))})}}}},{key:"renderBackground",value:function(){var r=this.props,i=r.x,o=r.y,s=r.width,u=r.height,c=r.fill,f=r.stroke;return j.createElement("rect",{stroke:f,fill:c,x:i,y:o,width:s,height:u})}},{key:"renderPanorama",value:function(){var r=this.props,i=r.x,o=r.y,s=r.width,u=r.height,c=r.data,f=r.children,p=r.padding,y=k.Children.only(f);return y?j.cloneElement(y,{x:i,y:o,width:s,height:u,margin:p,compact:!0,data:c}):null}},{key:"renderTravellerLayer",value:function(r,i){var o,s,u=this,c=this.props,f=c.y,p=c.travellerWidth,y=c.height,v=c.traveller,x=c.ariaLabel,w=c.data,A=c.startIndex,S=c.endIndex,C=Math.max(r,this.props.x),P=bx(bx({},_e(this.props,!1)),{},{x:C,y:f,width:p,height:y}),M=x||"Min value: ".concat((o=w[A])===null||o===void 0?void 0:o.name,", Max value: ").concat((s=w[S])===null||s===void 0?void 0:s.name);return j.createElement(We,{tabIndex:0,role:"slider","aria-label":M,"aria-valuenow":r,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[i],onTouchStart:this.travellerDragStartHandlers[i],onKeyDown:function(E){["ArrowLeft","ArrowRight"].includes(E.key)&&(E.preventDefault(),E.stopPropagation(),u.handleTravellerMoveKeyboard(E.key==="ArrowRight"?1:-1,i))},onFocus:function(){u.setState({isTravellerFocused:!0})},onBlur:function(){u.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},e.renderTraveller(v,P))}},{key:"renderSlide",value:function(r,i){var o=this.props,s=o.y,u=o.height,c=o.stroke,f=o.travellerWidth,p=Math.min(r,i)+f,y=Math.max(Math.abs(i-r)-f,0);return j.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:p,y:s,width:y,height:u})}},{key:"renderText",value:function(){var r=this.props,i=r.startIndex,o=r.endIndex,s=r.y,u=r.height,c=r.travellerWidth,f=r.stroke,p=this.state,y=p.startX,v=p.endX,x=5,w={pointerEvents:"none",fill:f};return j.createElement(We,{className:"recharts-brush-texts"},j.createElement(Yo,Dh({textAnchor:"end",verticalAnchor:"middle",x:Math.min(y,v)-x,y:s+u/2},w),this.getTextOfTick(i)),j.createElement(Yo,Dh({textAnchor:"start",verticalAnchor:"middle",x:Math.max(y,v)+c+x,y:s+u/2},w),this.getTextOfTick(o)))}},{key:"render",value:function(){var r=this.props,i=r.data,o=r.className,s=r.children,u=r.x,c=r.y,f=r.width,p=r.height,y=r.alwaysShowText,v=this.state,x=v.startX,w=v.endX,A=v.isTextActive,S=v.isSlideMoving,C=v.isTravellerMoving,P=v.isTravellerFocused;if(!i||!i.length||!fe(u)||!fe(c)||!fe(f)||!fe(p)||f<=0||p<=0)return null;var M=De("recharts-brush",o),O=j.Children.count(s)===1,E=Kme("userSelect","none");return j.createElement(We,{className:M,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:E},this.renderBackground(),O&&this.renderPanorama(),this.renderSlide(x,w),this.renderTravellerLayer(x,"startX"),this.renderTravellerLayer(w,"endX"),(A||S||C||P||y)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(r){var i=r.x,o=r.y,s=r.width,u=r.height,c=r.stroke,f=Math.floor(o+u/2)-1;return j.createElement(j.Fragment,null,j.createElement("rect",{x:i,y:o,width:s,height:u,fill:c,stroke:"none"}),j.createElement("line",{x1:i+1,y1:f,x2:i+s-1,y2:f,fill:"none",stroke:"#fff"}),j.createElement("line",{x1:i+1,y1:f+2,x2:i+s-1,y2:f+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(r,i){var o;return j.isValidElement(r)?o=j.cloneElement(r,i):Ce(r)?o=r(i):o=e.renderDefaultTraveller(i),o}},{key:"getDerivedStateFromProps",value:function(r,i){var o=r.data,s=r.width,u=r.x,c=r.travellerWidth,f=r.updateId,p=r.startIndex,y=r.endIndex;if(o!==i.prevData||f!==i.prevUpdateId)return bx({prevData:o,prevTravellerWidth:c,prevUpdateId:f,prevX:u,prevWidth:s},o&&o.length?tge({data:o,width:s,x:u,travellerWidth:c,startIndex:p,endIndex:y}):{scale:null,scaleValues:null});if(i.scale&&(s!==i.prevWidth||u!==i.prevX||c!==i.prevTravellerWidth)){i.scale.range([u,u+s-c]);var v=i.scale.domain().map(function(x){return i.scale(x)});return{prevData:o,prevTravellerWidth:c,prevUpdateId:f,prevX:u,prevWidth:s,startX:i.scale(r.startIndex),endX:i.scale(r.endIndex),scaleValues:v}}return null}},{key:"getIndexInRange",value:function(r,i){for(var o=r.length,s=0,u=o-1;u-s>1;){var c=Math.floor((s+u)/2);r[c]>i?u=c:s=c}return i>=r[u]?u:s}}])})(k.PureComponent);En(Ds,"displayName","Brush");En(Ds,"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 xx,eL;function nge(){if(eL)return xx;eL=1;var t=iw();function e(n,r){var i;return t(n,function(o,s,u){return i=r(o,s,u),!i}),!!i}return xx=e,xx}var Tx,tL;function rge(){if(tL)return Tx;tL=1;var t=d$(),e=Or(),n=nge(),r=yn(),i=pp();function o(s,u,c){var f=r(s)?t:n;return c&&i(s,u,c)&&(u=void 0),f(s,e(u,3))}return Tx=o,Tx}var ige=rge();const oge=$e(ige);var _r=function(e,n){var r=e.alwaysShow,i=e.ifOverflow;return r&&(i="extendDomain"),i===n},Sx,nL;function age(){if(nL)return Sx;nL=1;var t=R$();function e(n,r,i){r=="__proto__"&&t?t(n,r,{configurable:!0,enumerable:!0,value:i,writable:!0}):n[r]=i}return Sx=e,Sx}var Ax,rL;function sge(){if(rL)return Ax;rL=1;var t=age(),e=M$(),n=Or();function r(i,o){var s={};return o=n(o,3),e(i,function(u,c,f){t(s,c,o(u,c,f))}),s}return Ax=r,Ax}var lge=sge();const uge=$e(lge);var wx,iL;function cge(){if(iL)return wx;iL=1;function t(e,n){for(var r=-1,i=e==null?0:e.length;++r<i;)if(!n(e[r],r,e))return!1;return!0}return wx=t,wx}var _x,oL;function fge(){if(oL)return _x;oL=1;var t=iw();function e(n,r){var i=!0;return t(n,function(o,s,u){return i=!!r(o,s,u),i}),i}return _x=e,_x}var Cx,aL;function dge(){if(aL)return Cx;aL=1;var t=cge(),e=fge(),n=Or(),r=yn(),i=pp();function o(s,u,c){var f=r(s)?t:e;return c&&i(s,u,c)&&(u=void 0),f(s,n(u,3))}return Cx=o,Cx}var hge=dge();const y3=$e(hge);var pge=["x","y"];function xc(t){"@babel/helpers - typeof";return xc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},xc(t)}function CS(){return CS=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},CS.apply(this,arguments)}function sL(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function bu(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?sL(Object(n),!0).forEach(function(r){mge(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):sL(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function mge(t,e,n){return e=gge(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function gge(t){var e=yge(t,"string");return xc(e)=="symbol"?e:e+""}function yge(t,e){if(xc(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(xc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function vge(t,e){if(t==null)return{};var n=bge(t,e),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)r=o[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function bge(t,e){if(t==null)return{};var n={};for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){if(e.indexOf(r)>=0)continue;n[r]=t[r]}return n}function xge(t,e){var n=t.x,r=t.y,i=vge(t,pge),o="".concat(n),s=parseInt(o,10),u="".concat(r),c=parseInt(u,10),f="".concat(e.height||i.height),p=parseInt(f,10),y="".concat(e.width||i.width),v=parseInt(y,10);return bu(bu(bu(bu(bu({},e),i),s?{x:s}:{}),c?{y:c}:{}),{},{height:p,width:v,name:e.name,radius:e.radius})}function lL(t){return j.createElement(c3,CS({shapeType:"rectangle",propTransformer:xge,activeClassName:"recharts-active-bar"},t))}var Tge=function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return function(r,i){if(typeof e=="number")return e;var o=fe(r)||Gne(r);return o?e(r,i):(o||Xo(),n)}},Sge=["value","background"],v3;function Is(t){"@babel/helpers - typeof";return Is=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Is(t)}function Age(t,e){if(t==null)return{};var n=wge(t,e),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)r=o[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function wge(t,e){if(t==null)return{};var n={};for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){if(e.indexOf(r)>=0)continue;n[r]=t[r]}return n}function kh(){return kh=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},kh.apply(this,arguments)}function uL(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Et(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?uL(Object(n),!0).forEach(function(r){Yi(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):uL(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function _ge(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function cL(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,x3(r.key),r)}}function Cge(t,e,n){return e&&cL(t.prototype,e),n&&cL(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function Ege(t,e,n){return e=Lh(e),Mge(t,b3()?Reflect.construct(e,n||[],Lh(t).constructor):e.apply(t,n))}function Mge(t,e){if(e&&(Is(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Pge(t)}function Pge(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function b3(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(b3=function(){return!!t})()}function Lh(t){return Lh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Lh(t)}function Rge(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&ES(t,e)}function ES(t,e){return ES=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},ES(t,e)}function Yi(t,e,n){return e=x3(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function x3(t){var e=Nge(t,"string");return Is(e)=="symbol"?e:e+""}function Nge(t,e){if(Is(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(Is(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var ia=(function(t){function e(){var n;_ge(this,e);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n=Ege(this,e,[].concat(i)),Yi(n,"state",{isAnimationFinished:!1}),Yi(n,"id",kc("recharts-bar-")),Yi(n,"handleAnimationEnd",function(){var s=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),s&&s()}),Yi(n,"handleAnimationStart",function(){var s=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),s&&s()}),n}return Rge(e,t),Cge(e,[{key:"renderRectanglesStatically",value:function(r){var i=this,o=this.props,s=o.shape,u=o.dataKey,c=o.activeIndex,f=o.activeBar,p=_e(this.props,!1);return r&&r.map(function(y,v){var x=v===c,w=x?f:s,A=Et(Et(Et({},p),y),{},{isActive:x,option:w,index:v,dataKey:u,onAnimationStart:i.handleAnimationStart,onAnimationEnd:i.handleAnimationEnd});return j.createElement(We,kh({className:"recharts-bar-rectangle"},Ko(i.props,y,v),{key:"rectangle-".concat(y==null?void 0:y.x,"-").concat(y==null?void 0:y.y,"-").concat(y==null?void 0:y.value,"-").concat(v)}),j.createElement(lL,A))})}},{key:"renderRectanglesWithAnimation",value:function(){var r=this,i=this.props,o=i.data,s=i.layout,u=i.isAnimationActive,c=i.animationBegin,f=i.animationDuration,p=i.animationEasing,y=i.animationId,v=this.state.prevData;return j.createElement(ci,{begin:c,duration:f,isActive:u,easing:p,from:{t:0},to:{t:1},key:"bar-".concat(y),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(x){var w=x.t,A=o.map(function(S,C){var P=v&&v[C];if(P){var M=Fi(P.x,S.x),O=Fi(P.y,S.y),E=Fi(P.width,S.width),N=Fi(P.height,S.height);return Et(Et({},S),{},{x:M(w),y:O(w),width:E(w),height:N(w)})}if(s==="horizontal"){var D=Fi(0,S.height),L=D(w);return Et(Et({},S),{},{y:S.y+S.height-L,height:L})}var U=Fi(0,S.width),F=U(w);return Et(Et({},S),{},{width:F})});return j.createElement(We,null,r.renderRectanglesStatically(A))})}},{key:"renderRectangles",value:function(){var r=this.props,i=r.data,o=r.isAnimationActive,s=this.state.prevData;return o&&i&&i.length&&(!s||!_p(s,i))?this.renderRectanglesWithAnimation():this.renderRectanglesStatically(i)}},{key:"renderBackground",value:function(){var r=this,i=this.props,o=i.data,s=i.dataKey,u=i.activeIndex,c=_e(this.props.background,!1);return o.map(function(f,p){f.value;var y=f.background,v=Age(f,Sge);if(!y)return null;var x=Et(Et(Et(Et(Et({},v),{},{fill:"#eee"},y),c),Ko(r.props,f,p)),{},{onAnimationStart:r.handleAnimationStart,onAnimationEnd:r.handleAnimationEnd,dataKey:s,index:p,className:"recharts-bar-background-rectangle"});return j.createElement(lL,kh({key:"background-bar-".concat(p),option:r.props.background,isActive:p===u},x))})}},{key:"renderErrorBar",value:function(r,i){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var o=this.props,s=o.data,u=o.xAxis,c=o.yAxis,f=o.layout,p=o.children,y=Xn(p,Mp);if(!y)return null;var v=f==="vertical"?s[0].height/2:s[0].width/2,x=function(S,C){var P=Array.isArray(S.value)?S.value[1]:S.value;return{x:S.x,y:S.y,value:P,errorVal:tn(S,C)}},w={clipPath:r?"url(#clipPath-".concat(i,")"):null};return j.createElement(We,w,y.map(function(A){return j.cloneElement(A,{key:"error-bar-".concat(i,"-").concat(A.props.dataKey),data:s,xAxis:u,yAxis:c,layout:f,offset:v,dataPointFormatter:x})}))}},{key:"render",value:function(){var r=this.props,i=r.hide,o=r.data,s=r.className,u=r.xAxis,c=r.yAxis,f=r.left,p=r.top,y=r.width,v=r.height,x=r.isAnimationActive,w=r.background,A=r.id;if(i||!o||!o.length)return null;var S=this.state.isAnimationFinished,C=De("recharts-bar",s),P=u&&u.allowDataOverflow,M=c&&c.allowDataOverflow,O=P||M,E=ke(A)?this.id:A;return j.createElement(We,{className:C},P||M?j.createElement("defs",null,j.createElement("clipPath",{id:"clipPath-".concat(E)},j.createElement("rect",{x:P?f:f-y/2,y:M?p:p-v/2,width:P?y:y*2,height:M?v:v*2}))):null,j.createElement(We,{className:"recharts-bar-rectangles",clipPath:O?"url(#clipPath-".concat(E,")"):null},w?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(O,E),(!x||S)&&Ji.renderCallByParent(this.props,o))}}],[{key:"getDerivedStateFromProps",value:function(r,i){return r.animationId!==i.prevAnimationId?{prevAnimationId:r.animationId,curData:r.data,prevData:i.curData}:r.data!==i.curData?{curData:r.data}:null}}])})(k.PureComponent);v3=ia;Yi(ia,"displayName","Bar");Yi(ia,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!nl.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});Yi(ia,"getComposedData",function(t){var e=t.props,n=t.item,r=t.barPosition,i=t.bandSize,o=t.xAxis,s=t.yAxis,u=t.xAxisTicks,c=t.yAxisTicks,f=t.stackedData,p=t.dataStartIndex,y=t.displayedData,v=t.offset,x=ofe(r,n);if(!x)return null;var w=e.layout,A=n.type.defaultProps,S=A!==void 0?Et(Et({},A),n.props):n.props,C=S.dataKey,P=S.children,M=S.minPointSize,O=w==="horizontal"?s:o,E=f?O.scale.domain():null,N=dfe({numericAxis:O}),D=Xn(P,mp),L=y.map(function(U,F){var B,z,W,ne,J,$;f?B=afe(f[p+F],E):(B=tn(U,C),Array.isArray(B)||(B=[N,B]));var G=Tge(M,v3.defaultProps.minPointSize)(B[1],F);if(w==="horizontal"){var te,ue=[s.scale(B[0]),s.scale(B[1])],q=ue[0],Z=ue[1];z=k2({axis:o,ticks:u,bandSize:i,offset:x.offset,entry:U,index:F}),W=(te=Z??q)!==null&&te!==void 0?te:void 0,ne=x.size;var re=q-Z;if(J=Number.isNaN(re)?0:re,$={x:z,y:s.y,width:ne,height:s.height},Math.abs(G)>0&&Math.abs(J)<Math.abs(G)){var ae=ln(J||G)*(Math.abs(G)-Math.abs(J));W-=ae,J+=ae}}else{var he=[o.scale(B[0]),o.scale(B[1])],xe=he[0],ve=he[1];if(z=xe,W=k2({axis:s,ticks:c,bandSize:i,offset:x.offset,entry:U,index:F}),ne=ve-xe,J=x.size,$={x:o.x,y:W,width:o.width,height:J},Math.abs(G)>0&&Math.abs(ne)<Math.abs(G)){var xt=ln(ne||G)*(Math.abs(G)-Math.abs(ne));ne+=xt}}return Et(Et(Et({},U),{},{x:z,y:W,width:ne,height:J,value:f?B:B[1],payload:U,background:$},D&&D[F]&&D[F].props),{},{tooltipPayload:[zV(n,U)],tooltipPosition:{x:z+ne/2,y:W+J/2}})});return Et({data:L,layout:w},v)});function Tc(t){"@babel/helpers - typeof";return Tc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Tc(t)}function Oge(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function fL(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,T3(r.key),r)}}function Dge(t,e,n){return e&&fL(t.prototype,e),n&&fL(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function dL(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function sr(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?dL(Object(n),!0).forEach(function(r){kp(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):dL(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function kp(t,e,n){return e=T3(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function T3(t){var e=Ige(t,"string");return Tc(e)=="symbol"?e:e+""}function Ige(t,e){if(Tc(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(Tc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var kge=function(e,n,r,i,o){var s=e.width,u=e.height,c=e.layout,f=e.children,p=Object.keys(n),y={left:r.left,leftMirror:r.left,right:s-r.right,rightMirror:s-r.right,top:r.top,topMirror:r.top,bottom:u-r.bottom,bottomMirror:u-r.bottom},v=!!Mn(f,ia);return p.reduce(function(x,w){var A=n[w],S=A.orientation,C=A.domain,P=A.padding,M=P===void 0?{}:P,O=A.mirror,E=A.reversed,N="".concat(S).concat(O?"Mirror":""),D,L,U,F,B;if(A.type==="number"&&(A.padding==="gap"||A.padding==="no-gap")){var z=C[1]-C[0],W=1/0,ne=A.categoricalDomain.sort(Yne);if(ne.forEach(function(he,xe){xe>0&&(W=Math.min((he||0)-(ne[xe-1]||0),W))}),Number.isFinite(W)){var J=W/z,$=A.layout==="vertical"?r.height:r.width;if(A.padding==="gap"&&(D=J*$/2),A.padding==="no-gap"){var G=un(e.barCategoryGap,J*$),te=J*$/2;D=te-G-(te-G)/$*G}}}i==="xAxis"?L=[r.left+(M.left||0)+(D||0),r.left+r.width-(M.right||0)-(D||0)]:i==="yAxis"?L=c==="horizontal"?[r.top+r.height-(M.bottom||0),r.top+(M.top||0)]:[r.top+(M.top||0)+(D||0),r.top+r.height-(M.bottom||0)-(D||0)]:L=A.range,E&&(L=[L[1],L[0]]);var ue=jV(A,o,v),q=ue.scale,Z=ue.realScaleType;q.domain(C).range(L),FV(q);var re=HV(q,sr(sr({},A),{},{realScaleType:Z}));i==="xAxis"?(B=S==="top"&&!O||S==="bottom"&&O,U=r.left,F=y[N]-B*A.height):i==="yAxis"&&(B=S==="left"&&!O||S==="right"&&O,U=y[N]-B*A.width,F=r.top);var ae=sr(sr(sr({},A),re),{},{realScaleType:Z,x:U,y:F,scale:q,width:i==="xAxis"?r.width:A.width,height:i==="yAxis"?r.height:A.height});return ae.bandSize=xh(ae,re),!A.hide&&i==="xAxis"?y[N]+=(B?-1:1)*ae.height:A.hide||(y[N]+=(B?-1:1)*ae.width),sr(sr({},x),{},kp({},w,ae))},{})},S3=function(e,n){var r=e.x,i=e.y,o=n.x,s=n.y;return{x:Math.min(r,o),y:Math.min(i,s),width:Math.abs(o-r),height:Math.abs(s-i)}},Lge=function(e){var n=e.x1,r=e.y1,i=e.x2,o=e.y2;return S3({x:n,y:r},{x:i,y:o})},A3=(function(){function t(e){Oge(this,t),this.scale=e}return Dge(t,[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.bandAware,o=r.position;if(n!==void 0){if(o)switch(o){case"start":return this.scale(n);case"middle":{var s=this.bandwidth?this.bandwidth()/2:0;return this.scale(n)+s}case"end":{var u=this.bandwidth?this.bandwidth():0;return this.scale(n)+u}default:return this.scale(n)}if(i){var c=this.bandwidth?this.bandwidth()/2:0;return this.scale(n)+c}return this.scale(n)}}},{key:"isInRange",value:function(n){var r=this.range(),i=r[0],o=r[r.length-1];return i<=o?n>=i&&n<=o:n>=o&&n<=i}}],[{key:"create",value:function(n){return new t(n)}}])})();kp(A3,"EPS",1e-4);var Iw=function(e){var n=Object.keys(e).reduce(function(r,i){return sr(sr({},r),{},kp({},i,A3.create(e[i])))},{});return sr(sr({},n),{},{apply:function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=o.bandAware,u=o.position;return uge(i,function(c,f){return n[f].apply(c,{bandAware:s,position:u})})},isInRange:function(i){return y3(i,function(o,s){return n[s].isInRange(o)})}})};function Uge(t){return(t%180+180)%180}var qge=function(e){var n=e.width,r=e.height,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,o=Uge(i),s=o*Math.PI/180,u=Math.atan(r/n),c=s>u&&s<Math.PI-u?r/Math.sin(s):n/Math.cos(s);return Math.abs(c)},Ex,hL;function Bge(){if(hL)return Ex;hL=1;var t=Or(),e=Lc(),n=dp();function r(i){return function(o,s,u){var c=Object(o);if(!e(o)){var f=t(s,3);o=n(o),s=function(y){return f(c[y],y,c)}}var p=i(o,s,u);return p>-1?c[f?o[p]:p]:void 0}}return Ex=r,Ex}var Mx,pL;function $ge(){if(pL)return Mx;pL=1;var t=h3();function e(n){var r=t(n),i=r%1;return r===r?i?r-i:r:0}return Mx=e,Mx}var Px,mL;function Vge(){if(mL)return Px;mL=1;var t=A$(),e=Or(),n=$ge(),r=Math.max;function i(o,s,u){var c=o==null?0:o.length;if(!c)return-1;var f=u==null?0:n(u);return f<0&&(f=r(c+f,0)),t(o,e(s,3),f)}return Px=i,Px}var Rx,gL;function jge(){if(gL)return Rx;gL=1;var t=Bge(),e=Vge(),n=t(e);return Rx=n,Rx}var Fge=jge();const Hge=$e(Fge);var Gge=BB();const zge=$e(Gge);var Kge=zge(function(t){return{x:t.left,y:t.top,width:t.width,height:t.height}},function(t){return["l",t.left,"t",t.top,"w",t.width,"h",t.height].join("")}),kw=k.createContext(void 0),Lw=k.createContext(void 0),w3=k.createContext(void 0),_3=k.createContext({}),C3=k.createContext(void 0),E3=k.createContext(0),M3=k.createContext(0),yL=function(e){var n=e.state,r=n.xAxisMap,i=n.yAxisMap,o=n.offset,s=e.clipPathId,u=e.children,c=e.width,f=e.height,p=Kge(o);return j.createElement(kw.Provider,{value:r},j.createElement(Lw.Provider,{value:i},j.createElement(_3.Provider,{value:o},j.createElement(w3.Provider,{value:p},j.createElement(C3.Provider,{value:s},j.createElement(E3.Provider,{value:f},j.createElement(M3.Provider,{value:c},u)))))))},Yge=function(){return k.useContext(C3)},P3=function(e){var n=k.useContext(kw);n==null&&Xo();var r=n[e];return r==null&&Xo(),r},Wge=function(){var e=k.useContext(kw);return Gi(e)},Xge=function(){var e=k.useContext(Lw),n=Hge(e,function(r){return y3(r.domain,Number.isFinite)});return n||Gi(e)},R3=function(e){var n=k.useContext(Lw);n==null&&Xo();var r=n[e];return r==null&&Xo(),r},Jge=function(){var e=k.useContext(w3);return e},Zge=function(){return k.useContext(_3)},Uw=function(){return k.useContext(M3)},qw=function(){return k.useContext(E3)};function ks(t){"@babel/helpers - typeof";return ks=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ks(t)}function Qge(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function eye(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,O3(r.key),r)}}function tye(t,e,n){return e&&eye(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function nye(t,e,n){return e=Uh(e),rye(t,N3()?Reflect.construct(e,n||[],Uh(t).constructor):e.apply(t,n))}function rye(t,e){if(e&&(ks(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return iye(t)}function iye(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function N3(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(N3=function(){return!!t})()}function Uh(t){return Uh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Uh(t)}function oye(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&MS(t,e)}function MS(t,e){return MS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},MS(t,e)}function vL(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function bL(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?vL(Object(n),!0).forEach(function(r){Bw(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):vL(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Bw(t,e,n){return e=O3(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function O3(t){var e=aye(t,"string");return ks(e)=="symbol"?e:e+""}function aye(t,e){if(ks(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(ks(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}function sye(t,e){return fye(t)||cye(t,e)||uye(t,e)||lye()}function lye(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 361In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function uye(t,e){if(t){if(typeof t=="string")return xL(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return xL(t,e)}}function xL(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function cye(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,o,s,u=[],c=!0,f=!1;try{if(o=(n=n.call(t)).next,e!==0)for(;!(c=(r=o.call(n)).done)&&(u.push(r.value),u.length!==e);c=!0);}catch(p){f=!0,i=p}finally{try{if(!c&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(f)throw i}}return u}}function fye(t){if(Array.isArray(t))return t}function PS(){return PS=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},PS.apply(this,arguments)}var dye=function(e,n){var r;return j.isValidElement(e)?r=j.cloneElement(e,n):Ce(e)?r=e(n):r=j.createElement("line",PS({},n,{className:"recharts-reference-line-line"})),r},hye=function(e,n,r,i,o,s,u,c,f){var p=o.x,y=o.y,v=o.width,x=o.height;if(r){var w=f.y,A=e.y.apply(w,{position:s});if(_r(f,"discard")&&!e.y.isInRange(A))return null;var S=[{x:p+v,y:A},{x:p,y:A}];return c==="left"?S.reverse():S}if(n){var C=f.x,P=e.x.apply(C,{position:s});if(_r(f,"discard")&&!e.x.isInRange(P))return null;var M=[{x:P,y:y+x},{x:P,y}];return u==="top"?M.reverse():M}if(i){var O=f.segment,E=O.map(function(N){return e.apply(N,{position:s})});return _r(f,"discard")&&oge(E,function(N){return!e.isInRange(N)})?null:E}return null};function pye(t){var e=t.x,n=t.y,r=t.segment,i=t.xAxisId,o=t.yAxisId,s=t.shape,u=t.className,c=t.alwaysShow,f=Yge(),p=P3(i),y=R3(o),v=Jge();if(!f||!v)return null;dr(c===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var x=Iw({x:p.scale,y:y.scale}),w=kt(e),A=kt(n),S=r&&r.length===2,C=hye(x,w,A,S,v,t.position,p.orientation,y.orientation,t);if(!C)return null;var P=sye(C,2),M=P[0],O=M.x,E=M.y,N=P[1],D=N.x,L=N.y,U=_r(t,"hidden")?"url(#".concat(f,")"):void 0,F=bL(bL({clipPath:U},_e(t,!0)),{},{x1:O,y1:E,x2:D,y2:L});return j.createElement(We,{className:De("recharts-reference-line",u)},dye(s,F),jt.renderCallByParent(t,Lge({x1:O,y1:E,x2:D,y2:L})))}var $w=(function(t){function e(){return Qge(this,e),nye(this,e,arguments)}return oye(e,t),tye(e,[{key:"render",value:function(){return j.createElement(pye,this.props)}}])})(j.Component);Bw($w,"displayName","ReferenceLine");Bw($w,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function RS(){return RS=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},RS.apply(this,arguments)}function Ls(t){"@babel/helpers - typeof";return Ls=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ls(t)}function TL(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function SL(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?TL(Object(n),!0).forEach(function(r){Lp(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):TL(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function mye(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function gye(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,I3(r.key),r)}}function yye(t,e,n){return e&&gye(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function vye(t,e,n){return e=qh(e),bye(t,D3()?Reflect.construct(e,n||[],qh(t).constructor):e.apply(t,n))}function bye(t,e){if(e&&(Ls(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return xye(t)}function xye(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function D3(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(D3=function(){return!!t})()}function qh(t){return qh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},qh(t)}function Tye(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&NS(t,e)}function NS(t,e){return NS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},NS(t,e)}function Lp(t,e,n){return e=I3(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function I3(t){var e=Sye(t,"string");return Ls(e)=="symbol"?e:e+""}function Sye(t,e){if(Ls(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(Ls(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var Aye=function(e){var n=e.x,r=e.y,i=e.xAxis,o=e.yAxis,s=Iw({x:i.scale,y:o.scale}),u=s.apply({x:n,y:r},{bandAware:!0});return _r(e,"discard")&&!s.isInRange(u)?null:u},Up=(function(t){function e(){return mye(this,e),vye(this,e,arguments)}return Tye(e,t),yye(e,[{key:"render",value:function(){var r=this.props,i=r.x,o=r.y,s=r.r,u=r.alwaysShow,c=r.clipPathId,f=kt(i),p=kt(o);if(dr(u===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!f||!p)return null;var y=Aye(this.props);if(!y)return null;var v=y.x,x=y.y,w=this.props,A=w.shape,S=w.className,C=_r(this.props,"hidden")?"url(#".concat(c,")"):void 0,P=SL(SL({clipPath:C},_e(this.props,!0)),{},{cx:v,cy:x});return j.createElement(We,{className:De("recharts-reference-dot",S)},e.renderDot(A,P),jt.renderCallByParent(this.props,{x:v-s,y:x-s,width:2*s,height:2*s}))}}])})(j.Component);Lp(Up,"displayName","ReferenceDot");Lp(Up,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});Lp(Up,"renderDot",function(t,e){var n;return j.isValidElement(t)?n=j.cloneElement(t,e):Ce(t)?n=t(e):n=j.createElement(Dw,RS({},e,{cx:e.cx,cy:e.cy,className:"recharts-reference-dot-dot"})),n});function OS(){return OS=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},OS.apply(this,arguments)}function Us(t){"@babel/helpers - typeof";return Us=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Us(t)}function AL(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function wL(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?AL(Object(n),!0).forEach(function(r){qp(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):AL(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function wye(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _ye(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,L3(r.key),r)}}function Cye(t,e,n){return e&&_ye(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function Eye(t,e,n){return e=Bh(e),Mye(t,k3()?Reflect.construct(e,n||[],Bh(t).constructor):e.apply(t,n))}function Mye(t,e){if(e&&(Us(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Pye(t)}function Pye(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function k3(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(k3=function(){return!!t})()}function Bh(t){return Bh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Bh(t)}function Rye(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&DS(t,e)}function DS(t,e){return DS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},DS(t,e)}function qp(t,e,n){return e=L3(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function L3(t){var e=Nye(t,"string");return Us(e)=="symbol"?e:e+""}function Nye(t,e){if(Us(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(Us(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var Oye=function(e,n,r,i,o){var s=o.x1,u=o.x2,c=o.y1,f=o.y2,p=o.xAxis,y=o.yAxis;if(!p||!y)return null;var v=Iw({x:p.scale,y:y.scale}),x={x:e?v.x.apply(s,{position:"start"}):v.x.rangeMin,y:r?v.y.apply(c,{position:"start"}):v.y.rangeMin},w={x:n?v.x.apply(u,{position:"end"}):v.x.rangeMax,y:i?v.y.apply(f,{position:"end"}):v.y.rangeMax};return _r(o,"discard")&&(!v.isInRange(x)||!v.isInRange(w))?null:S3(x,w)},Bp=(function(t){function e(){return wye(this,e),Eye(this,e,arguments)}return Rye(e,t),Cye(e,[{key:"render",value:function(){var r=this.props,i=r.x1,o=r.x2,s=r.y1,u=r.y2,c=r.className,f=r.alwaysShow,p=r.clipPathId;dr(f===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var y=kt(i),v=kt(o),x=kt(s),w=kt(u),A=this.props.shape;if(!y&&!v&&!x&&!w&&!A)return null;var S=Oye(y,v,x,w,this.props);if(!S&&!A)return null;var C=_r(this.props,"hidden")?"url(#".concat(p,")"):void 0;return j.createElement(We,{className:De("recharts-reference-area",c)},e.renderRect(A,wL(wL({clipPath:C},_e(this.props,!0)),S)),jt.renderCallByParent(this.props,S))}}])})(j.Component);qp(Bp,"displayName","ReferenceArea");qp(Bp,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});qp(Bp,"renderRect",function(t,e){var n;return j.isValidElement(t)?n=j.cloneElement(t,e):Ce(t)?n=t(e):n=j.createElement(Ow,OS({},e,{className:"recharts-reference-area-rect"})),n});function U3(t,e,n){if(e<1)return[];if(e===1&&n===void 0)return t;for(var r=[],i=0;i<t.length;i+=e)r.push(t[i]);return r}function Dye(t,e,n){var r={width:t.width+e.width,height:t.height+e.height};return qge(r,n)}function Iye(t,e,n){var r=n==="width",i=t.x,o=t.y,s=t.width,u=t.height;return e===1?{start:r?i:o,end:r?i+s:o+u}:{start:r?i+s:o+u,end:r?i:o}}function $h(t,e,n,r,i){if(t*e<t*r||t*e>t*i)return!1;var o=n();return t*(e-t*o/2-r)>=0&&t*(e+t*o/2-i)<=0}function kye(t,e){return U3(t,e+1)}function Lye(t,e,n,r,i){for(var o=(r||[]).slice(),s=e.start,u=e.end,c=0,f=1,p=s,y=function(){var w=r==null?void 0:r[c];if(w===void 0)return{v:U3(r,f)};var A=c,S,C=function(){return S===void 0&&(S=n(w,A)),S},P=w.coordinate,M=c===0||$h(t,P,C,p,u);M||(c=0,p=s,f+=1),M&&(p=P+t*(C()/2+i),c+=f)},v;f<=o.length;)if(v=y(),v)return v.v;return[]}function Sc(t){"@babel/helpers - typeof";return Sc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Sc(t)}function _L(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Qt(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?_L(Object(n),!0).forEach(function(r){Uye(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):_L(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Uye(t,e,n){return e=qye(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function qye(t){var e=Bye(t,"string");return Sc(e)=="symbol"?e:e+""}function Bye(t,e){if(Sc(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(Sc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function $ye(t,e,n,r,i){for(var o=(r||[]).slice(),s=o.length,u=e.start,c=e.end,f=function(v){var x=o[v],w,A=function(){return w===void 0&&(w=n(x,v)),w};if(v===s-1){var S=t*(x.coordinate+t*A()/2-c);o[v]=x=Qt(Qt({},x),{},{tickCoord:S>0?x.coordinate-S*t:x.coordinate})}else o[v]=x=Qt(Qt({},x),{},{tickCoord:x.coordinate});var C=$h(t,x.tickCoord,A,u,c);C&&(c=x.tickCoord-t*(A()/2+i),o[v]=Qt(Qt({},x),{},{isShow:!0}))},p=s-1;p>=0;p--)f(p);return o}function Vye(t,e,n,r,i,o){var s=(r||[]).slice(),u=s.length,c=e.start,f=e.end;if(o){var p=r[u-1],y=n(p,u-1),v=t*(p.coordinate+t*y/2-f);s[u-1]=p=Qt(Qt({},p),{},{tickCoord:v>0?p.coordinate-v*t:p.coordinate});var x=$h(t,p.tickCoord,function(){return y},c,f);x&&(f=p.tickCoord-t*(y/2+i),s[u-1]=Qt(Qt({},p),{},{isShow:!0}))}for(var w=o?u-1:u,A=function(P){var M=s[P],O,E=function(){return O===void 0&&(O=n(M,P)),O};if(P===0){var N=t*(M.coordinate-t*E()/2-c);s[P]=M=Qt(Qt({},M),{},{tickCoord:N<0?M.coordinate-N*t:M.coordinate})}else s[P]=M=Qt(Qt({},M),{},{tickCoord:M.coordinate});var D=$h(t,M.tickCoord,E,c,f);D&&(c=M.tickCoord+t*(E()/2+i),s[P]=Qt(Qt({},M),{},{isShow:!0}))},S=0;S<w;S++)A(S);return s}function Vw(t,e,n){var r=t.tick,i=t.ticks,o=t.viewBox,s=t.minTickGap,u=t.orientation,c=t.interval,f=t.tickFormatter,p=t.unit,y=t.angle;if(!i||!i.length||!r)return[];if(fe(c)||nl.isSsr)return kye(i,typeof c=="number"&&fe(c)?c:0);var v=[],x=u==="top"||u==="bottom"?"width":"height",w=p&&x==="width"?Nu(p,{fontSize:e,letterSpacing:n}):{width:0,height:0},A=function(M,O){var E=Ce(f)?f(M.value,O):M.value;return x==="width"?Dye(Nu(E,{fontSize:e,letterSpacing:n}),w,y):Nu(E,{fontSize:e,letterSpacing:n})[x]},S=i.length>=2?ln(i[1].coordinate-i[0].coordinate):1,C=Iye(o,S,x);return c==="equidistantPreserveStart"?Lye(S,C,A,i,s):(c==="preserveStart"||c==="preserveStartEnd"?v=Vye(S,C,A,i,s,c==="preserveStartEnd"):v=$ye(S,C,A,i,s),v.filter(function(P){return P.isShow}))}var jye=["viewBox"],Fye=["viewBox"],Hye=["ticks"];function qs(t){"@babel/helpers - typeof";return qs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},qs(t)}function as(){return as=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},as.apply(this,arguments)}function CL(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Ot(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?CL(Object(n),!0).forEach(function(r){jw(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):CL(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Nx(t,e){if(t==null)return{};var n=Gye(t,e),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)r=o[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function Gye(t,e){if(t==null)return{};var n={};for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){if(e.indexOf(r)>=0)continue;n[r]=t[r]}return n}function zye(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function EL(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,B3(r.key),r)}}function Kye(t,e,n){return e&&EL(t.prototype,e),n&&EL(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function Yye(t,e,n){return e=Vh(e),Wye(t,q3()?Reflect.construct(e,n||[],Vh(t).constructor):e.apply(t,n))}function Wye(t,e){if(e&&(qs(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Xye(t)}function Xye(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function q3(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(q3=function(){return!!t})()}function Vh(t){return Vh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Vh(t)}function Jye(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&IS(t,e)}function IS(t,e){return IS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},IS(t,e)}function jw(t,e,n){return e=B3(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function B3(t){var e=Zye(t,"string");return qs(e)=="symbol"?e:e+""}function Zye(t,e){if(qs(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(qs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var al=(function(t){function e(n){var r;return zye(this,e),r=Yye(this,e,[n]),r.state={fontSize:"",letterSpacing:""},r}return Jye(e,t),Kye(e,[{key:"shouldComponentUpdate",value:function(r,i){var o=r.viewBox,s=Nx(r,jye),u=this.props,c=u.viewBox,f=Nx(u,Fye);return!ps(o,c)||!ps(s,f)||!ps(i,this.state)}},{key:"componentDidMount",value:function(){var r=this.layerReference;if(r){var i=r.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];i&&this.setState({fontSize:window.getComputedStyle(i).fontSize,letterSpacing:window.getComputedStyle(i).letterSpacing})}}},{key:"getTickLineCoord",value:function(r){var i=this.props,o=i.x,s=i.y,u=i.width,c=i.height,f=i.orientation,p=i.tickSize,y=i.mirror,v=i.tickMargin,x,w,A,S,C,P,M=y?-1:1,O=r.tickSize||p,E=fe(r.tickCoord)?r.tickCoord:r.coordinate;switch(f){case"top":x=w=r.coordinate,S=s+ +!y*c,A=S-M*O,P=A-M*v,C=E;break;case"left":A=S=r.coordinate,w=o+ +!y*u,x=w-M*O,C=x-M*v,P=E;break;case"right":A=S=r.coordinate,w=o+ +y*u,x=w+M*O,C=x+M*v,P=E;break;default:x=w=r.coordinate,S=s+ +y*c,A=S+M*O,P=A+M*v,C=E;break}return{line:{x1:x,y1:A,x2:w,y2:S},tick:{x:C,y:P}}}},{key:"getTickTextAnchor",value:function(){var r=this.props,i=r.orientation,o=r.mirror,s;switch(i){case"left":s=o?"start":"end";break;case"right":s=o?"end":"start";break;default:s="middle";break}return s}},{key:"getTickVerticalAnchor",value:function(){var r=this.props,i=r.orientation,o=r.mirror,s="end";switch(i){case"left":case"right":s="middle";break;case"top":s=o?"start":"end";break;default:s=o?"end":"start";break}return s}},{key:"renderAxisLine",value:function(){var r=this.props,i=r.x,o=r.y,s=r.width,u=r.height,c=r.orientation,f=r.mirror,p=r.axisLine,y=Ot(Ot(Ot({},_e(this.props,!1)),_e(p,!1)),{},{fill:"none"});if(c==="top"||c==="bottom"){var v=+(c==="top"&&!f||c==="bottom"&&f);y=Ot(Ot({},y),{},{x1:i,y1:o+v*u,x2:i+s,y2:o+v*u})}else{var x=+(c==="left"&&!f||c==="right"&&f);y=Ot(Ot({},y),{},{x1:i+x*s,y1:o,x2:i+x*s,y2:o+u})}return j.createElement("line",as({},y,{className:De("recharts-cartesian-axis-line",Rn(p,"className"))}))}},{key:"renderTicks",value:function(r,i,o){var s=this,u=this.props,c=u.tickLine,f=u.stroke,p=u.tick,y=u.tickFormatter,v=u.unit,x=Vw(Ot(Ot({},this.props),{},{ticks:r}),i,o),w=this.getTickTextAnchor(),A=this.getTickVerticalAnchor(),S=_e(this.props,!1),C=_e(p,!1),P=Ot(Ot({},S),{},{fill:"none"},_e(c,!1)),M=x.map(function(O,E){var N=s.getTickLineCoord(O),D=N.line,L=N.tick,U=Ot(Ot(Ot(Ot({textAnchor:w,verticalAnchor:A},S),{},{stroke:"none",fill:f},C),L),{},{index:E,payload:O,visibleTicksCount:x.length,tickFormatter:y});return j.createElement(We,as({className:"recharts-cartesian-axis-tick",key:"tick-".concat(O.value,"-").concat(O.coordinate,"-").concat(O.tickCoord)},Ko(s.props,O,E)),c&&j.createElement("line",as({},P,D,{className:De("recharts-cartesian-axis-tick-line",Rn(c,"className"))})),p&&e.renderTickItem(p,U,"".concat(Ce(y)?y(O.value,E):O.value).concat(v||"")))});return j.createElement("g",{className:"recharts-cartesian-axis-ticks"},M)}},{key:"render",value:function(){var r=this,i=this.props,o=i.axisLine,s=i.width,u=i.height,c=i.ticksGenerator,f=i.className,p=i.hide;if(p)return null;var y=this.props,v=y.ticks,x=Nx(y,Hye),w=v;return Ce(c)&&(w=v&&v.length>0?c(this.props):c(x)),s<=0||u<=0||!w||!w.length?null:j.createElement(We,{className:De("recharts-cartesian-axis",f),ref:function(S){r.layerReference=S}},o&&this.renderAxisLine(),this.renderTicks(w,this.state.fontSize,this.state.letterSpacing),jt.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(r,i,o){var s,u=De(i.className,"recharts-cartesian-axis-tick-value");return j.isValidElement(r)?s=j.cloneElement(r,Ot(Ot({},i),{},{className:u})):Ce(r)?s=r(Ot(Ot({},i),{},{className:u})):s=j.createElement(Yo,as({},i,{className:"recharts-cartesian-axis-tick-value"}),o),s}}])})(k.Component);jw(al,"displayName","CartesianAxis");jw(al,"defaultProps",{x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"});var Qye=["x1","y1","x2","y2","key"],eve=["offset"];function Jo(t){"@babel/helpers - typeof";return Jo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Jo(t)}function ML(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function en(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?ML(Object(n),!0).forEach(function(r){tve(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ML(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function tve(t,e,n){return e=nve(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function nve(t){var e=rve(t,"string");return Jo(e)=="symbol"?e:e+""}function rve(t,e){if(Jo(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(Jo(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function $o(){return $o=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},$o.apply(this,arguments)}function PL(t,e){if(t==null)return{};var n=ive(t,e),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)r=o[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function ive(t,e){if(t==null)return{};var n={};for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){if(e.indexOf(r)>=0)continue;n[r]=t[r]}return n}var ove=function(e){var n=e.fill;if(!n||n==="none")return null;var r=e.fillOpacity,i=e.x,o=e.y,s=e.width,u=e.height,c=e.ry;return j.createElement("rect",{x:i,y:o,ry:c,width:s,height:u,stroke:"none",fill:n,fillOpacity:r,className:"recharts-cartesian-grid-bg"})};function $3(t,e){var n;if(j.isValidElement(t))n=j.cloneElement(t,e);else if(Ce(t))n=t(e);else{var r=e.x1,i=e.y1,o=e.x2,s=e.y2,u=e.key,c=PL(e,Qye),f=_e(c,!1);f.offset;var p=PL(f,eve);n=j.createElement("line",$o({},p,{x1:r,y1:i,x2:o,y2:s,fill:"none",key:u}))}return n}function ave(t){var e=t.x,n=t.width,r=t.horizontal,i=r===void 0?!0:r,o=t.horizontalPoints;if(!i||!o||!o.length)return null;var s=o.map(function(u,c){var f=en(en({},t),{},{x1:e,y1:u,x2:e+n,y2:u,key:"line-".concat(c),index:c});return $3(i,f)});return j.createElement("g",{className:"recharts-cartesian-grid-horizontal"},s)}function sve(t){var e=t.y,n=t.height,r=t.vertical,i=r===void 0?!0:r,o=t.verticalPoints;if(!i||!o||!o.length)return null;var s=o.map(function(u,c){var f=en(en({},t),{},{x1:u,y1:e,x2:u,y2:e+n,key:"line-".concat(c),index:c});return $3(i,f)});return j.createElement("g",{className:"recharts-cartesian-grid-vertical"},s)}function lve(t){var e=t.horizontalFill,n=t.fillOpacity,r=t.x,i=t.y,o=t.width,s=t.height,u=t.horizontalPoints,c=t.horizontal,f=c===void 0?!0:c;if(!f||!e||!e.length)return null;var p=u.map(function(v){return Math.round(v+i-i)}).sort(function(v,x){return v-x});i!==p[0]&&p.unshift(0);var y=p.map(function(v,x){var w=!p[x+1],A=w?i+s-v:p[x+1]-v;if(A<=0)return null;var S=x%e.length;return j.createElement("rect",{key:"react-".concat(x),y:v,x:r,height:A,width:o,stroke:"none",fill:e[S],fillOpacity:n,className:"recharts-cartesian-grid-bg"})});return j.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},y)}function uve(t){var e=t.vertical,n=e===void 0?!0:e,r=t.verticalFill,i=t.fillOpacity,o=t.x,s=t.y,u=t.width,c=t.height,f=t.verticalPoints;if(!n||!r||!r.length)return null;var p=f.map(function(v){return Math.round(v+o-o)}).sort(function(v,x){return v-x});o!==p[0]&&p.unshift(0);var y=p.map(function(v,x){var w=!p[x+1],A=w?o+u-v:p[x+1]-v;if(A<=0)return null;var S=x%r.length;return j.createElement("rect",{key:"react-".concat(x),x:v,y:s,width:A,height:c,stroke:"none",fill:r[S],fillOpacity:i,className:"recharts-cartesian-grid-bg"})});return j.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},y)}var cve=function(e,n){var r=e.xAxis,i=e.width,o=e.height,s=e.offset;return VV(Vw(en(en(en({},al.defaultProps),r),{},{ticks:ti(r,!0),viewBox:{x:0,y:0,width:i,height:o}})),s.left,s.left+s.width,n)},fve=function(e,n){var r=e.yAxis,i=e.width,o=e.height,s=e.offset;return VV(Vw(en(en(en({},al.defaultProps),r),{},{ticks:ti(r,!0),viewBox:{x:0,y:0,width:i,height:o}})),s.top,s.top+s.height,n)},Ya={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function V3(t){var e,n,r,i,o,s,u=Uw(),c=qw(),f=Zge(),p=en(en({},t),{},{stroke:(e=t.stroke)!==null&&e!==void 0?e:Ya.stroke,fill:(n=t.fill)!==null&&n!==void 0?n:Ya.fill,horizontal:(r=t.horizontal)!==null&&r!==void 0?r:Ya.horizontal,horizontalFill:(i=t.horizontalFill)!==null&&i!==void 0?i:Ya.horizontalFill,vertical:(o=t.vertical)!==null&&o!==void 0?o:Ya.vertical,verticalFill:(s=t.verticalFill)!==null&&s!==void 0?s:Ya.verticalFill,x:fe(t.x)?t.x:f.left,y:fe(t.y)?t.y:f.top,width:fe(t.width)?t.width:f.width,height:fe(t.height)?t.height:f.height}),y=p.x,v=p.y,x=p.width,w=p.height,A=p.syncWithTicks,S=p.horizontalValues,C=p.verticalValues,P=Wge(),M=Xge();if(!fe(x)||x<=0||!fe(w)||w<=0||!fe(y)||y!==+y||!fe(v)||v!==+v)return null;var O=p.verticalCoordinatesGenerator||cve,E=p.horizontalCoordinatesGenerator||fve,N=p.horizontalPoints,D=p.verticalPoints;if((!N||!N.length)&&Ce(E)){var L=S&&S.length,U=E({yAxis:M?en(en({},M),{},{ticks:L?S:M.ticks}):void 0,width:u,height:c,offset:f},L?!0:A);dr(Array.isArray(U),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(Jo(U),"]")),Array.isArray(U)&&(N=U)}if((!D||!D.length)&&Ce(O)){var F=C&&C.length,B=O({xAxis:P?en(en({},P),{},{ticks:F?C:P.ticks}):void 0,width:u,height:c,offset:f},F?!0:A);dr(Array.isArray(B),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(Jo(B),"]")),Array.isArray(B)&&(D=B)}return j.createElement("g",{className:"recharts-cartesian-grid"},j.createElement(ove,{fill:p.fill,fillOpacity:p.fillOpacity,x:p.x,y:p.y,width:p.width,height:p.height,ry:p.ry}),j.createElement(ave,$o({},p,{offset:f,horizontalPoints:N,xAxis:P,yAxis:M})),j.createElement(sve,$o({},p,{offset:f,verticalPoints:D,xAxis:P,yAxis:M})),j.createElement(lve,$o({},p,{horizontalPoints:N})),j.createElement(uve,$o({},p,{verticalPoints:D})))}V3.displayName="CartesianGrid";function Bs(t){"@babel/helpers - typeof";return Bs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Bs(t)}function dve(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function hve(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,H3(r.key),r)}}function pve(t,e,n){return e&&hve(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function mve(t,e,n){return e=jh(e),gve(t,j3()?Reflect.construct(e,n||[],jh(t).constructor):e.apply(t,n))}function gve(t,e){if(e&&(Bs(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return yve(t)}function yve(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function j3(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(j3=function(){return!!t})()}function jh(t){return jh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},jh(t)}function vve(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&kS(t,e)}function kS(t,e){return kS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},kS(t,e)}function F3(t,e,n){return e=H3(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function H3(t){var e=bve(t,"string");return Bs(e)=="symbol"?e:e+""}function bve(t,e){if(Bs(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(Bs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}function LS(){return LS=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},LS.apply(this,arguments)}function xve(t){var e=t.xAxisId,n=Uw(),r=qw(),i=P3(e);return i==null?null:k.createElement(al,LS({},i,{className:De("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:n,height:r},ticksGenerator:function(s){return ti(s,!0)}}))}var $p=(function(t){function e(){return dve(this,e),mve(this,e,arguments)}return vve(e,t),pve(e,[{key:"render",value:function(){return k.createElement(xve,this.props)}}])})(k.Component);F3($p,"displayName","XAxis");F3($p,"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 $s(t){"@babel/helpers - typeof";return $s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},$s(t)}function Tve(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Sve(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,K3(r.key),r)}}function Ave(t,e,n){return e&&Sve(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function wve(t,e,n){return e=Fh(e),_ve(t,G3()?Reflect.construct(e,n||[],Fh(t).constructor):e.apply(t,n))}function _ve(t,e){if(e&&($s(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Cve(t)}function Cve(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function G3(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(G3=function(){return!!t})()}function Fh(t){return Fh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Fh(t)}function Eve(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&US(t,e)}function US(t,e){return US=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},US(t,e)}function z3(t,e,n){return e=K3(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function K3(t){var e=Mve(t,"string");return $s(e)=="symbol"?e:e+""}function Mve(t,e){if($s(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if($s(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}function qS(){return qS=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},qS.apply(this,arguments)}var Pve=function(e){var n=e.yAxisId,r=Uw(),i=qw(),o=R3(n);return o==null?null:k.createElement(al,qS({},o,{className:De("recharts-".concat(o.axisType," ").concat(o.axisType),o.className),viewBox:{x:0,y:0,width:r,height:i},ticksGenerator:function(u){return ti(u,!0)}}))},Vp=(function(t){function e(){return Tve(this,e),wve(this,e,arguments)}return Eve(e,t),Ave(e,[{key:"render",value:function(){return k.createElement(Pve,this.props)}}])})(k.Component);z3(Vp,"displayName","YAxis");z3(Vp,"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 RL(t){return Dve(t)||Ove(t)||Nve(t)||Rve()}function Rve(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 362In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Nve(t,e){if(t){if(typeof t=="string")return BS(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return BS(t,e)}}function Ove(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Dve(t){if(Array.isArray(t))return BS(t)}function BS(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var $S=function(e,n,r,i,o){var s=Xn(e,$w),u=Xn(e,Up),c=[].concat(RL(s),RL(u)),f=Xn(e,Bp),p="".concat(i,"Id"),y=i[0],v=n;if(c.length&&(v=c.reduce(function(A,S){if(S.props[p]===r&&_r(S.props,"extendDomain")&&fe(S.props[y])){var C=S.props[y];return[Math.min(A[0],C),Math.max(A[1],C)]}return A},v)),f.length){var x="".concat(y,"1"),w="".concat(y,"2");v=f.reduce(function(A,S){if(S.props[p]===r&&_r(S.props,"extendDomain")&&fe(S.props[x])&&fe(S.props[w])){var C=S.props[x],P=S.props[w];return[Math.min(A[0],C,P),Math.max(A[1],C,P)]}return A},v)}return o&&o.length&&(v=o.reduce(function(A,S){return fe(S)?[Math.min(A[0],S),Math.max(A[1],S)]:A},v)),v},Ox={exports:{}},NL;function Ive(){return NL||(NL=1,(function(t){var e=Object.prototype.hasOwnProperty,n="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1));function i(c,f,p){this.fn=c,this.context=f,this.once=p||!1}function o(c,f,p,y,v){if(typeof p!="function")throw new TypeError("The listener must be a function");var x=new i(p,y||c,v),w=n?n+f:f;return c._events[w]?c._events[w].fn?c._events[w]=[c._events[w],x]:c._events[w].push(x):(c._events[w]=x,c._eventsCount++),c}function s(c,f){--c._eventsCount===0?c._events=new r:delete c._events[f]}function u(){this._events=new r,this._eventsCount=0}u.prototype.eventNames=function(){var f=[],p,y;if(this._eventsCount===0)return f;for(y in p=this._events)e.call(p,y)&&f.push(n?y.slice(1):y);return Object.getOwnPropertySymbols?f.concat(Object.getOwnPropertySymbols(p)):f},u.prototype.listeners=function(f){var p=n?n+f:f,y=this._events[p];if(!y)return[];if(y.fn)return[y.fn];for(var v=0,x=y.length,w=new Array(x);v<x;v++)w[v]=y[v].fn;return w},u.prototype.listenerCount=function(f){var p=n?n+f:f,y=this._events[p];return y?y.fn?1:y.length:0},u.prototype.emit=function(f,p,y,v,x,w){var A=n?n+f:f;if(!this._events[A])return!1;var S=this._events[A],C=arguments.length,P,M;if(S.fn){switch(S.once&&this.removeListener(f,S.fn,void 0,!0),C){case 1:return S.fn.call(S.context),!0;case 2:return S.fn.call(S.context,p),!0;case 3:return S.fn.call(S.context,p,y),!0;case 4:return S.fn.call(S.context,p,y,v),!0;case 5:return S.fn.call(S.context,p,y,v,x),!0;case 6:return S.fn.call(S.context,p,y,v,x,w),!0}for(M=1,P=new Array(C-1);M<C;M++)P[M-1]=arguments[M];S.fn.apply(S.context,P)}else{var O=S.length,E;for(M=0;M<O;M++)switch(S[M].once&&this.removeListener(f,S[M].fn,void 0,!0),C){case 1:S[M].fn.call(S[M].context);break;case 2:S[M].fn.call(S[M].context,p);break;case 3:S[M].fn.call(S[M].context,p,y);break;case 4:S[M].fn.call(S[M].context,p,y,v);break;default:if(!P)for(E=1,P=new Array(C-1);E<C;E++)P[E-1]=arguments[E];S[M].fn.apply(S[M].context,P)}}return!0},u.prototype.on=function(f,p,y){return o(this,f,p,y,!1)},u.prototype.once=function(f,p,y){return o(this,f,p,y,!0)},u.prototype.removeListener=function(f,p,y,v){var x=n?n+f:f;if(!this._events[x])return this;if(!p)return s(this,x),this;var w=this._events[x];if(w.fn)w.fn===p&&(!v||w.once)&&(!y||w.context===y)&&s(this,x);else{for(var A=0,S=[],C=w.length;A<C;A++)(w[A].fn!==p||v&&!w[A].once||y&&w[A].context!==y)&&S.push(w[A]);S.length?this._events[x]=S.length===1?S[0]:S:s(this,x)}return this},u.prototype.removeAllListeners=function(f){var p;return f?(p=n?n+f:f,this._events[p]&&s(this,p)):(this._events=new r,this._eventsCount=0),this},u.prototype.off=u.prototype.removeListener,u.prototype.addListener=u.prototype.on,u.prefixed=n,u.EventEmitter=u,t.exports=u})(Ox)),Ox.exports}var kve=Ive();const Lve=$e(kve);var Dx=new Lve,Ix="recharts.syncMouseEvents";function Ac(t){"@babel/helpers - typeof";return Ac=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ac(t)}function Uve(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function qve(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Y3(r.key),r)}}function Bve(t,e,n){return e&&qve(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function kx(t,e,n){return e=Y3(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Y3(t){var e=$ve(t,"string");return Ac(e)=="symbol"?e:e+""}function $ve(t,e){if(Ac(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(Ac(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var Vve=(function(){function t(){Uve(this,t),kx(this,"activeIndex",0),kx(this,"coordinateList",[]),kx(this,"layout","horizontal")}return Bve(t,[{key:"setDetails",value:function(n){var r,i=n.coordinateList,o=i===void 0?null:i,s=n.container,u=s===void 0?null:s,c=n.layout,f=c===void 0?null:c,p=n.offset,y=p===void 0?null:p,v=n.mouseHandlerCallback,x=v===void 0?null:v;this.coordinateList=(r=o??this.coordinateList)!==null&&r!==void 0?r:[],this.container=u??this.container,this.layout=f??this.layout,this.offset=y??this.offset,this.mouseHandlerCallback=x??this.mouseHandlerCallback,this.activeIndex=Math.min(Math.max(this.activeIndex,0),this.coordinateList.length-1)}},{key:"focus",value:function(){this.spoofMouse()}},{key:"keyboardEvent",value:function(n){if(this.coordinateList.length!==0)switch(n.key){case"ArrowRight":{if(this.layout!=="horizontal")return;this.activeIndex=Math.min(this.activeIndex+1,this.coordinateList.length-1),this.spoofMouse();break}case"ArrowLeft":{if(this.layout!=="horizontal")return;this.activeIndex=Math.max(this.activeIndex-1,0),this.spoofMouse();break}}}},{key:"setIndex",value:function(n){this.activeIndex=n}},{key:"spoofMouse",value:function(){var n,r;if(this.layout==="horizontal"&&this.coordinateList.length!==0){var i=this.container.getBoundingClientRect(),o=i.x,s=i.y,u=i.height,c=this.coordinateList[this.activeIndex].coordinate,f=((n=window)===null||n===void 0?void 0:n.scrollX)||0,p=((r=window)===null||r===void 0?void 0:r.scrollY)||0,y=o+c+f,v=s+this.offset.top+u/2+p;this.mouseHandlerCallback({pageX:y,pageY:v})}}}])})();function jve(t,e,n){if(n==="number"&&e===!0&&Array.isArray(t)){var r=t==null?void 0:t[0],i=t==null?void 0:t[1];if(r&&i&&fe(r)&&fe(i))return!0}return!1}function Fve(t,e,n,r){var i=r/2;return{stroke:"none",fill:"#ccc",x:t==="horizontal"?e.x-i:n.left+.5,y:t==="horizontal"?n.top+.5:e.y-i,width:t==="horizontal"?r:n.width-1,height:t==="horizontal"?n.height-1:r}}function W3(t){var e=t.cx,n=t.cy,r=t.radius,i=t.startAngle,o=t.endAngle,s=st(e,n,r,i),u=st(e,n,r,o);return{points:[s,u],cx:e,cy:n,radius:r,startAngle:i,endAngle:o}}function Hve(t,e,n){var r,i,o,s;if(t==="horizontal")r=e.x,o=r,i=n.top,s=n.top+n.height;else if(t==="vertical")i=e.y,s=i,r=n.left,o=n.left+n.width;else if(e.cx!=null&&e.cy!=null)if(t==="centric"){var u=e.cx,c=e.cy,f=e.innerRadius,p=e.outerRadius,y=e.angle,v=st(u,c,f,y),x=st(u,c,p,y);r=v.x,i=v.y,o=x.x,s=x.y}else return W3(e);return[{x:r,y:i},{x:o,y:s}]}function wc(t){"@babel/helpers - typeof";return wc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},wc(t)}function OL(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Ad(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?OL(Object(n),!0).forEach(function(r){Gve(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):OL(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Gve(t,e,n){return e=zve(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function zve(t){var e=Kve(t,"string");return wc(e)=="symbol"?e:e+""}function Kve(t,e){if(wc(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(wc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Yve(t){var e,n,r=t.element,i=t.tooltipEventType,o=t.isActive,s=t.activeCoordinate,u=t.activePayload,c=t.offset,f=t.activeTooltipIndex,p=t.tooltipAxisBandSize,y=t.layout,v=t.chartName,x=(e=r.props.cursor)!==null&&e!==void 0?e:(n=r.type.defaultProps)===null||n===void 0?void 0:n.cursor;if(!r||!x||!o||!s||v!=="ScatterChart"&&i!=="axis")return null;var w,A=uS;if(v==="ScatterChart")w=s,A=Ppe;else if(v==="BarChart")w=Fve(y,s,c,p),A=Ow;else if(y==="radial"){var S=W3(s),C=S.cx,P=S.cy,M=S.radius,O=S.startAngle,E=S.endAngle;w={cx:C,cy:P,startAngle:O,endAngle:E,innerRadius:M,outerRadius:M},A=ZV}else w={points:Hve(y,s,c)},A=uS;var N=Ad(Ad(Ad(Ad({stroke:"#ccc",pointerEvents:"none"},c),w),_e(x,!1)),{},{payload:u,payloadIndex:f,className:De("recharts-tooltip-cursor",x.className)});return k.isValidElement(x)?k.cloneElement(x,N):k.createElement(A,N)}var Wve=["item"],Xve=["children","className","width","height","style","compact","title","desc"];function Vs(t){"@babel/helpers - typeof";return Vs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Vs(t)}function ss(){return ss=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},ss.apply(this,arguments)}function DL(t,e){return Qve(t)||Zve(t,e)||J3(t,e)||Jve()}function Jve(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 363In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Zve(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,o,s,u=[],c=!0,f=!1;try{if(o=(n=n.call(t)).next,e!==0)for(;!(c=(r=o.call(n)).done)&&(u.push(r.value),u.length!==e);c=!0);}catch(p){f=!0,i=p}finally{try{if(!c&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(f)throw i}}return u}}function Qve(t){if(Array.isArray(t))return t}function IL(t,e){if(t==null)return{};var n=e0e(t,e),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)r=o[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function e0e(t,e){if(t==null)return{};var n={};for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){if(e.indexOf(r)>=0)continue;n[r]=t[r]}return n}function t0e(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function n0e(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Z3(r.key),r)}}function r0e(t,e,n){return e&&n0e(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function i0e(t,e,n){return e=Hh(e),o0e(t,X3()?Reflect.construct(e,n||[],Hh(t).constructor):e.apply(t,n))}function o0e(t,e){if(e&&(Vs(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return a0e(t)}function a0e(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function X3(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(X3=function(){return!!t})()}function Hh(t){return Hh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Hh(t)}function s0e(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&VS(t,e)}function VS(t,e){return VS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},VS(t,e)}function js(t){return c0e(t)||u0e(t)||J3(t)||l0e()}function l0e(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 364In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function J3(t,e){if(t){if(typeof t=="string")return jS(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return jS(t,e)}}function u0e(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function c0e(t){if(Array.isArray(t))return jS(t)}function jS(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function kL(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function ie(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?kL(Object(n),!0).forEach(function(r){Ae(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):kL(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Ae(t,e,n){return e=Z3(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Z3(t){var e=f0e(t,"string");return Vs(e)=="symbol"?e:e+""}function f0e(t,e){if(Vs(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(Vs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var d0e={xAxis:["bottom","top"],yAxis:["left","right"]},h0e={width:"100%",height:"100%"},Q3={x:0,y:0};function wd(t){return t}var p0e=function(e,n){return n==="horizontal"?e.x:n==="vertical"?e.y:n==="centric"?e.angle:e.radius},m0e=function(e,n,r,i){var o=n.find(function(p){return p&&p.index===r});if(o){if(e==="horizontal")return{x:o.coordinate,y:i.y};if(e==="vertical")return{x:i.x,y:o.coordinate};if(e==="centric"){var s=o.coordinate,u=i.radius;return ie(ie(ie({},i),st(i.cx,i.cy,u,s)),{},{angle:s,radius:u})}var c=o.coordinate,f=i.angle;return ie(ie(ie({},i),st(i.cx,i.cy,c,f)),{},{angle:f,radius:c})}return Q3},jp=function(e,n){var r=n.graphicalItems,i=n.dataStartIndex,o=n.dataEndIndex,s=(r??[]).reduce(function(u,c){var f=c.props.data;return f&&f.length?[].concat(js(u),js(f)):u},[]);return s.length>0?s:e&&e.length&&fe(i)&&fe(o)?e.slice(i,o+1):[]};function ej(t){return t==="number"?[0,"auto"]:void 0}var FS=function(e,n,r,i){var o=e.graphicalItems,s=e.tooltipAxis,u=jp(n,e);return r<0||!o||!o.length||r>=u.length?null:o.reduce(function(c,f){var p,y=(p=f.props.data)!==null&&p!==void 0?p:n;y&&e.dataStartIndex+e.dataEndIndex!==0&&e.dataEndIndex-e.dataStartIndex>=r&&(y=y.slice(e.dataStartIndex,e.dataEndIndex+1));var v;if(s.dataKey&&!s.allowDuplicatedCategory){var x=y===void 0?u:y;v=wT(x,s.dataKey,i)}else v=y&&y[r]||u[r];return v?[].concat(js(c),[zV(f,v)]):c},[])},LL=function(e,n,r,i){var o=i||{x:e.chartX,y:e.chartY},s=p0e(o,r),u=e.orderedTooltipTicks,c=e.tooltipAxis,f=e.tooltipTicks,p=Qce(s,u,f,c);if(p>=0&&f){var y=f[p]&&f[p].value,v=FS(e,n,p,y),x=m0e(r,u,p,o);return{activeTooltipIndex:p,activeLabel:y,activePayload:v,activeCoordinate:x}}return null},g0e=function(e,n){var r=n.axes,i=n.graphicalItems,o=n.axisType,s=n.axisIdKey,u=n.stackGroups,c=n.dataStartIndex,f=n.dataEndIndex,p=e.layout,y=e.children,v=e.stackOffset,x=$V(p,o);return r.reduce(function(w,A){var S,C=A.type.defaultProps!==void 0?ie(ie({},A.type.defaultProps),A.props):A.props,P=C.type,M=C.dataKey,O=C.allowDataOverflow,E=C.allowDuplicatedCategory,N=C.scale,D=C.ticks,L=C.includeHidden,U=C[s];if(w[U])return w;var F=jp(e.data,{graphicalItems:i.filter(function(re){var ae,he=s in re.props?re.props[s]:(ae=re.type.defaultProps)===null||ae===void 0?void 0:ae[s];return he===U}),dataStartIndex:c,dataEndIndex:f}),B=F.length,z,W,ne;jve(C.domain,O,P)&&(z=iS(C.domain,null,O),x&&(P==="number"||N!=="auto")&&(ne=Du(F,M,"category")));var J=ej(P);if(!z||z.length===0){var $,G=($=C.domain)!==null&&$!==void 0?$:J;if(M){if(z=Du(F,M,P),P==="category"&&x){var te=Kne(z);E&&te?(W=z,z=Oh(0,B)):E||(z=q2(G,z,A).reduce(function(re,ae){return re.indexOf(ae)>=0?re:[].concat(js(re),[ae])},[]))}else if(P==="category")E?z=z.filter(function(re){return re!==""&&!ke(re)}):z=q2(G,z,A).reduce(function(re,ae){return re.indexOf(ae)>=0||ae===""||ke(ae)?re:[].concat(js(re),[ae])},[]);else if(P==="number"){var ue=ife(F,i.filter(function(re){var ae,he,xe=s in re.props?re.props[s]:(ae=re.type.defaultProps)===null||ae===void 0?void 0:ae[s],ve="hide"in re.props?re.props.hide:(he=re.type.defaultProps)===null||he===void 0?void 0:he.hide;return xe===U&&(L||!ve)}),M,o,p);ue&&(z=ue)}x&&(P==="number"||N!=="auto")&&(ne=Du(F,M,"category"))}else x?z=Oh(0,B):u&&u[U]&&u[U].hasStack&&P==="number"?z=v==="expand"?[0,1]:GV(u[U].stackGroups,c,f):z=BV(F,i.filter(function(re){var ae=s in re.props?re.props[s]:re.type.defaultProps[s],he="hide"in re.props?re.props.hide:re.type.defaultProps.hide;return ae===U&&(L||!he)}),P,p,!0);if(P==="number")z=$S(y,z,U,o,D),G&&(z=iS(G,z,O));else if(P==="category"&&G){var q=G,Z=z.every(function(re){return q.indexOf(re)>=0});Z&&(z=q)}}return ie(ie({},w),{},Ae({},U,ie(ie({},C),{},{axisType:o,domain:z,categoricalDomain:ne,duplicateDomain:W,originalDomain:(S=C.domain)!==null&&S!==void 0?S:J,isCategorical:x,layout:p})))},{})},y0e=function(e,n){var r=n.graphicalItems,i=n.Axis,o=n.axisType,s=n.axisIdKey,u=n.stackGroups,c=n.dataStartIndex,f=n.dataEndIndex,p=e.layout,y=e.children,v=jp(e.data,{graphicalItems:r,dataStartIndex:c,dataEndIndex:f}),x=v.length,w=$V(p,o),A=-1;return r.reduce(function(S,C){var P=C.type.defaultProps!==void 0?ie(ie({},C.type.defaultProps),C.props):C.props,M=P[s],O=ej("number");if(!S[M]){A++;var E;return w?E=Oh(0,x):u&&u[M]&&u[M].hasStack?(E=GV(u[M].stackGroups,c,f),E=$S(y,E,M,o)):(E=iS(O,BV(v,r.filter(function(N){var D,L,U=s in N.props?N.props[s]:(D=N.type.defaultProps)===null||D===void 0?void 0:D[s],F="hide"in N.props?N.props.hide:(L=N.type.defaultProps)===null||L===void 0?void 0:L.hide;return U===M&&!F}),"number",p),i.defaultProps.allowDataOverflow),E=$S(y,E,M,o)),ie(ie({},S),{},Ae({},M,ie(ie({axisType:o},i.defaultProps),{},{hide:!0,orientation:Rn(d0e,"".concat(o,".").concat(A%2),null),domain:E,originalDomain:O,isCategorical:w,layout:p})))}return S},{})},v0e=function(e,n){var r=n.axisType,i=r===void 0?"xAxis":r,o=n.AxisComp,s=n.graphicalItems,u=n.stackGroups,c=n.dataStartIndex,f=n.dataEndIndex,p=e.children,y="".concat(i,"Id"),v=Xn(p,o),x={};return v&&v.length?x=g0e(e,{axes:v,graphicalItems:s,axisType:i,axisIdKey:y,stackGroups:u,dataStartIndex:c,dataEndIndex:f}):s&&s.length&&(x=y0e(e,{Axis:o,graphicalItems:s,axisType:i,axisIdKey:y,stackGroups:u,dataStartIndex:c,dataEndIndex:f})),x},b0e=function(e){var n=Gi(e),r=ti(n,!1,!0);return{tooltipTicks:r,orderedTooltipTicks:ow(r,function(i){return i.coordinate}),tooltipAxis:n,tooltipAxisBandSize:xh(n,r)}},UL=function(e){var n=e.children,r=e.defaultShowTooltip,i=Mn(n,Ds),o=0,s=0;return e.data&&e.data.length!==0&&(s=e.data.length-1),i&&i.props&&(i.props.startIndex>=0&&(o=i.props.startIndex),i.props.endIndex>=0&&(s=i.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:o,dataEndIndex:s,activeTooltipIndex:-1,isTooltipActive:!!r}},x0e=function(e){return!e||!e.length?!1:e.some(function(n){var r=ri(n&&n.type);return r&&r.indexOf("Bar")>=0})},qL=function(e){return e==="horizontal"?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:e==="vertical"?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:e==="centric"?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},T0e=function(e,n){var r=e.props,i=e.graphicalItems,o=e.xAxisMap,s=o===void 0?{}:o,u=e.yAxisMap,c=u===void 0?{}:u,f=r.width,p=r.height,y=r.children,v=r.margin||{},x=Mn(y,Ds),w=Mn(y,Wi),A=Object.keys(c).reduce(function(E,N){var D=c[N],L=D.orientation;return!D.mirror&&!D.hide?ie(ie({},E),{},Ae({},L,E[L]+D.width)):E},{left:v.left||0,right:v.right||0}),S=Object.keys(s).reduce(function(E,N){var D=s[N],L=D.orientation;return!D.mirror&&!D.hide?ie(ie({},E),{},Ae({},L,Rn(E,"".concat(L))+D.height)):E},{top:v.top||0,bottom:v.bottom||0}),C=ie(ie({},S),A),P=C.bottom;x&&(C.bottom+=x.props.height||Ds.defaultProps.height),w&&n&&(C=nfe(C,i,r,n));var M=f-C.left-C.right,O=p-C.top-C.bottom;return ie(ie({brushBottom:P},C),{},{width:Math.max(M,0),height:Math.max(O,0)})},S0e=function(e,n){if(n==="xAxis")return e[n].width;if(n==="yAxis")return e[n].height},tj=function(e){var n=e.chartName,r=e.GraphicalChild,i=e.defaultTooltipEventType,o=i===void 0?"axis":i,s=e.validateTooltipEventTypes,u=s===void 0?["axis"]:s,c=e.axisComponents,f=e.legendContent,p=e.formatAxisMap,y=e.defaultProps,v=function(C,P){var M=P.graphicalItems,O=P.stackGroups,E=P.offset,N=P.updateId,D=P.dataStartIndex,L=P.dataEndIndex,U=C.barSize,F=C.layout,B=C.barGap,z=C.barCategoryGap,W=C.maxBarSize,ne=qL(F),J=ne.numericAxisName,$=ne.cateAxisName,G=x0e(M),te=[];return M.forEach(function(ue,q){var Z=jp(C.data,{graphicalItems:[ue],dataStartIndex:D,dataEndIndex:L}),re=ue.type.defaultProps!==void 0?ie(ie({},ue.type.defaultProps),ue.props):ue.props,ae=re.dataKey,he=re.maxBarSize,xe=re["".concat(J,"Id")],ve=re["".concat($,"Id")],xt={},Ne=c.reduce(function(Nn,Ir){var oa=P["".concat(Ir.axisType,"Map")],Vc=re["".concat(Ir.axisType,"Id")];oa&&oa[Vc]||Ir.axisType==="zAxis"||Xo();var jc=oa[Vc];return ie(ie({},Nn),{},Ae(Ae({},Ir.axisType,jc),"".concat(Ir.axisType,"Ticks"),ti(jc)))},xt),de=Ne[$],Ee=Ne["".concat($,"Ticks")],Me=O&&O[xe]&&O[xe].hasStack&&hfe(ue,O[xe].stackGroups),ce=ri(ue.type).indexOf("Bar")>=0,nt=xh(de,Ee),Le=[],Tt=G&&efe({barSize:U,stackGroups:O,totalSize:S0e(Ne,$)});if(ce){var St,lt,mr=ke(he)?W:he,Dr=(St=(lt=xh(de,Ee,!0))!==null&<!==void 0?lt:mr)!==null&&St!==void 0?St:0;Le=tfe({barGap:B,barCategoryGap:z,bandSize:Dr!==nt?Dr:nt,sizeList:Tt[ve],maxBarSize:mr}),Dr!==nt&&(Le=Le.map(function(Nn){return ie(ie({},Nn),{},{position:ie(ie({},Nn.position),{},{offset:Nn.position.offset-Dr/2})})}))}var oo=ue&&ue.type&&ue.type.getComposedData;oo&&te.push({props:ie(ie({},oo(ie(ie({},Ne),{},{displayedData:Z,props:C,dataKey:ae,item:ue,bandSize:nt,barPosition:Le,offset:E,stackedData:Me,layout:F,dataStartIndex:D,dataEndIndex:L}))),{},Ae(Ae(Ae({key:ue.key||"item-".concat(q)},J,Ne[J]),$,Ne[$]),"animationId",N)),childIndex:ore(ue,C.children),item:ue})}),te},x=function(C,P){var M=C.props,O=C.dataStartIndex,E=C.dataEndIndex,N=C.updateId;if(!ZN({props:M}))return null;var D=M.children,L=M.layout,U=M.stackOffset,F=M.data,B=M.reverseStackOrder,z=qL(L),W=z.numericAxisName,ne=z.cateAxisName,J=Xn(D,r),$=ffe(F,J,"".concat(W,"Id"),"".concat(ne,"Id"),U,B),G=c.reduce(function(re,ae){var he="".concat(ae.axisType,"Map");return ie(ie({},re),{},Ae({},he,v0e(M,ie(ie({},ae),{},{graphicalItems:J,stackGroups:ae.axisType===W&&$,dataStartIndex:O,dataEndIndex:E}))))},{}),te=T0e(ie(ie({},G),{},{props:M,graphicalItems:J}),P==null?void 0:P.legendBBox);Object.keys(G).forEach(function(re){G[re]=p(M,G[re],te,re.replace("Map",""),n)});var ue=G["".concat(ne,"Map")],q=b0e(ue),Z=v(M,ie(ie({},G),{},{dataStartIndex:O,dataEndIndex:E,updateId:N,graphicalItems:J,stackGroups:$,offset:te}));return ie(ie({formattedGraphicalItems:Z,graphicalItems:J,offset:te,stackGroups:$},q),G)},w=(function(S){function C(P){var M,O,E;return t0e(this,C),E=i0e(this,C,[P]),Ae(E,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),Ae(E,"accessibilityManager",new Vve),Ae(E,"handleLegendBBoxUpdate",function(N){if(N){var D=E.state,L=D.dataStartIndex,U=D.dataEndIndex,F=D.updateId;E.setState(ie({legendBBox:N},x({props:E.props,dataStartIndex:L,dataEndIndex:U,updateId:F},ie(ie({},E.state),{},{legendBBox:N}))))}}),Ae(E,"handleReceiveSyncEvent",function(N,D,L){if(E.props.syncId===N){if(L===E.eventEmitterSymbol&&typeof E.props.syncMethod!="function")return;E.applySyncEvent(D)}}),Ae(E,"handleBrushChange",function(N){var D=N.startIndex,L=N.endIndex;if(D!==E.state.dataStartIndex||L!==E.state.dataEndIndex){var U=E.state.updateId;E.setState(function(){return ie({dataStartIndex:D,dataEndIndex:L},x({props:E.props,dataStartIndex:D,dataEndIndex:L,updateId:U},E.state))}),E.triggerSyncEvent({dataStartIndex:D,dataEndIndex:L})}}),Ae(E,"handleMouseEnter",function(N){var D=E.getMouseInfo(N);if(D){var L=ie(ie({},D),{},{isTooltipActive:!0});E.setState(L),E.triggerSyncEvent(L);var U=E.props.onMouseEnter;Ce(U)&&U(L,N)}}),Ae(E,"triggeredAfterMouseMove",function(N){var D=E.getMouseInfo(N),L=D?ie(ie({},D),{},{isTooltipActive:!0}):{isTooltipActive:!1};E.setState(L),E.triggerSyncEvent(L);var U=E.props.onMouseMove;Ce(U)&&U(L,N)}),Ae(E,"handleItemMouseEnter",function(N){E.setState(function(){return{isTooltipActive:!0,activeItem:N,activePayload:N.tooltipPayload,activeCoordinate:N.tooltipPosition||{x:N.cx,y:N.cy}}})}),Ae(E,"handleItemMouseLeave",function(){E.setState(function(){return{isTooltipActive:!1}})}),Ae(E,"handleMouseMove",function(N){N.persist(),E.throttleTriggeredAfterMouseMove(N)}),Ae(E,"handleMouseLeave",function(N){E.throttleTriggeredAfterMouseMove.cancel();var D={isTooltipActive:!1};E.setState(D),E.triggerSyncEvent(D);var L=E.props.onMouseLeave;Ce(L)&&L(D,N)}),Ae(E,"handleOuterEvent",function(N){var D=ire(N),L=Rn(E.props,"".concat(D));if(D&&Ce(L)){var U,F;/.*touch.*/i.test(D)?F=E.getMouseInfo(N.changedTouches[0]):F=E.getMouseInfo(N),L((U=F)!==null&&U!==void 0?U:{},N)}}),Ae(E,"handleClick",function(N){var D=E.getMouseInfo(N);if(D){var L=ie(ie({},D),{},{isTooltipActive:!0});E.setState(L),E.triggerSyncEvent(L);var U=E.props.onClick;Ce(U)&&U(L,N)}}),Ae(E,"handleMouseDown",function(N){var D=E.props.onMouseDown;if(Ce(D)){var L=E.getMouseInfo(N);D(L,N)}}),Ae(E,"handleMouseUp",function(N){var D=E.props.onMouseUp;if(Ce(D)){var L=E.getMouseInfo(N);D(L,N)}}),Ae(E,"handleTouchMove",function(N){N.changedTouches!=null&&N.changedTouches.length>0&&E.throttleTriggeredAfterMouseMove(N.changedTouches[0])}),Ae(E,"handleTouchStart",function(N){N.changedTouches!=null&&N.changedTouches.length>0&&E.handleMouseDown(N.changedTouches[0])}),Ae(E,"handleTouchEnd",function(N){N.changedTouches!=null&&N.changedTouches.length>0&&E.handleMouseUp(N.changedTouches[0])}),Ae(E,"handleDoubleClick",function(N){var D=E.props.onDoubleClick;if(Ce(D)){var L=E.getMouseInfo(N);D(L,N)}}),Ae(E,"handleContextMenu",function(N){var D=E.props.onContextMenu;if(Ce(D)){var L=E.getMouseInfo(N);D(L,N)}}),Ae(E,"triggerSyncEvent",function(N){E.props.syncId!==void 0&&Dx.emit(Ix,E.props.syncId,N,E.eventEmitterSymbol)}),Ae(E,"applySyncEvent",function(N){var D=E.props,L=D.layout,U=D.syncMethod,F=E.state.updateId,B=N.dataStartIndex,z=N.dataEndIndex;if(N.dataStartIndex!==void 0||N.dataEndIndex!==void 0)E.setState(ie({dataStartIndex:B,dataEndIndex:z},x({props:E.props,dataStartIndex:B,dataEndIndex:z,updateId:F},E.state)));else if(N.activeTooltipIndex!==void 0){var W=N.chartX,ne=N.chartY,J=N.activeTooltipIndex,$=E.state,G=$.offset,te=$.tooltipTicks;if(!G)return;if(typeof U=="function")J=U(te,N);else if(U==="value"){J=-1;for(var ue=0;ue<te.length;ue++)if(te[ue].value===N.activeLabel){J=ue;break}}var q=ie(ie({},G),{},{x:G.left,y:G.top}),Z=Math.min(W,q.x+q.width),re=Math.min(ne,q.y+q.height),ae=te[J]&&te[J].value,he=FS(E.state,E.props.data,J),xe=te[J]?{x:L==="horizontal"?te[J].coordinate:Z,y:L==="horizontal"?re:te[J].coordinate}:Q3;E.setState(ie(ie({},N),{},{activeLabel:ae,activeCoordinate:xe,activePayload:he,activeTooltipIndex:J}))}else E.setState(N)}),Ae(E,"renderCursor",function(N){var D,L=E.state,U=L.isTooltipActive,F=L.activeCoordinate,B=L.activePayload,z=L.offset,W=L.activeTooltipIndex,ne=L.tooltipAxisBandSize,J=E.getTooltipEventType(),$=(D=N.props.active)!==null&&D!==void 0?D:U,G=E.props.layout,te=N.key||"_recharts-cursor";return j.createElement(Yve,{key:te,activeCoordinate:F,activePayload:B,activeTooltipIndex:W,chartName:n,element:N,isActive:$,layout:G,offset:z,tooltipAxisBandSize:ne,tooltipEventType:J})}),Ae(E,"renderPolarAxis",function(N,D,L){var U=Rn(N,"type.axisType"),F=Rn(E.state,"".concat(U,"Map")),B=N.type.defaultProps,z=B!==void 0?ie(ie({},B),N.props):N.props,W=F&&F[z["".concat(U,"Id")]];return k.cloneElement(N,ie(ie({},W),{},{className:De(U,W.className),key:N.key||"".concat(D,"-").concat(L),ticks:ti(W,!0)}))}),Ae(E,"renderPolarGrid",function(N){var D=N.props,L=D.radialLines,U=D.polarAngles,F=D.polarRadius,B=E.state,z=B.radiusAxisMap,W=B.angleAxisMap,ne=Gi(z),J=Gi(W),$=J.cx,G=J.cy,te=J.innerRadius,ue=J.outerRadius;return k.cloneElement(N,{polarAngles:Array.isArray(U)?U:ti(J,!0).map(function(q){return q.coordinate}),polarRadius:Array.isArray(F)?F:ti(ne,!0).map(function(q){return q.coordinate}),cx:$,cy:G,innerRadius:te,outerRadius:ue,key:N.key||"polar-grid",radialLines:L})}),Ae(E,"renderLegend",function(){var N=E.state.formattedGraphicalItems,D=E.props,L=D.children,U=D.width,F=D.height,B=E.props.margin||{},z=U-(B.left||0)-(B.right||0),W=UV({children:L,formattedGraphicalItems:N,legendWidth:z,legendContent:f});if(!W)return null;var ne=W.item,J=IL(W,Wve);return k.cloneElement(ne,ie(ie({},J),{},{chartWidth:U,chartHeight:F,margin:B,onBBoxUpdate:E.handleLegendBBoxUpdate}))}),Ae(E,"renderTooltip",function(){var N,D=E.props,L=D.children,U=D.accessibilityLayer,F=Mn(L,ar);if(!F)return null;var B=E.state,z=B.isTooltipActive,W=B.activeCoordinate,ne=B.activePayload,J=B.activeLabel,$=B.offset,G=(N=F.props.active)!==null&&N!==void 0?N:z;return k.cloneElement(F,{viewBox:ie(ie({},$),{},{x:$.left,y:$.top}),active:G,label:J,payload:G?ne:[],coordinate:W,accessibilityLayer:U})}),Ae(E,"renderBrush",function(N){var D=E.props,L=D.margin,U=D.data,F=E.state,B=F.offset,z=F.dataStartIndex,W=F.dataEndIndex,ne=F.updateId;return k.cloneElement(N,{key:N.key||"_recharts-brush",onChange:bd(E.handleBrushChange,N.props.onChange),data:U,x:fe(N.props.x)?N.props.x:B.left,y:fe(N.props.y)?N.props.y:B.top+B.height+B.brushBottom-(L.bottom||0),width:fe(N.props.width)?N.props.width:B.width,startIndex:z,endIndex:W,updateId:"brush-".concat(ne)})}),Ae(E,"renderReferenceElement",function(N,D,L){if(!N)return null;var U=E,F=U.clipPathId,B=E.state,z=B.xAxisMap,W=B.yAxisMap,ne=B.offset,J=N.type.defaultProps||{},$=N.props,G=$.xAxisId,te=G===void 0?J.xAxisId:G,ue=$.yAxisId,q=ue===void 0?J.yAxisId:ue;return k.cloneElement(N,{key:N.key||"".concat(D,"-").concat(L),xAxis:z[te],yAxis:W[q],viewBox:{x:ne.left,y:ne.top,width:ne.width,height:ne.height},clipPathId:F})}),Ae(E,"renderActivePoints",function(N){var D=N.item,L=N.activePoint,U=N.basePoint,F=N.childIndex,B=N.isRange,z=[],W=D.props.key,ne=D.item.type.defaultProps!==void 0?ie(ie({},D.item.type.defaultProps),D.item.props):D.item.props,J=ne.activeDot,$=ne.dataKey,G=ie(ie({index:F,dataKey:$,cx:L.x,cy:L.y,r:4,fill:Nw(D.item),strokeWidth:2,stroke:"#fff",payload:L.payload,value:L.value},_e(J,!1)),Xd(J));return z.push(C.renderActiveDot(J,G,"".concat(W,"-activePoint-").concat(F))),U?z.push(C.renderActiveDot(J,ie(ie({},G),{},{cx:U.x,cy:U.y}),"".concat(W,"-basePoint-").concat(F))):B&&z.push(null),z}),Ae(E,"renderGraphicChild",function(N,D,L){var U=E.filterFormatItem(N,D,L);if(!U)return null;var F=E.getTooltipEventType(),B=E.state,z=B.isTooltipActive,W=B.tooltipAxis,ne=B.activeTooltipIndex,J=B.activeLabel,$=E.props.children,G=Mn($,ar),te=U.props,ue=te.points,q=te.isRange,Z=te.baseLine,re=U.item.type.defaultProps!==void 0?ie(ie({},U.item.type.defaultProps),U.item.props):U.item.props,ae=re.activeDot,he=re.hide,xe=re.activeBar,ve=re.activeShape,xt=!!(!he&&z&&G&&(ae||xe||ve)),Ne={};F!=="axis"&&G&&G.props.trigger==="click"?Ne={onClick:bd(E.handleItemMouseEnter,N.props.onClick)}:F!=="axis"&&(Ne={onMouseLeave:bd(E.handleItemMouseLeave,N.props.onMouseLeave),onMouseEnter:bd(E.handleItemMouseEnter,N.props.onMouseEnter)});var de=k.cloneElement(N,ie(ie({},U.props),Ne));function Ee(Ir){return typeof W.dataKey=="function"?W.dataKey(Ir.payload):null}if(xt)if(ne>=0){var Me,ce;if(W.dataKey&&!W.allowDuplicatedCategory){var nt=typeof W.dataKey=="function"?Ee:"payload.".concat(W.dataKey.toString());Me=wT(ue,nt,J),ce=q&&Z&&wT(Z,nt,J)}else Me=ue==null?void 0:ue[ne],ce=q&&Z&&Z[ne];if(ve||xe){var Le=N.props.activeIndex!==void 0?N.props.activeIndex:ne;return[k.cloneElement(N,ie(ie(ie({},U.props),Ne),{},{activeIndex:Le})),null,null]}if(!ke(Me))return[de].concat(js(E.renderActivePoints({item:U,activePoint:Me,basePoint:ce,childIndex:ne,isRange:q})))}else{var Tt,St=(Tt=E.getItemByXY(E.state.activeCoordinate))!==null&&Tt!==void 0?Tt:{graphicalItem:de},lt=St.graphicalItem,mr=lt.item,Dr=mr===void 0?N:mr,oo=lt.childIndex,Nn=ie(ie(ie({},U.props),Ne),{},{activeIndex:oo});return[k.cloneElement(Dr,Nn),null,null]}return q?[de,null,null]:[de,null]}),Ae(E,"renderCustomized",function(N,D,L){return k.cloneElement(N,ie(ie({key:"recharts-customized-".concat(L)},E.props),E.state))}),Ae(E,"renderMap",{CartesianGrid:{handler:wd,once:!0},ReferenceArea:{handler:E.renderReferenceElement},ReferenceLine:{handler:wd},ReferenceDot:{handler:E.renderReferenceElement},XAxis:{handler:wd},YAxis:{handler:wd},Brush:{handler:E.renderBrush,once:!0},Bar:{handler:E.renderGraphicChild},Line:{handler:E.renderGraphicChild},Area:{handler:E.renderGraphicChild},Radar:{handler:E.renderGraphicChild},RadialBar:{handler:E.renderGraphicChild},Scatter:{handler:E.renderGraphicChild},Pie:{handler:E.renderGraphicChild},Funnel:{handler:E.renderGraphicChild},Tooltip:{handler:E.renderCursor,once:!0},PolarGrid:{handler:E.renderPolarGrid,once:!0},PolarAngleAxis:{handler:E.renderPolarAxis},PolarRadiusAxis:{handler:E.renderPolarAxis},Customized:{handler:E.renderCustomized}}),E.clipPathId="".concat((M=P.id)!==null&&M!==void 0?M:kc("recharts"),"-clip"),E.throttleTriggeredAfterMouseMove=L$(E.triggeredAfterMouseMove,(O=P.throttleDelay)!==null&&O!==void 0?O:1e3/60),E.state={},E}return s0e(C,S),r0e(C,[{key:"componentDidMount",value:function(){var M,O;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(M=this.props.margin.left)!==null&&M!==void 0?M:0,top:(O=this.props.margin.top)!==null&&O!==void 0?O:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var M=this.props,O=M.children,E=M.data,N=M.height,D=M.layout,L=Mn(O,ar);if(L){var U=L.props.defaultIndex;if(!(typeof U!="number"||U<0||U>this.state.tooltipTicks.length-1)){var F=this.state.tooltipTicks[U]&&this.state.tooltipTicks[U].value,B=FS(this.state,E,U,F),z=this.state.tooltipTicks[U].coordinate,W=(this.state.offset.top+N)/2,ne=D==="horizontal",J=ne?{x:z,y:W}:{y:z,x:W},$=this.state.formattedGraphicalItems.find(function(te){var ue=te.item;return ue.type.name==="Scatter"});$&&(J=ie(ie({},J),$.props.points[U].tooltipPosition),B=$.props.points[U].tooltipPayload);var G={activeTooltipIndex:U,isTooltipActive:!0,activeLabel:F,activePayload:B,activeCoordinate:J};this.setState(G),this.renderCursor(L),this.accessibilityManager.setIndex(U)}}}},{key:"getSnapshotBeforeUpdate",value:function(M,O){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==O.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==M.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==M.margin){var E,N;this.accessibilityManager.setDetails({offset:{left:(E=this.props.margin.left)!==null&&E!==void 0?E:0,top:(N=this.props.margin.top)!==null&&N!==void 0?N:0}})}return null}},{key:"componentDidUpdate",value:function(M){CT([Mn(M.children,ar)],[Mn(this.props.children,ar)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var M=Mn(this.props.children,ar);if(M&&typeof M.props.shared=="boolean"){var O=M.props.shared?"axis":"item";return u.indexOf(O)>=0?O:o}return o}},{key:"getMouseInfo",value:function(M){if(!this.container)return null;var O=this.container,E=O.getBoundingClientRect(),N=Gae(E),D={chartX:Math.round(M.pageX-N.left),chartY:Math.round(M.pageY-N.top)},L=E.width/O.offsetWidth||1,U=this.inRange(D.chartX,D.chartY,L);if(!U)return null;var F=this.state,B=F.xAxisMap,z=F.yAxisMap,W=this.getTooltipEventType(),ne=LL(this.state,this.props.data,this.props.layout,U);if(W!=="axis"&&B&&z){var J=Gi(B).scale,$=Gi(z).scale,G=J&&J.invert?J.invert(D.chartX):null,te=$&&$.invert?$.invert(D.chartY):null;return ie(ie({},D),{},{xValue:G,yValue:te},ne)}return ne?ie(ie({},D),ne):null}},{key:"inRange",value:function(M,O){var E=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,N=this.props.layout,D=M/E,L=O/E;if(N==="horizontal"||N==="vertical"){var U=this.state.offset,F=D>=U.left&&D<=U.left+U.width&&L>=U.top&&L<=U.top+U.height;return F?{x:D,y:L}:null}var B=this.state,z=B.angleAxisMap,W=B.radiusAxisMap;if(z&&W){var ne=Gi(z);return V2({x:D,y:L},ne)}return null}},{key:"parseEventsOfWrapper",value:function(){var M=this.props.children,O=this.getTooltipEventType(),E=Mn(M,ar),N={};E&&O==="axis"&&(E.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 D=Xd(this.props,this.handleOuterEvent);return ie(ie({},D),N)}},{key:"addListener",value:function(){Dx.on(Ix,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){Dx.removeListener(Ix,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(M,O,E){for(var N=this.state.formattedGraphicalItems,D=0,L=N.length;D<L;D++){var U=N[D];if(U.item===M||U.props.key===M.key||O===ri(U.item.type)&&E===U.childIndex)return U}return null}},{key:"renderClipPath",value:function(){var M=this.clipPathId,O=this.state.offset,E=O.left,N=O.top,D=O.height,L=O.width;return j.createElement("defs",null,j.createElement("clipPath",{id:M},j.createElement("rect",{x:E,y:N,height:D,width:L})))}},{key:"getXScales",value:function(){var M=this.state.xAxisMap;return M?Object.entries(M).reduce(function(O,E){var N=DL(E,2),D=N[0],L=N[1];return ie(ie({},O),{},Ae({},D,L.scale))},{}):null}},{key:"getYScales",value:function(){var M=this.state.yAxisMap;return M?Object.entries(M).reduce(function(O,E){var N=DL(E,2),D=N[0],L=N[1];return ie(ie({},O),{},Ae({},D,L.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(M){var O;return(O=this.state.xAxisMap)===null||O===void 0||(O=O[M])===null||O===void 0?void 0:O.scale}},{key:"getYScaleByAxisId",value:function(M){var O;return(O=this.state.yAxisMap)===null||O===void 0||(O=O[M])===null||O===void 0?void 0:O.scale}},{key:"getItemByXY",value:function(M){var O=this.state,E=O.formattedGraphicalItems,N=O.activeItem;if(E&&E.length)for(var D=0,L=E.length;D<L;D++){var U=E[D],F=U.props,B=U.item,z=B.type.defaultProps!==void 0?ie(ie({},B.type.defaultProps),B.props):B.props,W=ri(B.type);if(W==="Bar"){var ne=(F.data||[]).find(function(te){return upe(M,te)});if(ne)return{graphicalItem:U,payload:ne}}else if(W==="RadialBar"){var J=(F.data||[]).find(function(te){return V2(M,te)});if(J)return{graphicalItem:U,payload:J}}else if(Dp(U,N)||Ip(U,N)||vc(U,N)){var $=Ome({graphicalItem:U,activeTooltipItem:N,itemData:z.data}),G=z.activeIndex===void 0?$:z.activeIndex;return{graphicalItem:ie(ie({},U),{},{childIndex:G}),payload:vc(U,N)?z.data[$]:U.props.data[$]}}}return null}},{key:"render",value:function(){var M=this;
364if(!ZN(this))return null;var O=this.props,E=O.children,N=O.className,D=O.width,L=O.height,U=O.style,F=O.compact,B=O.title,z=O.desc,W=IL(O,Xve),ne=_e(W,!1);if(F)return j.createElement(yL,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},j.createElement(MT,ss({},ne,{width:D,height:L,title:B,desc:z}),this.renderClipPath(),eO(E,this.renderMap)));if(this.props.accessibilityLayer){var J,$;ne.tabIndex=(J=this.props.tabIndex)!==null&&J!==void 0?J:0,ne.role=($=this.props.role)!==null&&$!==void 0?$:"application",ne.onKeyDown=function(te){M.accessibilityManager.keyboardEvent(te)},ne.onFocus=function(){M.accessibilityManager.focus()}}var G=this.parseEventsOfWrapper();return j.createElement(yL,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},j.createElement("div",ss({className:De("recharts-wrapper",N),style:ie({position:"relative",cursor:"default",width:D,height:L},U)},G,{ref:function(ue){M.container=ue}}),j.createElement(MT,ss({},ne,{width:D,height:L,title:B,desc:z,style:h0e}),this.renderClipPath(),eO(E,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])})(k.Component);Ae(w,"displayName",n),Ae(w,"defaultProps",ie({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},y)),Ae(w,"getDerivedStateFromProps",function(S,C){var P=S.dataKey,M=S.data,O=S.children,E=S.width,N=S.height,D=S.layout,L=S.stackOffset,U=S.margin,F=C.dataStartIndex,B=C.dataEndIndex;if(C.updateId===void 0){var z=UL(S);return ie(ie(ie({},z),{},{updateId:0},x(ie(ie({props:S},z),{},{updateId:0}),C)),{},{prevDataKey:P,prevData:M,prevWidth:E,prevHeight:N,prevLayout:D,prevStackOffset:L,prevMargin:U,prevChildren:O})}if(P!==C.prevDataKey||M!==C.prevData||E!==C.prevWidth||N!==C.prevHeight||D!==C.prevLayout||L!==C.prevStackOffset||!ps(U,C.prevMargin)){var W=UL(S),ne={chartX:C.chartX,chartY:C.chartY,isTooltipActive:C.isTooltipActive},J=ie(ie({},LL(C,M,D)),{},{updateId:C.updateId+1}),$=ie(ie(ie({},W),ne),J);return ie(ie(ie({},$),x(ie({props:S},$),C)),{},{prevDataKey:P,prevData:M,prevWidth:E,prevHeight:N,prevLayout:D,prevStackOffset:L,prevMargin:U,prevChildren:O})}if(!CT(O,C.prevChildren)){var G,te,ue,q,Z=Mn(O,Ds),re=Z&&(G=(te=Z.props)===null||te===void 0?void 0:te.startIndex)!==null&&G!==void 0?G:F,ae=Z&&(ue=(q=Z.props)===null||q===void 0?void 0:q.endIndex)!==null&&ue!==void 0?ue:B,he=re!==F||ae!==B,xe=!ke(M),ve=xe&&!he?C.updateId:C.updateId+1;return ie(ie({updateId:ve},x(ie(ie({props:S},C),{},{updateId:ve,dataStartIndex:re,dataEndIndex:ae}),C)),{},{prevChildren:O,dataStartIndex:re,dataEndIndex:ae})}return null}),Ae(w,"renderActiveDot",function(S,C,P){var M;return k.isValidElement(S)?M=k.cloneElement(S,C):Ce(S)?M=S(C):M=j.createElement(Dw,C),j.createElement(We,{className:"recharts-active-dot",key:P},M)});var A=k.forwardRef(function(C,P){return j.createElement(w,ss({},C,{ref:P}))});return A.displayName=w.displayName,A},A0e=tj({chartName:"BarChart",GraphicalChild:ia,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:$p},{axisType:"yAxis",AxisComp:Vp}],formatAxisMap:kge}),w0e=tj({chartName:"PieChart",GraphicalChild:gi,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:Op},{axisType:"radiusAxis",AxisComp:Rp}],formatAxisMap:Afe,defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}});const _0e=({data:t})=>{const{columns:e,rows:n}=t;if(!e||!n||n.length===0)return null;const r=["#047857","#f59e0b","#d97706","#1f2937","#6b7280","#06b6d4"],i=e.map((o,s)=>{const u=n.map(p=>p[s]);if(u.every(p=>typeof p=="number")){const p=e.findIndex((v,x)=>x!==s&&n.every(w=>typeof w[x]=="string")),y=n.map((v,x)=>({name:p!==-1?String(v[p]):`Row ${x+1}`,value:v[s]}));return _.jsxs("div",{className:"bg-white p-6 rounded-lg shadow-lg",children:[_.jsxs("h3",{className:"font-serif font-bold text-brand-text mb-4 text-center",children:["Bar Chart for '",o,"'"]}),_.jsx(SI,{width:"100%",height:300,children:_.jsxs(A0e,{data:y,margin:{top:5,right:20,left
364:10,bottom:5},children:[_.jsx(V3,{strokeDasharray:"3 3"}),_.jsx($p,{dataKey:"name",angle:-15,textAnchor:"end",height:50,interval:0}),_.jsx(Vp,{}),_.jsx(ar,{}),_.jsx(Wi,{}),_.jsx(ia,{dataKey:"value",name:o,fill:"#047857"})]})})]},o)}if(u.every(p=>typeof p=="string")){const p=u.reduce((v,x)=>(v[String(x)]=(v[String(x)]||0)+1,v),{}),y=Object.keys(p);if(y.length>1&&y.length<=6){const v=y.map(x=>({name:x,value:p[x]}));return _.jsxs("div",{className:"bg-white p-6 rounded-lg shadow-lg",children:[_.jsxs("h3",{className:"font-serif font-bold text-brand-text mb-4 text-center",children:["Distribution for '",o,"'"]}),_.jsx(SI,{width:"100%",height:300,children:_.jsxs(w0e,{children:[_.jsx(gi,{data:v,cx:"50%",cy:"50%",labelLine:!1,label:({name:x,percent:w})=>`${x} ${(w*100).toFixed(0)}%`,outerRadius:100,fill:"#8884d8",dataKey:"value",children:v.map((x,w)=>_.jsx(mp,{fill:r[w%r.length]},`cell-${w}`))}),_.jsx(ar,{formatter:(x,w)=>[x,w]}),_.jsx(Wi,{})]})})]},o)}}return null}).filter(Boolean);return i.length===0?_.jsxs("div",{className:"mt-12",children:[_.jsx("h2",{className:"text-3xl font-serif font-bold text-brand-text mb-6",children:"Data Visualizations"}),_.jsx("div",{className:"bg-white p-6 rounded-lg shadow-lg text-center",children:_.jsx("p",{className:"text-gray-600",children:"No suitable data columns found for automatic visualization in this preview."})})]}):_.jsxs("div",{className:"mt-12",children:[_.jsx("h2",{className:"text-3xl font-serif font-bold text-brand-text mb-6",children:"Data Visualizations"}),_.jsx("div",{className:"grid md:grid-cols-1 lg:grid-cols-2 gap-8",children:i})]})},C0e=()=>{const{id:t}=zh(),e=zq.find(r=>r.id===t),n=e?vs.find(r=>r.id===e.projectId):void 0;return e?_.jsx("div",{className:"bg-brand-background py-16",children:_.jsxs("div",{className:"container mx-auto px-6 max-w-5xl",children:[_.jsxs("div",{className:"mb-8",children:[_.jsx("h1",{className:"text-4xl md:text-5xl font-serif font-bold text-brand-text mb-4",children:e.title}),_.jsx("p",{className:"text-lg text-gray-700",children:e.description})]}),_.jsx("div",{className:"bg-white p-6 rounded-lg shadow-lg mb-12",children:_.jsxs("div",{className:"grid md:grid-cols-2 lg:grid-cols-4 gap-6 items-center",children:[_.jsxs("div",{children:[_.jsx("h4",{className:"font-bold text-gray-800",children:"DOI"}),_.jsx("a",{href:`https://doi.org/${e.doi}`,target:"_blank",rel:"noopener noreferrer",className:"text-brand-primary hover:underline break-all",children:e.doi})]}),_.jsxs("div",{children:[_.jsx("h4",{className:"font-bold text-gray-800",children:"License"}),_.jsx("p",{className:"text-gray-700",children:e.license})]}),n&&_.jsxs("div",{children:[_.jsx("h4",{className:"font-bold text-gray-800",children:"Related Project"}),_.jsx(Pe,{to:`/projects/${n.id}`,className:"text-brand-primary hover:underline",children:n.title})]}),_.jsx("div",{className:"lg:col-start-4",children:_.jsx("a",{href:e.downloadUrl,target:"_blank",rel:"noopener noreferrer",className:"w-full text-center block bg-brand-primary hover:bg-teal-800 text-white font-bold py-3 px-4 rounded-md transition duration-300",children:"Download Dataset"})})]})}),_.jsxs("div",{children:[_.jsx("h2",{className:"text-3xl font-serif font-bold text-brand-text mb-6",children:"Data Preview"}),_.jsx("div",{className:"bg-white rounded-lg shadow-lg overflow-x-auto",children:_.jsxs("table",{className:"w-full text-sm text-left text-gray-700",children:[_.jsx("thead",{className:"text-xs text-gray-800 uppercase bg-gray-100",children:_.jsx("tr",{children:e.previewData.columns.map(r=>_.jsx("th",{scope:"col",className:"px-6 py-3",children:r},r))})}),_.jsx("tbody",{children:e.previewData.rows.map((r,i)=>_.jsx("tr",{className:"bg-white border-b hover:bg-gray-50",children:r.map((o,s)=>_.jsx("td",{className:"px-6 py-4",children:o},s))},i))})]})})]}),_.jsx(_0e,{data:e.previewData})]})}):_.jsxs("div",{className:"text-center py-20",children:[_.jsx("h1",{className:"text-4xl font-serif font-bold text-brand-text mb-4",children:"Dataset Not Found"}),_.jsx("p",{className:"text-lg text-gray-700",children:"The dataset you are looking for does not exist."}
364),_.jsx(Pe,{to:"/datasets",className:"mt-8 inline-block bg-brand-primary hover:bg-teal-800 text-white font-bold py-3 px-6 rounded-md transition duration-300",children:"Back to Datasets"})]})},E0e=({model:t})=>_.jsxs("div",{className:"bg-white p-6 rounded-lg shadow-md hover:shadow-xl transition-shadow duration-300 flex flex-col",children:[_.jsx("h3",{className:"text-xl font-serif font-bold text-brand-text mb-2",children:t.name}),_.jsx("p",{className:"text-gray-600 text-sm mb-4 flex-grow",children:t.description}),_.jsxs("div",{className:"mb-4",children:[_.jsx("h4",{className:"font-semibold text-sm text-brand-text mb-2",children:"Key Metrics"}),_.jsx("div",{className:"flex flex-wrap gap-2",children:t.metrics.map(e=>_.jsxs("div",{className:"bg-brand-primary/10 text-brand-primary text-xs font-semibold px-2 py-1 rounded-full",children:[e.name,": ",e.value]},e.name))})]}),_.jsxs("div",{className:"text-xs font-mono mb-4",children:[_.jsxs("a",{href:`https://doi.org/${t.doi}`,target:"_blank",rel:"noopener noreferrer",className:"text-brand-primary hover:underline",children:["DOI: ",t.doi]}),_.jsx("span",{className:"mx-2",children:"|"}),_.jsxs("span",{children:["License: ",t.license]})]}),_.jsx("div",{className:"mt-auto border-t pt-4",children:_.jsxs("div",{className:"flex items-center justify-between",children:[_.jsx("a",{href:t.weightsUrl,className:"font-bold text-brand-primary hover:underline",children:"Download Weights"}),_.jsx(Pe,{to:`/projects/${t.projectId}`,className:"text-sm text-gray-500 hover:underline",children:"Related Project â"})]})})]}),M0e=()=>{const[t,e]=k.useState(""),n=k.useMemo(()=>x7.filter(r=>r.name.toLowerCase().includes(t.toLowerCase())||r.description.toLowerCase().includes(t.toLowerCase())),[t]);return _.jsx("div",{className:"py-16",children:_.jsxs("div",{className:"container mx-auto px-6",children:[_.jsxs("div",{className:"text-center mb-12",children:[_.jsx("h1",{className:"text-4xl md:text-5xl font-serif font-bold text-brand-text mb-4",children:"Models"}),_.jsx("p",{className:"text-lg max-w-3xl mx-auto text-gray-700",children:"Access pre-trained models from our research projects to build upon our work."})]}),_.jsx("div",{className:"mb-8 max-w-2xl mx-auto",children:_.jsx("input",{type:"text",placeholder:"Search models by name or description...",value:t,onChange:r=>e(r.target.value),className:"w-full px-4 py-3 border border-gray-300 rounded-lg shadow-sm focus:outline-none focus:ring-2 focus:ring-brand-primary"})}),_.jsx("div",{className:"grid md:grid-cols-1 lg:grid-cols-2 gap-8",children:n.length>0?n.map(r=>_.jsx(E0e,{model:r},r.id)):_.jsx("p",{className:"text-center text-gray-500 lg:col-span-2",children:"No models found matching your search."})})]})})},P0e=({partner:t})=>_.jsxs("div",{className:"bg-white p-6 rounded-lg shadow-lg hover:shadow-xl transition-shadow duration-300 flex flex-col items-center text-center h-full",children:[_.jsx("a",{href:t.websiteUrl,target:"_blank",rel:"noopener noreferrer",className:"block mb-4 h-20 flex items-center",children:_.jsx("img",{src:t.logoUrl,alt:`${t.name} logo`,className:"max-h-full max-w-full object-contain"})}),_.jsx("h3",{className:"text-xl font-serif font-bold text-brand-text mb-2",children:t.name}),_.jsx("span",{className:`px-2 py-1 text-xs font-semibold rounded-full mb-3 ${t.type==="Academic"?"bg-blue-100 text-blue-800":t.type==="Industry"?"bg-purple-100 text-purple-800":"bg-yellow-100 text-yellow-800"}`,children:t.type}),_.jsx("p",{className:"text-gray-600 text-sm flex-grow",children:t.description}),_.jsx("a",{href:t.websiteUrl,target:"_blank",rel:"noopener noreferrer",className:"mt-4 text-brand-primary font-bold hover:underline",children:"Visit Website â"})]}),R0e=()=>_.jsx("div",{className:"py-16 bg-brand-background",children:_.jsxs("div",{className:"container mx-auto px-6",children:[_.jsxs("div",{className:"text-center mb-12",children:[_.jsx("h1",{className:"text-4xl md:text-5xl font-serif font-bold text-brand-text mb-4",children:"Our Partners & Collaborators"}),_.jsx("p",{className:"text-lg max-w-3xl mx-auto text-gray-700",children:"Our work is made possible by a strong network of academic, industry, and community partners who share our vision for a thriving AI ecosystem in Uganda."})]}),_.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-8 mb-16",children:T7.map(t=>_.jsx(P0e,{partner:t},t.id))}),_.jsxs("div",{className:"bg-brand-primary text-white p-12 rounded-lg shadow-2xl text-center",children:[_.jsx("h2",{className:"text-3xl font-serif font-bold mb-4",children:"Become a Partner"}),_.jsx("p",{className:"max-w-2xl mx-auto mb-8 text-gray-200",children:"Interested in collaborating on research, sponsoring an event, or supporting our mission? We'd love to hear from you. Let's work together to drive AI innovation for local impact."}),_.jsx(Pe,{to:"/join",className:"bg-brand-accent hover:bg-yellow-500 text-brand-primary font-bold py-3 px-8 rounded-md transition duration-300 ease-in-out transform hover:scale-105 text-lg",children:"Get in Touch"})]})]})}),nj=({post:t})=>_.jsxs("article",{className:"group flex flex-col bg-white rounded-2xl shadow-sm hover:shadow-xl transition-all duration-300 overflow-hidden border border-gray-100",children:[_.jsxs(Pe,{to:`/blog/${t.id}`,className:"relative block h-48 sm:h-64 overflow-hidden",children:[_.jsx("img",{src:t.imageUrl,alt:t.title,className:"w-full h-full object-cover transform group-hover:scale-105 transition-transform duration-500"}),_.jsx("div",{className:"absolute top-4 left-4",children:_.jsx("span",{className:"bg-brand-primary/90 text-white text-xs font-bold px-3 py-1.5 rounded-full backdrop-blur-sm",children:t.category})})]}),_.jsxs("div",{className:"p-6 flex flex-col flex-grow",children:[_.jsxs("div",{className:"flex items-center text-xs text-gray-500 mb-3 space-x-2",children:[_.jsx("time",{dateTime:t.date,children:t.date}),_.jsx("span",{children:"â¢"}),_.jsx("span",{children:t.readingTime})]}),_.jsx("h3",{className:"text-xl font-serif font-bold text-brand-text mb-3 group-hover:text-brand-primary transition-colors line-clamp-2",children:_.jsx(Pe,{to:`/blog/${t.id}`,children:t.title})}),_.jsx("p",{className:"text-gray-600 text-sm mb-6 line-clamp-3 leading-relaxed",children:t.excerpt}),_.jsxs("div",{className:"mt-auto flex items-center justify-between",children:[_.jsxs("div",{className:"flex items-center space-x-2",children:[_.jsx("div",{className:"w-8 h-8 rounded-full bg-brand-primary/10 flex items-center justify-center text-brand-primary font-bold text-xs",children:t.authorName.charAt(0)}),_.jsx("span",{className:"text-sm font-medium text-brand-text",children:t.authorName})]}),_.jsx(Pe,{to:`/blog/${t.id}`,className:"text-brand-primary font-bold text-sm group-hover:underline",children:"Read More â"})]})]})]}),N0e=()=>{const[t,e]=k.useState(""),[n,r]=k.useState("All"),i=["All","Research","Community","Tutorials","News"],o=k.useMemo(()=>Pu.filter(u=>n==="All"||u.category===n).filter(u=>u.title.toLowerCase().includes(t.toLowerCase())||u.excerpt.toLowerCase().includes(t.toLowerCase())||u.tags.some(c=>c.toLowerCase().includes(t.toLowerCase()))),[t,n]),s=Pu[0];return _.jsxs("div",{className:"bg-brand-background min-h-screen pb-20",children:[_.jsx(Ys,{title:"AI Research Blog",description:"Insights, tutorials, and research updates from the Deep Learning IndabaX Uganda AI Lab.",url:"/blog"}),_.jsx("section",{className:"bg-brand-primary py-16 text-white text-center",children:_.jsxs("div",{className:"container mx-auto px-6",children:[_.jsx("h1",{className:"text-4xl md:text-5xl font-serif font-bold mb-4",children:"Lab Insights & Updates"}),_.jsx("p",{className:"text-lg max-w-2xl mx-auto text-teal-100",children:"Stay up to date with the latest AI research, community events, and technical deep-dives from the Indabað Uganda team."})]})}),_.jsxs("div",{className:"container mx-auto px-6 -mt-8",children:[_.jsxs("div",{className:"bg-white p-6 rounded-2xl shadow-xl flex flex-col md:flex-row gap-6 items-center justify-between mb-12",children:[_.jsx("div",{className:"flex flex-wrap gap-2 justify-center md:justify-start",children:i.map(u=>_.jsx("button",{onClick:()=>r(u),className:`px-5 py-2 rounded-full text-sm font-bold transition-all ${n===u?"bg-brand-primary text-white":"bg-gray-100 text-gray-600 hover:bg-gray-200"}`,children:u},u))}),_.jsx("div",{className:"w-full md:w-80",children:_.jsxs("div",{className:"relative",children:[_.jsx("input",{type:"text",placeholder:"Search articles...",value:t,onChange:u=>e(u.target.value),className:"w-full pl-10 pr-4 py-3 bg-gray-50 border-none rounded-xl focus:ring-2 focus:ring-brand-primary transition-all text-sm"}),_.jsx("svg",{className:"absolute left-3 top-3.5 h-4 w-4 text-gray-400",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:_.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})})]})})]}),t===""&&n==="All"&&_.jsxs("div",{className:"mb-16",children:[_.jsx("h2",{className:"text-sm font-bold text-brand-primary uppercase tracking-[0.2em] mb-6",children:"Featured Article"}),_.jsxs("div",{className:"bg-white rounded-3xl overflow-hidden shadow-2xl flex flex-col lg:flex-row border border-gray-100 group",children:[_.jsx("div",{className:"lg:w-3/5 overflow-hidden",children:_.jsx("img",{src:s.imageUrl,alt:s.title,className:"w-full h-full object-cover transform group-hover:scale-105 transition-transform duration-700"})}),_.jsxs("div",{className:"lg:w-2/5 p-8 md:p-12 flex flex-col justify-center",children:[_.jsxs("div",{className:"flex items-center text-xs text-gray-500 mb-4 space-x-3",children:[_.jsx("span",{className:"bg-brand-accent/20 text-brand-accent-warm font-bold px-2 py-1 rounded",children:s.category}),_.jsx("span",{children:"â¢"}),_.jsx("span",{children:s.date})]}),_.jsx("h3",{className:"text-3xl font-serif font-bold text-brand-text mb-6 leading-tight",children:_.jsx(Pe,{to:`/blog/${s.id}`,className:"hover:text-brand-primary transition-colors",children:s.title})}),_.jsx("p",{className:"text-gray-600 mb-8 leading-relaxed",children:s.excerpt}),_.jsxs("div",{className:"flex items-center justify-between",children:[_.jsxs("div",{className:"flex items-center space-x-3",children:[_.jsx("div",{className:"w-10 h-10 rounded-full bg-brand-primary text-white flex items-center justify-center font-bold",children:s.authorName.charAt(0)}),_.jsxs("div",{className:"text-sm",children:[_.jsx("p",{className:"font-bold text-brand-text",children:s.authorName}),_.jsx("p",{className:"text-gray-500",children:s.readingTime})]})]}),_.jsxs(Pe,{to:`/blog/${s.id}`,className:"inline-flex items-center font-bold text-brand-primary group-hover:underline",children:["Read Article",_.jsx("svg",{className:"ml-2 w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:_.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M14 5l7 7m0 0l-7 7m7-7H3"})})]})]})]})]})]}),_.jsxs("div",{children:[_.jsx("h2",{className:"text-sm font-bold text-brand-primary uppercase tracking-[0.2em] mb-6",children:t||n!=="All"?"Filtered Results":"Latest Articles"}),o.length>0?_.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-8",children:o.map(u=>_.jsx(nj,{post:u},u.id))}):_.jsxs("div",{className:"text-center py-20 bg-white rounded-3xl shadow-sm border border-dashed border-gray-300",children:[_.jsx("p",{className:"text-xl text-gray-500",children:"No articles found matching your criteria."}),_.jsx("button",{onClick:()=>{e(""),r("All")},className:"mt-4 text-brand-primary font-bold underline",children:"Clear all filters"})]})]})]})]})},O0e=({url:t,title:e})=>{const n=encodeURIComponent(t),r=encodeURIComponent(e),i=[{name:"X (Twitter)",href:`https://twitter.com/intent/tweet?url=${n}&text=${r}
364`,color:"bg-black",icon:_.jsx("svg",{className:"w-4 h-4",fill:"currentColor",viewBox:"0 0 24 24",children:_.jsx("path",{d:"M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"})})},{name:"LinkedIn",href:`https://www.linkedin.com/sharing/share-offsite/?url=${n}`,color:"bg-[#0077b5]",icon:_.jsx("svg",{className:"w-4 h-4",fill:"currentColor",viewBox:"0 0 24 24",children:_.jsx("path",{d:"M19 0h-14c-2.761 0-5 2.239-5 5v14c0 2.761 2.239 5 5 5h14c2.762 0 5-2.239 5-5v-14c0-2.761-2.238-5-5-5zm-11 19h-3v-11h3v11zm-1.5-12.268c-.966 0-1.75-.79-1.75-1.764s.784-1.764 1.75-1.764 1.75.79 1.75 1.764-.783 1.764-1.75 1.764zm13.5 12.268h-3v-5.604c0-3.368-4-3.113-4 0v5.604h-3v-11h3v1.765c1.396-2.586 7-2.777 7 2.476v6.759z"})})},{name:"Facebook",href:`https://www.facebook.com/sharer/sharer.php?u=${n}`,color:"bg-[#1877f2]",icon:_.jsx("svg",{className:"w-4 h-4",fill:"currentColor",viewBox:"0 0 24 24",children:_.jsx("path",{d:"M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.47h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z"})})}];return _.jsxs("div",{className:"flex items-center space-x-3",children:[_.jsx("span",{className:"text-sm font-semibold text-gray-500 uppercase tracking-wider",children:"Share:"}),i.map(o=>_.jsx("a",{href:o.href,target:"_blank",rel:"noopener noreferrer",className:`${o.color} text-white p-2 rounded-full hover:opacity-90 transition-opacity flex items-center justify-center`,"aria-label":`Share on ${o.name}`,children:o.icon},o.name))]})},D0e=()=>{const{id:t}=zh(),[e,n]=k.useState(0),r=k.useMemo(()=>Pu.find(c=>c.id===t),[t]),i=k.useMemo(()=>r?Fu.find(c=>c.id===r.authorId):null,[r]),o=k.useMemo(()=>r?Pu.filter(c=>c.id!==r.id&&(c.category===r.category||c.tags.some(f=>r.tags.includes(f)))).slice(0,3):[],[r]),s=k.useMemo(()=>[...Pu].filter(c=>c.id!==t).sort((c,f)=>new Date(f.date).getTime()-new Date(c.date).getTime()).slice(0,4),[t]);k.useEffect(()=>{const c=()=>{const f=window.scrollY,p=document.documentElement.scrollHeight-window.innerHeight;p>0&&n(f/p*100)};return window.addEventListener("scroll",c),()=>window.removeEventListener("scroll",c)},[]),k.useEffect(()=>{window.scrollTo({top:0,behavior:"smooth"})},[t]);const u=k.useCallback((c,f)=>{switch(c.type){case"heading":return _.jsx("h2",{className:"text-2xl md:text-3xl font-serif font-bold text-gray-900 mt-12 mb-6",children:c.text},f);case"paragraph":return _.jsx("p",{className:"mb-6 text-lg text-gray-700 leading-relaxed",children:c.text},f);case"quote":return _.jsxs("blockquote",{className:"relative py-4 my-10 border-l-4 border-brand-primary pl-8 italic text-2xl font-serif text-brand-primary",children:['"',c.text,'"']},f);case"callout":return _.jsx("div",{className:"bg-brand-primary/5 border-l-4 border-brand-primary p-8 my-10 rounded-r-2xl italic",children:c.text},f);case"list":return _.jsx("ul",{className:"list-none space-y-4 mb-8 ml-2",children:c.items.map((p,y)=>_.jsxs("li",{className:"flex items-start text-gray-700 text-lg",children:[_.jsx("span",{className:"text-brand-primary mr-3 mt-1.5",children:"â¢"}),p]},y))},f);default:return null}},[]);return r?_.jsxs(_.Fragment,{children:[_.jsx(Ys,{title:r.title,description:r.excerpt,image:r.imageUrl,type:"article"}),_.jsxs("article",{className:"bg-white min-h-screen",children:[_.jsx("div",{className:"fixed top-0 left-0 w-full h-1.5 z-[100] bg-gray-100",children:_.jsx("div",{className:"h-full bg-brand-primary transition-all duration-75 ease-out",style:{width:`${e}%`}})}),_.jsxs("header",{className:"relative w-full h-[65vh] min-h-[500px] overflow-hidden",children:[_.jsx("img",{src:r.imageUrl,alt:r.title,className:"w-full h-full object-cover"}),_.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black via-black/40 to-transparent"}),_.jsx("div",{className:"absolute inset-0 flex flex-col justify-end pb-16",children:_.jsxs("div",{className:"container mx-auto px-6 max-w-5xl",children:[_.jsxs(Pe,{to:"/blog",className:"inline-flex items-center gap-2 text-brand-accent font-semibold mb-8 hover:translate-x-[-4px] transition-transform",children:[_.jsx(a7,{size:18})," Back to Insights"]}),_.jsxs("div",{className:"flex flex-wrap items-center gap-4 mb-6",children:[_.jsx("span",{className:"bg-brand-primary text-white text-xs font-bold px-4 py-1.5 rounded-full uppercase tracking-widest",children:r.category}),_.jsxs("span",{className:"text-gray-300 text-sm flex items-center gap-2",children:[_.jsx(Fq,{size:14})," ",r.date]})]}),_.jsx("h1",{className:"text-4xl md:text-6xl font-serif font-bold text-white leading-tight max-w-4xl",children:r.title})]})})]}),_.jsxs("div",{className:"container mx-auto px-6 max-w-6xl py-20",children:[_.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-[1fr_320px] gap-16",children:[_.jsxs("main",{children:[_.jsx("p",{className:"text-2xl font-serif text-gray-600 leading-relaxed mb-12 italic border-l-4 border-brand-accent pl-8",children:r.excerpt}),_.jsx("div",{className:"prose-custom",children:r.content.map((c,f)=>u(c,f))}),_.jsx("div",{className:"mt-16 pt-8 border-t border-gray-100 flex flex-wrap gap-3",children:r.tags.map(c=>_.jsxs("span",{className:"flex items-center gap-1.5 bg-gray-50 text-gray-600 text-sm font-medium px-4 py-2 rounded-xl border border-gray-100 italic",children:["#",c]},c))})]}),_.jsxs("aside",{className:"space-y-12",children:[_.jsxs("section",{children:[_.jsxs("h3",{className:"text-xs uppercase tracking-[0.2em] font-bold text-gray-400 mb-6 flex items-center gap-2",children:[_.jsx("div",{className:"w-8 h-[1px] bg-gray-300"})," Published By"]}),i&&_.jsxs(Pe,{to:`/people/${i.id}`,className:"group block",children:[_.jsx("img",{src:i.imageUrl,alt:i.name,className:"w-20 h-20 rounded-2xl object-cover mb-4 shadow-lg group-hover:scale-105 transition-transform"}),_.jsx("p",{className:"font-bold text-brand-text group-hover:text-brand-primary transition",children:i.name}),_.jsx("p",{className:"text-sm text-gray-500",children:i.role})]})]}),_.jsxs("section",{children:[_.jsx("h3",{className:"text-xs uppercase tracking-[0.2em] font-bold text-gray-400 mb-4",children:"Spread the Word"}),_.jsx(O0e,{url:window.location.href,title:r.title})]}),_.jsxs("section",{className:"bg-gray-50 p-6 rounded-3xl border border-gray-100",children:[_.jsxs("h3",{className:"text-xs uppercase tracking-[0.2em] font-bold text-brand-primary mb-6 flex items-center gap-2",children:[_.jsx(b7,{size:14,className:"fill-brand-primary"})," Recent Stories"]}),_.jsx("div",{className:"space-y-6",children:s.map(c=>_.jsxs(Pe,{to:`/blog/${c.id}`,className:"flex gap-4 group items-start",children:[_.jsx("div",{className:"w-16 h-16 shrink-0 rounded-xl overflow-hidden shadow-sm",children:_.jsx("img",{src:c.imageUrl,alt:c.title,className:"w-full h-full object-cover group-hover:scale-110 transition-transform duration-500"})}),_.jsxs("div",{className:"space-y-1",children:[_.jsx("h4",{className:"text-sm font-bold text-brand-text leading-snug group-hover:text-brand-primary transition-colors line-clamp-2",children:c.title}),_.jsx("p",{className:"text-[10px] text-gray-400 uppercase font-bold tracking-wider",children:c.date})]})]},c.id))}),_.jsx(Pe,{to:"/blog",className:"mt-8 pt-6 border-t border-gray-200 block text-center text-xs font-bold text-brand-primary hover:underline uppercase tracking-widest",children:"View All Insights"})]})]})]}),i&&_.jsxs("section",{className:"mt-24 p-10 bg-brand-background rounded-[2.5rem] flex flex-col md:flex-row items-center gap-10 border border-brand-primary/10 shadow-sm",children:[_.jsx("img",{src:i.imageUrl,alt:i.name,className:"w-32 h-32 rounded-[2rem] object-cover shadow-xl"}),_.jsxs("div",{className:"flex-1 text-center md:text-left",children:[_.jsx("span",{className:"text-xs font-bold text-brand-primary uppercase tracking-widest",children:"The Expert Voice"}),_.jsx("h4",{className:"text-2xl font-serif font-bold text-brand-text mt-1 mb-4",children:i.name}),_.jsx("p",{className:"text-gray-600 leading-relaxed mb-6 italic max-w-2xl",children:i.bio}),_.jsxs(Pe,{to:`/people/${i.id}`,className:"inline-flex items-center gap-2 text-brand-primary font-bold group",children:["Full Profile ",_.jsx(Hq,{size:18,className:"group-hover:translate-x-1 transition-transform"})]})]})]})]}),o.length>0&&_.jsx("section",{className:"bg-gray-50 py-24 border-t border-gray-100",children:_.jsxs("div",{className:"container mx-auto px-6 max-w-6xl",children:[_.jsx("div",{className:"flex items-end justify-between mb-12",children:_.jsxs("div",{children:[_.jsx("h2",{className:"text-3xl font-serif font-bold text-gray-900 mb-2",children:"Related Articles"}),_.jsx("div",{className:"w-20 h-1.5 bg-brand-accent rounded-full"})]})}),_.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-10",children:o.map(c=>_.jsx(nj,{post:c},c.id))})]})})]})]}):null},I0e=()=>_.jsx(eB,{children:_.jsx(z6,{children:_.jsxs("div",{className:"flex flex-col min-h-screen",children:[_.jsx(tH,{}),_.jsx("main",{className:"flex-grow",children:_.jsxs(A6,{children:[_.jsx(Kt,{path:"/",element:_.jsx(J7,{})}),_.jsx(Kt,{path:"/about",element:_.jsx(Q7,{})}),_.jsx(Kt,{path:"/research",element:_.jsx(e9,{})}),_.jsx(Kt,{path:"/projects/:id",element:_.jsx(tne,{})}),_.jsx(Kt,{path:"/publications",element:_.jsx(t9,{})}),_.jsx(Kt,{path:"/people",element:_.jsx(tB,{})}),_.jsx(Kt,{path:"/people/:id",element:_.jsx(nne,{})}),_.jsx(Kt,{path:"/events",element:_.jsx(n9,{})}),_.jsx(Kt,{path:"/datasets",element:_.jsx(ine,{})}),_.jsx(Kt,{path:"/datasets/:id",element:_.jsx(C0e,{})}),_.jsx(Kt,{path:"/models",element:_.jsx(M0e,{})}),_.jsx(Kt,{path:"/blog",element:_.jsx(N0e,{})}),_.jsx(Kt,{path:"/blog/:id",element:_.jsx(D0e,{})}),_.jsx(Kt,{path:"/join",element:_.jsx(r9,{})}),_.jsx(Kt,{path:"/demo",element:_.jsx(ene,{})}),_.jsx(Kt,{path:"/partners",element:_.jsx(R0e,{})})]})}),_.jsx(oH,{})]})})}),rj=document.getElementById("root");
364if(!rj)throw new Error("Could not find root element to mount to");const k0e=OF.createRoot(rj);k0e.render(_.jsx(j.StrictMode,{children:_.jsx(I0e,{})}));
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.