vendor: 6,401 bytes, lines 1-9
1var mz=Object.defineProperty;var _N=e=>{throw TypeError(e)};var gz=(e,t,n)=>t in e?mz(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var fs=(e,t,n)=>gz(e,typeof t!="symbol"?t+"":t,n),Ib=(e,t,n)=>t.has(e)||_N("Cannot "+n);var $=(e,t,n)=>(Ib(e,t,"read from private field"),n?n.call(e):t.get(e)),be=(e,t,n)=>t.has(e)?_N("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),ie=(e,t,n,r)=>(Ib(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),Le=(e,t,n)=>(Ib(e,t,"access private method"),n);var Jp=(e,t,n,r)=>({set _(i){ie(e,t,i,n)},get _(){return $(e,t,r)}});function yz(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const s=Object.getOwnPropertyDescriptor(r,i);s&&Object.defineProperty(e,i,s.get?s:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const a of s.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(i){if(i.ep)return;i.ep=!0;const s=n(i);fetch(i.href,s)}})();var em=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function tt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var $$={exports:{}},Rv={},D$={exports:{}},Ue={};/** 2 * @license React 3 * react.production.min.js 4 * 5 * Copyright (c) Facebook, Inc. and its affiliates. 6 * 7 * This source code is licensed under the MIT license found in the 8 * LICENSE file in the root directory of this source tree. 9 */var xp=Symbol.for("react.element"),vz=Symbol.for("react.portal"),xz=Symbol.for("react.fragment"),bz=Symbol.for("react.strict_mode"),wz=Symbol.for("react.profiler"),kz=Symbol.for("react.provider"),Sz=Symbol.for("react.context"),jz=Symbol.for("react.forward_ref"),_z=Symbol.for("react.suspense"),Ez=Symbol.for("react.memo"),Tz=Symbol.for("react.lazy"),EN=Symbol.iterator;function Nz(e){return e===null||typeof e!="object"?null:(e=EN&&e[EN]||e["@@iterator"],typeof e=="function"?e:null)}var L$={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},F$=Object.assign,B$={};function Yu(e,t,n){this.props=e,this.context=t,this.refs=B$,this.updater=n||L$}Yu.prototype.isReactComponent={};Yu.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Yu.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function V$(){}V$.prototype=Yu.prototype;function Cj(e,t,n){this.props=e,this.context=t,this.refs=B$,this.updater=n||L$}var Aj=Cj.prototype=new V$;Aj.constructor=Cj;F$(Aj,Yu.prototype);Aj.isPureReactComponent=!0;var TN=Array.isArray,q$=Object.prototype.hasOwnProperty,Pj={current:null},U$={key:!0,ref:!0,__self:!0,__source:!0};function W$(e,t,n){var r,i={},s=null,a=null;if(t!=null)for(r in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(s=""+t.key),t)q$.call(t,r)&&!U$.hasOwnProperty(r)&&(i[r]=t[r]);var o=arguments.length-2;if(o===1)i.children=n;else if(1<o){for(var l=Array(o),u=0;u<o;u++)l[u]=arguments[u+2];i.children=l}if(e&&e.defaultProps)for(r in o=e.defaultProps,o)i[r]===void 0&&(i[r]=o[r]);return{$$typeof:xp,type:e,key:s,ref:a,props:i,_owner:Pj.current}}function Cz(e,t){return{$$typeof:xp,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Oj(e){return typeof e=="object"&&e!==null&&e.$$typeof===xp}function Az(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var NN=/\/+/g;function Mb(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Az(""+e.key):t.toString(36)}function rg(e,t,n,r,i){var s=typeof e;(s==="undefined"||s==="boolean")&&(e=null);var a=!1;if(e===null)a=!0;else switch(s){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case xp:case vz:a=!0}}if(a)return a=e,i=i(a),e=r===""?"."+Mb(a,0):r,TN(i)?(n="",e!=null&&(n=e.replace(NN,"$&/")+"/"),rg(i,t,n,"",function(u){return u})):i!=null&&(Oj(i)&&(i=Cz(i,n+(!i.key||a&&a.key===i.key?"":(""+i.key).replace(NN,"$&/")+"/")+e)),t.push(i)),1;if(a=0,r=r===""?".":r+":",TN(e))for(var o=0;o<e.length;o++){s=e[o];var l=r+Mb(s,o);a+=rg(s,t,n,l,i)}else if(l=Nz(e),typeof l=="function")for(e=l.call(e),o=0;!(s=e.next()).done;)s=s.value,l=r+Mb(s,o++),a+=rg(s,t,n,l,i);else if(s==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return a}function tm(e,t,n){if(e==null)return e;var r=[],i=0;return rg(e,r,"","",function(s){return t.call(n,s,i++)}),r}function Pz(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Gn={current:null},ig={transition:null},Oz={ReactCurrentDispatcher:Gn,ReactCurrentBatchConfig:ig,ReactCurrentOwner:Pj};function z$(){throw Error("act(...) is not supported in production builds of React.")}Ue.Children={map:tm,forEach:function(e,t,n){tm(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return tm(e,function(){t++}),t},toArray:function(e){return tm(e,function(t){return t})||[]},only:function(e){if(!Oj(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Ue.Component=Yu;Ue.Fragment=xz;Ue.Profiler=wz;Ue.PureComponent=Cj;Ue.StrictMode=bz;Ue.Suspense=_z;
vendor: 4,886 bytes, lines 9-25
9Ue.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Oz;Ue.act=z$;Ue.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=F$({},e.props),i=e.key,s=e.ref,a=e._owner;if(t!=null){if(t.ref!==void 0&&(s=t.ref,a=Pj.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var o=e.type.defaultProps;for(l in t)q$.call(t,l)&&!U$.hasOwnProperty(l)&&(r[l]=t[l]===void 0&&o!==void 0?o[l]:t[l])}var l=arguments.length-2;if(l===1)r.children=n;else if(1<l){o=Array(l);for(var u=0;u<l;u++)o[u]=arguments[u+2];r.children=o}return{$$typeof:xp,type:e.type,key:i,ref:s,props:r,_owner:a}};Ue.createContext=function(e){return e={$$typeof:Sz,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:kz,_context:e},e.Consumer=e};Ue.createElement=W$;Ue.createFactory=function(e){var t=W$.bind(null,e);return t.type=e,t};Ue.createRef=function(){return{current:null}};Ue.forwardRef=function(e){return{$$typeof:jz,render:e}};Ue.isValidElement=Oj;Ue.lazy=function(e){return{$$typeof:Tz,_payload:{_status:-1,_result:e},_init:Pz}};Ue.memo=function(e,t){return{$$typeof:Ez,type:e,compare:t===void 0?null:t}};Ue.startTransition=function(e){var t=ig.transition;ig.transition={};try{e()}finally{ig.transition=t}};Ue.unstable_act=z$;Ue.useCallback=function(e,t){return Gn.current.useCallback(e,t)};Ue.useContext=function(e){return Gn.current.useContext(e)};Ue.useDebugValue=function(){};Ue.useDeferredValue=function(e){return Gn.current.useDeferredValue(e)};Ue.useEffect=function(e,t){return Gn.current.useEffect(e,t)};Ue.useId=function(){return Gn.current.useId()};Ue.useImperativeHandle=function(e,t,n){return Gn.current.useImperativeHandle(e,t,n)};Ue.useInsertionEffect=function(e,t){return Gn.current.useInsertionEffect(e,t)};Ue.useLayoutEffect=function(e,t){return Gn.current.useLayoutEffect(e,t)};Ue.useMemo=function(e,t){return Gn.current.useMemo(e,t)};Ue.useReducer=function(e,t,n){return Gn.current.useReducer(e,t,n)};Ue.useRef=function(e){return Gn.current.useRef(e)};Ue.useState=function(e){return Gn.current.useState(e)};Ue.useSyncExternalStore=function(e,t,n){return Gn.current.useSyncExternalStore(e,t,n)};Ue.useTransition=function(){return Gn.current.useTransition()};Ue.version="18.3.1";D$.exports=Ue;var w=D$.exports;const A=tt(w),Rj=yz({__proto__:null,default:A},[w]);/** 10 * @license React 11 * react-jsx-runtime.production.min.js 12 * 13 * Copyright (c) Facebook, Inc. and its affiliates. 14 * 15 * This source code is licensed under the MIT license found in the 16 * LICENSE file in the root directory of this source tree. 17 */var Rz=w,Iz=Symbol.for("react.element"),Mz=Symbol.for("react.fragment"),$z=Object.prototype.hasOwnProperty,Dz=Rz.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Lz={key:!0,ref:!0,__self:!0,__source:!0};function H$(e,t,n){var r,i={},s=null,a=null;n!==void 0&&(s=""+n),t.key!==void 0&&(s=""+t.key),t.ref!==void 0&&(a=t.ref);for(r in t)$z.call(t,r)&&!Lz.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:Iz,type:e,key:s,ref:a,props:i,_owner:Dz.current}}Rv.Fragment=Mz;Rv.jsx=H$;Rv.jsxs=H$;$$.exports=Rv;var c=$$.exports,K$={exports:{}},Nr={},G$={exports:{}},Y$={};/** 18 * @license React 19 * scheduler.production.min.js 20 * 21 * Copyright (c) Facebook, Inc. and its affiliates. 22 * 23 * This source code is licensed under the MIT license found in the 24 * LICENSE file in the root directory of this source tree. 25 */(function(e){function t(I,O){var V=I.length;I.push(O);e:for(;0<V;){var z=V-1>>>1,q=I[z];if(0<i(q,O))I[z]=O,I[V]=q,V=z;else break e}}function n(I){return I.length===0?null:I[0]}function r(I){if(I.length===0)return null;var O=I[0],V=I.pop();if(V!==O){I[0]=V;e:for(var z=0,q=I.length,X=q>>>1;z<X;){var J=2*(z+1)-1,xe=I[J],ke=J+1,Y=I[ke];if(0>i(xe,V))ke<q&&0>i(Y,xe)?(I[z]=Y,I[ke]=V,z=ke):(I[z]=xe,I[J]=V,z=J);else if(ke<q&&0>i(Y,V))I[z]=Y,I[ke]=V,z=ke;else break e}}return O}function i(I,O){var V=I.sortIndex-O.sortIndex;return V!==0?V:I.id-O.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var a=Date,o=a.now();e.unstable_now=function(){return a.now()-o}}var l=[],u=[],d=1,h=null,f=3,p=!1,g=!1,m=!1,y=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,x=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function b(I){for(var O=n(u);O!==null;){if(O.callback===null)r(u);else if(O.startTime<=I)r(u),O.sortIndex=O.expirationTime,t(l,O);else break;O=n(u)}}function S(I){if(m=!1,b(I),!g)if(n(l)!==null)g=!0,L(k);else{var O=n(u);
vendor: 8,852 bytes, lines 25-33
25O!==null&&B(S,O.startTime-I)}}function k(I,O){g=!1,m&&(m=!1,v(E),E=-1),p=!0;var V=f;try{for(b(O),h=n(l);h!==null&&(!(h.expirationTime>O)||I&&!P());){var z=h.callback;if(typeof z=="function"){h.callback=null,f=h.priorityLevel;var q=z(h.expirationTime<=O);O=e.unstable_now(),typeof q=="function"?h.callback=q:h===n(l)&&r(l),b(O)}else r(l);h=n(l)}if(h!==null)var X=!0;else{var J=n(u);J!==null&&B(S,J.startTime-O),X=!1}return X}finally{h=null,f=V,p=!1}}var j=!1,_=null,E=-1,T=5,N=-1;function P(){return!(e.unstable_now()-N<T)}function C(){if(_!==null){var I=e.unstable_now();N=I;var O=!0;try{O=_(!0,I)}finally{O?M():(j=!1,_=null)}}else j=!1}var M;if(typeof x=="function")M=function(){x(C)};else if(typeof MessageChannel<"u"){var R=new MessageChannel,D=R.port2;R.port1.onmessage=C,M=function(){D.postMessage(null)}}else M=function(){y(C,0)};function L(I){_=I,j||(j=!0,M())}function B(I,O){E=y(function(){I(e.unstable_now())},O)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(I){I.callback=null},e.unstable_continueExecution=function(){g||p||(g=!0,L(k))},e.unstable_forceFrameRate=function(I){0>I||125<I?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):T=0<I?Math.floor(1e3/I):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(I){switch(f){case 1:case 2:case 3:var O=3;break;default:O=f}var V=f;f=O;try{return I()}finally{f=V}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(I,O){switch(I){case 1:case 2:case 3:case 4:case 5:break;default:I=3}var V=f;f=I;try{return O()}finally{f=V}},e.unstable_scheduleCallback=function(I,O,V){var z=e.unstable_now();switch(typeof V=="object"&&V!==null?(V=V.delay,V=typeof V=="number"&&0<V?z+V:z):V=z,I){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=V+q,I={id:d++,callback:O,priorityLevel:I,startTime:V,expirationTime:q,sortIndex:-1},V>z?(I.sortIndex=V,t(u,I),n(l)===null&&I===n(u)&&(m?(v(E),E=-1):m=!0,B(S,V-z))):(I.sortIndex=q,t(l,I),g||p||(g=!0,L(k))),I},e.unstable_shouldYield=P,e.unstable_wrapCallback=function(I){var O=f;return function(){var V=f;f=O;try{return I.apply(this,arguments)}finally{f=V}}}})(Y$);G$.exports=Y$;var Fz=G$.exports;/** 26 * @license React 27 * react-dom.production.min.js 28 * 29 * Copyright (c) Facebook, Inc. and its affiliates. 30 * 31 * This source code is licensed under the MIT license found in the 32 * LICENSE file in the root directory of this source tree. 33 */var Bz=w,Er=Fz;function Z(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var X$=new Set,Bh={};function Cl(e,t){au(e,t),au(e+"Capture",t)}function au(e,t){for(Bh[e]=t,e=0;e<t.length;e++)X$.add(t[e])}var Is=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Mw=Object.prototype.hasOwnProperty,Vz=/^[: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]*$/,CN={},AN={};function qz(e){return Mw.call(AN,e)?!0:Mw.call(CN,e)?!1:Vz.test(e)?AN[e]=!0:(CN[e]=!0,!1)}function Uz(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Wz(e,t,n,r){if(t===null||typeof t>"u"||Uz(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Yn(e,t,n,r,i,s,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=a}var Tn={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Tn[e]=new Yn(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Tn[t]=new Yn(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Tn[e]=new Yn(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Tn[e]=new Yn(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Tn[e]=new Yn(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Tn[e]=new Yn(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Tn[e]=new Yn(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Tn[e]=new Yn(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Tn[e]=new Yn(e,5,!1,e.toLowerCase(),null,!1,!1)});var Ij=/[\-:]([a-z])/g;function Mj(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Ij,Mj);Tn[t]=new Yn(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Ij,Mj);Tn[t]=new Yn(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Ij,Mj);Tn[t]=new Yn(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Tn[e]=new Yn(e,1,!1,e.toLowerCase(),null,!1,!1)});Tn.xlinkHref=new Yn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Tn[e]=new Yn(e,1,!1,e.toLowerCase(),null,!0,!0)});function $j(e,t,n,r){var i=Tn.hasOwnProperty(t)?Tn[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(Wz(t,n,i,r)&&(n=null),r||i===null?qz(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:"":n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var Ks=Bz.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,nm=Symbol.for("react.element"),lc=Symbol.for("react.portal"),cc=Symbol.for("react.fragment"),Dj=Symbol.for("react.strict_mode"),$w=Symbol.for("react.profiler"),Q$=Symbol.for("react.provider"),Z$=Symbol.for("react.context"),Lj=Symbol.for("react.forward_ref"),Dw=Symbol.for("react.suspense"),Lw=Symbol.for("react.suspense_list"),Fj=Symbol.for("react.memo"),fa=Symbol.for("react.lazy"),J$=Symbol.for("react.offscreen"),PN=Symbol.iterator;function Ed(e){return e===null||typeof e!="object"?null:(e=PN&&e[PN]||e["@@iterator"],typeof e=="function"?e:null)}var It=Object.assign,$b;function eh(e){if($b===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);
vendor: 4,292 bytes, lines 33-37
33$b=t&&t[1]||""}return` 34`+$b+e}var Db=!1;function Lb(e,t){if(!e||Db)return"";Db=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var i=u.stack.split(` 35`),s=r.stack.split(` 36`),a=i.length-1,o=s.length-1;1<=a&&0<=o&&i[a]!==s[o];)o--;for(;1<=a&&0<=o;a--,o--)if(i[a]!==s[o]){if(a!==1||o!==1)do if(a--,o--,0>o||i[a]!==s[o]){var l=` 37`+i[a].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=a&&0<=o);break}}}finally{Db=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?eh(e):""}function zz(e){switch(e.tag){case 5:return eh(e.type);case 16:return eh("Lazy");case 13:return eh("Suspense");case 19:return eh("SuspenseList");case 0:case 2:case 15:return e=Lb(e.type,!1),e;case 11:return e=Lb(e.type.render,!1),e;case 1:return e=Lb(e.type,!0),e;default:return""}}function Fw(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case cc:return"Fragment";case lc:return"Portal";case $w:return"Profiler";case Dj:return"StrictMode";case Dw:return"Suspense";case Lw:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Z$:return(e.displayName||"Context")+".Consumer";case Q$:return(e._context.displayName||"Context")+".Provider";case Lj:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Fj:return t=e.displayName||null,t!==null?t:Fw(e.type)||"Memo";case fa:t=e._payload,e=e._init;try{return Fw(e(t))}catch{}}return null}function Hz(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Fw(t);case 8:return t===Dj?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Xa(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function eD(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Kz(e){var t=eD(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(a){r=""+a,s.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function rm(e){e._valueTracker||(e._valueTracker=Kz(e))}function tD(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=eD(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Og(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Bw(e,t){var n=t.checked;return It({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function ON(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Xa(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}
vendor: 4,651 bytes, line 37
37function nD(e,t){t=t.checked,t!=null&&$j(e,"checked",t,!1)}function Vw(e,t){nD(e,t);var n=Xa(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?qw(e,t.type,n):t.hasOwnProperty("defaultValue")&&qw(e,t.type,Xa(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function RN(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function qw(e,t,n){(t!=="number"||Og(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var th=Array.isArray;function Ac(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Xa(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Uw(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(Z(91));return It({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function IN(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(Z(92));if(th(n)){if(1<n.length)throw Error(Z(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Xa(n)}}function rD(e,t){var n=Xa(t.value),r=Xa(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function MN(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function iD(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Ww(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?iD(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var im,sD=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(im=im||document.createElement("div"),im.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=im.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Vh(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var ph={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Gz=["Webkit","ms","Moz","O"];Object.keys(ph).forEach(function(e){Gz.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ph[t]=ph[e]})});function aD(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||ph.hasOwnProperty(e)&&ph[e]?(""+t).trim():t+"px"}function oD(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=aD(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var Yz=It({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function zw(e,t){if(t){if(Yz[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Z(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Z(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Z(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Z(62))}}function Hw(e,t){if(e.indexOf("-")===-1)return typeof t.is=="str
37ing";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Kw=null;function Bj(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Gw=null,Pc=null,Oc=null;function $N(e){if(e=kp(e)){if(typeof Gw!="function")throw Error(Z(280));var t=e.stateNode;t&&(t=Lv(t),Gw(e.stateNode,e.type,t))}}function lD(e){Pc?Oc?Oc.push(e):Oc=[e]:Pc=e}function cD(){if(Pc){var e=Pc,t=Oc;if(Oc=Pc=null,$N(e),t)for(e=0;e<t.length;e++)$N(t[e])}}function uD(e,t){return e(t)}function dD(){}var Fb=!1;function hD(e,t,n){if(Fb)return e(t,n);Fb=!0;try{return uD(e,t,n)}finally{Fb=!1,(Pc!==null||Oc!==null)&&(dD(),cD())}}function qh(e,t){var n=e.stateNode;if(n===null)return null;var r=Lv(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(Z(231,t,typeof n));return n}var Yw=!1;if(Is)try{var Td={};Object.defineProperty(Td,"passive",{get:function(){Yw=!0}}),window.addEventListener("test",Td,Td),window.removeEventListener("test",Td,Td)}catch{Yw=!1}function Xz(e,t,n,r,i,s,a,o,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(d){this.onError(d)}}var mh=!1,Rg=null,Ig=!1,Xw=null,Qz={onError:function(e){mh=!0,Rg=e}};function Zz(e,t,n,r,i,s,a,o,l){mh=!1,Rg=null,Xz.apply(Qz,arguments)}function Jz(e,t,n,r,i,s,a,o,l){if(Zz.apply(this,arguments),mh){if(mh){var u=Rg;mh=!1,Rg=null}else throw Error(Z(198));Ig||(Ig=!0,Xw=u)}}function Al(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function fD(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function DN(e){if(Al(e)!==e)throw Error(Z(188))}function eH(e){var t=e.alternate;if(!t){if(t=Al(e),t===null)throw Error(Z(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var s=i.alternate;if(s===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===s.child){for(s=i.child;s;){if(s===n)return DN(i),e;if(s===r)return DN(i),t;s=s.sibling}throw Error(Z(188))}if(n.return!==r.return)n=i,r=s;else{for(var a=!1,o=i.child;o;){if(o===n){a=!0,n=i,r=s;break}if(o===r){a=!0,r=i,n=s;break}o=o.sibling}if(!a){for(o=s.child;o;){if(o===n){a=!0,n=s,r=i;break}if(o===r){a=!0,r=s,n=i;break}o=o.sibling}if(!a)throw Error(Z(189))}}if(n.alternate!==r)throw Error(Z(190))}if(n.tag!==3)throw Error(Z(188));return n.stateNode.current===n?e:t}function pD(e){return e=eH(e),e!==null?mD(e):null}function mD(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=mD(e);if(t!==null)return t;e=e.sibling}return null}var gD=Er.unstable_scheduleCallback,LN=Er.unstable_cancelCallback,tH=Er.unstable_shouldYield,nH=Er.unstable_requestPaint,Ut=Er.unstable_now,rH=Er.unstable_getCurrentPriorityLevel,Vj=Er.unstable_ImmediatePriority,yD=Er.unstable_UserBlockingPriority,Mg=Er.unstable_NormalPriority,iH=Er.unstable_LowPriority,vD=Er.unstable_IdlePriority,Iv=null,Xi=null;function sH(e){if(Xi&&typeof Xi.onCommitFiberRoot=="function")try{Xi.onCommitFiberRoot(Iv,e,void 0,(e.current.flags&128)===128)}catch{}}var Ei=Math.clz32?Math.clz32:lH,aH=Math.log,oH=Math.LN2;function lH(e){return e>>>=0,e===0?32:31-(aH(e)/oH|0)|0}var sm=64,am=4194304;function nh(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function $g(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,s=e.pingedLanes,a=n&268435455;if(a!==0){var o=a&~i;o!==0?r=nh(o):(s&=a,s!==0&&(r=nh(s)))}else a=n&~i,a!==0?r=nh(a):s!==0&&(r=nh(s));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,s=t&-t,i>=s||i===16&&(s&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Ei(t),i=1<<n,r|=e[n],t&=~i;return r}function cH(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function uH(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,s=e.pendingLanes;0<s;){var a=31-Ei(s),o=1<<a,l=i[a];l===-1?(!(o&n)||o&r)&&(i[a]=cH(o,t)):l<=t&&(e.expiredLanes|=o),s&=~o}}function Qw(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function xD(){var e=sm;return sm<<=1,!(sm&4194240)&&(sm=64),e}function Bb(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function bp(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ei(t),e[t]=n}function dH(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-Ei(n),s=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~s}}function qj(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Ei(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var ot=0;function bD(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var wD,Uj,kD,SD,jD,Zw=!1,om=[],$a=null,Da=null,La=null,Uh=new Map,Wh=new Map,va=[],hH="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function FN(e,t){switch(e){case"focusin":case"focusout":$a=null;break;case"dragenter":case"dragleave":Da=null;break;case"mouseover":case"mouseout":La=null;break;case"pointerover":case"pointerout":Uh.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Wh.delete(t.pointerId)}}function Nd(e,t,n,r,i,s){return e===null||e.nativeEvent!==s?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:s,targetContainers:[i]},t!==null&&(t=kp(t),t!==null&&Uj(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function fH(e,t,n,r,i){switch(t){case"focusin":return $a=Nd($a,e,t,n,r,i),!0;case"dragenter":return Da=Nd(Da,e,t,n,r,i),!0;case"mouseover":return La=Nd(La,e,t,n,r,i),!0;case"pointerover":var s=i.pointerId;return Uh.set(s,Nd(Uh.get(s)||null,e,t,n,r,i)),!0;case"gotpointercapture":return s=i.pointerId,Wh.set(s,Nd(Wh.get(s)||null,e,t,n,r,i)),!0}return!1}function _D(e){var t=Bo(e.target);if(t!==null){var n=Al(t);if(n!==null){if(t=n.tag,t===13){if(t=fD(n),t!==null){e.blockedOn=t,jD(e.priority,function(){kD(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function sg(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Jw(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Kw=r,n.target.dispatchEvent(r),Kw=null}else return t=kp(n),t!==null&&Uj(t),e.blockedOn=n,!1;t.shift()}return!0}function BN(e,t,n){sg(e)&&n.delete(t)}function pH(){Zw=!1,$a!==null&&sg($a)&&($a=null),Da!==null&&sg(Da)&&(Da=null),La!==null&&sg(La)&&(La=null),Uh.forEac
vendor: 9,291 bytes, line 37
37h(BN),Wh.forEach(BN)}function Cd(e,t){e.blockedOn===t&&(e.blockedOn=null,Zw||(Zw=!0,Er.unstable_scheduleCallback(Er.unstable_NormalPriority,pH)))}function zh(e){function t(i){return Cd(i,e)}if(0<om.length){Cd(om[0],e);for(var n=1;n<om.length;n++){var r=om[n];r.blockedOn===e&&(r.blockedOn=null)}}for($a!==null&&Cd($a,e),Da!==null&&Cd(Da,e),La!==null&&Cd(La,e),Uh.forEach(t),Wh.forEach(t),n=0;n<va.length;n++)r=va[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<va.length&&(n=va[0],n.blockedOn===null);)_D(n),n.blockedOn===null&&va.shift()}var Rc=Ks.ReactCurrentBatchConfig,Dg=!0;function mH(e,t,n,r){var i=ot,s=Rc.transition;Rc.transition=null;try{ot=1,Wj(e,t,n,r)}finally{ot=i,Rc.transition=s}}function gH(e,t,n,r){var i=ot,s=Rc.transition;Rc.transition=null;try{ot=4,Wj(e,t,n,r)}finally{ot=i,Rc.transition=s}}function Wj(e,t,n,r){if(Dg){var i=Jw(e,t,n,r);if(i===null)Xb(e,t,r,Lg,n),FN(e,r);else if(fH(i,e,t,n,r))r.stopPropagation();else if(FN(e,r),t&4&&-1<hH.indexOf(e)){for(;i!==null;){var s=kp(i);if(s!==null&&wD(s),s=Jw(e,t,n,r),s===null&&Xb(e,t,r,Lg,n),s===i)break;i=s}i!==null&&r.stopPropagation()}else Xb(e,t,r,null,n)}}var Lg=null;function Jw(e,t,n,r){if(Lg=null,e=Bj(r),e=Bo(e),e!==null)if(t=Al(e),t===null)e=null;else if(n=t.tag,n===13){if(e=fD(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Lg=e,null}function ED(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(rH()){case Vj:return 1;case yD:return 4;case Mg:case iH:return 16;case vD:return 536870912;default:return 16}default:return 16}}var Pa=null,zj=null,ag=null;function TD(){if(ag)return ag;var e,t=zj,n=t.length,r,i="value"in Pa?Pa.value:Pa.textContent,s=i.length;for(e=0;e<n&&t[e]===i[e];e++);var a=n-e;for(r=1;r<=a&&t[n-r]===i[s-r];r++);return ag=i.slice(e,1<r?1-r:void 0)}function og(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function lm(){return!0}function VN(){return!1}function Cr(e){function t(n,r,i,s,a){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=s,this.target=a,this.currentTarget=null;for(var o in e)e.hasOwnProperty(o)&&(n=e[o],this[o]=n?n(s):s[o]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?lm:VN,this.isPropagationStopped=VN,this}return It(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=lm)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=lm)},persist:function(){},isPersistent:lm}),t}var Xu={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Hj=Cr(Xu),wp=It({},Xu,{view:0,detail:0}),yH=Cr(wp),Vb,qb,Ad,Mv=It({},wp,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Kj,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Ad&&(Ad&&e.type==="mousemove"?(Vb=e.screenX-Ad.screenX,qb=e.screenY-Ad.screenY):qb=Vb=0,Ad=e),Vb)},movementY:function(e){return"movementY"in e?e.movementY:qb}}),qN=Cr(Mv),vH=It({},Mv,{dataTransfer:0}),xH=Cr(vH),bH=It({},wp,{relatedTarget:0}),Ub=Cr(bH),wH=It({},Xu,{animationName:0,elapsedTime:0,pseudoElement:0}),kH=Cr(wH),SH=It({},Xu,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),jH=Cr(SH),_H=It({},Xu,{data:0}),UN=Cr(_H),EH={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},TH={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"},NH={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function CH(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=NH[e])?!!t[e]:!1}function Kj(){return CH}var AH=It({},wp,{key:function(e){if(e.key){var t=EH[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=og(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?TH[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Kj,charCode:function(e){return e.type==="keypress"?og(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?og(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),PH=Cr(AH),OH=It({},Mv,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),WN=Cr(OH),RH=It({},wp,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Kj}),IH=Cr(RH),MH=It({},Xu,{propertyName:0,elapsedTime:0,pseudoElement:0}),$H=Cr(MH),DH=It({},Mv,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),LH=Cr(DH),FH=[9,13,27,32],Gj=Is&&"CompositionEvent"in window,gh=null;Is&&"documentMode"in document&&(gh=document.documentMode);var BH=Is&&"TextEvent"in window&&!gh,ND=Is&&(!Gj||gh&&8<gh&&11>=gh),zN=" ",HN=!1;function CD(e,t){switch(e){case"keyup":return FH.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function AD(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var uc=!1;function VH(e,t){switch(e){case"compositionend":return AD(t);case"keypress":return t.which!==32?null:(HN=!0,zN);case"textInput":return e=t.data,e===zN&&HN?null:e;default:return null}}function qH(e,t){if(uc)return e==="compositionend"||!Gj&&CD(e,t)?(e=TD(),ag=zj=Pa=null,uc=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return ND&&t.locale!=="ko"?null:t.data;default:return null}}var UH={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 KN(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!UH[e.type]:t==="textarea"}function PD(e,t,n,r){lD(r),t=Fg(t,"onChange"),0<t.length&&(n=new Hj("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var yh=null,Hh=null;function WH(e){qD(e,0)}function $v(e){var t=fc(e);if(tD(t))return e}function zH(e,t){if(e==="change")return t}var OD=!1;if(Is){var Wb;if(Is){var zb="oninput"in document;if(!zb){var GN=document.createElement("div");GN.setAttribute("oninput","return;"),zb=typeof GN.oninput=="function"}Wb=zb}else Wb=!1;OD=Wb&&(!document.documentMode||9<document.documentMode)}function YN(){yh&&(yh.detachEvent("onpropertychange",RD),Hh=yh=null)}function RD(e){if(e.propertyName==="value"&&$v(Hh)){var t=[];PD(t,Hh,e,Bj(e)),hD(WH,t)}}function HH(e,t,n){e==="focusin"?(YN(),yh=t,Hh=n,yh.attachEvent("onpropertychange",RD)):e==="focusout"&&YN()}function KH(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return $v(Hh)}function GH(e,t){if(e==="click")return $v(t)}function YH(e,t){if(e==="input"||e==="change")return $v(t)}function XH(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ai=typeof Object.is=="function"?Object.is:XH;function Kh(e,t){if(Ai(e,t))return!0;
vendor: 4,808 bytes, line 37
37if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!Mw.call(t,i)||!Ai(e[i],t[i]))return!1}return!0}function XN(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function QN(e,t){var n=XN(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=XN(n)}}function ID(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?ID(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function MD(){for(var e=window,t=Og();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Og(e.document)}return t}function Yj(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function QH(e){var t=MD(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&ID(n.ownerDocument.documentElement,n)){if(r!==null&&Yj(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,s=Math.min(r.start,i);r=r.end===void 0?s:Math.min(r.end,i),!e.extend&&s>r&&(i=r,r=s,s=i),i=QN(n,s);var a=QN(n,r);i&&a&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),s>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var ZH=Is&&"documentMode"in document&&11>=document.documentMode,dc=null,e1=null,vh=null,t1=!1;function ZN(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;t1||dc==null||dc!==Og(r)||(r=dc,"selectionStart"in r&&Yj(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),vh&&Kh(vh,r)||(vh=r,r=Fg(e1,"onSelect"),0<r.length&&(t=new Hj("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=dc)))}function cm(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var hc={animationend:cm("Animation","AnimationEnd"),animationiteration:cm("Animation","AnimationIteration"),animationstart:cm("Animation","AnimationStart"),transitionend:cm("Transition","TransitionEnd")},Hb={},$D={};Is&&($D=document.createElement("div").style,"AnimationEvent"in window||(delete hc.animationend.animation,delete hc.animationiteration.animation,delete hc.animationstart.animation),"TransitionEvent"in window||delete hc.transitionend.transition);function Dv(e){if(Hb[e])return Hb[e];if(!hc[e])return e;var t=hc[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in $D)return Hb[e]=t[n];return e}var DD=Dv("animationend"),LD=Dv("animationiteration"),FD=Dv("animationstart"),BD=Dv("transitionend"),VD=new Map,JN="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function oo(e,t){VD.set(e,t),Cl(t,[e])}for(var Kb=0;Kb<JN.length;Kb++){var Gb=JN[Kb],JH=Gb.toLowerCase(),e9=Gb[0].toUpperCase()+Gb.slice(1);oo(JH,"on"+e9)}oo(DD,"onAnimationEnd");oo(LD,"onAnimationIteration");oo(FD,"onAnimationStart");oo("dblclick","onDoubleClick");oo("focusin","onFocus");oo("focusout","onBlur");oo(BD,"onTransitionEnd");au("onMouseEnter",["mouseout","mouseover"]);au("onMouseLeave",["mouseout","mouseover"]);au("onPointerEnter",["pointerout","pointerover"]);au("onPointerLeave",["pointerout","pointerover"]);Cl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));
vendor: 4,770 bytes, line 37
37Cl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Cl("onBeforeInput",["compositionend","keypress","textInput","paste"]);Cl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Cl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Cl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var rh="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(" "),t9=new Set("cancel close invalid load scroll toggle".split(" ").concat(rh));function eC(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,Jz(r,t,void 0,e),e.currentTarget=null}function qD(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var s=void 0;if(t)for(var a=r.length-1;0<=a;a--){var o=r[a],l=o.instance,u=o.currentTarget;if(o=o.listener,l!==s&&i.isPropagationStopped())break e;eC(i,o,u),s=l}else for(a=0;a<r.length;a++){if(o=r[a],l=o.instance,u=o.currentTarget,o=o.listener,l!==s&&i.isPropagationStopped())break e;eC(i,o,u),s=l}}}if(Ig)throw e=Xw,Ig=!1,Xw=null,e}function xt(e,t){var n=t[a1];n===void 0&&(n=t[a1]=new Set);var r=e+"__bubble";n.has(r)||(UD(t,e,2,!1),n.add(r))}function Yb(e,t,n){var r=0;t&&(r|=4),UD(n,e,r,t)}var um="_reactListening"+Math.random().toString(36).slice(2);function Gh(e){if(!e[um]){e[um]=!0,X$.forEach(function(n){n!=="selectionchange"&&(t9.has(n)||Yb(n,!1,e),Yb(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[um]||(t[um]=!0,Yb("selectionchange",!1,t))}}function UD(e,t,n,r){switch(ED(t)){case 1:var i=mH;break;case 4:i=gH;break;default:i=Wj}n=i.bind(null,t,n,e),i=void 0,!Yw||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Xb(e,t,n,r,i){var s=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var a=r.tag;if(a===3||a===4){var o=r.stateNode.containerInfo;if(o===i||o.nodeType===8&&o.parentNode===i)break;if(a===4)for(a=r.return;a!==null;){var l=a.tag;if((l===3||l===4)&&(l=a.stateNode.containerInfo,l===i||l.nodeType===8&&l.parentNode===i))return;a=a.return}for(;o!==null;){if(a=Bo(o),a===null)return;if(l=a.tag,l===5||l===6){r=s=a;continue e}o=o.parentNode}}r=r.return}hD(function(){var u=s,d=Bj(n),h=[];e:{var f=VD.get(e);if(f!==void 0){var p=Hj,g=e;switch(e){case"keypress":if(og(n)===0)break e;case"keydown":case"keyup":p=PH;break;case"focusin":g="focus",p=Ub;break;case"focusout":g="blur",p=Ub;break;case"beforeblur":case"afterblur":p=Ub;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":p=qN;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":p=xH;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":p=IH;break;case DD:case LD:case FD:p=kH;break;case BD:p=$H;break;case"scroll":p=yH;break;case"wheel":p=LH;break;case"copy":case"cut":case"paste":p=jH;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":p=WN}var m=(t&4)!==0,y=!m&&e==="scroll",v=m?f!==null?f+"Capture":null:f;m=[];for(var x=u,b;x!==null;){b=x;var S=b.stateNode;if(b.tag===5&&S!==null&&(b=S,v!==null&&(S=qh(x,v),S!=null&&m.push(Yh(x,S,b)))),y)break;x=x.return}0<m.length&&(f=new p(f,g,null,n,d),h.push({event:f,listeners:m}))}}if(!(t&7)){e:{if(f=e==="mouseover"||e==="pointerover",p=e==="mouseout"||e==="pointerout",f&&n!==Kw&&(g=n.relatedTarget||n.fromElement)&&(Bo(g)||g[Ms]))break e;if((p||f)&&(f=d.window===d?d:(f=d.ownerDocument)?f.defaultView||f.parentWindow:window,p?(g=n.relatedTarget||n.toElement,p=u,g=g?Bo(g):null,g!==null&&(y=Al(g),g!==y||g.tag!==5&&g.tag!==6)&&(g=null)):(p=null,g=u),p!==g)){if(m=qN,S="onMouseLeave",v="onMouseEnter",x="mouse",(e==="pointerout"||e==="pointerover")&&(m=WN,S="onPointerLeave",v="onPointerEnter",x="pointer"),y=p==null?f:fc(p),b=g==null?f:fc(g),f=new m(S,x+"leave",p,n,d),f.target=y,f.relatedTarget=b,S=null,Bo(d)===u&&(m=new m(v,x+"enter",g,n,d),m.target=b,m.relatedTarget=y,S=m),y=S,p&&g)t:{for(m=p,v=g,x=0,b=m;b;b=Bl(b))x++;for(b=0,S=v;S;S=Bl(S))b++;for(;0<x-b;)m=Bl(m),x--;for(;0<b-x;)v=Bl(v),b--;for(;x--;){if(m===v||v!==null&&m===v.alternate)break t;m=Bl(m),v=Bl(v)}m=null}else m=null;p!==null&&tC(h,f,p,m,!1),g!==null&&y!==null&&tC(h,y,g,m,!0)}}
vendor: 5,572 bytes, lines 37-38
37e:{if(f=u?fc(u):window,p=f.nodeName&&f.nodeName.toLowerCase(),p==="select"||p==="input"&&f.type==="file")var k=zH;else if(KN(f))if(OD)k=YH;else{k=KH;var j=HH}else(p=f.nodeName)&&p.toLowerCase()==="input"&&(f.type==="checkbox"||f.type==="radio")&&(k=GH);if(k&&(k=k(e,u))){PD(h,k,n,d);break e}j&&j(e,f,u),e==="focusout"&&(j=f._wrapperState)&&j.controlled&&f.type==="number"&&qw(f,"number",f.value)}switch(j=u?fc(u):window,e){case"focusin":(KN(j)||j.contentEditable==="true")&&(dc=j,e1=u,vh=null);break;case"focusout":vh=e1=dc=null;break;case"mousedown":t1=!0;break;case"contextmenu":case"mouseup":case"dragend":t1=!1,ZN(h,n,d);break;case"selectionchange":if(ZH)break;case"keydown":case"keyup":ZN(h,n,d)}var _;if(Gj)e:{switch(e){case"compositionstart":var E="onCompositionStart";break e;case"compositionend":E="onCompositionEnd";break e;case"compositionupdate":E="onCompositionUpdate";break e}E=void 0}else uc?CD(e,n)&&(E="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(E="onCompositionStart");E&&(ND&&n.locale!=="ko"&&(uc||E!=="onCompositionStart"?E==="onCompositionEnd"&&uc&&(_=TD()):(Pa=d,zj="value"in Pa?Pa.value:Pa.textContent,uc=!0)),j=Fg(u,E),0<j.length&&(E=new UN(E,e,null,n,d),h.push({event:E,listeners:j}),_?E.data=_:(_=AD(n),_!==null&&(E.data=_)))),(_=BH?VH(e,n):qH(e,n))&&(u=Fg(u,"onBeforeInput"),0<u.length&&(d=new UN("onBeforeInput","beforeinput",null,n,d),h.push({event:d,listeners:u}),d.data=_))}qD(h,t)})}function Yh(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Fg(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,s=i.stateNode;i.tag===5&&s!==null&&(i=s,s=qh(e,n),s!=null&&r.unshift(Yh(e,s,i)),s=qh(e,t),s!=null&&r.push(Yh(e,s,i))),e=e.return}return r}function Bl(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function tC(e,t,n,r,i){for(var s=t._reactName,a=[];n!==null&&n!==r;){var o=n,l=o.alternate,u=o.stateNode;if(l!==null&&l===r)break;o.tag===5&&u!==null&&(o=u,i?(l=qh(n,s),l!=null&&a.unshift(Yh(n,l,o))):i||(l=qh(n,s),l!=null&&a.push(Yh(n,l,o)))),n=n.return}a.length!==0&&e.push({event:t,listeners:a})}var n9=/\r\n?/g,r9=/\u0000|\uFFFD/g;function nC(e){return(typeof e=="string"?e:""+e).replace(n9,` 38`).replace(r9,"")}function dm(e,t,n){if(t=nC(t),nC(e)!==t&&n)throw Error(Z(425))}function Bg(){}var n1=null,r1=null;function i1(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var s1=typeof setTimeout=="function"?setTimeout:void 0,i9=typeof clearTimeout=="function"?clearTimeout:void 0,rC=typeof Promise=="function"?Promise:void 0,s9=typeof queueMicrotask=="function"?queueMicrotask:typeof rC<"u"?function(e){return rC.resolve(null).then(e).catch(a9)}:s1;function a9(e){setTimeout(function(){throw e})}function Qb(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){e.removeChild(i),zh(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);zh(t)}function Fa(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function iC(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var Qu=Math.random().toString(36).slice(2),Ui="__reactFiber$"+Qu,Xh="__reactProps$"+Qu,Ms="__reactContainer$"+Qu,a1="__reactEvents$"+Qu,o9="__reactListeners$"+Qu,l9="__reactHandles$"+Qu;function Bo(e){var t=e[Ui];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Ms]||n[Ui]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=iC(e);e!==null;){if(n=e[Ui])return n;e=iC(e)}return t}e=n,n=e.parentNode}return null}function kp(e){return e=e[Ui]||e[Ms],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function fc(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(Z(33))}function Lv(e){return e[Xh]||null}var o1=[],pc=-1;function lo(e){return{current:e}}function kt(e){0>pc||(e.current=o1[pc],o1[pc]=null,pc--)}function gt(e,t){pc++,o1[pc]=e.current,e.current=t}var Qa={},Dn=lo(Qa),ar=lo(!1),hl=Qa;function ou(e,t){var n=e.type.contextTypes;if(!n)return Qa;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},s;for(s in n)i[s]=t[s];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function or(e){return e=e.childContextTypes,e!=null}function Vg(){kt(ar),kt(Dn)}function sC(e,t,n){if(Dn.current!==Qa)throw Error(Z(168));gt(Dn,t),gt(ar,n)}function WD(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(Z(108,Hz(e)||"Unknown",i));return It({},n,r)}function qg(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Qa,hl=Dn.current,gt(Dn,e),gt(ar,ar.current),!0}function aC(e,t,n){var r=e.stateNode;if(!r)throw Error(Z(169));n?(e=WD(e,t,hl),r.__reactInternalMemoizedMergedChildContext=e,kt(ar),kt(Dn),gt(Dn,e)):kt(ar),gt(ar,n)}var ws=null,Fv=!1,Zb=!1;function zD(e){ws===null?ws=[e]:ws.push(e)}function c9(e){Fv=!0,zD(e)}function co(){if(!Zb&&ws!==null){Zb=!0;var e=0,t=ot;try{var n=ws;for(ot=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}ws=null,Fv=!1}catch(i){throw ws!==null&&(ws=ws.slice(e+1)),gD(Vj,co),i}finally{ot=t,Zb=!1}}return null}
vendor: 13,312 bytes, line 38
38var mc=[],gc=0,Ug=null,Wg=0,Fr=[],Br=0,fl=null,_s=1,Es="";function Co(e,t){mc[gc++]=Wg,mc[gc++]=Ug,Ug=e,Wg=t}function HD(e,t,n){Fr[Br++]=_s,Fr[Br++]=Es,Fr[Br++]=fl,fl=e;var r=_s;e=Es;var i=32-Ei(r)-1;r&=~(1<<i),n+=1;var s=32-Ei(t)+i;if(30<s){var a=i-i%5;s=(r&(1<<a)-1).toString(32),r>>=a,i-=a,_s=1<<32-Ei(t)+i|n<<i|r,Es=s+e}else _s=1<<s|n<<i|r,Es=e}function Xj(e){e.return!==null&&(Co(e,1),HD(e,1,0))}function Qj(e){for(;e===Ug;)Ug=mc[--gc],mc[gc]=null,Wg=mc[--gc],mc[gc]=null;for(;e===fl;)fl=Fr[--Br],Fr[Br]=null,Es=Fr[--Br],Fr[Br]=null,_s=Fr[--Br],Fr[Br]=null}var Sr=null,kr=null,Tt=!1,bi=null;function KD(e,t){var n=qr(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function oC(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Sr=e,kr=Fa(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Sr=e,kr=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=fl!==null?{id:_s,overflow:Es}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=qr(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Sr=e,kr=null,!0):!1;default:return!1}}function l1(e){return(e.mode&1)!==0&&(e.flags&128)===0}function c1(e){if(Tt){var t=kr;if(t){var n=t;if(!oC(e,t)){if(l1(e))throw Error(Z(418));t=Fa(n.nextSibling);var r=Sr;t&&oC(e,t)?KD(r,n):(e.flags=e.flags&-4097|2,Tt=!1,Sr=e)}}else{if(l1(e))throw Error(Z(418));e.flags=e.flags&-4097|2,Tt=!1,Sr=e}}}function lC(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Sr=e}function hm(e){if(e!==Sr)return!1;if(!Tt)return lC(e),Tt=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!i1(e.type,e.memoizedProps)),t&&(t=kr)){if(l1(e))throw GD(),Error(Z(418));for(;t;)KD(e,t),t=Fa(t.nextSibling)}if(lC(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(Z(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){kr=Fa(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}kr=null}}else kr=Sr?Fa(e.stateNode.nextSibling):null;return!0}function GD(){for(var e=kr;e;)e=Fa(e.nextSibling)}function lu(){kr=Sr=null,Tt=!1}function Zj(e){bi===null?bi=[e]:bi.push(e)}var u9=Ks.ReactCurrentBatchConfig;function Pd(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(Z(309));var r=n.stateNode}if(!r)throw Error(Z(147,e));var i=r,s=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===s?t.ref:(t=function(a){var o=i.refs;a===null?delete o[s]:o[s]=a},t._stringRef=s,t)}if(typeof e!="string")throw Error(Z(284));if(!n._owner)throw Error(Z(290,e))}return e}function fm(e,t){throw e=Object.prototype.toString.call(t),Error(Z(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function cC(e){var t=e._init;return t(e._payload)}function YD(e){function t(v,x){if(e){var b=v.deletions;b===null?(v.deletions=[x],v.flags|=16):b.push(x)}}function n(v,x){if(!e)return null;for(;x!==null;)t(v,x),x=x.sibling;return null}function r(v,x){for(v=new Map;x!==null;)x.key!==null?v.set(x.key,x):v.set(x.index,x),x=x.sibling;return v}function i(v,x){return v=Ua(v,x),v.index=0,v.sibling=null,v}function s(v,x,b){return v.index=b,e?(b=v.alternate,b!==null?(b=b.index,b<x?(v.flags|=2,x):b):(v.flags|=2,x)):(v.flags|=1048576,x)}function a(v){return e&&v.alternate===null&&(v.flags|=2),v}function o(v,x,b,S){return x===null||x.tag!==6?(x=s0(b,v.mode,S),x.return=v,x):(x=i(x,b),x.return=v,x)}function l(v,x,b,S){var k=b.type;return k===cc?d(v,x,b.props.children,S,b.key):x!==null&&(x.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===fa&&cC(k)===x.type)?(S=i(x,b.props),S.ref=Pd(v,x,b),S.return=v,S):(S=pg(b.type,b.key,b.props,null,v.mode,S),S.ref=Pd(v,x,b),S.return=v,S)}function u(v,x,b,S){return x===null||x.tag!==4||x.stateNode.containerInfo!==b.containerInfo||x.stateNode.implementation!==b.implementation?(x=a0(b,v.mode,S),x.return=v,x):(x=i(x,b.children||[]),x.return=v,x)}function d(v,x,b,S,k){return x===null||x.tag!==7?(x=al(b,v.mode,S,k),x.return=v,x):(x=i(x,b),x.return=v,x)}function h(v,x,b){if(typeof x=="string"&&x!==""||typeof x=="number")return x=s0(""+x,v.mode,b),x.return=v,x;if(typeof x=="object"&&x!==null){switch(x.$$typeof){case nm:return b=pg(x.type,x.key,x.props,null,v.mode,b),b.ref=Pd(v,null,x),b.return=v,b;case lc:return x=a0(x,v.mode,b),x.return=v,x;case fa:var S=x._init;return h(v,S(x._payload),b)}if(th(x)||Ed(x))return x=al(x,v.mode,b,null),x.return=v,x;fm(v,x)}return null}function f(v,x,b,S){var k=x!==null?x.key:null;if(typeof b=="string"&&b!==""||typeof b=="number")return k!==null?null:o(v,x,""+b,S);if(typeof b=="object"&&b!==null){switch(b.$$typeof){case nm:return b.key===k?l(v,x,b,S):null;case lc:return b.key===k?u(v,x,b,S):null;case fa:return k=b._init,f(v,x,k(b._payload),S)}if(th(b)||Ed(b))return k!==null?null:d(v,x,b,S,null);fm(v,b)}return null}function p(v,x,b,S,k){if(typeof S=="string"&&S!==""||typeof S=="number")return v=v.get(b)||null,o(x,v,""+S,k);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case nm:return v=v.get(S.key===null?b:S.key)||null,l(x,v,S,k);case lc:return v=v.get(S.key===null?b:S.key)||null,u(x,v,S,k);case fa:var j=S._init;return p(v,x,b,j(S._payload),k)}if(th(S)||Ed(S))return v=v.get(b)||null,d(x,v,S,k,null);fm(x,S)}return null}function g(v,x,b,S){for(var k=null,j=null,_=x,E=x=0,T=null;_!==null&&E<b.length;E++){_.index>E?(T=_,_=null):T=_.sibling;var N=f(v,_,b[E],S);if(N===null){_===null&&(_=T);break}e&&_&&N.alternate===null&&t(v,_),x=s(N,x,E),j===null?k=N:j.sibling=N,j=N,_=T}if(E===b.length)return n(v,_),Tt&&Co(v,E),k;if(_===null){for(;E<b.length;E++)_=h(v,b[E],S),_!==null&&(x=s(_,x,E),j===null?k=_:j.sibling=_,j=_);return Tt&&Co(v,E),k}for(_=r(v,_);E<b.length;E++)T=p(_,v,E,b[E],S),T!==null&&(e&&T.alternate!==null&&_.delete(T.key===null?E:T.key),x=s(T,x,E),j===null?k=T:j.sibling=T,j=T);return e&&_.forEach(function(P){return t(v,P)}),Tt&&Co(v,E),k}function m(v,x,b,S){var k=Ed(b);if(typeof k!="function")throw Error(Z(150));if(b=k.call(b),b==null)throw Error(Z(151));for(var j=k=null,_=x,E=x=0,T=null,N=b.next();_!==null&&!N.done;E++,N=b.next()){_.index>E?(T=_,_=null):T=_.sibling;var P=f(v,_,N.value,S);if(P===null){_===null&&(_=T);break}e&&_&&P.alternate===null&&t(v,_),x=s(P,x,E),j===null?k=P:j.sibling=P,j=P,_=T}if(N.done)return n(v,_),Tt&&Co(v,E),k;if(_===null){for(;!N.done;E++,N=b.next())N=h(v,N.value,S),N!==null&&(x=s(N,x,E),j===null?k=N:j.sibling=N,j=N);return Tt&&Co(v,E),k}for(_=r(v,_);!N.done;E++,N=b.next())N=p(_,v,E,N.value,S),N!==null&&(e&&N.alternate!==null&&_.delete(N.key===null?E:N.key),x=s(N,x,E),j===null?k=N:j.sibling=N,j=N);return e&&_.forEach(function(C){return t(v,C)}),Tt&&Co(v,E),k}function y(v,x,b,S){if(typeof b=="object"&&b!==null&&b.type===cc&&b.key===null&&(b=b.props.children),typeof b=="object"&&b!==null){switch(b.$$typeof){case nm:e:{for(var k=b.key,j=x;j!==null;){if(j.key===k){if(k=b.type,k===cc){if(j.tag===7){n(v,j.sibling),x=i(j,b.props.children),x.return=v,v=x;break e}}else if(j.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===fa&&cC(k)===j.type){n(v,j.sibling),x=i(j,b.props),x.ref=Pd(v,j,b),x.return=v,v=x;break e}n(v,j);break}else t(v,j);j=j.sibling}b.type===cc?(x=al(b.props.children,v.mode,S,b.key),x.return=v,v=x):(S=pg(b.type,b.key,b.props,null,v.mode,S),S.ref=Pd(v,x,b),S.return=v,v=S)}return a(v);case lc:e:{for(j=b.key;x!==null;){if(x.key===j)if(x.tag===4&&x.stateNode.containerInfo===b.containerInfo&&x.stateNode.implementation===b.implementation){n(v,x.sibling),x=i(x,b.children||[]),x.return=v,v=x;break e}else{n(v,x);break}else t(v,x);x=x.sibling}x=a0(b,v.mode,S),x.return=v,v=x}return a(v);case fa:return j=b._init,y(v,x,j(b._payload),S)}if(th(b))return g(v,x,b,S);if(Ed(b))return m(v,x,b,S);fm(v,b)}return typeof b=="string"&&b!==""||typeof b=="number"?(b=""+b,x!==null&&x.tag===6?(n(v,x.sibling),x=i(x,b),x.return=v,v=x):(n(v,x),x=s0(b,v.mode,S),x.return=v,v=x),a(v)):n(v,x)}return y}var cu=YD(!0),XD=YD(!1),zg=lo(null),Hg=null,yc=null,Jj=null;function e_(){Jj=yc=Hg=null}function t_(e){var t=zg.current;kt(zg),e._currentValue=t}function u1(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Ic(e,t){Hg=e,Jj=yc=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(rr=!0),e.firstContext=null)}function Gr(e){var t=e._currentValue;if(Jj!==e)if(e={context:e,memoizedValue:t,next:null},yc===null){if(Hg===null)throw Error(Z(308));yc=e,Hg.dependencies={lanes:0,firstContext:e}}else yc=yc.next=e;return t}var Vo=null;function n_(e){Vo===null?Vo=[e]:Vo.push(e)}function QD(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,n_(t)):(n.next=i.next,i.next=n),t.interleaved=n,$s(e,r)}function $s(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var pa=!1;function r_(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function ZD(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Cs(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Ba(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Xe&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,$s(e,n)}return i=r.interleaved,i===null?(t.next=t,n_(r)):(t.next=i.next,i.next=t),r.interleaved=t,$s(e,n)}function lg(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,qj(e,n)}}function uC(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,s=null;if(n=n.firstBaseUpdate,n!==null){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};s===null?i=s=a:s=s.next=a,n=n.next}while(n!==null);s===null?i=s=t:s=s.next=t}else i=s=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:s,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Kg(e,t,n,r){var i=e.updateQueue;pa=!1;var s=i.firstBaseUpdate,a=i.lastBaseUpdate,o=i.shared.pending;if(o!==null){i.shared.pending=null;var l=o,u=l.next;l.next=null,a===null?s=u:a.next=u,a=l;var d=e.alternate;d!==null&&(d=d.updateQueue,o=d.lastBaseUpdate,o!==a&&(o===null?d.firstBaseUpdate=u:o.next=u,d.lastBaseUpdate=l))}if(s!==null){var h=i.baseState;a=0,d=u=l=null,o=s;do{var f=o.lane,p=o.eventTime;if((r&f)===f){d!==null&&(d=d.next={eventTime:p,lane:0,tag:o.tag,payload:o.payload,callback:o.callback,next:null});e:{var g=e,m=o;switch(f=t,p=n,m.tag){case 1:if(g=m.payload,typeof g=="function"){h=g.call(p,h,f);break e}h=g;break e;case 3:g.flags=g.flags&-65537|128;case 0:if(g=m.payload,f=typeof g=="function"?g.call(p,h,f):g,f==null)break e;h=It({},h,f);break e;case 2:pa=!0}}o.callback!==null&&o.lane!==0&&(e.flags|=64,f=i.effects,f===null?i.effects=[o]:f.push(o))}else p={eventTime:p,lane:f,tag:o.tag,payload:o.payload,callback:o.callback,next:null},d===null?(u=d=p,l=h):d=d.next=p,a|=f;if(o=o.next,o===null){if(o=i.shared.pending,o===null)break;f=o,o=f.next,f.next=null,i.lastBaseUpdate=f,i.shared.pending=null}}while(!0);if(d===null&&(l=h),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=d,t=i.shared.interleaved,t!==null){i=t;do a|=i.lane,i=i.next;while(i!==t)}else s===null&&(i.shared.lanes=0);ml|=a,e.lanes=a,e.memoizedState=h}}function dC(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(Z(191,i));i.call(r)}}}var Sp={},Qi=lo(Sp),Qh=lo(Sp),Zh=lo(Sp);function qo(e){if(e===Sp)throw Error(Z(174));return e}function i_(e,t){switch(gt(Zh,t),gt(Qh,e),gt(Qi,Sp),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Ww(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Ww(t,e)}kt(Qi),gt(Qi,t)}function uu(){kt(Qi),kt(Qh),kt(Zh)}function JD(e){qo(Zh.current);var t=qo(Qi.current),n=Ww(t,e.type);t!==n&&(gt(Qh,e),gt(Qi,n))}function s_(e){Qh.current===e&&(kt(Qi),kt(Qh))}var At=lo(0);function Gg(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Jb=[];function a_(){for(var e=0;e<Jb.length;e++)Jb[e]._workInProgressVersionPrimary=null;Jb.length=0}var cg=Ks.ReactCurrentDispatcher,e0=Ks.ReactCurrentBatchConfig,pl=0,Rt=null,tn=null,un=null,Yg=!1,xh=!1,Jh=0,d9=0;
vendor: 5,808 bytes, line 38
38function Cn(){throw Error(Z(321))}function o_(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Ai(e[n],t[n]))return!1;return!0}function l_(e,t,n,r,i,s){if(pl=s,Rt=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,cg.current=e===null||e.memoizedState===null?m9:g9,e=n(r,i),xh){s=0;do{if(xh=!1,Jh=0,25<=s)throw Error(Z(301));s+=1,un=tn=null,t.updateQueue=null,cg.current=y9,e=n(r,i)}while(xh)}if(cg.current=Xg,t=tn!==null&&tn.next!==null,pl=0,un=tn=Rt=null,Yg=!1,t)throw Error(Z(300));return e}function c_(){var e=Jh!==0;return Jh=0,e}function Fi(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return un===null?Rt.memoizedState=un=e:un=un.next=e,un}function Yr(){if(tn===null){var e=Rt.alternate;e=e!==null?e.memoizedState:null}else e=tn.next;var t=un===null?Rt.memoizedState:un.next;if(t!==null)un=t,tn=e;else{if(e===null)throw Error(Z(310));tn=e,e={memoizedState:tn.memoizedState,baseState:tn.baseState,baseQueue:tn.baseQueue,queue:tn.queue,next:null},un===null?Rt.memoizedState=un=e:un=un.next=e}return un}function ef(e,t){return typeof t=="function"?t(e):t}function t0(e){var t=Yr(),n=t.queue;if(n===null)throw Error(Z(311));n.lastRenderedReducer=e;var r=tn,i=r.baseQueue,s=n.pending;if(s!==null){if(i!==null){var a=i.next;i.next=s.next,s.next=a}r.baseQueue=i=s,n.pending=null}if(i!==null){s=i.next,r=r.baseState;var o=a=null,l=null,u=s;do{var d=u.lane;if((pl&d)===d)l!==null&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var h={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};l===null?(o=l=h,a=r):l=l.next=h,Rt.lanes|=d,ml|=d}u=u.next}while(u!==null&&u!==s);l===null?a=r:l.next=o,Ai(r,t.memoizedState)||(rr=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=l,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do s=i.lane,Rt.lanes|=s,ml|=s,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function n0(e){var t=Yr(),n=t.queue;if(n===null)throw Error(Z(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,s=t.memoizedState;if(i!==null){n.pending=null;var a=i=i.next;do s=e(s,a.action),a=a.next;while(a!==i);Ai(s,t.memoizedState)||(rr=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),n.lastRenderedState=s}return[s,r]}function eL(){}function tL(e,t){var n=Rt,r=Yr(),i=t(),s=!Ai(r.memoizedState,i);if(s&&(r.memoizedState=i,rr=!0),r=r.queue,u_(iL.bind(null,n,r,e),[e]),r.getSnapshot!==t||s||un!==null&&un.memoizedState.tag&1){if(n.flags|=2048,tf(9,rL.bind(null,n,r,i,t),void 0,null),hn===null)throw Error(Z(349));pl&30||nL(n,t,i)}return i}function nL(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Rt.updateQueue,t===null?(t={lastEffect:null,stores:null},Rt.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function rL(e,t,n,r){t.value=n,t.getSnapshot=r,sL(t)&&aL(e)}function iL(e,t,n){return n(function(){sL(t)&&aL(e)})}function sL(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Ai(e,n)}catch{return!0}}function aL(e){var t=$s(e,1);t!==null&&Ti(t,e,1,-1)}function hC(e){var t=Fi();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ef,lastRenderedState:e},t.queue=e,e=e.dispatch=p9.bind(null,Rt,e),[t.memoizedState,e]}function tf(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Rt.updateQueue,t===null?(t={lastEffect:null,stores:null},Rt.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function oL(){return Yr().memoizedState}function ug(e,t,n,r){var i=Fi();Rt.flags|=e,i.memoizedState=tf(1|t,n,void 0,r===void 0?null:r)}function Bv(e,t,n,r){var i=Yr();r=r===void 0?null:r;var s=void 0;if(tn!==null){var a=tn.memoizedState;if(s=a.destroy,r!==null&&o_(r,a.deps)){i.memoizedState=tf(t,n,s,r);return}}Rt.flags|=e,i.memoizedState=tf(1|t,n,s,r)}function fC(e,t){return ug(8390656,8,e,t)}function u_(e,t){return Bv(2048,8,e,t)}function lL(e,t){return Bv(4,2,e,t)}function cL(e,t){return Bv(4,4,e,t)}function uL(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function dL(e,t,n){return n=n!=null?n.concat([e]):null,Bv(4,4,uL.bind(null,t,e),n)}function d_(){}function hL(e,t){var n=Yr();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&o_(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function fL(e,t){var n=Yr();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&o_(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function pL(e,t,n){return pl&21?(Ai(n,t)||(n=xD(),Rt.lanes|=n,ml|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,rr=!0),e.memoizedState=n)}function h9(e,t){var n=ot;ot=n!==0&&4>n?n:4,e(!0);var r=e0.transition;e0.transition={};try{e(!1),t()}finally{ot=n,e0.transition=r}}function mL(){return Yr().memoizedState}function f9(e,t,n){var r=qa(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},gL(e))yL(t,n);else if(n=QD(e,t,n,r),n!==null){var i=Kn();Ti(n,e,r,i),vL(n,t,r)}}function p9(e,t,n){var r=qa(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(gL(e))yL(t,i);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var a=t.lastRenderedState,o=s(a,n);if(i.hasEagerState=!0,i.eagerState=o,Ai(o,a)){var l=t.interleaved;l===null?(i.next=i,n_(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=QD(e,t,i,r),n!==null&&(i=Kn(),Ti(n,e,r,i),vL(n,t,r))}}function gL(e){var t=e.alternate;return e===Rt||t!==null&&t===Rt}function yL(e,t){xh=Yg=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}
vendor: 5,510 bytes, lines 38-40
38function vL(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,qj(e,n)}}var Xg={readContext:Gr,useCallback:Cn,useContext:Cn,useEffect:Cn,useImperativeHandle:Cn,useInsertionEffect:Cn,useLayoutEffect:Cn,useMemo:Cn,useReducer:Cn,useRef:Cn,useState:Cn,useDebugValue:Cn,useDeferredValue:Cn,useTransition:Cn,useMutableSource:Cn,useSyncExternalStore:Cn,useId:Cn,unstable_isNewReconciler:!1},m9={readContext:Gr,useCallback:function(e,t){return Fi().memoizedState=[e,t===void 0?null:t],e},useContext:Gr,useEffect:fC,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,ug(4194308,4,uL.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ug(4194308,4,e,t)},useInsertionEffect:function(e,t){return ug(4,2,e,t)},useMemo:function(e,t){var n=Fi();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Fi();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=f9.bind(null,Rt,e),[r.memoizedState,e]},useRef:function(e){var t=Fi();return e={current:e},t.memoizedState=e},useState:hC,useDebugValue:d_,useDeferredValue:function(e){return Fi().memoizedState=e},useTransition:function(){var e=hC(!1),t=e[0];return e=h9.bind(null,e[1]),Fi().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Rt,i=Fi();if(Tt){if(n===void 0)throw Error(Z(407));n=n()}else{if(n=t(),hn===null)throw Error(Z(349));pl&30||nL(r,t,n)}i.memoizedState=n;var s={value:n,getSnapshot:t};return i.queue=s,fC(iL.bind(null,r,s,e),[e]),r.flags|=2048,tf(9,rL.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=Fi(),t=hn.identifierPrefix;if(Tt){var n=Es,r=_s;n=(r&~(1<<32-Ei(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Jh++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=d9++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},g9={readContext:Gr,useCallback:hL,useContext:Gr,useEffect:u_,useImperativeHandle:dL,useInsertionEffect:lL,useLayoutEffect:cL,useMemo:fL,useReducer:t0,useRef:oL,useState:function(){return t0(ef)},useDebugValue:d_,useDeferredValue:function(e){var t=Yr();return pL(t,tn.memoizedState,e)},useTransition:function(){var e=t0(ef)[0],t=Yr().memoizedState;return[e,t]},useMutableSource:eL,useSyncExternalStore:tL,useId:mL,unstable_isNewReconciler:!1},y9={readContext:Gr,useCallback:hL,useContext:Gr,useEffect:u_,useImperativeHandle:dL,useInsertionEffect:lL,useLayoutEffect:cL,useMemo:fL,useReducer:n0,useRef:oL,useState:function(){return n0(ef)},useDebugValue:d_,useDeferredValue:function(e){var t=Yr();return tn===null?t.memoizedState=e:pL(t,tn.memoizedState,e)},useTransition:function(){var e=n0(ef)[0],t=Yr().memoizedState;return[e,t]},useMutableSource:eL,useSyncExternalStore:tL,useId:mL,unstable_isNewReconciler:!1};function mi(e,t){if(e&&e.defaultProps){t=It({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function d1(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:It({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Vv={isMounted:function(e){return(e=e._reactInternals)?Al(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Kn(),i=qa(e),s=Cs(r,i);s.payload=t,n!=null&&(s.callback=n),t=Ba(e,s,i),t!==null&&(Ti(t,e,i,r),lg(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Kn(),i=qa(e),s=Cs(r,i);s.tag=1,s.payload=t,n!=null&&(s.callback=n),t=Ba(e,s,i),t!==null&&(Ti(t,e,i,r),lg(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Kn(),r=qa(e),i=Cs(n,r);i.tag=2,t!=null&&(i.callback=t),t=Ba(e,i,r),t!==null&&(Ti(t,e,r,n),lg(t,e,r))}};function pC(e,t,n,r,i,s,a){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,s,a):t.prototype&&t.prototype.isPureReactComponent?!Kh(n,r)||!Kh(i,s):!0}function xL(e,t,n){var r=!1,i=Qa,s=t.contextType;return typeof s=="object"&&s!==null?s=Gr(s):(i=or(t)?hl:Dn.current,r=t.contextTypes,s=(r=r!=null)?ou(e,i):Qa),t=new t(n,s),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Vv,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=s),t}function mC(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Vv.enqueueReplaceState(t,t.state,null)}function h1(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},r_(e);var s=t.contextType;typeof s=="object"&&s!==null?i.context=Gr(s):(s=or(t)?hl:Dn.current,i.context=ou(e,s)),i.state=e.memoizedState,s=t.getDerivedStateFromProps,typeof s=="function"&&(d1(e,t,s,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&Vv.enqueueReplaceState(i,i.state,null),Kg(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function du(e,t){try{var n="",r=t;do n+=zz(r),r=r.return;while(r);var i=n}catch(s){i=` 39Error generating stack: `+s.message+` 40`+s.stack}return{value:e,source:t,stack:i,digest:null}}
vendor: 9,969 bytes, line 40
40function r0(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function f1(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var v9=typeof WeakMap=="function"?WeakMap:Map;function bL(e,t,n){n=Cs(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Zg||(Zg=!0,S1=r),f1(e,t)},n}function wL(e,t,n){n=Cs(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){f1(e,t)}}var s=e.stateNode;return s!==null&&typeof s.componentDidCatch=="function"&&(n.callback=function(){f1(e,t),typeof r!="function"&&(Va===null?Va=new Set([this]):Va.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),n}function gC(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new v9;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=O9.bind(null,e,t,n),t.then(e,e))}function yC(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function vC(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Cs(-1,1),t.tag=2,Ba(n,t,1))),n.lanes|=1),e)}var x9=Ks.ReactCurrentOwner,rr=!1;function qn(e,t,n,r){t.child=e===null?XD(t,null,n,r):cu(t,e.child,n,r)}function xC(e,t,n,r,i){n=n.render;var s=t.ref;return Ic(t,i),r=l_(e,t,n,r,s,i),n=c_(),e!==null&&!rr?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Ds(e,t,i)):(Tt&&n&&Xj(t),t.flags|=1,qn(e,t,r,i),t.child)}function bC(e,t,n,r,i){if(e===null){var s=n.type;return typeof s=="function"&&!x_(s)&&s.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=s,kL(e,t,s,r,i)):(e=pg(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!(e.lanes&i)){var a=s.memoizedProps;if(n=n.compare,n=n!==null?n:Kh,n(a,r)&&e.ref===t.ref)return Ds(e,t,i)}return t.flags|=1,e=Ua(s,r),e.ref=t.ref,e.return=t,t.child=e}function kL(e,t,n,r,i){if(e!==null){var s=e.memoizedProps;if(Kh(s,r)&&e.ref===t.ref)if(rr=!1,t.pendingProps=r=s,(e.lanes&i)!==0)e.flags&131072&&(rr=!0);else return t.lanes=e.lanes,Ds(e,t,i)}return p1(e,t,n,r,i)}function SL(e,t,n){var r=t.pendingProps,i=r.children,s=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},gt(xc,gr),gr|=n;else{if(!(n&1073741824))return e=s!==null?s.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,gt(xc,gr),gr|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=s!==null?s.baseLanes:n,gt(xc,gr),gr|=r}else s!==null?(r=s.baseLanes|n,t.memoizedState=null):r=n,gt(xc,gr),gr|=r;return qn(e,t,i,n),t.child}function jL(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function p1(e,t,n,r,i){var s=or(n)?hl:Dn.current;return s=ou(t,s),Ic(t,i),n=l_(e,t,n,r,s,i),r=c_(),e!==null&&!rr?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Ds(e,t,i)):(Tt&&r&&Xj(t),t.flags|=1,qn(e,t,n,i),t.child)}function wC(e,t,n,r,i){if(or(n)){var s=!0;qg(t)}else s=!1;if(Ic(t,i),t.stateNode===null)dg(e,t),xL(t,n,r),h1(t,n,r,i),r=!0;else if(e===null){var a=t.stateNode,o=t.memoizedProps;a.props=o;var l=a.context,u=n.contextType;typeof u=="object"&&u!==null?u=Gr(u):(u=or(n)?hl:Dn.current,u=ou(t,u));var d=n.getDerivedStateFromProps,h=typeof d=="function"||typeof a.getSnapshotBeforeUpdate=="function";h||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(o!==r||l!==u)&&mC(t,a,r,u),pa=!1;var f=t.memoizedState;a.state=f,Kg(t,r,a,i),l=t.memoizedState,o!==r||f!==l||ar.current||pa?(typeof d=="function"&&(d1(t,n,d,r),l=t.memoizedState),(o=pa||pC(t,n,o,r,f,l,u))?(h||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(t.flags|=4194308)):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=u,r=o):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,ZD(e,t),o=t.memoizedProps,u=t.type===t.elementType?o:mi(t.type,o),a.props=u,h=t.pendingProps,f=a.context,l=n.contextType,typeof l=="object"&&l!==null?l=Gr(l):(l=or(n)?hl:Dn.current,l=ou(t,l));var p=n.getDerivedStateFromProps;(d=typeof p=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(o!==h||f!==l)&&mC(t,a,r,l),pa=!1,f=t.memoizedState,a.state=f,Kg(t,r,a,i);var g=t.memoizedState;o!==h||f!==g||ar.current||pa?(typeof p=="function"&&(d1(t,n,p,r),g=t.memoizedState),(u=pa||pC(t,n,u,r,f,g,l)||!1)?(d||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(r,g,l),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(r,g,l)),typeof a.componentDidUpdate=="function"&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof a.componentDidUpdate!="function"||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=g),a.props=r,a.state=g,a.context=l,r=u):(typeof a.componentDidUpdate!="function"||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return m1(e,t,n,r,s,i)}function m1(e,t,n,r,i,s){jL(e,t);var a=(t.flags&128)!==0;if(!r&&!a)return i&&aC(t,n,!1),Ds(e,t,s);r=t.stateNode,x9.current=t;var o=a&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&a?(t.child=cu(t,e.child,null,s),t.child=cu(t,null,o,s)):qn(e,t,o,s),t.memoizedState=r.state,i&&aC(t,n,!0),t.child}function _L(e){var t=e.stateNode;t.pendingContext?sC(e,t.pendingContext,t.pendingContext!==t.context):t.context&&sC(e,t.context,!1),i_(e,t.containerInfo)}function kC(e,t,n,r,i){return lu(),Zj(i),t.flags|=256,qn(e,t,n,r),t.child}var g1={dehydrated:null,treeContext:null,retryLane:0};function y1(e){return{baseLanes:e,cachePool:null,transitions:null}}function EL(e,t,n){var r=t.pendingProps,i=At.current,s=!1,a=(t.flags&128)!==0,o;if((o=a)||(o=e!==null&&e.memoizedState===null?!1:(i&2)!==0),o?(s=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),gt(At,i&1),e===null)return c1(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(a=r.children,e=r.fallback,s?(r=t.mode,s=t.child,a={mode:"hidden",children:a},!(r&1)&&s!==null?(s.childLanes=0,s.pendingProps=a):s=Wv(a,r,0,null),e=al(e,r,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=y1(n),t.memoizedState=g1,e):h_(t,a));if(i=e.memoizedState,i!==null&&(o=i.dehydrated,o!==null))return b9(e,t,a,r,o,i,n);if(s){s=r.fallback,a=t.mode,i=e.child,o=i.sibling;var l={mode:"hidden",children:r.children};return!(a&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=Ua(i,l),r.subtreeFlags=i.subtreeFlags&14680064),o!==null?s=Ua(o,s):(s=al(s,a,n,null),s.flags|=2),s.return=t,r.return=t,r.sibling=s,t.child=r,r=s,s=t.child,a=e.child.memoizedState,a=a===null?y1(n):{baseLanes:a.baseLanes|n,cachePool:null,transitions:a.transitions},s.memoizedState=a,s.childLanes=e.childLanes&~n,t.memoizedState=g1,r}return s=e.child,e=s.sibling,r=Ua(s,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function h_(e,t){return t=Wv({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function pm(e,t,n,r){return r!==null&&Zj(r),cu(t,e.child,null,n),e=h_(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function b9(e,t,n,r,i,s,a){if(n)return t.flags&256?(t.flags&=-257,r=r0(Error(Z(422))),pm(e,t,a,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(s=r.fallback,i=t.mode,r=Wv({mode:"visible",children:r.children},i,0,null),s=al(s,i,a,null),s.flags|=2,r.return=t,s.return=t,r.sibling=s,t.child=r,t.mode&1&&cu(t,e.child,null,a),t.child.memoizedState=y1(a),t.memoizedState=g1,s);if(!(t.mode&1))return pm(e,t,a,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var o=r.dgst;return r=o,s=Error(Z(419)),r=r0(s,r,void 0),pm(e,t,a,r)}if(o=(a&e.childLanes)!==0,rr||o){if(r=hn,r!==null){switch(a&-a){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|a)?0:i,i!==0&&i!==s.retryLane&&(s.retryLane=i,$s(e,i),Ti(r,e,i,-1))}return v_(),r=r0(Error(Z(421))),pm(e,t,a,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=R9.bind(null,e),i._reactRetry=t,null):(e=s.treeContext,kr=Fa(i.nextSibling),Sr=t,Tt=!0,bi=null,e!==null&&(Fr[Br++]=_s,Fr[Br++]=Es,Fr[Br++]=fl,_s=e.id,Es=e.overflow,fl=t),t=h_(t,r.children),t.flags|=4096,t)}function SC(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),u1(e.return,t,n)}function i0(e,t,n,r,i){var s=e.memoizedState;s===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=r,s.tail=n,s.tailMode=i)}
vendor: 5,858 bytes, line 40
40function TL(e,t,n){var r=t.pendingProps,i=r.revealOrder,s=r.tail;if(qn(e,t,r.children,n),r=At.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&SC(e,n,t);else if(e.tag===19)SC(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(gt(At,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&Gg(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),i0(t,!1,i,n,s);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Gg(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}i0(t,!0,n,null,s);break;case"together":i0(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function dg(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Ds(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),ml|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(Z(153));if(t.child!==null){for(e=t.child,n=Ua(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Ua(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function w9(e,t,n){switch(t.tag){case 3:_L(t),lu();break;case 5:JD(t);break;case 1:or(t.type)&&qg(t);break;case 4:i_(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;gt(zg,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(gt(At,At.current&1),t.flags|=128,null):n&t.child.childLanes?EL(e,t,n):(gt(At,At.current&1),e=Ds(e,t,n),e!==null?e.sibling:null);gt(At,At.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return TL(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),gt(At,At.current),r)break;return null;case 22:case 23:return t.lanes=0,SL(e,t,n)}return Ds(e,t,n)}var NL,v1,CL,AL;NL=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};v1=function(){};CL=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,qo(Qi.current);var s=null;switch(n){case"input":i=Bw(e,i),r=Bw(e,r),s=[];break;case"select":i=It({},i,{value:void 0}),r=It({},r,{value:void 0}),s=[];break;case"textarea":i=Uw(e,i),r=Uw(e,r),s=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Bg)}zw(n,r);var a;n=null;for(u in i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u==="style"){var o=i[u];for(a in o)o.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Bh.hasOwnProperty(u)?s||(s=[]):(s=s||[]).push(u,null));for(u in r){var l=r[u];if(o=i!=null?i[u]:void 0,r.hasOwnProperty(u)&&l!==o&&(l!=null||o!=null))if(u==="style")if(o){for(a in o)!o.hasOwnProperty(a)||l&&l.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in l)l.hasOwnProperty(a)&&o[a]!==l[a]&&(n||(n={}),n[a]=l[a])}else n||(s||(s=[]),s.push(u,n)),n=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,o=o?o.__html:void 0,l!=null&&o!==l&&(s=s||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(s=s||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Bh.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&xt("scroll",e),s||o===l||(s=[])):(s=s||[]).push(u,l))}n&&(s=s||[]).push("style",n);var u=s;(t.updateQueue=u)&&(t.flags|=4)}};AL=function(e,t,n,r){n!==r&&(t.flags|=4)};function Od(e,t){if(!Tt)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function An(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function k9(e,t,n){var r=t.pendingProps;switch(Qj(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return An(t),null;case 1:return or(t.type)&&Vg(),An(t),null;case 3:return r=t.stateNode,uu(),kt(ar),kt(Dn),a_(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(hm(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,bi!==null&&(E1(bi),bi=null))),v1(e,t),An(t),null;case 5:s_(t);var i=qo(Zh.current);if(n=t.type,e!==null&&t.stateNode!=null)CL(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(Z(166));return An(t),null}if(e=qo(Qi.current),hm(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;switch(r[Ui]=t,r[Xh]=s,e=(t.mode&1)!==0,n){case"dialog":xt("cancel",r),xt("close",r);break;case"iframe":case"object":case"embed":xt("load",r);break;case"video":case"audio":for(i=0;i<rh.length;i++)xt(rh[i],r);break;case"source":xt("error",r);break;case"img":case"image":case"link":xt("error",r),xt("load",r);break;case"details":xt("toggle",r);break;case"input":ON(r,s),xt("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},xt("invalid",r);break;
vendor: 31,270 bytes, line 40
40case"textarea":IN(r,s),xt("invalid",r)}zw(n,s),i=null;for(var a in s)if(s.hasOwnProperty(a)){var o=s[a];a==="children"?typeof o=="string"?r.textContent!==o&&(s.suppressHydrationWarning!==!0&&dm(r.textContent,o,e),i=["children",o]):typeof o=="number"&&r.textContent!==""+o&&(s.suppressHydrationWarning!==!0&&dm(r.textContent,o,e),i=["children",""+o]):Bh.hasOwnProperty(a)&&o!=null&&a==="onScroll"&&xt("scroll",r)}switch(n){case"input":rm(r),RN(r,s,!0);break;case"textarea":rm(r),MN(r);break;case"select":case"option":break;default:typeof s.onClick=="function"&&(r.onclick=Bg)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{a=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=iD(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=a.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[Ui]=t,e[Xh]=r,NL(e,t,!1,!1),t.stateNode=e;e:{switch(a=Hw(n,r),n){case"dialog":xt("cancel",e),xt("close",e),i=r;break;case"iframe":case"object":case"embed":xt("load",e),i=r;break;case"video":case"audio":for(i=0;i<rh.length;i++)xt(rh[i],e);i=r;break;case"source":xt("error",e),i=r;break;case"img":case"image":case"link":xt("error",e),xt("load",e),i=r;break;case"details":xt("toggle",e),i=r;break;case"input":ON(e,r),i=Bw(e,r),xt("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=It({},r,{value:void 0}),xt("invalid",e);break;case"textarea":IN(e,r),i=Uw(e,r),xt("invalid",e);break;default:i=r}zw(n,i),o=i;for(s in o)if(o.hasOwnProperty(s)){var l=o[s];s==="style"?oD(e,l):s==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&sD(e,l)):s==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&Vh(e,l):typeof l=="number"&&Vh(e,""+l):s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&s!=="autoFocus"&&(Bh.hasOwnProperty(s)?l!=null&&s==="onScroll"&&xt("scroll",e):l!=null&&$j(e,s,l,a))}switch(n){case"input":rm(e),RN(e,r,!1);break;case"textarea":rm(e),MN(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Xa(r.value));break;case"select":e.multiple=!!r.multiple,s=r.value,s!=null?Ac(e,!!r.multiple,s,!1):r.defaultValue!=null&&Ac(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=Bg)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return An(t),null;case 6:if(e&&t.stateNode!=null)AL(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(Z(166));if(n=qo(Zh.current),qo(Qi.current),hm(t)){if(r=t.stateNode,n=t.memoizedProps,r[Ui]=t,(s=r.nodeValue!==n)&&(e=Sr,e!==null))switch(e.tag){case 3:dm(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&dm(r.nodeValue,n,(e.mode&1)!==0)}s&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Ui]=t,t.stateNode=r}return An(t),null;case 13:if(kt(At),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Tt&&kr!==null&&t.mode&1&&!(t.flags&128))GD(),lu(),t.flags|=98560,s=!1;else if(s=hm(t),r!==null&&r.dehydrated!==null){if(e===null){if(!s)throw Error(Z(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(Z(317));s[Ui]=t}else lu(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;An(t),s=!1}else bi!==null&&(E1(bi),bi=null),s=!0;if(!s)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||At.current&1?rn===0&&(rn=3):v_())),t.updateQueue!==null&&(t.flags|=4),An(t),null);case 4:return uu(),v1(e,t),e===null&&Gh(t.stateNode.containerInfo),An(t),null;case 10:return t_(t.type._context),An(t),null;case 17:return or(t.type)&&Vg(),An(t),null;case 19:if(kt(At),s=t.memoizedState,s===null)return An(t),null;if(r=(t.flags&128)!==0,a=s.rendering,a===null)if(r)Od(s,!1);else{if(rn!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(a=Gg(e),a!==null){for(t.flags|=128,Od(s,!1),r=a.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)s=n,e=r,s.flags&=14680066,a=s.alternate,a===null?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=a.childLanes,s.lanes=a.lanes,s.child=a.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=a.memoizedProps,s.memoizedState=a.memoizedState,s.updateQueue=a.updateQueue,s.type=a.type,e=a.dependencies,s.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return gt(At,At.current&1|2),t.child}e=e.sibling}s.tail!==null&&Ut()>hu&&(t.flags|=128,r=!0,Od(s,!1),t.lanes=4194304)}else{if(!r)if(e=Gg(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Od(s,!0),s.tail===null&&s.tailMode==="hidden"&&!a.alternate&&!Tt)return An(t),null}else 2*Ut()-s.renderingStartTime>hu&&n!==1073741824&&(t.flags|=128,r=!0,Od(s,!1),t.lanes=4194304);s.isBackwards?(a.sibling=t.child,t.child=a):(n=s.last,n!==null?n.sibling=a:t.child=a,s.last=a)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=Ut(),t.sibling=null,n=At.current,gt(At,r?n&1|2:n&1),t):(An(t),null);case 22:case 23:return y_(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?gr&1073741824&&(An(t),t.subtreeFlags&6&&(t.flags|=8192)):An(t),null;case 24:return null;case 25:return null}throw Error(Z(156,t.tag))}function S9(e,t){switch(Qj(t),t.tag){case 1:return or(t.type)&&Vg(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return uu(),kt(ar),kt(Dn),a_(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return s_(t),null;case 13:if(kt(At),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Z(340));lu()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return kt(At),null;case 4:return uu(),null;case 10:return t_(t.type._context),null;case 22:case 23:return y_(),null;case 24:return null;default:return null}}var mm=!1,In=!1,j9=typeof WeakSet=="function"?WeakSet:Set,he=null;function vc(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Lt(e,t,r)}else n.current=null}function x1(e,t,n){try{n()}catch(r){Lt(e,t,r)}}var jC=!1;function _9(e,t){if(n1=Dg,e=MD(),Yj(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var a=0,o=-1,l=-1,u=0,d=0,h=e,f=null;t:for(;;){for(var p;h!==n||i!==0&&h.nodeType!==3||(o=a+i),h!==s||r!==0&&h.nodeType!==3||(l=a+r),h.nodeType===3&&(a+=h.nodeValue.length),(p=h.firstChild)!==null;)f=h,h=p;for(;;){if(h===e)break t;if(f===n&&++u===i&&(o=a),f===s&&++d===r&&(l=a),(p=h.nextSibling)!==null)break;h=f,f=h.parentNode}h=p}n=o===-1||l===-1?null:{start:o,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(r1={focusedElem:e,selectionRange:n},Dg=!1,he=t;he!==null;)if(t=he,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,he=e;else for(;he!==null;){t=he;try{var g=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var m=g.memoizedProps,y=g.memoizedState,v=t.stateNode,x=v.getSnapshotBeforeUpdate(t.elementType===t.type?m:mi(t.type,m),y);v.__reactInternalSnapshotBeforeUpdate=x}break;case 3:var b=t.stateNode.containerInfo;b.nodeType===1?b.textContent="":b.nodeType===9&&b.documentElement&&b.removeChild(b.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Z(163))}}catch(S){Lt(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,he=e;break}he=t.return}return g=jC,jC=!1,g}function bh(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var s=i.destroy;i.destroy=void 0,s!==void 0&&x1(t,n,s)}i=i.next}while(i!==r)}}function qv(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function b1(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function PL(e){var t=e.alternate;t!==null&&(e.alternate=null,PL(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ui],delete t[Xh],delete t[a1],delete t[o9],delete t[l9])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function OL(e){return e.tag===5||e.tag===3||e.tag===4}function _C(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||OL(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function w1(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Bg));else if(r!==4&&(e=e.child,e!==null))for(w1(e,t,n),e=e.sibling;e!==null;)w1(e,t,n),e=e.sibling}function k1(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(k1(e,t,n),e=e.sibling;e!==null;)k1(e,t,n),e=e.sibling}var jn=null,vi=!1;function sa(e,t,n){for(n=n.child;n!==null;)RL(e,t,n),n=n.sibling}function RL(e,t,n){if(Xi&&typeof Xi.onCommitFiberUnmount=="function")try{Xi.onCommitFiberUnmount(Iv,n)}catch{}switch(n.tag){case 5:In||vc(n,t);case 6:var r=jn,i=vi;jn=null,sa(e,t,n),jn=r,vi=i,jn!==null&&(vi?(e=jn,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):jn.removeChild(n.stateNode));break;case 18:jn!==null&&(vi?(e=jn,n=n.stateNode,e.nodeType===8?Qb(e.parentNode,n):e.nodeType===1&&Qb(e,n),zh(e)):Qb(jn,n.stateNode));break;case 4:r=jn,i=vi,jn=n.stateNode.containerInfo,vi=!0,sa(e,t,n),jn=r,vi=i;break;case 0:case 11:case 14:case 15:if(!In&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var s=i,a=s.destroy;s=s.tag,a!==void 0&&(s&2||s&4)&&x1(n,t,a),i=i.next}while(i!==r)}sa(e,t,n);break;case 1:if(!In&&(vc(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(o){Lt(n,t,o)}sa(e,t,n);break;case 21:sa(e,t,n);break;case 22:n.mode&1?(In=(r=In)||n.memoizedState!==null,sa(e,t,n),In=r):sa(e,t,n);break;default:sa(e,t,n)}}function EC(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new j9),t.forEach(function(r){var i=I9.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function li(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var s=e,a=t,o=a;e:for(;o!==null;){switch(o.tag){case 5:jn=o.stateNode,vi=!1;break e;case 3:jn=o.stateNode.containerInfo,vi=!0;break e;case 4:jn=o.stateNode.containerInfo,vi=!0;break e}o=o.return}if(jn===null)throw Error(Z(160));RL(s,a,i),jn=null,vi=!1;var l=i.alternate;l!==null&&(l.return=null),i.return=null}catch(u){Lt(i,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)IL(t,e),t=t.sibling}function IL(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(li(t,e),Li(e),r&4){try{bh(3,e,e.return),qv(3,e)}catch(m){Lt(e,e.return,m)}try{bh(5,e,e.return)}catch(m){Lt(e,e.return,m)}}break;case 1:li(t,e),Li(e),r&512&&n!==null&&vc(n,n.return);break;case 5:if(li(t,e),Li(e),r&512&&n!==null&&vc(n,n.return),e.flags&32){var i=e.stateNode;try{Vh(i,"")}catch(m){Lt(e,e.return,m)}}if(r&4&&(i=e.stateNode,i!=null)){var s=e.memoizedProps,a=n!==null?n.memoizedProps:s,o=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{o==="input"&&s.type==="radio"&&s.name!=null&&nD(i,s),Hw(o,a);var u=Hw(o,s);for(a=0;a<l.length;a+=2){var d=l[a],h=l[a+1];d==="style"?oD(i,h):d==="dangerouslySetInnerHTML"?sD(i,h):d==="children"?Vh(i,h):$j(i,d,h,u)}switch(o){case"input":Vw(i,s);break;case"textarea":rD(i,s);break;case"select":var f=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!s.multiple;var p=s.value;p!=null?Ac(i,!!s.multiple,p,!1):f!==!!s.multiple&&(s.defaultValue!=null?Ac(i,!!s.multiple,s.defaultValue,!0):Ac(i,!!s.multiple,s.multiple?[]:"",!1))}i[Xh]=s}catch(m){Lt(e,e.return,m)}}break;case 6:if(li(t,e),Li(e),r&4){if(e.stateNode===null)throw Error(Z(162));i=e.stateNode,s=e.memoizedProps;try{i.nodeValue=s}catch(m){Lt(e,e.return,m)}}break;case 3:if(li(t,e),Li(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{zh(t.containerInfo)}catch(m){Lt(e,e.return,m)}break;case 4:li(t,e),Li(e);break;case 13:li(t,e),Li(e),i=e.child,i.flags&8192&&(s=i.memoizedState!==null,i.stateNode.isHidden=s,!s||i.alternate!==null&&i.alternate.memoizedState!==null||(m_=Ut())),r&4&&EC(e);break;case 22:if(d=n!==null&&n.memoizedState!==null,e.mode&1?(In=(u=In)||d,li(t,e),In=u):li(t,e),Li(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!d&&e.mode&1)for(he=e,d=e.child;d!==null;){for(h=he=d;he!==null;){switch(f=he,p=f.child,f.tag){case 0:case 11:case 14:case 15:bh(4,f,f.return);break;case 1:vc(f,f.return);var g=f.stateNode;if(typeof g.componentWillUnmount=="function"){r=f,n=f.return;try{t=r,g.props=t.memoizedProps,g.state=t.memoizedState,g.componentWillUnmount()}catch(m){Lt(r,n,m)}}break;case 5:vc(f,f.return);break;case 22:if(f.memoizedState!==null){NC(h);continue}}p!==null?(p.return=f,he=p):NC(h)}d=d.sibling}e:for(d=null,h=e;;){if(h.tag===5){if(d===null){d=h;try{i=h.stateNode,u?(s=i.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none"):(o=h.stateNode,l=h.memoizedProps.style,a=l!=null&&l.hasOwnProperty("display")?l.display:null,o.style.display=aD("display",a))}catch(m){Lt(e,e.return,m)}}}else if(h.tag===6){if(d===null)try{h.stateNode.nodeValue=u?"":h.memoizedProps}catch(m){Lt(e,e.return,m)}}else if((h.tag!==22&&h.tag!==23||h.memoizedState===null||h===e)&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===e)break e;for(;h.sibling===null;){if(h.return===null||h.return===e)break e;d===h&&(d=null),h=h.return}d===h&&(d=null),h.sibling.return=h.return,h=h.sibling}}break;case 19:li(t,e),Li(e),r&4&&EC(e);break;case 21:break;default:li(t,e),Li(e)}}function Li(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(OL(n)){var r=n;break e}n=n.return}throw Error(Z(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(Vh(i,""),r.flags&=-33);var s=_C(e);k1(e,s,i);break;case 3:case 4:var a=r.stateNode.containerInfo,o=_C(e);w1(e,o,a);break;default:throw Error(Z(161))}}catch(l){Lt(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function E9(e,t,n){he=e,ML(e)}function ML(e,t,n){for(var r=(e.mode&1)!==0;he!==null;){var i=he,s=i.child;if(i.tag===22&&r){var a=i.memoizedState!==null||mm;if(!a){var o=i.alternate,l=o!==null&&o.memoizedState!==null||In;o=mm;var u=In;if(mm=a,(In=l)&&!u)for(he=i;he!==null;)a=he,l=a.child,a.tag===22&&a.memoizedState!==null?CC(i):l!==null?(l.return=a,he=l):CC(i);for(;s!==null;)he=s,ML(s),s=s.sibling;he=i,mm=o,In=u}TC(e)}else i.subtreeFlags&8772&&s!==null?(s.return=i,he=s):TC(e)}}function TC(e){for(;he!==null;){var t=he;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:In||qv(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!In)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:mi(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var s=t.updateQueue;s!==null&&dC(t,s,r);break;case 3:var a=t.updateQueue;if(a!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}dC(t,a,n)}break;case 5:var o=t.stateNode;if(n===null&&t.flags&4){n=o;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var d=u.memoizedState;if(d!==null){var h=d.dehydrated;h!==null&&zh(h)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(Z(163))}In||t.flags&512&&b1(t)}catch(f){Lt(t,t.return,f)}}if(t===e){he=null;break}if(n=t.sibling,n!==null){n.return=t.return,he=n;break}he=t.return}}function NC(e){for(;he!==null;){var t=he;if(t===e){he=null;break}var n=t.sibling;if(n!==null){n.return=t.return,he=n;break}he=t.return}}function CC(e){for(;he!==null;){var t=he;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{qv(4,t)}catch(l){Lt(t,n,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(l){Lt(t,i,l)}}var s=t.return;try{b1(t)}catch(l){Lt(t,s,l)}break;case 5:var a=t.return;try{b1(t)}catch(l){Lt(t,a,l)}}}catch(l){Lt(t,t.return,l)}if(t===e){he=null;break}var o=t.sibling;if(o!==null){o.return=t.return,he=o;break}he=t.return}}var T9=Math.ceil,Qg=Ks.ReactCurrentDispatcher,f_=Ks.ReactCurrentOwner,Hr=Ks.ReactCurrentBatchConfig,Xe=0,hn=null,Yt=null,En=0,gr=0,xc=lo(0),rn=0,nf=null,ml=0,Uv=0,p_=0,wh=null,nr=null,m_=0,hu=1/0,ys=null,Zg=!1,S1=null,Va=null,gm=!1,Oa=null,Jg=0,kh=0,j1=null,hg=-1,fg=0;function Kn(){return Xe&6?Ut():hg!==-1?hg:hg=Ut()}function qa(e){return e.mode&1?Xe&2&&En!==0?En&-En:u9.transition!==null?(fg===0&&(fg=xD()),fg):(e=ot,e!==0||(e=window.event,e=e===void 0?16:ED(e.type)),e):1}function Ti(e,t,n,r){if(50<kh)throw kh=0,j1=null,Error(Z(185));bp(e,n,r),(!(Xe&2)||e!==hn)&&(e===hn&&(!(Xe&2)&&(Uv|=n),rn===4&&xa(e,En)),lr(e,r),n===1&&Xe===0&&!(t.mode&1)&&(hu=Ut()+500,Fv&&co()))}function lr(e,t){var n=e.callbackNode;uH(e,t);var r=$g(e,e===hn?En:0);if(r===0)n!==null&&LN(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&LN(n),t===1)e.tag===0?c9(AC.bind(null,e)):zD(AC.bind(null,e)),s9(function(){!(Xe&6)&&co()}),n=null;else{switch(bD(r)){case 1:n=Vj;break;case 4:n=yD;break;case 16:n=Mg;break;case 536870912:n=vD;break;default:n=Mg}n=UL(n,$L.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function $L(e,t){if(hg=-1,fg=0,Xe&6)throw Error(Z(327));var n=e.callbackNode;if(Mc()&&e.callbackNode!==n)return null;var r=$g(e,e===hn?En:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=ey(e,r);else{t=r;var i=Xe;Xe|=2;var s=LL();(hn!==e||En!==t)&&(ys=null,hu=Ut()+500,sl(e,t));do try{A9();break}catch(o){DL(e,o)}while(!0);e_(),Qg.current=s,Xe=i,Yt!==null?t=0:(hn=null,En=0,t=rn)}if(t!==0){if(t===2&&(i=Qw(e),i!==0&&(r=i,t=_1(e,i))),t===1)throw n=nf,sl(e,0),xa(e,r),lr(e,Ut()),n;if(t===6)xa(e,r);else{if(i=e.current.alternate,!(r&30)&&!N9(i)&&(t=ey(e,r),t===2&&(s=Qw(e),s!==0&&(r=s,t=_1(e,s))),t===1))throw n=nf,sl(e,0),xa(e,r),lr(e,Ut()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(Z(345));case 2:Ao(e,nr,ys);break;case 3:if(xa(e,r),(r&130023424)===r&&(t=m_+500-Ut(),10<t)){if($g(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){Kn(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=s1(Ao.bind(null,e,nr,ys),t);break}Ao(e,nr,ys);break;case 4:if(xa(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var a=31-Ei(r);s=1<<a,a=t[a],a>i&&(i=a),r&=~s}if(r=i,r=Ut()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*T9(r/1960))-r,10<r){e.timeoutHandle=s1(Ao.bind(null,e,nr,ys),r);break}Ao(e,nr,ys);break;case 5:Ao(e,nr,ys);break;default:throw Error(Z(329))}}}return lr(e,Ut()),e.callbackNode===n?$L.bind(null,e):null}function _1(e,t){var n=wh;return e.current.memoizedState.isDehydrated&&(sl(e,t).flags|=256),e=ey(e,t),e!==2&&(t=nr,nr=n,t!==null&&E1(t)),e}function E1(e){nr===null?nr=e:nr.push.apply(nr,e)}function N9(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],s=i.getSnapshot;i=i.value;try{if(!Ai(s(),i))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function xa(e,t){for(t&=~p_,t&=~Uv,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Ei(t),r=1<<n;e[n]=-1,t&=~r}}function AC(e){if(Xe&6)throw Error(Z(327));Mc();var t=$g(e,0);if(!(t&1))return lr(e,Ut()),null;var n=ey(e,t);if(e.tag!==0&&n===2){var r=Qw(e);r!==0&&(t=r,n=_1(e,r))}if(n===1)throw n=nf,sl(e,0),xa(e,t),lr(e,Ut()),n;if(n===6)throw Error(Z(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Ao(e,nr,ys),lr(e,Ut()),null}function g_(e,t){var n=Xe;Xe|=1;try{return e(t)}finally{Xe=n,Xe===0&&(hu=Ut()+500,Fv&&co())}}function gl(e){Oa!==null&&Oa.tag===0&&!(Xe&6)&&Mc();var t=Xe;Xe|=1;var n=Hr.transition,r=ot;try{if(Hr.transition=null,ot=1,e)return e()}finally{ot=r,Hr.transition=n,Xe=t,!(Xe&6)&&co()}}function y_(){gr=xc.current,kt(xc)}function sl(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,i9(n)),Yt!==null)for(n=Yt.return;n!==null;){var r=n;switch(Qj(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Vg();break;case 3:uu(),kt(ar),kt(Dn),a_();break;case 5:s_(r);break;case 4:uu();break;case 13:kt(At);break;case 19:kt(At);break;case 10:t_(r.type._context);break;case 22:case 23:y_()}n=n.return}if(hn=e,Yt=e=Ua(e.current,null),En=gr=t,rn=0,nf=null,p_=Uv=ml=0,nr=wh=null,Vo!==null){for(t=0;t<Vo.length;t++)if(n=Vo[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,s=n.pending;if(s!==null){var a=s.next;s.next=i,r.next=a}n.pending=r}Vo=null}return e}function DL(e,t){do{var n=Yt;try{if(e_(),cg.current=Xg,Yg){for(var r=Rt.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}Yg=!1}if(pl=0,un=tn=Rt=null,xh=!1,Jh=0,f_.current=null,n===null||n.return===null){rn=1,nf=t,Yt=null;break}e:{var s=e,a=n.return,o=n,l=t;if(t=En,o.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var u=l,d=o,h=d.tag;if(!(d.mode&1)&&(h===0||h===11||h===15)){var f=d.alternate;f?(d.updateQueue=f.updateQueue,d.memoizedState=f.memoizedState,d.lanes=f.lanes):(d.updateQueue=null,d.memoizedState=null)}var p=yC(a);if(p!==null){p.flags&=-257,vC(p,a,o,s,t),p.mode&1&&gC(s,u,t),t=p,l=u;var g=t.updateQueue;if(g===null){var m=new Set;m.add(l),t.updateQueue=m}else g.add(l);break e}else{if(!(t&1)){gC(s,u,t),v_();break e}l=Error(Z(426))}}else if(Tt&&o.mode&1){var y=yC(a);if(y!==null){!(y.flags&65536)&&(y.flags|=256),vC(y,a,o,s,t),Zj(du(l,o));break e}}s=l=du(l,o),rn!==4&&(rn=2),wh===null?wh=[s]:wh.push(s),s=a;do{switch(s.tag){case 3:s.flags|=65536,t&=-t,s.lanes|=t;var v=bL(s,l,t);uC(s,v);break e;case 1:o=l;var x=s.type,b=s.stateNode;if(!(s.flags&128)&&(typeof x.getDerivedStateFromError=="function"||b!==null&&typeof b.componentDidCatch=="function"&&(Va===null||!Va.has(b)))){s.flags|=65536,t&=-t,s.lanes|=t;var S=wL(s,o,t);uC(s,S);break e}}s=s.return}while(s!==null)}BL(n)}catch(k){t=k,Yt===n&&n!==null&&(Yt=n=n.return);continue}break}while(!0)}function LL(){var e=Qg.current;return Qg.current=Xg,e===null?Xg:e}function v_(){(rn===0||rn===3||rn===2)&&(rn=4),hn===null||!(ml&268435455)&&!(Uv&268435455)||xa(hn,En)}function ey(e,t){var n=Xe;Xe|=2;var r=LL();(hn!==e||En!==t)&&(ys=null,sl(e,t));do try{C9();break}catch(i){DL(e,i)}while(!0);if(e_(),Xe=n,Qg.current=r,Yt!==null)throw Error(Z(261));return hn=null,En=0,rn}function C9(){for(;Yt!==null;)FL(Yt)}function A9(){for(;Yt!==null&&!tH();)FL(Yt)}function FL(e){var t=qL(e.alternate,e,gr);e.memoizedProps=e.pendingProps,t===null?BL(e):Yt=t,f_.current=null}function BL(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=S9(n,t),n!==null){n.flags&=32767,Yt=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{rn=6,Yt=null;return}}else if(n=k9(n,t,gr),n!==null){Yt=n;return}if(t=t.sibling,t!==null){Yt=t;return}Yt=t=e}while(t!==null);rn===0&&(rn=5)}function Ao(e,t,n){var r=ot,i=Hr.transition;try{Hr.transition=null,ot=1,P9(e,t,n,r)}finally{Hr.transition=i,ot=r}return null}function P9(e,t,n,r){do Mc();while(Oa!==null);if(Xe&6)throw Error(Z(327));n=e.finishedWork;var i=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(Z(177));e.callbackNode=null,e.callbackPriority=0;var s=n.lanes|n.childLanes;if(dH(e,s),e===hn&&(Yt=hn=null,En=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||gm||(gm=!0,UL(Mg,function(){return Mc(),null})),s=(n.flags&15990)!==0,n.subtreeFlags&15990||s){s=Hr.transition,Hr.transition=null;var a=ot;ot=1;var o=Xe;Xe|=4,f_.current=null,_9(e,n),IL(n,e),QH(r1),Dg=!!n1,r1=n1=null,e.current=n,E9(n),nH(),Xe=o,ot=a,Hr.transition=s}else e.current=n;if(gm&&(gm=!1,Oa=e,Jg=i),s=e.pendingLanes,s===0&&(Va=null),sH(n.stateNode),lr(e,Ut()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(Zg)throw Zg=!1,e=S1,S1=null,e;return Jg&1&&e.tag!==0&&Mc(),s=e.pendingLanes,s&1?e===j1?kh++:(kh=0,j1=e):kh=0,co(),null}function Mc(){if(Oa!==null){var e=bD(Jg),t=Hr.transition,n=ot;try{if(Hr.transition=null,ot=16>e?16:e,Oa===null)var r=!1;else{if(e=Oa,Oa=null,Jg=0,Xe&6)throw Error(Z(331));var i=Xe;for(Xe|=4,he=e.current;he!==null;){var s=he,a=s.child;if(he.flags&16){var o=s.deletions;if(o!==null){for(var l=0;l<o.length;l++){var u=o[l];for(he=u;he!==null;){var d=he;switch(d.tag){case 0:case 11:case 15:bh(8,d,s)}var h=d.child;if(h!==null)h.return=d,he=h;else for(;he!==null;){d=he;var f=d.sibling,p=d.return;if(PL(d),d===u){he=null;break}if(f!==null){f.return=p,he=f;break}he=p}}}var g=s.alternate;if(g!==null){var m=g.child;if(m!==null){g.child=null;do{var y=m.sibling;m.sibling=null,m=y}while(m!==null)}}he=s}}if(s.subtreeFlags&2064&&a!==null)a.return=s,he=a;else e:for(;he!==null;){if(s=he,s.flags&2048)switch(s.tag){case 0:case 11:case 15:bh(9,s,s.return)}var v=s.sibling;if(v!==null){v.return=s.return,he=v;break e}he=s.return}}var x=e.current;for(he=x;he!==null;){a=he;var b=a.child;if(a.subtreeFlags&2064&&b!==null)b.return=a,he=b;else e:for(a=x;he!==null;){if(o=he,o.flags&2048)try{switch(o.tag){case 0:case 11:case 15:qv(9,o)}}catch(k){Lt(o,o.return,k)}if(o===a){he=null;break e}var S=o.sibling;if(S!==null){S.return=o.return,he=S;break e}he=o.return}}if(Xe=i,co(),Xi&&typeof Xi.onPostCommitFiberRoot=="function")try{Xi.onPostCommitFiberRoot(Iv,e)}catch{}r=!0}return r}finally{ot=n,Hr.transition=t}}return!1}function PC(e,t,n){t=du(n,t),t=bL(e,t,1),e=Ba(e,t,1),t=Kn(),e!==null&&(bp(e,1,t),lr(e,t))}function Lt(e,t,n){if(e.tag===3)PC(e,e,n);else for(;t!==null;){if(t.tag===3){PC(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Va===null||!Va.has(r))){e=du(n,e),e=wL(t,e,1),t=Ba(t,e,1),e=Kn(),t!==null&&(bp(t,1,e),lr(t,e));break}}t=t.return}}function O9(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Kn(),e.pingedLanes|=e.suspendedLanes&n,hn===e&&(En&n)===n&&(rn===4||rn===3&&(En&130023424)===En&&500>Ut()-m_?sl(e,0):p_|=n),lr(e,t)}function VL(e,t){t===0&&(e.mode&1?(t=am,am<<=1,!(am&130023424)&&(am=4194304)):t=1);var n=Kn();e=$s(e,t),e!==null&&(bp(e,t,n),lr(e,n))}function R9(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),VL(e,n)}function I9(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(Z(314))}r!==null&&r.delete(t),VL(e,n)}var qL;qL=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||ar.current)rr=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return rr=!1,w9(e,t,n);rr=!!(e.flags&131072)}else rr=!1,Tt&&t.flags&1048576&&HD(t,Wg,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;dg(e,t),e=t.pendingProps;var i=ou(t,Dn.current);Ic(t,n),i=l_(null,t,r,e,i,n);var s=c_();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,or(r)?(s=!0,qg(t)):s=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,r_(t),i.updater=Vv,t.stateNode=i,i._reactInternals=t,h1(t,r,e,n),t=m1(null,t,r,!0,s,n)):(t.tag=0,Tt&&s&&Xj(t),qn(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(dg(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=$9(r),e=mi(r,e),i){case 0:t=p1(null,t,r,e,n);break e;case 1:t=wC(null,t,r,e,n);break e;case 11:t=xC(null,t,r,e,n);break e;case 14:t=bC(null,t,r,mi(r.type,e),n);break e}throw Error(Z(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:mi(r,i),p1(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:mi(r,i),wC(e,t,r,i,n);case 3:e:{if(_L(t),e===null)throw Error(Z(387));r=t.pendingProps,s=t.memoizedState,i=s.element,ZD(e,t),Kg(t,r,null,n);var a=t.memoizedState;if(r=a.element,s.isDehydrated)if(s={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){i=du(Error(Z(423)),t),t=kC(e,t,r,n,i);break e}else if(r!==i){i=du(Error(Z(424)),t),t=kC(e,t,r,n,i);break e}else for(kr=Fa(t.stateNode.containerInfo.firstChild),Sr=t,Tt=!0,bi=null,n=XD(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(lu(),r===i){t=Ds(e,t,n);break e}qn(e,t,r,n)}t=t.child}return t;case 5:return JD(t),e===null&&c1(t),r=t.type,i=t.pendingProps,s=e!==null?e.memoizedProps:null,a=i.children,i1(r,i)?a=null:s!==null&&i1(r,s)&&(t.flags|=32),jL(e,t),qn(e,t,a,n),t.child;case 6:return e===null&&c1(t),null;case 13:return EL(e,t,n);case 4:return i_(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=cu(t,null,r,n):qn(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:mi(r,i),xC(e,t,r,i,n);case 7:return qn(e,t,t.pendingProps,n),t.child;case 8:return qn(e,t,t.pendingProps.children,n),t.child;case 12:return qn(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,s=t.memoizedProps,a=i.value,gt(zg,r._currentValue),r._currentValue=a,s!==null)if(Ai(s.value,a)){if(s.children===i.children&&!ar.current){t=Ds(e,t,n);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var o=s.dependencies;if(o!==null){a=s.child;for(var l=o.firstContext;l!==null;){if(l.context===r){if(s.tag===1){l=Cs(-1,n&-n),l.tag=2;var u=s.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?l.next=l:(l.next=d.next,d.next=l),u.pending=l}}s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),u1(s.return,n,t),o.lanes|=n;break}l=l.next}}else if(s.tag===10)a=s.type===t.type?null:s.child;else if(s.tag===18){if(a=s.return,a===null)throw Error(Z(341));a.lanes|=n,o=a.alternate,o!==null&&(o.lanes|=n),u1(a,n,t),a=s.sibling}else a=s.child;if(a!==null)a.return=s;else for(a=s;a!==null;){if(a===t){a=null;break}if(s=a.sibling,s!==null){s.return=a.return,a=s;break}a=a.return}s=a}qn(e,t,i.children,n),t=t.child}return t;
vendor: 8,162 bytes, line 40
40case 9:return i=t.type,r=t.pendingProps.children,Ic(t,n),i=Gr(i),r=r(i),t.flags|=1,qn(e,t,r,n),t.child;case 14:return r=t.type,i=mi(r,t.pendingProps),i=mi(r.type,i),bC(e,t,r,i,n);case 15:return kL(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:mi(r,i),dg(e,t),t.tag=1,or(r)?(e=!0,qg(t)):e=!1,Ic(t,n),xL(t,r,i),h1(t,r,i,n),m1(null,t,r,!0,e,n);case 19:return TL(e,t,n);case 22:return SL(e,t,n)}throw Error(Z(156,t.tag))};function UL(e,t){return gD(e,t)}function M9(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function qr(e,t,n,r){return new M9(e,t,n,r)}function x_(e){return e=e.prototype,!(!e||!e.isReactComponent)}function $9(e){if(typeof e=="function")return x_(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Lj)return 11;if(e===Fj)return 14}return 2}function Ua(e,t){var n=e.alternate;return n===null?(n=qr(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function pg(e,t,n,r,i,s){var a=2;if(r=e,typeof e=="function")x_(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case cc:return al(n.children,i,s,t);case Dj:a=8,i|=8;break;case $w:return e=qr(12,n,t,i|2),e.elementType=$w,e.lanes=s,e;case Dw:return e=qr(13,n,t,i),e.elementType=Dw,e.lanes=s,e;case Lw:return e=qr(19,n,t,i),e.elementType=Lw,e.lanes=s,e;case J$:return Wv(n,i,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Q$:a=10;break e;case Z$:a=9;break e;case Lj:a=11;break e;case Fj:a=14;break e;case fa:a=16,r=null;break e}throw Error(Z(130,e==null?e:typeof e,""))}return t=qr(a,n,t,i),t.elementType=e,t.type=r,t.lanes=s,t}function al(e,t,n,r){return e=qr(7,e,r,t),e.lanes=n,e}function Wv(e,t,n,r){return e=qr(22,e,r,t),e.elementType=J$,e.lanes=n,e.stateNode={isHidden:!1},e}function s0(e,t,n){return e=qr(6,e,null,t),e.lanes=n,e}function a0(e,t,n){return t=qr(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function D9(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Bb(0),this.expirationTimes=Bb(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Bb(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function b_(e,t,n,r,i,s,a,o,l){return e=new D9(e,t,n,o,l),t===1?(t=1,s===!0&&(t|=8)):t=0,s=qr(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},r_(s),e}function L9(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:lc,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function WL(e){if(!e)return Qa;e=e._reactInternals;e:{if(Al(e)!==e||e.tag!==1)throw Error(Z(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(or(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(Z(171))}if(e.tag===1){var n=e.type;if(or(n))return WD(e,n,t)}return t}function zL(e,t,n,r,i,s,a,o,l){return e=b_(n,r,!0,e,i,s,a,o,l),e.context=WL(null),n=e.current,r=Kn(),i=qa(n),s=Cs(r,i),s.callback=t??null,Ba(n,s,i),e.current.lanes=i,bp(e,i,r),lr(e,r),e}function zv(e,t,n,r){var i=t.current,s=Kn(),a=qa(i);return n=WL(n),t.context===null?t.context=n:t.pendingContext=n,t=Cs(s,a),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Ba(i,t,a),e!==null&&(Ti(e,i,a,s),lg(e,i,a)),a}function ty(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function OC(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function w_(e,t){OC(e,t),(e=e.alternate)&&OC(e,t)}function F9(){return null}var HL=typeof reportError=="function"?reportError:function(e){console.error(e)};function k_(e){this._internalRoot=e}Hv.prototype.render=k_.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(Z(409));zv(e,t,null,null)};Hv.prototype.unmount=k_.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;gl(function(){zv(null,e,null,null)}),t[Ms]=null}};function Hv(e){this._internalRoot=e}Hv.prototype.unstable_scheduleHydration=function(e){if(e){var t=SD();e={blockedOn:null,target:e,priority:t};for(var n=0;n<va.length&&t!==0&&t<va[n].priority;n++);va.splice(n,0,e),n===0&&_D(e)}};function S_(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Kv(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function RC(){}function B9(e,t,n,r,i){if(i){if(typeof r=="function"){var s=r;r=function(){var u=ty(a);s.call(u)}}var a=zL(t,r,e,0,null,!1,!1,"",RC);return e._reactRootContainer=a,e[Ms]=a.current,Gh(e.nodeType===8?e.parentNode:e),gl(),a}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var o=r;r=function(){var u=ty(l);o.call(u)}}var l=b_(e,0,!1,null,null,!1,!1,"",RC);return e._reactRootContainer=l,e[Ms]=l.current,Gh(e.nodeType===8?e.parentNode:e),gl(function(){zv(t,l,n,r)}),l}function Gv(e,t,n,r,i){var s=n._reactRootContainer;if(s){var a=s;if(typeof i=="function"){var o=i;i=function(){var l=ty(a);o.call(l)}}zv(t,a,e,i)}else a=B9(n,t,e,i,r);return ty(a)}wD=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=nh(t.pendingLanes);n!==0&&(qj(t,n|1),lr(t,Ut()),!(Xe&6)&&(hu=Ut()+500,co()))}break;case 13:gl(function(){var r=$s(e,1);if(r!==null){var i=Kn();Ti(r,e,1,i)}}),w_(e,1)}};Uj=function(e){if(e.tag===13){var t=$s(e,134217728);if(t!==null){var n=Kn();Ti(t,e,134217728,n)}w_(e,134217728)}};kD=function(e){if(e.tag===13){var t=qa(e),n=$s(e,t);if(n!==null){var r=Kn();Ti(n,e,t,r)}w_(e,t)}};SD=function(){return ot};jD=function(e,t){var n=ot;try{return ot=e,t()}finally{ot=n}};Gw=function(e,t,n){switch(t){case"input":if(Vw(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=Lv(r);if(!i)throw Error(Z(90));tD(r),Vw(r,i)}}}break;case"textarea":rD(e,n);break;case"select":t=n.value,t!=null&&Ac(e,!!n.multiple,t,!1)}};uD=g_;dD=gl;var V9={usingClientEntryPoint:!1,Events:[kp,fc,Lv,lD,cD,g_]},Rd={findFiberByHostInstance:Bo,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},q9={bundleType:Rd.bundleType,version:Rd.version,rendererPackageName:Rd.rendererPackageName,rendererConfig:Rd.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Ks.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=pD(e),e===null?null:e.stateNode},findFiberByHostInstance:Rd.findFiberByHostInstance||F9,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};
40if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ym=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ym.isDisabled&&ym.supportsFiber)try{Iv=ym.inject(q9),Xi=ym}catch{}}Nr.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=V9;Nr.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!S_(t))throw Error(Z(200));return L9(e,t,null,n)};Nr.createRoot=function(e,t){if(!S_(e))throw Error(Z(299));var n=!1,r="",i=HL;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=b_(e,1,!1,null,null,n,!1,r,i),e[Ms]=t.current,Gh(e.nodeType===8?e.parentNode:e),new k_(t)};Nr.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(Z(188)):(e=Object.keys(e).join(","),Error(Z(268,e)));return e=pD(t),e=e===null?null:e.stateNode,e};Nr.flushSync=function(e){return gl(e)};Nr.hydrate=function(e,t,n){if(!Kv(t))throw Error(Z(200));return Gv(null,e,t,!0,n)};Nr.hydrateRoot=function(e,t,n){if(!S_(e))throw Error(Z(405));var r=n!=null&&n.hydratedSources||null,i=!1,s="",a=HL;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onRecoverableError!==void 0&&(a=n.onRecoverableError)),t=zL(t,null,e,1,n??null,i,!1,s,a),e[Ms]=t.current,Gh(e),r)for(e=0;e<r.length;e++)n=r[e],i=n._getVersion,i=i(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new Hv(t)};Nr.render=function(e,t,n){if(!Kv(t))throw Error(Z(200));return Gv(null,e,t,!1,n)};Nr.unmountComponentAtNode=function(e){if(!Kv(e))throw Error(Z(40));return e._reactRootContainer?(gl(function(){Gv(null,null,e,!1,function(){e._reactRootContainer=null,e[Ms]=null})}),!0):!1};Nr.unstable_batchedUpdates=g_;Nr.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Kv(n))throw Error(Z(200));if(e==null||e._reactInternals===void 0)throw Error(Z(38));return Gv(e,t,n,!1,r)};Nr.version="18.3.1-next-f1338f8080-20240426";function KL(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(KL)}catch(e){console.error(e)}}KL(),K$.exports=Nr;var Pl=K$.exports;const GL=tt(Pl);var YL,IC=Pl;YL=IC.createRoot,IC.hydrateRoot;var U9=typeof Element<"u",W9=typeof Map=="function",z9=typeof Set=="function",H9=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function mg(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,r,i;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!mg(e[r],t[r]))return!1;return!0}var s;if(W9&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(s=e.entries();!(r=s.next()).done;)if(!t.has(r.value[0]))return!1;for(s=e.entries();!(r=s.next()).done;)if(!mg(r.value[1],t.get(r.value[0])))return!1;return!0}if(z9&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(s=e.entries();!(r=s.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(H9&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[r]))return!1;if(U9&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((i[r]==="_owner"||i[r]==="__v"||i[r]==="__o")&&e.$$typeof)&&!mg(e[i[r]],t[i[r]]))return!1;return!0}return e!==e&&t!==t}var K9=function(t,n){try{return mg(t,n)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}};const G9=tt(K9);var Y9=function(e,t,n,r,i,s,a,o){if(!e){var l;if(t===void 0)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,i,s,a,o],d=0;l=new Error(t.replace(/%s/g,function(){return u[d++]})),l.name="Invariant Violation"}throw l.framesToPop=1,l}},X9=Y9;const MC=tt(X9);var Q9=function(t,n,r,i){var s=r?r.call(i,t,n):void 0;if(s!==void 0)return!!s;
40if(t===n)return!0;if(typeof t!="object"||!t||typeof n!="object"||!n)return!1;var a=Object.keys(t),o=Object.keys(n);if(a.length!==o.length)return!1;for(var l=Object.prototype.hasOwnProperty.bind(n),u=0;u<a.length;u++){var d=a[u];if(!l(d))return!1;var h=t[d],f=n[d];if(s=r?r.call(i,h,f,d):void 0,s===!1||s===void 0&&h!==f)return!1}return!0};const Z9=tt(Q9);var XL=(e=>(e.BASE="base",e.BODY="body",e.HEAD="head",e.HTML="html",e.LINK="link",e.META="meta",e.NOSCRIPT="noscript",e.SCRIPT="script",e.STYLE="style",e.TITLE="title",e.FRAGMENT="Symbol(react.fragment)",e))(XL||{}),o0={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"]}},$C=Object.values(XL),Yv={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},QL=Object.entries(Yv).reduce((e,[t,n])=>(e[n]=t,e),{}),ji="data-rh",$c={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate",PRIORITIZE_SEO_TAGS:"prioritizeSeoTags"},Dc=(e,t)=>{for(let n=e.length-1;n>=0;n-=1){const r=e[n];if(Object.prototype.hasOwnProperty.call(r,t))return r[t]}return null},J9=e=>{let t=Dc(e,"title");const n=Dc(e,$c.TITLE_TEMPLATE);if(Array.isArray(t)&&(t=t.join("")),n&&t)return n.replace(/%s/g,()=>t);const r=Dc(e,$c.DEFAULT_TITLE);return t||r||void 0},e7=e=>Dc(e,$c.ON_CHANGE_CLIENT_STATE)||(()=>{}),l0=(e,t)=>t.filter(n=>typeof n[e]<"u").map(n=>n[e]).reduce((n,r)=>({...n,...r}),{}),t7=(e,t)=>t.filter(n=>typeof n.base<"u").map(n=>n.base).reverse().reduce((n,r)=>{if(!n.length){const i=Object.keys(r);for(let s=0;s<i.length;s+=1){const o=i[s].toLowerCase();if(e.indexOf(o)!==-1&&r[o])return n.concat(r)}}return n},[]),n7=e=>console&&typeof console.warn=="function"&&console.warn(e),Id=(e,t,n)=>{const r={};return n.filter(i=>Array.isArray(i[e])?!0:(typeof i[e]<"u"&&n7(`Helmet: ${e} should be of type "Array". Instead found type "${typeof i[e]}"`),!1)).map(i=>i[e]).reverse().reduce((i,s)=>{const a={};s.filter(l=>{let u;const d=Object.keys(l);for(let f=0;f<d.length;f+=1){const p=d[f],g=p.toLowerCase();t.indexOf(g)!==-1&&!(u==="rel"&&l[u].toLowerCase()==="canonical")&&!(g==="rel"&&l[g].toLowerCase()==="stylesheet")&&(u=g),t.indexOf(p)!==-1&&(p==="innerHTML"||p==="cssText"||p==="itemprop")&&(u=p)}if(!u||!l[u])return!1;const h=l[u].toLowerCase();return r[u]||(r[u]={}),a[u]||(a[u]={}),r[u][h]?!1:(a[u][h]=!0,!0)}).reverse().forEach(l=>i.push(l));const o=Object.keys(a);for(let l=0;l<o.length;l+=1){const u=o[l],d={...r[u],...a[u]};r[u]=d}return i},[]).reverse()},r7=(e,t)=>{if(Array.isArray(e)&&e.length){for(let n=0;n<e.length;n+=1)if(e[n][t])return!0}return!1},i7=e=>({baseTag:t7(["href"],e),bodyAttributes:l0("bodyAttributes",e),defer:Dc(e,$c.DEFER),encode:Dc(e,$c.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:l0("htmlAttributes",e),linkTags:Id("link",["rel","href"],e),metaTags:Id("meta",["name","charset","http-equiv","property","itemprop"],e),noscriptTags:Id("noscript",["innerHTML"],e),onChangeClientState:e7(e),scriptTags:Id("script",["src","innerHTML"],e),styleTags:Id("style",["cssText"],e),title:J9(e),titleAttributes:l0("titleAttributes",e),prioritizeSeoTags:r7(e,$c.PRIORITIZE_SEO_TAGS)}),ZL=e=>Array.isArray(e)?e.join(""):e,s7=(e,t)=>{const n=Object.keys(e);for(let r=0;r<n.length;r+=1)if(t[n[r]]&&t[n[r]].includes(e[n[r]]))return!0;return!1},c0=(e,t)=>Array.isArray(e)?e.reduce((n,r)=>(s7(r,t)?n.priority.push(r):n.default.push(r),n),{priority:[],default:[]}):{default:e,priority:[]},DC=(e,t)=>({...e,[t]:void 0}),a7=["noscript","script","style"],T1=(e,t=!0)=>t===!1?String(e):String(e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"),JL=e=>Object.keys(e).reduce((t,n)=>{const r=typeof e[n]<"u"?`${n}="${e[n]}"`:`${n}`;return t?`${t} ${r}`:r},""),o7=(e,t,n,r)=>{const i=JL(n),s=ZL(t);return i?`<${e} ${ji}="true" ${i}>${T1(s,r)}</${e}>`:`<${e} ${ji}="true">${T1(s,r)}</${e}>`},l7=(e,t,n=!0)=>t.reduce((r,i)=>{const s=i,a=Object.keys(s).filter(u=>!(u==="innerHTML"||u==="cssText")).reduce((u,d)=>{const h=typeof s[d]>"u"?d:`${d}="${T1(s[d],n)}"`;return u?`${u} ${h}`:h},""),o=s.innerHTML||s.cssText||"",l=a7.indexOf(e)===-1;return`${r}<${e} ${ji}="true" ${a}${l?"/>":`>${o}</${e}>`}`},""),e4=(e,t={})=>Object.keys(e).reduce((n,r)=>{const i=Yv[r];return n[i||r]=e[r],n},t),c7=(e,t,n)=>{const r={key:t,[ji]:!0},i=e4(n,r);return[A.createElement("title",i,t)]},gg=(e,t)=>t.map((n,r)=>{const i={key:r,[ji]:!0};
40return Object.keys(n).forEach(s=>{const o=Yv[s]||s;if(o==="innerHTML"||o==="cssText"){const l=n.innerHTML||n.cssText;i.dangerouslySetInnerHTML={__html:l}}else i[o]=n[s]}),A.createElement(e,i)}),Mr=(e,t,n=!0)=>{switch(e){case"title":return{toComponent:()=>c7(e,t.title,t.titleAttributes),toString:()=>o7(e,t.title,t.titleAttributes,n)};case"bodyAttributes":case"htmlAttributes":return{toComponent:()=>e4(t),toString:()=>JL(t)};default:return{toComponent:()=>gg(e,t),toString:()=>l7(e,t,n)}}},u7=({metaTags:e,linkTags:t,scriptTags:n,encode:r})=>{const i=c0(e,o0.meta),s=c0(t,o0.link),a=c0(n,o0.script);return{priorityMethods:{toComponent:()=>[...gg("meta",i.priority),...gg("link",s.priority),...gg("script",a.priority)],toString:()=>`${Mr("meta",i.priority,r)} ${Mr("link",s.priority,r)} ${Mr("script",a.priority,r)}`},metaTags:i.default,linkTags:s.default,scriptTags:a.default}},d7=e=>{const{baseTag:t,bodyAttributes:n,encode:r=!0,htmlAttributes:i,noscriptTags:s,styleTags:a,title:o="",titleAttributes:l,prioritizeSeoTags:u}=e;let{linkTags:d,metaTags:h,scriptTags:f}=e,p={toComponent:()=>[],toString:()=>""};return u&&({priorityMethods:p,linkTags:d,metaTags:h,scriptTags:f}=u7(e)),{priority:p,base:Mr("base",t,r),bodyAttributes:Mr("bodyAttributes",n,r),htmlAttributes:Mr("htmlAttributes",i,r),link:Mr("link",d,r),meta:Mr("meta",h,r),noscript:Mr("noscript",s,r),script:Mr("script",f,r),style:Mr("style",a,r),title:Mr("title",{title:o,titleAttributes:l},r)}},N1=d7,vm=[],j_=!!(typeof window<"u"&&window.document&&window.document.createElement),C1=class{constructor(e,t){fs(this,"instances",[]);fs(this,"canUseDOM",j_);fs(this,"context");fs(this,"value",{setHelmet:e=>{this.context.helmet=e},helmetInstances:{get:()=>this.canUseDOM?vm:this.instances,add:e=>{(this.canUseDOM?vm:this.instances).push(e)},remove:e=>{const t=(this.canUseDOM?vm:this.instances).indexOf(e);(this.canUseDOM?vm:this.instances).splice(t,1)}}});this.context=e,this.canUseDOM=t||!1,t||(e.helmet=N1({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))}},h7=parseInt(A.version.split(".")[0],10),A1=h7>=19,f7={},t4=A.createContext(f7),Yo,n4=(Yo=class extends w.Component{constructor(n){super(n);fs(this,"helmetData");A1?this.helmetData=null:this.helmetData=new C1(this.props.context||{},Yo.canUseDOM)}render(){return A1?A.createElement(A.Fragment,null,this.props.children):A.createElement(t4.Provider,{value:this.helmetData.value},this.props.children)}},fs(Yo,"canUseDOM",j_),Yo),Vl=(e,t)=>{const n=document.head||document.querySelector("head"),r=n.querySelectorAll(`${e}[${ji}]`),i=[].slice.call(r),s=[];let a;return t&&t.length&&t.forEach(o=>{const l=document.createElement(e);for(const u in o)if(Object.prototype.hasOwnProperty.call(o,u))if(u==="innerHTML")l.innerHTML=o.innerHTML;else if(u==="cssText"){const d=o.cssText;l.appendChild(document.createTextNode(d))}else{const d=u,h=typeof o[d]>"u"?"":o[d];l.setAttribute(u,h)}l.setAttribute(ji,"true"),i.some((u,d)=>(a=d,l.isEqualNode(u)))?i.splice(a,1):s.push(l)}),i.forEach(o=>{var l;return(l=o.parentNode)==null?void 0:l.removeChild(o)}),s.forEach(o=>n.appendChild(o)),{oldTags:i,newTags:s}},P1=(e,t)=>{const n=document.getElementsByTagName(e)[0];if(!n)return;const r=n.getAttribute(ji),i=r?r.split(","):[],s=[...i],a=Object.keys(t);for(const o of a){const l=t[o]||"";n.getAttribute(o)!==l&&n.setAttribute(o,l),i.indexOf(o)===-1&&i.push(o);const u=s.indexOf(o);u!==-1&&s.splice(u,1)}for(let o=s.length-1;o>=0;o-=1)n.removeAttribute(s[o]);i.length===s.length?n.removeAttribute(ji):n.getAttribute(ji)!==a.join(",")&&n.setAttribute(ji,a.join(","))},p7=(e,t)=>{typeof e<"u"&&document.title!==e&&(document.title=ZL(e)),P1("title",t)},LC=(e,t)=>{const{baseTag:n,bodyAttributes:r,htmlAttributes:i,linkTags:s,metaTags:a,noscriptTags:o,onChangeClientState:l,scriptTags:u,styleTags:d,title:h,titleAttributes:f}=e;P1("body",r),P1("html",i),p7(h,f);const p={baseTag:Vl("base",n),linkTags:Vl("link",s),metaTags:Vl("meta",a),noscriptTags:Vl("noscript",o),scriptTags:Vl("script",u),styleTags:Vl("style",d)},g={},m={};
40Object.keys(p).forEach(y=>{const{newTags:v,oldTags:x}=p[y];v.length&&(g[y]=v),x.length&&(m[y]=p[y].oldTags)}),t&&t(),l(e,g,m)},Md=null,m7=e=>{Md&&cancelAnimationFrame(Md),e.defer?Md=requestAnimationFrame(()=>{LC(e,()=>{Md=null})}):(LC(e),Md=null)},g7=m7,FC=class extends w.Component{constructor(){super(...arguments);fs(this,"rendered",!1)}shouldComponentUpdate(t){return!Z9(t,this.props)}componentDidUpdate(){this.emitChange()}componentWillUnmount(){const{helmetInstances:t}=this.props.context;t.remove(this),this.emitChange()}emitChange(){const{helmetInstances:t,setHelmet:n}=this.props.context;let r=null;const i=i7(t.get().map(s=>{const{context:a,...o}=s.props;return o}));n4.canUseDOM?g7(i):N1&&(r=N1(i)),n(r)}init(){if(this.rendered)return;this.rendered=!0;const{helmetInstances:t}=this.props.context;t.add(this),this.emitChange()}render(){return this.init(),null}},yg=[],BC=e=>{const t={};for(const n of Object.keys(e))t[QL[n]||n]=e[n];return t},ko=e=>{const t={};for(const n of Object.keys(e)){const r=Yv[n];t[r||n]=e[n]}return t},VC=(e,t)=>{if(!j_)return;const n=document.getElementsByTagName(e)[0];if(!n)return;const r="data-rh-managed",i=n.getAttribute(r),s=i?i.split(","):[],a=Object.keys(t);for(const o of s)a.includes(o)||n.removeAttribute(o);for(const o of a){const l=t[o];l==null||l===!1?n.removeAttribute(o):l===!0?n.setAttribute(o,""):n.setAttribute(o,String(l))}a.length>0?n.setAttribute(r,a.join(",")):n.removeAttribute(r)},u0=()=>{const e={},t={};for(const n of yg){const{htmlAttributes:r,bodyAttributes:i}=n.props;r&&Object.assign(e,BC(r)),i&&Object.assign(t,BC(i))}VC("html",e),VC("body",t)},y7=class extends w.Component{componentDidMount(){yg.push(this),u0()}componentDidUpdate(){u0()}componentWillUnmount(){const e=yg.indexOf(this);e!==-1&&yg.splice(e,1),u0()}resolveTitle(){const{title:e,titleTemplate:t,defaultTitle:n}=this.props;return e&&t?t.replace(/%s/g,()=>Array.isArray(e)?e.join(""):e):e||n||void 0}renderTitle(){const e=this.resolveTitle();if(e===void 0)return null;const t=this.props.titleAttributes||{};return A.createElement("title",ko(t),e)}renderBase(){const{base:e}=this.props;return e?A.createElement("base",ko(e)):null}renderMeta(){const{meta:e}=this.props;return!e||!Array.isArray(e)?null:e.map((t,n)=>A.createElement("meta",{key:n,...ko(t)}))}renderLink(){const{link:e}=this.props;return!e||!Array.isArray(e)?null:e.map((t,n)=>A.createElement("link",{key:n,...ko(t)}))}renderScript(){const{script:e}=this.props;return!e||!Array.isArray(e)?null:e.map((t,n)=>{const{innerHTML:r,...i}=t,s=ko(i);return r&&(s.dangerouslySetInnerHTML={__html:r}),A.createElement("script",{key:n,...s})})}renderStyle(){const{style:e}=this.props;return!e||!Array.isArray(e)?null:e.map((t,n)=>{const{cssText:r,...i}=t,s=ko(i);return r&&(s.dangerouslySetInnerHTML={__html:r}),A.createElement("style",{key:n,...s})})}renderNoscript(){const{noscript:e}=this.props;return!e||!Array.isArray(e)?null:e.map((t,n)=>{const{innerHTML:r,...i}=t,s=ko(i);return r&&(s.dangerouslySetInnerHTML={__html:r}),A.createElement("noscript",{key:n,...s})})}render(){return A.createElement(A.Fragment,null,this.renderTitle(),this.renderBase(),this.renderMeta(),this.renderLink(),this.renderScript(),this.renderStyle(),this.renderNoscript())}},Iw,v7=(Iw=class extends w.Component{shouldComponentUpdate(e){return!G9(DC(this.props,"helmetData"),DC(e,"helmetData"))}mapNestedChildrenToProps(e,t){if(!t)return null;switch(e.type){case"script":case"noscript":return{innerHTML:t};case"style":return{cssText:t};default:throw new Error(`<${e.type} /> elements are self-closing and can not contain children. Refer to our API for more information.`)}}flattenArrayTypeChildren(e,t,n,r){return{...t,[e.type]:[...t[e.type]||[],{...n,...this.mapNestedChildrenToProps(e,r)}]}}mapObjectTypeChildren(e,t,n,r){switch(e.type){case"title":return{...t,[e.type]:r,titleAttributes:{...n}};case"body":return{...t,bodyAttributes:{...n}};case"html":return{...t,htmlAttributes:{...n}};default:return{...t,[e.type]:{...n}}}}mapArrayTypeChildrenToProps(e,t){let n={...t};return Object.keys(e).forEach(r=>{n={...n,[r]:e[r]}}),n}
40warnOnInvalidChildren(e,t){return MC($C.some(n=>e.type===n),typeof e.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 ${$C.join(", ")} are allowed. Helmet does not support rendering <${e.type}> elements. Refer to our API for more information.`),MC(!t||typeof t=="string"||Array.isArray(t)&&!t.some(n=>typeof n!="string"),`Helmet expects a string as a child of <${e.type}>. Did you forget to wrap your children in braces? ( <${e.type}>{\`\`}</${e.type}> ) Refer to our API for more information.`),!0}mapChildrenToProps(e,t){let n={};return A.Children.forEach(e,r=>{if(!r||!r.props)return;const{children:i,...s}=r.props,a=Object.keys(s).reduce((l,u)=>(l[QL[u]||u]=s[u],l),{});let{type:o}=r;switch(typeof o=="symbol"?o=o.toString():this.warnOnInvalidChildren(r,i),o){case"Symbol(react.fragment)":t=this.mapChildrenToProps(i,t);break;case"link":case"meta":case"noscript":case"script":case"style":n=this.flattenArrayTypeChildren(r,n,a,i);break;default:t=this.mapObjectTypeChildren(r,t,a,i);break}}),this.mapArrayTypeChildrenToProps(n,t)}render(){const{children:e,...t}=this.props;let n={...t},{helmetData:r}=t;if(e&&(n=this.mapChildrenToProps(e,n)),r&&!(r instanceof C1)){const i=r;r=new C1(i.context,!0),delete n.helmetData}return A1?A.createElement(y7,{...n}):r?A.createElement(FC,{...n,context:r.value}):A.createElement(t4.Consumer,null,i=>A.createElement(FC,{...n,context:i}))}},fs(Iw,"defaultProps",{defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1}),Iw);const x7=1,b7=1e6;let d0=0;function w7(){return d0=(d0+1)%Number.MAX_SAFE_INTEGER,d0.toString()}const h0=new Map,qC=e=>{if(h0.has(e))return;const t=setTimeout(()=>{h0.delete(e),Sh({type:"REMOVE_TOAST",toastId:e})},b7);h0.set(e,t)},k7=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,x7)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(n=>n.id===t.toast.id?{...n,...t.toast}:n)};case"DISMISS_TOAST":{const{toastId:n}=t;return n?qC(n):e.toasts.forEach(r=>{qC(r.id)}),{...e,toasts:e.toasts.map(r=>r.id===n||n===void 0?{...r,open:!1}:r)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(n=>n.id!==t.toastId)}}},vg=[];let xg={toasts:[]};function Sh(e){xg=k7(xg,e),vg.forEach(t=>{t(xg)})}function S7({...e}){const t=w7(),n=i=>Sh({type:"UPDATE_TOAST",toast:{...i,id:t}}),r=()=>Sh({type:"DISMISS_TOAST",toastId:t});return Sh({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:i=>{i||r()}}}),{id:t,dismiss:r,update:n}}function ls(){const[e,t]=w.useState(xg);return w.useEffect(()=>(vg.push(t),()=>{const n=vg.indexOf(t);n>-1&&vg.splice(n,1)}),[e]),{...e,toast:S7,dismiss:n=>Sh({type:"DISMISS_TOAST",toastId:n})}}function te(e,t,{checkForDefaultPrevented:n=!0}={}){return function(i){if(e==null||e(i),n===!1||!i.defaultPrevented)return t==null?void 0:t(i)}}function UC(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Xv(...e){return t=>{let n=!1;const r=e.map(i=>{const s=UC(i,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let i=0;i<r.length;i++){const s=r[i];typeof s=="function"?s():UC(e[i],null)}}}}function qe(...e){return w.useCallback(Xv(...e),e)}function j7(e,t){const n=w.createContext(t),r=s=>{const{children:a,...o}=s,l=w.useMemo(()=>o,Object.values(o));return c.jsx(n.Provider,{value:l,children:a})};r.displayName=e+"Provider";function i(s){const a=w.useContext(n);if(a)return a;if(t!==void 0)return t;throw new Error(`\`${s}\` must be used within \`${e}\``)}return[r,i]}function dr(e,t=[]){let n=[];function r(s,a){const o=w.createContext(a),l=n.length;n=[...n,a];const u=h=>{var v;const{scope:f,children:p,...g}=h,m=((v=f==null?void 0:f[e])==null?void 0:v[l])||o,y=w.useMemo(()=>g,Object.values(g));return c.jsx(m.Provider,{value:y,children:p})};u.displayName=s+"Provider";function d(h,f){var m;const p=((m=f==null?void 0:f[e])==null?void 0:m[l])||o,g=w.useContext(p);if(g)return g;if(a!==void 0)return a;throw new Error(`\`${h}\` must be used within \`${s}\``)}return[u,d]}const i=()=>{const s=n.map(a=>w.createContext(a));return function(o){const l=(o==null?void 0:o[e])||s;return w.useMemo(()=>({[`__scope${e}`]:{...o,[e]:l}}),[o,l])}};return i.scopeName=e,[r,_7(i,...t)]}function _7(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(s){const a=r.reduce((o,{useScope:l,scopeName:u})=>{const h=l(s)[`__scope${u}`];return{...o,...h}},{});return w.useMemo(()=>({[`__scope${t.scopeName}`]:a}
vendor: 10,529 bytes, line 40
40),[a])}};return n.scopeName=t.scopeName,n}function yl(e){const t=T7(e),n=w.forwardRef((r,i)=>{const{children:s,...a}=r,o=w.Children.toArray(s),l=o.find(N7);if(l){const u=l.props.children,d=o.map(h=>h===l?w.Children.count(u)>1?w.Children.only(null):w.isValidElement(u)?u.props.children:null:h);return c.jsx(t,{...a,ref:i,children:w.isValidElement(u)?w.cloneElement(u,void 0,d):null})}return c.jsx(t,{...a,ref:i,children:s})});return n.displayName=`${e}.Slot`,n}var E7=yl("Slot");function T7(e){const t=w.forwardRef((n,r)=>{const{children:i,...s}=n;if(w.isValidElement(i)){const a=A7(i),o=C7(s,i.props);return i.type!==w.Fragment&&(o.ref=r?Xv(r,a):a),w.cloneElement(i,o)}return w.Children.count(i)>1?w.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var r4=Symbol("radix.slottable");function i4(e){const t=({children:n})=>c.jsx(c.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=r4,t}function N7(e){return w.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===r4}function C7(e,t){const n={...t};for(const r in t){const i=e[r],s=t[r];/^on[A-Z]/.test(r)?i&&s?n[r]=(...o)=>{const l=s(...o);return i(...o),l}:i&&(n[r]=i):r==="style"?n[r]={...i,...s}:r==="className"&&(n[r]=[i,s].filter(Boolean).join(" "))}return{...e,...n}}function A7(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function jp(e){const t=e+"CollectionProvider",[n,r]=dr(t),[i,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=m=>{const{scope:y,children:v}=m,x=A.useRef(null),b=A.useRef(new Map).current;return c.jsx(i,{scope:y,itemMap:b,collectionRef:x,children:v})};a.displayName=t;const o=e+"CollectionSlot",l=yl(o),u=A.forwardRef((m,y)=>{const{scope:v,children:x}=m,b=s(o,v),S=qe(y,b.collectionRef);return c.jsx(l,{ref:S,children:x})});u.displayName=o;const d=e+"CollectionItemSlot",h="data-radix-collection-item",f=yl(d),p=A.forwardRef((m,y)=>{const{scope:v,children:x,...b}=m,S=A.useRef(null),k=qe(y,S),j=s(d,v);return A.useEffect(()=>(j.itemMap.set(S,{ref:S,...b}),()=>void j.itemMap.delete(S))),c.jsx(f,{[h]:"",ref:k,children:x})});p.displayName=d;function g(m){const y=s(e+"CollectionConsumer",m);return A.useCallback(()=>{const x=y.collectionRef.current;if(!x)return[];const b=Array.from(x.querySelectorAll(`[${h}]`));return Array.from(y.itemMap.values()).sort((j,_)=>b.indexOf(j.ref.current)-b.indexOf(_.ref.current))},[y.collectionRef,y.itemMap])}return[{Provider:a,Slot:u,ItemSlot:p},g,r]}var P7=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],we=P7.reduce((e,t)=>{const n=yl(`Primitive.${t}`),r=w.forwardRef((i,s)=>{const{asChild:a,...o}=i,l=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),c.jsx(l,{...o,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function __(e,t){e&&Pl.flushSync(()=>e.dispatchEvent(t))}function ur(e){const t=w.useRef(e);return w.useEffect(()=>{t.current=e}),w.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function O7(e,t=globalThis==null?void 0:globalThis.document){const n=ur(e);w.useEffect(()=>{const r=i=>{i.key==="Escape"&&n(i)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var R7="DismissableLayer",O1="dismissableLayer.update",I7="dismissableLayer.pointerDownOutside",M7="dismissableLayer.focusOutside",WC,s4=w.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Zu=w.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:s,onInteractOutside:a,onDismiss:o,...l}=e,u=w.useContext(s4),[d,h]=w.useState(null),f=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,p]=w.useState({}),g=qe(t,_=>h(_)),m=Array.from(u.layers),[y]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),v=m.indexOf(y),x=d?m.indexOf(d):-1,b=u.layersWithOutsidePointerEventsDisabled.size>0,S=x>=v,k=D7(_=>{const E=_.target,T=[...u.branches].some(N=>N.contains(E));!S||T||(i==null||i(_),a==null||a(_),_.defaultPrevented||o==null||o())},f),j=L7(_=>{const E=_.target;[...u.branches].some(N=>N.contains(E))||(s==null||s(_),a==null||a(_),_.defaultPrevented||o==null||o())},f);return O7(_=>{x===u.layers.size-1&&(r==null||r(_),!_.defaultPrevented&&o&&(_.preventDefault(),o()))},f),w.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(WC=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),zC(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=WC)}},[d,f,n,u]),w.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),zC())},[d,u]),w.useEffect(()=>{const _=()=>p({});return document.addEventListener(O1,_),()=>document.removeEventListener(O1,_)},[]),c.jsx(we.div,{...l,ref:g,style:{pointerEvents:b?S?"auto":"none":void 0,...e.style},onFocusCapture:te(e.onFocusCapture,j.onFocusCapture),onBlurCapture:te(e.onBlurCapture,j.onBlurCapture),onPointerDownCapture:te(e.onPointerDownCapture,k.onPointerDownCapture)})});Zu.displayName=R7;var $7="DismissableLayerBranch",a4=w.forwardRef((e,t)=>{const n=w.useContext(s4),r=w.useRef(null),i=qe(t,r);return w.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),c.jsx(we.div,{...e,ref:i})});a4.displayName=$7;function D7(e,t=globalThis==null?void 0:globalThis.document){const n=ur(e),r=w.useRef(!1),i=w.useRef(()=>{});return w.useEffect(()=>{const s=o=>{if(o.target&&!r.current){let l=function(){o4(I7,n,u,{discrete:!0})};const u={originalEvent:o};o.pointerType==="touch"?(t.removeEventListener("click",i.current),i.current=l,t.addEventListener("click",i.current,{once:!0})):l()}else t.removeEventListener("click",i.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",s),t.removeEventListener("click",i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function L7(e,t=globalThis==null?void 0:globalThis.document){const n=ur(e),r=w.useRef(!1);return w.useEffect(()=>{const i=s=>{s.target&&!r.current&&o4(M7,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",i),()=>t.removeEventListener("focusin",i)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function zC(){const e=new CustomEvent(O1);document.dispatchEvent(e)}function o4(e,t,n,{discrete:r}){const i=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?__(i,s):i.dispatchEvent(s)}var F7=Zu,B7=a4,mn=globalThis!=null&&globalThis.document?w.useLayoutEffect:()=>{},V7="Portal",_p=w.forwardRef((e,t)=>{var o;const{container:n,...r}=e,[i,s]=w.useState(!1);mn(()=>s(!0),[]);const a=n||i&&((o=globalThis==null?void 0:globalThis.document)==null?void 0:o.body);return a?GL.createPortal(c.jsx(we.div,{...r,ref:t}),a):null});_p.displayName=V7;function q7(e,t){return w.useReducer((n,r)=>t[n][r]??n,e)}var Jr=e=>{const{present:t,children:n}=e,r=U7(t),i=typeof n=="function"?n({present:r.isPresent}):w.Children.only(n),s=qe(r.ref,W7(i));return typeof n=="function"||r.isPresent?w.cloneElement(i,{ref:s}):null};Jr.displayName="Presence";function U7(e){const[t,n]=w.useState(),r=w.useRef(null),i=w.useRef(e),s=w.useRef("none"),a=e?"mounted":"unmounted",[o,l]=q7(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return w.useEffect(()=>{const u=xm(r.current);s.current=o==="mounted"?u:"none"},[o]),mn(()=>{const u=r.current,d=i.current;if(d!==e){const f=s.current,p=xm(u);e?l("MOUNT"):p==="none"||(u==null?void 0:u.display)==="none"?l("UNMOUNT"):l(d&&f!==p?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,l]),mn(()=>{if(t){let u;const d=t.ownerDocument.defaultView??window,h=p=>{const m=xm(r.current).includes(p.animationName);if(p.target===t&&m&&(l("ANIMATION_END"),!i.current)){const y=t.style.animationFillMode;t.style.animationFillMode="forwards",u=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=y)})}},f=p=>{p.target===t&&(s.current=xm(r.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",h),t.addEventListener("animationend",h),()=>{d.clearTimeout(u),t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",h),t.removeEventListener("animationend",h)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(o),ref:w.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function xm(e){return(e==null?void 0:e.animationName)||"none"}function W7(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var z7=Rj[" useInsertionEffect ".trim().toString()]||mn;function Xr({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[i,s,a]=H7({defaultProp:t,onChange:n}),o=e!==void 0,l=o?e:i;{const d=w.useRef(e!==void 0);w.useEffect(()=>{const h=d.current;h!==o&&console.warn(`${r} is changing from ${h?"controlled":"uncontrolled"} to ${o?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),d.current=o},[o,r])}const u=w.useCallback(d=>{var h;if(o){const f=K7(d)?d(e):d;f!==e&&((h=a.current)==null||h.call(a,f))}else s(d)},[o,e,s,a]);return[l,u]}function H7({defaultProp:e,onChange:t}){const[n,r]=w.useState(e),i=w.useRef(n),s=w.useRef(t);return z7(()=>{s.current=t},[t]),w.useEffect(()=>{var a;i.current!==n&&((a=s.current)==null||a.call(s,n),i.current=n)},[n,i]),[n,r,s]}function K7(e){return typeof e=="function"}var l4=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),G7="VisuallyHidden",Qv=w.forwardRef((e,t)=>
40c.jsx(we.span,{...e,ref:t,style:{...l4,...e.style}}));Qv.displayName=G7;var Y7=Qv,E_="ToastProvider",[T_,X7,Q7]=jp("Toast"),[c4,l6e]=dr("Toast",[Q7]),[Z7,Zv]=c4(E_),u4=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:i="right",swipeThreshold:s=50,children:a}=e,[o,l]=w.useState(null),[u,d]=w.useState(0),h=w.useRef(!1),f=w.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${E_}\`. Expected non-empty \`string\`.`),c.jsx(T_.Provider,{scope:t,children:c.jsx(Z7,{scope:t,label:n,duration:r,swipeDirection:i,swipeThreshold:s,toastCount:u,viewport:o,onViewportChange:l,onToastAdd:w.useCallback(()=>d(p=>p+1),[]),onToastRemove:w.useCallback(()=>d(p=>p-1),[]),isFocusedToastEscapeKeyDownRef:h,isClosePausedRef:f,children:a})})};u4.displayName=E_;var d4="ToastViewport",J7=["F8"],R1="toast.viewportPause",I1="toast.viewportResume",h4=w.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=J7,label:i="Notifications ({hotkey})",...s}=e,a=Zv(d4,n),o=X7(n),l=w.useRef(null),u=w.useRef(null),d=w.useRef(null),h=w.useRef(null),f=qe(t,h,a.onViewportChange),p=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),g=a.toastCount>0;w.useEffect(()=>{const y=v=>{var b;r.length!==0&&r.every(S=>v[S]||v.code===S)&&((b=h.current)==null||b.focus())};return document.addEventListener("keydown",y),()=>document.removeEventListener("keydown",y)},[r]),w.useEffect(()=>{const y=l.current,v=h.current;if(g&&y&&v){const x=()=>{if(!a.isClosePausedRef.current){const j=new CustomEvent(R1);v.dispatchEvent(j),a.isClosePausedRef.current=!0}},b=()=>{if(a.isClosePausedRef.current){const j=new CustomEvent(I1);v.dispatchEvent(j),a.isClosePausedRef.current=!1}},S=j=>{!y.contains(j.relatedTarget)&&b()},k=()=>{y.contains(document.activeElement)||b()};return y.addEventListener("focusin",x),y.addEventListener("focusout",S),y.addEventListener("pointermove",x),y.addEventListener("pointerleave",k),window.addEventListener("blur",x),window.addEventListener("focus",b),()=>{y.removeEventListener("focusin",x),y.removeEventListener("focusout",S),y.removeEventListener("pointermove",x),y.removeEventListener("pointerleave",k),window.removeEventListener("blur",x),window.removeEventListener("focus",b)}}},[g,a.isClosePausedRef]);const m=w.useCallback(({tabbingDirection:y})=>{const x=o().map(b=>{const S=b.ref.current,k=[S,...hK(S)];return y==="forwards"?k:k.reverse()});return(y==="forwards"?x.reverse():x).flat()},[o]);return w.useEffect(()=>{const y=h.current;if(y){const v=x=>{var k,j,_;const b=x.altKey||x.ctrlKey||x.metaKey;if(x.key==="Tab"&&!b){const E=document.activeElement,T=x.shiftKey;if(x.target===y&&T){(k=u.current)==null||k.focus();return}const C=m({tabbingDirection:T?"backwards":"forwards"}),M=C.findIndex(R=>R===E);f0(C.slice(M+1))?x.preventDefault():T?(j=u.current)==null||j.focus():(_=d.current)==null||_.focus()}};return y.addEventListener("keydown",v),()=>y.removeEventListener("keydown",v)}},[o,m]),c.jsxs(B7,{ref:l,role:"region","aria-label":i.replace("{hotkey}",p),tabIndex:-1,style:{pointerEvents:g?void 0:"none"},children:[g&&c.jsx(M1,{ref:u,onFocusFromOutsideViewport:()=>{const y=m({tabbingDirection:"forwards"});f0(y)}}),c.jsx(T_.Slot,{scope:n,children:c.jsx(we.ol,{tabIndex:-1,...s,ref:f})}),g&&c.jsx(M1,{ref:d,onFocusFromOutsideViewport:()=>{const y=m({tabbingDirection:"backwards"});f0(y)}})]})});h4.displayName=d4;var f4="ToastFocusProxy",M1=w.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...i}=e,s=Zv(f4,n);return c.jsx(Qv,{"aria-hidden":!0,tabIndex:0,...i,ref:t,style:{position:"fixed"},onFocus:a=>{var u;const o=a.relatedTarget;!((u=s.viewport)!=null&&u.contains(o))&&r()}})});M1.displayName=f4;var Ep="Toast",eK="toast.swipeStart",tK="toast.swipeMove",nK="toast.swipeCancel",rK="toast.swipeEnd",p4=w.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:i,onOpenChange:s,...a}=e,[o,l]=Xr({prop:r,defaultProp:i??!0,onChange:s,caller:Ep});return c.jsx(Jr,{present:n||o,children:c.jsx(aK,{open:o,...a,ref:t,onClose:()=>l(!1),onPause:ur(e.onPause),onResume:ur(e.onResume),onSwipeStart:te(e.onSwipeStart,u=>{u.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:te(e.onSwipeMove,u=>{const{x:d,y:h}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","move"),u.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${d}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${h}px`)}),onSwipeCancel:te(e.onSwipeCancel,u=>{u.currentTarget.setAttribute("data-swipe","cancel"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:te(e.onSwipeEnd,u=>{const{x:d,y:h}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","end"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${d}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${h}px`),l(!1)})})})});p4.displayName=Ep;var[iK,sK]=c4(Ep,{onClose(){}}),aK=w.forwardRef((e,t)=>
40{const{__scopeToast:n,type:r="foreground",duration:i,open:s,onClose:a,onEscapeKeyDown:o,onPause:l,onResume:u,onSwipeStart:d,onSwipeMove:h,onSwipeCancel:f,onSwipeEnd:p,...g}=e,m=Zv(Ep,n),[y,v]=w.useState(null),x=qe(t,R=>v(R)),b=w.useRef(null),S=w.useRef(null),k=i||m.duration,j=w.useRef(0),_=w.useRef(k),E=w.useRef(0),{onToastAdd:T,onToastRemove:N}=m,P=ur(()=>{var D;(y==null?void 0:y.contains(document.activeElement))&&((D=m.viewport)==null||D.focus()),a()}),C=w.useCallback(R=>{!R||R===1/0||(window.clearTimeout(E.current),j.current=new Date().getTime(),E.current=window.setTimeout(P,R))},[P]);w.useEffect(()=>{const R=m.viewport;if(R){const D=()=>{C(_.current),u==null||u()},L=()=>{const B=new Date().getTime()-j.current;_.current=_.current-B,window.clearTimeout(E.current),l==null||l()};return R.addEventListener(R1,L),R.addEventListener(I1,D),()=>{R.removeEventListener(R1,L),R.removeEventListener(I1,D)}}},[m.viewport,k,l,u,C]),w.useEffect(()=>{s&&!m.isClosePausedRef.current&&C(k)},[s,k,m.isClosePausedRef,C]),w.useEffect(()=>(T(),()=>N()),[T,N]);const M=w.useMemo(()=>y?w4(y):null,[y]);return m.viewport?c.jsxs(c.Fragment,{children:[M&&c.jsx(oK,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0,children:M}),c.jsx(iK,{scope:n,onClose:P,children:Pl.createPortal(c.jsx(T_.ItemSlot,{scope:n,children:c.jsx(F7,{asChild:!0,onEscapeKeyDown:te(o,()=>{m.isFocusedToastEscapeKeyDownRef.current||P(),m.isFocusedToastEscapeKeyDownRef.current=!1}),children:c.jsx(we.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":s?"open":"closed","data-swipe-direction":m.swipeDirection,...g,ref:x,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:te(e.onKeyDown,R=>{R.key==="Escape"&&(o==null||o(R.nativeEvent),R.nativeEvent.defaultPrevented||(m.isFocusedToastEscapeKeyDownRef.current=!0,P()))}),onPointerDown:te(e.onPointerDown,R=>{R.button===0&&(b.current={x:R.clientX,y:R.clientY})}),onPointerMove:te(e.onPointerMove,R=>{if(!b.current)return;const D=R.clientX-b.current.x,L=R.clientY-b.current.y,B=!!S.current,I=["left","right"].includes(m.swipeDirection),O=["left","up"].includes(m.swipeDirection)?Math.min:Math.max,V=I?O(0,D):0,z=I?0:O(0,L),q=R.pointerType==="touch"?10:2,X={x:V,y:z},J={originalEvent:R,delta:X};B?(S.current=X,bm(tK,h,J,{discrete:!1})):HC(X,m.swipeDirection,q)?(S.current=X,bm(eK,d,J,{discrete:!1}),R.target.setPointerCapture(R.pointerId)):(Math.abs(D)>q||Math.abs(L)>q)&&(b.current=null)}),onPointerUp:te(e.onPointerUp,R=>{const D=S.current,L=R.target;if(L.hasPointerCapture(R.pointerId)&&L.releasePointerCapture(R.pointerId),S.current=null,b.current=null,D){const B=R.currentTarget,I={originalEvent:R,delta:D};HC(D,m.swipeDirection,m.swipeThreshold)?bm(rK,p,I,{discrete:!0}):bm(nK,f,I,{discrete:!0}),B.addEventListener("click",O=>O.preventDefault(),{once:!0})}})})})}),m.viewport)})]}):null}),oK=e=>{const{__scopeToast:t,children:n,...r}=e,i=Zv(Ep,t),[s,a]=w.useState(!1),[o,l]=w.useState(!1);return uK(()=>a(!0)),w.useEffect(()=>{const u=window.setTimeout(()=>l(!0),1e3);return()=>window.clearTimeout(u)},[]),o?null:c.jsx(_p,{asChild:!0,children:c.jsx(Qv,{...r,children:s&&c.jsxs(c.Fragment,{children:[i.label," ",n]})})})},lK="ToastTitle",m4=w.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return c.jsx(we.div,{...r,ref:t})});m4.displayName=lK;var cK="ToastDescription",g4=w.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return c.jsx(we.div,{...r,ref:t})});g4.displayName=cK;var y4="ToastAction",v4=w.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?c.jsx(b4,{altText:n,asChild:!0,children:c.jsx(N_,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${y4}\`. Expected non-empty \`string\`.`),null)});v4.displayName=y4;var x4="ToastClose",N_=w.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,i=sK(x4,n);return c.jsx(b4,{asChild:!0,children:c.jsx(we.button,{type:"button",...r,ref:t,onClick:te(e.onClick,i.onClose)})})});N_.displayName=x4;var b4=w.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...i}=e;return c.jsx(we.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...i,ref:t})});function w4(e){const t=[];
40return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),dK(r)){const i=r.ariaHidden||r.hidden||r.style.display==="none",s=r.dataset.radixToastAnnounceExclude==="";if(!i)if(s){const a=r.dataset.radixToastAnnounceAlt;a&&t.push(a)}else t.push(...w4(r))}}),t}function bm(e,t,n,{discrete:r}){const i=n.originalEvent.currentTarget,s=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?__(i,s):i.dispatchEvent(s)}var HC=(e,t,n=0)=>{const r=Math.abs(e.x),i=Math.abs(e.y),s=r>i;return t==="left"||t==="right"?s&&r>n:!s&&i>n};function uK(e=()=>{}){const t=ur(e);mn(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function dK(e){return e.nodeType===e.ELEMENT_NODE}function hK(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const i=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||i?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function f0(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var fK=u4,k4=h4,S4=p4,j4=m4,_4=g4,E4=v4,T4=N_;function N4(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=N4(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Ye(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=N4(e))&&(r&&(r+=" "),r+=t);return r}
vendor: 4,664 bytes, lines 40-95
40const KC=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,GC=Ye,C_=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return GC(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:i,defaultVariants:s}=t,a=Object.keys(i).map(u=>{const d=n==null?void 0:n[u],h=s==null?void 0:s[u];if(d===null)return null;const f=KC(d)||KC(h);return i[u][f]}),o=n&&Object.entries(n).reduce((u,d)=>{let[h,f]=d;return f===void 0||(u[h]=f),u},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,d)=>{let{class:h,className:f,...p}=d;return Object.entries(p).every(g=>{let[m,y]=g;return Array.isArray(y)?y.includes({...s,...o}[m]):{...s,...o}[m]===y})?[...u,h,f]:u},[]);return GC(e,a,l,n==null?void 0:n.class,n==null?void 0:n.className)};/** 41 * @license lucide-react v0.462.0 - ISC 42 * 43 * This source code is licensed under the ISC license. 44 * See the LICENSE file in the root directory of this source tree. 45 */const pK=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),C4=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/** 46 * @license lucide-react v0.462.0 - ISC 47 * 48 * This source code is licensed under the ISC license. 49 * See the LICENSE file in the root directory of this source tree. 50 */var mK={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"};/** 51 * @license lucide-react v0.462.0 - ISC 52 * 53 * This source code is licensed under the ISC license. 54 * See the LICENSE file in the root directory of this source tree. 55 */const gK=w.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i="",children:s,iconNode:a,...o},l)=>w.createElement("svg",{ref:l,...mK,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:C4("lucide",i),...o},[...a.map(([u,d])=>w.createElement(u,d)),...Array.isArray(s)?s:[s]]));/** 56 * @license lucide-react v0.462.0 - ISC 57 * 58 * This source code is licensed under the ISC license. 59 * See the LICENSE file in the root directory of this source tree. 60 */const re=(e,t)=>{const n=w.forwardRef(({className:r,...i},s)=>w.createElement(gK,{ref:s,iconNode:t,className:C4(`lucide-${pK(e)}`,r),...i}));return n.displayName=`${e}`,n};/** 61 * @license lucide-react v0.462.0 - ISC 62 * 63 * This source code is licensed under the ISC license. 64 * See the LICENSE file in the root directory of this source tree. 65 */const YC=re("Activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]);/** 66 * @license lucide-react v0.462.0 - ISC 67 * 68 * This source code is licensed under the ISC license. 69 * See the LICENSE file in the root directory of this source tree. 70 */const ss=re("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/** 71 * @license lucide-react v0.462.0 - ISC 72 * 73 * This source code is licensed under the ISC license. 74 * See the LICENSE file in the root directory of this source tree. 75 */const Ls=re("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/** 76 * @license lucide-react v0.462.0 - ISC 77 * 78 * This source code is licensed under the ISC license. 79 * See the LICENSE file in the root directory of this source tree. 80 */const A4=re("ArrowUpRight",[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]]);/** 81 * @license lucide-react v0.462.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 yK=re("Award",[["path",{d:"m15.477 12.89 1.515 8.526a.5.5 0 0 1-.81.47l-3.58-2.687a1 1 0 0 0-1.197 0l-3.586 2.686a.5.5 0 0 1-.81-.469l1.514-8.526",key:"1yiouv"}],["circle",{cx:"12",cy:"8",r:"6",key:"1vp47v"}]]);/** 86 * @license lucide-react v0.462.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 Tp=re("Briefcase",[["path",{d:"M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16",key:"jecpp"}],["rect",{width:"20",height:"14",x:"2",y:"6",rx:"2",key:"i6l2r4"}]]);/** 91 * @license lucide-react v0.462.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 Lc=re("Building2",[["path",{d:"M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z",key:"1b4qmf"}],["path",{d:"M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2",key:"i71pzd"}],["path",{d:"M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2",key:"10jefs"}],["path",{d:"M10 6h4",key:"1itunk"}],["path",{d:"M10 10h4",key:"tcdvrf"}
95],["path",{d:"M10 14h4",key:"kelpxr"}],["path",{d:"M10 18h4",key:"1ulq68"}]]);/** 96 * @license lucide-react v0.462.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 fu=re("Calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]);/** 101 * @license lucide-react v0.462.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 */const A_=re("ChartColumn",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]]);/** 106 * @license lucide-react v0.462.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 Np=re("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/** 111 * @license lucide-react v0.462.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 pu=re("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/** 116 * @license lucide-react v0.462.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 Jv=re("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/** 121 * @license lucide-react v0.462.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 Fs=re("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/** 126 * @license lucide-react v0.462.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 $1=re("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/** 131 * @license lucide-react v0.462.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 vK=re("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/** 136 * @license lucide-react v0.462.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 ny=re("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/** 141 * @license lucide-react v0.462.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 XC=re("CircleX",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);/** 146 * @license lucide-react v0.462.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 xK=re("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/** 151 * @license lucide-react v0.462.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 Ol=re("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/** 156 * @license lucide-react v0.462.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 jh=re("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);/** 161 * @license lucide-react v0.462.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 P4=re("CreditCard",[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]]);/** 166 * @license lucide-react v0.462.0 - ISC 167 * 168 * This source code is licensed under the ISC license. 169 * See the LICENSE file in the root directory of this source tree. 170 */const D1=re("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);/** 171 * @license lucide-react v0.462.0 - ISC 172 * 173 * This source code is licensed under the ISC license. 174 * See the LICENSE file in the root directory of this source tree. 175 */const ry=re("EyeOff",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);/** 176 * @license lucide-react v0.462.0 - ISC 177 * 178 * This source code is licensed under the ISC license. 179 * See the LICENSE file in the root directory of this source tree. 180 */const iy=re("Eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/** 181 * @license lucide-react v0.462.0 - ISC 182 * 183 * This source code is licensed under the ISC license. 184 * See the LICENSE file in the root directory of this source tree. 185 */const bK=re("Facebook",[["path",{d:"M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z",key:"1jg4f8"}]]);/** 186 * @license lucide-react v0.462.0 - ISC 187 * 188 * This source code is licensed under the ISC license. 189 * See the LICENSE file in the root directory of this source tree. 190 */const wK=re("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/** 191 * @license lucide-react v0.462.0 - ISC 192 * 193 * This source code is licensed under the ISC license. 194 * See the LICENSE file in the root directory of this source tree. 195 */const rf=re("GraduationCap",[["path",{d:"M21.42 10.922a1 1 0 0 0-.019-1.838L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.832l8.57 3.908a2 2 0 0 0 1.66 0z",key:"j76jl0"}],["path",{d:"M22 10v6",key:"1lu8f3"}],["path",{d:"M6 12.5V16a6 3 0 0 0 12 0v-3.5",key:"1r8lef"}]]);/** 196 * @license lucide-react v0.462.0 - ISC 197 * 198 * This source code is licensed under the ISC license. 199 * See the LICENSE file in the root directory of this source tree. 200 */const kK=re("Handshake",[["path",{d:"m11 17 2 2a1 1 0 1 0 3-3",key:"efffak"}],["path",{d:"m14 14 2.5 2.5a1 1 0 1 0 3-3l-3.88-3.88a3 3 0 0 0-4.24 0l-.88.88a1 1 0 1 1-3-3l2.81-2.81a5.79 5.79 0 0 1 7.06-.87l.47.28a2 2 0 0 0 1.42.25L21 4",key:"9pr0kb"}],["path",{d:"m21 3 1 11h-2",key:"1tisrp"}],["path",{d:"M3 3 2 14l6.5 6.5a1 1 0 1 0 3-3",key:"1uvwmv"}],["path",{d:"M3 4h8",key:"1ep09j"}]]);/** 201 * @license lucide-react v0.462.0 - ISC 202 * 203 * This source code is licensed under the ISC license. 204 * See the LICENSE file in the root directory of this source tree. 205 */const QC=re("Headphones",[["path",{d:"M3 14h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-7a9 9 0 0 1 18 0v7a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3",key:"1xhozi"}]]);/** 206 * @license lucide-react v0.462.0 - ISC 207 * 208 * This source code is licensed under the ISC license. 209 * See the LICENSE file in the root directory of this source tree. 210 */const P_=re("Heart",[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}]]);/** 211 * @license lucide-react v0.462.0 - ISC 212 * 213 * This source code is licensed under the ISC license. 214 * See the LICENSE file in the root directory of this source tree. 215 */const SK=re("History",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]]);/** 216 * @license lucide-react v0.462.0 - ISC 217 * 218 * This source code is licensed under the ISC license. 219 * See the LICENSE file in the root directory of this source tree. 220 */const jK=re("Laptop",[["path",{d:"M20 16V7a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v9m16 0H4m16 0 1.28 2.55a1 1 0 0 1-.9 1.45H3.62a1 1 0 0 1-.9-1.45L4 16",key:"tarvll"}]]);/** 221 * @license lucide-react v0.462.0 - ISC 222 * 223 * This source code is licensed under the ISC license. 224 * See the LICENSE file in the root directory of this source tree. 225 */const _K=re("Linkedin",[["path",{d:"M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z",key:"c2jq9f"}],["rect",{width:"4",height:"12",x:"2",y:"9",key:"mk3on5"}],["circle",{cx:"4",cy:"4",r:"2",key:"bt5ra8"}]]);/** 226 * @license lucide-react v0.462.0 - ISC 227 * 228 * This source code is licensed under the ISC license. 229 * See the LICENSE file in the root directory of this source tree. 230 */const EK=re("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/** 231 * @license lucide-react v0.462.0 - ISC 232 * 233 * This source code is licensed under the ISC license. 234 * See the LICENSE file in the root directory of this source tree.
235 */const O4=re("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]);/** 236 * @license lucide-react v0.462.0 - ISC 237 * 238 * This source code is licensed under the ISC license. 239 * See the LICENSE file in the root directory of this source tree. 240 */const O_=re("LogOut",[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]]);/** 241 * @license lucide-react v0.462.0 - ISC 242 * 243 * This source code is licensed under the ISC license. 244 * See the LICENSE file in the root directory of this source tree. 245 */const mu=re("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]]);/** 246 * @license lucide-react v0.462.0 - ISC 247 * 248 * This source code is licensed under the ISC license. 249 * See the LICENSE file in the root directory of this source tree. 250 */const R_=re("MapPin",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]);/** 251 * @license lucide-react v0.462.0 - ISC 252 * 253 * This source code is licensed under the ISC license. 254 * See the LICENSE file in the root directory of this source tree. 255 */const TK=re("Megaphone",[["path",{d:"m3 11 18-5v12L3 14v-3z",key:"n962bs"}],["path",{d:"M11.6 16.8a3 3 0 1 1-5.8-1.6",key:"1yl0tm"}]]);/** 256 * @license lucide-react v0.462.0 - ISC 257 * 258 * This source code is licensed under the ISC license. 259 * See the LICENSE file in the root directory of this source tree. 260 */const NK=re("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);/** 261 * @license lucide-react v0.462.0 - ISC 262 * 263 * This source code is licensed under the ISC license. 264 * See the LICENSE file in the root directory of this source tree. 265 */const CK=re("Minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]);/** 266 * @license lucide-react v0.462.0 - ISC 267 * 268 * This source code is licensed under the ISC license. 269 * See the LICENSE file in the root directory of this source tree. 270 */const AK=re("Monitor",[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]]);/** 271 * @license lucide-react v0.462.0 - ISC 272 * 273 * This source code is licensed under the ISC license. 274 * See the LICENSE file in the root directory of this source tree. 275 */const PK=re("Newspaper",[["path",{d:"M4 22h16a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v16a2 2 0 0 1-2 2Zm0 0a2 2 0 0 1-2-2v-9c0-1.1.9-2 2-2h2",key:"7pis2x"}],["path",{d:"M18 14h-8",key:"sponae"}],["path",{d:"M15 18h-5",key:"95g1m2"}],["path",{d:"M10 6h8v4h-8V6Z",key:"smlsk5"}]]);/** 276 * @license lucide-react v0.462.0 - ISC 277 * 278 * This source code is licensed under the ISC license. 279 * See the LICENSE file in the root directory of this source tree. 280 */const OK=re("Pause",[["rect",{x:"14",y:"4",width:"4",height:"16",rx:"1",key:"zuxfzm"}],["rect",{x:"6",y:"4",width:"4",height:"16",rx:"1",key:"1okwgv"}]]);/** 281 * @license lucide-react v0.462.0 - ISC 282 * 283 * This source code is licensed under the ISC license. 284 * See the LICENSE file in the root directory of this source tree. 285 */const I_=re("Pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]);/** 286 * @license lucide-react v0.462.0 - ISC 287 * 288 * This source code is licensed under the ISC license. 289 * See the LICENSE file in the root directory of this source tree. 290 */const Cp=re("Phone",[["path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",key:"foiqr5"}]]);/** 291 * @license lucide-react v0.462.0 - ISC 292 * 293 * This source code is licensed under the ISC license. 294 * See the LICENSE file in the root directory of this source tree. 295 */const ex=re("PiggyBank",[["path",{d:"M19 5c-1.5 0-2.8 1.4-3 2-3.5-1.5-11-.3-11 5 0 1.8 0 3 2 4.5V20h4v-2h3v2h4v-4c1-.5 1.7-1 2-2h2v-4h-2c0-1-.5-1.5-1-2V5z",key:"1ivx2i"}],["path",{d:"M2 9v1c0 1.1.9 2 2 2h1",key:"nm575m"}],["path",{d:"M16 11h.01",key:"xkw8gn"}]]);/** 296 * @license lucide-react v0.462.0 - ISC 297 * 298 * This source code is licensed under the ISC license. 299 * See the LICENSE file in the root directory of this source tree. 300 */const RK=re("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);/** 301 * @license lucide-react v0.462.0 - ISC 302 * 303 * This source code is licensed under the ISC license. 304 * See the LICENSE file in the root directory of this source tree. 305 */const tx=re("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/** 306 * @license lucide-react v0.462.0 - ISC 307 * 308 * This source code is licensed under the ISC license. 309 * See the LICENSE file in the root directory of this source tree. 310 */const ZC=re("Presentation",[["path",{d:"M2 3h20",key:"91anmk"}],["path",{d:"M21 3v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V3",key:"2k9sn8"}],["path",{d:"m7 21 5-5 5 5",key:"bip4we"}]]);/** 311 * @license lucide-react v0.462.0 - ISC 312 * 313 * This source code is licensed under the ISC license. 314 * See the LICENSE file in the root directory of this source tree. 315 */const nx=re("Quote",[["path",{d:"M16 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"rib7q0"}],["path",{d:"M5 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"1ymkrd"}]]);/** 316 * @license lucide-react v0.462.0 - ISC 317 * 318 * This source code is licensed under the ISC license. 319 * See the LICENSE file in the root directory of this source tree. 320 */const bg=re("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/** 321 * @license lucide-react v0.462.0 - ISC 322 * 323 * This source code is licensed under the ISC license. 324 * See the LICENSE file in the root directory of this source tree. 325 */const IK=re("RotateCcw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]);/** 326 * @license lucide-react v0.462.0 - ISC 327 * 328 * This source code is licensed under the ISC license. 329 * See the LICENSE file in the root directory of this source tree. 330 */const MK=re("Send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);/** 331 * @license lucide-react v0.462.0 - ISC 332 * 333 * This source code is licensed under the ISC license. 334 * See the LICENSE file in the root directory of this source tree. 335 */const $K=re("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/** 336 * @license lucide-react v0.462.0 - ISC 337 * 338 * This source code is licensed under the ISC license. 339 * See the LICENSE file in the root directory of this source tree. 340 */const R4=re("ShieldCheck",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",ke
340y:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/** 341 * @license lucide-react v0.462.0 - ISC 342 * 343 * This source code is licensed under the ISC license. 344 * See the LICENSE file in the root directory of this source tree. 345 */const sf=re("Shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]]);/** 346 * @license lucide-react v0.462.0 - ISC 347 * 348 * This source code is licensed under the ISC license. 349 * See the LICENSE file in the root directory of this source tree. 350 */const I4=re("Smartphone",[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]]);/** 351 * @license lucide-react v0.462.0 - ISC 352 * 353 * This source code is licensed under the ISC license. 354 * See the LICENSE file in the root directory of this source tree. 355 */const DK=re("Tag",[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]]);/** 356 * @license lucide-react v0.462.0 - ISC 357 * 358 * This source code is licensed under the ISC license. 359 * See the LICENSE file in the root directory of this source tree. 360 */const M4=re("Target",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]]);/** 361 * @license lucide-react v0.462.0 - ISC 362 * 363 * This source code is licensed under the ISC license. 364 * See the LICENSE file in the root directory of this source tree. 365 */const Ap=re("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);/** 366 * @license lucide-react v0.462.0 - ISC 367 * 368 * This source code is licensed under the ISC license. 369 * See the LICENSE file in the root directory of this source tree. 370 */const LK=re("TrendingDown",[["polyline",{points:"22 17 13.5 8.5 8.5 13.5 2 7",key:"1r2t7k"}],["polyline",{points:"16 17 22 17 22 11",key:"11uiuu"}]]);/** 371 * @license lucide-react v0.462.0 - ISC 372 * 373 * This source code is licensed under the ISC license. 374 * See the LICENSE file in the root directory of this source tree. 375 */const $4=re("TrendingUp",[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]]);/** 376 * @license lucide-react v0.462.0 - ISC 377 * 378 * This source code is licensed under the ISC license. 379 * See the LICENSE file in the root directory of this source tree. 380 */const FK=re("Upload",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]]);/** 381 * @license lucide-react v0.462.0 - ISC 382 * 383 * This source code is licensed under the ISC license. 384 * See the LICENSE file in the root directory of this source tree. 385 */const D4=re("UserCog",[["circle",{cx:"18",cy:"15",r:"3",key:"gjjjvw"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M10 15H6a4 4 0 0 0-4 4v2",key:"1nfge6"}],["path",{d:"m21.7 16.4-.9-.3",key:"12j9ji"}],["path",{d:"m15.2 13.9-.9-.3",key:"1fdjdi"}],["path",{d:"m16.6 18.7.3-.9",key:"heedtr"}],["path",{d:"m19.1 12.2.3-.9",key:"1af3ki"}],["path",{d:"m19.6 18.7-.4-1",key:"1x9vze"}],["path",{d:"m16.8 12.3-.4-1",key:"vqeiwj"}],["path",{d:"m14.3 16.6 1-.4",key:"1qlj63"}],["path",{d:"m20.7 13.8 1-.4",key:"1v5t8k"}]]);/** 386 * @license lucide-react v0.462.0 - ISC 387 * 388 * This source code is licensed under the ISC license. 389 * See the LICENSE file in the root directory of this source tree. 390 */const BK=re("UserPlus",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["line",{x1:"19",x2:"19",y1:"8",y2:"14",key:"1bvyxn"}],["line",{x1:"22",x2:"16",y1:"11",y2:"11",key:"1shjgl"}]]);/** 391 * @license lucide-react v0.462.0 - ISC 392 * 393 * This source code is licensed under the ISC license. 394 * See the LICENSE file in the root directory of this source tree. 395 */const L4=re("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);/** 396 * @license lucide-react v0.462.0 - ISC 397 * 398 * This source code is licensed under the ISC license. 399 * See the LICENSE file in the root directory of this source tree. 400 */const Za=re("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]);/** 401 * @license lucide-react v0.462.0 - ISC 402 * 403 * This source code is licensed under the ISC license. 404 * See the LICENSE file in the root directory of this source tree. 405 */const af=re("Wallet",[["path",{d:"M19 7V4a1 1 0 0 0-1-1H5a2 2 0 0 0 0 4h15a1 1 0 0 1 1 1v4h-3a2 2 0 0 0 0 4h3a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1",key:"18etb6"}],["path",{d:"M3 5v14a2 2 0 0 0 2 2h15a1 1 0 0 0 1-1v-4",key:"xoc0q4"}]]);/** 406 * @license lucide-react v0.462.0 - ISC 407 * 408 * This source code is licensed under the ISC license. 409 * See the LICENSE file in the root directory of this source tree. 410 */const rx=re("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}
vendor: 9,474 bytes, lines 410-415
410],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/** 411 * @license lucide-react v0.462.0 - ISC 412 * 413 * This source code is licensed under the ISC license. 414 * See the LICENSE file in the root directory of this source tree. 415 */const M_=re("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]),$_="-",VK=e=>{const t=UK(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:a=>{const o=a.split($_);return o[0]===""&&o.length!==1&&o.shift(),F4(o,t)||qK(a)},getConflictingClassGroupIds:(a,o)=>{const l=n[a]||[];return o&&r[a]?[...l,...r[a]]:l}}},F4=(e,t)=>{var a;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),i=r?F4(e.slice(1),r):void 0;if(i)return i;if(t.validators.length===0)return;const s=e.join($_);return(a=t.validators.find(({validator:o})=>o(s)))==null?void 0:a.classGroupId},JC=/^\[(.+)\]$/,qK=e=>{if(JC.test(e)){const t=JC.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},UK=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return zK(Object.entries(e.classGroups),n).forEach(([s,a])=>{L1(a,r,s,t)}),r},L1=(e,t,n,r)=>{e.forEach(i=>{if(typeof i=="string"){const s=i===""?t:e2(t,i);s.classGroupId=n;return}if(typeof i=="function"){if(WK(i)){L1(i(r),t,n,r);return}t.validators.push({validator:i,classGroupId:n});return}Object.entries(i).forEach(([s,a])=>{L1(a,e2(t,s),n,r)})})},e2=(e,t)=>{let n=e;return t.split($_).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},WK=e=>e.isThemeGetter,zK=(e,t)=>t?e.map(([n,r])=>{const i=r.map(s=>typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([a,o])=>[t+a,o])):s);return[n,i]}):e,HK=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const i=(s,a)=>{n.set(s,a),t++,t>e&&(t=0,r=n,n=new Map)};return{get(s){let a=n.get(s);if(a!==void 0)return a;if((a=r.get(s))!==void 0)return i(s,a),a},set(s,a){n.has(s)?n.set(s,a):i(s,a)}}},B4="!",KK=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,i=t[0],s=t.length,a=o=>{const l=[];let u=0,d=0,h;for(let y=0;y<o.length;y++){let v=o[y];if(u===0){if(v===i&&(r||o.slice(y,y+s)===t)){l.push(o.slice(d,y)),d=y+s;continue}if(v==="/"){h=y;continue}}v==="["?u++:v==="]"&&u--}const f=l.length===0?o:o.substring(d),p=f.startsWith(B4),g=p?f.substring(1):f,m=h&&h>d?h-d:void 0;return{modifiers:l,hasImportantModifier:p,baseClassName:g,maybePostfixModifierPosition:m}};return n?o=>n({className:o,parseClassName:a}):a},GK=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},YK=e=>({cache:HK(e.cacheSize),parseClassName:KK(e),...VK(e)}),XK=/\s+/,QK=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i}=t,s=[],a=e.trim().split(XK);let o="";for(let l=a.length-1;l>=0;l-=1){const u=a[l],{modifiers:d,hasImportantModifier:h,baseClassName:f,maybePostfixModifierPosition:p}=n(u);let g=!!p,m=r(g?f.substring(0,p):f);if(!m){if(!g){o=u+(o.length>0?" "+o:o);continue}if(m=r(f),!m){o=u+(o.length>0?" "+o:o);continue}g=!1}const y=GK(d).join(":"),v=h?y+B4:y,x=v+m;if(s.includes(x))continue;s.push(x);const b=i(m,g);for(let S=0;S<b.length;++S){const k=b[S];s.push(v+k)}o=u+(o.length>0?" "+o:o)}return o};function ZK(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=V4(t))&&(r&&(r+=" "),r+=n);return r}const V4=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=V4(e[r]))&&(n&&(n+=" "),n+=t);return n};function JK(e,...t){let n,r,i,s=a;function a(l){const u=t.reduce((d,h)=>h(d),e());return n=YK(u),r=n.cache.get,i=n.cache.set,s=o,o(l)}function o(l){const u=r(l);if(u)return u;const d=QK(l,n);return i(l,d),d}return function(){return s(ZK.apply(null,arguments))}}const vt=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},q4=/^\[(?:([a-z-]+):)?(.+)\]$/i,eG=/^\d+\/\d+$/,tG=new Set(["px","full","screen"]),nG=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,rG=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,iG=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,sG=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,aG=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ps=e=>Fc(e)||tG.has(e)||eG.test(e),aa=e=>Ju(e,"length",pG),Fc=e=>!!e&&!Number.isNaN(Number(e)),p0=e=>Ju(e,"number",Fc),$d=e=>!!e&&Number.isInteger(Number(e)),oG=e=>e.endsWith("%")&&Fc(e.slice(0,-1)),$e=e=>q4.test(e),oa=e=>nG.test(e),lG=new Set(["length","size","percentage"]),cG=e=>Ju(e,lG,U4),uG=e=>Ju(e,"position",U4),dG=new Set(["image","url"]),hG=e=>Ju(e,dG,gG),fG=e=>Ju(e,"",mG),Dd=()=>!0,Ju=(e,t,n)=>{const r=q4.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},pG=e=>rG.test(e)&&!iG.test(e),U4=()=>!1,mG=e=>sG.test(e),gG=e=>aG.test(e),yG=()=>{const e=vt("colors"),t=vt("spacing"),n=vt("blur"),r=vt("brightness"),i=vt("borderColor"),s=vt("borderRadius"),a=vt("borderSpacing"),o=vt("borderWidth"),l=vt("contrast"),u=vt("grayscale"),d=vt("hueRotate"),h=vt("invert"),f=vt("gap"),p=vt("gradientColorStops"),g=vt("gradientColorStopPositions"),m=vt("inset"),y=vt("margin"),v=vt("opacity"),x=vt("padding"),b=vt("saturate"),S=vt("scale"),k=vt("sepia"),j=vt("skew"),_=vt("space"),E=vt("translate"),T=()=>["auto","contain","none"],N=()=>["auto","hidden","clip","visible","scroll"],P=()=>["auto",$e,t],C=()=>[$e,t],M=()=>["",ps,aa],R=()=>["auto",Fc,$e],D=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],L=()=>["solid","dashed","dotted","double","none"],B=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],I=()=>["start","end","center","between","around","evenly","stretch"],O=()=>["","0",$e],V=()=>["auto","avoid","all","avoid-page","page","left","right","column"],z=()=>[Fc,$e];return{cacheSize:500,separator:":",theme:{colors:[Dd],spacing:[ps,aa],blur:["none","",oa,$e],brightness:z(),borderColor:[e],borderRadius:["none","","full",oa,$e],borderSpacing:C(),borderWidth:M(),contrast:z(),grayscale:O(),hueRotate:z(),invert:O(),gap:C(),gradientColorStops:[e],gradientColorStopPositions:[oG,aa],inset:P(),margin:P(),opacity:z(),padding:C(),saturate:z(),scale:z(),sepia:O(),skew:z(),space:C(),translate:C()},classGroups:{aspect:[{aspect:["auto","square","video",$e]}],container:["container"],columns:[{columns:[oa]}],"break-after":[{"break-after":V()}],"break-before":[{"break-before":V()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...D(),$e]}],overflow:[{overflow:N()}],"overflow-x":[{"overflow-x":N()}],"overflow-y":[{"overflow-y":N()}],overscroll:[{overscroll:T()}],"overscroll-x":[{"overscroll-x":T()}],"overscroll-y":[{"overscroll-y":T()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[m]}],"inset-x":[{"inset-x":[m]}],"inset-y":[{"inset-y":[m]}],start:[{start:[m]}],end:[{end:[m]}],top:[{top:[m]}],right:[{right:[m]}],bottom:[{bottom:[m]}],left:[{left:[m]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",$d,$e]}],basis:[{basis:P()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",$e]}],grow:[{grow:O()}],shrink:[{shrink:O()}],order:[{order:["first","last","none",$d,$e]}],"grid-cols":[{"grid-cols":[Dd]}],"col-start-end":[{col:["auto",{span:["full",$d,$e]},$e]}],"col-start":[{"col-start":R()}],"col-end":[{"col-end":R()}],"grid-rows":[{"grid-rows":[Dd]}],"row-start-end":[{row:["auto",{span:[$d,$e]},$e]}],"row-start":[{"row-start":R()}],"row-end":[{"row-end":R()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",$e]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",$e]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal",...I()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...I(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...I(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[x]}],px:[{px:[x]}],py:[{py:[x]}],ps:[{ps:[x]}
vendor: 8,339 bytes, line 415
415],pe:[{pe:[x]}],pt:[{pt:[x]}],pr:[{pr:[x]}],pb:[{pb:[x]}],pl:[{pl:[x]}],m:[{m:[y]}],mx:[{mx:[y]}],my:[{my:[y]}],ms:[{ms:[y]}],me:[{me:[y]}],mt:[{mt:[y]}],mr:[{mr:[y]}],mb:[{mb:[y]}],ml:[{ml:[y]}],"space-x":[{"space-x":[_]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[_]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",$e,t]}],"min-w":[{"min-w":[$e,t,"min","max","fit"]}],"max-w":[{"max-w":[$e,t,"none","full","min","max","fit","prose",{screen:[oa]},oa]}],h:[{h:[$e,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[$e,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[$e,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[$e,t,"auto","min","max","fit"]}],"font-size":[{text:["base",oa,aa]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",p0]}],"font-family":[{font:[Dd]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",$e]}],"line-clamp":[{"line-clamp":["none",Fc,p0]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",ps,$e]}],"list-image":[{"list-image":["none",$e]}],"list-style-type":[{list:["none","disc","decimal",$e]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[v]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[v]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...L(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",ps,aa]}],"underline-offset":[{"underline-offset":["auto",ps,$e]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:C()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",$e]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",$e]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[v]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...D(),uG]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",cG]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},hG]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[g]}],"gradient-via-pos":[{via:[g]}],"gradient-to-pos":[{to:[g]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[o]}],"border-w-x":[{"border-x":[o]}],"border-w-y":[{"border-y":[o]}],"border-w-s":[{"border-s":[o]}],"border-w-e":[{"border-e":[o]}],"border-w-t":[{"border-t":[o]}],"border-w-r":[{"border-r":[o]}],"border-w-b":[{"border-b":[o]}],"border-w-l":[{"border-l":[o]}],"border-opacity":[{"border-opacity":[v]}],"border-style":[{border:[...L(),"hidden"]}],"divide-x":[{"divide-x":[o]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[o]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[v]}],"divide-style":[{divide:L()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-s":[{"border-s":[i]}],"border-color-e":[{"border-e":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:["",...L()]}],"outline-offset":[{"outline-offset":[ps,$e]}],"outline-w":[{outline:[ps,aa]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:M()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[v]}],"ring-offset-w":[{"ring-offset":[ps,aa]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",oa,fG]}],"shadow-color":[{shadow:[Dd]}],opacity:[{opacity:[v]}],"mix-blend":[{"mix-blend":[...B(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":B()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",oa,$e]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[h]}],saturate:[{saturate:[b]}],sepia:[{sepia:[k]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[h]}],"backdrop-opacity":[{"backdrop-opacity":[v]}],"backdrop-saturate":[{"backdrop-saturate":[b]}],"backdrop-sepia":[{"backdrop-sepia":[k]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",$e]}],duration:[{duration:z()}],ease:[{ease:["linear","in","out","in-out",$e]}],delay:[{delay:z()}],animate:[{animate:["none","spin","ping","pulse","bounce",$e]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[S]}],"scale-x":[{"scale-x":[S]}],"scale-y":[{"scale-y":[S]}],rotate:[{rotate:[$d,$e]}],"translate-x":[{"translate-x":[E]}],"translate-y":[{"translate-y":[E]}],"skew-x":[{"skew-x":[j]}],"skew-y":[{"skew-y":[j]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",$e]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",$e]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":C()}],"scroll-mx":[{"scroll-mx":C()}],"scroll-my":[{"scroll-my":C()}],"scroll-ms":[{"scroll-ms":C()}],"scroll-me":[{"scroll-me":C()}],"scroll-mt":[{"scroll-mt":C()}],"scroll-mr":[{"scroll-mr":C()}],"scroll-mb":[{"scroll-mb":C()}],"scroll-ml":[{"scroll-ml":C()}],"scroll-p":[{"scroll-p":C()}],"scroll-px":[{"scroll-px":C()}],"scroll-py":[{"scroll-py":C()}],"scroll-ps":[{"scroll-ps":C()}],"scroll-pe":[{"scroll-pe":C()}],"scroll-pt":[{"scroll-pt":C()}],"scroll-pr":[{"scroll-pr":C()}],"scroll-pb":[{"scroll-pb":C()}],"scroll-pl":[{"scroll-pl":C()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}
vendor: 4,647 bytes, line 415
415],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",$e]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[ps,aa,p0]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},vG=JK(yG);function ye(...e){return vG(Ye(e))}const xG=fK,W4=w.forwardRef(({className:e,...t},n)=>c.jsx(k4,{ref:n,className:ye("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...t}));W4.displayName=k4.displayName;const bG=C_("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),z4=w.forwardRef(({className:e,variant:t,...n},r)=>c.jsx(S4,{ref:r,className:ye(bG({variant:t}),e),...n}));z4.displayName=S4.displayName;const wG=w.forwardRef(({className:e,...t},n)=>c.jsx(E4,{ref:n,className:ye("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors group-[.destructive]:border-muted/40 hover:bg-secondary group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 group-[.destructive]:focus:ring-destructive disabled:pointer-events-none disabled:opacity-50",e),...t}));wG.displayName=E4.displayName;const H4=w.forwardRef(({className:e,...t},n)=>c.jsx(T4,{ref:n,className:ye("absolute right-2 top-2 rounded-md p-1 text-foreground
415/50 opacity-0 transition-opacity group-hover:opacity-100 group-[.destructive]:text-red-300 hover:text-foreground group-[.destructive]:hover:text-red-50 focus:opacity-100 focus:outline-none focus:ring-2 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:c.jsx(rx,{className:"h-4 w-4"})}));H4.displayName=T4.displayName;const K4=w.forwardRef(({className:e,...t},n)=>c.jsx(j4,{ref:n,className:ye("text-sm font-semibold",e),...t}));K4.displayName=j4.displayName;const G4=w.forwardRef(({className:e,...t},n)=>c.jsx(_4,{ref:n,className:ye("text-sm opacity-90",e),...t}));G4.displayName=_4.displayName;function kG(){const{toasts:e}=ls();return c.jsxs(xG,{children:[e.map(function({id:t,title:n,description:r,action:i,...s}){return c.jsxs(z4,{...s,children:[c.jsxs("div",{className:"grid gap-1",children:[n&&c.jsx(K4,{children:n}),r&&c.jsx(G4,{children:r})]}),i,c.jsx(H4,{})]},t)}),c.jsx(W4,{})]})}var t2=["light","dark"],SG="(prefers-color-scheme: dark)",jG=w.createContext(void 0),_G={setTheme:e=>{},themes:[]},EG=()=>{var e;return(e=w.useContext(jG))!=null?e:_G};w.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:i,defaultTheme:s,value:a,attrs:o,nonce:l})=>{let u=s==="system",d=n==="class"?`var d=document.documentElement,c=d.classList;${`c.remove(${o.map(g=>`'${g}'`).join(",")})`};`:`var d=document.documentElement,n='${n}',s='setAttribute';`,h=i?t2.includes(s)&&s?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${s}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",f=(g,m=!1,y=!0)=>{let v=a?a[g]:g,x=m?g+"|| ''":`'${v}'`,b="";return i&&y&&!m&&t2.includes(g)&&(b+=`d.style.colorScheme = '${g}';`),n==="class"?m||v?b+=`c.add(${x})`:b+="null":v&&(b+=`d[s](n,${x})`),b},p=e?`!function(){${d}${f(e)}}()`:r?`!function(){try{${d}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${u})){var t='${SG}',m=window.matchMedia(t);if(m.media!==t||m.matches){${f("dark")}}else{${f("light")}}}else if(e){${a?`var x=${JSON.stringify(a)};`:""}${f(a?"x[e]":"e",!0)}}${u?"":"else{"+f(s,!1,!1)+"}"}${h}}catch(e){}}()`:`!function(){try{${d}var e=localStorage.getItem('${t}');if(e){${a?`var x=${JSON.stringify(a)};`:""}${f(a?"x[e]":"e",!0)}}else{${f(s,!1,!1)};}${h}}catch(t){}}();`;return w.createElement("script",{nonce:l,dangerouslySetInnerHTML:{__html:p}})});var TG=e=>{switch(e){case"success":return AG;case"info":return OG;case"warning":return PG;case"error":return RG;default:return null}},NG=Array(12).fill(0),CG=({visible:e,className:t})=>A.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},A.createElement("div",{className:"sonner-spinner"},NG.map((n,r)=>A.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),AG=A.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},A.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),PG=A.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},A.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),OG=A.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},A.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),RG=A.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},A.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),IG=A.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},A.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),A.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),MG=()=>{let[e,t]=A.useState(document.hidden);return A.useEffect(()=>{let n=()=>{t(document.hidden)};
415return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e},F1=1,$G=class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var t;let{message:n,...r}=e,i=typeof(e==null?void 0:e.id)=="number"||((t=e.id)==null?void 0:t.length)>0?e.id:F1++,s=this.toasts.find(o=>o.id===i),a=e.dismissible===void 0?!0:e.dismissible;return this.dismissedToasts.has(i)&&this.dismissedToasts.delete(i),s?this.toasts=this.toasts.map(o=>o.id===i?(this.publish({...o,...e,id:i,title:n}),{...o,...e,id:i,dismissible:a,title:n}):o):this.addToast({title:n,...r,dismissible:a,id:i}),i},this.dismiss=e=>(this.dismissedToasts.add(e),e||this.toasts.forEach(t=>{this.subscribers.forEach(n=>n({id:t.id,dismiss:!0}))}),this.subscribers.forEach(t=>t({id:e,dismiss:!0})),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:"error"}),this.success=(e,t)=>this.create({...t,type:"success",message:e}),this.info=(e,t)=>this.create({...t,type:"info",message:e}),this.warning=(e,t)=>this.create({...t,type:"warning",message:e}),this.loading=(e,t)=>
415this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{if(!t)return;let n;t.loading!==void 0&&(n=this.create({...t,promise:e,type:"loading",message:t.loading,description:typeof t.description!="function"?t.description:void 0}));let r=e instanceof Promise?e:e(),i=n!==void 0,s,a=r.then(async l=>{if(s=["resolve",l],A.isValidElement(l))i=!1,this.create({id:n,type:"default",message:l});else if(LG(l)&&!l.ok){i=!1;let u=typeof t.error=="function"?await t.error(`HTTP error! status: ${l.status}`):t.error,d=typeof t.description=="function"?await t.description(`HTTP error! status: ${l.status}`):t.description;this.create({id:n,type:"error",message:u,description:d})}else if(t.success!==void 0){i=!1;let u=typeof t.success=="function"?await t.success(l):t.success,d=typeof t.description=="function"?await t.description(l):t.description;this.create({id:n,type:"success",message:u,description:d})}}).catch(async l=>{if(s=["reject",l],t.error!==void 0){i=!1;let u=typeof t.error=="function"?await t.error(l):t.error,d=typeof t.description=="function"?await t.description(l):t.description;this.create({id:n,type:"error",message:u,description:d})}}).finally(()=>{var l;i&&(this.dismiss(n),n=void 0),(l=t.finally)==null||l.call(t)}),o=()=>new Promise((l,u)=>a.then(()=>s[0]==="reject"?u(s[1]):l(s[1])).catch(u));return typeof n!="string"&&typeof n!="number"?{unwrap:o}:Object.assign(n,{unwrap:o})},this.custom=(e,t)=>{let n=(t==null?void 0:t.id)||F1++;return this.create({jsx:e(n),id:n,...t}),n},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},er=new $G,DG=(e,t)=>{let n=(t==null?void 0:t.id)||F1++;return er.addToast({title:e,...t,id:n}),n},LG=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",FG=DG,BG=()=>er.toasts,VG=()=>er.getActiveToasts();Object.assign(FG,{success:er.success,info:er.info,warning:er.warning,error:er.error,custom:er.custom,message:er.message,promise:er.promise,dismiss:er.dismiss,loading:er.loading},{getHistory:BG,getToasts:VG});function qG(e,{insertAt:t}={}){if(typeof document>"u")return;let n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t==="top"&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}qG(`:where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999;transition:transform .4s ease}:where([data-sonner-toaster][data-lifted="true"]){transform:translateY(-10px)}@media (hover: none) and (pointer: coarse){:where([data-sonner-toaster][data-lifted="true"]){transform:none}}:where([data-sonner-toaster][data-x-position="right"]){right:var(--offset-right)}:where([data-sonner-toaster][data-x-position="left"]){left:var(--offset-left)}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:var(--offset-top)}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:var(--offset-bottom)}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;
415left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast] [data-close-button]{background:var(--gray1)}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:-50%;right:-50%;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}
415:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y, 0px)) translate(var(--swipe-amount-x, 0px));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-bg-hover: hsl(0, 0%, 12%);--normal-border: hsl(0, 0%, 20%);--normal-border-hover: hsl(0, 0%, 25%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);
415--error-text: hsl(358, 100%, 81%)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)} 416`);function wm(e){return e.label!==void 0}var UG=3,WG="32px",zG="16px",n2=4e3,HG=356,KG=14,GG=20,YG=200;function ci(...e){return e.filter(Boolean).join(" ")}function XG(e){let[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}var QG=e=>{var t,n,r,i,s,a,o,l,u,d,h;let{invert:f,toast:p,unstyled:g,interacting:m,setHeights:y,visibleToasts:v,heights:x,index:b,toasts:S,expanded:k,removeToast:j,defaultRichColors:_,closeButton:E,style:T,cancelButtonStyle:N,actionButtonStyle:P,className:C="",descriptionClassName:M="",duration:R,position:D,gap:L,loadingIcon:B,expandByDefault:I,classNames:O,icons:V,
416closeButtonAriaLabel:z="Close toast",pauseWhenPageIsHidden:q}=e,[X,J]=A.useState(null),[xe,ke]=A.useState(null),[Y,ce]=A.useState(!1),[K,Q]=A.useState(!1),[G,F]=A.useState(!1),[ue,ae]=A.useState(!1),[Ae,Ie]=A.useState(!1),[Ge,jt]=A.useState(0),[_t,vn]=A.useState(0),Vt=A.useRef(p.duration||R||n2),on=A.useRef(null),xn=A.useRef(null),ds=b===0,hs=b+1<=v,bn=p.type,W=p.dismissible!==!1,Se=p.className||"",Ze=p.descriptionClassName||"",Me=A.useMemo(()=>x.findIndex(Ne=>Ne.toastId===p.id)||0,[x,p.id]),Pe=A.useMemo(()=>{var Ne;return(Ne=p.closeButton)!=null?Ne:E},[p.closeButton,E]),qt=A.useMemo(()=>p.duration||R||n2,[p.duration,R]),Te=A.useRef(0),De=A.useRef(0),Qt=A.useRef(0),Nn=A.useRef(null),[Qn,Fn]=D.split("-"),ri=A.useMemo(()=>x.reduce((Ne,nt,ht)=>ht>=Me?Ne:Ne+nt.height,0),[x,Me]),na=MG(),Zp=p.invert||f,Fl=bn==="loading";De.current=A.useMemo(()=>Me*L+ri,[Me,ri]),A.useEffect(()=>{Vt.current=qt},[qt]),A.useEffect(()=>{ce(!0)},[]),A.useEffect(()=>{let Ne=xn.current;if(Ne){let nt=Ne.getBoundingClientRect().height;return vn(nt),y(ht=>[{toastId:p.id,height:nt,position:p.position},...ht]),()=>y(ht=>ht.filter(si=>si.toastId!==p.id))}},[y,p.id]),A.useLayoutEffect(()=>{if(!Y)return;let Ne=xn.current,nt=Ne.style.height;Ne.style.height="auto";let ht=Ne.getBoundingClientRect().height;Ne.style.height=nt,vn(ht),y(si=>si.find(ai=>ai.toastId===p.id)?si.map(ai=>ai.toastId===p.id?{...ai,height:ht}:ai):[{toastId:p.id,height:ht,position:p.position},...si])},[Y,p.title,p.description,y,p.id]);let ii=A.useCallback(()=>{Q(!0),jt(De.current),y(Ne=>Ne.filter(nt=>nt.toastId!==p.id)),setTimeout(()=>{j(p)},YG)},[p,j,y,De]);A.useEffect(()=>{if(p.promise&&bn==="loading"||p.duration===1/0||p.type==="loading")return;let Ne;return k||m||q&&na?(()=>{if(Qt.current<Te.current){let nt=new Date().getTime()-Te.current;Vt.current=Vt.current-nt}Qt.current=new Date().getTime()})():Vt.current!==1/0&&(Te.current=new Date().getTime(),Ne=setTimeout(()=>{var nt;(nt=p.onAutoClose)==null||nt.call(p,p),ii()},Vt.current)),()=>clearTimeout(Ne)},[k,m,p,bn,q,na,ii]),A.useEffect(()=>{p.delete&&ii()},[ii,p.delete]);function Rb(){var Ne,nt,ht;return V!=null&&V.loading?A.createElement("div",{className:ci(O==null?void 0:O.loader,(Ne=p==null?void 0:p.classNames)==null?void 0:Ne.loader,"sonner-loader"),"data-visible":bn==="loading"},V.loading):B?A.createElement("div",{className:ci(O==null?void 0:O.loader,(nt=p==null?void 0:p.classNames)==null?void 0:nt.loader,"sonner-loader"),"data-visible":bn==="loading"},B):A.createElement(CG,{className:ci(O==null?void 0:O.loader,(ht=p==null?void 0:p.classNames)==null?void 0:ht.loader),visible:bn==="loading"})}return A.createElement("li",{tabIndex:0,ref:xn,className:ci(C,Se,O==null?void 0:O.toast,(t=p==null?void 0:p.classNames)==null?void 0:t.toast,O==null?void 0:O.default,O==null?void 0:O[bn],(n=p==null?void 0:p.classNames)==null?void 0:n[bn]),"data-sonner-toast":"","data-rich-colors":(r=p.richColors)!=null?r:_,"data-styled":!(p.jsx||p.unstyled||g),"data-mounted":Y,"data-promise":!!p.promise,"data-swiped":Ae,"data-removed":K,"data-visible":hs,"data-y-position":Qn,"data-x-position":Fn,"data-index":b,"data-front":ds,"data-swiping":G,"data-dismissible":W,"data-type":bn,"data-invert":Zp,"data-swipe-out":ue,"data-swipe-direction":xe,"data-expanded":!!(k||I&&Y),style:{"--index":b,"--toasts-before":b,"--z-index":S.length-b,"--offset":`${K?Ge:De.current}px`,"--initial-height":I?"auto":`${_t}px`,...T,...p.style},onDragEnd:()=>{F(!1),J(null),Nn.current=null},onPointerDown:Ne=>{Fl||!W||(on.current=new Date,jt(De.current),Ne.target.setPointerCapture(Ne.pointerId),Ne.target.tagName!=="BUTTON"&&(F(!0),Nn.current={x:Ne.clientX,y:Ne.clientY}))},onPointerUp:()=>{var Ne,nt,ht,si;if(ue||!W)return;Nn.current=null;let ai=Number(((Ne=xn.current)==null?void 0:Ne.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),ra=Number(((nt=xn.current)==null?void 0:nt.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),wo=new Date().getTime()-((ht=on.current)==null?void 0:ht.getTime()),oi=X==="x"?ai:ra,ia=Math.abs(oi)/wo;if(Math.abs(oi)>=GG||ia>.11){jt(De.current),(si=p.onDismiss)==null||si.call(p,p),ke(X==="x"?ai>0?"right":"left":ra>0?"down":"up"),ii(),ae(!0),Ie(!1);return}F(!1),J(null)},onPointerMove:Ne=>{var nt,ht,si,ai;if(!Nn.current||!W||((nt=window.getSelection())==null?void 0:nt.toString().length)>0)return;let ra=Ne.clientY-Nn.current.y,wo=Ne.clientX-Nn.current.x,oi=(ht=e.swipeDirections)!=null?ht:XG(D);!X&&(Math.abs(wo)>1||Math.abs(ra)>1)&&J(Math.abs(wo)>Math.abs(ra)?"x":"y");let ia={x:0,y:0};X==="y"?(oi.includes("top")||oi.includes("bottom"))&&(oi.includes("top")&&ra<0||oi.includes("bottom")&&ra>0)&&(ia.y=ra):X==="x"&&(oi.includes("left")||oi.includes("right"))&&(oi.includes("left")&&wo<0||oi.includes("right")&&wo>0)&&(ia.x=wo),(Math.abs(ia.x)>0||Math.abs(ia.y)>0)&&Ie(!0),(si=xn.current)==null||si.style.setProperty("--swipe-amount-x",`${ia.x}px`),(ai=xn.current)==null||ai.style.setProperty("--swipe-amount-y",`${ia.y}px`)}},Pe&&!p.jsx?A.createElement("button",{"aria-label":z,"data-disabled":Fl,"data-close-button":!0,onClick:Fl||!W?()=>{}:()=>{var Ne;ii(),(Ne=p.onDismiss)==null||Ne.call(p,p)},className:ci(O==null?void 0:O.closeButton,(i=p==null?void 0:p.classNames)==null?void 0:i.closeButton)},(s=V==null?void 0:V.close)!=null?s:IG):null,p.jsx||w.isValidElement(p.title)?p.jsx?p.jsx:typeof p.title=="function"?p.title():p.title:A.createElement(A.Fragment,null,bn||p.icon||p.promise?A.createElement("div",{"data-icon":"",className:ci(O==null?void 0:O.icon,(a=p==null?void 0:p.classNames)==null?void 0:a.icon)}
416,p.promise||p.type==="loading"&&!p.icon?p.icon||Rb():null,p.type!=="loading"?p.icon||(V==null?void 0:V[bn])||TG(bn):null):null,A.createElement("div",{"data-content":"",className:ci(O==null?void 0:O.content,(o=p==null?void 0:p.classNames)==null?void 0:o.content)},A.createElement("div",{"data-title":"",className:ci(O==null?void 0:O.title,(l=p==null?void 0:p.classNames)==null?void 0:l.title)},typeof p.title=="function"?p.title():p.title),p.description?A.createElement("div",{"data-description":"",className:ci(M,Ze,O==null?void 0:O.description,(u=p==null?void 0:p.classNames)==null?void 0:u.description)},typeof p.description=="function"?p.description():p.description):null),w.isValidElement(p.cancel)?p.cancel:p.cancel&&wm(p.cancel)?A.createElement("button",{"data-button":!0,"data-cancel":!0,style:p.cancelButtonStyle||N,onClick:Ne=>{var nt,ht;wm(p.cancel)&&W&&((ht=(nt=p.cancel).onClick)==null||ht.call(nt,Ne),ii())},className:ci(O==null?void 0:O.cancelButton,(d=p==null?void 0:p.classNames)==null?void 0:d.cancelButton)},p.cancel.label):null,w.isValidElement(p.action)?p.action:p.action&&wm(p.action)?A.createElement("button",{"data-button":!0,"data-action":!0,style:p.actionButtonStyle||P,onClick:Ne=>{var nt,ht;wm(p.action)&&((ht=(nt=p.action).onClick)==null||ht.call(nt,Ne),!Ne.defaultPrevented&&ii())},className:ci(O==null?void 0:O.actionButton,(h=p==null?void 0:p.classNames)==null?void 0:h.actionButton)},p.action.label):null))};function r2(){if(typeof window>"u"||typeof document>"u")return"ltr";let e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function ZG(e,t){let n={};return[e,t].forEach((r,i)=>{let s=i===1,a=s?"--mobile-offset":"--offset",o=s?zG:WG;function l(u){["top","right","bottom","left"].forEach(d=>{n[`${a}-${d}`]=typeof u=="number"?`${u}px`:u})}typeof r=="number"||typeof r=="string"?l(r):typeof r=="object"?["top","right","bottom","left"].forEach(u=>{r[u]===void 0?n[`${a}-${u}`]=o:n[`${a}-${u}`]=typeof r[u]=="number"?`${r[u]}px`:r[u]}):l(o)}),n}var JG=w.forwardRef(function(e,t){let{invert:n,position:r="bottom-right",hotkey:i=["altKey","KeyT"],expand:s,closeButton:a,className:o,offset:l,mobileOffset:u,theme:d="light",richColors:h,duration:f,style:p,visibleToasts:g=UG,toastOptions:m,dir:y=r2(),gap:v=KG,loadingIcon:x,icons:b,containerAriaLabel:S="Notifications",pauseWhenPageIsHidden:k}=e,[j,_]=A.useState([]),E=A.useMemo(()=>Array.from(new Set([r].concat(j.filter(q=>q.position).map(q=>q.position)))),[j,r]),[T,N]=A.useState([]),[P,C]=A.useState(!1),[M,R]=A.useState(!1),[D,L]=A.useState(d!=="system"?d:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),B=A.useRef(null),I=i.join("+").replace(/Key/g,"").replace(/Digit/g,""),O=A.useRef(null),V=A.useRef(!1),z=A.useCallback(q=>{_(X=>{var J;return(J=X.find(xe=>xe.id===q.id))!=null&&J.delete||er.dismiss(q.id),X.filter(({id:xe})=>xe!==q.id)})},[]);return A.useEffect(()=>er.subscribe(q=>{if(q.dismiss){_(X=>X.map(J=>J.id===q.id?{...J,delete:!0}:J));return}setTimeout(()=>{GL.flushSync(()=>{_(X=>{let J=X.findIndex(xe=>xe.id===q.id);return J!==-1?[...X.slice(0,J),{...X[J],...q},...X.slice(J+1)]:[q,...X]})})})}),[]),A.useEffect(()=>{if(d!=="system"){L(d);return}if(d==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?L("dark"):L("light")),typeof window>"u")return;let q=window.matchMedia("(prefers-color-scheme: dark)");try{q.addEventListener("change",({matches:X})=>{L(X?"dark":"light")})}catch{q.addListener(({matches:J})=>{try{L(J?"dark":"light")}catch(xe){console.error(xe)}})}},[d]),A.useEffect(()=>{j.length<=1&&C(!1)},[j]),A.useEffect(()=>{let q=X=>{var J,xe;i.every(ke=>X[ke]||X.code===ke)&&(C(!0),(J=B.current)==null||J.focus()),X.code==="Escape"&&(document.activeElement===B.current||(xe=B.current)!=null&&xe.contains(document.activeElement))&&C(!1)};return document.addEventListener("keydown",q),()=>document.removeEventListener("keydown",q)},[i]),A.useEffect(()=>{if(B.current)return()=>{O.current&&(O.current.focus({preventScroll:!0}),O.current=null,V.current=!1)}},[B.current]),A.createElement("section",{ref:t,"aria-label":`${S} ${I}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},E.map((q,X)=>{var J;let[xe,ke]=q.split("-");return j.length?A.createElement("ol",{key:q,dir:y==="auto"?r2():y,tabIndex:-1,ref:B,className:o,"data-sonner-toaster":!0,"data-theme":D,"data-y-position":xe,"data-lifted":P&&j.length>1&&!s,"data-x-position":ke,style:{"--front-toast-height":`${((J=T[0])==null?void 0:J.height)||0}px`,"--width":`${HG}px`,"--gap":`${v}px`,...p,...ZG(l,u)},onBlur:Y=>{V.current&&!Y.currentTarget.contains(Y.relatedTarget)&&(V.current=!1,O.current&&(O.current.focus({preventScroll:!0}),O.current=null))},onFocus:Y=>{Y.target instanceof HTMLElement&&Y.target.dataset.dismissible==="false"||V.current||(V.current=!0,O.current=Y.relatedTarget)},onMouseEnter:()=>C(!0),onMouseMove:()=>C(!0),onMouseLeave:()=>{M||C(!1)},onDragEnd:()=>C(!1),onPointerDown:Y=>{Y.target instanceof HTMLElement&&Y.target.dataset.dismissible==="false"||R(!0)},onPointerUp:()=>R(!1)},j.filter(Y=>!Y.position&&X===0||Y.position===q).map((Y,ce)=>{var K,Q;return A.createElement(QG,{key:Y.id,icons:b,index:ce,toast:Y,defaultRichColors:h,duration:(K=m==null?void 0:m.duration)!=null?K:f,className:m==null?void 0:m.className,descriptionClassName:m==null?void 0:m.descriptionClassName,invert:n,visibleToasts:g,closeButton:(Q=m==null?void 0:m.closeButton)!=null?Q:a,interacting:M,position:q,style:m==null?void 0:m.style,unstyled:m==null?void 0:m.unstyled,classNames:m==null?void 0:m.classNames,cancelButtonStyle:m==null?void 0:m.cancelButtonStyle,actionButtonStyle:m==null?void 0:m.actionButtonStyle,removeToast:z,toasts:j.filter(G=>G.position==Y.position),heights:T.filter(G=>G.position==Y.position),setHeights:N,expandByDefault:s,gap:v,loadingIcon:x,expanded:P,pauseWhenPageIsHidden:k,swipeDirections:e.swipeDirections})})):null}))});const eY=({...e})=>{const{theme:t="system"}=EG();return c.jsx(JG,{theme:t,className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...e})};var tY=Rj[" useId ".trim().toString()]||(()=>{}),nY=0;function jr(e){const[t,n]=w.useState(tY());return mn(()=>{e||n(r=>r??String(nY++))},[e]),e||(t?`radix-${t}`:"")}const rY=["top","right","bottom","left"],Ja=Math.min,yr=Math.max,sy=Math.round,km=Math.floor,Zi=e=>({x:e,y:e}
vendor: 10,344 bytes, line 416
416),iY={left:"right",right:"left",bottom:"top",top:"bottom"},sY={start:"end",end:"start"};function B1(e,t,n){return yr(e,Ja(t,n))}function Bs(e,t){return typeof e=="function"?e(t):e}function Vs(e){return e.split("-")[0]}function ed(e){return e.split("-")[1]}function D_(e){return e==="x"?"y":"x"}function L_(e){return e==="y"?"height":"width"}const aY=new Set(["top","bottom"]);function Ki(e){return aY.has(Vs(e))?"y":"x"}function F_(e){return D_(Ki(e))}function oY(e,t,n){n===void 0&&(n=!1);const r=ed(e),i=F_(e),s=L_(i);let a=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(a=ay(a)),[a,ay(a)]}function lY(e){const t=ay(e);return[V1(e),t,V1(t)]}function V1(e){return e.replace(/start|end/g,t=>sY[t])}const i2=["left","right"],s2=["right","left"],cY=["top","bottom"],uY=["bottom","top"];function dY(e,t,n){switch(e){case"top":case"bottom":return n?t?s2:i2:t?i2:s2;case"left":case"right":return t?cY:uY;default:return[]}}function hY(e,t,n,r){const i=ed(e);let s=dY(Vs(e),n==="start",r);return i&&(s=s.map(a=>a+"-"+i),t&&(s=s.concat(s.map(V1)))),s}function ay(e){return e.replace(/left|right|bottom|top/g,t=>iY[t])}function fY(e){return{top:0,right:0,bottom:0,left:0,...e}}function Y4(e){return typeof e!="number"?fY(e):{top:e,right:e,bottom:e,left:e}}function oy(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function a2(e,t,n){let{reference:r,floating:i}=e;const s=Ki(t),a=F_(t),o=L_(a),l=Vs(t),u=s==="y",d=r.x+r.width/2-i.width/2,h=r.y+r.height/2-i.height/2,f=r[o]/2-i[o]/2;let p;switch(l){case"top":p={x:d,y:r.y-i.height};break;case"bottom":p={x:d,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:h};break;case"left":p={x:r.x-i.width,y:h};break;default:p={x:r.x,y:r.y}}switch(ed(t)){case"start":p[a]-=f*(n&&u?-1:1);break;case"end":p[a]+=f*(n&&u?-1:1);break}return p}const pY=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:s=[],platform:a}=n,o=s.filter(Boolean),l=await(a.isRTL==null?void 0:a.isRTL(t));let u=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:d,y:h}=a2(u,r,l),f=r,p={},g=0;for(let m=0;m<o.length;m++){const{name:y,fn:v}=o[m],{x,y:b,data:S,reset:k}=await v({x:d,y:h,initialPlacement:r,placement:f,strategy:i,middlewareData:p,rects:u,platform:a,elements:{reference:e,floating:t}});d=x??d,h=b??h,p={...p,[y]:{...p[y],...S}},k&&g<=50&&(g++,typeof k=="object"&&(k.placement&&(f=k.placement),k.rects&&(u=k.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:i}):k.rects),{x:d,y:h}=a2(u,f,l)),m=-1)}return{x:d,y:h,placement:f,strategy:i,middlewareData:p}};async function of(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:s,rects:a,elements:o,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:h="floating",altBoundary:f=!1,padding:p=0}=Bs(t,e),g=Y4(p),y=o[f?h==="floating"?"reference":"floating":h],v=oy(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(y)))==null||n?y:y.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(o.floating)),boundary:u,rootBoundary:d,strategy:l})),x=h==="floating"?{x:r,y:i,width:a.floating.width,height:a.floating.height}:a.reference,b=await(s.getOffsetParent==null?void 0:s.getOffsetParent(o.floating)),S=await(s.isElement==null?void 0:s.isElement(b))?await(s.getScale==null?void 0:s.getScale(b))||{x:1,y:1}:{x:1,y:1},k=oy(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:x,offsetParent:b,strategy:l}):x);return{top:(v.top-k.top+g.top)/S.y,bottom:(k.bottom-v.bottom+g.bottom)/S.y,left:(v.left-k.left+g.left)/S.x,right:(k.right-v.right+g.right)/S.x}}const mY=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:s,platform:a,elements:o,middlewareData:l}=t,{element:u,padding:d=0}=Bs(e,t)||{};if(u==null)return{};const h=Y4(d),f={x:n,y:r},p=F_(i),g=L_(p),m=await a.getDimensions(u),y=p==="y",v=y?"top":"left",x=y?"bottom":"right",b=y?"clientHeight":"clientWidth",S=s.reference[g]+s.reference[p]-f[p]-s.floating[g],k=f[p]-s.reference[p],j=await(a.getOffsetParent==null?void 0:a.getOffsetParent(u));let _=j?j[b]:0;(!_||!await(a.isElement==null?void 0:a.isElement(j)))&&(_=o.floating[b]||s.floating[g]);const E=S/2-k/2,T=_/2-m[g]/2-1,N=Ja(h[v],T),P=Ja(h[x],T),C=N,M=_-m[g]-P,R=_/2-m[g]/2+E,D=B1(C,R,M),L=!l.arrow&&ed(i)!=null&&R!==D&&s.reference[g]/2-(R<C?N:P)-m[g]/2<0,B=L?R<C?R-C:R-M:0;return{[p]:f[p]+B,data:{[p]:D,centerOffset:R-D-B,...L&&{alignmentOffset:B}},reset:L}}}),gY=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:s,rects:a,initialPlacement:o,platform:l,elements:u}=t,{mainAxis:d=!0,crossAxis:h=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:m=!0,...y}=Bs(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const v=Vs(i),x=Ki(o),b=Vs(o)===o,S=await(l.isRTL==null?void 0:l.isRTL(u.floating)),k=f||(b||!m?[ay(o)]:lY(o)),j=g!=="none";!f&&j&&k.push(...hY(o,m,g,S));const _=[o,...k],E=await of(t,y),T=[];let N=((r=s.flip)==null?void 0:r.overflows)||[];if(d&&T.push(E[v]),h){const R=oY(i,a,S);T.push(E[R[0]],E[R[1]])}if(N=[...N,{placement:i,overflows:T}],!T.every(R=>R<=0)){var P,C;const R=(((P=s.flip)==null?void 0:P.index)||0)+1,D=_[R];if(D&&(!(h==="alignment"?x!==Ki(D):!1)||N.every(I=>I.overflows[0]>0&&Ki(I.placement)===x)))return{data:{index:R,overflows:N},reset:{placement:D}};let L=(C=N.filter(B=>B.overflows[0]<=0).sort((B,I)=>B.overflows[1]-I.overflows[1])[0])==null?void 0:C.placement;if(!L)switch(p){case"bestFit":{var M;const B=(M=N.filter(I=>{if(j){const O=Ki(I.placement);return O===x||O==="y"}return!0}).map(I=>[I.placement,I.overflows.filter(O=>O>0).reduce((O,V)=>O+V,0)]).sort((I,O)=>I[1]-O[1])[0])==null?void 0:M[0];B&&(L=B);break}case"initialPlacement":L=o;break}if(i!==L)return{reset:{placement:L}}}return{}}}};function o2(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function l2(e){return rY.some(t=>e[t]>=0)}const yY=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...i}=Bs(e,t);switch(r){case"referenceHidden":{const s=await of(t,{...i,elementContext:"reference"}),a=o2(s,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:l2(a)}}}case"escaped":{const s=await of(t,{...i,altBoundary:!0}),a=o2(s,n.floating);return{data:{escapedOffsets:a,escaped:l2(a)}}}default:return{}}}}},X4=new Set(["left","top"]);async function vY(e,t){const{placement:n,platform:r,elements:i}=e,s=await(r.isRTL==null?void 0:r.isRTL(i.floating)),a=Vs(n),o=ed(n),l=Ki(n)==="y",u=X4.has(a)?-1:1,d=s&&l?-1:1,h=Bs(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:g}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return o&&typeof g=="number"&&(p=o==="end"?g*-1:g),l?{x:p*d,y:f*u}:{x:f*u,y:p*d}}const xY=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:s,placement:a,middlewareData:o}=t,l=await vY(t,e);return a===((n=o.offset)==null?void 0:n.placement)&&(r=o.arrow)!=null&&r.alignmentOffset?{}:{x:i+l.x,y:s+l.y,data:{...l,placement:a}}}}},bY=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:s=!0,crossAxis:a=!1,limiter:o={fn:y=>{let{x:v,y:x}=y;return{x:v,y:x}}},...l}=Bs(e,t),u={x:n,y:r},d=await of(t,l),h=Ki(Vs(i)),f=D_(h);let p=u[f],g=u[h];if(s){const y=f==="y"?"top":"left",v=f==="y"?"bottom":"right",x=p+d[y],b=p-d[v];p=B1(x,p,b)}if(a){const y=h==="y"?"top":"left",v=h==="y"?"bottom":"right",x=g+d[y],b=g-d[v];g=B1(x,g,b)}const m=o.fn({...t,[f]:p,[h]:g});return{...m,data:{x:m.x-n,y:m.y-r,enabled:{[f]:s,[h]:a}}}}}},wY=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:i,rects:s,middlewareData:a}=t,{offset:o=0,mainAxis:l=!0,crossAxis:u=!0}=Bs(e,t),d={x:n,y:r},h=Ki(i),f=D_(h);let p=d[f],g=d[h];const m=Bs(o,t),y=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){const b=f==="y"?"height":"width",S=s.reference[f]-s.floating[b]+y.mainAxis,k=s.reference[f]+s.reference[b]-y.mainAxis;p<S?p=S:p>k&&(p=k)}if(u){var v,x;const b=f==="y"?"width":"height",S=X4.has(Vs(i)),k=s.reference[h]-s.floating[b]+(S&&((v=a.offset)==null?void 0:v[h])||0)+(S?0:y.crossAxis),j=s.reference[h]+s.reference[b]+(S?0:((x=a.offset)==null?void 0:x[h])||0)-(S?y.crossAxis:0);g<k?g=k:g>j&&(g=j)}return{[f]:p,[h]:g}}}},kY=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:i,rects:s,platform:a,elements:o}=t,{apply:l=()=>{},...u}=Bs(e,t),d=await of(t,u),h=Vs(i),f=ed(i),p=Ki(i)==="y",{width:g,height:m}=s.floating;let y,v;h==="top"||h==="bottom"?(y=h,v=f===(await(a.isRTL==null?void 0:a.isRTL(o.floating))?"start":"end")?"left":"right"):(v=h,y=f==="end"?"top":"bottom");const x=m-d.top-d.bottom,b=g-d.left-d.right,S=Ja(m-d[y],x),k=Ja(g-d[v],b),j=!t.middlewareData.shift;let _=S,E=k;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(E=b),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(_=x),j&&!f){const N=yr(d.left,0),P=yr(d.right,0),C=yr(d.top,0),M=yr(d.bottom,0);p?E=g-2*(N!==0||P!==0?N+P:yr(d.left,d.right)):_=m-2*(C!==0||M!==0?C+M:yr(d.top,d.bottom))}await l({...t,availableWidth:E,availableHeight:_});const T=await a.getDimensions(o.floating);return g!==T.width||m!==T.height?{reset:{rects:!0}}:{}}}};function ix(){return typeof window<"u"}function td(e){return Q4(e)?(e.nodeName||"").toLowerCase():"#document"}function _r(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function cs(e){var t;return(t=(Q4(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Q4(e){return ix()?e instanceof Node||e instanceof _r(e).Node:!1}function Pi(e){return ix()?e instanceof Element||e instanceof _r(e).Element:!1}function as(e){return ix()?e instanceof HTMLElement||e instanceof _r(e).HTMLElement:!1}function c2(e){return!ix()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof _r(e).ShadowRoot}const SY=new Set(["inline","contents"]);function Pp(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=Oi(e);
vendor: 4,121 bytes, line 416
416return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!SY.has(i)}const jY=new Set(["table","td","th"]);function _Y(e){return jY.has(td(e))}const EY=[":popover-open",":modal"];function sx(e){return EY.some(t=>{try{return e.matches(t)}catch{return!1}})}const TY=["transform","translate","scale","rotate","perspective"],NY=["transform","translate","scale","rotate","perspective","filter"],CY=["paint","layout","strict","content"];function B_(e){const t=V_(),n=Pi(e)?Oi(e):e;return TY.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||NY.some(r=>(n.willChange||"").includes(r))||CY.some(r=>(n.contain||"").includes(r))}function AY(e){let t=eo(e);for(;as(t)&&!gu(t);){if(B_(t))return t;if(sx(t))return null;t=eo(t)}return null}function V_(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const PY=new Set(["html","body","#document"]);function gu(e){return PY.has(td(e))}function Oi(e){return _r(e).getComputedStyle(e)}function ax(e){return Pi(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function eo(e){if(td(e)==="html")return e;const t=e.assignedSlot||e.parentNode||c2(e)&&e.host||cs(e);return c2(t)?t.host:t}function Z4(e){const t=eo(e);return gu(t)?e.ownerDocument?e.ownerDocument.body:e.body:as(t)&&Pp(t)?t:Z4(t)}function lf(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=Z4(e),s=i===((r=e.ownerDocument)==null?void 0:r.body),a=_r(i);if(s){const o=q1(a);return t.concat(a,a.visualViewport||[],Pp(i)?i:[],o&&n?lf(o):[])}return t.concat(i,lf(i,[],n))}function q1(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function J4(e){const t=Oi(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=as(e),s=i?e.offsetWidth:n,a=i?e.offsetHeight:r,o=sy(n)!==s||sy(r)!==a;return o&&(n=s,r=a),{width:n,height:r,$:o}}function q_(e){return Pi(e)?e:e.contextElement}function Bc(e){const t=q_(e);if(!as(t))return Zi(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:s}=J4(t);let a=(s?sy(n.width):n.width)/r,o=(s?sy(n.height):n.height)/i;return(!a||!Number.isFinite(a))&&(a=1),(!o||!Number.isFinite(o))&&(o=1),{x:a,y:o}}const OY=Zi(0);function e3(e){const t=_r(e);return!V_()||!t.visualViewport?OY:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function RY(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==_r(e)?!1:t}function vl(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),s=q_(e);let a=Zi(1);t&&(r?Pi(r)&&(a=Bc(r)):a=Bc(e));const o=RY(s,n,r)?e3(s):Zi(0);let l=(i.left+o.x)/a.x,u=(i.top+o.y)/a.y,d=i.width/a.x,h=i.height/a.y;if(s){const f=_r(s),p=r&&Pi(r)?_r(r):r;let g=f,m=q1(g);for(;m&&r&&p!==g;){const y=Bc(m),v=m.getBoundingClientRect(),x=Oi(m),b=v.left+(m.clientLeft+parseFloat(x.paddingLeft))*y.x,S=v.top+(m.clientTop+parseFloat(x.paddingTop))*y.y;l*=y.x,u*=y.y,d*=y.x,h*=y.y,l+=b,u+=S,g=_r(m),m=q1(g)}}return oy({width:d,height:h,x:l,y:u})}function U_(e,t){const n=ax(e).scrollLeft;return t?t.left+n:vl(cs(e)).left+n}function t3(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=r.left+t.scrollLeft-(n?0:U_(e,r)),s=r.top+t.scrollTop;return{x:i,y:s}}function IY(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const s=i==="fixed",a=cs(r),o=t?sx(t.floating):!1;if(r===a||o&&s)return n;let l={scrollLeft:0,scrollTop:0},u=Zi(1);const d=Zi(0),h=as(r);if((h||!h&&!s)&&((td(r)!=="body"||Pp(a))&&(l=ax(r)),as(r))){const p=vl(r);u=Bc(r),d.x=p.x+r.clientLeft,d.y=p.y+r.clientTop}const f=a&&!h&&!s?t3(a,l,!0):Zi(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+d.x+f.x,y:n.y*u.y-l.scrollTop*u.y+d.y+f.y}}function MY(e){return Array.from(e.getClientRects())}function $Y(e){const t=cs(e),n=ax(e),r=e.ownerDocument.body,i=yr(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=yr(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+U_(e);const o=-n.scrollTop;return Oi(r).direction==="rtl"&&(a+=yr(t.clientWidth,r.clientWidth)-i),{width:i,height:s,x:a,y:o}}
vendor: 4,850 bytes, line 416
416function DY(e,t){const n=_r(e),r=cs(e),i=n.visualViewport;let s=r.clientWidth,a=r.clientHeight,o=0,l=0;if(i){s=i.width,a=i.height;const u=V_();(!u||u&&t==="fixed")&&(o=i.offsetLeft,l=i.offsetTop)}return{width:s,height:a,x:o,y:l}}const LY=new Set(["absolute","fixed"]);function FY(e,t){const n=vl(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,s=as(e)?Bc(e):Zi(1),a=e.clientWidth*s.x,o=e.clientHeight*s.y,l=i*s.x,u=r*s.y;return{width:a,height:o,x:l,y:u}}function u2(e,t,n){let r;if(t==="viewport")r=DY(e,n);else if(t==="document")r=$Y(cs(e));else if(Pi(t))r=FY(t,n);else{const i=e3(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return oy(r)}function n3(e,t){const n=eo(e);return n===t||!Pi(n)||gu(n)?!1:Oi(n).position==="fixed"||n3(n,t)}function BY(e,t){const n=t.get(e);if(n)return n;let r=lf(e,[],!1).filter(o=>Pi(o)&&td(o)!=="body"),i=null;const s=Oi(e).position==="fixed";let a=s?eo(e):e;for(;Pi(a)&&!gu(a);){const o=Oi(a),l=B_(a);!l&&o.position==="fixed"&&(i=null),(s?!l&&!i:!l&&o.position==="static"&&!!i&&LY.has(i.position)||Pp(a)&&!l&&n3(e,a))?r=r.filter(d=>d!==a):i=o,a=eo(a)}return t.set(e,r),r}function VY(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const a=[...n==="clippingAncestors"?sx(t)?[]:BY(t,this._c):[].concat(n),r],o=a[0],l=a.reduce((u,d)=>{const h=u2(t,d,i);return u.top=yr(h.top,u.top),u.right=Ja(h.right,u.right),u.bottom=Ja(h.bottom,u.bottom),u.left=yr(h.left,u.left),u},u2(t,o,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function qY(e){const{width:t,height:n}=J4(e);return{width:t,height:n}}function UY(e,t,n){const r=as(t),i=cs(t),s=n==="fixed",a=vl(e,!0,s,t);let o={scrollLeft:0,scrollTop:0};const l=Zi(0);function u(){l.x=U_(i)}if(r||!r&&!s)if((td(t)!=="body"||Pp(i))&&(o=ax(t)),r){const p=vl(t,!0,s,t);l.x=p.x+t.clientLeft,l.y=p.y+t.clientTop}else i&&u();s&&!r&&i&&u();const d=i&&!r&&!s?t3(i,o):Zi(0),h=a.left+o.scrollLeft-l.x-d.x,f=a.top+o.scrollTop-l.y-d.y;return{x:h,y:f,width:a.width,height:a.height}}function m0(e){return Oi(e).position==="static"}function d2(e,t){if(!as(e)||Oi(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return cs(e)===n&&(n=n.ownerDocument.body),n}function r3(e,t){const n=_r(e);if(sx(e))return n;if(!as(e)){let i=eo(e);for(;i&&!gu(i);){if(Pi(i)&&!m0(i))return i;i=eo(i)}return n}let r=d2(e,t);for(;r&&_Y(r)&&m0(r);)r=d2(r,t);return r&&gu(r)&&m0(r)&&!B_(r)?n:r||AY(e)||n}const WY=async function(e){const t=this.getOffsetParent||r3,n=this.getDimensions,r=await n(e.floating);return{reference:UY(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function zY(e){return Oi(e).direction==="rtl"}const HY={convertOffsetParentRelativeRectToViewportRelativeRect:IY,getDocumentElement:cs,getClippingRect:VY,getOffsetParent:r3,getElementRects:WY,getClientRects:MY,getDimensions:qY,getScale:Bc,isElement:Pi,isRTL:zY};function i3(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function KY(e,t){let n=null,r;const i=cs(e);function s(){var o;clearTimeout(r),(o=n)==null||o.disconnect(),n=null}function a(o,l){o===void 0&&(o=!1),l===void 0&&(l=1),s();const u=e.getBoundingClientRect(),{left:d,top:h,width:f,height:p}=u;if(o||t(),!f||!p)return;const g=km(h),m=km(i.clientWidth-(d+f)),y=km(i.clientHeight-(h+p)),v=km(d),b={rootMargin:-g+"px "+-m+"px "+-y+"px "+-v+"px",threshold:yr(0,Ja(1,l))||1};let S=!0;function k(j){const _=j[0].intersectionRatio;if(_!==l){if(!S)return a();_?a(!1,_):r=setTimeout(()=>{a(!1,1e-7)},1e3)}_===1&&!i3(u,e.getBoundingClientRect())&&a(),S=!1}try{n=new IntersectionObserver(k,{...b,root:i.ownerDocument})}catch{n=new IntersectionObserver(k,b)}n.observe(e)}return a(!0),s}function GY(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:s=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:o=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,u=q_(e),d=i||s?[...u?lf(u):[],...lf(t)]:[];d.forEach(v=>{i&&v.addEventListener("scroll",n,{passive:!0}),s&&v.addEventListener("resize",n)});const h=u&&o?KY(u,n):null;let f=-1,p=null;a&&(p=new ResizeObserver(v=>{let[x]=v;x&&x.target===u&&p&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var b;(b=p)==null||b.observe(t)})),n()}),u&&!l&&p.observe(u),p.observe(t));let g,m=l?vl(e):null;l&&y();function y(){const v=vl(e);m&&!i3(m,v)&&n(),m=v,g=requestAnimationFrame(y)}return n(),()=>{var v;d.forEach(x=>{i&&x.removeEventListener("scroll",n),s&&x.removeEventListener("resize",n)}),h==null||h(),(v=p)==null||v.disconnect(),p=null,l&&cancelAnimationFrame(g)}}const YY=xY,XY=bY,QY=gY,ZY=kY,JY=yY,h2=mY,eX=wY,tX=(e,t,n)=>{const r=new Map,i={platform:HY,...n},s={...i.platform,_c:r};return pY(e,t,{...i,platform:s})};var nX=typeof document<"u",rX=function(){},wg=nX?w.useLayoutEffect:rX;function ly(e,t){if(e===t)return!0;
vendor: 4,143 bytes, line 416
416if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!ly(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){const s=i[r];if(!(s==="_owner"&&e.$$typeof)&&!ly(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function s3(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function f2(e,t){const n=s3(e);return Math.round(t*n)/n}function g0(e){const t=w.useRef(e);return wg(()=>{t.current=e}),t}function iX(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:s,floating:a}={},transform:o=!0,whileElementsMounted:l,open:u}=e,[d,h]=w.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=w.useState(r);ly(f,r)||p(r);const[g,m]=w.useState(null),[y,v]=w.useState(null),x=w.useCallback(I=>{I!==j.current&&(j.current=I,m(I))},[]),b=w.useCallback(I=>{I!==_.current&&(_.current=I,v(I))},[]),S=s||g,k=a||y,j=w.useRef(null),_=w.useRef(null),E=w.useRef(d),T=l!=null,N=g0(l),P=g0(i),C=g0(u),M=w.useCallback(()=>{if(!j.current||!_.current)return;const I={placement:t,strategy:n,middleware:f};P.current&&(I.platform=P.current),tX(j.current,_.current,I).then(O=>{const V={...O,isPositioned:C.current!==!1};R.current&&!ly(E.current,V)&&(E.current=V,Pl.flushSync(()=>{h(V)}))})},[f,t,n,P,C]);wg(()=>{u===!1&&E.current.isPositioned&&(E.current.isPositioned=!1,h(I=>({...I,isPositioned:!1})))},[u]);const R=w.useRef(!1);wg(()=>(R.current=!0,()=>{R.current=!1}),[]),wg(()=>{if(S&&(j.current=S),k&&(_.current=k),S&&k){if(N.current)return N.current(S,k,M);M()}},[S,k,M,N,T]);const D=w.useMemo(()=>({reference:j,floating:_,setReference:x,setFloating:b}),[x,b]),L=w.useMemo(()=>({reference:S,floating:k}),[S,k]),B=w.useMemo(()=>{const I={position:n,left:0,top:0};if(!L.floating)return I;const O=f2(L.floating,d.x),V=f2(L.floating,d.y);return o?{...I,transform:"translate("+O+"px, "+V+"px)",...s3(L.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:O,top:V}},[n,o,L.floating,d.x,d.y]);return w.useMemo(()=>({...d,update:M,refs:D,elements:L,floatingStyles:B}),[d,M,D,L,B])}const sX=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:i}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?h2({element:r.current,padding:i}).fn(n):{}:r?h2({element:r,padding:i}).fn(n):{}}}},aX=(e,t)=>({...YY(e),options:[e,t]}),oX=(e,t)=>({...XY(e),options:[e,t]}),lX=(e,t)=>({...eX(e),options:[e,t]}),cX=(e,t)=>({...QY(e),options:[e,t]}),uX=(e,t)=>({...ZY(e),options:[e,t]}),dX=(e,t)=>({...JY(e),options:[e,t]}),hX=(e,t)=>({...sX(e),options:[e,t]});var fX="Arrow",a3=w.forwardRef((e,t)=>{const{children:n,width:r=10,height:i=5,...s}=e;return c.jsx(we.svg,{...s,ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:c.jsx("polygon",{points:"0,0 30,0 15,10"})})});a3.displayName=fX;var pX=a3;function o3(e){const[t,n]=w.useState(void 0);return mn(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const s=i[0];let a,o;if("borderBoxSize"in s){const l=s.borderBoxSize,u=Array.isArray(l)?l[0]:l;a=u.inlineSize,o=u.blockSize}else a=e.offsetWidth,o=e.offsetHeight;n({width:a,height:o})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var W_="Popper",[l3,nd]=dr(W_),[mX,c3]=l3(W_),u3=e=>{const{__scopePopper:t,children:n}=e,[r,i]=w.useState(null);return c.jsx(mX,{scope:t,anchor:r,onAnchorChange:i,children:n})};u3.displayName=W_;var d3="PopperAnchor",h3=w.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...i}=e,s=c3(d3,n),a=w.useRef(null),o=qe(t,a);return w.useEffect(()=>{s.onAnchorChange((r==null?void 0:r.current)||a.current)}),r?null:c.jsx(we.div,{...i,ref:o})});h3.displayName=d3;var z_="PopperContent",[gX,yX]=l3(z_),f3=w.forwardRef((e,t)=>
vendor: 4,301 bytes, line 416
416{var Y,ce,K,Q,G,F;const{__scopePopper:n,side:r="bottom",sideOffset:i=0,align:s="center",alignOffset:a=0,arrowPadding:o=0,avoidCollisions:l=!0,collisionBoundary:u=[],collisionPadding:d=0,sticky:h="partial",hideWhenDetached:f=!1,updatePositionStrategy:p="optimized",onPlaced:g,...m}=e,y=c3(z_,n),[v,x]=w.useState(null),b=qe(t,ue=>x(ue)),[S,k]=w.useState(null),j=o3(S),_=(j==null?void 0:j.width)??0,E=(j==null?void 0:j.height)??0,T=r+(s!=="center"?"-"+s:""),N=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},P=Array.isArray(u)?u:[u],C=P.length>0,M={padding:N,boundary:P.filter(xX),altBoundary:C},{refs:R,floatingStyles:D,placement:L,isPositioned:B,middlewareData:I}=iX({strategy:"fixed",placement:T,whileElementsMounted:(...ue)=>GY(...ue,{animationFrame:p==="always"}),elements:{reference:y.anchor},middleware:[aX({mainAxis:i+E,alignmentAxis:a}),l&&oX({mainAxis:!0,crossAxis:!1,limiter:h==="partial"?lX():void 0,...M}),l&&cX({...M}),uX({...M,apply:({elements:ue,rects:ae,availableWidth:Ae,availableHeight:Ie})=>{const{width:Ge,height:jt}=ae.reference,_t=ue.floating.style;_t.setProperty("--radix-popper-available-width",`${Ae}px`),_t.setProperty("--radix-popper-available-height",`${Ie}px`),_t.setProperty("--radix-popper-anchor-width",`${Ge}px`),_t.setProperty("--radix-popper-anchor-height",`${jt}px`)}}),S&&hX({element:S,padding:o}),bX({arrowWidth:_,arrowHeight:E}),f&&dX({strategy:"referenceHidden",...M})]}),[O,V]=g3(L),z=ur(g);mn(()=>{B&&(z==null||z())},[B,z]);const q=(Y=I.arrow)==null?void 0:Y.x,X=(ce=I.arrow)==null?void 0:ce.y,J=((K=I.arrow)==null?void 0:K.centerOffset)!==0,[xe,ke]=w.useState();return mn(()=>{v&&ke(window.getComputedStyle(v).zIndex)},[v]),c.jsx("div",{ref:R.setFloating,"data-radix-popper-content-wrapper":"",style:{...D,transform:B?D.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:xe,"--radix-popper-transform-origin":[(Q=I.transformOrigin)==null?void 0:Q.x,(G=I.transformOrigin)==null?void 0:G.y].join(" "),...((F=I.hide)==null?void 0:F.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:c.jsx(gX,{scope:n,placedSide:O,onArrowChange:k,arrowX:q,arrowY:X,shouldHideArrow:J,children:c.jsx(we.div,{"data-side":O,"data-align":V,...m,ref:b,style:{...m.style,animation:B?void 0:"none"}})})})});f3.displayName=z_;var p3="PopperArrow",vX={top:"bottom",right:"left",bottom:"top",left:"right"},m3=w.forwardRef(function(t,n){const{__scopePopper:r,...i}=t,s=yX(p3,r),a=vX[s.placedSide];return c.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:c.jsx(pX,{...i,ref:n,style:{...i.style,display:"block"}})})});m3.displayName=p3;function xX(e){return e!==null}var bX=e=>({name:"transformOrigin",options:e,fn(t){var y,v,x;const{placement:n,rects:r,middlewareData:i}=t,a=((y=i.arrow)==null?void 0:y.centerOffset)!==0,o=a?0:e.arrowWidth,l=a?0:e.arrowHeight,[u,d]=g3(n),h={start:"0%",center:"50%",end:"100%"}[d],f=(((v=i.arrow)==null?void 0:v.x)??0)+o/2,p=(((x=i.arrow)==null?void 0:x.y)??0)+l/2;let g="",m="";return u==="bottom"?(g=a?h:`${f}px`,m=`${-l}px`):u==="top"?(g=a?h:`${f}px`,m=`${r.floating.height+l}px`):u==="right"?(g=`${-l}px`,m=a?h:`${p}px`):u==="left"&&(g=`${r.floating.width+l}px`,m=a?h:`${p}px`),{data:{x:g,y:m}}}});function g3(e){const[t,n="center"]=e.split("-");return[t,n]}var H_=u3,K_=h3,G_=f3,Y_=m3,[ox,c6e]=dr("Tooltip",[nd]),lx=nd(),y3="TooltipProvider",wX=700,U1="tooltip.open",[kX,X_]=ox(y3),v3=e=>{const{__scopeTooltip:t,delayDuration:n=wX,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:s}=e,a=w.useRef(!0),o=w.useRef(!1),l=w.useRef(0);return w.useEffect(()=>{const u=l.current;return()=>window.clearTimeout(u)},[]),c.jsx(kX,{scope:t,isOpenDelayedRef:a,delayDuration:n,onOpen:w.useCallback(()=>{window.clearTimeout(l.current),a.current=!1},[]),onClose:w.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>a.current=!0,r)},[r]),isPointerInTransitRef:o,onPointerInTransitChange:w.useCallback(u=>{o.current=u}
vendor: 4,886 bytes, line 416
416,[]),disableHoverableContent:i,children:s})};v3.displayName=y3;var cf="Tooltip",[SX,cx]=ox(cf),x3=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:i,onOpenChange:s,disableHoverableContent:a,delayDuration:o}=e,l=X_(cf,e.__scopeTooltip),u=lx(t),[d,h]=w.useState(null),f=jr(),p=w.useRef(0),g=a??l.disableHoverableContent,m=o??l.delayDuration,y=w.useRef(!1),[v,x]=Xr({prop:r,defaultProp:i??!1,onChange:_=>{_?(l.onOpen(),document.dispatchEvent(new CustomEvent(U1))):l.onClose(),s==null||s(_)},caller:cf}),b=w.useMemo(()=>v?y.current?"delayed-open":"instant-open":"closed",[v]),S=w.useCallback(()=>{window.clearTimeout(p.current),p.current=0,y.current=!1,x(!0)},[x]),k=w.useCallback(()=>{window.clearTimeout(p.current),p.current=0,x(!1)},[x]),j=w.useCallback(()=>{window.clearTimeout(p.current),p.current=window.setTimeout(()=>{y.current=!0,x(!0),p.current=0},m)},[m,x]);return w.useEffect(()=>()=>{p.current&&(window.clearTimeout(p.current),p.current=0)},[]),c.jsx(H_,{...u,children:c.jsx(SX,{scope:t,contentId:f,open:v,stateAttribute:b,trigger:d,onTriggerChange:h,onTriggerEnter:w.useCallback(()=>{l.isOpenDelayedRef.current?j():S()},[l.isOpenDelayedRef,j,S]),onTriggerLeave:w.useCallback(()=>{g?k():(window.clearTimeout(p.current),p.current=0)},[k,g]),onOpen:S,onClose:k,disableHoverableContent:g,children:n})})};x3.displayName=cf;var W1="TooltipTrigger",b3=w.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,i=cx(W1,n),s=X_(W1,n),a=lx(n),o=w.useRef(null),l=qe(t,o,i.onTriggerChange),u=w.useRef(!1),d=w.useRef(!1),h=w.useCallback(()=>u.current=!1,[]);return w.useEffect(()=>()=>document.removeEventListener("pointerup",h),[h]),c.jsx(K_,{asChild:!0,...a,children:c.jsx(we.button,{"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute,...r,ref:l,onPointerMove:te(e.onPointerMove,f=>{f.pointerType!=="touch"&&!d.current&&!s.isPointerInTransitRef.current&&(i.onTriggerEnter(),d.current=!0)}),onPointerLeave:te(e.onPointerLeave,()=>{i.onTriggerLeave(),d.current=!1}),onPointerDown:te(e.onPointerDown,()=>{i.open&&i.onClose(),u.current=!0,document.addEventListener("pointerup",h,{once:!0})}),onFocus:te(e.onFocus,()=>{u.current||i.onOpen()}),onBlur:te(e.onBlur,i.onClose),onClick:te(e.onClick,i.onClose)})})});b3.displayName=W1;var jX="TooltipPortal",[u6e,_X]=ox(jX,{forceMount:void 0}),yu="TooltipContent",w3=w.forwardRef((e,t)=>{const n=_X(yu,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i="top",...s}=e,a=cx(yu,e.__scopeTooltip);return c.jsx(Jr,{present:r||a.open,children:a.disableHoverableContent?c.jsx(k3,{side:i,...s,ref:t}):c.jsx(EX,{side:i,...s,ref:t})})}),EX=w.forwardRef((e,t)=>{const n=cx(yu,e.__scopeTooltip),r=X_(yu,e.__scopeTooltip),i=w.useRef(null),s=qe(t,i),[a,o]=w.useState(null),{trigger:l,onClose:u}=n,d=i.current,{onPointerInTransitChange:h}=r,f=w.useCallback(()=>{o(null),h(!1)},[h]),p=w.useCallback((g,m)=>{const y=g.currentTarget,v={x:g.clientX,y:g.clientY},x=PX(v,y.getBoundingClientRect()),b=OX(v,x),S=RX(m.getBoundingClientRect()),k=MX([...b,...S]);o(k),h(!0)},[h]);return w.useEffect(()=>()=>f(),[f]),w.useEffect(()=>{if(l&&d){const g=y=>p(y,d),m=y=>p(y,l);return l.addEventListener("pointerleave",g),d.addEventListener("pointerleave",m),()=>{l.removeEventListener("pointerleave",g),d.removeEventListener("pointerleave",m)}}},[l,d,p,f]),w.useEffect(()=>{if(a){const g=m=>{const y=m.target,v={x:m.clientX,y:m.clientY},x=(l==null?void 0:l.contains(y))||(d==null?void 0:d.contains(y)),b=!IX(v,a);x?f():b&&(f(),u())};return document.addEventListener("pointermove",g),()=>document.removeEventListener("pointermove",g)}},[l,d,a,u,f]),c.jsx(k3,{...e,ref:s})}),[TX,NX]=ox(cf,{isInside:!1}),CX=i4("TooltipContent"),k3=w.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":i,onEscapeKeyDown:s,onPointerDownOutside:a,...o}=e,l=cx(yu,n),u=lx(n),{onClose:d}=l;return w.useEffect(()=>(document.addEventListener(U1,d),()=>document.removeEventListener(U1,d)),[d]),w.useEffect(()=>{if(l.trigger){const h=f=>{const p=f.target;p!=null&&p.contains(l.trigger)&&d()};return window.addEventListener("scroll",h,{capture:!0}),()=>window.removeEventListener("scroll",h,{capture:!0})}},[l.trigger,d]),c.jsx(Zu,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:a,onFocusOutside:h=>h.preventDefault(),onDismiss:d,children:c.jsxs(G_,{"data-state":l.stateAttribute,...u,...o,ref:t,style:{...o.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[c.jsx(CX,{children:r}),c.jsx(TX,{scope:n,isInside:!0,children:c.jsx(Y7,{id:l.contentId,role:"tooltip",children:i||r})})]})})});
416w3.displayName=yu;var S3="TooltipArrow",AX=w.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,i=lx(n);return NX(S3,n).isInside?null:c.jsx(Y_,{...i,...r,ref:t})});AX.displayName=S3;function PX(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),s=Math.abs(t.left-e.x);switch(Math.min(n,r,i,s)){case s:return"left";case i:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function OX(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function RX(e){const{top:t,right:n,bottom:r,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:r},{x:i,y:r}]}function IX(e,t){const{x:n,y:r}=e;let i=!1;for(let s=0,a=t.length-1;s<t.length;a=s++){const o=t[s],l=t[a],u=o.x,d=o.y,h=l.x,f=l.y;d>r!=f>r&&n<(h-u)*(r-d)/(f-d)+u&&(i=!i)}return i}function MX(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),$X(t)}function $X(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const i=e[r];for(;t.length>=2;){const s=t[t.length-1],a=t[t.length-2];if((s.x-a.x)*(i.y-a.y)>=(s.y-a.y)*(i.x-a.x))t.pop();else break}t.push(i)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const i=e[r];for(;n.length>=2;){const s=n[n.length-1],a=n[n.length-2];if((s.x-a.x)*(i.y-a.y)>=(s.y-a.y)*(i.x-a.x))n.pop();else break}n.push(i)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var DX=v3,LX=x3,FX=b3,j3=w3;const _3=DX,BX=LX,VX=FX,E3=w.forwardRef(({className:e,sideOffset:t=4,...n},r)=>c.jsx(j3,{ref:r,sideOffset:t,className:ye("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n}));E3.displayName=j3.displayName;var rd=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},xl=typeof window>"u"||"Deno"in globalThis;function Un(){}function qX(e,t){return typeof e=="function"?e(t):e}function z1(e){return typeof e=="number"&&e>=0&&e!==1/0}function T3(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Wa(e,t){return typeof e=="function"?e(t):e}function Lr(e,t){return typeof e=="function"?e(t):e}function p2(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:s,queryKey:a,stale:o}=e;if(a){if(r){if(t.queryHash!==Q_(a,t.options))return!1}else if(!uf(t.queryKey,a))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof o=="boolean"&&t.isStale()!==o||i&&i!==t.state.fetchStatus||s&&!s(t))}function m2(e,t){const{exact:n,status:r,predicate:i,mutationKey:s}=e;if(s){if(!t.options.mutationKey)return!1;if(n){if(bl(t.options.mutationKey)!==bl(s))return!1}else if(!uf(t.options.mutationKey,s))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function Q_(e,t){return((t==null?void 0:t.queryKeyHashFn)||bl)(e)}function bl(e){return JSON.stringify(e,(t,n)=>H1(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function uf(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>uf(e[n],t[n])):!1}function N3(e,t){if(e===t)return e;const n=g2(e)&&g2(t);if(n||H1(e)&&H1(t)){const r=n?e:Object.keys(e),i=r.length,s=n?t:Object.keys(t),a=s.length,o=n?[]:{},l=new Set(r);let u=0;for(let d=0;d<a;d++){const h=n?d:s[d];(!n&&l.has(h)||n)&&e[h]===void 0&&t[h]===void 0?(o[h]=void 0,u++):(o[h]=N3(e[h],t[h]),o[h]===e[h]&&e[h]!==void 0&&u++)}return i===a&&u===i?e:o}return t}function cy(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function g2(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function H1(e){if(!y2(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!y2(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function y2(e){return Object.prototype.toString.call(e)==="[object Object]"}function UX(e){return new Promise(t=>{setTimeout(t,e)})}function K1(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?N3(e,t):t}function WX(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function zX(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Z_=Symbol();function C3(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===Z_?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function A3(e,t){return typeof e=="function"?e(...t):!!e}var Xo,wa,Gc,E$,HX=(E$=class extends rd{constructor(){super();be(this,Xo);be(this,wa);be(this,Gc);ie(this,Gc,t=>{if(!xl&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){$(this,wa)||this.setEventListener($(this,Gc))}onUnsubscribe(){var t;this.hasListeners()||((t=$(this,wa))==null||t.call(this),ie(this,wa,void 0))}setEventListener(t){var n;ie(this,Gc,t),(n=$(this,wa))==null||n.call(this),ie(this,wa,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){$(this,Xo)!==t&&(ie(this,Xo,t),this.onFocus())}onFocus(){const t=this.isFocused();
vendor: 4,924 bytes, line 416
416this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof $(this,Xo)=="boolean"?$(this,Xo):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Xo=new WeakMap,wa=new WeakMap,Gc=new WeakMap,E$),J_=new HX,Yc,ka,Xc,T$,KX=(T$=class extends rd{constructor(){super();be(this,Yc,!0);be(this,ka);be(this,Xc);ie(this,Xc,t=>{if(!xl&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){$(this,ka)||this.setEventListener($(this,Xc))}onUnsubscribe(){var t;this.hasListeners()||((t=$(this,ka))==null||t.call(this),ie(this,ka,void 0))}setEventListener(t){var n;ie(this,Xc,t),(n=$(this,ka))==null||n.call(this),ie(this,ka,t(this.setOnline.bind(this)))}setOnline(t){$(this,Yc)!==t&&(ie(this,Yc,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return $(this,Yc)}},Yc=new WeakMap,ka=new WeakMap,Xc=new WeakMap,T$),uy=new KX;function G1(){let e,t;const n=new Promise((i,s)=>{e=i,t=s});n.status="pending",n.catch(()=>{});function r(i){Object.assign(n,i),delete n.resolve,delete n.reject}return n.resolve=i=>{r({status:"fulfilled",value:i}),e(i)},n.reject=i=>{r({status:"rejected",reason:i}),t(i)},n}function GX(e){return Math.min(1e3*2**e,3e4)}function P3(e){return(e??"online")==="online"?uy.isOnline():!0}var O3=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function y0(e){return e instanceof O3}function R3(e){let t=!1,n=0,r=!1,i;const s=G1(),a=m=>{var y;r||(f(new O3(m)),(y=e.abort)==null||y.call(e))},o=()=>{t=!0},l=()=>{t=!1},u=()=>J_.isFocused()&&(e.networkMode==="always"||uy.isOnline())&&e.canRun(),d=()=>P3(e.networkMode)&&e.canRun(),h=m=>{var y;r||(r=!0,(y=e.onSuccess)==null||y.call(e,m),i==null||i(),s.resolve(m))},f=m=>{var y;r||(r=!0,(y=e.onError)==null||y.call(e,m),i==null||i(),s.reject(m))},p=()=>new Promise(m=>{var y;i=v=>{(r||u())&&m(v)},(y=e.onPause)==null||y.call(e)}).then(()=>{var m;i=void 0,r||(m=e.onContinue)==null||m.call(e)}),g=()=>{if(r)return;let m;const y=n===0?e.initialPromise:void 0;try{m=y??e.fn()}catch(v){m=Promise.reject(v)}Promise.resolve(m).then(h).catch(v=>{var j;if(r)return;const x=e.retry??(xl?0:3),b=e.retryDelay??GX,S=typeof b=="function"?b(n,v):b,k=x===!0||typeof x=="number"&&n<x||typeof x=="function"&&x(n,v);if(t||!k){f(v);return}n++,(j=e.onFail)==null||j.call(e,n,v),UX(S).then(()=>u()?void 0:p()).then(()=>{t?f(v):g()})})};return{promise:s,cancel:a,continue:()=>(i==null||i(),s),cancelRetry:o,continueRetry:l,canStart:d,start:()=>(d()?g():p().then(g),s)}}var YX=e=>setTimeout(e,0);function XX(){let e=[],t=0,n=o=>{o()},r=o=>{o()},i=YX;const s=o=>{t?e.push(o):i(()=>{n(o)})},a=()=>{const o=e;e=[],o.length&&i(()=>{r(()=>{o.forEach(l=>{n(l)})})})};return{batch:o=>{let l;t++;try{l=o()}finally{t--,t||a()}return l},batchCalls:o=>(...l)=>{s(()=>{o(...l)})},schedule:s,setNotifyFunction:o=>{n=o},setBatchNotifyFunction:o=>{r=o},setScheduler:o=>{i=o}}}var nn=XX(),Qo,N$,I3=(N$=class{constructor(){be(this,Qo)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),z1(this.gcTime)&&ie(this,Qo,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(xl?1/0:5*60*1e3))}clearGcTimeout(){$(this,Qo)&&(clearTimeout($(this,Qo)),ie(this,Qo,void 0))}},Qo=new WeakMap,N$),Qc,Zo,$r,Jo,On,mp,el,gi,gs,C$,QX=(C$=class extends I3{constructor(t){super();be(this,gi);be(this,Qc);be(this,Zo);be(this,$r);be(this,Jo);be(this,On);be(this,mp);be(this,el);ie(this,el,!1),ie(this,mp,t.defaultOptions),this.setOptions(t.options),this.observers=[],ie(this,Jo,t.client),ie(this,$r,$(this,Jo).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,ie(this,Qc,ZX(this.options)),this.state=t.state??$(this,Qc),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=$(this,On))==null?void 0:t.promise}setOptions(t){this.options={...$(this,mp),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&$(this,$r).remove(this)}setData(t,n){const r=K1(this.state.data,t,this.options);return Le(this,gi,gs).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){Le(this,gi,gs).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,i;const n=(r=$(this,On))==null?void 0:r.promise;return(i=$(this,On))==null||i.cancel(t),n?n.then(Un).catch(Un):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState($(this,Qc))}isActive(){return this.observers.some(t=>Lr(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Z_||this.state.dataUpdateCount+this.state.errorUpdate
vendor: 1,274 bytes, line 416
416Count===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>Wa(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!T3(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=$(this,On))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=$(this,On))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),$(this,$r).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||($(this,On)&&($(this,el)?$(this,On).cancel({revert:!0}):$(this,On).cancelRetry()),this.scheduleGc()),$(this,$r).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Le(this,gi,gs).call(this,{type:"invalidate"})}
vendor: 26,549 bytes, line 416
416fetch(t,n){var u,d,h;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if($(this,On))return $(this,On).continueRetry(),$(this,On).promise}if(t&&this.setOptions(t),!this.options.queryFn){const f=this.observers.find(p=>p.options.queryFn);f&&this.setOptions(f.options)}const r=new AbortController,i=f=>{Object.defineProperty(f,"signal",{enumerable:!0,get:()=>(ie(this,el,!0),r.signal)})},s=()=>{const f=C3(this.options,n),g=(()=>{const m={client:$(this,Jo),queryKey:this.queryKey,meta:this.meta};return i(m),m})();return ie(this,el,!1),this.options.persister?this.options.persister(f,g,this):f(g)},o=(()=>{const f={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:$(this,Jo),state:this.state,fetchFn:s};return i(f),f})();(u=this.options.behavior)==null||u.onFetch(o,this),ie(this,Zo,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((d=o.fetchOptions)==null?void 0:d.meta))&&Le(this,gi,gs).call(this,{type:"fetch",meta:(h=o.fetchOptions)==null?void 0:h.meta});const l=f=>{var p,g,m,y;y0(f)&&f.silent||Le(this,gi,gs).call(this,{type:"error",error:f}),y0(f)||((g=(p=$(this,$r).config).onError)==null||g.call(p,f,this),(y=(m=$(this,$r).config).onSettled)==null||y.call(m,this.state.data,f,this)),this.scheduleGc()};return ie(this,On,R3({initialPromise:n==null?void 0:n.initialPromise,fn:o.fetchFn,abort:r.abort.bind(r),onSuccess:f=>{var p,g,m,y;if(f===void 0){l(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(f)}catch(v){l(v);return}(g=(p=$(this,$r).config).onSuccess)==null||g.call(p,f,this),(y=(m=$(this,$r).config).onSettled)==null||y.call(m,f,this.state.error,this),this.scheduleGc()},onError:l,onFail:(f,p)=>{Le(this,gi,gs).call(this,{type:"failed",failureCount:f,error:p})},onPause:()=>{Le(this,gi,gs).call(this,{type:"pause"})},onContinue:()=>{Le(this,gi,gs).call(this,{type:"continue"})},retry:o.options.retry,retryDelay:o.options.retryDelay,networkMode:o.options.networkMode,canRun:()=>!0})),$(this,On).start()}},Qc=new WeakMap,Zo=new WeakMap,$r=new WeakMap,Jo=new WeakMap,On=new WeakMap,mp=new WeakMap,el=new WeakMap,gi=new WeakSet,gs=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...M3(r.data,this.options),fetchMeta:t.meta??null};case"success":return ie(this,Zo,void 0),{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const i=t.error;return y0(i)&&i.revert&&$(this,Zo)?{...$(this,Zo),fetchStatus:"idle"}:{...r,error:i,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),nn.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),$(this,$r).notify({query:this,type:"updated",action:t})})},C$);function M3(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:P3(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function ZX(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var Bi,A$,JX=(A$=class extends rd{constructor(t={}){super();be(this,Bi);this.config=t,ie(this,Bi,new Map)}build(t,n,r){const i=n.queryKey,s=n.queryHash??Q_(i,n);let a=this.get(s);return a||(a=new QX({client:t,queryKey:i,queryHash:s,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(i)}),this.add(a)),a}add(t){$(this,Bi).has(t.queryHash)||($(this,Bi).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=$(this,Bi).get(t.queryHash);n&&(t.destroy(),n===t&&$(this,Bi).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){nn.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return $(this,Bi).get(t)}getAll(){return[...$(this,Bi).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>p2(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>p2(t,r)):n}notify(t){nn.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){nn.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){nn.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Bi=new WeakMap,A$),Vi,Bn,tl,qi,ca,P$,eQ=(P$=class extends I3{constructor(t){super();be(this,qi);be(this,Vi);be(this,Bn);be(this,tl);this.mutationId=t.mutationId,ie(this,Bn,t.mutationCache),ie(this,Vi,[]),this.state=t.state||$3(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){$(this,Vi).includes(t)||($(this,Vi).push(t),this.clearGcTimeout(),$(this,Bn).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){ie(this,Vi,$(this,Vi).filter(n=>n!==t)),this.scheduleGc(),$(this,Bn).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){$(this,Vi).length||(this.state.status==="pending"?this.scheduleGc():$(this,Bn).remove(this))}continue(){var t;return((t=$(this,tl))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var s,a,o,l,u,d,h,f,p,g,m,y,v,x,b,S,k,j,_,E;const n=()=>{Le(this,qi,ca).call(this,{type:"continue"})};ie(this,tl,R3({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(T,N)=>{Le(this,qi,ca).call(this,{type:"failed",failureCount:T,error:N})},onPause:()=>{Le(this,qi,ca).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>$(this,Bn).canRun(this)}));const r=this.state.status==="pending",i=!$(this,tl).canStart();try{if(r)n();else{Le(this,qi,ca).call(this,{type:"pending",variables:t,isPaused:i}),await((a=(s=$(this,Bn).config).onMutate)==null?void 0:a.call(s,t,this));const N=await((l=(o=this.options).onMutate)==null?void 0:l.call(o,t));N!==this.state.context&&Le(this,qi,ca).call(this,{type:"pending",context:N,variables:t,isPaused:i})}const T=await $(this,tl).start();return await((d=(u=$(this,Bn).config).onSuccess)==null?void 0:d.call(u,T,t,this.state.context,this)),await((f=(h=this.options).onSuccess)==null?void 0:f.call(h,T,t,this.state.context)),await((g=(p=$(this,Bn).config).onSettled)==null?void 0:g.call(p,T,null,this.state.variables,this.state.context,this)),await((y=(m=this.options).onSettled)==null?void 0:y.call(m,T,null,t,this.state.context)),Le(this,qi,ca).call(this,{type:"success",data:T}),T}catch(T){try{throw await((x=(v=$(this,Bn).config).onError)==null?void 0:x.call(v,T,t,this.state.context,this)),await((S=(b=this.options).onError)==null?void 0:S.call(b,T,t,this.state.context)),await((j=(k=$(this,Bn).config).onSettled)==null?void 0:j.call(k,void 0,T,this.state.variables,this.state.context,this)),await((E=(_=this.options).onSettled)==null?void 0:E.call(_,void 0,T,t,this.state.context)),T}finally{Le(this,qi,ca).call(this,{type:"error",error:T})}}finally{$(this,Bn).runNext(this)}}},Vi=new WeakMap,Bn=new WeakMap,tl=new WeakMap,qi=new WeakSet,ca=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),nn.batch(()=>{$(this,Vi).forEach(r=>{r.onMutationUpdate(t)}),$(this,Bn).notify({mutation:this,type:"updated",action:t})})},P$);function $3(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Ss,yi,gp,O$,tQ=(O$=class extends rd{constructor(t={}){super();be(this,Ss);be(this,yi);be(this,gp);this.config=t,ie(this,Ss,new Set),ie(this,yi,new Map),ie(this,gp,0)}build(t,n,r){const i=new eQ({mutationCache:this,mutationId:++Jp(this,gp)._,options:t.defaultMutationOptions(n),state:r});return this.add(i),i}add(t){$(this,Ss).add(t);const n=Sm(t);if(typeof n=="string"){const r=$(this,yi).get(n);r?r.push(t):$(this,yi).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if($(this,Ss).delete(t)){const n=Sm(t);if(typeof n=="string"){const r=$(this,yi).get(n);if(r)if(r.length>1){const i=r.indexOf(t);i!==-1&&r.splice(i,1)}else r[0]===t&&$(this,yi).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=Sm(t);if(typeof n=="string"){const r=$(this,yi).get(n),i=r==null?void 0:r.find(s=>s.state.status==="pending");return!i||i===t}else return!0}runNext(t){var r;const n=Sm(t);if(typeof n=="string"){const i=(r=$(this,yi).get(n))==null?void 0:r.find(s=>s!==t&&s.state.isPaused);return(i==null?void 0:i.continue())??Promise.resolve()}else return Promise.resolve()}clear(){nn.batch(()=>{$(this,Ss).forEach(t=>{this.notify({type:"removed",mutation:t})}),$(this,Ss).clear(),$(this,yi).clear()})}getAll(){return Array.from($(this,Ss))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>m2(n,r))}findAll(t={}){return this.getAll().filter(n=>m2(t,n))}notify(t){nn.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return nn.batch(()=>Promise.all(t.map(n=>n.continue().catch(Un))))}},Ss=new WeakMap,yi=new WeakMap,gp=new WeakMap,O$);function Sm(e){var t;return(t=e.options.scope)==null?void 0:t.id}function v2(e){return{onFetch:(t,n)=>{var d,h,f,p,g;const r=t.options,i=(f=(h=(d=t.fetchOptions)==null?void 0:d.meta)==null?void 0:h.fetchMore)==null?void 0:f.direction,s=((p=t.state.data)==null?void 0:p.pages)||[],a=((g=t.state.data)==null?void 0:g.pageParams)||[];let o={pages:[],pageParams:[]},l=0;const u=async()=>{let m=!1;const y=b=>{Object.defineProperty(b,"signal",{enumerable:!0,get:()=>(t.signal.aborted?m=!0:t.signal.addEventListener("abort",()=>{m=!0}),t.signal)})},v=C3(t.options,t.fetchOptions),x=async(b,S,k)=>{if(m)return Promise.reject();if(S==null&&b.pages.length)return Promise.resolve(b);const _=(()=>{const P={client:t.client,queryKey:t.queryKey,pageParam:S,direction:k?"backward":"forward",meta:t.options.meta};return y(P),P})(),E=await v(_),{maxPages:T}=t.options,N=k?zX:WX;return{pages:N(b.pages,E,T),pageParams:N(b.pageParams,S,T)}};if(i&&s.length){const b=i==="backward",S=b?nQ:x2,k={pages:s,pageParams:a},j=S(r,k);o=await x(k,j,b)}else{const b=e??s.length;do{const S=l===0?a[0]??r.initialPageParam:x2(r,o);if(l>0&&S==null)break;o=await x(o,S),l++}while(l<b)}return o};t.options.persister?t.fetchFn=()=>{var m,y;return(y=(m=t.options).persister)==null?void 0:y.call(m,u,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=u}}}function x2(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function nQ(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var Mt,Sa,ja,Zc,Jc,_a,eu,tu,R$,rQ=(R$=class{constructor(e={}){be(this,Mt);be(this,Sa);be(this,ja);be(this,Zc);be(this,Jc);be(this,_a);be(this,eu);be(this,tu);ie(this,Mt,e.queryCache||new JX),ie(this,Sa,e.mutationCache||new tQ),ie(this,ja,e.defaultOptions||{}),ie(this,Zc,new Map),ie(this,Jc,new Map),ie(this,_a,0)}mount(){Jp(this,_a)._++,$(this,_a)===1&&(ie(this,eu,J_.subscribe(async e=>{e&&(await this.resumePausedMutations(),$(this,Mt).onFocus())})),ie(this,tu,uy.subscribe(async e=>{e&&(await this.resumePausedMutations(),$(this,Mt).onOnline())})))}unmount(){var e,t;Jp(this,_a)._--,$(this,_a)===0&&((e=$(this,eu))==null||e.call(this),ie(this,eu,void 0),(t=$(this,tu))==null||t.call(this),ie(this,tu,void 0))}isFetching(e){return $(this,Mt).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return $(this,Sa).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=$(this,Mt).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=$(this,Mt).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Wa(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return $(this,Mt).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),i=$(this,Mt).get(r.queryHash),s=i==null?void 0:i.state.data,a=qX(t,s);if(a!==void 0)return $(this,Mt).build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return nn.batch(()=>$(this,Mt).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=$(this,Mt).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=$(this,Mt);nn.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=$(this,Mt);return nn.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=nn.batch(()=>$(this,Mt).findAll(e).map(i=>i.cancel(n)));return Promise.all(r).then(Un).catch(Un)}invalidateQueries(e,t={}){return nn.batch(()=>($(this,Mt).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=nn.batch(()=>$(this,Mt).findAll(e).filter(i=>!i.isDisabled()&&!i.isStatic()).map(i=>{let s=i.fetch(void 0,n);return n.throwOnError||(s=s.catch(Un)),i.state.fetchStatus==="paused"?Promise.resolve():s}));return Promise.all(r).then(Un)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=$(this,Mt).build(this,t);return n.isStaleByTime(Wa(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Un).catch(Un)}fetchInfiniteQuery(e){return e.behavior=v2(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Un).catch(Un)}ensureInfiniteQueryData(e){return e.behavior=v2(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return uy.isOnline()?$(this,Sa).resumePausedMutations():Promise.resolve()}getQueryCache(){return $(this,Mt)}getMutationCache(){return $(this,Sa)}getDefaultOptions(){return $(this,ja)}setDefaultOptions(e){ie(this,ja,e)}setQueryDefaults(e,t){$(this,Zc).set(bl(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...$(this,Zc).values()],n={};return t.forEach(r=>{uf(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){$(this,Jc).set(bl(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...$(this,Jc).values()],n={};return t.forEach(r=>{uf(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...$(this,ja).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Q_(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===Z_&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...$(this,ja).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){$(this,Mt).clear(),$(this,Sa).clear()}},Mt=new WeakMap,Sa=new WeakMap,ja=new WeakMap,Zc=new WeakMap,Jc=new WeakMap,_a=new WeakMap,eu=new WeakMap,tu=new WeakMap,R$),Zn,ze,yp,Vn,nl,nu,Ea,Ta,vp,ru,iu,rl,il,Na,su,st,ih,Y1,X1,Q1,Z1,J1,ek,tk,D3,I$,iQ=(I$=class extends rd{constructor(t,n){super();be(this,st);be(this,Zn);be(this,ze);be(this,yp);be(this,Vn);be(this,nl);be(this,nu);be(this,Ea);be(this,Ta);be(this,vp);be(this,ru);be(this,iu);be(this,rl);be(this,il);be(this,Na);be(this,su,new Set);this.options=n,ie(this,Zn,t),ie(this,Ta,null),ie(this,Ea,G1()),this.options.experimental_prefetchInRender||$(this,Ea).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&($(this,ze).addObserver(this),b2($(this,ze),this.options)?Le(this,st,ih).call(this):this.updateResult(),Le(this,st,Z1).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return nk($(this,ze),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return nk($(this,ze),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Le(this,st,J1).call(this),Le(this,st,ek).call(this),$(this,ze).removeObserver(this)}setOptions(t){const n=this.options,r=$(this,ze);if(this.options=$(this,Zn).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Lr(this.options.enabled,$(this,ze))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");Le(this,st,tk).call(this),$(this,ze).setOptions(this.options),n._defaulted&&!cy(this.options,n)&&$(this,Zn).getQueryCache().notify({type:"observerOptionsUpdated",query:$(this,ze),observer:this});const i=this.hasListeners();i&&w2($(this,ze),r,this.options,n)&&Le(this,st,ih).call(this),this.updateResult(),i&&($(this,ze)!==r||Lr(this.options.enabled,$(this,ze))!==Lr(n.enabled,$(this,ze))||Wa(this.options.staleTime,$(this,ze))!==Wa(n.staleTime,$(this,ze)))&&Le(this,st,Y1).call(this);const s=Le(this,st,X1).call(this);i&&($(this,ze)!==r||Lr(this.options.enabled,$(this,ze))!==Lr(n.enabled,$(this,ze))||s!==$(this,Na))&&Le(this,st,Q1).call(this,s)}getOptimisticResult(t){const n=$(this,Zn).getQueryCache().build($(this,Zn),t),r=this.createResult(n,t);return aQ(this,r)&&(ie(this,Vn,r),ie(this,nu,this.options),ie(this,nl,$(this,ze).state)),r}getCurrentResult(){return $(this,Vn)}trackResult(t,n){return new Proxy(t,{get:(r,i)=>(this.trackProp(i),n==null||n(i),Reflect.get(r,i))})}trackProp(t){$(this,su).add(t)}getCurrentQuery(){return $(this,ze)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=$(this,Zn).defaultQueryOptions(t),r=$(this,Zn).getQueryCache().build($(this,Zn),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return Le(this,st,ih).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),$(this,Vn)))}createResult(t,n){var T;const r=$(this,ze),i=this.options,s=$(this,Vn),a=$(this,nl),o=$(this,nu),u=t!==r?t.state:$(this,yp),{state:d}=t;let h={...d},f=!1,p;if(n._optimisticResults){const N=this.hasListeners(),P=!N&&b2(t,n),C=N&&w2(t,r,n,i);(P||C)&&(h={...h,...M3(d.data,t.options)}),n._optimisticResults==="isRestoring"&&(h.fetchStatus="idle")}let{error:g,errorUpdatedAt:m,status:y}=h;p=h.data;let v=!1;if(n.placeholderData!==void 0&&p===void 0&&y==="pending"){let N;s!=null&&s.isPlaceholderData&&n.placeholderData===(o==null?void 0:o.placeholderData)?(N=s.data,v=!0):N=typeof n.placeholderData=="function"?n.placeholderData((T=$(this,iu))==null?void 0:T.state.data,$(this,iu)):n.placeholderData,N!==void 0&&(y="success",p=K1(s==null?void 0:s.data,N,n),f=!0)}if(n.select&&p!==void 0&&!v)if(s&&p===(a==null?void 0:a.data)&&n.select===$(this,vp))p=$(this,ru);else try{ie(this,vp,n.select),p=n.select(p),p=K1(s==null?void 0:s.data,p,n),ie(this,ru,p),ie(this,Ta,null)}catch(N){ie(this,Ta,N)}$(this,Ta)&&(g=$(this,Ta),p=$(this,ru),m=Date.now(),y="error");const x=h.fetchStatus==="fetching",b=y==="pending",S=y==="error",k=b&&x,j=p!==void 0,E={status:y,fetchStatus:h.fetchStatus,isPending:b,isSuccess:y==="success",isError:S,isInitialLoading:k,isLoading:k,data:p,dataUpdatedAt:h.dataUpdatedAt,error:g,errorUpdatedAt:m,failureCount:h.fetchFailureCount,failureReason:h.fetchFailureReason,errorUpdateCount:h.errorUpdateCount,isFetched:h.dataUpdateCount>0||h.errorUpdateCount>0,isFetchedAfterMount:h.dataUpdateCount>u.dataUpdateCount||h.errorUpdateCount>u.errorUpdateCount,isFetching:x,isRefetching:x&&!b,isLoadingError:S&&!j,isPaused:h.fetchStatus==="paused",isPlaceholderData:f,isRefetchError:S&&j,isStale:eE(t,n),refetch:this.refetch,promise:$(this,Ea),isEnabled:Lr(n.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const N=M=>{E.status==="error"?M.reject(E.error):E.data!==void 0&&M.resolve(E.data)},P=()=>{const M=ie(this,Ea,E.promise=G1());N(M)},C=$(this,Ea);switch(C.status){case"pending":t.queryHash===r.queryHash&&N(C);break;case"fulfilled":(E.status==="error"||E.data!==C.value)&&P();break;case"rejected":(E.status!=="error"||E.error!==C.reason)&&P();break}}return E}updateResult(){const t=$(this,Vn),n=this.createResult($(this,ze),this.options);if(ie(this,nl,$(this,ze).state),ie(this,nu,this.options),$(this,nl).data!==void 0&&ie(this,iu,$(this,ze)),cy(n,t))return;ie(this,Vn,n);const r=()=>{if(!t)return!0;const{notifyOnChangeProps:i}=this.options,s=typeof i=="function"?i():i;if(s==="all"||!s&&!$(this,su).size)return!0;const a=new Set(s??$(this,su));return this.options.throwOnError&&a.add("error"),Object.keys($(this,Vn)).some(o=>{const l=o;return $(this,Vn)[l]!==t[l]&&a.has(l)})};Le(this,st,D3).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Le(this,st,Z1).call(this)}},Zn=new WeakMap,ze=new WeakMap,yp=new WeakMap,Vn=new WeakMap,nl=new WeakMap,nu=new WeakMap,Ea=new WeakMap,Ta=new WeakMap,vp=new WeakMap,ru=new WeakMap,iu=new WeakMap,rl=new WeakMap,il=new WeakMap,Na=new WeakMap,su=new WeakMap,st=new WeakSet,ih=function(t){Le(this,st,tk).call(this);let n=$(this,ze).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(Un)),n},Y1=function(){Le(this,st,J1).call(this);const t=Wa(this.options.staleTime,$(this,ze));if(xl||$(this,Vn).isStale||!z1(t))return;const r=T3($(this,Vn).dataUpdatedAt,t)+1;ie(this,rl,setTimeout(()=>{$(this,Vn).isStale||this.updateResult()},r))},X1=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval($(this,ze)):this.options.refetchInterval)??!1},Q1=function(t){Le(this,st,ek).call(this),ie(this,Na,t),!(xl||Lr(this.options.enabled,$(this,ze))===!1||!z1($(this,Na))||$(this,Na)===0)&&ie(this,il,setInterval(()=>{(this.options.refetchIntervalInBackground||J_.isFocused())&&Le(this,st,ih).call(this)},$(this,Na)))},Z1=function(){Le(this,st,Y1).call(this),Le(this,st,Q1).call(this,Le(this,st,X1).call(this))},J1=function(){$(this,rl)&&(clearTimeout($(this,rl)),ie(this,rl,void 0))},ek=function(){$(this,il)&&(clearInterval($(this,il)),ie(this,il,void 0))},tk=function(){const t=$(this,Zn).getQueryCache().build($(this,Zn),this.options);if(t===$(this,ze))return;const n=$(this,ze);ie(this,ze,t),ie(this,yp,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},D3=function(t){nn.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n($(this,Vn))}),$(this,Zn).getQueryCache().notify({query:$(this,ze),type:"observerResultsUpdated"})})},I$);function sQ(e,t){return Lr(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function b2(e,t){return sQ(e,t)||e.state.data!==void 0&&nk(e,t,t.refetchOnMount)}function nk(e,t,n){if(Lr(t.enabled,e)!==!1&&Wa(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&eE(e,t)}return!1}function w2(e,t,n,r){return(e!==t||Lr(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&eE(e,n)}function eE(e,t){return Lr(t.enabled,e)!==!1&&e.isStaleByTime(Wa(t.staleTime,e))}function aQ(e,t){return!cy(e.getCurrentResult(),t)}var Ca,Aa,Jn,js,Rs,kg,rk,M$,oQ=(M$=class extends rd{constructor(n,r){super();be(this,Rs);be(this,Ca);be(this,Aa);be(this,Jn);be(this,js);ie(this,Ca,n),this.setOptions(r),this.bindMethods(),Le(this,Rs,kg).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(n){var i;const r=this.options;this.options=$(this,Ca).defaultMutationOptions(n),cy(this.options,r)||$(this,Ca).getMutationCache().notify({type:"observerOptionsUpdated",mutation:$(this,Jn),observer:this}),r!=null&&r.mutationKey&&this.options.mutationKey&&bl(r.mutationKey)!==bl(this.options.mutationKey)?this.reset():((i=$(this,Jn))==null?void 0:i.state.status)==="pending"&&$(this,Jn).setOptions(this.options)}onUnsubscribe(){var n;this.hasListeners()||(n=$(this,Jn))==null||n.removeObserver(this)}onMutationUpdate(n){Le(this,Rs,kg).call(this),Le(this,Rs,rk).call(this,n)}getCurrentResult(){return $(this,Aa)}reset(){var n;(n=$(this,Jn))==null||n.removeObserver(this),ie(this,Jn,void 0),Le(this,Rs,kg).call(this),Le(this,Rs,rk).call(this)}mutate(n,r){var i;return ie(this,js,r),(i=$(this,Jn))==null||i.removeObserver(this),ie(this,Jn,$(this,Ca).getMutationCache().build($(this,Ca),this.options)),$(this,Jn).addObserver(this),$(this,Jn).execute(n)}},Ca=new WeakMap,Aa=new WeakMap,Jn=new WeakMap,js=new WeakMap,Rs=new WeakSet,kg=function(){var r;const n=((r=$(this,Jn))==null?void 0:r.state)??$3();ie(this,Aa,{...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset})},rk=function(n){nn.batch(()=>{var r,i,s,a,o,l,u,d;if($(this,js)&&this.hasListeners()){const h=$(this,Aa).variables,f=$(this,Aa).context;(n==null?void 0:n.type)==="success"?((i=(r=$(this,js)).onSuccess)==null||i.call(r,n.data,h,f),(a=(s=$(this,js)).onSettled)==null||a.call(s,n.data,null,h,f)):(n==null?void 0:n.type)==="error"&&((l=(o=$(this,js)).onError)==null||l.call(o,n.error,h,f),(d=(u=$(this,js)).onSettled)==null||d.call(u,void 0,n.error,h,f))}
416this.listeners.forEach(h=>{h($(this,Aa))})})},M$),L3=w.createContext(void 0),id=e=>{const t=w.useContext(L3);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},lQ=({client:e,children:t})=>(w.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),c.jsx(L3.Provider,{value:e,children:t})),F3=w.createContext(!1),cQ=()=>w.useContext(F3);F3.Provider;function uQ(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var dQ=w.createContext(uQ()),hQ=()=>w.useContext(dQ),fQ=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},pQ=e=>{w.useEffect(()=>{e.clearReset()},[e])},mQ=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(i&&e.data===void 0||A3(n,[e.error,r])),gQ=e=>{if(e.suspense){const t=r=>r==="static"?r:Math.max(r??1e3,1e3),n=e.staleTime;e.staleTime=typeof n=="function"?(...r)=>t(n(...r)):t(n),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},yQ=(e,t)=>e.isLoading&&e.isFetching&&!t,vQ=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,k2=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function xQ(e,t,n){var h,f,p,g,m;const r=cQ(),i=hQ(),s=id(),a=s.defaultQueryOptions(e);(f=(h=s.getDefaultOptions().queries)==null?void 0:h._experimental_beforeQuery)==null||f.call(h,a),a._optimisticResults=r?"isRestoring":"optimistic",gQ(a),fQ(a,i),pQ(i);const o=!s.getQueryCache().get(a.queryHash),[l]=w.useState(()=>new t(s,a)),u=l.getOptimisticResult(a),d=!r&&e.subscribed!==!1;if(w.useSyncExternalStore(w.useCallback(y=>{const v=d?l.subscribe(nn.batchCalls(y)):Un;return l.updateResult(),v},[l,d]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),w.useEffect(()=>{l.setOptions(a)},[a,l]),vQ(a,u))throw k2(a,l,i);if(mQ({result:u,errorResetBoundary:i,throwOnError:a.throwOnError,query:s.getQueryCache().get(a.queryHash),suspense:a.suspense}))throw u.error;if((g=(p=s.getDefaultOptions().queries)==null?void 0:p._experimental_afterQuery)==null||g.call(p,a,u),a.experimental_prefetchInRender&&!xl&&yQ(u,r)){const y=o?k2(a,l,i):(m=s.getQueryCache().get(a.queryHash))==null?void 0:m.promise;y==null||y.catch(Un).finally(()=>{l.updateResult()})}return a.notifyOnChangeProps?u:l.trackResult(u)}function dn(e,t){return xQ(e,iQ)}function za(e,t){const n=id(),[r]=w.useState(()=>new oQ(n,e));w.useEffect(()=>{r.setOptions(e)},[r,e]);const i=w.useSyncExternalStore(w.useCallback(a=>r.subscribe(nn.batchCalls(a)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),s=w.useCallback((a,o)=>{r.mutate(a,o).catch(Un)},[r]);if(i.error&&A3(r.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:s,mutateAsync:i.mutate}}/** 417 * @remix-run/router v1.23.0 418 * 419 * Copyright (c) Remix Software Inc. 420 * 421 * This source code is licensed under the MIT license found in the 422 * LICENSE.md file in the root directory of this source tree. 423 * 424 * @license MIT 425 */function df(){return df=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},df.apply(this,arguments)}var Ra;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Ra||(Ra={}));const S2="popstate";function bQ(e){e===void 0&&(e={});function t(r,i){let{pathname:s,search:a,hash:o}=r.location;return ik("",{pathname:s,search:a,hash:o},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(r,i){return typeof i=="string"?i:dy(i)}return kQ(t,n,null,e)}function Ht(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function B3(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function wQ(){return Math.random().toString(36).substr(2,8)}function j2(e,t){return{usr:e.state,key:e.key,idx:t}}function ik(e,t,n,r){return n===void 0&&(n=null),df({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?sd(t):t,{state:n,key:t&&t.key||r||wQ()})}function dy(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function sd(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function kQ(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:s=!1}=r,a=i.history,o=Ra.Pop,l=null,u=d();u==null&&(u=0,a.replaceState(df({},a.state,{idx:u}),""));function d(){return(a.state||{idx:null}).idx}function h(){o=Ra.Pop;let y=d(),v=y==null?null:y-u;u=y,l&&l({action:o,location:m.location,delta:v})}function f(y,v){o=Ra.Push;let x=ik(m.location,y,v);u=d()+1;let b=j2(x,u),S=m.createHref(x);try{a.pushState(b,"",S)}catch(k){if(k instanceof DOMException&&k.name==="DataCloneError")throw k;i.location.assign(S)}s&&l&&l({action:o,location:m.location,delta:1})}function p(y,v){o=Ra.Replace;let x=ik(m.location,y,v);u=d();let b=j2(x,u),S=m.createHref(x);a.replaceState(b,"",S),s&&l&&l({action:o,location:m.location,delta:0})}function g(y){let v=i.location.origin!=="null"?i.location.origin:i.location.href,x=typeof y=="string"?y:dy(y);return x=x.replace(/ $/,"%20"),Ht(v,"No window.location.(origin|href) available to create URL for href: "+x),new URL(x,v)}let m={get action(){return o},get location(){return e(i,a)},listen(y){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(S2,h),l=y,()=>{i.removeEventListener(S2,h),l=null}},createHref(y){return t(i,y)},createURL:g,encodeLocation(y){let v=g(y);return{pathname:v.pathname,search:v.search,hash:v.hash}},push:f,replace:p,go(y){return a.go(y)}};return m}var _2;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(_2||(_2={}));
vendor: 9,204 bytes, lines 425-434
425function SQ(e,t,n){return n===void 0&&(n="/"),jQ(e,t,n,!1)}function jQ(e,t,n,r){let i=typeof t=="string"?sd(t):t,s=tE(i.pathname||"/",n);if(s==null)return null;let a=V3(e);_Q(a);let o=null;for(let l=0;o==null&&l<a.length;++l){let u=$Q(s);o=IQ(a[l],u,r)}return o}function V3(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let i=(s,a,o)=>{let l={relativePath:o===void 0?s.path||"":o,caseSensitive:s.caseSensitive===!0,childrenIndex:a,route:s};l.relativePath.startsWith("/")&&(Ht(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let u=Ha([r,l.relativePath]),d=n.concat(l);s.children&&s.children.length>0&&(Ht(s.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),V3(s.children,t,d,u)),!(s.path==null&&!s.index)&&t.push({path:u,score:OQ(u,s.index),routesMeta:d})};return e.forEach((s,a)=>{var o;if(s.path===""||!((o=s.path)!=null&&o.includes("?")))i(s,a);else for(let l of q3(s.path))i(s,a,l)}),t}function q3(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),s=n.replace(/\?$/,"");if(r.length===0)return i?[s,""]:[s];let a=q3(r.join("/")),o=[];return o.push(...a.map(l=>l===""?s:[s,l].join("/"))),i&&o.push(...a),o.map(l=>e.startsWith("/")&&l===""?"/":l)}function _Q(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:RQ(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const EQ=/^:[\w-]+$/,TQ=3,NQ=2,CQ=1,AQ=10,PQ=-2,E2=e=>e==="*";function OQ(e,t){let n=e.split("/"),r=n.length;return n.some(E2)&&(r+=PQ),t&&(r+=NQ),n.filter(i=>!E2(i)).reduce((i,s)=>i+(EQ.test(s)?TQ:s===""?CQ:AQ),r)}function RQ(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function IQ(e,t,n){let{routesMeta:r}=e,i={},s="/",a=[];for(let o=0;o<r.length;++o){let l=r[o],u=o===r.length-1,d=s==="/"?t:t.slice(s.length)||"/",h=T2({path:l.relativePath,caseSensitive:l.caseSensitive,end:u},d),f=l.route;if(!h&&u&&n&&!r[r.length-1].route.index&&(h=T2({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},d)),!h)return null;Object.assign(i,h.params),a.push({params:i,pathname:Ha([s,h.pathname]),pathnameBase:BQ(Ha([s,h.pathnameBase])),route:f}),h.pathnameBase!=="/"&&(s=Ha([s,h.pathnameBase]))}return a}function T2(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=MQ(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let s=i[0],a=s.replace(/(.)\/+$/,"$1"),o=i.slice(1);return{params:r.reduce((u,d,h)=>{let{paramName:f,isOptional:p}=d;if(f==="*"){let m=o[h]||"";a=s.slice(0,s.length-m.length).replace(/(.)\/+$/,"$1")}const g=o[h];return p&&!g?u[f]=void 0:u[f]=(g||"").replace(/%2F/g,"/"),u},{}),pathname:s,pathnameBase:a,pattern:e}}function MQ(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),B3(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,o,l)=>(r.push({paramName:o,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function $Q(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return B3(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function tE(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function DQ(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?sd(e):e;return{pathname:n?n.startsWith("/")?n:LQ(n,t):t,search:VQ(r),hash:qQ(i)}}function LQ(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function v0(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` 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 FQ(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function nE(e,t){let n=FQ(e);return t?n.map((r,i)=>i===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function rE(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=sd(e):(i=df({},e),Ht(!i.pathname||!i.pathname.includes("?"),v0("?","pathname","search",i)),Ht(!i.pathname||!i.pathname.includes("#"),v0("#","pathname","hash",i)),Ht(!i.search||!i.search.includes("#"),v0("#","search","hash",i)));let s=e===""||i.pathname==="",a=s?"/":i.pathname,o;if(a==null)o=n;else{let h=t.length-1;if(!r&&a.startsWith("..")){let f=a.split("/");for(;f[0]==="..";)f.shift(),h-=1;i.pathname=f.join("/")}o=h>=0?t[h]:"/"}let l=DQ(i,o),u=a&&a!=="/"&&a.endsWith("/"),d=(s||a===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(u||d)&&(l.pathname+="/"),l}const Ha=e=>e.join("/").replace(/\/\/+/g,"/"),BQ=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),VQ=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,qQ=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function UQ(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const U3=["post","put","patch","delete"];new Set(U3);const WQ=["get",...U3];new Set(WQ);/** 426 * React Router v6.30.1 427 * 428 * Copyright (c) Remix Software Inc. 429 * 430 * This source code is licensed under the MIT license found in the 431 * LICENSE.md file in the root directory of this source tree. 432 * 433 * @license MIT 434 */function hf(){return hf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},hf.apply(this,arguments)}const iE=w.createContext(null),zQ=w.createContext(null),uo=w.createContext(null),ux=w.createContext(null),Gs=w.createContext({outlet:null,matches:[],isDataRoute:!1}),W3=w.createContext(null);function HQ(e,t){let{relative:n}=t===void 0?{}:t;ad()||Ht(!1);let{basename:r,navigator:i}=w.useContext(uo),{hash:s,pathname:a,search:o}=H3(e,{relative:n}),l=a;return r!=="/"&&(l=a==="/"?r:Ha([r,a])),i.createHref({pathname:l,search:o,hash:s})}function ad(){return w.useContext(ux)!=null}function Ys(){return ad()||Ht(!1),w.useContext(ux).location}function z3(e){w.useContext(uo).static||w.useLayoutEffect(e)}function Ar(){let{isDataRoute:e}=w.useContext(Gs);return e?sZ():KQ()}function KQ(){ad()||Ht(!1);let e=w.useContext(iE),{basename:t,future:n,navigator:r}=w.useContext(uo),{matches:i}=w.useContext(Gs),{pathname:s}=Ys(),a=JSON.stringify(nE(i,n.v7_relativeSplatPath)),o=w.useRef(!1);return z3(()=>{o.current=!0}),w.useCallback(function(u,d){if(d===void 0&&(d={}),!o.current)return;if(typeof u=="number"){r.go(u);return}let h=rE(u,JSON.parse(a),s,d.relative==="path");e==null&&t!=="/"&&(h.pathname=h.pathname==="/"?t:Ha([t,h.pathname])),(d.replace?r.replace:r.push)(h,d.state,d)},[t,r,a,s,e])}function sE(){let{matches:e}=w.useContext(Gs),t=e[e.length-1];return t?t.params:{}}function H3(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=w.useContext(uo),{matches:i}=w.useContext(Gs),{pathname:s}=Ys(),a=JSON.stringify(nE(i,r.v7_relativeSplatPath));return w.useMemo(()=>rE(e,JSON.parse(a),s,n==="path"),[e,a,s,n])}function GQ(e,t){return YQ(e,t)}function YQ(e,t,n,r){ad()||Ht(!1);let{navigator:i}=w.useContext(uo),{matches:s}=w.useContext(Gs),a=s[s.length-1],o=a?a.params:{};a&&a.pathname;let l=a?a.pathnameBase:"/";a&&a.route;let u=Ys(),d;if(t){var h;let y=typeof t=="string"?sd(t):t;l==="/"||(h=y.pathname)!=null&&h.startsWith(l)||Ht(!1),d=y}else d=u;let f=d.pathname||"/",p=f;if(l!=="/"){let y=l.replace(/^\//,"").split("/");p="/"+f.replace(/^\//,"").split("/").slice(y.length).join("/")}let g=SQ(e,{pathname:p}),m=eZ(g&&g.map(y=>Object.assign({},y,{params:Object.assign({},o,y.params),pathname:Ha([l,i.encodeLocation?i.encodeLocation(y.pathname).pathname:y.pathname]),pathnameBase:y.pathnameBase==="/"?l:Ha([l,i.encodeLocation?i.encodeLocation(y.pathnameBase).pathname:y.pathnameBase])})),s,n,r);return t&&m?w.createElement(ux.Provider,{value:{location:hf({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:Ra.Pop}},m):m}function XQ(){let e=iZ(),t=UQ(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return w.createElement(w.Fragment,null,w.createElement("h2",null,"Unexpected Application
434Error!"),w.createElement("h3",{style:{fontStyle:"italic"}},t),n?w.createElement("pre",{style:i},n):null,null)}const QQ=w.createElement(XQ,null);class ZQ extends w.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,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?w.createElement(Gs.Provider,{value:this.props.routeContext},w.createElement(W3.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function JQ(e){let{routeContext:t,match:n,children:r}=e,i=w.useContext(iE);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),w.createElement(Gs.Provider,{value:t},r)}function eZ(e,t,n,r){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var s;if(!n)return null;if(n.errors)e=n.matches;else if((s=r)!=null&&s.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let a=e,o=(i=n)==null?void 0:i.errors;if(o!=null){let d=a.findIndex(h=>h.route.id&&(o==null?void 0:o[h.route.id])!==void 0);d>=0||Ht(!1),a=a.slice(0,Math.min(a.length,d+1))}let l=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let d=0;d<a.length;d++){let h=a[d];if((h.route.HydrateFallback||h.route.hydrateFallbackElement)&&(u=d),h.route.id){let{loaderData:f,errors:p}=n,g=h.route.loader&&f[h.route.id]===void 0&&(!p||p[h.route.id]===void 0);if(h.route.lazy||g){l=!0,u>=0?a=a.slice(0,u+1):a=[a[0]];break}}}return a.reduceRight((d,h,f)=>{let p,g=!1,m=null,y=null;n&&(p=o&&h.route.id?o[h.route.id]:void 0,m=h.route.errorElement||QQ,l&&(u<0&&f===0?(g=!0,y=null):u===f&&(g=!0,y=h.route.hydrateFallbackElement||null)));let v=t.concat(a.slice(0,f+1)),x=()=>{let b;return p?b=m:g?b=y:h.route.Component?b=w.createElement(h.route.Component,null):h.route.element?b=h.route.element:b=d,w.createElement(JQ,{match:h,routeContext:{outlet:d,matches:v,isDataRoute:n!=null},children:b})};return n&&(h.route.ErrorBoundary||h.route.errorElement||f===0)?w.createElement(ZQ,{location:n.location,revalidation:n.revalidation,component:m,error:p,children:x(),routeContext:{outlet:null,matches:v,isDataRoute:!0}}):x()},null)}var K3=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(K3||{}),hy=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(hy||{});function tZ(e){let t=w.useContext(iE);return t||Ht(!1),t}function nZ(e){let t=w.useContext(zQ);return t||Ht(!1),t}function rZ(e){let t=w.useContext(Gs);return t||Ht(!1),t}function G3(e){let t=rZ(),n=t.matches[t.matches.length-1];return n.route.id||Ht(!1),n.route.id}function iZ(){var e;let t=w.useContext(W3),n=nZ(hy.UseRouteError),r=G3(hy.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function sZ(){let{router:e}=tZ(K3.UseNavigateStable),t=G3(hy.UseNavigateStable),n=w.useRef(!1);return z3(()=>{n.current=!0}),w.useCallback(function(i,s){s===void 0&&(s={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,hf({fromRouteId:t},s)))},[e,t])}function aZ(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function oZ(e){let{to:t,replace:n,state:r,relative:i}=e;ad()||Ht(!1);let{future:s,static:a}=w.useContext(uo),{matches:o}=w.useContext(Gs),{pathname:l}=Ys(),u=Ar(),d=rE(t,nE(o,s.v7_relativeSplatPath),l,i==="path"),h=JSON.stringify(d);return w.useEffect(()=>u(JSON.parse(h),{replace:n,state:r,relative:i}),[u,h,i,n,r]),null}function We(e){Ht(!1)}function lZ(e){let{basename:t="/",children:n=null,location:r,navigationType:i=Ra.Pop,navigator:s,static:a=!1,future:o}=e;ad()&&Ht(!1);let l=t.replace(/^\/*/,"/"),u=w.useMemo(()=>({basename:l,navigator:s,static:a,future:hf({v7_relativeSplatPath:!1},o)}),[l,o,s,a]);typeof r=="string"&&(r=sd(r));let{pathname:d="/",search:h="",hash:f="",state:p=null,key:g="default"}=r,m=w.useMemo(()=>{let y=tE(d,l);return y==null?null:{location:{pathname:y,search:h,hash:f,state:p,key:g},navigationType:i}},[l,d,h,f,p,g,i]);return m==null?null:w.createElement(uo.Provider,{value:u},w.createElement(ux.Provider,{children:n,value:m}))}function cZ(e){let{children:t,location:n}=e;return GQ(sk(t),n)}new Promise(()=>{});function sk(e,t){t===void 0&&(t=[]);let n=[];
434return w.Children.forEach(e,(r,i)=>{if(!w.isValidElement(r))return;let s=[...t,i];if(r.type===w.Fragment){n.push.apply(n,sk(r.props.children,s));return}r.type!==We&&Ht(!1),!r.props.index||!r.props.children||Ht(!1);let a={id:r.props.id||s.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(a.children=sk(r.props.children,s)),n.push(a)}),n}/** 435 * React Router DOM v6.30.1 436 * 437 * Copyright (c) Remix Software Inc. 438 * 439 * This source code is licensed under the MIT license found in the 440 * LICENSE.md file in the root directory of this source tree. 441 * 442 * @license MIT 443 */function ak(){return ak=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ak.apply(this,arguments)}function uZ(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,s;for(s=0;s<r.length;s++)i=r[s],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function dZ(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function hZ(e,t){return e.button===0&&(!t||t==="_self")&&!dZ(e)}const fZ=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],pZ="6";try{window.__reactRouterVersion=pZ}catch{}const mZ="startTransition",N2=Rj[mZ];function gZ(e){let{basename:t,children:n,future:r,window:i}=e,s=w.useRef();s.current==null&&(s.current=bQ({window:i,v5Compat:!0}));let a=s.current,[o,l]=w.useState({action:a.action,location:a.location}),{v7_startTransition:u}=r||{},d=w.useCallback(h=>{u&&N2?N2(()=>l(h)):l(h)},[l,u]);return w.useLayoutEffect(()=>a.listen(d),[a,d]),w.useEffect(()=>aZ(r),[r]),w.createElement(lZ,{basename:t,children:n,location:o.location,navigationType:o.action,navigator:a,future:r})}const yZ=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",vZ=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ut=w.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:s,replace:a,state:o,target:l,to:u,preventScrollReset:d,viewTransition:h}=t,f=uZ(t,fZ),{basename:p}=w.useContext(uo),g,m=!1;if(typeof u=="string"&&vZ.test(u)&&(g=u,yZ))try{let b=new URL(window.location.href),S=u.startsWith("//")?new URL(b.protocol+u):new URL(u),k=tE(S.pathname,p);S.origin===b.origin&&k!=null?u=k+S.search+S.hash:m=!0}catch{}let y=HQ(u,{relative:i}),v=xZ(u,{replace:a,state:o,target:l,preventScrollReset:d,relative:i,viewTransition:h});function x(b){r&&r(b),b.defaultPrevented||v(b)}return w.createElement("a",ak({},f,{href:g||y,onClick:m||s?r:x,ref:n,target:l}))});var C2;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(C2||(C2={}));var A2;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(A2||(A2={}));function xZ(e,t){let{target:n,replace:r,state:i,preventScrollReset:s,relative:a,viewTransition:o}=t===void 0?{}:t,l=Ar(),u=Ys(),d=H3(e,{relative:a});return w.useCallback(h=>{if(hZ(h,n)){h.preventDefault();let f=r!==void 0?r:dy(u)===dy(d);l(e,{replace:f,state:i,preventScrollReset:s,relative:a,viewTransition:o})}},[u,l,d,r,i,n,e,s,a,o])}const Ce=e=>typeof e=="string",Ld=()=>{let e,t;const n=new Promise((r,i)=>{e=r,t=i});return n.resolve=e,n.reject=t,n},P2=e=>e==null?"":""+e,bZ=(e,t,n)=>{e.forEach(r=>{t[r]&&(n[r]=t[r])})},wZ=/###/g,O2=e=>e&&e.indexOf("###")>-1?e.replace(wZ,"."):e,R2=e=>!e||Ce(e),_h=(e,t,n)=>{const r=Ce(t)?t.split("."):t;let i=0;for(;i<r.length-1;){if(R2(e))return{};const s=O2(r[i]);!e[s]&&n&&(e[s]=new n),Object.prototype.hasOwnProperty.call(e,s)?e=e[s]:e={},++i}return R2(e)?{}:{obj:e,k:O2(r[i])}},I2=(e,t,n)=>{const{obj:r,k:i}=_h(e,t,Object);if(r!==void 0||t.length===1){r[i]=n;return}let s=t[t.length-1],a=t.slice(0,t.length-1),o=_h(e,a,Object);for(;o.obj===void 0&&a.length;)s=`${a[a.length-1]}.${s}`,a=a.slice(0,a.length-1),o=_h(e,a,Object),o!=null&&o.obj&&typeof o.obj[`${o.k}.${s}`]<"u"&&(o.obj=void 0);o.obj[`${o.k}.${s}`]=n},kZ=(e,t,n,r)=>{const{obj:i,k:s}=_h(e,t,Object);i[s]=i[s]||[],i[s].push(n)},fy=(e,t)=>{const{obj:n,k:r}=_h(e,t);if(n&&Object.prototype.hasOwnProperty.call(n,r))return n[r]},SZ=(e,t,n)=>
vendor: 4,220 bytes, line 443
443{const r=fy(e,n);return r!==void 0?r:fy(t,n)},Y3=(e,t,n)=>{for(const r in t)r!=="__proto__"&&r!=="constructor"&&(r in e?Ce(e[r])||e[r]instanceof String||Ce(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):Y3(e[r],t[r],n):e[r]=t[r]);return e},ql=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var jZ={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const _Z=e=>Ce(e)?e.replace(/[&<>"'\/]/g,t=>jZ[t]):e;class EZ{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const n=this.regExpMap.get(t);if(n!==void 0)return n;const r=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,r),this.regExpQueue.push(t),r}}const TZ=[" ",",","?","!",";"],NZ=new EZ(20),CZ=(e,t,n)=>{t=t||"",n=n||"";const r=TZ.filter(a=>t.indexOf(a)<0&&n.indexOf(a)<0);if(r.length===0)return!0;const i=NZ.getRegExp(`(${r.map(a=>a==="?"?"\\?":a).join("|")})`);let s=!i.test(e);if(!s){const a=e.indexOf(n);a>0&&!i.test(e.substring(0,a))&&(s=!0)}return s},ok=(e,t,n=".")=>{if(!e)return;if(e[t])return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0;const r=t.split(n);let i=e;for(let s=0;s<r.length;){if(!i||typeof i!="object")return;let a,o="";for(let l=s;l<r.length;++l)if(l!==s&&(o+=n),o+=r[l],a=i[o],a!==void 0){if(["string","number","boolean"].indexOf(typeof a)>-1&&l<r.length-1)continue;s+=l-s+1;break}i=a}return i},ff=e=>e==null?void 0:e.replace("_","-"),AZ={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){var n,r;(r=(n=console==null?void 0:console[e])==null?void 0:n.apply)==null||r.call(n,console,t)}};class py{constructor(t,n={}){this.init(t,n)}init(t,n={}){this.prefix=n.prefix||"i18next:",this.logger=t||AZ,this.options=n,this.debug=n.debug}log(...t){return this.forward(t,"log","",!0)}warn(...t){return this.forward(t,"warn","",!0)}error(...t){return this.forward(t,"error","")}deprecate(...t){return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}forward(t,n,r,i){return i&&!this.debug?null:(Ce(t[0])&&(t[0]=`${r}${this.prefix} ${t[0]}`),this.logger[n](t))}create(t){return new py(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new py(this.logger,t)}}var Gi=new py;let dx=class{constructor(){this.observers={}}on(t,n){return t.split(" ").forEach(r=>{this.observers[r]||(this.observers[r]=new Map);const i=this.observers[r].get(n)||0;this.observers[r].set(n,i+1)}),this}off(t,n){if(this.observers[t]){if(!n){delete this.observers[t];return}this.observers[t].delete(n)}}emit(t,...n){this.observers[t]&&Array.from(this.observers[t].entries()).forEach(([i,s])=>{for(let a=0;a<s;a++)i(...n)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([i,s])=>{for(let a=0;a<s;a++)i.apply(i,[t,...n])})}};class M2 extends dx{constructor(t,n={ns:["translation"],defaultNS:"translation"}){super(),this.data=t||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const n=this.options.ns.indexOf(t);n>-1&&this.options.ns.splice(n,1)}getResource(t,n,r,i={}){var u,d;const s=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,a=i.ignoreJSONStructure!==void 0?i.ignoreJSONStructure:this.options.ignoreJSONStructure;let o;t.indexOf(".")>-1?o=t.split("."):(o=[t,n],r&&(Array.isArray(r)?o.push(...r):Ce(r)&&s?o.push(...r.split(s)):o.push(r)));const l=fy(this.data,o);return!l&&!n&&!r&&t.indexOf(".")>-1&&(t=o[0],n=o[1],r=o.slice(2).join(".")),l||!a||!Ce(r)?l:ok((d=(u=this.data)==null?void 0:u[t])==null?void 0:d[n],r,s)}addResource(t,n,r,i,s={silent:!1}){const a=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator;let o=[t,n];r&&(o=o.concat(a?r.split(a):r)),t.indexOf(".")>-1&&(o=t.split("."),i=n,n=o[1]),this.addNamespaces(n),I2(this.data,o,i),s.silent||this.emit("added",t,n,r,i)}addResources(t,n,r,i={silent:!1}){for(const s in r)(Ce(r[s])||Array.isArray(r[s]))&&this.addResource(t,n,s,r[s],{silent:!0});
vendor: 1,544 bytes, line 443
443i.silent||this.emit("added",t,n,r)}addResourceBundle(t,n,r,i,s,a={silent:!1,skipCopy:!1}){let o=[t,n];t.indexOf(".")>-1&&(o=t.split("."),i=r,r=n,n=o[1]),this.addNamespaces(n);let l=fy(this.data,o)||{};a.skipCopy||(r=JSON.parse(JSON.stringify(r))),i?Y3(l,r,s):l={...l,...r},I2(this.data,o,l),a.silent||this.emit("added",t,n,r)}removeResourceBundle(t,n){this.hasResourceBundle(t,n)&&delete this.data[t][n],this.removeNamespaces(n),this.emit("removed",t,n)}hasResourceBundle(t,n){return this.getResource(t,n)!==void 0}getResourceBundle(t,n){return n||(n=this.options.defaultNS),this.getResource(t,n)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const n=this.getDataByLanguage(t);return!!(n&&Object.keys(n)||[]).find(i=>n[i]&&Object.keys(n[i]).length>0)}toJSON(){return this.data}}var X3={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,i){return e.forEach(s=>{var a;t=((a=this.processors[s])==null?void 0:a.process(t,n,r,i))??t}),t}};const Q3=Symbol("i18next/PATH_KEY");function PZ(){const e=[],t=Object.create(null);let n;return t.get=(r,i)=>{var s;return(s=n==null?void 0:n.revoke)==null||s.call(n),i===Q3?e:(e.push(i),n=Proxy.revocable(r,t),n.proxy)},Proxy.revocable(Object.create(null),t).proxy}function lk(e,t){const{[Q3]:n}=e(PZ());return n.join((t==null?void 0:t.keySeparator)??".")}const $2={},x0=e=>!Ce(e)&&typeof e!="boolean"&&typeof e!="number";class my extends dx{constructor(t,n={}){super(),bZ(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","
443i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Gi.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t,n={interpolation:{}}){const r={...n};if(t==null)return!1;const i=this.resolve(t,r);if((i==null?void 0:i.res)===void 0)return!1;const s=x0(i.res);return!(r.returnObjects===!1&&s)}extractFromKey(t,n){let r=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const i=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let s=n.ns||this.options.defaultNS||[];const a=r&&t.indexOf(r)>-1,o=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!CZ(t,r,i);if(a&&!o){const l=t.match(this.interpolator.nestingRegexp);if(l&&l.length>0)return{key:t,namespaces:Ce(s)?[s]:s};const u=t.split(r);(r!==i||r===i&&this.options.ns.indexOf(u[0])>-1)&&(s=u.shift()),t=u.join(i)}return{key:t,namespaces:Ce(s)?[s]:s}}translate(t,n,r){let i=typeof n=="object"?{...n}:n;if(typeof i!="object"&&this.options.overloadTranslationOptionHandler&&(i=this.options.overloadTranslationOptionHandler(arguments)),typeof i=="object"&&(i={...i}),i||(i={}),t==null)return"";typeof t=="function"&&(t=lk(t,{...this.options,...i})),Array.isArray(t)||(t=[String(t)]);const s=i.returnDetails!==void 0?i.returnDetails:this.options.returnDetails,a=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,{key:o,namespaces:l}=this.extractFromKey(t[t.length-1],i),u=l[l.length-1];let d=i.nsSeparator!==void 0?i.nsSeparator:this.options.nsSeparator;d===void 0&&(d=":");const h=i.lng||this.language,f=i.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if((h==null?void 0:h.toLowerCase())==="cimode")return f?s?{res:`${u}${d}${o}`,usedKey:o,exactUsedKey:o,usedLng:h,usedNS:u,usedParams:this.getUsedParamsDetails(i)}:`${u}${d}${o}`:s?{res:o,usedKey:o,exactUsedKey:o,usedLng:h,usedNS:u,usedParams:this.getUsedParamsDetails(i)}:o;const p=this.resolve(t,i);let g=p==null?void 0:p.res;const m=(p==null?void 0:p.usedKey)||o,y=(p==null?void 0:p.exactUsedKey)||o,v=["[object Number]","[object Function]","[object RegExp]"],x=i.joinArrays!==void 0?i.joinArrays:this.options.joinArrays,b=!this.i18nFormat||this.i18nFormat.handleAsObject,S=i.count!==void 0&&!Ce(i.count),k=my.hasDefaultValue(i),j=S?this.pluralResolver.getSuffix(h,i.count,i):"",_=i.ordinal&&S?this.pluralResolver.getSuffix(h,i.count,{ordinal:!1}):"",E=S&&!i.ordinal&&i.count===0,T=E&&i[`defaultValue${this.options.pluralSeparator}zero`]||i[`defaultValue${j}`]||i[`defaultValue${_}`]||i.defaultValue;let N=g;b&&!g&&k&&(N=T);const P=x0(N),C=Object.prototype.toString.apply(N);if(b&&N&&P&&v.indexOf(C)<0&&!(Ce(x)&&Array.isArray(N))){if(!i.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const M=this.options.returnedObjectHandler?this.options.returnedObjectHandler(m,N,{...i,ns:l}):`key '${o} (${this.language})' returned an object instead of string.`;return s?(p.res=M,p.usedParams=this.getUsedParamsDetails(i),p):M}if(a){const M=Array.isArray(N),R=M?[]:{},D=M?y:m;for(const L in N)if(Object.prototype.hasOwnProperty.call(N,L)){const B=`${D}${a}${L}`;k&&!g?R[L]=this.translate(B,{...i,defaultValue:x0(T)?T[L]:void 0,joinArrays:!1,ns:l}):R[L]=this.translate(B,{...i,joinArrays:!1,ns:l}),R[L]===B&&(R[L]=N[L])}g=R}}else if(b&&Ce(x)&&Array.isArray(g))g=g.join(x),g&&(g=this.extendTranslation(g,t,i,r));else{let M=!1,R=!1;!this.isValidLookup(g)&&k&&(M=!0,g=T),this.isValidLookup(g)||(R=!0,g=o);const L=(i.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&R?void 0:g,B=k&&T!==g&&this.options.updateMissing;if(R||M||B){if(this.logger.log(B?"updateKey":"missingKey",h,u,o,B?T:g),a){const z=this.resolve(o,{...i,keySeparator:!1});z&&z.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let I=[];const O=this.languageUtils.getFallbackCodes(this.options.fallbackLng,i.lng||this.language);if(this.options.saveMissingTo==="fallback"&&O&&O[0])for(let z=0;z<O.length;z++)I.push(O[z]);else this.options.saveMissingTo==="all"?I=this.languageUtils.toResolveHierarchy(i.lng||this.language):I.push(i.lng||this.language);const V=(z,q,X)=>{var xe;const J=k&&X!==g?X:L;this.options.missingKeyHandler?this.options.missingKeyHandler(z,u,q,J,B,i):(xe=this.backendConnector)!=null&&xe.saveMissing&&this.backendConnector.saveMissing(z,u,q,J,B,i),this.emit
vendor: 33,319 bytes, line 443
443("missingKey",z,u,q,g)};this.options.saveMissing&&(this.options.saveMissingPlurals&&S?I.forEach(z=>{const q=this.pluralResolver.getSuffixes(z,i);E&&i[`defaultValue${this.options.pluralSeparator}zero`]&&q.indexOf(`${this.options.pluralSeparator}zero`)<0&&q.push(`${this.options.pluralSeparator}zero`),q.forEach(X=>{V([z],o+X,i[`defaultValue${X}`]||T)})}):V(I,o,T))}g=this.extendTranslation(g,t,i,p,r),R&&g===o&&this.options.appendNamespaceToMissingKey&&(g=`${u}${d}${o}`),(R||M)&&this.options.parseMissingKeyHandler&&(g=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${u}${d}${o}`:o,M?g:void 0,i))}return s?(p.res=g,p.usedParams=this.getUsedParamsDetails(i),p):g}extendTranslation(t,n,r,i,s){var l,u;if((l=this.i18nFormat)!=null&&l.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const d=Ce(t)&&(((u=r==null?void 0:r.interpolation)==null?void 0:u.skipOnVariables)!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let h;if(d){const p=t.match(this.interpolator.nestingRegexp);h=p&&p.length}let f=r.replace&&!Ce(r.replace)?r.replace:r;if(this.options.interpolation.defaultVariables&&(f={...this.options.interpolation.defaultVariables,...f}),t=this.interpolator.interpolate(t,f,r.lng||this.language||i.usedLng,r),d){const p=t.match(this.interpolator.nestingRegexp),g=p&&p.length;h<g&&(r.nest=!1)}!r.lng&&i&&i.res&&(r.lng=this.language||i.usedLng),r.nest!==!1&&(t=this.interpolator.nest(t,(...p)=>(s==null?void 0:s[0])===p[0]&&!r.context?(this.logger.warn(`It seems you are nesting recursively key: ${p[0]} in key: ${n[0]}`),null):this.translate(...p,n),r)),r.interpolation&&this.interpolator.reset()}const a=r.postProcess||this.options.postProcess,o=Ce(a)?[a]:a;return t!=null&&(o!=null&&o.length)&&r.applyPostProcessor!==!1&&(t=X3.handle(o,t,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...i,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),t}resolve(t,n={}){let r,i,s,a,o;return Ce(t)&&(t=[t]),t.forEach(l=>{if(this.isValidLookup(r))return;const u=this.extractFromKey(l,n),d=u.key;i=d;let h=u.namespaces;this.options.fallbackNS&&(h=h.concat(this.options.fallbackNS));const f=n.count!==void 0&&!Ce(n.count),p=f&&!n.ordinal&&n.count===0,g=n.context!==void 0&&(Ce(n.context)||typeof n.context=="number")&&n.context!=="",m=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);h.forEach(y=>{var v,x;this.isValidLookup(r)||(o=y,!$2[`${m[0]}-${y}`]&&((v=this.utils)!=null&&v.hasLoadedNamespace)&&!((x=this.utils)!=null&&x.hasLoadedNamespace(o))&&($2[`${m[0]}-${y}`]=!0,this.logger.warn(`key "${i}" for languages "${m.join(", ")}" won't get resolved as namespace "${o}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),m.forEach(b=>{var j;if(this.isValidLookup(r))return;a=b;const S=[d];if((j=this.i18nFormat)!=null&&j.addLookupKeys)this.i18nFormat.addLookupKeys(S,d,b,y,n);else{let _;f&&(_=this.pluralResolver.getSuffix(b,n.count,n));const E=`${this.options.pluralSeparator}zero`,T=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(f&&(n.ordinal&&_.indexOf(T)===0&&S.push(d+_.replace(T,this.options.pluralSeparator)),S.push(d+_),p&&S.push(d+E)),g){const N=`${d}${this.options.contextSeparator||"_"}${n.context}`;S.push(N),f&&(n.ordinal&&_.indexOf(T)===0&&S.push(N+_.replace(T,this.options.pluralSeparator)),S.push(N+_),p&&S.push(N+E))}}let k;for(;k=S.pop();)this.isValidLookup(r)||(s=k,r=this.getResource(b,y,k,n))}))})}),{res:r,usedKey:i,exactUsedKey:s,usedLng:a,usedNS:o}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,r,i={}){var s;return(s=this.i18nFormat)!=null&&s.getResource?this.i18nFormat.getResource(t,n,r,i):this.resourceStore.getResource(t,n,r,i)}getUsedParamsDetails(t={}){const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=t.replace&&!Ce(t.replace);let i=r?t.replace:t;if(r&&typeof t.count<"u"&&(i.count=t.count),this.options.interpolation.defaultVariables&&(i={...this.options.interpolation.defaultVariables,...i}),!r){i={...i};for(const s of n)delete i[s]}return i}static hasDefaultValue(t){const n="defaultValue";for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&n===r.substring(0,n.length)&&t[r]!==void 0)return!0;return!1}}class D2{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Gi.create("languageUtils")}getScriptPartFromCode(t){if(t=ff(t),!t||t.indexOf("-")<0)return null;const n=t.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(t){if(t=ff(t),!t||t.indexOf("-")<0)return t;const n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(Ce(t)&&t.indexOf("-")>-1){let n;try{n=Intl.getCanonicalLocales(t)[0]}catch{}return n&&this.options.lowerCaseLng&&(n=n.toLowerCase()),n||(this.options.lowerCaseLng?t.toLowerCase():t)}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let n;return t.forEach(r=>{if(n)return;const i=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(i))&&(n=i)}),!n&&this.options.supportedLngs&&t.forEach(r=>{if(n)return;const i=this.getScriptPartFromCode(r);if(this.isSupportedCode(i))return n=i;const s=this.getLanguagePartFromCode(r);if(this.isSupportedCode(s))return n=s;n=this.options.supportedLngs.find(a=>{if(a===s)return a;if(!(a.indexOf("-")<0&&s.indexOf("-")<0)&&(a.indexOf("-")>0&&s.indexOf("-")<0&&a.substring(0,a.indexOf("-"))===s||a.indexOf(s)===0&&s.length>1))return a})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),Ce(t)&&(t=[t]),Array.isArray(t))return t;if(!n)return t.default||[];let r=t[n];return r||(r=t[this.getScriptPartFromCode(n)]),r||(r=t[this.formatLanguageCode(n)]),r||(r=t[this.getLanguagePartFromCode(n)]),r||(r=t.default),r||[]}toResolveHierarchy(t,n){const r=this.getFallbackCodes((n===!1?[]:n)||this.options.fallbackLng||[],t),i=[],s=a=>{a&&(this.isSupportedCode(a)?i.push(a):this.logger.warn(`rejecting language code not found in supportedLngs: ${a}`))};return Ce(t)&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&s(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&s(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&s(this.getLanguagePartFromCode(t))):Ce(t)&&s(this.formatLanguageCode(t)),r.forEach(a=>{i.indexOf(a)<0&&s(this.formatLanguageCode(a))}),i}}const L2={zero:0,one:1,two:2,few:3,many:4,other:5},F2={select:e=>e===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class OZ{constructor(t,n={}){this.languageUtils=t,this.options=n,this.logger=Gi.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(t,n={}){const r=ff(t==="dev"?"en":t),i=n.ordinal?"ordinal":"cardinal",s=JSON.stringify({cleanedCode:r,type:i});if(s in this.pluralRulesCache)return this.pluralRulesCache[s];let a;try{a=new Intl.PluralRules(r,{type:i})}catch{if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),F2;if(!t.match(/-|_/))return F2;const l=this.languageUtils.getLanguagePartFromCode(t);a=this.getRule(l,n)}return this.pluralRulesCache[s]=a,a}needsPlural(t,n={}){let r=this.getRule(t,n);return r||(r=this.getRule("dev",n)),(r==null?void 0:r.resolvedOptions().pluralCategories.length)>1}getPluralFormsOfKey(t,n,r={}){return this.getSuffixes(t,r).map(i=>`${n}${i}`)}getSuffixes(t,n={}){let r=this.getRule(t,n);return r||(r=this.getRule("dev",n)),r?r.resolvedOptions().pluralCategories.sort((i,s)=>L2[i]-L2[s]).map(i=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${i}`):[]}getSuffix(t,n,r={}){const i=this.getRule(t,r);return i?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${i.select(n)}`:(this.logger.warn(`no plural rule found for: ${t}`),this.getSuffix("dev",n,r))}}const B2=(e,t,n,r=".",i=!0)=>{let s=SZ(e,t,n);return!s&&i&&Ce(n)&&(s=ok(e,n,r),s===void 0&&(s=ok(t,n,r))),s},b0=e=>e.replace(/\$/g,"$$$$");class V2{constructor(t={}){var n;this.logger=Gi.create("interpolator"),this.options=t,this.format=((n=t==null?void 0:t.interpolation)==null?void 0:n.format)||(r=>r),this.init(t)}init(t={}){t.interpolation||(t.interpolation={escapeValue:!0});const{escape:n,escapeValue:r,useRawValueToEscape:i,prefix:s,prefixEscaped:a,suffix:o,suffixEscaped:l,formatSeparator:u,unescapeSuffix:d,unescapePrefix:h,nestingPrefix:f,nestingPrefixEscaped:p,nestingSuffix:g,nestingSuffixEscaped:m,nestingOptionsSeparator:y,maxReplaces:v,alwaysFormat:x}=t.interpolation;this.escape=n!==void 0?n:_Z,this.escapeValue=r!==void 0?r:!0,this.useRawValueToEscape=i!==void 0?i:!1,this.prefix=s?ql(s):a||"{{",this.suffix=o?ql(o):l||"}}",this.formatSeparator=u||",",this.unescapePrefix=d?"":h||"-",this.unescapeSuffix=this.unescapePrefix?"":d||"",this.nestingPrefix=f?ql(f):p||ql("$t("),this.nestingSuffix=g?ql(g):m||ql(")"),this.nestingOptionsSeparator=y||",",this.maxReplaces=v||1e3,this.alwaysFormat=x!==void 0?x:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(n,r)=>(n==null?void 0:n.source)===r?(n.lastIndex=0,n):new RegExp(r,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(t,n,r,i){var p;let s,a,o;const l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},u=g=>{if(g.indexOf(this.formatSeparator)<0){const x=B2(n,l,g,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(x,void 0,r,{...i,...n,interpolationkey:g}):x}const m=g.split(this.formatSeparator),y=m.shift().trim(),v=m.join(this.formatSeparator).trim();return this.format(B2(n,l,y,this.options.keySeparator,this.options.ignoreJSONStructure),v,r,{...i,...n,interpolationkey:y})};this.resetRegExp();const d=(i==null?void 0:i.missingInterpolationHandler)||this.options.missingInterpolationHandler,h=((p=i==null?void 0:i.interpolation)==null?void 0:p.skipOnVariables)!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:g=>b0(g)},{regex:this.regexp,safeValue:g=>this.escapeValue?b0(this.escape(g)):b0(g)}].forEach(g=>{for(o=0;s=g.regex.exec(t);){const m=s[1].trim();if(a=u(m),a===void 0)if(typeof d=="function"){const v=d(t,s,i);a=Ce(v)?v:""}else if(i&&Object.prototype.hasOwnProperty.call(i,m))a="";else if(h){a=s[0];continue}else this.logger.warn(`missed to pass in variable ${m} for interpolating ${t}`),a="";else!Ce(a)&&!this.useRawValueToEscape&&(a=P2(a));const y=g.safeValue(a);if(t=t.replace(s[0],y),h?(g.regex.lastIndex+=a.length,g.regex.lastIndex-=s[0].length):g.regex.lastIndex=0,o++,o>=this.maxReplaces)break}}),t}nest(t,n,r={}){let i,s,a;const o=(l,u)=>{const d=this.nestingOptionsSeparator;if(l.indexOf(d)<0)return l;const h=l.split(new RegExp(`${d}[ ]*{`));let f=`{${h[1]}`;l=h[0],f=this.interpolate(f,a);const p=f.match(/'/g),g=f.match(/"/g);(((p==null?void 0:p.length)??0)%2===0&&!g||g.length%2!==0)&&(f=f.replace(/'/g,'"'));try{a=JSON.parse(f),u&&(a={...u,...a})}catch(m){return this.logger.warn(`failed parsing options string in nesting for key ${l}`,m),`${l}${d}${f}`}return a.defaultValue&&a.defaultValue.indexOf(this.prefix)>-1&&delete a.defaultValue,l};for(;i=this.nestingRegexp.exec(t);){let l=[];a={...r},a=a.replace&&!Ce(a.replace)?a.replace:a,a.applyPostProcessor=!1,delete a.defaultValue;const u=/{.*}/.test(i[1])?i[1].lastIndexOf("}")+1:i[1].indexOf(this.formatSeparator);if(u!==-1&&(l=i[1].slice(u).split(this.formatSeparator).map(d=>d.trim()).filter(Boolean),i[1]=i[1].slice(0,u)),s=n(o.call(this,i[1].trim(),a),a),s&&i[0]===t&&!Ce(s))return s;Ce(s)||(s=P2(s)),s||(this.logger.warn(`missed to resolve ${i[1]} for nesting ${t}`),s=""),l.length&&(s=l.reduce((d,h)=>this.format(d,h,r.lng,{...r,interpolationkey:i[1].trim()}),s.trim())),t=t.replace(i[0],s),this.regexp.lastIndex=0}return t}}const RZ=e=>{let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const r=e.split("(");t=r[0].toLowerCase().trim();const i=r[1].substring(0,r[1].length-1);t==="currency"&&i.indexOf(":")<0?n.currency||(n.currency=i.trim()):t==="relativetime"&&i.indexOf(":")<0?n.range||(n.range=i.trim()):i.split(";").forEach(a=>{if(a){const[o,...l]=a.split(":"),u=l.join(":").trim().replace(/^'+|'+$/g,""),d=o.trim();n[d]||(n[d]=u),u==="false"&&(n[d]=!1),u==="true"&&(n[d]=!0),isNaN(u)||(n[d]=parseInt(u,10))}})}return{formatName:t,formatOptions:n}},q2=e=>{const t={};return(n,r,i)=>{let s=i;i&&i.interpolationkey&&i.formatParams&&i.formatParams[i.interpolationkey]&&i[i.interpolationkey]&&(s={...s,[i.interpolationkey]:void 0});const a=r+JSON.stringify(s);let o=t[a];return o||(o=e(ff(r),i),t[a]=o),o(n)}},IZ=e=>(t,n,r)=>e(ff(n),r)(t);class MZ{constructor(t={}){this.logger=Gi.create("formatter"),this.options=t,this.init(t)}init(t,n={interpolation:{}}){this.formatSeparator=n.interpolation.formatSeparator||",";const r=n.cacheInBuiltFormats?q2:IZ;this.formats={number:r((i,s)=>{const a=new Intl.NumberFormat(i,{...s});return o=>a.format(o)}),currency:r((i,s)=>{const a=new Intl.NumberFormat(i,{...s,style:"currency"});return o=>a.format(o)}),datetime:r((i,s)=>{const a=new Intl.DateTimeFormat(i,{...s});return o=>a.format(o)}),relativetime:r((i,s)=>{const a=new Intl.RelativeTimeFormat(i,{...s});return o=>a.format(o,s.range||"day")}),list:r((i,s)=>{const a=new Intl.ListFormat(i,{...s});return o=>a.format(o)})}}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=q2(n)}format(t,n,r,i={}){const s=n.split(this.formatSeparator);if(s.length>1&&s[0].indexOf("(")>1&&s[0].indexOf(")")<0&&s.find(o=>o.indexOf(")")>-1)){const o=s.findIndex(l=>l.indexOf(")")>-1);s[0]=[s[0],...s.splice(1,o)].join(this.formatSeparator)}return s.reduce((o,l)=>{var h;const{formatName:u,formatOptions:d}=RZ(l);if(this.formats[u]){let f=o;try{const p=((h=i==null?void 0:i.formatParams)==null?void 0:h[i.interpolationkey])||{},g=p.locale||p.lng||i.locale||i.lng||r;f=this.formats[u](o,g,{...d,...i,...p})}catch(p){this.logger.warn(p)}return f}else this.logger.warn(`there was no format function for ${u}`);return o},t)}}const $Z=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)};class DZ extends dx{constructor(t,n,r,i={}){var s,a;super(),this.backend=t,this.store=n,this.services=r,this.languageUtils=r.languageUtils,this.options=i,this.logger=Gi.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=i.maxParallelReads||10,this.readingCalls=0,this.maxRetries=i.maxRetries>=0?i.maxRetries:5,this.retryTimeout=i.retryTimeout>=1?i.retryTimeout:350,this.state={},this.queue=[],(a=(s=this.backend)==null?void 0:s.init)==null||a.call(s,r,i.backend,i)}queueLoad(t,n,r,i){const s={},a={},o={},l={};return t.forEach(u=>{let d=!0;n.forEach(h=>{const f=`${u}|${h}`;!r.reload&&this.store.hasResourceBundle(u,h)?this.state[f]=2:this.state[f]<0||(this.state[f]===1?a[f]===void 0&&(a[f]=!0):(this.state[f]=1,d=!1,a[f]===void 0&&(a[f]=!0),s[f]===void 0&&(s[f]=!0),l[h]===void 0&&(l[h]=!0)))}),d||(o[u]=!0)}),(Object.keys(s).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:i}),{toLoad:Object.keys(s),pending:Object.keys(a),toLoadLanguages:Object.keys(o),toLoadNamespaces:Object.keys(l)}}loaded(t,n,r){const i=t.split("|"),s=i[0],a=i[1];n&&this.emit("failedLoading",s,a,n),!n&&r&&this.store.addResourceBundle(s,a,r,void 0,void 0,{skipCopy:!0}),this.state[t]=n?-1:2,n&&r&&(this.state[t]=0);const o={};this.queue.forEach(l=>{kZ(l.loaded,[s],a),$Z(l,t),n&&l.errors.push(n),l.pendingCount===0&&!l.done&&(Object.keys(l.loaded).forEach(u=>{o[u]||(o[u]={});const d=l.loaded[u];d.length&&d.forEach(h=>{o[u][h]===void 0&&(o[u][h]=!0)})}),l.done=!0,l.errors.length?l.callback(l.errors):l.callback())}),this.emit("loaded",o),this.queue=this.queue.filter(l=>!l.done)}read(t,n,r,i=0,s=this.retryTimeout,a){if(!t.length)return a(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:n,fcName:r,tried:i,wait:s,callback:a});return}this.readingCalls++;const o=(u,d)=>{if(this.readingCalls--,this.waitingReads.length>0){const h=this.waitingReads.shift();this.read(h.lng,h.ns,h.fcName,h.tried,h.wait,h.callback)}if(u&&d&&i<this.maxRetries){setTimeout(()=>{this.read.call(this,t,n,r,i+1,s*2,a)},s);return}a(u,d)},l=this.backend[r].bind(this.backend);if(l.length===2){try{const u=l(t,n);u&&typeof u.then=="function"?u.then(d=>o(null,d)).catch(o):o(null,u)}catch(u){o(u)}return}return l(t,n,o)}prepareLoading(t,n,r={},i){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),i&&i();Ce(t)&&(t=this.languageUtils.toResolveHierarchy(t)),Ce(n)&&(n=[n]);const s=this.queueLoad(t,n,r,i);if(!s.toLoad.length)return s.pending.length||i(),null;s.toLoad.forEach(a=>{this.loadOne(a)})}load(t,n,r){this.prepareLoading(t,n,{},r)}reload(t,n,r){this.prepareLoading(t,n,{reload:!0},r)}loadOne(t,n=""){const r=t.split("|"),i=r[0],s=r[1];this.read(i,s,"read",void 0,void 0,(a,o)=>{a&&this.logger.warn(`${n}loading namespace ${s} for language ${i} failed`,a),!a&&o&&this.logger.log(`${n}loaded namespace ${s} for language ${i}`,o),this.loaded(t,a,o)})}saveMissing(t,n,r,i,s,a={},o=()=>{}){var l,u,d,h,f;if((u=(l=this.services)==null?void 0:l.utils)!=null&&u.hasLoadedNamespace&&!((h=(d=this.services)==null?void 0:d.utils)!=null&&h.hasLoadedNamespace(n))){this.logger.warn(`did not save key "${r}" as the namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(r==null||r==="")){if((f=this.backend)!=null&&f.create){const p={...a,isUpdate:s},g=this.backend.create.bind(this.backend);if(g.length<6)try{let m;g.length===5?m=g(t,n,r,i,p):m=g(t,n,r,i),m&&typeof m.then=="function"?m.then(y=>o(null,y)).catch(o):o(null,m)}catch(m){o(m)}else g(t,n,r,i,o,p)}!t||!t[0]||this.store.addResource(t[0],n,r,i)}}}const w0=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if(typeof e[1]=="object"&&(t=e[1]),Ce(e[1])&&(t.defaultValue=e[1]),Ce(e[2])&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){const n=e[3]||e[2];Object.keys(n).forEach(r=>{t[r]=n[r]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),U2=e=>{var t,n;return Ce(e.ns)&&(e.ns=[e.ns]),Ce(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),Ce(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),((n=(t=e.supportedLngs)==null?void 0:t.indexOf)==null?void 0:n.call(t,"cimode"))<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),typeof e.initImmediate=="boolean"&&(e.initAsync=e.initImmediate),e},jm=()=>{},LZ=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})};class Eh extends dx{constructor(t={},n){if(super(),this.options=U2(t),this.services={},this.logger=Gi,this.modules={external:[]},LZ(this),n&&!this.isInitialized&&!t.isClone){if(!this.options.initAsync)return this.init(t,n),this;setTimeout(()=>{this.init(t,n)},0)}}init(t={},n){this.isInitializing=!0,typeof t=="function"&&(n=t,t={}),t.defaultNS==null&&t.ns&&(Ce(t.ns)?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));const r=w0();this.options={...r,...this.options,...U2(t)},this.options.interpolation={...r.interpolation,...this.options.interpolation},t.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=t.keySeparator),t.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=t.nsSeparator),typeof this.options.overloadTranslationOptionHandler!="function"&&(this.options.overloadTranslationOptionHandler=r.overloadTranslationOptionHandler),this.options.debug===!0&&typeof console<"u"&&console.warn("i18next is maintained with support from locize.com â consider powering your project with managed localization (AI, CDN, integrations): https://locize.com");const i=u=>u?typeof u=="function"?new u:u:null;if(!this.options.isClone){this.modules.logger?Gi.init(i(this.modules.logger),this.options):Gi.init(null,this.options);let u;this.modules.formatter?u=this.modules.formatter:u=MZ;const d=new D2(this.options);this.store=new M2(this.options.resources,this.options);const h=this.services;h.logger=Gi,h.resourceStore=this.store,h.languageUtils=d,h.pluralResolver=new OZ(d,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),this.options.interpolation.format&&this.options.interpolation.format!==r.interpolation.format&&this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"),u&&(!this.options.interpolation.format||this.options.interpolation.format===r.interpolation.format)&&(h.formatter=i(u),h.formatter.init&&h.formatter.init(h,this.options),this.options.interpolation.format=h.formatter.format.bind(h.formatter)),h.interpolator=new V2(this.options),h.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},h.backendConnector=new DZ(i(this.modules.backend),h.resourceStore,h,this.options),h.backendConnector.on("*",(p,...g)=>{this.emit(p,...g)}),this.modules.languageDetector&&(h.languageDetector=i(this.modules.languageDetector),h.languageDetector.init&&h.languageDetector.init(h,this.options.detection,this.options)),this.modules.i18nFormat&&(h.i18nFormat=i(this.modules.i18nFormat),h.i18nFormat.init&&h.i18nFormat.init(this)),this.translator=new my(this.services,this.options),this.translator.on("*",(p,...g)=>{this.emit(p,...g)}),this.modules.external.forEach(p=>{p.init&&p.init(this)})}if(this.format=this.options.interpolation.format,n||(n=jm),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const u=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);u.length>0&&u[0]!=="dev"&&(this.options.lng=u[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(u=>{this[u]=(...d)=>this.store[u](...d)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(u=>{this[u]=(...d)=>(this.store[u](...d),this)});const o=Ld(),l=()=>{const u=(d,h)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),o.resolve(h),n(d,h)};if(this.languages&&!this.isInitialized)return u(null,this.t.bind(this));this.changeLanguage(this.options.lng,u)};return this.options.resources||!this.options.initAsync?l():setTimeout(l,0),o}loadResources(t,n=jm){var s,a;let r=n;const i=Ce(t)?t:this.language;if(typeof t=="function"&&(r=t),!this.options.resources||this.options.partialBundledLanguages){if((i==null?void 0:i.toLowerCase())==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const o=[],l=u=>{if(!u||u==="cimode")return;this.services.languageUtils.toResolveHierarchy(u).forEach(h=>{h!=="cimode"&&o.indexOf(h)<0&&o.push(h)})};i?l(i):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(d=>l(d)),(a=(s=this.options.preload)==null?void 0:s.forEach)==null||a.call(s,u=>l(u)),this.services.backendConnector.load(o,this.options.ns,u=>{!u&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(u)})}else r(null)}reloadResources(t,n,r){const i=Ld();return typeof t=="function"&&(r=t,t=void 0),typeof n=="function"&&(r=n,n=void 0),t||(t=this.languages),n||(n=this.options.ns),r||(r=jm),this.services.backendConnector.reload(t,n,s=>{i.resolve(),r(s)}),i}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&X3.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1)){for(let n=0;n<this.languages.length;n++){const r=this.languages[n];if(!(["cimode","dev"].indexOf(r)>-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}!this.resolvedLanguage&&this.languages.indexOf(t)<0&&this.store.hasLanguageSomeTranslations(t)&&(this.resolvedLanguage=t,this.languages.unshift(t))}}changeLanguage(t,n){this.isLanguageChangingTo=t;const r=Ld();this.emit("languageChanging",t);const i=o=>{this.language=o,this.languages=this.services.languageUtils.toResolveHierarchy(o),this.resolvedLanguage=void 0,this.setResolvedLanguage(o)},s=(o,l)=>{l?this.isLanguageChangingTo===t&&(i(l),this.translator.changeLanguage(l),this.isLanguageChangingTo=void 0,this.emit("languageChanged",l),this.logger.log("languageChanged",l)):this.isLanguageChangingTo=void 0,r.resolve((...u)=>this.t(...u)),n&&n(o,(...u)=>this.t(...u))},a=o=>{var d,h;!t&&!o&&this.services.languageDetector&&(o=[]);const l=Ce(o)?o:o&&o[0],u=this.store.hasLanguageSomeTranslations(l)?l:this.services.languageUtils.getBestMatchFromCodes(Ce(o)?[o]:o);u&&(this.language||i(u),this.translator.language||this.translator.changeLanguage(u),(h=(d=this.services.languageDetector)==null?void 0:d.cacheUserLanguage)==null||h.call(d,u)),this.loadResources(u,f=>{s(f,u)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?a(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(t),r}getFixedT(t,n,r){const i=(s,a,...o)=>{let l;typeof a!="object"?l=this.options.overloadTranslationOptionHandler([s,a].concat(o)):l={...a},l.lng=l.lng||i.lng,l.lngs=l.lngs||i.lngs,l.ns=l.ns||i.ns,l.keyPrefix!==""&&(l.keyPrefix=l.keyPrefix||r||i.keyPrefix);const u=this.options.keySeparator||".";let d;return l.keyPrefix&&Array.isArray(s)?d=s.map(h=>(typeof h=="function"&&(h=lk(h,{...this.options,...a})),`${l.keyPrefix}${u}${h}`)):(typeof s=="function"&&(s=lk(s,{...this.options,...a})),d=l.keyPrefix?`${l.keyPrefix}${u}${s}`:s),this.t(d,l)};return Ce(t)?i.lng=t:i.lngs=t,i.ns=n,i.keyPrefix=r,i}t(...t){var n;return(n=this.translator)==null?void 0:n.translate(...t)}exists(...t){var n;return(n=this.translator)==null?void 0:n.exists(...t)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t,n={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const r=n.lng||this.resolvedLanguage||this.languages[0],i=this.options?this.options.fallbackLng:!1,s=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const a=(o,l)=>{const u=this.services.backendConnector.state[`${o}|${l}`];return u===-1||u===0||u===2};if(n.precheck){const o=n.precheck(this,a);if(o!==void 0)return o}return!!(this.hasResourceBundle(r,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||a(r,t)&&(!i||a(s,t)))}loadNamespaces(t,n){const r=Ld();return this.options.ns?(Ce(t)&&(t=[t]),t.forEach(i=>{this.options.ns.indexOf(i)<0&&this.options.ns.push(i)}),this.loadResources(i=>{r.resolve(),n&&n(i)}),r):(n&&n(),Promise.resolve())}loadLanguages(t,n){const r=Ld();Ce(t)&&(t=[t]);const i=this.options.preload||[],s=t.filter(a=>i.indexOf(a)<0&&this.services.languageUtils.isSupportedCode(a));return s.length?(this.options.preload=i.concat(s),this.loadResources(a=>{r.resolve(),n&&n(a)}),r):(n&&n(),Promise.resolve())}dir(t){var i,s;if(t||(t=this.resolvedLanguage||(((i=this.languages)==null?void 0:i.length)>0?this.languages[0]:this.language)),!t)return"rtl";try{const a=new Intl.Locale(t);if(a&&a.getTextInfo){const o=a.getTextInfo();if(o&&o.direction)return o.direction}}catch{}const n=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],r=((s=this.services)==null?void 0:s.languageUtils)||new D2(w0());return t.toLowerCase().indexOf("-latn")>1?"ltr":n.indexOf(r.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(t={},n){const r=new Eh(t,n);return r.createInstance=Eh.createInstance,r}cloneInstance(t={},n=jm){const r=t.forkResourceStore;r&&delete t.forkResourceStore;const i={...this.options,...t,isClone:!0},s=new Eh(i);if((t.debug!==void 0||t.prefix!==void 0)&&(s.logger=s.logger.clone(t)),["store","services","language"].forEach(o=>{s[o]=this[o]}),s.services={...this.services},s.services.utils={hasLoadedNamespace:s.hasLoadedNamespace.bind(s)},r){const o=Object.keys(this.store.data).reduce((l,u)=>(l[u]={...this.store.data[u]},l[u]=Object.keys(l[u]).reduce((d,h)=>(d[h]={...l[u][h]},d),l[u]),l),{});s.store=new M2(o,i),s.services.resourceStore=s.store}if(t.interpolation){const l={...w0().interpolation,...this.options.interpolation,...t.interpolation},u={...i,interpolation:l};s.services.interpolator=new V2(u)}return s.translator=new my(s.services,i),s.translator.on("*",(o,...l)=>{s.emit(o,...l)}),s.init(i,n),s.translator.options=i,s.translator.backendConnector.services.utils={hasLoadedNamespace:s.hasLoadedNamespace.bind(s)},s}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const Ln=Eh.createInstance();Ln.createInstance;Ln.dir;Ln.init;Ln.loadResources;Ln.reloadResources;Ln.use;Ln.changeLanguage;Ln.getFixedT;Ln.t;Ln.exists;Ln.setDefaultNamespace;Ln.hasLoadedNamespace;Ln.loadNamespaces;Ln.loadLanguages;const FZ=(e,t,n,r)=>{var s,a,o,l;const i=[n,{code:t,...r||{}}];if((a=(s=e==null?void 0:e.services)==null?void 0:s.logger)!=null&&a.forward)return e.services.logger.forward(i,"warn","react-i18next::",!0);wl(i[0])&&(i[0]=`react-i18next:: ${i[0]}`),(l=(o=e==null?void 0:e.services)==null?void 0:o.logger)!=null&&l.warn?e.services.logger.warn(...i):console!=null&&console.warn&&console.warn(...i)},W2={},Z3=(e,t,n,r)=>{wl(n)&&W2[n]||(wl(n)&&(W2[n]=new Date),FZ(e,t,n,r))},J3=(e,t)=>()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout(()=>{e.off("initialized",n)},0),t()};e.on("initialized",n)}},ck=(e,t,n)=>{e.loadNamespaces(t,J3(e,n))},z2=(e,t,n,r)=>{if(wl(n)&&(n=[n]),e.options.preload&&e.options.preload.indexOf(t)>-1)return ck(e,n,r);
443n.forEach(i=>{e.options.ns.indexOf(i)<0&&e.options.ns.push(i)}),e.loadLanguages(t,J3(e,r))},BZ=(e,t,n={})=>!t.languages||!t.languages.length?(Z3(t,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:t.languages}),!0):t.hasLoadedNamespace(e,{lng:n.lng,precheck:(r,i)=>{if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&r.services.backendConnector.backend&&r.isLanguageChangingTo&&!i(r.isLanguageChangingTo,e))return!1}}),wl=e=>typeof e=="string",VZ=e=>typeof e=="object"&&e!==null,qZ=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,UZ={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"â¦","…":"â¦","/":"/","/":"/"},WZ=e=>UZ[e],zZ=e=>e.replace(qZ,WZ);let uk={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:zZ,transDefaultProps:void 0};const HZ=(e={})=>{uk={...uk,...e}},KZ=()=>uk;let e5;const GZ=e=>{e5=e},YZ=()=>e5,XZ={type:"3rdParty",init(e){HZ(e.options.react),GZ(e)}},QZ=w.createContext();class ZZ{constructor(){this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(n=>{this.usedNamespaces[n]||(this.usedNamespaces[n]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}var t5={exports:{}},n5={};/** 444 * @license React 445 * use-sync-external-store-shim.production.js 446 * 447 * Copyright (c) Meta Platforms, Inc. and affiliates. 448 * 449 * This source code is licensed under the MIT license found in the 450 * LICENSE file in the root directory of this source tree. 451 */var vu=w;function JZ(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var eJ=typeof Object.is=="function"?Object.is:JZ,tJ=vu.useState,nJ=vu.useEffect,rJ=vu.useLayoutEffect,iJ=vu.useDebugValue;function sJ(e,t){var n=t(),r=tJ({inst:{value:n,getSnapshot:t}}),i=r[0].inst,s=r[1];return rJ(function(){i.value=n,i.getSnapshot=t,k0(i)&&s({inst:i})},[e,n,t]),nJ(function(){return k0(i)&&s({inst:i}),e(function(){k0(i)&&s({inst:i})})},[e]),iJ(n),n}function k0(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!eJ(e,n)}catch{return!0}}function aJ(e,t){return t()}var oJ=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?aJ:sJ;n5.useSyncExternalStore=vu.useSyncExternalStore!==void 0?vu.useSyncExternalStore:oJ;t5.exports=n5;var lJ=t5.exports;const cJ=(e,t)=>wl(t)?t:VZ(t)&&wl(t.defaultValue)?t.defaultValue:Array.isArray(e)?e[e.length-1]:e,uJ={t:cJ,ready:!1},dJ=()=>()=>{},St=(e,t={})=>{var T,N,P;const{i18n:n}=t,{i18n:r,defaultNS:i}=w.useContext(QZ)||{},s=n||r||YZ();s&&!s.reportNamespaces&&(s.reportNamespaces=new ZZ),s||Z3(s,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const a=w.useMemo(()=>{var C;return{...KZ(),...(C=s==null?void 0:s.options)==null?void 0:C.react,...t}},[s,t]),{useSuspense:o,keyPrefix:l}=a,u=i||((T=s==null?void 0:s.options)==null?void 0:T.defaultNS),d=wl(u)?[u]:u||["translation"],h=w.useMemo(()=>d,d);(P=(N=s==null?void 0:s.reportNamespaces)==null?void 0:N.addUsedNamespaces)==null||P.call(N,h);const f=w.useRef(0),p=w.useCallback(C=>{if(!s)return dJ;const{bindI18n:M,bindI18nStore:R}=a,D=()=>{f.current+=1,C()};return M&&s.on(M,D),R&&s.store.on(R,D),()=>{M&&M.split(" ").forEach(L=>s.off(L,D)),R&&R.split(" ").forEach(L=>s.store.off(L,D))}},[s,a]),g=w.useRef(),m=w.useCallback(()=>{if(!s)return uJ;const C=!!(s.isInitialized||s.initializedStoreOnce)&&h.every(I=>BZ(I,s,a)),M=t.lng||s.language,R=f.current,D=g.current;if(D&&D.ready===C&&D.lng===M&&D.keyPrefix===l&&D.revision===R)return D;const B={t:s.getFixedT(M,a.nsMode==="fallback"?h:h[0],l),ready:C,lng:M,keyPrefix:l,revision:R};return g.current=B,B},[s,h,l,a,t.lng]),[y,v]=w.useState(0),{t:x,ready:b}=lJ.useSyncExternalStore(p,m,m);w.useEffect(()=>{if(s&&!b&&!o){const C=()=>v(M=>M+1);t.lng?z2(s,t.lng,h,C):ck(s,h,C)}},[s,t.lng,h,b,o,y]);const S=s||{},k=w.useRef(null),j=w.useRef(),_=C=>{const M=Object.getOwnPropertyDescriptors(C);M.__original&&delete M.__original;const R=Object.create(Object.getPrototypeOf(C),M);if(!Object.prototype.hasOwnProperty.call(R,"__original"))try{Object.defineProperty(R,"__original",{value:C,writable:!1,enumerable:!1,
451configurable:!1})}catch{}return R},E=w.useMemo(()=>{const C=S,M=C==null?void 0:C.language;let R=C;C&&(k.current&&k.current.__original===C?j.current!==M?(R=_(C),k.current=R,j.current=M):R=k.current:(R=_(C),k.current=R,j.current=M));const D=[x,R,b];return D.t=x,D.i18n=R,D.ready=b,D},[x,S,b,S.resolvedLanguage,S.language,S.languages]);if(s&&o&&!b)throw new Promise(C=>{const M=()=>C();t.lng?z2(s,t.lng,h,M):ck(s,h,M)});return E},aE=C_("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),de=w.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...i},s)=>{const a=r?E7:"button";return c.jsx(a,{className:ye(aE({variant:t,size:n,className:e})),ref:s,...i})});de.displayName="Button";var hJ=w.createContext(void 0);function Op(e){const t=w.useContext(hJ);return e||t||"ltr"}var S0=0;function oE(){w.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??H2()),document.body.insertAdjacentElement("beforeend",e[1]??H2()),S0++,()=>{S0===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),S0--}},[])}function H2(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var j0="focusScope.autoFocusOnMount",_0="focusScope.autoFocusOnUnmount",K2={bubbles:!1,cancelable:!0},fJ="FocusScope",hx=w.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:s,...a}=e,[o,l]=w.useState(null),u=ur(i),d=ur(s),h=w.useRef(null),f=qe(t,m=>l(m)),p=w.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;w.useEffect(()=>{if(r){let m=function(b){if(p.paused||!o)return;const S=b.target;o.contains(S)?h.current=S:ua(h.current,{select:!0})},y=function(b){if(p.paused||!o)return;const S=b.relatedTarget;S!==null&&(o.contains(S)||ua(h.current,{select:!0}))},v=function(b){if(document.activeElement===document.body)for(const k of b)k.removedNodes.length>0&&ua(o)};document.addEventListener("focusin",m),document.addEventListener("focusout",y);const x=new MutationObserver(v);return o&&x.observe(o,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",m),document.removeEventListener("focusout",y),x.disconnect()}}},[r,o,p.paused]),w.useEffect(()=>{if(o){Y2.add(p);const m=document.activeElement;if(!o.contains(m)){const v=new CustomEvent(j0,K2);o.addEventListener(j0,u),o.dispatchEvent(v),v.defaultPrevented||(pJ(xJ(r5(o)),{select:!0}),document.activeElement===m&&ua(o))}return()=>{o.removeEventListener(j0,u),setTimeout(()=>{const v=new CustomEvent(_0,K2);o.addEventListener(_0,d),o.dispatchEvent(v),v.defaultPrevented||ua(m??document.body,{select:!0}),o.removeEventListener(_0,d),Y2.remove(p)},0)}}},[o,u,d,p]);const g=w.useCallback(m=>{if(!n&&!r||p.paused)return;const y=m.key==="Tab"&&!m.altKey&&!m.ctrlKey&&!m.metaKey,v=document.activeElement;
vendor: 3,480 bytes, line 451
451if(y&&v){const x=m.currentTarget,[b,S]=mJ(x);b&&S?!m.shiftKey&&v===S?(m.preventDefault(),n&&ua(b,{select:!0})):m.shiftKey&&v===b&&(m.preventDefault(),n&&ua(S,{select:!0})):v===x&&m.preventDefault()}},[n,r,p.paused]);return c.jsx(we.div,{tabIndex:-1,...a,ref:f,onKeyDown:g})});hx.displayName=fJ;function pJ(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(ua(r,{select:t}),document.activeElement!==n)return}function mJ(e){const t=r5(e),n=G2(t,e),r=G2(t.reverse(),e);return[n,r]}function r5(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const i=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||i?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function G2(e,t){for(const n of e)if(!gJ(n,{upTo:t}))return n}function gJ(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function yJ(e){return e instanceof HTMLInputElement&&"select"in e}function ua(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&yJ(e)&&t&&e.select()}}var Y2=vJ();function vJ(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=X2(e,t),e.unshift(t)},remove(t){var n;e=X2(e,t),(n=e[0])==null||n.resume()}}}function X2(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function xJ(e){return e.filter(t=>t.tagName!=="A")}var E0="rovingFocusGroup.onEntryFocus",bJ={bubbles:!1,cancelable:!0},Rp="RovingFocusGroup",[dk,i5,wJ]=jp(Rp),[kJ,fx]=dr(Rp,[wJ]),[SJ,jJ]=kJ(Rp),s5=w.forwardRef((e,t)=>c.jsx(dk.Provider,{scope:e.__scopeRovingFocusGroup,children:c.jsx(dk.Slot,{scope:e.__scopeRovingFocusGroup,children:c.jsx(_J,{...e,ref:t})})}));s5.displayName=Rp;var _J=w.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:i=!1,dir:s,currentTabStopId:a,defaultCurrentTabStopId:o,onCurrentTabStopIdChange:l,onEntryFocus:u,preventScrollOnEntryFocus:d=!1,...h}=e,f=w.useRef(null),p=qe(t,f),g=Op(s),[m,y]=Xr({prop:a,defaultProp:o??null,onChange:l,caller:Rp}),[v,x]=w.useState(!1),b=ur(u),S=i5(n),k=w.useRef(!1),[j,_]=w.useState(0);return w.useEffect(()=>{const E=f.current;if(E)return E.addEventListener(E0,b),()=>E.removeEventListener(E0,b)},[b]),c.jsx(SJ,{scope:n,orientation:r,dir:g,loop:i,currentTabStopId:m,onItemFocus:w.useCallback(E=>y(E),[y]),onItemShiftTab:w.useCallback(()=>x(!0),[]),onFocusableItemAdd:w.useCallback(()=>_(E=>E+1),[]),onFocusableItemRemove:w.useCallback(()=>_(E=>E-1),[]),children:c.jsx(we.div,{tabIndex:v||j===0?-1:0,"data-orientation":r,...h,ref:p,style:{outline:"none",...e.style},onMouseDown:te(e.onMouseDown,()=>{k.current=!0}),onFocus:te(e.onFocus,E=>{const T=!k.current;if(E.target===E.currentTarget&&T&&!v){const N=new CustomEvent(E0,bJ);if(E.currentTarget.dispatchEvent(N),!N.defaultPrevented){const P=S().filter(L=>L.focusable),C=P.find(L=>L.active),M=P.find(L=>L.id===m),D=[C,M,...P].filter(Boolean).map(L=>L.ref.current);l5(D,d)}}k.current=!1}),onBlur:te(e.onBlur,()=>x(!1))})})}),a5="RovingFocusGroupItem",o5=w.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:i=!1,tabStopId:s,children:a,...o}=e,l=jr(),u=s||l,d=jJ(a5,n),h=d.currentTabStopId===u,f=i5(n),{onFocusableItemAdd:p,onFocusableItemRemove:g,currentTabStopId:m}=d;return w.useEffect(()=>{if(r)return p(),()=>g()}
vendor: 4,621 bytes, line 451
451,[r,p,g]),c.jsx(dk.ItemSlot,{scope:n,id:u,focusable:r,active:i,children:c.jsx(we.span,{tabIndex:h?0:-1,"data-orientation":d.orientation,...o,ref:t,onMouseDown:te(e.onMouseDown,y=>{r?d.onItemFocus(u):y.preventDefault()}),onFocus:te(e.onFocus,()=>d.onItemFocus(u)),onKeyDown:te(e.onKeyDown,y=>{if(y.key==="Tab"&&y.shiftKey){d.onItemShiftTab();return}if(y.target!==y.currentTarget)return;const v=NJ(y,d.orientation,d.dir);if(v!==void 0){if(y.metaKey||y.ctrlKey||y.altKey||y.shiftKey)return;y.preventDefault();let b=f().filter(S=>S.focusable).map(S=>S.ref.current);if(v==="last")b.reverse();else if(v==="prev"||v==="next"){v==="prev"&&b.reverse();const S=b.indexOf(y.currentTarget);b=d.loop?CJ(b,S+1):b.slice(S+1)}setTimeout(()=>l5(b))}}),children:typeof a=="function"?a({isCurrentTabStop:h,hasTabStop:m!=null}):a})})});o5.displayName=a5;var EJ={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function TJ(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function NJ(e,t,n){const r=TJ(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return EJ[r]}function l5(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function CJ(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var c5=s5,u5=o5,AJ=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Ul=new WeakMap,_m=new WeakMap,Em={},T0=0,d5=function(e){return e&&(e.host||d5(e.parentNode))},PJ=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=d5(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},OJ=function(e,t,n,r){var i=PJ(t,Array.isArray(e)?e:[e]);Em[n]||(Em[n]=new WeakMap);var s=Em[n],a=[],o=new Set,l=new Set(i),u=function(h){!h||o.has(h)||(o.add(h),u(h.parentNode))};i.forEach(u);var d=function(h){!h||l.has(h)||Array.prototype.forEach.call(h.children,function(f){if(o.has(f))d(f);else try{var p=f.getAttribute(r),g=p!==null&&p!=="false",m=(Ul.get(f)||0)+1,y=(s.get(f)||0)+1;Ul.set(f,m),s.set(f,y),a.push(f),m===1&&g&&_m.set(f,!0),y===1&&f.setAttribute(n,"true"),g||f.setAttribute(r,"true")}catch(v){console.error("aria-hidden: cannot operate on ",f,v)}})};return d(t),o.clear(),T0++,function(){a.forEach(function(h){var f=Ul.get(h)-1,p=s.get(h)-1;Ul.set(h,f),s.set(h,p),f||(_m.has(h)||h.removeAttribute(r),_m.delete(h)),p||h.removeAttribute(n)}),T0--,T0||(Ul=new WeakMap,Ul=new WeakMap,_m=new WeakMap,Em={})}},lE=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),i=AJ(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live]"))),OJ(r,i,n,"aria-hidden")):function(){return null}},Wi=function(){return Wi=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},Wi.apply(this,arguments)};function od(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function RJ(e,t,n,r){function i(s){return s instanceof n?s:new n(function(a){a(s)})}return new(n||(n=Promise))(function(s,a){function o(d){try{u(r.next(d))}catch(h){a(h)}}function l(d){try{u(r.throw(d))}catch(h){a(h)}}function u(d){d.done?s(d.value):i(d.value).then(o,l)}u((r=r.apply(e,t||[])).next())})}function IJ(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,s;r<i;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))}var Sg="right-scroll-bar-position",jg="width-before-scroll-bar",MJ="with-scroll-bars-hidden",$J="--removed-body-scroll-bar-size";function N0(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function DJ(e,t){var n=w.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var i=n.value;i!==r&&(n.value=r,n.callback(r,i))}}}})[0];return n.callback=t,n.facade}var LJ=typeof window<"u"?w.useLayoutEffect:w.useEffect,Q2=new WeakMap;function FJ(e,t){var n=DJ(null,function(r){return e.forEach(function(i){return N0(i,r)})});return LJ(function(){var r=Q2.get(n);if(r){var i=new Set(r),s=new Set(e),a=n.current;
vendor: 1,627 bytes, line 451
451i.forEach(function(o){s.has(o)||N0(o,null)}),s.forEach(function(o){i.has(o)||N0(o,a)})}Q2.set(n,e)},[e]),n}function BJ(e){return e}function VJ(e,t){t===void 0&&(t=BJ);var n=[],r=!1,i={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(s){var a=t(s,r);return n.push(a),function(){n=n.filter(function(o){return o!==a})}},assignSyncMedium:function(s){for(r=!0;n.length;){var a=n;n=[],a.forEach(s)}n={push:function(o){return s(o)},filter:function(){return n}}},assignMedium:function(s){r=!0;var a=[];if(n.length){var o=n;n=[],o.forEach(s),a=n}var l=function(){var d=a;a=[],d.forEach(s)},u=function(){return Promise.resolve().then(l)};u(),n={push:function(d){a.push(d),u()},filter:function(d){return a=a.filter(d),n}}}};return i}function qJ(e){e===void 0&&(e={});var t=VJ(null);return t.options=Wi({async:!0,ssr:!1},e),t}var h5=function(e){var t=e.sideCar,n=od(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return w.createElement(r,Wi({},n))};h5.isSideCarExport=!0;function UJ(e,t){return e.useMedium(t),h5}var f5=qJ(),C0=function(){},px=w.forwardRef(function(e,t){var n=w.useRef(null),r=w.useState({onScrollCapture:C0,onWheelCapture:C0,onTouchMoveCapture:C0}),i=r[0],s=r[1],a=e.forwardProps,o=e.children,l=e.className,u=e.removeScrollBar,d=e.enabled,h=e.shards,f=e.sideCar,p=e.noRelative,g=e.noIsolation,m=e.inert,y=e.allowPinchZoom,v=e.as,x=v===void 0?"div":v,b=e.ga
vendor: 9,465 bytes, lines 451-491
451pMode,S=od(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),k=f,j=FJ([n,t]),_=Wi(Wi({},S),i);return w.createElement(w.Fragment,null,d&&w.createElement(k,{sideCar:f5,removeScrollBar:u,shards:h,noRelative:p,noIsolation:g,inert:m,setCallbacks:s,allowPinchZoom:!!y,lockRef:n,gapMode:b}),a?w.cloneElement(w.Children.only(o),Wi(Wi({},_),{ref:j})):w.createElement(x,Wi({},_,{className:l,ref:j}),o))});px.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};px.classNames={fullWidth:jg,zeroRight:Sg};var WJ=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function zJ(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=WJ();return t&&e.setAttribute("nonce",t),e}function HJ(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function KJ(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var GJ=function(){var e=0,t=null;return{add:function(n){e==0&&(t=zJ())&&(HJ(t,n),KJ(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},YJ=function(){var e=GJ();return function(t,n){w.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},p5=function(){var e=YJ(),t=function(n){var r=n.styles,i=n.dynamic;return e(r,i),null};return t},XJ={left:0,top:0,right:0,gap:0},A0=function(e){return parseInt(e||"",10)||0},QJ=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],i=t[e==="padding"?"paddingRight":"marginRight"];return[A0(n),A0(r),A0(i)]},ZJ=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return XJ;var t=QJ(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},JJ=p5(),Vc="data-scroll-locked",eee=function(e,t,n,r){var i=e.left,s=e.top,a=e.right,o=e.gap;return n===void 0&&(n="margin"),` 452 .`.concat(MJ,` { 453 overflow: hidden `).concat(r,`; 454 padding-right: `).concat(o,"px ").concat(r,`; 455 } 456 body[`).concat(Vc,`] { 457 overflow: hidden `).concat(r,`; 458 overscroll-behavior: contain; 459 `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&` 460 padding-left: `.concat(i,`px; 461 padding-top: `).concat(s,`px; 462 padding-right: `).concat(a,`px; 463 margin-left:0; 464 margin-top:0; 465 margin-right: `).concat(o,"px ").concat(r,`; 466 `),n==="padding"&&"padding-right: ".concat(o,"px ").concat(r,";")].filter(Boolean).join(""),` 467 } 468 469 .`).concat(Sg,` { 470 right: `).concat(o,"px ").concat(r,`; 471 } 472 473 .`).concat(jg,` { 474 margin-right: `).concat(o,"px ").concat(r,`; 475 } 476 477 .`).concat(Sg," .").concat(Sg,` { 478 right: 0 `).concat(r,`; 479 } 480 481 .`).concat(jg," .").concat(jg,` { 482 margin-right: 0 `).concat(r,`; 483 } 484 485 body[`).concat(Vc,`] { 486 `).concat($J,": ").concat(o,`px; 487 } 488`)},Z2=function(){var e=parseInt(document.body.getAttribute(Vc)||"0",10);return isFinite(e)?e:0},tee=function(){w.useEffect(function(){return document.body.setAttribute(Vc,(Z2()+1).toString()),function(){var e=Z2()-1;e<=0?document.body.removeAttribute(Vc):document.body.setAttribute(Vc,e.toString())}},[])},nee=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?"margin":r;tee();var s=w.useMemo(function(){return ZJ(i)},[i]);return w.createElement(JJ,{styles:eee(s,!t,i,n?"":"!important")})},hk=!1;if(typeof window<"u")try{var Tm=Object.defineProperty({},"passive",{get:function(){return hk=!0,!0}});window.addEventListener("test",Tm,Tm),window.removeEventListener("test",Tm,Tm)}catch{hk=!1}var Wl=hk?{passive:!1}:!1,ree=function(e){return e.tagName==="TEXTAREA"},m5=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!ree(e)&&n[t]==="visible")},iee=function(e){return m5(e,"overflowY")},see=function(e){return m5(e,"overflowX")},J2=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var i=g5(e,r);if(i){var s=y5(e,r),a=s[1],o=s[2];if(a>o)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},aee=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},oee=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},g5=function(e,t){return e==="v"?iee(t):see(t)},y5=function(e,t){return e==="v"?aee(t):oee(t)},lee=function(e,t){return e==="h"&&t==="rtl"?-1:1},cee=function(e,t,n,r,i){var s=lee(e,window.getComputedStyle(t).direction),a=s*r,o=n.target,l=t.contains(o),u=!1,d=a>0,h=0,f=0;do{if(!o)break;var p=y5(e,o),g=p[0],m=p[1],y=p[2],v=m-y-s*g;(g||v)&&g5(e,o)&&(h+=v,f+=g);var x=o.parentNode;o=x&&x.nodeType===Node.DOCUMENT_FRAGMENT_NODE?x.host:x}while(!l&&o!==document.body||l&&(t.contains(o)||t===o));return(d&&(Math.abs(h)<1||!i)||!d&&(Math.abs(f)<1||!i))&&(u=!0),u},Nm=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},eA=function(e){return[e.deltaX,e.deltaY]},tA=function(e){return e&&"current"in e?e.current:e},uee=function(e,t){return e[0]===t[0]&&e[1]===t[1]},dee=function(e){return` 489 .block-interactivity-`.concat(e,` {pointer-events: none;} 490 .allow-interactivity-`).concat(e,` {pointer-events: all;} 491`)},hee=0,zl=[];function fee(e){var t=w.useRef([]),n=w.useRef([0,0]),r=w.useRef(),i=w.useState(hee++)[0],s=w.useState(p5)[0],a=w.useRef(e);w.useEffect(function(){a.current=e},[e]),w.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var m=IJ([e.lockRef.current],(e.shards||[]).map(tA),!0).filter(Boolean);return m.forEach(function(y){return y.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),m.forEach(function(y){return y.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var o=w.useCallback(function(m,y){if("touches"in m&&m.touches.length===2||m.type==="wheel"&&m.ctrlKey)return!a.current.allowPinchZoom;var v=Nm(m),x=n.current,b="deltaX"in m?m.deltaX:x[0]-v[0],S="deltaY"in m?m.deltaY:x[1]-v[1],k,j=m.target,_=Math.abs(b)>Math.abs(S)?"h":"v";if("touches"in m&&_==="h"&&j.type==="range")return!1;var E=J2(_,j);if(!E)return!0;if(E?k=_:(k=_==="v"?"h":"v",E=J2(_,j)),!E)return!1;if(!r.current&&"changedTouches"in m&&(b||S)&&(r.current=k),!k)return!0;var T=r.current||k;return cee(T,y,m,T==="h"?b:S,!0)},[]),l=w.useCallback(function(m){var y=m;if(!(!zl.length||zl[zl.length-1]!==s)){var v="deltaY"in y?eA(y):Nm(y),x=t.current.filter(function(k){return k.name===y.type&&(k.target===y.target||y.target===k.shadowParent)&&uee(k.delta,v)})[0];if(x&&x.should){y.cancelable&&y.preventDefault();return}if(!x){var b=(a.current.shards||[]).map(tA).filter(Boolean).filter(function(k){return k.contains(y.target)}),S=b.length>0?o(y,b[0]):!a.current.noIsolation;S&&y.cancelable&&y.preventDefault()}}},[]),u=w.useCallback(function(m,y,v,x){var b={name:m,delta:y,target:v,should:x,shadowParent:pee(v)};t.current.push(b),setTimeout(function(){t.current=t.current.filter(function(S){return S!==b})},1)},[]),d=w.useCallback(function(m){n.current=Nm(m),r.current=void 0},[]),h=w.useCallback(function(m){u(m.type,eA(m),m.target,o(m,e.lockRef.current))},[]),f=w.useCallback(function(m){u(m.type,Nm(m),m.target,o(m,e.lockRef.current))},[]);w.useEffect(function(){return zl.push(s),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:f}),document.addEventListener("wheel",l,Wl),document.addEventListener("touchmove",l,Wl),document.addEventListener("touchstart",d,Wl),function(){zl=zl.filter(function(m){return m!==s}),document.removeEventListener("wheel",l,Wl),document.removeEventListener("touchmove",l,Wl),document.removeEventListener("touchstart",d,Wl)}},[]);var p=e.removeScrollBar,g=e.inert;return w.createElement(w.Fragment,null,g?w.createElement(s,{styles:dee(i)}):null,p?w.createElement(nee,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function pee(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const mee=UJ(f5,fee);var mx=w.forwardRef(function(e,t){return w.createElement(px,Wi({},e,{ref:t,sideCar:mee}))});mx.classNames=px.classNames;var fk=["Enter"," "],gee=["ArrowDown","PageUp","Home"],v5=["ArrowUp","PageDown","End"],yee=[...gee,...v5],vee={ltr:[...fk,"ArrowRight"],rtl:[...fk,"ArrowLeft"]},xee={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Ip="Menu",[pf,bee,wee]=jp(Ip),[Rl,x5]=dr(Ip,[wee,nd,fx]),gx=nd(),b5=fx(),[kee,Il]=Rl(Ip),[See,Mp]=Rl(Ip),w5=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:i,onOpenChange:s,modal:a=!0}=e,o=gx(t),[l,u]=w.useState(null),d=w.useRef(!1),h=ur(s),f=Op(i);return w.useEffect(()=>{const p=()=>{d.current=!0,document.addEventListener("pointerdown",g,{capture:!0,once:!0}),document.addEventListener("pointermove",g,{capture:!0,once:!0})},g=()=>d.current=!1;return document.addEventListener("keydown",p,{capture:!0}),()=>{document.removeEventListener("keydown",p,{capture:!0}),document.removeEventListener("pointerdown",g,{capture:!0}),document.removeEventListener("pointermove",g,{capture:!0})}},[]),c.jsx(H_,{...o,children:c.jsx(kee,{scope:t,open:n,onOpenChange:h,content:l,onContentChange:u,children:c.jsx(See,{scope:t,onClose:w.useCallback(()=>h(!1),[h]),isUsingKeyboardRef:d,dir:f,modal:a,children:r})})})};w5.displayName=Ip;var jee="MenuAnchor",cE=w.forwardRef((e,t)=>
vendor: 12,948 bytes, line 491
491{const{__scopeMenu:n,...r}=e,i=gx(n);return c.jsx(K_,{...i,...r,ref:t})});cE.displayName=jee;var uE="MenuPortal",[_ee,k5]=Rl(uE,{forceMount:void 0}),S5=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:i}=e,s=Il(uE,t);return c.jsx(_ee,{scope:t,forceMount:n,children:c.jsx(Jr,{present:n||s.open,children:c.jsx(_p,{asChild:!0,container:i,children:r})})})};S5.displayName=uE;var Kr="MenuContent",[Eee,dE]=Rl(Kr),j5=w.forwardRef((e,t)=>{const n=k5(Kr,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,s=Il(Kr,e.__scopeMenu),a=Mp(Kr,e.__scopeMenu);return c.jsx(pf.Provider,{scope:e.__scopeMenu,children:c.jsx(Jr,{present:r||s.open,children:c.jsx(pf.Slot,{scope:e.__scopeMenu,children:a.modal?c.jsx(Tee,{...i,ref:t}):c.jsx(Nee,{...i,ref:t})})})})}),Tee=w.forwardRef((e,t)=>{const n=Il(Kr,e.__scopeMenu),r=w.useRef(null),i=qe(t,r);return w.useEffect(()=>{const s=r.current;if(s)return lE(s)},[]),c.jsx(hE,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:te(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),Nee=w.forwardRef((e,t)=>{const n=Il(Kr,e.__scopeMenu);return c.jsx(hE,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),Cee=yl("MenuContent.ScrollLock"),hE=w.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:i,onOpenAutoFocus:s,onCloseAutoFocus:a,disableOutsidePointerEvents:o,onEntryFocus:l,onEscapeKeyDown:u,onPointerDownOutside:d,onFocusOutside:h,onInteractOutside:f,onDismiss:p,disableOutsideScroll:g,...m}=e,y=Il(Kr,n),v=Mp(Kr,n),x=gx(n),b=b5(n),S=bee(n),[k,j]=w.useState(null),_=w.useRef(null),E=qe(t,_,y.onContentChange),T=w.useRef(0),N=w.useRef(""),P=w.useRef(0),C=w.useRef(null),M=w.useRef("right"),R=w.useRef(0),D=g?mx:w.Fragment,L=g?{as:Cee,allowPinchZoom:!0}:void 0,B=O=>{var Y,ce;const V=N.current+O,z=S().filter(K=>!K.disabled),q=document.activeElement,X=(Y=z.find(K=>K.ref.current===q))==null?void 0:Y.textValue,J=z.map(K=>K.textValue),xe=Vee(J,V,X),ke=(ce=z.find(K=>K.textValue===xe))==null?void 0:ce.ref.current;(function K(Q){N.current=Q,window.clearTimeout(T.current),Q!==""&&(T.current=window.setTimeout(()=>K(""),1e3))})(V),ke&&setTimeout(()=>ke.focus())};w.useEffect(()=>()=>window.clearTimeout(T.current),[]),oE();const I=w.useCallback(O=>{var z,q;return M.current===((z=C.current)==null?void 0:z.side)&&Uee(O,(q=C.current)==null?void 0:q.area)},[]);return c.jsx(Eee,{scope:n,searchRef:N,onItemEnter:w.useCallback(O=>{I(O)&&O.preventDefault()},[I]),onItemLeave:w.useCallback(O=>{var V;I(O)||((V=_.current)==null||V.focus(),j(null))},[I]),onTriggerLeave:w.useCallback(O=>{I(O)&&O.preventDefault()},[I]),pointerGraceTimerRef:P,onPointerGraceIntentChange:w.useCallback(O=>{C.current=O},[]),children:c.jsx(D,{...L,children:c.jsx(hx,{asChild:!0,trapped:i,onMountAutoFocus:te(s,O=>{var V;O.preventDefault(),(V=_.current)==null||V.focus({preventScroll:!0})}),onUnmountAutoFocus:a,children:c.jsx(Zu,{asChild:!0,disableOutsidePointerEvents:o,onEscapeKeyDown:u,onPointerDownOutside:d,onFocusOutside:h,onInteractOutside:f,onDismiss:p,children:c.jsx(c5,{asChild:!0,...b,dir:v.dir,orientation:"vertical",loop:r,currentTabStopId:k,onCurrentTabStopIdChange:j,onEntryFocus:te(l,O=>{v.isUsingKeyboardRef.current||O.preventDefault()}),preventScrollOnEntryFocus:!0,children:c.jsx(G_,{role:"menu","aria-orientation":"vertical","data-state":B5(y.open),"data-radix-menu-content":"",dir:v.dir,...x,...m,ref:E,style:{outline:"none",...m.style},onKeyDown:te(m.onKeyDown,O=>{const z=O.target.closest("[data-radix-menu-content]")===O.currentTarget,q=O.ctrlKey||O.altKey||O.metaKey,X=O.key.length===1;z&&(O.key==="Tab"&&O.preventDefault(),!q&&X&&B(O.key));const J=_.current;if(O.target!==J||!yee.includes(O.key))return;O.preventDefault();const ke=S().filter(Y=>!Y.disabled).map(Y=>Y.ref.current);v5.includes(O.key)&&ke.reverse(),Fee(ke)}),onBlur:te(e.onBlur,O=>{O.currentTarget.contains(O.target)||(window.clearTimeout(T.current),N.current="")}),onPointerMove:te(e.onPointerMove,mf(O=>{const V=O.target,z=R.current!==O.clientX;if(O.currentTarget.contains(V)&&z){const q=O.clientX>R.current?"right":"left";M.current=q,R.current=O.clientX}}))})})})})})})});j5.displayName=Kr;var Aee="MenuGroup",fE=w.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return c.jsx(we.div,{role:"group",...r,ref:t})});fE.displayName=Aee;var Pee="MenuLabel",_5=w.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return c.jsx(we.div,{...r,ref:t})});_5.displayName=Pee;var gy="MenuItem",nA="menu.itemSelect",yx=w.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...i}=e,s=w.useRef(null),a=Mp(gy,e.__scopeMenu),o=dE(gy,e.__scopeMenu),l=qe(t,s),u=w.useRef(!1),d=()=>{const h=s.current;if(!n&&h){const f=new CustomEvent(nA,{bubbles:!0,cancelable:!0});h.addEventListener(nA,p=>r==null?void 0:r(p),{once:!0}),__(h,f),f.defaultPrevented?u.current=!1:a.onClose()}};return c.jsx(E5,{...i,ref:l,disabled:n,onClick:te(e.onClick,d),onPointerDown:h=>{var f;(f=e.onPointerDown)==null||f.call(e,h),u.current=!0},onPointerUp:te(e.onPointerUp,h=>{var f;u.current||(f=h.currentTarget)==null||f.click()}),onKeyDown:te(e.onKeyDown,h=>{const f=o.searchRef.current!=="";n||f&&h.key===" "||fk.includes(h.key)&&(h.currentTarget.click(),h.preventDefault())})})});yx.displayName=gy;var E5=w.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:i,...s}=e,a=dE(gy,n),o=b5(n),l=w.useRef(null),u=qe(t,l),[d,h]=w.useState(!1),[f,p]=w.useState("");return w.useEffect(()=>{const g=l.current;g&&p((g.textContent??"").trim())},[s.children]),c.jsx(pf.ItemSlot,{scope:n,disabled:r,textValue:i??f,children:c.jsx(u5,{asChild:!0,...o,focusable:!r,children:c.jsx(we.div,{role:"menuitem","data-highlighted":d?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...s,ref:u,onPointerMove:te(e.onPointerMove,mf(g=>{r?a.onItemLeave(g):(a.onItemEnter(g),g.defaultPrevented||g.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:te(e.onPointerLeave,mf(g=>a.onItemLeave(g))),onFocus:te(e.onFocus,()=>h(!0)),onBlur:te(e.onBlur,()=>h(!1))})})})}),Oee="MenuCheckboxItem",T5=w.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...i}=e;return c.jsx(O5,{scope:e.__scopeMenu,checked:n,children:c.jsx(yx,{role:"menuitemcheckbox","aria-checked":yy(n)?"mixed":n,...i,ref:t,"data-state":mE(n),onSelect:te(i.onSelect,()=>r==null?void 0:r(yy(n)?!0:!n),{checkForDefaultPrevented:!1})})})});T5.displayName=Oee;var N5="MenuRadioGroup",[Ree,Iee]=Rl(N5,{value:void 0,onValueChange:()=>{}}),C5=w.forwardRef((e,t)=>{const{value:n,onValueChange:r,...i}=e,s=ur(r);return c.jsx(Ree,{scope:e.__scopeMenu,value:n,onValueChange:s,children:c.jsx(fE,{...i,ref:t})})});C5.displayName=N5;var A5="MenuRadioItem",P5=w.forwardRef((e,t)=>{const{value:n,...r}=e,i=Iee(A5,e.__scopeMenu),s=n===i.value;return c.jsx(O5,{scope:e.__scopeMenu,checked:s,children:c.jsx(yx,{role:"menuitemradio","aria-checked":s,...r,ref:t,"data-state":mE(s),onSelect:te(r.onSelect,()=>{var a;return(a=i.onValueChange)==null?void 0:a.call(i,n)},{checkForDefaultPrevented:!1})})})});P5.displayName=A5;var pE="MenuItemIndicator",[O5,Mee]=Rl(pE,{checked:!1}),R5=w.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...i}=e,s=Mee(pE,n);return c.jsx(Jr,{present:r||yy(s.checked)||s.checked===!0,children:c.jsx(we.span,{...i,ref:t,"data-state":mE(s.checked)})})});R5.displayName=pE;var $ee="MenuSeparator",I5=w.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return c.jsx(we.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});I5.displayName=$ee;var Dee="MenuArrow",M5=w.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,i=gx(n);return c.jsx(Y_,{...i,...r,ref:t})});M5.displayName=Dee;var Lee="MenuSub",[f6e,$5]=Rl(Lee),sh="MenuSubTrigger",D5=w.forwardRef((e,t)=>{const n=Il(sh,e.__scopeMenu),r=Mp(sh,e.__scopeMenu),i=$5(sh,e.__scopeMenu),s=dE(sh,e.__scopeMenu),a=w.useRef(null),{pointerGraceTimerRef:o,onPointerGraceIntentChange:l}=s,u={__scopeMenu:e.__scopeMenu},d=w.useCallback(()=>{a.current&&window.clearTimeout(a.current),a.current=null},[]);return w.useEffect(()=>d,[d]),w.useEffect(()=>{const h=o.current;return()=>{window.clearTimeout(h),l(null)}},[o,l]),c.jsx(cE,{asChild:!0,...u,children:c.jsx(E5,{id:i.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":i.contentId,"data-state":B5(n.open),...e,ref:Xv(t,i.onTriggerChange),onClick:h=>{var f;(f=e.onClick)==null||f.call(e,h),!(e.disabled||h.defaultPrevented)&&(h.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:te(e.onPointerMove,mf(h=>{s.onItemEnter(h),!h.defaultPrevented&&!e.disabled&&!n.open&&!a.current&&(s.onPointerGraceIntentChange(null),a.current=window.setTimeout(()=>{n.onOpenChange(!0),d()},100))})),onPointerLeave:te(e.onPointerLeave,mf(h=>{var p,g;d();const f=(p=n.content)==null?void 0:p.getBoundingClientRect();if(f){const m=(g=n.content)==null?void 0:g.dataset.side,y=m==="right",v=y?-5:5,x=f[y?"left":"right"],b=f[y?"right":"left"];s.onPointerGraceIntentChange({area:[{x:h.clientX+v,y:h.clientY},{x,y:f.top},{x:b,y:f.top},{x:b,y:f.bottom},{x,y:f.bottom}],side:m}),window.clearTimeout(o.current),o.current=window.setTimeout(()=>s.onPointerGraceIntentChange(null),300)}else{if(s.onTriggerLeave(h),h.defaultPrevented)return;s.onPointerGraceIntentChange(null)}})),onKeyDown:te(e.onKeyDown,h=>{var p;const f=s.searchRef.current!=="";e.disabled||f&&h.key===" "||vee[r.dir].includes(h.key)&&(n.onOpenChange(!0),(p=n.content)==null||p.focus(),h.preventDefault())})})})});D5.displayName=sh;var L5="MenuSubContent",F5=w.forwardRef((e,t)=>{const n=k5(Kr,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,s=Il(Kr,e.__scopeMenu),a=Mp(Kr,e.__scopeMenu),o=$5(L5,e.__scopeMenu),l=w.useRef(null),u=qe(t,l);return c.jsx(pf.Provider,{scope:e.__scopeMenu,children:c.jsx(Jr,{present:r||s.open,children:c.jsx(pf.Slot,{scope:e.__scopeMenu,children:c.jsx(hE,{id:o.contentId,"aria-labelledby":o.triggerId,...i,ref:u,align:"start",side:a.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:d=>{var h;a.isUsingKeyboardRef.current&&((h=l.current)==null||h.focus()),d.preventDefault()},onCloseAutoFocus:d=>d.preventDefault(),onFocusOutside:te(e.onFocusOutside,d=>{d.target!==o.trigger&&s.onOpenChange(!1)}),onEscapeKeyDown:te(e.onEscapeKeyDown,d=>{a.onClose(),d.preventDefault()}),onKeyDown:te(e.onKeyDown,d=>{var p;const h=d.currentTarget.contains(d.target),f=xee[a.dir].includes(d.key);h&&f&&(s.onOpenChange(!1),(p=o.trigger)==null||p.focus(),d.preventDefault())})})})})})});F5.displayName=L5;function B5(e){return e?"open":"closed"}function yy(e){return e==="indeterminate"}function mE(e){return yy(e)?"indeterminate":e?"checked":"unchecked"}function Fee(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function Bee(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function Vee(e,t,n){const i=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,s=n?e.indexOf(n):-1;let a=Bee(e,Math.max(s,0));i.length===1&&(a=a.filter(u=>u!==n));const l=a.find(u=>u.toLowerCase().startsWith(i.toLowerCase()));return l!==n?l:void 0}function qee(e,t){const{x:n,y:r}=e;let i=!1;for(let s=0,a=t.length-1;s<t.length;a=s++){const o=t[s],l=t[a],u=o.x,d=o.y,h=l.x,f=l.y;d>r!=f>r&&n<(h-u)*(r-d)/(f-d)+u&&(i=!i)}return i}function Uee(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return qee(n,t)}function mf(e){return t=>t.pointerType==="mouse"?e(t):void 0}var Wee=w5,zee=cE,Hee=S5,Kee=j5,Gee=fE,Yee=_5,Xee=yx,Qee=T5,Zee=C5,Jee=P5,ete=R5,tte=I5,nte=M5,rte=D5,ite=F5,vx="DropdownMenu",[ste,p6e]=dr(vx,[x5]),Xn=x5(),[ate,V5]=ste(vx),q5=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:i,defaultOpen:s,onOpenChange:a,modal:o=!0}=e,l=Xn(t),u=w.useRef(null),[d,h]=Xr({prop:i,defaultProp:s??!1,onChange:a,caller:vx});return c.jsx(ate,{scope:t,triggerId:jr(),triggerRef:u,contentId:jr(),open:d,onOpenChange:h,onOpenToggle:w.useCallback(()=>h(f=>!f),[h]),modal:o,children:c.jsx(Wee,{...l,open:d,onOpenChange:h,dir:r,modal:o,children:n})})};q5.displayName=vx;var U5="DropdownMenuTrigger",W5=w.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...i}=e,s=V5(U5,n),a=Xn(n);return c.jsx(zee,{asChild:!0,...a,children:c.jsx(we.button,{type:"button",id:s.triggerId,"aria-haspopup":"menu","aria-expanded":s.open,"aria-controls":s.open?s.contentId:void 0,"data-state":s.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...i,ref:Xv(t,s.triggerRef),onPointerDown:te(e.onPointerDown,o=>{!r&&o.button===0&&o.ctrlKey===!1&&(s.onOpenToggle(),s.open||o.preventDefault())}),onKeyDown:te(e.onKeyDown,o=>{r||(["Enter"," "].includes(o.key)&&s.onOpenToggle(),o.key==="ArrowDown"&&s.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(o.key)&&o.preventDefault())})})})});W5.displayName=U5;var ote="DropdownMenuPortal",z5=e=>{const{__scopeDropdownMenu:t,...n}=e,r=Xn(t);return c.jsx(Hee,{...r,...n})};z5.displayName=ote;var H5="DropdownMenuContent",K5=w.forwardRef((e,t)=>
491{const{__scopeDropdownMenu:n,...r}=e,i=V5(H5,n),s=Xn(n),a=w.useRef(!1);return c.jsx(Kee,{id:i.contentId,"aria-labelledby":i.triggerId,...s,...r,ref:t,onCloseAutoFocus:te(e.onCloseAutoFocus,o=>{var l;a.current||(l=i.triggerRef.current)==null||l.focus(),a.current=!1,o.preventDefault()}),onInteractOutside:te(e.onInteractOutside,o=>{const l=o.detail.originalEvent,u=l.button===0&&l.ctrlKey===!0,d=l.button===2||u;(!i.modal||d)&&(a.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});K5.displayName=H5;var lte="DropdownMenuGroup",cte=w.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=Xn(n);return c.jsx(Gee,{...i,...r,ref:t})});cte.displayName=lte;var ute="DropdownMenuLabel",G5=w.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=Xn(n);return c.jsx(Yee,{...i,...r,ref:t})});G5.displayName=ute;var dte="DropdownMenuItem",Y5=w.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=Xn(n);return c.jsx(Xee,{...i,...r,ref:t})});Y5.displayName=dte;var hte="DropdownMenuCheckboxItem",X5=w.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=Xn(n);return c.jsx(Qee,{...i,...r,ref:t})});X5.displayName=hte;var fte="DropdownMenuRadioGroup",pte=w.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=Xn(n);return c.jsx(Zee,{...i,...r,ref:t})});pte.displayName=fte;var mte="DropdownMenuRadioItem",Q5=w.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=Xn(n);return c.jsx(Jee,{...i,...r,ref:t})});Q5.displayName=mte;var gte="DropdownMenuItemIndicator",Z5=w.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=Xn(n);return c.jsx(ete,{...i,...r,ref:t})});Z5.displayName=gte;var yte="DropdownMenuSeparator",J5=w.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=Xn(n);return c.jsx(tte,{...i,...r,ref:t})});J5.displayName=yte;var vte="DropdownMenuArrow",xte=w.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=Xn(n);return c.jsx(nte,{...i,...r,ref:t})});xte.displayName=vte;var bte="DropdownMenuSubTrigger",eF=w.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=Xn(n);return c.jsx(rte,{...i,...r,ref:t})});eF.displayName=bte;var wte="DropdownMenuSubContent",tF=w.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=Xn(n);return c.jsx(ite,{...i,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});tF.displayName=wte;var kte=q5,Ste=W5,jte=z5,nF=K5,rF=G5,iF=Y5,sF=X5,aF=Q5,oF=Z5,lF=J5,cF=eF,uF=tF;const _te=kte,Ete=Ste,Tte=w.forwardRef(({className:e,inset:t,children:n,...r},i)=>c.jsxs(cF,{ref:i,className:ye("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[state=open]:bg-accent focus:bg-accent",t&&"pl-8",e),...r,children:[n,c.jsx(Fs,{className:"ml-auto h-4 w-4"})]}));Tte.displayName=cF.displayName;const Nte=w.forwardRef(({className:e,...t},n)=>c.jsx(uF,{ref:n,className:ye("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t}));Nte.displayName=uF.displayName;const dF=w.forwardRef(({className:e,sideOffset:t=4,...n},r)=>c.jsx(jte,{children:c.jsx(nF,{ref:r,sideOffset:t,className:ye("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:sli
491de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n})}));dF.displayName=nF.displayName;const hF=w.forwardRef(({className:e,inset:t,...n},r)=>c.jsx(iF,{ref:r,className:ye("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-accent focus:text-accent-foreground",t&&"pl-8",e),...n}));hF.displayName=iF.displayName;const Cte=w.forwardRef(({className:e,children:t,checked:n,...r},i)=>c.jsxs(sF,{ref:i,className:ye("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-accent focus:text-accent-foreground",e),checked:n,...r,children:[c.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:c.jsx(oF,{children:c.jsx(Np,{className:"h-4 w-4"})})}),t]}));Cte.displayName=sF.displayName;const Ate=w.forwardRef(({className:e,children:t,...n},r)=>c.jsxs(aF,{ref:r,className:ye("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-accent focus:text-accent-foreground",e),...n,children:[c.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:c.jsx(oF,{children:c.jsx(xK,{className:"h-2 w-2 fill-current"})})}),t]}));Ate.displayName=aF.displayName;const Pte=w.forwardRef(({className:e,inset:t,...n},r)=>c.jsx(rF,{ref:r,className:ye("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...n}));Pte.displayName=rF.displayName;const Ote=w.forwardRef(({className:e,...t},n)=>c.jsx(lF,{ref:n,className:ye("-mx-1 my-1 h-px bg-muted",e),...t}));Ote.displayName=lF.displayName;const Rte=({isOverlay:e=!1})=>{const{i18n:t}=St(),n=[{code:"en",label:"ðºð¸ EN"},{code:"vi",label:"ð»ð³ VI"},{code:"ko",label:"ð°ð· KO"},{code:"zh",label:"ð¨ð³ ZH"}],r=n.find(i=>i.code===t.language)??n[0];return c.jsxs(_te,{children:[c.jsx(Ete,{asChild:!0,children:c.jsx(de,{variant:"ghost",size:"sm",className:`font-medium px-3 ${e?"text-white hover:text-accent hover:bg-white/10":"text-foreground hover:text-primary"}`,children:r.label})}),c.jsx(dF,{align:"end",className:"min-w-[8rem]",children:n.map(i=>c.jsx(hF,{onClick:()=>t.changeLanguage(i.code),className:i.code===t.language?"font-semibold":"",children:i.label},i.code))})]})},ho="/assets/ekko-logo-CWRfrJyn.png",fn=({isOverlay:e=!1,hasBanner:t=!1})=>{const{t:n}=St(),r=Ys(),[i,s]=w.useState(!1),a=[{href:"/for-business",label:n("nav.business")},{href:"/for-workers",label:n("nav.workers")},{href:"/impact-report",label:n("nav.impact","Impact")},{href:"/about",label:n("nav.about")},{href:"/careers",label:n("nav.careers","Careers")},{href:"/news",label:n("nav.news","News")}],o=l=>r.pathname===l;return c.jsxs("nav",{className:`flex items-center justify-between px-6 py-4 md:px-12 lg:px-16 fixed left-0 right-0 z-50 transition-all duration-300 ${t?"top-10":"top-0"} ${e?"bg-black/40 backdrop-blur-sm":"bg-background border-b border-border"}`,children:[c.jsx(ut,{to:"/",className:"flex items-center gap-2",children:c.jsx("img",{src:ho,alt:"ekko",className:`h-8 w-auto ${e?"brightness-0 invert":""}`})}),c.jsx("div",{className:"hidden md:flex items-center gap-8",children:a.map(l=>c.jsx(ut,{to:l.href,className:`transition-colors font-medium ${e?o(l.href)?"text-accent":"text-white hover:text-accent":o(l.href)?"text-primary":"text-foreground hover:text-primary"}`,children:l.label},l.href))}),c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx(Rte,{isOverlay:e}),c.jsx("button",{className:"md:hidden p-2",onClick:()=>s(!i),children:i?c.jsx(rx,{className:`w-6 h-6 ${e?"text-white":"text-foreground"}`}):c.jsx(NK,{className:`w-6 h-6 ${e?"text-white":"text-foreground"}`})})]}),i&&c.jsx("div",{className:"absolute top-full left-0 right-0 bg-background border-b border-border md:hidden z-50",children:c.jsx("div",{className:"flex flex-col p-4 gap-4",children:a.map(l
491=>c.jsx(ut,{to:l.href,onClick:()=>s(!1),className:`hover:text-primary transition-colors font-medium py-2 ${o(l.href)?"text-primary":"text-foreground"}`,children:l.label},l.href))})})]})},Ite="https://ekko.vn",Mte="https://sunshine-design-clone.lovable.app/og-image.png",hr=({title:e,description:t,path:n,image:r,type:i="website",jsonLd:s})=>{const a=`${Ite}${n}`,o=r??Mte,l=s?Array.isArray(s)?s:[s]:[];return c.jsxs(v7,{children:[c.jsx("title",{children:e}),c.jsx("meta",{name:"description",content:t}),c.jsx("link",{rel:"canonical",href:a}),c.jsx("meta",{property:"og:title",content:e}),c.jsx("meta",{property:"og:description",content:t}),c.jsx("meta",{property:"og:url",content:a}),c.jsx("meta",{property:"og:type",content:i}),c.jsx("meta",{property:"og:image",content:o}),c.jsx("meta",{name:"twitter:card",content:"summary_large_image"}),c.jsx("meta",{name:"twitter:title",content:e}),c.jsx("meta",{name:"twitter:description",content:t}),c.jsx("meta",{name:"twitter:image",content:o}),l.map((u,d)=>c.jsx("script",{type:"application/ld+json",children:JSON.stringify(u)},d))]})},$te="/assets/hero-factory-workers-new-CoeQZ_8B.jpg",Dte=()=>{const e=Ar(),{t}=St(),n=()=>{e("/for-business"),window.scrollTo(0,0)};return c.jsxs("section",{className:"relative w-full h-[78vh] md:h-[85vh] min-h-[520px] md:min-h-[600px]",children:[c.jsx("img",{src:$te,alt:"Factory workers collaborating",className:"w-full h-full object-cover object-center",fetchPriority:"high",decoding:"async"}),c.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/60 via-black/20 to-transparent"}),c.jsx("div",{className:"absolute inset-0 flex items-end justify-center",children:c.jsx("div",{className:"max-w-7xl mx-auto w-full px-6 md:px-12 lg:px-16 pb-8 md:pb-20",children:c.jsxs("div",{className:"max-w-3xl",children:[c.jsxs("h1",{className:"text-3xl md:text-5xl lg:text-6xl xl:text-7xl font-bold text-white leading-[1.1] mb-6",children:[t("hero.title1")," ",c.jsx("span",{className:"text-accent font-newsreader font-semibold italic",children:t("hero.title2")})]}),c.jsx("p",{className:"text-white/80 text-lg md:text-xl max-w-xl mb-8 leading-relaxed",children:t("hero.description")}),c.jsx(de,{onClick:n,className:"bg-accent hover:bg-accent/90 text-accent-foreground rounded-full px-8 py-6 text-lg font-semibold",children:t("hero.learnMore")})]})})})]})},gE=w.createContext({});function to(e){const t=w.useRef(null);return t.current===null&&(t.current=e()),t.current}const fF=typeof window<"u",xx=fF?w.useLayoutEffect:w.useEffect,bx=w.createContext(null);function yE(e,t){e.indexOf(t)===-1&&e.push(t)}function vE(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const Ri=(e,t,n)=>n>t?t:n<e?e:n;let wx=()=>{},no=()=>{};const qs={},pF=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function mF(e){return typeof e=="object"&&e!==null}const gF=e=>/^0[^.\s]+$/u.test(e);function xE(e){let t;return()=>(t===void 0&&(t=e()),t)}const cr=e=>e,Lte=(e,t)=>n=>t(e(n)),$p=(...e)=>e.reduce(Lte),xu=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};class bE{constructor(){this.subscriptions=[]}add(t){return yE(this.subscriptions,t),()=>vE(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let s=0;s<i;s++){const a=this.subscriptions[s];a&&a(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Ji=e=>e*1e3,Ur=e=>e/1e3;function wE(e,t){return t?e*(1e3/t):0}const yF=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Fte=1e-7,Bte=12;function Vte(e,t,n,r,i){let s,a,o=0;do a=t+(n-t)/2,s=yF(a,r,i)-e,s>0?n=a:t=a;while(Math.abs(s)>Fte&&++o<Bte);return a}function Dp(e,t,n,r){if(e===t&&n===r)return cr;const i=s=>Vte(s,0,1,e,n);return s=>s===0||s===1?s:yF(i(s),t,r)}const vF=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,xF=e=>t=>1-e(1-t),bF=Dp(.33,1.53,.69,.99),kE=xF(bF),wF=vF(kE),kF=e=>(e*=2)<1?.5*kE(e):.5*(2-Math.pow(2,-10*(e-1))),SE=e=>1-Math.sin(Math.acos(e)),SF=xF(SE),jF=vF(SE),qte=Dp(.42,0,1,1),Ute=Dp(0,0,.58,1),_F=Dp(.42,0,.58,1),Wte=e=>Array.isArray(e)&&typeof e[0]!="number",EF=e=>Array.isArray(e)&&typeof e[0]=="number",rA={linear:cr,easeIn:qte,easeInOut:_F,easeOut:Ute,circIn:SE,circInOut:jF,circOut:SF,backIn:kE,backInOut:wF,backOut:bF,anticipate:kF},zte=e=>typeof e=="string",iA=e=>{if(EF(e)){no(e.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[t,n,r,i]=e;return Dp(t,n,r,i)}else if(zte(e))return no(rA[e]!==void 0,`Invalid easing type '${e}
491'`,"invalid-easing-type"),rA[e];return e},Cm=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"],sA={value:null,addProjectionMetrics:null};function Hte(e,t){let n=new Set,r=new Set,i=!1,s=!1;const a=new WeakSet;let o={delta:0,timestamp:0,isProcessing:!1},l=0;function u(h){a.has(h)&&(d.schedule(h),e()),l++,h(o)}const d={schedule:(h,f=!1,p=!1)=>{const m=p&&i?n:r;return f&&a.add(h),m.has(h)||m.add(h),h},cancel:h=>{r.delete(h),a.delete(h)},process:h=>{if(o=h,i){s=!0;return}i=!0,[n,r]=[r,n],n.forEach(u),t&&sA.value&&sA.value.frameloop[t].push(l),l=0,n.clear(),i=!1,s&&(s=!1,d.process(h))}};return d}const Kte=40;function TF(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},s=()=>n=!0,a=Cm.reduce((b,S)=>(b[S]=Hte(s,t?S:void 0),b),{}),{setup:o,read:l,resolveKeyframes:u,preUpdate:d,update:h,preRender:f,render:p,postRender:g}=a,m=()=>{const b=qs.useManualTiming?i.timestamp:performance.now();n=!1,qs.useManualTiming||(i.delta=r?1e3/60:Math.max(Math.min(b-i.timestamp,Kte),1)),i.timestamp=b,i.isProcessing=!0,o.process(i),l.process(i),u.process(i),d.process(i),h.process(i),f.process(i),p.process(i),g.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(m))},y=()=>{n=!0,r=!0,i.isProcessing||e(m)};return{schedule:Cm.reduce((b,S)=>{const k=a[S];return b[S]=(j,_=!1,E=!1)=>(n||y(),k.schedule(j,_,E)),b},{}),cancel:b=>{for(let S=0;S<Cm.length;S++)a[Cm[S]].cancel(b)},state:i,steps:a}}const{schedule:rt,cancel:Qr,state:ln,steps:P0}=TF(typeof requestAnimationFrame<"u"?requestAnimationFrame:cr,!0);let _g;function Gte(){_g=void 0}const Wn={now:()=>(_g===void 0&&Wn.set(ln.isProcessing||qs.useManualTiming?ln.timestamp:performance.now()),_g),set:e=>{_g=e,queueMicrotask(Gte)}},NF=e=>t=>typeof t=="string"&&t.startsWith(e),CF=NF("--"),Yte=NF("var(--"),jE=e=>Yte(e)?Xte.test(e.split("/*")[0].trim()):!1,Xte=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function aA(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const ld={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},gf={...ld,transform:e=>Ri(0,1,e)},Am={...ld,default:1},Th=e=>Math.round(e*1e5)/1e5,_E=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Qte(e){return e==null}const Zte=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,EE=(e,t)=>n=>!!(typeof n=="string"&&Zte.test(n)&&n.startsWith(e)||t&&!Qte(n)&&Object.prototype.hasOwnProperty.call(n,t)),AF=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,s,a,o]=r.match(_E);return{[e]:parseFloat(i),[t]:parseFloat(s),[n]:parseFloat(a),alpha:o!==void 0?parseFloat(o):1}},Jte=e=>Ri(0,255,e),O0={...ld,transform:e=>Math.round(Jte(e))},Uo={test:EE("rgb","red"),parse:AF("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+O0.transform(e)+", "+O0.transform(t)+", "+O0.transform(n)+", "+Th(gf.transform(r))+")"};function ene(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const pk={test:EE("#"),parse:ene,transform:Uo.transform},Lp=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),da=Lp("deg"),es=Lp("%"),pe=Lp("px"),tne=Lp("vh"),nne=Lp("vw"),oA={...es,parse:e=>es.parse(e)/100,transform:e=>es.transform(e*100)},bc={test:EE("hsl","hue"),parse:AF("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+es.transform(Th(t))+", "+es.transform(Th(n))+", "+Th(gf.transform(r))+")"},Gt={test:e=>Uo.test(e)||pk.test(e)||bc.test(e),parse:e=>Uo.test(e)?Uo.parse(e):bc.test(e)?bc.parse(e):pk.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Uo.transform(e):bc.transform(e),getAnimatableNone:e=>{const t=Gt.parse(e);return t.alpha=0,Gt.transform(t)}},rne=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function ine(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(_E))==null?void 0:t.length)||0)+(((n=e.match(rne))==null?void 0:n.length)||0)>0}const PF="number",OF="color",sne="var",ane="var(",lA="${}",one=/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 yf(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let s=0;const o=t.replace(one,l=>(Gt.test(l)?(r.color.push(s),i.push(OF),n.push(Gt.parse(l))):l.startsWith(ane)?(r.var.push(s),i.push(sne),n.push(l)):(r.number.push(s),i.push(PF),n.push(parseFloat(l))),++s,lA)).split(lA);return{values:n,split:o,indexes:r,types:i}}function RF(e){return yf(e).values}function IF(e){const{split:t,types:n}=yf(e),r=t.length;return i=>{let s="";for(let a=0;a<r;a++)if(s+=t[a],i[a]!==void 0){const o=n[a];o===PF?s+=Th(i[a]):o===OF?s+=Gt.transform(i[a]):s+=i[a]}return s}}const lne=e=>typeof e=="number"?0:Gt.test(e)?Gt.getAnimatableNone(e):e;function cne(e){const t=RF(e);return IF(e)(t.map(lne))}const ro={test:ine,parse:RF,createTransformer:IF,getAnimatableNone:cne};function R0(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function une({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,s=0,a=0;if(!t)i=s=a=n;else{const o=n<.5?n*(1+t):n+t-n*t,l=2*n-o;i=R0(l,o,e+1/3),s=R0(l,o,e),a=R0(l,o,e-1/3)}return{red:Math.round(i*255),green:Math.round(s*255),blue:Math.round(a*255),alpha:r}}function vy(e,t){return n=>n>0?t:e}const Pt=(e,t,n)=>e+(t-e)*n,I0=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)}
vendor: 21,495 bytes, line 491
491,dne=[pk,Uo,bc],hne=e=>dne.find(t=>t.test(e));function cA(e){const t=hne(e);if(wx(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!t)return!1;let n=t.parse(e);return t===bc&&(n=une(n)),n}const uA=(e,t)=>{const n=cA(e),r=cA(t);if(!n||!r)return vy(e,t);const i={...n};return s=>(i.red=I0(n.red,r.red,s),i.green=I0(n.green,r.green,s),i.blue=I0(n.blue,r.blue,s),i.alpha=Pt(n.alpha,r.alpha,s),Uo.transform(i))},mk=new Set(["none","hidden"]);function fne(e,t){return mk.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function pne(e,t){return n=>Pt(e,t,n)}function TE(e){return typeof e=="number"?pne:typeof e=="string"?jE(e)?vy:Gt.test(e)?uA:yne:Array.isArray(e)?MF:typeof e=="object"?Gt.test(e)?uA:mne:vy}function MF(e,t){const n=[...e],r=n.length,i=e.map((s,a)=>TE(s)(s,t[a]));return s=>{for(let a=0;a<r;a++)n[a]=i[a](s);return n}}function mne(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=TE(e[i])(e[i],t[i]));return i=>{for(const s in r)n[s]=r[s](i);return n}}function gne(e,t){const n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){const s=t.types[i],a=e.indexes[s][r[s]],o=e.values[a]??0;n[i]=o,r[s]++}return n}const yne=(e,t)=>{const n=ro.createTransformer(t),r=yf(e),i=yf(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?mk.has(e)&&!i.values.length||mk.has(t)&&!r.values.length?fne(e,t):$p(MF(gne(r,i),i.values),n):(wx(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),vy(e,t))};function $F(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Pt(e,t,n):TE(e)(e,t)}const vne=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>rt.update(t,n),stop:()=>Qr(t),now:()=>ln.isProcessing?ln.timestamp:Wn.now()}},DF=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let s=0;s<i;s++)r+=Math.round(e(s/(i-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},xy=2e4;function NE(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<xy;)t+=n,r=e.next(t);return t>=xy?1/0:t}function xne(e,t=100,n){const r=n({...e,keyframes:[0,t]}),i=Math.min(NE(r),xy);return{type:"keyframes",ease:s=>r.next(i*s).value/t,duration:Ur(i)}}const bne=5;function LF(e,t,n){const r=Math.max(t-bne,0);return wE(n-e(r),t-r)}const Ct={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},M0=.001;function wne({duration:e=Ct.duration,bounce:t=Ct.bounce,velocity:n=Ct.velocity,mass:r=Ct.mass}){let i,s;wx(e<=Ji(Ct.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let a=1-t;a=Ri(Ct.minDamping,Ct.maxDamping,a),e=Ri(Ct.minDuration,Ct.maxDuration,Ur(e)),a<1?(i=u=>{const d=u*a,h=d*e,f=d-n,p=gk(u,a),g=Math.exp(-h);return M0-f/p*g},s=u=>{const h=u*a*e,f=h*n+n,p=Math.pow(a,2)*Math.pow(u,2)*e,g=Math.exp(-h),m=gk(Math.pow(u,2),a);return(-i(u)+M0>0?-1:1)*((f-p)*g)/m}):(i=u=>{const d=Math.exp(-u*e),h=(u-n)*e+1;return-M0+d*h},s=u=>{const d=Math.exp(-u*e),h=(n-u)*(e*e);return d*h});const o=5/e,l=Sne(i,s,o);if(e=Ji(e),isNaN(l))return{stiffness:Ct.stiffness,damping:Ct.damping,duration:e};{const u=Math.pow(l,2)*r;return{stiffness:u,damping:a*2*Math.sqrt(r*u),duration:e}}}const kne=12;function Sne(e,t,n){let r=n;for(let i=1;i<kne;i++)r=r-e(r)/t(r);return r}function gk(e,t){return e*Math.sqrt(1-t*t)}const jne=["duration","bounce"],_ne=["stiffness","damping","mass"];function dA(e,t){return t.some(n=>e[n]!==void 0)}function Ene(e){let t={velocity:Ct.velocity,stiffness:Ct.stiffness,damping:Ct.damping,mass:Ct.mass,isResolvedFromDuration:!1,...e};if(!dA(e,_ne)&&dA(e,jne))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,s=2*Ri(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:Ct.mass,stiffness:i,damping:s}}else{const n=wne(e);t={...t,...n,mass:Ct.mass},t.isResolvedFromDuration=!0}return t}function by(e=Ct.visualDuration,t=Ct.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const s=n.keyframes[0],a=n.keyframes[n.keyframes.length-1],o={done:!1,value:s},{stiffness:l,damping:u,mass:d,duration:h,velocity:f,isResolvedFromDuration:p}=Ene({...n,velocity:-Ur(n.velocity||0)}),g=f||0,m=u/(2*Math.sqrt(l*d)),y=a-s,v=Ur(Math.sqrt(l/d)),x=Math.abs(y)<5;r||(r=x?Ct.restSpeed.granular:Ct.restSpeed.default),i||(i=x?Ct.restDelta.granular:Ct.restDelta.default);let b;if(m<1){const k=gk(v,m);b=j=>{const _=Math.exp(-m*v*j);return a-_*((g+m*v*y)/k*Math.sin(k*j)+y*Math.cos(k*j))}}else if(m===1)b=k=>a-Math.exp(-v*k)*(y+(g+v*y)*k);else{const k=v*Math.sqrt(m*m-1);b=j=>{const _=Math.exp(-m*v*j),E=Math.min(k*j,300);return a-_*((g+m*v*y)*Math.sinh(E)+k*y*Math.cosh(E))/k}}const S={calculatedDuration:p&&h||null,next:k=>{const j=b(k);if(p)o.done=k>=h;else{let _=k===0?g:0;m<1&&(_=k===0?Ji(g):LF(b,k,j));const E=Math.abs(_)<=r,T=Math.abs(a-j)<=i;o.done=E&&T}return o.value=o.done?a:j,o},toString:()=>{const k=Math.min(NE(S),xy),j=DF(_=>S.next(k*_).value,k,30);return k+"ms "+j},toTransition:()=>{}};return S}by.applyToOptions=e=>{const t=xne(e,100,by);return e.ease=t.ease,e.duration=Ji(t.duration),e.type="keyframes",e};function yk({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:s=500,modifyTarget:a,min:o,max:l,restDelta:u=.5,restSpeed:d}){const h=e[0],f={done:!1,value:h},p=E=>o!==void 0&&E<o||l!==void 0&&E>l,g=E=>o===void 0?l:l===void 0||Math.abs(o-E)<Math.abs(l-E)?o:l;let m=n*t;const y=h+m,v=a===void 0?y:a(y);v!==y&&(m=v-h);const x=E=>-m*Math.exp(-E/r),b=E=>v+x(E),S=E=>{const T=x(E),N=b(E);f.done=Math.abs(T)<=u,f.value=f.done?v:N};let k,j;const _=E=>{p(f.value)&&(k=E,j=by({keyframes:[f.value,g(f.value)],velocity:LF(b,E,f.value),damping:i,stiffness:s,restDelta:u,restSpeed:d}))};return _(0),{calculatedDuration:null,next:E=>{let T=!1;return!j&&k===void 0&&(T=!0,S(E),_(E)),k!==void 0&&E>=k?j.next(E-k):(!T&&S(E),f)}}}function Tne(e,t,n){const r=[],i=n||qs.mix||$F,s=e.length-1;for(let a=0;a<s;a++){let o=i(e[a],e[a+1]);if(t){const l=Array.isArray(t)?t[a]||cr:t;o=$p(l,o)}r.push(o)}return r}function CE(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const s=e.length;if(no(s===t.length,"Both input and output ranges must be the same length","range-length"),s===1)return()=>t[0];if(s===2&&t[0]===t[1])return()=>t[1];const a=e[0]===e[1];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());const o=Tne(t,r,i),l=o.length,u=d=>{if(a&&d<e[0])return t[0];let h=0;if(l>1)for(;h<e.length-2&&!(d<e[h+1]);h++);const f=xu(e[h],e[h+1],d);return o[h](f)};return n?d=>u(Ri(e[0],e[s-1],d)):u}function Nne(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=xu(0,t,r);e.push(Pt(n,1,i))}}function FF(e){const t=[0];return Nne(t,e.length-1),t}function Cne(e,t){return e.map(n=>n*t)}function Ane(e,t){return e.map(()=>t||_F).splice(0,e.length-1)}function Nh({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=Wte(r)?r.map(iA):iA(r),s={done:!1,value:t[0]},a=Cne(n&&n.length===t.length?n:FF(t),e),o=CE(a,t,{ease:Array.isArray(i)?i:Ane(t,i)});return{calculatedDuration:e,next:l=>(s.value=o(l),s.done=l>=e,s)}}const Pne=e=>e!==null;function AE(e,{repeat:t,repeatType:n="loop"},r,i=1){const s=e.filter(Pne),o=i<0||t&&n!=="loop"&&t%2===1?0:s.length-1;return!o||r===void 0?s[o]:r}const One={decay:yk,inertia:yk,tween:Nh,keyframes:Nh,spring:by};function BF(e){typeof e.type=="string"&&(e.type=One[e.type])}class PE{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const Rne=e=>e/100;class OE extends PE{constructor(t){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!==Wn.now()&&this.tick(Wn.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(i=(r=this.options).onStop)==null||i.call(r))},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;BF(t);const{type:n=Nh,repeat:r=0,repeatDelay:i=0,repeatType:s,velocity:a=0}=t;let{keyframes:o}=t;const l=n||Nh;l!==Nh&&typeof o[0]!="number"&&(this.mixKeyframes=$p(Rne,$F(o[0],o[1])),o=[0,100]);const u=l({...t,keyframes:o});s==="mirror"&&(this.mirroredGenerator=l({...t,keyframes:[...o].reverse(),velocity:-a})),u.calculatedDuration===null&&(u.calculatedDuration=NE(u));const{calculatedDuration:d}=u;this.calculatedDuration=d,this.resolvedDuration=d+i,this.totalDuration=this.resolvedDuration*(r+1)-i,this.generator=u}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:r,totalDuration:i,mixKeyframes:s,mirroredGenerator:a,resolvedDuration:o,calculatedDuration:l}=this;if(this.startTime===null)return r.next(0);const{delay:u=0,keyframes:d,repeat:h,repeatType:f,repeatDelay:p,type:g,onUpdate:m,finalKeyframe:y}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-i/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const v=this.currentTime-u*(this.playbackSpeed>=0?1:-1),x=this.playbackSpeed>=0?v<0:v>i;this.currentTime=Math.max(v,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let b=this.currentTime,S=r;if(h){const E=Math.min(this.currentTime,i)/o;let T=Math.floor(E),N=E%1;!N&&E>=1&&(N=1),N===1&&T--,T=Math.min(T,h+1),!!(T%2)&&(f==="reverse"?(N=1-N,p&&(N-=p/o)):f==="mirror"&&(S=a)),b=Ri(0,1,N)*o}const k=x?{done:!1,value:d[0]}:S.next(b);s&&(k.value=s(k.value));let{done:j}=k;!x&&l!==null&&(j=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const _=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&j);return _&&g!==yk&&(k.value=AE(d,this.options,y,this.speed)),m&&m(k.value),_&&this.finish(),k}then(t,n){return this.finished.then(t,n)}get duration(){return Ur(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Ur(t)}get time(){return Ur(this.currentTime)}set time(t){var n;t=Ji(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),(n=this.driver)==null||n.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(Wn.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Ur(this.currentTime))}play(){var i,s;if(this.isStopped)return;const{driver:t=vne,startTime:n}=this.options;this.driver||(this.driver=t(a=>this.tick(a))),(s=(i=this.options).onPlay)==null||s.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(Wn.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var t,n;this.notifyFinished(),this.teardown(),this.state="finished",(n=(t=this.options).onComplete)==null||n.call(t)}cancel(){var t,n;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(n=(t=this.options).onCancel)==null||n.call(t)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){var n;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(n=this.driver)==null||n.stop(),t.observe(this)}}function Ine(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const Wo=e=>e*180/Math.PI,vk=e=>{const t=Wo(Math.atan2(e[1],e[0]));return xk(t)},Mne={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:vk,rotateZ:vk,skewX:e=>Wo(Math.atan(e[1])),skewY:e=>Wo(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},xk=e=>(e=e%360,e<0&&(e+=360),e),hA=vk,fA=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),pA=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),$ne={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:fA,scaleY:pA,scale:e=>(fA(e)+pA(e))/2,rotateX:e=>xk(Wo(Math.atan2(e[6],e[5]))),rotateY:e=>xk(Wo(Math.atan2(-e[2],e[0]))),rotateZ:hA,rotate:hA,skewX:e=>Wo(Math.atan(e[4])),skewY:e=>Wo(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function bk(e){return e.includes("scale")?1:0}function wk(e,t){if(!e||e==="none")return bk(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,i;if(n)r=$ne,i=n;else{const o=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=Mne,i=o}if(!i)return bk(t);const s=r[t],a=i[1].split(",").map(Lne);return typeof s=="function"?s(a):a[s]}const Dne=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return wk(n,t)};function Lne(e){return parseFloat(e.trim())}const cd=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],ud=new Set(cd),mA=e=>e===ld||e===pe,Fne=new Set(["x","y","z"]),Bne=cd.filter(e=>!Fne.has(e));function Vne(e){const t=[];return Bne.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Ia={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>wk(t,"x"),y:(e,{transform:t})=>wk(t,"y")};Ia.translateX=Ia.x;Ia.translateY=Ia.y;const ol=new Set;let kk=!1,Sk=!1,jk=!1;function VF(){if(Sk){const e=Array.from(ol).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=Vne(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([s,a])=>{var o;(o=r.getValue(s))==null||o.set(a)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Sk=!1,kk=!1,ol.forEach(e=>e.complete(jk)),ol.clear()}function qF(){ol.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Sk=!0)})}function qne(){jk=!0,qF(),VF(),jk=!1}class RE{constructor(t,n,r,i,s,a=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=s,this.isAsync=a}scheduleResolve(){this.state="scheduled",this.isAsync?(ol.add(this),kk||(kk=!0,rt.read(qF),rt.resolveKeyframes(VF))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;if(t[0]===null){const s=i==null?void 0:i.get(),a=t[t.length-1];if(s!==void 0)t[0]=s;else if(r&&n){const o=r.readValue(n,a);o!=null&&(t[0]=o)}t[0]===void 0&&(t[0]=a),i&&s===void 0&&i.set(t[0])}Ine(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),ol.delete(this)}cancel(){this.state==="scheduled"&&(ol.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const Une=e=>e.startsWith("--");function Wne(e,t,n){Une(t)?e.style.setProperty(t,n):e.style[t]=n}const UF=xE(()=>window.ScrollTimeline!==void 0),zne={};function Hne(e,t){const n=xE(e);return()=>zne[t]??n()}const WF=Hne(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),ah=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,gA={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ah([0,.65,.55,1]),circOut:ah([.55,0,1,.45]),backIn:ah([.31,.01,.66,-.59]),backOut:ah([.33,1.53,.69,.99])};function zF(e,t){if(e)return typeof e=="function"?WF()?DF(e,t):"ease-out":EF(e)?ah(e):Array.isArray(e)?e.map(n=>zF(n,t)||gA.easeOut):gA[e]}function Kne(e,t,n,{delay:r=0,duration:i=300,repeat:s=0,repeatType:a="loop",ease:o="easeOut",times:l}={},u=void 0){const d={[t]:n};l&&(d.offset=l);const h=zF(o,i);Array.isArray(h)&&(d.easing=h);const f={delay:r,duration:i,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:s+1,direction:a==="reverse"?"alternate":"normal"};return u&&(f.pseudoElement=u),e.animate(d,f)}function HF(e){return typeof e=="function"&&"applyToOptions"in e}function Gne({type:e,...t}){return HF(e)&&WF()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class Yne extends PE{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:n,name:r,keyframes:i,pseudoElement:s,allowFlatten:a=!1,finalKeyframe:o,onComplete:l}=t;this.isPseudoElement=!!s,this.allowFlatten=a,this.options=t,no(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const u=Gne(t);this.animation=Kne(n,r,i,u,s),u.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!s){const d=AE(i,this.options,o,this.speed);this.updateMotionValue?this.updateMotionValue(d):Wne(n,r,d),this.animation.cancel()}l==null||l(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var t,n;(n=(t=this.animation).finish)==null||n.call(t)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var t,n;this.isPseudoElement||(n=(t=this.animation).commitStyles)==null||n.call(t)}get duration(){var n,r;const t=((r=(n=this.animation.effect)==null?void 0:n.getComputedTiming)==null?void 0:r.call(n).duration)||0;return Ur(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Ur(t)}get time(){return Ur(Number(this.animation.currentTime)||0)}set time(t){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=Ji(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,observe:n}){var r;return this.allowFlatten&&((r=this.animation.effect)==null||r.updateTiming({easing:"linear"})),this.animation.onfinish=null,t&&UF()?(this.animation.timeline=t,cr):n(this)}}const KF={anticipate:kF,backInOut:wF,circInOut:jF};function Xne(e){return e in KF}function Qne(e){typeof e.ease=="string"&&Xne(e.ease)&&(e.ease=KF[e.ease])}const $0=10;class Zne extends Yne{constructor(t){Qne(t),BF(t),super(t),t.startTime!==void 0&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:i,element:s,...a}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const o=new OE({...a,autoplay:!1}),l=Math.max($0,Wn.now()-this.startTime),u=Ri(0,$0,l-$0);n.setWithVelocity(o.sample(Math.max(0,l-u)).value,o.sample(l).value,u),o.stop()}}const yA=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(ro.test(e)||e==="0")&&!e.startsWith("url("));function Jne(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function ere(e,t,n,r){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const s=e[e.length-1],a=yA(i,t),o=yA(s,t);return wx(a===o,`You are trying to animate ${t} from "${i}" to "${s}". "${a?s:i}" is not an animatable value.`,"value-not-animatable"),!a||!o?!1:Jne(e)||(n==="spring"||HF(n))&&r}function _k(e){e.duration=0,e.type="keyframes"}const tre=new Set(["opacity","clipPath","filter","transform"]),nre=xE(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function rre(e){var d;const{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:s,type:a}=e;if(!(((d=t==null?void 0:t.owner)==null?void 0:d.current)instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:u}=t.owner.getProps();return nre()&&n&&tre.has(n)&&(n!=="transform"||!u)&&!l&&!r&&i!=="mirror"&&s!==0&&a!=="inertia"}const ire=40;class sre extends PE{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:s=0,repeatType:a="loop",keyframes:o,name:l,motionValue:u,element:d,...h}){var g;super(),this.stop=()=>{var m,y;this._animation&&(this._animation.stop(),(m=this.stopTimeline)==null||m.call(this)),(y=this.keyframeResolver)==null||y.cancel()},this.createdAt=Wn.now();
491const f={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:s,repeatType:a,name:l,motionValue:u,element:d,...h},p=(d==null?void 0:d.KeyframeResolver)||RE;this.keyframeResolver=new p(o,(m,y,v)=>this.onKeyframesResolved(m,y,f,!v),l,u,d),(g=this.keyframeResolver)==null||g.scheduleResolve()}onKeyframesResolved(t,n,r,i){var y,v;this.keyframeResolver=void 0;const{name:s,type:a,velocity:o,delay:l,isHandoff:u,onUpdate:d}=r;this.resolvedAt=Wn.now(),ere(t,s,a,o)||((qs.instantAnimations||!l)&&(d==null||d(AE(t,r,n))),t[0]=t[t.length-1],_k(r),r.repeat=0);const f={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>ire?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},p=!u&&rre(f),g=(v=(y=f.motionValue)==null?void 0:y.owner)==null?void 0:v.current,m=p?new Zne({...f,element:g}):new OE(f);m.finished.then(()=>{this.notifyFinished()}).catch(cr),this.pendingTimeline&&(this.stopTimeline=m.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=m}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){var t;return this._animation||((t=this.keyframeResolver)==null||t.resume(),qne()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var t;this._animation&&this.animation.cancel(),(t=this.keyframeResolver)==null||t.cancel()}}function GF(e,t,n,r=0,i=1){const s=Array.from(e).sort((u,d)=>u.sortNodePosition(d)).indexOf(t),a=e.size,o=(a-1)*r;return typeof n=="function"?n(s,a):i===1?s*r:o-s*r}const are=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function ore(e){const t=are.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}const lre=4;function YF(e,t,n=1){no(n<=lre,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[r,i]=ore(e);if(!r)return;const s=window.getComputedStyle(t).getPropertyValue(r);if(s){const a=s.trim();return pF(a)?parseFloat(a):a}return jE(i)?YF(i,t,n+1):i}const cre={type:"spring",stiffness:500,damping:25,restSpeed:10},ure=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),dre={type:"keyframes",duration:.8},hre={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},fre=(e,{keyframes:t})=>t.length>2?dre:ud.has(e)?e.startsWith("scale")?ure(t[1]):cre:hre,pre=e=>e!==null;function mre(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(pre),s=t&&n!=="loop"&&t%2===1?0:i.length-1;return!s||r===void 0?i[s]:r}function IE(e,t){return(e==null?void 0:e[t])??(e==null?void 0:e.default)??e}function gre({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:s,repeatType:a,repeatDelay:o,from:l,elapsed:u,...d}){return!!Object.keys(d).length}const ME=(e,t,n,r={},i,s)=>a=>{const o=IE(r,e)||{},l=o.delay||r.delay||0;let{elapsed:u=0}=r;u=u-Ji(l);const d={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...o,delay:-u,onUpdate:f=>{t.set(f),o.onUpdate&&o.onUpdate(f)},onComplete:()=>{a(),o.onComplete&&o.onComplete()},name:e,motionValue:t,element:s?void 0:i};gre(o)||Object.assign(d,fre(e,d)),d.duration&&(d.duration=Ji(d.duration)),d.repeatDelay&&(d.repeatDelay=Ji(d.repeatDelay)),d.from!==void 0&&(d.keyframes[0]=d.from);let h=!1;if((d.type===!1||d.duration===0&&!d.repeatDelay)&&(_k(d),d.delay===0&&(h=!0)),(qs.instantAnimations||qs.skipAnimations)&&(h=!0,_k(d),d.delay=0),d.allowFlatten=!o.type&&!o.ease,h&&!s&&t.get()!==void 0){const f=mre(d.keyframes,o);if(f!==void 0){rt.update(()=>{d.onUpdate(f),d.onComplete()});return}}return o.isSync?new OE(d):new sre(d)};function vA(e){const t=[{},{}];
vendor: 5,747 bytes, line 491
491return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function $E(e,t,n,r){if(typeof t=="function"){const[i,s]=vA(r);t=t(n!==void 0?n:e.custom,i,s)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,s]=vA(r);t=t(n!==void 0?n:e.custom,i,s)}return t}function qc(e,t,n){const r=e.getProps();return $E(r,t,n!==void 0?n:r.custom,e)}const XF=new Set(["width","height","top","left","right","bottom",...cd]),xA=30,yre=e=>!isNaN(parseFloat(e)),Ch={current:void 0};class vre{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{var s;const i=Wn.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&((s=this.events.change)==null||s.notify(this.current),this.dependents))for(const a of this.dependents)a.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Wn.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=yre(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new bE);const r=this.events[t].add(n);return t==="change"?()=>{r(),rt.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var t;(t=this.events.change)==null||t.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return Ch.current&&Ch.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const t=Wn.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>xA)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,xA);return wE(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){var t,n;(t=this.dependents)==null||t.clear(),(n=this.events.destroy)==null||n.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function _i(e,t){return new vre(e,t)}const Ek=e=>Array.isArray(e);function xre(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,_i(n))}function bre(e){return Ek(e)?e[e.length-1]||0:e}function wre(e,t){const n=qc(e,t);let{transitionEnd:r={},transition:i={},...s}=n||{};s={...s,...r};for(const a in s){const o=bre(s[a]);xre(e,a,o)}}const $n=e=>!!(e&&e.getVelocity);function kre(e){return!!($n(e)&&e.add)}function Tk(e,t){const n=e.getValue("willChange");if(kre(n))return n.add(t);if(!n&&qs.WillChange){const r=new qs.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function DE(e){return e.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}const Sre="framerAppearId",QF="data-"+DE(Sre);function ZF(e){return e.props[QF]}function jre({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function JF(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:s=e.getDefaultTransition(),transitionEnd:a,...o}=t;const l=s==null?void 0:s.reduceMotion;r&&(s=r);const u=[],d=i&&e.animationState&&e.animationState.getState()[i];for(const h in o){const f=e.getValue(h,e.latestValues[h]??null),p=o[h];if(p===void 0||d&&jre(d,h))continue;const g={delay:n,...IE(s||{},h)},m=f.get();if(m!==void 0&&!f.isAnimating&&!Array.isArray(p)&&p===m&&!g.velocity)continue;let y=!1;if(window.MotionHandoffAnimation){const b=ZF(e);if(b){const S=window.MotionHandoffAnimation(b,h,rt);S!==null&&(g.startTime=S,y=!0)}}Tk(e,h);const v=l??e.shouldReduceMotion;f.start(ME(h,f,p,v&&XF.has(h)?{type:!1}:g,e,y));const x=f.animation;x&&u.push(x)}return a&&Promise.all(u).then(()=>{rt.update(()=>{a&&wre(e,a)})}),u}function Nk(e,t,n={}){var l;const r=qc(e,t,n.type==="exit"?(l=e.presenceContext)==null?void 0:l.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const s=r?()=>Promise.all(JF(e,r,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:d=0,staggerChildren:h,staggerDirection:f}=i;return _re(e,t,u,d,h,f,n)}:()=>Promise.resolve(),{when:o}=i;if(o){const[u,d]=o==="beforeChildren"?[s,a]:[a,s];return u().then(()=>d())}else return Promise.all([s(),a(n.delay)])}function _re(e,t,n=0,r=0,i=0,s=1,a){const o=[];for(const l of e.variantChildren)l.notify("AnimationStart",t),o.push(Nk(l,t,{...a,delay:n+(typeof r=="function"?0:r)+GF(e.variantChildren,l,r,i,s)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(o)}function Ere(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(s=>Nk(e,s,n));r=Promise.all(i)}else if(typeof t=="string")r=Nk(e,t,n);else{const i=typeof t=="function"?qc(e,t,n.custom):t;r=Promise.all(JF(e,i,n))}return r.then(()=>
vendor: 3,841 bytes, line 491
491{e.notify("AnimationComplete",t)})}const Tre={test:e=>e==="auto",parse:e=>e},e6=e=>t=>t.test(e),t6=[ld,pe,es,da,nne,tne,Tre],bA=e=>t6.find(e6(e));function Nre(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||gF(e):!0}const Cre=new Set(["brightness","contrast","saturate","opacity"]);function Are(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(_E)||[];if(!r)return e;const i=n.replace(r,"");let s=Cre.has(t)?1:0;return r!==n&&(s*=100),t+"("+s+i+")"}const Pre=/\b([a-z-]*)\(.*?\)/gu,Ck={...ro,getAnimatableNone:e=>{const t=e.match(Pre);return t?t.map(Are).join(" "):e}},wA={...ld,transform:Math.round},Ore={rotate:da,rotateX:da,rotateY:da,rotateZ:da,scale:Am,scaleX:Am,scaleY:Am,scaleZ:Am,skew:da,skewX:da,skewY:da,distance:pe,translateX:pe,translateY:pe,translateZ:pe,x:pe,y:pe,z:pe,perspective:pe,transformPerspective:pe,opacity:gf,originX:oA,originY:oA,originZ:pe},LE={borderWidth:pe,borderTopWidth:pe,borderRightWidth:pe,borderBottomWidth:pe,borderLeftWidth:pe,borderRadius:pe,borderTopLeftRadius:pe,borderTopRightRadius:pe,borderBottomRightRadius:pe,borderBottomLeftRadius:pe,width:pe,maxWidth:pe,height:pe,maxHeight:pe,top:pe,right:pe,bottom:pe,left:pe,inset:pe,insetBlock:pe,insetBlockStart:pe,insetBlockEnd:pe,insetInline:pe,insetInlineStart:pe,insetInlineEnd:pe,padding:pe,paddingTop:pe,paddingRight:pe,paddingBottom:pe,paddingLeft:pe,paddingBlock:pe,paddingBlockStart:pe,paddingBlockEnd:pe,paddingInline:pe,paddingInlineStart:pe,paddingInlineEnd:pe,margin:pe,marginTop:pe,marginRight:pe,marginBottom:pe,marginLeft:pe,marginBlock:pe,marginBlockStart:pe,marginBlockEnd:pe,marginInline:pe,marginInlineStart:pe,marginInlineEnd:pe,fontSize:pe,backgroundPositionX:pe,backgroundPositionY:pe,...Ore,zIndex:wA,fillOpacity:gf,strokeOpacity:gf,numOctaves:wA},Rre={...LE,color:Gt,backgroundColor:Gt,outlineColor:Gt,fill:Gt,stroke:Gt,borderColor:Gt,borderTopColor:Gt,borderRightColor:Gt,borderBottomColor:Gt,borderLeftColor:Gt,filter:Ck,WebkitFilter:Ck},n6=e=>Rre[e];function r6(e,t){let n=n6(e);return n!==Ck&&(n=ro),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Ire=new Set(["auto","none","0"]);function Mre(e,t,n){let r=0,i;for(;r<e.length&&!i;){const s=e[r];typeof s=="string"&&!Ire.has(s)&&yf(s).values.length&&(i=e[r]),r++}if(i&&n)for(const s of t)e[s]=r6(n,i)}class $re extends RE{constructor(t,n,r,i,s){super(t,n,r,i,s,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let d=0;d<t.length;d++){let h=t[d];if(typeof h=="string"&&(h=h.trim(),jE(h))){const f=YF(h,n.current);f!==void 0&&(t[d]=f),d===t.length-1&&(this.finalKeyframe=h)}}if(this.resolveNoneKeyframes(),!XF.has(r)||t.length!==2)return;const[i,s]=t,a=bA(i),o=bA(s),l=aA(i),u=aA(s);if(l!==u&&Ia[r]){this.needsMeasurement=!0;return}if(a!==o)if(mA(a)&&mA(o))for(let d=0;d<t.length;d++){const h=t[d];typeof h=="string"&&(t[d]=parseFloat(h))}else Ia[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)(t[i]===null||Nre(t[i]))&&r.push(i);r.length&&Mre(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Ia[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(r,i).jump(i,!1)}measureEndState(){var o;const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const i=t.getValue(n);i&&i.jump(this.measuredOrigin,!1);const s=r.length-1,a=r[s];r[s]=Ia[n](t.measureViewportBox(),window.getComputedStyle(t.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),(o=this.removedTransforms)!=null&&o.length&&this.removedTransforms.forEac
vendor: 4,640 bytes, line 491
491h(([l,u])=>{t.getValue(l).set(u)}),this.resolveNoneKeyframes()}}function FE(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e=="string"){const i=document.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(r=>r!=null)}const i6=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function wy(e){return mF(e)&&"offsetHeight"in e}const{schedule:BE,cancel:m6e}=TF(queueMicrotask,!1),fi={x:!1,y:!1};function s6(){return fi.x||fi.y}function Dre(e){return e==="x"||e==="y"?fi[e]?null:(fi[e]=!0,()=>{fi[e]=!1}):fi.x||fi.y?null:(fi.x=fi.y=!0,()=>{fi.x=fi.y=!1})}function a6(e,t){const n=FE(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function kA(e){return!(e.pointerType==="touch"||s6())}function Lre(e,t,n={}){const[r,i,s]=a6(e,n),a=o=>{if(!kA(o))return;const{target:l}=o,u=t(l,o);if(typeof u!="function"||!l)return;const d=h=>{kA(h)&&(u(h),l.removeEventListener("pointerleave",d))};l.addEventListener("pointerleave",d,i)};return r.forEach(o=>{o.addEventListener("pointerenter",a,i)}),s}const o6=(e,t)=>t?e===t?!0:o6(e,t.parentElement):!1,VE=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,Fre=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function l6(e){return Fre.has(e.tagName)||e.isContentEditable===!0}const Eg=new WeakSet;function SA(e){return t=>{t.key==="Enter"&&e(t)}}function D0(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const Bre=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=SA(()=>{if(Eg.has(n))return;D0(n,"down");const i=SA(()=>{D0(n,"up")}),s=()=>D0(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",s,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function jA(e){return VE(e)&&!s6()}function Vre(e,t,n={}){const[r,i,s]=a6(e,n),a=o=>{const l=o.currentTarget;if(!jA(o))return;Eg.add(l);const u=t(l,o),d=(p,g)=>{window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",f),Eg.has(l)&&Eg.delete(l),jA(p)&&typeof u=="function"&&u(p,{success:g})},h=p=>{d(p,l===window||l===document||n.useGlobalTarget||o6(l,p.target))},f=p=>{d(p,!1)};window.addEventListener("pointerup",h,i),window.addEventListener("pointercancel",f,i)};return r.forEach(o=>{(n.useGlobalTarget?window:o).addEventListener("pointerdown",a,i),wy(o)&&(o.addEventListener("focus",u=>Bre(u,i)),!l6(o)&&!o.hasAttribute("tabindex")&&(o.tabIndex=0))}),s}function qE(e){return mF(e)&&"ownerSVGElement"in e}const Tg=new WeakMap;let ha;const c6=(e,t,n)=>(r,i)=>i&&i[0]?i[0][e+"Size"]:qE(r)&&"getBBox"in r?r.getBBox()[t]:r[n],qre=c6("inline","width","offsetWidth"),Ure=c6("block","height","offsetHeight");function Wre({target:e,borderBoxSize:t}){var n;(n=Tg.get(e))==null||n.forEach(r=>{r(e,{get width(){return qre(e,t)},get height(){return Ure(e,t)}})})}function zre(e){e.forEach(Wre)}function Hre(){typeof ResizeObserver>"u"||(ha=new ResizeObserver(zre))}function Kre(e,t){ha||Hre();const n=FE(e);return n.forEach(r=>{let i=Tg.get(r);i||(i=new Set,Tg.set(r,i)),i.add(t),ha==null||ha.observe(r)}),()=>{n.forEach(r=>{const i=Tg.get(r);i==null||i.delete(t),i!=null&&i.size||ha==null||ha.unobserve(r)})}}const Ng=new Set;let wc;function Gre(){wc=()=>{const e={get width(){return window.innerWidth},get height(){return window.innerHeight}};Ng.forEach(t=>t(e))},window.addEventListener("resize",wc)}function Yre(e){return Ng.add(e),wc||Gre(),()=>{Ng.delete(e),!Ng.size&&typeof wc=="function"&&(window.removeEventListener("resize",wc),wc=void 0)}}function Xre(e,t){return typeof e=="function"?Yre(e):Kre(e,t)}function u6(e,t){let n;const r=()=>{const{currentTime:i}=t,a=(i===null?0:i.value)/100;n!==a&&e(a),n=a};return rt.preUpdate(r,!0),()=>Qr(r)}function Qre(e){return qE(e)&&e.tagName==="svg"}function Zre(...e){const t=!Array.isArray(e[0]),n=t?0:-1,r=e[0+n],i=e[1+n],s=e[2+n],a=e[3+n],o=CE(i,s,a);return t?o(r):o}const Jre=[...t6,Gt,ro],eie=e=>Jre.find(e6(e)),_A=()=>({translate:0,scale:1,origin:0,originPoint:0}),kc=()=>({x:_A(),y:_A()}),EA=()=>({min:0,max:0}),en=()=>({x:EA(),y:EA()}),Ak={current:null},d6={current:!1},tie=typeof window<"u";function nie(){if(d6.current=!0,!!tie)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Ak.current=e.matches;e.addEventListener("change",t),t()}else Ak.current=!1}const rie=new WeakMap;function kx(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function vf(e){return typeof e=="string"||Array.isArray(e)}const UE=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],WE=["initial",...
vendor: 34,319 bytes, line 491
491UE];function Sx(e){return kx(e.animate)||WE.some(t=>vf(e[t]))}function h6(e){return!!(Sx(e)||e.variants)}function iie(e,t,n){for(const r in t){const i=t[r],s=n[r];if($n(i))e.addValue(r,i);else if($n(s))e.addValue(r,_i(i,{owner:e}));else if(s!==i)if(e.hasValue(r)){const a=e.getValue(r);a.liveStyle===!0?a.jump(i):a.hasAnimated||a.set(i)}else{const a=e.getStaticValue(r);e.addValue(r,_i(a!==void 0?a:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const TA=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let ky={};function f6(e){ky=e}function sie(){return ky}class aie{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:s,visualState:a},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=RE,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const f=Wn.now();this.renderScheduledAt<f&&(this.renderScheduledAt=f,rt.render(this.render,!1,!0))};const{latestValues:l,renderState:u}=a;this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=u,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=o,this.blockInitialAnimation=!!s,this.isControllingVariants=Sx(n),this.isVariantNode=h6(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:d,...h}=this.scrapeMotionValuesFromProps(n,{},this);for(const f in h){const p=h[f];l[f]!==void 0&&$n(p)&&p.set(l[f])}}mount(t){var n;this.current=t,rie.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((r,i)=>this.bindToMotionValue(i,r)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(d6.current||nie(),this.shouldReduceMotion=Ak.current),(n=this.parent)==null||n.addChild(this),this.update(this.props,this.presenceContext)}unmount(){var t;this.projection&&this.projection.unmount(),Qr(this.notifyUpdate),Qr(this.render),this.valueSubscriptions.forEach(n=>n()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(t=this.parent)==null||t.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(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=ud.has(t);r&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&rt.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let s;typeof window<"u"&&window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),s&&s(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in ky){const n=ky[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const s=this.features[t];s.isMounted?s.update():(s.mount(),s.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):en()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<TA.length;r++){const i=TA[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const s="on"+i,a=t[s];a&&(this.propEventSubscriptions[i]=this.on(i,a))}this.prevMotionValues=iie(this,this.scrapeMotionValuesFromProps(t,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=_i(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(pF(r)||gF(r))?r=parseFloat(r):!eie(r)&&ro.test(n)&&(r=r6(t,n)),this.setBaseTarget(t,$n(r)?r.get():r)),$n(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var s;const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const a=$E(this.props,n,(s=this.presenceContext)==null?void 0:s.custom);a&&(r=a[t])}if(n&&r!==void 0)return r;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!$n(i)?i:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new bE),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){BE.render(this.render)}}class p6 extends aie{constructor(){super(...arguments),this.KeyframeResolver=$re}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){const r=t.style;return r?r[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;$n(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class fo{constructor(t){this.isMounted=!1,this.node=t}update(){}}function m6({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function oie({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function lie(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function L0(e){return e===void 0||e===1}function Pk({scale:e,scaleX:t,scaleY:n}){return!L0(e)||!L0(t)||!L0(n)}function Po(e){return Pk(e)||g6(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function g6(e){return NA(e.x)||NA(e.y)}function NA(e){return e&&e!=="0%"}function Sy(e,t,n){const r=e-n,i=t*r;return n+i}function CA(e,t,n,r,i){return i!==void 0&&(e=Sy(e,i,r)),Sy(e,n,r)+t}function Ok(e,t=0,n=1,r,i){e.min=CA(e.min,t,n,r,i),e.max=CA(e.max,t,n,r,i)}function y6(e,{x:t,y:n}){Ok(e.x,t.translate,t.scale,t.originPoint),Ok(e.y,n.translate,n.scale,n.originPoint)}const AA=.999999999999,PA=1.0000000000001;function cie(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let s,a;for(let o=0;o<i;o++){s=n[o],a=s.projectionDelta;const{visualElement:l}=s.options;l&&l.props.style&&l.props.style.display==="contents"||(r&&s.options.layoutScroll&&s.scroll&&s!==s.root&&jc(e,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,y6(e,a)),r&&Po(s.latestValues)&&jc(e,s.latestValues))}t.x<PA&&t.x>AA&&(t.x=1),t.y<PA&&t.y>AA&&(t.y=1)}function Sc(e,t){e.min=e.min+t,e.max=e.max+t}function OA(e,t,n,r,i=.5){const s=Pt(e.min,e.max,i);Ok(e,t,n,s,r)}function jc(e,t){OA(e.x,t.x,t.scaleX,t.scale,t.originX),OA(e.y,t.y,t.scaleY,t.scale,t.originY)}function v6(e,t){return m6(lie(e.getBoundingClientRect(),t))}function uie(e,t,n){const r=v6(e,n),{scroll:i}=t;return i&&(Sc(r.x,i.offset.x),Sc(r.y,i.offset.y)),r}const die={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},hie=cd.length;function fie(e,t,n){let r="",i=!0;for(let s=0;s<hie;s++){const a=cd[s],o=e[a];if(o===void 0)continue;let l=!0;if(typeof o=="number")l=o===(a.startsWith("scale")?1:0);else{const u=parseFloat(o);l=a.startsWith("scale")?u===1:u===0}if(!l||n){const u=i6(o,LE[a]);if(!l){i=!1;const d=die[a]||a;r+=`${d}(${u}) `}n&&(t[a]=u)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function zE(e,t,n){const{style:r,vars:i,transformOrigin:s}=e;let a=!1,o=!1;for(const l in t){const u=t[l];if(ud.has(l)){a=!0;continue}else if(CF(l)){i[l]=u;continue}else{const d=i6(u,LE[l]);l.startsWith("origin")?(o=!0,s[l]=d):r[l]=d}}if(t.transform||(a||n?r.transform=fie(t,e.transform,n):r.transform&&(r.transform="none")),o){const{originX:l="50%",originY:u="50%",originZ:d=0}=s;r.transformOrigin=`${l} ${u} ${d}`}}function x6(e,{style:t,vars:n},r,i){const s=e.style;let a;for(a in t)s[a]=t[a];i==null||i.applyProjectionStyles(s,r);for(a in n)s.setProperty(a,n[a])}function RA(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Fd={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(pe.test(e))e=parseFloat(e);else return e;const n=RA(e,t.target.x),r=RA(e,t.target.y);return`${n}% ${r}%`}},pie={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=ro.parse(e);if(i.length>5)return r;const s=ro.createTransformer(e),a=typeof i[0]!="number"?1:0,o=n.x.scale*t.x,l=n.y.scale*t.y;i[0+a]/=o,i[1+a]/=l;const u=Pt(o,l,.5);return typeof i[2+a]=="number"&&(i[2+a]/=u),typeof i[3+a]=="number"&&(i[3+a]/=u),s(i)}},Rk={borderRadius:{...Fd,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Fd,borderTopRightRadius:Fd,borderBottomLeftRadius:Fd,borderBottomRightRadius:Fd,boxShadow:pie};function b6(e,{layout:t,layoutId:n}){return ud.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Rk[e]||e==="opacity")}function HE(e,t,n){var a;const r=e.style,i=t==null?void 0:t.style,s={};if(!r)return s;for(const o in r)($n(r[o])||i&&$n(i[o])||b6(o,e)||((a=n==null?void 0:n.getValue(o))==null?void 0:a.liveStyle)!==void 0)&&(s[o]=r[o]);return s}function mie(e){return window.getComputedStyle(e)}class gie extends p6{constructor(){super(...arguments),this.type="html",this.renderInstance=x6}readValueFromInstance(t,n){var r;if(ud.has(n))return(r=this.projection)!=null&&r.isProjecting?bk(n):Dne(t,n);{const i=mie(t),s=(CF(n)?i.getPropertyValue(n):i[n])||0;return typeof s=="string"?s.trim():s}}measureInstanceViewportBox(t,{transformPagePoint:n}){return v6(t,n)}build(t,n,r){zE(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return HE(t,n,r)}}const yie={offset:"stroke-dashoffset",array:"stroke-dasharray"},vie={offset:"strokeDashoffset",array:"strokeDasharray"};function xie(e,t,n=1,r=0,i=!0){e.pathLength=1;const s=i?yie:vie;e[s.offset]=`${-r}`,e[s.array]=`${t} ${n}`}const bie=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function w6(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:s=1,pathOffset:a=0,...o},l,u,d){if(zE(e,o,u),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:h,style:f}=e;h.transform&&(f.transform=h.transform,delete h.transform),(f.transform||h.transformOrigin)&&(f.transformOrigin=h.transformOrigin??"50% 50%",delete h.transformOrigin),f.transform&&(f.transformBox=(d==null?void 0:d.transformBox)??"fill-box",delete h.transformBox);for(const p of bie)h[p]!==void 0&&(f[p]=h[p],delete h[p]);t!==void 0&&(h.x=t),n!==void 0&&(h.y=n),r!==void 0&&(h.scale=r),i!==void 0&&xie(h,i,s,a,!1)}const k6=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"]),S6=e=>typeof e=="string"&&e.toLowerCase()==="svg";function wie(e,t,n,r){x6(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(k6.has(i)?i:DE(i),t.attrs[i])}function j6(e,t,n){const r=HE(e,t,n);for(const i in e)if($n(e[i])||$n(t[i])){const s=cd.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[s]=e[i]}return r}class kie extends p6{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=en}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(ud.has(n)){const r=n6(n);return r&&r.default||0}return n=k6.has(n)?n:DE(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return j6(t,n,r)}build(t,n,r){w6(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,i){wie(t,n,r,i)}mount(t){this.isSVGTag=S6(t.tagName),super.mount(t)}}const Sie=WE.length;function _6(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?_6(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<Sie;n++){const r=WE[n],i=e.props[r];(vf(i)||i===!1)&&(t[r]=i)}return t}function E6(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}const jie=[...UE].reverse(),_ie=UE.length;function Eie(e){return t=>Promise.all(t.map(({animation:n,options:r})=>Ere(e,n,r)))}function Tie(e){let t=Eie(e),n=IA(),r=!0;const i=l=>(u,d)=>{var f;const h=qc(e,d,l==="exit"?(f=e.presenceContext)==null?void 0:f.custom:void 0);if(h){const{transition:p,transitionEnd:g,...m}=h;u={...u,...m,...g}}return u};function s(l){t=l(e)}function a(l){const{props:u}=e,d=_6(e.parent)||{},h=[],f=new Set;let p={},g=1/0;for(let y=0;y<_ie;y++){const v=jie[y],x=n[v],b=u[v]!==void 0?u[v]:d[v],S=vf(b),k=v===l?x.isActive:null;k===!1&&(g=y);let j=b===d[v]&&b!==u[v]&&S;if(j&&r&&e.manuallyAnimateOnMount&&(j=!1),x.protectedKeys={...p},!x.isActive&&k===null||!b&&!x.prevProp||kx(b)||typeof b=="boolean")continue;const _=Nie(x.prevProp,b);let E=_||v===l&&x.isActive&&!j&&S||y>g&&S,T=!1;const N=Array.isArray(b)?b:[b];let P=N.reduce(i(v),{});k===!1&&(P={});const{prevResolvedValues:C={}}=x,M={...C,...P},R=B=>{E=!0,f.has(B)&&(T=!0,f.delete(B)),x.needsAnimating[B]=!0;const I=e.getValue(B);I&&(I.liveStyle=!1)};for(const B in M){const I=P[B],O=C[B];if(p.hasOwnProperty(B))continue;let V=!1;Ek(I)&&Ek(O)?V=!E6(I,O):V=I!==O,V?I!=null?R(B):f.add(B):I!==void 0&&f.has(B)?R(B):x.protectedKeys[B]=!0}x.prevProp=b,x.prevResolvedValues=P,x.isActive&&(p={...p,...P}),r&&e.blockInitialAnimation&&(E=!1);const D=j&&_;E&&(!D||T)&&h.push(...N.map(B=>{const I={type:v};if(typeof B=="string"&&r&&!D&&e.manuallyAnimateOnMount&&e.parent){const{parent:O}=e,V=qc(O,B);if(O.enteringChildren&&V){const{delayChildren:z}=V.transition||{};I.delay=GF(O.enteringChildren,e,z)}}return{animation:B,options:I}}))}if(f.size){const y={};if(typeof u.initial!="boolean"){const v=qc(e,Array.isArray(u.initial)?u.initial[0]:u.initial);v&&v.transition&&(y.transition=v.transition)}f.forEach(v=>{const x=e.getBaseTarget(v),b=e.getValue(v);b&&(b.liveStyle=!0),y[v]=x??null}),h.push({animation:y})}let m=!!h.length;return r&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(m=!1),r=!1,m?t(h):Promise.resolve()}function o(l,u){var h;if(n[l].isActive===u)return Promise.resolve();(h=e.variantChildren)==null||h.forEach(f=>{var p;return(p=f.animationState)==null?void 0:p.setActive(l,u)}),n[l].isActive=u;const d=a(l);for(const f in n)n[f].protectedKeys={};return d}return{animateChanges:a,setActive:o,setAnimateFunction:s,getState:()=>n,reset:()=>{n=IA()}}}function Nie(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!E6(t,e):!1}function So(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function IA(){return{animate:So(!0),whileInView:So(),whileHover:So(),whileTap:So(),whileDrag:So(),whileFocus:So(),exit:So()}}function MA(e,t){e.min=t.min,e.max=t.max}function ui(e,t){MA(e.x,t.x),MA(e.y,t.y)}function $A(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}const T6=1e-4,Cie=1-T6,Aie=1+T6,N6=.01,Pie=0-N6,Oie=0+N6;function zn(e){return e.max-e.min}function Rie(e,t,n){return Math.abs(e-t)<=n}function DA(e,t,n,r=.5){e.origin=r,e.originPoint=Pt(t.min,t.max,e.origin),e.scale=zn(n)/zn(t),e.translate=Pt(n.min,n.max,e.origin)-e.originPoint,(e.scale>=Cie&&e.scale<=Aie||isNaN(e.scale))&&(e.scale=1),(e.translate>=Pie&&e.translate<=Oie||isNaN(e.translate))&&(e.translate=0)}function Ah(e,t,n,r){DA(e.x,t.x,n.x,r?r.originX:void 0),DA(e.y,t.y,n.y,r?r.originY:void 0)}function LA(e,t,n){e.min=n.min+t.min,e.max=e.min+zn(t)}function Iie(e,t,n){LA(e.x,t.x,n.x),LA(e.y,t.y,n.y)}function FA(e,t,n){e.min=t.min-n.min,e.max=e.min+zn(t)}function jy(e,t,n){FA(e.x,t.x,n.x),FA(e.y,t.y,n.y)}function BA(e,t,n,r,i){return e-=t,e=Sy(e,1/n,r),i!==void 0&&(e=Sy(e,1/i,r)),e}function Mie(e,t=0,n=1,r=.5,i,s=e,a=e){if(es.test(t)&&(t=parseFloat(t),t=Pt(a.min,a.max,t/100)-a.min),typeof t!="number")return;let o=Pt(s.min,s.max,r);e===s&&(o-=t),e.min=BA(e.min,t,n,o,i),e.max=BA(e.max,t,n,o,i)}function VA(e,t,[n,r,i],s,a){Mie(e,t[n],t[r],t[i],t.scale,s,a)}const $ie=["x","scaleX","originX"],Die=["y","scaleY","originY"];function qA(e,t,n,r){VA(e.x,t,$ie,n?n.x:void 0,r?r.x:void 0),VA(e.y,t,Die,n?n.y:void 0,r?r.y:void 0)}function UA(e){return e.translate===0&&e.scale===1}function C6(e){return UA(e.x)&&UA(e.y)}function WA(e,t){return e.min===t.min&&e.max===t.max}function Lie(e,t){return WA(e.x,t.x)&&WA(e.y,t.y)}function zA(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function A6(e,t){return zA(e.x,t.x)&&zA(e.y,t.y)}function HA(e){return zn(e.x)/zn(e.y)}function KA(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function Ir(e){return[e("x"),e("y")]}function Fie(e,t,n){let r="";const i=e.x.translate/t.x,s=e.y.translate/t.y,a=(n==null?void 0:n.z)||0;if((i||s||a)&&(r=`translate3d(${i}px, ${s}px, ${a}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:u,rotate:d,rotateX:h,rotateY:f,skewX:p,skewY:g}=n;u&&(r=`perspective(${u}px) ${r}`),d&&(r+=`rotate(${d}deg) `),h&&(r+=`rotateX(${h}deg) `),f&&(r+=`rotateY(${f}deg) `),p&&(r+=`skewX(${p}deg) `),g&&(r+=`skewY(${g}deg) `)}const o=e.x.scale*t.x,l=e.y.scale*t.y;return(o!==1||l!==1)&&(r+=`scale(${o}, ${l})`),r||"none"}const P6=["TopLeft","TopRight","BottomLeft","BottomRight"],Bie=P6.length,GA=e=>typeof e=="string"?parseFloat(e):e,YA=e=>typeof e=="number"||pe.test(e);function Vie(e,t,n,r,i,s){i?(e.opacity=Pt(0,n.opacity??1,qie(r)),e.opacityExit=Pt(t.opacity??1,0,Uie(r))):s&&(e.opacity=Pt(t.opacity??1,n.opacity??1,r));for(let a=0;a<Bie;a++){const o=`border${P6[a]}Radius`;let l=XA(t,o),u=XA(n,o);if(l===void 0&&u===void 0)continue;l||(l=0),u||(u=0),l===0||u===0||YA(l)===YA(u)?(e[o]=Math.max(Pt(GA(l),GA(u),r),0),(es.test(u)||es.test(l))&&(e[o]+="%")):e[o]=u}(t.rotate||n.rotate)&&(e.rotate=Pt(t.rotate||0,n.rotate||0,r))}function XA(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const qie=O6(0,.5,SF),Uie=O6(.5,.95,cr);function O6(e,t,n){return r=>r<e?0:r>t?1:n(xu(e,t,r))}function Wie(e,t,n){const r=$n(e)?e:_i(e);return r.start(ME("",r,t,n)),r.animation}function xf(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const zie=(e,t)=>e.depth-t.depth;class Hie{constructor(){this.children=[],this.isDirty=!1}add(t){yE(this.children,t),this.isDirty=!0}remove(t){vE(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(zie),this.isDirty=!1,this.children.forEach(t)}}function Kie(e,t){const n=Wn.now(),r=({timestamp:i})=>{const s=i-n;s>=t&&(Qr(r),e(s-t))};return rt.setup(r,!0),()=>Qr(r)}function Cg(e){return $n(e)?e.get():e}class Gie{constructor(){this.members=[]}add(t){yE(this.members,t),t.scheduleRender()}remove(t){if(vE(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const s=this.members[i];if(s.isPresent!==!1){r=s;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender();const i=r.options.layoutDependency,s=t.options.layoutDependency;i!==void 0&&s!==void 0&&i===s||(t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0));const{crossfade:o}=t.options;o===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}const Ag={hasAnimatedSinceResize:!0,hasEverUpdated:!1},F0=["","X","Y","Z"],Yie=1e3;let Xie=0;function B0(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function R6(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=ZF(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:s}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",rt,!(i||s))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&R6(r)}function I6({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(a={},o=t==null?void 0:t()){this.id=Xie++,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=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(Jie),this.nodes.forEach(rse),this.nodes.forEach(ise),this.nodes.forEach(ese)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=o?o.root||o:this,this.path=o?[...o.path,o]:[],this.parent=o,this.depth=o?o.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new Hie)}addEventListener(a,o){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new bE),this.eventHandlers.get(a).add(o)}notifyListeners(a,...o){const l=this.eventHandlers.get(a);l&&l.notify(...o)}hasListeners(a){return this.eventHandlers.has(a)}mount(a){if(this.instance)return;this.isSVG=qE(a)&&!Qre(a),this.instance=a;const{layoutId:o,layout:l,visualElement:u}=this.options;if(u&&!u.current&&u.mount(a),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(l||o)&&(this.isLayoutDirty=!0),e){let d,h=0;const f=()=>this.root.updateBlockedByResize=!1;rt.read(()=>{h=window.innerWidth}),e(a,()=>{const p=window.innerWidth;p!==h&&(h=p,this.root.updateBlockedByResize=!0,d&&d(),d=Kie(f,250),Ag.hasAnimatedSinceResize&&(Ag.hasAnimatedSinceResize=!1,this.nodes.forEach(JA)))})}o&&this.root.registerSharedNode(o,this),this.options.animate!==!1&&u&&(o||l)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:h,hasRelativeLayoutChanged:f,layout:p})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const g=this.options.transition||u.getDefaultTransition()||cse,{onLayoutAnimationStart:m,onLayoutAnimationComplete:y}=u.getProps(),v=!this.targetLayout||!A6(this.targetLayout,p),x=!h&&f;if(this.options.layoutRoot||this.resumeFrom||x||h&&(v||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const b={...IE(g,"layout"),onPlay:m,onComplete:y};(u.shouldReduceMotion||this.options.layoutRoot)&&(b.delay=0,b.type=!1),this.startAnimation(b),this.setAnimationOrigin(d,x)}else h||JA(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=p})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Qr(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(sse),this.animationId++)}getTransformTemplate(){const{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&R6(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let d=0;d<this.path.length;d++){const h=this.path[d];h.shouldResetTransform=!0,h.updateScroll("snapshot"),h.options.layoutRoot&&h.willUpdate(!1)}const{layoutId:o,layout:l}=this.options;if(o===void 0&&!l)return;const u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),a&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(QA);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(ZA);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(nse),this.nodes.forEach(Qie),this.nodes.forEach(Zie)):this.nodes.forEach(ZA),this.clearAllSnapshots();const o=Wn.now();ln.delta=Ri(0,1e3/60,o-ln.timestamp),ln.timestamp=o,ln.isProcessing=!0,P0.update.process(ln),P0.preRender.process(ln),P0.render.process(ln),ln.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,BE.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(tse),this.sharedNodes.forEach(ase)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,rt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){rt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!zn(this.snapshot.measuredBox.x)&&!zn(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 l=0;l<this.path.length;l++)this.path[l].updateScroll();const a=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=en(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:o}=this.options;o&&o.notify("LayoutMeasure",this.layout.layoutBox,a?a.layoutBox:void 0)}updateScroll(a="measure"){let o=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===a&&(o=!1),o&&this.instance){const l=r(this.instance);this.scroll={animationId:this.root.animationId,phase:a,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!i)return;const a=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,o=this.projectionDelta&&!C6(this.projectionDelta),l=this.getTransformTemplate(),u=l?l(this.latestValues,""):void 0,d=u!==this.prevTransformTemplateValue;a&&this.instance&&(o||Po(this.latestValues)||d)&&(i(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(a=!0){const o=this.measurePageBox();let l=this.removeElementScroll(o);return a&&(l=this.removeTransform(l)),use(l),{animationId:this.root.animationId,measuredBox:o,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){var u;const{visualElement:a}=this.options;if(!a)return en();const o=a.measureViewportBox();if(!(((u=this.scroll)==null?void 0:u.wasRoot)||this.path.some(dse))){const{scroll:d}=this.root;d&&(Sc(o.x,d.offset.x),Sc(o.y,d.offset.y))}return o}removeElementScroll(a){var l;const o=en();if(ui(o,a),(l=this.scroll)!=null&&l.wasRoot)return o;for(let u=0;u<this.path.length;u++){const d=this.path[u],{scroll:h,options:f}=d;d!==this.root&&h&&f.layoutScroll&&(h.wasRoot&&ui(o,a),Sc(o.x,h.offset.x),Sc(o.y,h.offset.y))}return o}applyTransform(a,o=!1){const l=en();ui(l,a);for(let u=0;u<this.path.length;u++){const d=this.path[u];!o&&d.options.layoutScroll&&d.scroll&&d!==d.root&&jc(l,{x:-d.scroll.offset.x,y:-d.scroll.offset.y}),Po(d.latestValues)&&jc(l,d.latestValues)}return Po(this.latestValues)&&jc(l,this.latestValues),l}removeTransform(a){const o=en();ui(o,a);for(let l=0;l<this.path.length;l++){const u=this.path[l];if(!u.instance||!Po(u.latestValues))continue;Pk(u.latestValues)&&u.updateSnapshot();const d=en(),h=u.measurePageBox();ui(d,h),qA(o,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,d)}return Po(this.latestValues)&&qA(o,this.latestValues),o}setTargetDelta(a){this.targetDelta=a,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(a){this.options={...this.options,...a,crossfade:a.crossfade!==void 0?a.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!==ln.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(a=!1){var p;const o=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=o.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=o.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=o.isSharedProjectionDirty);const l=!!this.resumingFrom||this!==o;if(!(a||l&&this.isSharedProjectionDirty||this.isProjectionDirty||(p=this.parent)!=null&&p.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:d,layoutId:h}=this.options;if(!this.layout||!(d||h))return;this.resolvedRelativeTargetAt=ln.timestamp;const f=this.getClosestProjectingParent();f&&this.linkedParentVersion!==f.layoutVersion&&!f.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(f&&f.layout?this.createRelativeTarget(f,this.layout.layoutBox,f.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=en(),this.targetWithTransforms=en()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Iie(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):ui(this.target,this.layout.layoutBox),y6(this.target,this.targetDelta)):ui(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,f&&!!f.resumingFrom==!!this.resumingFrom&&!f.options.layoutScroll&&f.target&&this.animationProgress!==1?this.createRelativeTarget(f,this.target,f.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||Pk(this.parent.latestValues)||g6(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(a,o,l){this.relativeParent=a,this.linkedParentVersion=a.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=en(),this.relativeTargetOrigin=en(),jy(this.relativeTargetOrigin,o,l),ui(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){var g;const a=this.getLead(),o=!!this.resumingFrom||this!==a;let l=!0;if((this.isProjectionDirty||(g=this.parent)!=null&&g.isProjectionDirty)&&
vendor: 5,279 bytes, line 491
491(l=!1),o&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===ln.timestamp&&(l=!1),l)return;const{layout:u,layoutId:d}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(u||d))return;ui(this.layoutCorrected,this.layout.layoutBox);const h=this.treeScale.x,f=this.treeScale.y;cie(this.layoutCorrected,this.treeScale,this.path,o),a.layout&&!a.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(a.target=a.layout.layoutBox,a.targetWithTransforms=en());const{target:p}=a;if(!p){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():($A(this.prevProjectionDelta.x,this.projectionDelta.x),$A(this.prevProjectionDelta.y,this.projectionDelta.y)),Ah(this.projectionDelta,this.layoutCorrected,p,this.latestValues),(this.treeScale.x!==h||this.treeScale.y!==f||!KA(this.projectionDelta.x,this.prevProjectionDelta.x)||!KA(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",p))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(a=!0){var o;if((o=this.options.visualElement)==null||o.scheduleRender(),a){const l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=kc(),this.projectionDelta=kc(),this.projectionDeltaWithTransform=kc()}setAnimationOrigin(a,o=!1){const l=this.snapshot,u=l?l.latestValues:{},d={...this.latestValues},h=kc();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!o;const f=en(),p=l?l.source:void 0,g=this.layout?this.layout.source:void 0,m=p!==g,y=this.getStack(),v=!y||y.members.length<=1,x=!!(m&&!v&&this.options.crossfade===!0&&!this.path.some(lse));this.animationProgress=0;let b;this.mixTargetDelta=S=>{const k=S/1e3;eP(h.x,a.x,k),eP(h.y,a.y,k),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(jy(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),ose(this.relativeTarget,this.relativeTargetOrigin,f,k),b&&Lie(this.relativeTarget,b)&&(this.isProjectionDirty=!1),b||(b=en()),ui(b,this.relativeTarget)),m&&(this.animationValues=d,Vie(d,u,this.latestValues,k,x,v)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=k},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){var o,l,u;this.notifyListeners("animationStart"),(o=this.currentAnimation)==null||o.stop(),(u=(l=this.resumingFrom)==null?void 0:l.currentAnimation)==null||u.stop(),this.pendingAnimation&&(Qr(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=rt.update(()=>{Ag.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=_i(0)),this.currentAnimation=Wie(this.motionValue,[0,1e3],{...a,velocity:0,isSync:!0,onUpdate:d=>{this.mixTargetDelta(d),a.onUpdate&&a.onUpdate(d)},onStop:()=>{},onComplete:()=>{a.onComplete&&a.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 a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Yie),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:o,target:l,layout:u,latestValues:d}=a;if(!(!o||!l||!u)){if(this!==a&&this.layout&&u&&M6(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||en();const h=zn(this.layout.layoutBox.x);l.x.min=a.target.x.min,l.x.max=l.x.min+h;const f=zn(this.layout.layoutBox.y);l.y.min=a.target.y.min,l.y.max=l.y.min+f}ui(o,l),jc(o,d),Ah(this.projectionDeltaWithTransform,this.layoutCorrected,o,d)}}registerSharedNode(a,o){this.sharedNodes.has(a)||this.sharedNodes.set(a,new Gie),this.sharedNodes.get(a).add(o);const u=o.options.initialPromotionConfig;o.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(o):void 0})}isLead(){const a=this.getStack();return a?a.lead===this:!0}getLead(){var o;const{layoutId:a}=this.options;return a?((o=this.getStack())==null?void 0:o.lead)||this:this}getPrevLead(){var o;const{layoutId:a}=this.options;return a?(o=this.getStack())==null?void 0:o.prevLead:void 0}getStack(){const{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:o,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),a&&(this.projectionDelta=void 0,this.needsReset=!0),o&&this.setOptions({transition:o})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}
vendor: 37,230 bytes, lines 491-499
491resetSkewAndRotation(){const{visualElement:a}=this.options;if(!a)return;let o=!1;const{latestValues:l}=a;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(o=!0),!o)return;const u={};l.z&&B0("z",a,u,this.animationValues);for(let d=0;d<F0.length;d++)B0(`rotate${F0[d]}`,a,u,this.animationValues),B0(`skew${F0[d]}`,a,u,this.animationValues);a.render();for(const d in u)a.setStaticValue(d,u[d]),this.animationValues&&(this.animationValues[d]=u[d]);a.scheduleRender()}applyProjectionStyles(a,o){if(!this.instance||this.isSVG)return;if(!this.isVisible){a.visibility="hidden";return}const l=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,a.visibility="",a.opacity="",a.pointerEvents=Cg(o==null?void 0:o.pointerEvents)||"",a.transform=l?l(this.latestValues,""):"none";return}const u=this.getLead();if(!this.projectionDelta||!this.layout||!u.target){this.options.layoutId&&(a.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,a.pointerEvents=Cg(o==null?void 0:o.pointerEvents)||""),this.hasProjected&&!Po(this.latestValues)&&(a.transform=l?l({},""):"none",this.hasProjected=!1);return}a.visibility="";const d=u.animationValues||u.latestValues;this.applyTransformsToTarget();let h=Fie(this.projectionDeltaWithTransform,this.treeScale,d);l&&(h=l(d,h)),a.transform=h;const{x:f,y:p}=this.projectionDelta;a.transformOrigin=`${f.origin*100}% ${p.origin*100}% 0`,u.animationValues?a.opacity=u===this?d.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:d.opacityExit:a.opacity=u===this?d.opacity!==void 0?d.opacity:"":d.opacityExit!==void 0?d.opacityExit:0;for(const g in Rk){if(d[g]===void 0)continue;const{correct:m,applyTo:y,isCSSVariable:v}=Rk[g],x=h==="none"?d[g]:m(d[g],u);if(y){const b=y.length;for(let S=0;S<b;S++)a[y[S]]=x}else v?this.options.visualElement.renderState.vars[g]=x:a[g]=x}this.options.layoutId&&(a.pointerEvents=u===this?Cg(o==null?void 0:o.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(a=>{var o;return(o=a.currentAnimation)==null?void 0:o.stop()}),this.root.nodes.forEach(QA),this.root.sharedNodes.clear()}}}function Qie(e){e.updateLayout()}function Zie(e){var n;const t=((n=e.resumeFrom)==null?void 0:n.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:s}=e.options,a=t.source!==e.layout.source;s==="size"?Ir(h=>{const f=a?t.measuredBox[h]:t.layoutBox[h],p=zn(f);f.min=r[h].min,f.max=f.min+p}):M6(s,t.layoutBox,r)&&Ir(h=>{const f=a?t.measuredBox[h]:t.layoutBox[h],p=zn(r[h]);f.max=f.min+p,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[h].max=e.relativeTarget[h].min+p)});const o=kc();Ah(o,r,t.layoutBox);const l=kc();a?Ah(l,e.applyTransform(i,!0),t.measuredBox):Ah(l,r,t.layoutBox);const u=!C6(o);let d=!1;if(!e.resumeFrom){const h=e.getClosestProjectingParent();if(h&&!h.resumeFrom){const{snapshot:f,layout:p}=h;if(f&&p){const g=en();jy(g,t.layoutBox,f.layoutBox);const m=en();jy(m,r,p.layoutBox),A6(g,m)||(d=!0),h.options.layoutRoot&&(e.relativeTarget=m,e.relativeTargetOrigin=g,e.relativeParent=h)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:t,delta:l,layoutDelta:o,hasLayoutChanged:u,hasRelativeLayoutChanged:d})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function Jie(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function ese(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function tse(e){e.clearSnapshot()}function QA(e){e.clearMeasurements()}function ZA(e){e.isLayoutDirty=!1}function nse(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function JA(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function rse(e){e.resolveTargetDelta()}function ise(e){e.calcProjection()}function sse(e){e.resetSkewAndRotation()}function ase(e){e.removeLeadSnapshot()}function eP(e,t,n){e.translate=Pt(t.translate,0,n),e.scale=Pt(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function tP(e,t,n,r){e.min=Pt(t.min,n.min,r),e.max=Pt(t.max,n.max,r)}function ose(e,t,n,r){tP(e.x,t.x,n.x,r),tP(e.y,t.y,n.y,r)}function lse(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const cse={duration:.45,ease:[.4,0,.1,1]},nP=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),rP=nP("applewebkit/")&&!nP("chrome/")?Math.round:cr;function iP(e){e.min=rP(e.min),e.max=rP(e.max)}function use(e){iP(e.x),iP(e.y)}function M6(e,t,n){return e==="position"||e==="preserve-aspect"&&!Rie(HA(t),HA(n),.2)}function dse(e){var t;return e!==e.root&&((t=e.scroll)==null?void 0:t.wasRoot)}const hse=I6({attachResizeListener:(e,t)=>xf(e,"resize",t),measureScroll:()=>{var e,t;return{x:document.documentElement.scrollLeft||((e=document.body)==null?void 0:e.scrollLeft)||0,y:document.documentElement.scrollTop||((t=document.body)==null?void 0:t.scrollTop)||0}},checkIsScrollRoot:()=>!0}),V0={current:void 0},$6=I6({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!V0.current){const e=new hse({});e.mount(window),e.setOptions({layoutScroll:!0}),V0.current=e}return V0.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),jx=w.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function sP(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function fse(...e){return t=>{let n=!1;const r=e.map(i=>{const s=sP(i,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let i=0;i<r.length;i++){const s=r[i];typeof s=="function"?s():sP(e[i],null)}}}}function pse(...e){return w.useCallback(fse(...e),e)}class mse extends w.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=n.offsetParent,i=wy(r)&&r.offsetWidth||0,s=wy(r)&&r.offsetHeight||0,a=this.props.sizeRef.current;a.height=n.offsetHeight||0,a.width=n.offsetWidth||0,a.top=n.offsetTop,a.left=n.offsetLeft,a.right=i-a.width-a.left,a.bottom=s-a.height-a.top}return null}componentDidUpdate(){}render(){return this.props.children}}function gse({children:e,isPresent:t,anchorX:n,anchorY:r,root:i}){var h;const s=w.useId(),a=w.useRef(null),o=w.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:l}=w.useContext(jx),u=((h=e.props)==null?void 0:h.ref)??(e==null?void 0:e.ref),d=pse(a,u);return w.useInsertionEffect(()=>{const{width:f,height:p,top:g,left:m,right:y,bottom:v}=o.current;if(t||!a.current||!f||!p)return;const x=n==="left"?`left: ${m}`:`right: ${y}`,b=r==="bottom"?`bottom: ${v}`:`top: ${g}`;a.current.dataset.motionPopId=s;const S=document.createElement("style");l&&(S.nonce=l);const k=i??document.head;return k.appendChild(S),S.sheet&&S.sheet.insertRule(` 492 [data-motion-pop-id="${s}"] { 493 position: absolute !important; 494 width: ${f}px !important; 495 height: ${p}px !important; 496 ${x}px !important; 497 ${b}px !important; 498 } 499 `),()=>{k.contains(S)&&k.removeChild(S)}},[t]),c.jsx(mse,{isPresent:t,childRef:a,sizeRef:o,children:w.cloneElement(e,{ref:d})})}const yse=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:s,mode:a,anchorX:o,anchorY:l,root:u})=>{const d=to(vse),h=w.useId();let f=!0,p=w.useMemo(()=>(f=!1,{id:h,initial:t,isPresent:n,custom:i,onExitComplete:g=>{d.set(g,!0);for(const m of d.values())if(!m)return;r&&r()},register:g=>(d.set(g,!1),()=>d.delete(g))}),[n,d,r]);return s&&f&&(p={...p}),w.useMemo(()=>{d.forEach((g,m)=>d.set(m,!1))},[n]),w.useEffect(()=>{!n&&!d.size&&r&&r()},[n]),a==="popLayout"&&(e=c.jsx(gse,{isPresent:n,anchorX:o,anchorY:l,root:u,children:e})),c.jsx(bx.Provider,{value:p,children:e})};function vse(){return new Map}function D6(e=!0){const t=w.useContext(bx);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,s=w.useId();w.useEffect(()=>{if(e)return i(s)},[e]);const a=w.useCallback(()=>e&&r&&r(s),[s,r,e]);return!n&&r?[!1,a]:[!0]}const Pm=e=>e.key||"";function aP(e){const t=[];return w.Children.forEach(e,n=>{w.isValidElement(n)&&t.push(n)}),t}const Ka=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:s="sync",propagate:a=!1,anchorX:o="left",anchorY:l="top",root:u})=>{const[d,h]=D6(a),f=w.useMemo(()=>aP(e),[e]),p=a&&!d?[]:f.map(Pm),g=w.useRef(!0),m=w.useRef(f),y=to(()=>new Map),v=w.useRef(new Set),[x,b]=w.useState(f),[S,k]=w.useState(f);xx(()=>{g.current=!1,m.current=f;for(let E=0;E<S.length;E++){const T=Pm(S[E]);p.includes(T)?(y.delete(T),v.current.delete(T)):y.get(T)!==!0&&y.set(T,!1)}},[S,p.length,p.join("-")]);const j=[];if(f!==x){let E=[...f];for(let T=0;T<S.length;T++){const N=S[T],P=Pm(N);p.includes(P)||(E.splice(T,0,N),j.push(N))}return s==="wait"&&j.length&&(E=j),k(aP(E)),b(f),null}const{forceRender:_}=w.useContext(gE);return c.jsx(c.Fragment,{children:S.map(E=>{const T=Pm(E),N=a&&!d?!1:f===S||p.includes(T),P=()=>{if(v.current.has(T))return;if(v.current.add(T),y.has(T))y.set(T,!0);else return;let C=!0;y.forEach(M=>{M||(C=!1)}),C&&(_==null||_(),k(m.current),a&&(h==null||h()),r&&r())};return c.jsx(yse,{isPresent:N,initial:!g.current||n?void 0:!1,custom:t,presenceAffectsLayout:i,mode:s,root:u,onExitComplete:N?void 0:P,anchorX:o,anchorY:l,children:E},T)})})},L6=w.createContext({strict:!1}),oP={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 lP=!1;function xse(){if(lP)return;const e={};for(const t in oP)e[t]={isEnabled:n=>oP[t].some(r=>!!n[r])};f6(e),lP=!0}function F6(){return xse(),sie()}function bse(e){const t=F6();for(const n in e)t[n]={...t[n],...e[n]};f6(t)}const wse=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function _y(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||wse.has(e)}let B6=e=>!_y(e);function kse(e){typeof e=="function"&&(B6=t=>t.startsWith("on")?!_y(t):e(t))}try{kse(require("@emotion/is-prop-valid").default)}catch{}function Sse(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(B6(i)||n===!0&&_y(i)||!t&&!_y(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}const _x=w.createContext({});function jse(e,t){if(Sx(e)){const{initial:n,animate:r}=e;return{initial:n===!1||vf(n)?n:void 0,animate:vf(r)?r:void 0}}return e.inherit!==!1?t:{}}function _se(e){const{initial:t,animate:n}=jse(e,w.useContext(_x));return w.useMemo(()=>({initial:t,animate:n}),[cP(t),cP(n)])}function cP(e){return Array.isArray(e)?e.join(" "):e}const KE=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function V6(e,t,n){for(const r in t)!$n(t[r])&&!b6(r,n)&&(e[r]=t[r])}function Ese({transformTemplate:e},t){return w.useMemo(()=>{const n=KE();return zE(n,t,e),Object.assign({},n.vars,n.style)},[t])}function Tse(e,t){const n=e.style||{},r={};return V6(r,n,e),Object.assign(r,Ese(e,t)),r}function Nse(e,t){const n={},r=Tse(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const q6=()=>({...KE(),attrs:{}});function Cse(e,t,n,r){const i=w.useMemo(()=>{const s=q6();return w6(s,t,S6(r),e.transformTemplate,e.style),{...s.attrs,style:{...s.style}}},[t]);if(e.style){const s={};V6(s,e.style,e),i.style={...s,...i.style}}return i}const Ase=["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 GE(e){return typeof e!="string"||e.includes("-")?!1:!!(Ase.indexOf(e)>-1||/[A-Z]/u.test(e))}function Pse(e,t,n,{latestValues:r},i,s=!1,a){const l=(a??GE(e)?Cse:Nse)(t,r,i,e),u=Sse(t,typeof e=="string",s),d=e!==w.Fragment?{...u,...l,ref:n}:{},{children:h}=t,f=w.useMemo(()=>$n(h)?h.get():h,[h]);return w.createElement(e,{...d,children:f})}function Ose({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:Rse(n,r,i,e),renderState:t()}}function Rse(e,t,n,r){const i={},s=r(e,{});for(const f in s)i[f]=Cg(s[f]);let{initial:a,animate:o}=e;const l=Sx(e),u=h6(e);t&&u&&!l&&e.inherit!==!1&&(a===void 0&&(a=t.initial),o===void 0&&(o=t.animate));let d=n?n.initial===!1:!1;d=d||a===!1;const h=d?o:a;if(h&&typeof h!="boolean"&&!kx(h)){const f=Array.isArray(h)?h:[h];for(let p=0;p<f.length;p++){const g=$E(e,f[p]);if(g){const{transitionEnd:m,transition:y,...v}=g;for(const x in v){let b=v[x];if(Array.isArray(b)){const S=d?b.length-1:0;b=b[S]}b!==null&&(i[x]=b)}for(const x in m)i[x]=m[x]}}}return i}const U6=e=>(t,n)=>{const r=w.useContext(_x),i=w.useContext(bx),s=()=>Ose(e,t,r,i);return n?s():to(s)},Ise=U6({scrapeMotionValuesFromProps:HE,createRenderState:KE}),Mse=U6({scrapeMotionValuesFromProps:j6,createRenderState:q6}),$se=Symbol.for("motionComponentSymbol");function Dse(e,t,n){const r=w.useRef(n);w.useInsertionEffect(()=>{r.current=n});const i=w.useRef(null);return w.useCallback(s=>{var o;s&&((o=e.onMount)==null||o.call(e,s)),t&&(s?t.mount(s):t.unmount());const a=r.current;if(typeof a=="function")if(s){const l=a(s);typeof l=="function"&&(i.current=l)}else i.current?(i.current(),i.current=null):a(s);else a&&(a.current=s)},[t])}const W6=w.createContext({});function oh(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function Lse(e,t,n,r,i,s){var v,x;const{visualElement:a}=w.useContext(_x),o=w.useContext(L6),l=w.useContext(bx),u=w.useContext(jx).reducedMotion,d=w.useRef(null),h=w.useRef(!1);r=r||o.renderer,!d.current&&r&&(d.current=r(e,{visualState:t,parent:a,props:n,presenceContext:l,blockInitialAnimation:l?l.initial===!1:!1,reducedMotionConfig:u,isSVG:s}),h.current&&d.current&&(d.current.manuallyAnimateOnMount=!0));const f=d.current,p=w.useContext(W6);f&&!f.projection&&i&&(f.type==="html"||f.type==="svg")&&Fse(d.current,n,i,p);const g=w.useRef(!1);w.useInsertionEffect(()=>{f&&g.current&&f.update(n,l)});const m=n[QF],y=w.useRef(!!m&&!((v=window.MotionHandoffIsComplete)!=null&&v.call(window,m))&&((x=window.MotionHasOptimisedAnimation)==null?void 0:x.call(window,m)));return xx(()=>{h.current=!0,f&&(g.current=!0,window.MotionIsMounted=!0,f.updateFeatures(),f.scheduleRenderMicrotask(),y.current&&f.animationState&&f.animationState.animateChanges())}),w.useEffect(()=>{f&&(!y.current&&f.animationState&&f.animationState.animateChanges(),y.current&&(queueMicrotask(()=>{var b;(b=window.MotionHandoffMarkAsComplete)==null||b.call(window,m)}),y.current=!1),f.enteringChildren=void 0)}),f}function Fse(e,t,n,r){const{layoutId:i,layout:s,drag:a,dragConstraints:o,layoutScroll:l,layoutRoot:u,layoutCrossfade:d}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:z6(e.parent)),e.projection.setOptions({layoutId:i,layout:s,alwaysMeasureLayout:!!a||o&&oh(o),visualElement:e,animationType:typeof s=="string"?s:"both",initialPromotionConfig:r,crossfade:d,layoutScroll:l,layoutRoot:u})}function z6(e){if(e)return e.options.allowProjection!==!1?e.projection:z6(e.parent)}function q0(e,{forwardMotionProps:t=!1,type:n}={},r,i){r&&bse(r);const s=n?n==="svg":GE(e),a=s?Mse:Ise;function o(u,d){let h;const f={...w.useContext(jx),...u,layoutId:Bse(u)},{isStatic:p}=f,g=_se(u),m=a(u,p);if(!p&&fF){Vse();const y=qse(f);h=y.MeasureLayout,g.visualElement=Lse(e,m,f,i,y.ProjectionNode,s)}return c.jsxs(_x.Provider,{value:g,children:[h&&g.visualElement?c.jsx(h,{visualElement:g.visualElement,...f}):null,Pse(e,u,Dse(m,g.visualElement,d),m,p,t,s)]})}o.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const l=w.forwardRef(o);return l[$se]=e,l}function Bse({layoutId:e}){const t=w.useContext(gE).id;return t&&e!==void 0?t+"-"+e:e}function Vse(e,t){w.useContext(L6).strict}function qse(e){const t=F6(),{drag:n,layout:r}=t;if(!n&&!r)return{};const i={...n,...r};return{MeasureLayout:n!=null&&n.isEnabled(e)||r!=null&&r.isEnabled(e)?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}function Use(e,t){if(typeof Proxy>"u")return q0;const n=new Map,r=(s,a)=>q0(s,a,e,t),i=(s,a)=>r(s,a);return new Proxy(i,{get:(s,a)=>a==="create"?r:(n.has(a)||n.set(a,q0(a,void 0,e,t)),n.get(a))})}const Wse=(e,t)=>t.isSVG??GE(e)?new kie(t):new gie(t,{allowProjection:e!==w.Fragment});class zse extends fo{constructor(t){super(t),t.animationState||(t.animationState=Tie(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();kx(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)==null||t.call(this)}}let Hse=0;class Kse extends fo{constructor(){super(...arguments),this.id=Hse++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const Gse={animation:{Feature:zse},exit:{Feature:Kse}};function Fp(e){return{point:{x:e.pageX,y:e.pageY}}}const Yse=e=>t=>VE(t)&&e(t,Fp(t));function Ph(e,t,n,r){return xf(e,t,Yse(n),r)}const H6=({current:e})=>e?e.ownerDocument.defaultView:null,uP=(e,t)=>Math.abs(e-t);function Xse(e,t){const n=uP(e.x,t.x),r=uP(e.y,t.y);return Math.sqrt(n**2+r**2)}const dP=new Set(["auto","scroll"]);class K6{constructor(t,n,{transformPagePoint:r,contextWindow:i=window,dragSnapToOrigin:s=!1,distanceThreshold:a=3,element:o}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=p=>{this.handleScroll(p.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const p=W0(this.lastMoveEventInfo,this.history),g=this.startEvent!==null,m=Xse(p.offset,{x:0,y:0})>=this.distanceThreshold;if(!g&&!m)return;const{point:y}=p,{timestamp:v}=ln;this.history.push({...y,timestamp:v});const{onStart:x,onMove:b}=this.handlers;g||(x&&x(this.lastMoveEvent,p),this.startEvent=this.lastMoveEvent),b&&b(this.lastMoveEvent,p)},this.handlePointerMove=(p,g)=>{this.lastMoveEvent=p,this.lastMoveEventInfo=U0(g,this.transformPagePoint),rt.update(this.updatePoint,!0)},this.handlePointerUp=(p,g)=>{this.end();const{onEnd:m,onSessionEnd:y,resumeAnimation:v}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&v&&v(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const x=W0(p.type==="pointercancel"?this.lastMoveEventInfo:U0(g,this.transformPagePoint),this.history);this.startEvent&&m&&m(p,x),y&&y(p,x)},!VE(t))return;this.dragSnapToOrigin=s,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=a,this.contextWindow=i||window;const l=Fp(t),u=U0(l,this.transformPagePoint),{point:d}=u,{timestamp:h}=ln;this.history=[{...d,timestamp:h}];const{onSessionStart:f}=n;f&&f(t,W0(u,this.history)),this.removeListeners=$p(Ph(this.contextWindow,"pointermove",this.handlePointerMove),Ph(this.contextWindow,"pointerup",this.handlePointerUp),Ph(this.contextWindow,"pointercancel",this.handlePointerUp)),o&&this.startScrollTracking(o)}startScrollTracking(t){let n=t.parentElement;for(;n;){const r=getComputedStyle(n);(dP.has(r.overflowX)||dP.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,passive:!0}),window.addEventListener("scroll",this.onWindowScroll,{passive:!0}),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){const n=this.scrollPositions.get(t);if(!n)return;const r=t===window,i=r?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},s={x:i.x-n.x,y:i.y-n.y};s.x===0&&s.y===0||(r?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=s.x,this.lastMoveEventInfo.point.y+=s.y):this.history.length>0&&(this.history[0].x-=s.x,this.history[0].y-=s.y),this.scrollPositions.set(t,i),rt.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),Qr(this.updatePoint)}}function U0(e,t){return t?{point:t(e.point)}:e}function hP(e,t){return{x:e.x-t.x,y:e.y-t.y}}function W0({point:e},t){return{point:e,delta:hP(e,G6(t)),offset:hP(e,Qse(t)),velocity:Zse(t,.1)}}function Qse(e){return e[0]}function G6(e){return e[e.length-1]}function Zse(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=G6(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>Ji(t)));)n--;if(!r)return{x:0,y:0};const s=Ur(i.timestamp-r.timestamp);if(s===0)return{x:0,y:0};const a={x:(i.x-r.x)/s,y:(i.y-r.y)/s};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function Jse(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?Pt(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?Pt(n,e,r.max):Math.min(e,n)),e}function fP(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function eae(e,{top:t,left:n,bottom:r,right:i}){return{x:fP(e.x,n,i),y:fP(e.y,t,r)}}function pP(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function tae(e,t){return{x:pP(e.x,t.x),y:pP(e.y,t.y)}}function nae(e,t){let n=.5;const r=zn(e),i=zn(t);return i>r?n=xu(t.min,t.max-r,e.min):r>i&&(n=xu(e.min,e.max-i,t.min)),Ri(0,1,n)}function rae(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const Ik=.35;function iae(e=Ik){return e===!1?e=0:e===!0&&(e=Ik),{x:mP(e,"left","right"),y:mP(e,"top","bottom")}}function mP(e,t,n){return{min:gP(e,t),max:gP(e,n)}}function gP(e,t){return typeof e=="number"?e:e[t]||0}const sae=new WeakMap;class aae{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=en(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:r}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const s=h=>{n?(this.stopAnimation(),this.snapToCursor(Fp(h).point)):this.pauseAnimation()},a=(h,f)=>{this.stopAnimation();const{drag:p,dragPropagation:g,onDragStart:m}=this.getProps();if(p&&!g&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Dre(p),!this.openDragLock))return;this.latestPointerEvent=h,this.latestPanInfo=f,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Ir(v=>{let x=this.getAxisMotionValue(v).get()||0;if(es.test(x)){const{projection:b}=this.visualElement;if(b&&b.layout){const S=b.layout.layoutBox[v];S&&(x=zn(S)*(parseFloat(x)/100))}}this.originPoint[v]=x}),m&&rt.postRender(()=>m(h,f)),Tk(this.visualElement,"transform");const{animationState:y}=this.visualElement;y&&y.setActive("whileDrag",!0)},o=(h,f)=>{this.latestPointerEvent=h,this.latestPanInfo=f;const{dragPropagation:p,dragDirectionLock:g,onDirectionLock:m,onDrag:y}=this.getProps();if(!p&&!this.openDragLock)return;const{offset:v}=f;if(g&&this.currentDirection===null){this.currentDirection=oae(v),this.currentDirection!==null&&m&&m(this.currentDirection);return}this.updateAxis("x",f.point,v),this.updateAxis("y",f.point,v),this.visualElement.render(),y&&y(h,f)},l=(h,f)=>{this.latestPointerEvent=h,this.latestPanInfo=f,this.stop(h,f),this.latestPointerEvent=null,this.latestPanInfo=null},u=()=>Ir(h=>{var f;return this.getAnimationState(h)==="paused"&&((f=this.getAxisMotionValue(h).animation)==null?void 0:f.play())}),{dragSnapToOrigin:d}=this.getProps();this.panSession=new K6(t,{onSessionStart:s,onStart:a,onMove:o,onSessionEnd:l,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,distanceThreshold:r,contextWindow:H6(this.visualElement),element:this.visualElement.current})}stop(t,n){const r=t||this.latestPointerEvent,i=n||this.latestPanInfo,s=this.isDragging;if(this.cancel(),!s||!i||!r)return;const{velocity:a}=i;this.startAnimation(a);const{onDragEnd:o}=this.getProps();o&&rt.postRender(()=>o(r,i))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.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(t,n,r){const{drag:i}=this.getProps();if(!r||!Om(t,i,this.currentDirection))return;const s=this.getAxisMotionValue(t);let a=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(a=Jse(a,this.constraints[t],this.elastic[t])),s.set(a)}resolveConstraints(){var s;const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(s=this.visualElement.projection)==null?void 0:s.layout,i=this.constraints;t&&oh(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=eae(r.layoutBox,t):this.constraints=!1,this.elastic=iae(n),i!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&Ir(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=rae(r.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!oh(t))return!1;const r=t.current;no(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");const{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const s=uie(r,i.root,this.visualElement.getTransformPagePoint());let a=tae(i.layout.layoutBox,s);if(n){const o=n(oie(a));this.hasMutatedConstraints=!!o,o&&(a=m6(o))}return a}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:s,dragSnapToOrigin:a,onDragTransitionEnd:o}=this.getProps(),l=this.constraints||{},u=Ir(d=>{if(!Om(d,n,this.currentDirection))return;let h=l&&l[d]||{};a&&(h={min:0,max:0});const f=i?200:1e6,p=i?40:1e7,g={type:"inertia",velocity:r?t[d]:0,bounceStiffness:f,bounceDamping:p,timeConstant:750,restDelta:1,restSpeed:10,...s,...h};return this.startAxisValueAnimation(d,g)});return Promise.all(u).then(o)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return Tk(this.visualElement,t),r.start(ME(t,r,0,n,this.visualElement,!1))}stopAnimation(){Ir(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Ir(t=>{var n;return(n=this.getAxisMotionValue(t).animation)==null?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)==null?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){Ir(n=>{const{drag:r}=this.getProps();if(!Om(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,s=this.getAxisMotionValue(n);if(i&&i.layout){const{min:a,max:o}=i.layout.layoutBox[n],l=s.get()||0;s.set(t[n]-Pt(a,o,.5)+l)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!oh(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Ir(a=>{const o=this.getAxisMotionValue(a);if(o&&this.constraints!==!1){const l=o.get();i[a]=nae({min:l,max:l},this.constraints[a])}});const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Ir(a=>{if(!Om(a,t,null))return;const o=this.getAxisMotionValue(a),{min:l,max:u}=this.constraints[a];o.set(Pt(l,u,i[a]))})}addListeners(){if(!this.visualElement.current)return;sae.set(this.visualElement,this);const t=this.visualElement.current,n=Ph(t,"pointerdown",l=>{const{drag:u,dragListener:d=!0}=this.getProps(),h=l.target,f=h!==t&&l6(h);u&&d&&!f&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();oh(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,s=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),rt.read(r);const a=xf(window,"resize",()=>this.scalePositionWithinConstraints()),o=i.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(Ir(d=>{const h=this.getAxisMotionValue(d);h&&(this.originPoint[d]+=l[d].translate,h.set(h.get()+l[d].translate))}),this.visualElement.render())});return()=>{a(),n(),s(),o&&o()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:s=!1,dragElastic:a=Ik,dragMomentum:o=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:s,dragElastic:a,dragMomentum:o}}}function Om(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function oae(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class lae extends fo{constructor(t){super(t),this.removeGroupControls=cr,this.removeListeners=cr,this.controls=new aae(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||cr}update(){const{dragControls:t}=this.node.getProps(),{dragControls:n}=this.node.prevProps||{};t!==n&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const yP=e=>(t,n)=>{e&&rt.postRender(()=>e(t,n))};class cae extends fo{constructor(){super(...arguments),this.removePointerDownListener=cr}onPointerDown(t){this.session=new K6(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:H6(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:yP(t),onStart:yP(n),onMove:r,onEnd:(s,a)=>{delete this.session,i&&rt.postRender(()=>i(s,a))}}}mount(){this.removePointerDownListener=Ph(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let z0=!1;class uae extends w.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:s}=t;s&&(n.group&&n.group.add(s),r&&r.register&&i&&r.register(s),z0&&s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),Ag.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:s}=this.props,{projection:a}=r;return a&&(a.isPresent=s,t.layoutDependency!==n&&a.setOptions({...a.options,layoutDependency:n}),z0=!0,i||t.layoutDependency!==n||n===void 0||t.isPresent!==s?a.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?a.promote():a.relegate()||rt.postRender(()=>{const o=a.getStack();(!o||!o.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),BE.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;z0=!0,i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Y6(e){const[t,n]=D6(),r=w.useContext(gE);return c.jsx(uae,{...e,layoutGroup:r,switchLayoutGroup:w.useContext(W6),isPresent:t,safeToRemove:n})}const dae={pan:{Feature:cae},drag:{Feature:lae,ProjectionNode:$6,MeasureLayout:Y6}};function vP(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,s=r[i];s&&rt.postRender(()=>s(t,Fp(t)))}class hae extends fo{mount(){const{current:t}=this.node;t&&(this.unmount=Lre(t,(n,r)=>(vP(this.node,r,"Start"),i=>vP(this.node,i,"End"))))}unmount(){}}class fae extends fo{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=$p(xf(this.node.current,"focus",()=>this.onFocus()),xf(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function xP(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),s=r[i];s&&rt.postRender(()=>s(t,Fp(t)))}class pae extends fo{mount(){const{current:t}=this.node;t&&(this.unmount=Vre(t,(n,r)=>(xP(this.node,r,"Start"),(i,{success:s})=>xP(this.node,i,s?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Mk=new WeakMap,H0=new WeakMap,mae=e=>{const t=Mk.get(e.target);t&&t(e)},gae=e=>{e.forEach(mae)};function yae({root:e,...t}){const n=e||document;H0.has(n)||H0.set(n,{});const r=H0.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(gae,{root:e,...t})),r[i]}function vae(e,t,n){const r=yae(t);return Mk.set(e,n),r.observe(e),()=>{Mk.delete(e),r.unobserve(e)}}const xae={some:0,all:1};class bae extends fo{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:s}=t,a={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:xae[i]},o=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,s&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:d,onViewportLeave:h}=this.node.getProps(),f=u?d:h;f&&f(l)};return vae(this.node.current,a,o)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(wae(t,n))&&this.startObserver()}unmount(){}}function wae({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const kae={inView:{Feature:bae},tap:{Feature:pae},focus:{Feature:fae},hover:{Feature:hae}},Sae={layout:{ProjectionNode:$6,MeasureLayout:Y6}},jae={...Gse,...kae,...dae,...Sae},U=Use(jae,Wse),_ae=50,bP=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),Eae=()=>({time:0,x:bP(),y:bP()}),Tae={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function wP(e,t,n,r){const i=n[t],{length:s,position:a}=Tae[t],o=i.current,l=n.time;i.current=e[`scroll${a}`],i.scrollLength=e[`scroll${s}`]-e[`client${s}`],i.offset.length=0,i.offset[0]=0,i.offset[1]=i.scrollLength,i.progress=xu(0,i.scrollLength,i.current);const u=r-l;i.velocity=u>
499_ae?0:wE(i.current-o,u)}function Nae(e,t,n){wP(e,"x",t,n),wP(e,"y",t,n),t.time=n}function Cae(e,t){const n={x:0,y:0};let r=e;for(;r&&r!==t;)if(wy(r))n.x+=r.offsetLeft,n.y+=r.offsetTop,r=r.offsetParent;else if(r.tagName==="svg"){const i=r.getBoundingClientRect();r=r.parentElement;const s=r.getBoundingClientRect();n.x+=i.left-s.left,n.y+=i.top-s.top}else if(r instanceof SVGGraphicsElement){const{x:i,y:s}=r.getBBox();n.x+=i,n.y+=s;let a=null,o=r.parentNode;for(;!a;)o.tagName==="svg"&&(a=o),o=r.parentNode;r=a}else break;return n}const $k={start:0,center:.5,end:1};function kP(e,t,n=0){let r=0;if(e in $k&&(e=$k[e]),typeof e=="string"){const i=parseFloat(e);e.endsWith("px")?r=i:e.endsWith("%")?e=i/100:e.endsWith("vw")?r=i/100*document.documentElement.clientWidth:e.endsWith("vh")?r=i/100*document.documentElement.clientHeight:e=i}return typeof e=="number"&&(r=t*e),n+r}const Aae=[0,0];function Pae(e,t,n,r){let i=Array.isArray(e)?e:Aae,s=0,a=0;return typeof e=="number"?i=[e,e]:typeof e=="string"&&(e=e.trim(),e.includes(" ")?i=e.split(" "):i=[e,$k[e]?e:"0"]),s=kP(i[0],n,r),a=kP(i[1],t),s-a}const Oae={Enter:[[0,1],[1,1]],Exit:[[0,0],[1,0]],Any:[[1,0],[0,1]],All:[[0,0],[1,1]]},Rae={x:0,y:0};function Iae(e){return"getBBox"in e&&e.tagName!=="svg"?e.getBBox():{width:e.clientWidth,height:e.clientHeight}}function Mae(e,t,n){const{offset:r=Oae.All}=n,{target:i=e,axis:s="y"}=n,a=s==="y"?"height":"width",o=i!==e?Cae(i,e):Rae,l=i===e?{width:e.scrollWidth,height:e.scrollHeight}:Iae(i),u={width:e.clientWidth,height:e.clientHeight};t[s].offset.length=0;let d=!t[s].interpolate;const h=r.length;for(let f=0;f<h;f++){const p=Pae(r[f],u[a],l[a],o[s]);!d&&p!==t[s].interpolatorOffsets[f]&&(d=!0),t[s].offset[f]=p}d&&(t[s].interpolate=CE(t[s].offset,FF(r),{clamp:!1}),t[s].interpolatorOffsets=[...t[s].offset]),t[s].progress=Ri(0,1,t[s].interpolate(t[s].current))}function $ae(e,t=e,n){if(n.x.targetOffset=0,n.y.targetOffset=0,t!==e){let r=t;for(;r&&r!==e;)n.x.targetOffset+=r.offsetLeft,n.y.targetOffset+=r.offsetTop,r=r.offsetParent}n.x.targetLength=t===e?t.scrollWidth:t.clientWidth,n.y.targetLength=t===e?t.scrollHeight:t.clientHeight,n.x.containerLength=e.clientWidth,n.y.containerLength=e.clientHeight}function Dae(e,t,n,r={}){return{measure:i=>{$ae(e,r.target,n),Nae(e,n,i),(r.offset||r.target)&&Mae(e,n,r)},notify:()=>t(n)}}const Hl=new WeakMap,SP=new WeakMap,K0=new WeakMap,jP=new WeakMap,Rm=new WeakMap,_P=e=>e===document.scrollingElement?window:e;function X6(e,{container:t=document.scrollingElement,trackContentSize:n=!1,...r}={}){if(!t)return cr;let i=K0.get(t);i||(i=new Set,K0.set(t,i));const s=Eae(),a=Dae(t,e,s,r);if(i.add(a),!Hl.has(t)){const l=()=>{for(const f of i)f.measure(ln.timestamp);rt.preUpdate(u)},u=()=>{for(const f of i)f.notify()},d=()=>rt.read(l);Hl.set(t,d);const h=_P(t);window.addEventListener("resize",d,{passive:!0}),t!==document.documentElement&&SP.set(t,Xre(t,d)),h.addEventListener("scroll",d,{passive:!0}),d()}if(n&&!Rm.has(t)){const l=Hl.get(t),u={width:t.scrollWidth,height:t.scrollHeight};jP.set(t,u);const d=()=>{const f=t.scrollWidth,p=t.scrollHeight;(u.width!==f||u.height!==p)&&(l(),u.width=f,u.height=p)},h=rt.read(d,!0);Rm.set(t,h)}const o=Hl.get(t);return rt.read(o,!1,!0),()=>{var h;Qr(o);const l=K0.get(t);if(!l||(l.delete(a),l.size))return;const u=Hl.get(t);Hl.delete(t),u&&(_P(t).removeEventListener("scroll",u),(h=SP.get(t))==null||h(),window.removeEventListener("resize",u));const d=Rm.get(t);d&&(Qr(d),Rm.delete(t)),jP.delete(t)}}const EP=new Map;function Lae(e){const t={value:0},n=X6(r=>
499{t.value=r[e.axis].progress*100},e);return{currentTime:t,cancel:n}}function Q6({source:e,container:t,...n}){const{axis:r}=n;e&&(t=e);const i=EP.get(t)??new Map;EP.set(t,i);const s=n.target??"self",a=i.get(s)??{},o=r+(n.offset??[]).join(",");return a[o]||(a[o]=!n.target&&UF()?new ScrollTimeline({source:t,axis:r}):Lae({container:t,...n})),a[o]}function Fae(e,t){const n=Q6(t);return e.attachTimeline({timeline:t.target?void 0:n,observe:r=>(r.pause(),u6(i=>{r.time=r.iterationDuration*i},n))})}function Bae(e){return e.length===2}function Vae(e,t){return Bae(e)?X6(n=>{e(n[t.axis].progress,n)},t):u6(e,Q6(t))}function qae(e,{axis:t="y",container:n=document.scrollingElement,...r}={}){if(!n)return cr;const i={axis:t,container:n,...r};return typeof e=="function"?Vae(e,i):Fae(e,i)}const Uae=()=>({scrollX:_i(0),scrollY:_i(0),scrollXProgress:_i(0),scrollYProgress:_i(0)}),Im=e=>e?!e.current:!1;function Wae({container:e,target:t,...n}={}){const r=to(Uae),i=w.useRef(null),s=w.useRef(!1),a=w.useCallback(()=>(i.current=qae((o,{x:l,y:u})=>{r.scrollX.set(l.current),r.scrollXProgress.set(l.progress),r.scrollY.set(u.current),r.scrollYProgress.set(u.progress)},{...n,container:(e==null?void 0:e.current)||void 0,target:(t==null?void 0:t.current)||void 0}),()=>{var o;(o=i.current)==null||o.call(i)}),[e,t,JSON.stringify(n.offset)]);return xx(()=>{if(s.current=!1,Im(e)||Im(t)){s.current=!0;return}else return a()},[a]),w.useEffect(()=>{if(s.current)return no(!Im(e),"Container ref is defined but not hydrated","use-scroll-ref"),no(!Im(t),"Target ref is defined but not hydrated","use-scroll-ref"),a()},[a]),r}function zae(e){const t=to(()=>_i(e)),{isStatic:n}=w.useContext(jx);if(n){const[,r]=w.useState(e);w.useEffect(()=>t.on("change",r),[])}return t}function Z6(e,t){const n=zae(t()),r=()=>n.set(t());return r(),xx(()=>{const i=()=>rt.preRender(r,!1,!0),s=e.map(a=>a.on("change",i));return()=>{s.forEach(a=>a()),Qr(r)}}),n}function Hae(e){Ch.current=[],e();const t=Z6(Ch.current,e);return Ch.current=void 0,t}function Dk(e,t,n,r){if(typeof e=="function")return Hae(e);if(n!==void 0&&!Array.isArray(n)&&typeof t!="function")return Kae(e,t,n,r);const a=typeof t=="function"?t:Zre(t,n,r);return Array.isArray(e)?TP(e,a):TP([e],([o])=>a(o))}function TP(e,t){const n=to(()=>[]);return Z6(e,()=>{n.length=0;const r=e.length;for(let i=0;i<r;i++)n[i]=e[i].get();return t(n)})}function Kae(e,t,n,r){const i=to(()=>Object.keys(n)),s=to(()=>({}));for(const a of i)s[a]=Dk(e,t,n[a],r);return s}const Gae={some:0,all:1};function Yae(e,t,{root:n,margin:r,amount:i="some"}={}){const s=FE(e),a=new WeakMap,o=u=>{u.forEach(d=>{const h=a.get(d.target);if(d.isIntersecting!==!!h)if(d.isIntersecting){const f=t(d.target,d);typeof f=="function"?a.set(d.target,f):l.unobserve(d.target)}else typeof h=="function"&&(h(d),a.delete(d.target))})},l=new IntersectionObserver(o,{root:n,rootMargin:r,threshold:typeof i=="number"?i:Gae[i]});return s.forEach(u=>l.observe(u)),()=>l.disconnect()}function J6(e,{root:t,margin:n,amount:r,once:i=!1,initial:s=!1}={}){const[a,o]=w.useState(s);return w.useEffect(()=>{if(!e.current||i&&a)return;const l=()=>(o(!0),i?void 0:()=>o(!1)),u={root:t&&t.current||void 0,margin:n,amount:r};return Yae(e.current,l,u)},[t,e,n,i,r]),a}const Xae="/assets/bitis-BJyK429e.webp",Qae="/assets/ecopark-DaTa3scB.png",Zae="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAATcAAACiCAMAAAATIHpEAAAA6lBMVEX///8MRJMAmQAAPpAAOY5rz/YAN44ALooAMoyRpcgAQJHu8fYAOJAANY0APJBXeK/i6vOcrs7S3Op8j7k8ZqUdU5wiTpe4x90AkwDd5O/4+vzK1OWInsTo6/JuhrVjgrQxX6K2v9YRR5QuWJ1SbqgAJIfCzuEAK4lGa6iFmsHs+Ozu+v6lttMAnQCru9e64LoqpSrI58i74Lv2/Pbd8t255/rS8PyX3fiA1fePzI+p2amc0px+w35Gr0Z1wXVafbJkumQ/rD96wnrk9ORXtFfD6vvZ8vxx0fal4fmt2a0ipCKGxIYAHoYAFYPcrlRrAAANHElEQVR4nO2ce3+aShqAoZBhHAIoAip4IWpUEmPbk6ZJm9OkPW1PL6f7/b/ODsplBgbUmLr7232fP9oILwM8zo2ZQUkCAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEDA9ev39/fv7t+//k9fCE+nwdBadoLBLoEMfrJ/0Bfu7vfSBJbsiTq2X3Eejtd//uymvPhwf3Ho3T4fQ01lQAbWyGgluqc2F5gdoKSx9rlovzrvpAmEBnceHLb0Ldd2f0VtMXS7D/815tqmLCspRI4xDbXdrA/MMOXMG5ZlUg7QMm8O4c9EkNmqu7KXV5y0jbkXL5/39p8M1TG2EqYhwRiZsTqtXcwMsbdHq8Qj44045f3TIE2AevOyzaGJTZngaWVpvf5YtrY29+fvsLA/VIfLfNRnreEpUmRZ9YJSoFeXEPVmdOoCHKJYzMdgZBBZtSqCL16JtVFxD3UnORptk7iFTf5qgYlMzFUh8Hm9SdJsTGQkLqoXr5
499hK7erDw8OXvKrrvq87y6H4dqfV7zfOtrVbAm+U2USlhXXFBz63NymglZwnahyuP2XWPqWN6Od/rjabfqM2u+WMCUK04TKU8eOsTp3Ym6SPkExIwAU+uzepocpoJgj9K81bP38wWz9/6L7ovnpTd45DaLYcJa6hUkzk1NxPhTdJipCshDob+PzemmNiRuXI12lm+1Lodjx0H67rTnEA9nCMiMyjqO3KLFfpTRqqstpnA5/fmy/YRklKafdjSdIfdSc4APuRmHIZghZV4qq96SH1rzOBz+9NmirKohT4R1JKP/yuvFWkNzTL1hQVEW+sTSrEVXuTOojNcL8lv02JMi0FJtnt6rfVZIWL6MtlayZZNIJes9lrVRTVGm/+VCEeE/j83vQJMYfFuDeb7Nb9py6x56MzKdVrsjpu2+l+f29vUseQUZAHPr+3GW1Pz4px7zferj7XJSbi605DBTyDoVayppjD8mNmkTpvOu3QN/LAZ/fmL2iz3yvGfdkU0491aQn5+u3mcs9DOmO1VERRaG8/sNab9Kjk1c/ze/NHtMUuFVMpaUx/lHZs5fbk5PuO5i7jvKkPcSmzEdTfenBMrbe+Kp/mgc/srROqslJ+XLhOWtO9iyn9Ik4odzsU18uvsV7bLWc2U94ls0lbvLWQjP0sUB4vW0VyU9SbOSztZ8bYHELCbHNkEfpYrwiuMmkWXj1lpO3tyZrbt7XqLm+/x/81jFJmk6v7a0Vqva2ot2YWSJMtgh+z2Hj8zSwFaHn15RCZqMlm1VToJ+yUKjf6sNA9oPN2c5Jw+/VvccTl17uTeJduGSVrstHe+Uy13miDathZoGDcEo2yWPG4pcF5yxMwVWMelprSmD8O8SZ9P8m5vXnL13aXb7/f0c3rq/UEzwdG7TgqT623MyRnNy4et8wrUfG45TSfruDGLYf9TsUo+WHe4raB49vd7feY27tv689363y4EpRRQmqr5wK13pa0nOpZ4G94zhLw+oD6Leb7SR036/qrLSijyjjYljRLrbeGKmt54HG8vXlqtzflptrappeiT5FAm7djQ5pQ643u9PK/j+Mt6Yd0nz5f+vddnTUpcAVVm+IJmqg66rz5IfP4eCxv0tXB8y++IMt9S3vEDaVctcmKu6e2Wm89+ny6ygOP5O1h0+99dcgo0uUNl+fush5dzxKU0f1zW703Wr2pgzzwSN5+JAX1sJlS//Lm9i7m9vvNZdaZXY2Fw5PjvbXVeRt4MjOqeDRvF8ko+afDhy19fhDItspDRrG2XZ+tWGq8RTS7dZjAI3mTPiZP9u92it4ZvSEYn4wxRVND26j2NqPPjyEbeCxvb9LZrPJswo8njJJs8JeuMLPRh8d9ursZld56LuG+ieN5SzNcWdzr7hMntPzWRPCEsMltq+2HC6jyZrsKPzh2RG8XV6k4vqi+jEvvz/07dr2oPMeX1m1P1FblbUVobnN8LvBo3qSX2ZqGV3mr+vkhaWjf7ZPl9Fkj1MrjbKm2vZ5JWYTebIvmajPU+cDjeZPeZatquj//+fHm4uLN+48vMpm75biGNRxNXRWrFVktLqN7PlwxlL3pS1dTZIIXeiHwiN6kP/PlSOlyy+zzru1sa66Kng2YFsHZtnKxmngdl97c0As6y8jV4rpANZflQC8NZEk7xtQbWg4EAWlh38ubdF+5jmv37knPFT0cZGVUEyyx2Bmqg7ADtGa8ElLFpWWD4vFehHCYeBGP9yI0T4vCft6k1z+F5vaar/H7hlKlDbl7jRsVaRf6gsRE2IsEi6OLgQmKw3gToWbelL28Sdf35YWq3S97Di/1LLE51Ww8YbaVYaid5qiK57RbgTDFNhuYk+e3c+F+NE+/1hDj8pqGWq7vP7H1WvfFxycMLs2muPiN0wImWMC8HzqHXzGrT/H1Crbt95kz7X15n98/fPhJu3NXPz/89fKJQ8B228Nm2kIQU8Vho+plg/8lrq+vLy6uD3rI92eRNTE1jLEcjhq7vToBbNAHPdse6OAMAAAAAAAAAAAA+L/D3+NxeGDbO6y22J6g//Sxf4ambR+STjwUINwxmDArqIdhOsa4dPOlrr3FxBt7E6vFpaCH6aQGGysFUxmdKm42zN6fhGHoOA79102PH8QJjidT7vccGl5hca1FCouUI7d62kcPE5yQScZvheRUHVvcgLjtpmuSdWuR31I7dDYpMGddTkyESFicaVnfw9zLvU1RugysMc8X7gaG7Cwc19DG7J3pRvquYGOez2/MFOwM248eyVbvj13XlRWP/kvSi+zNFWexmBgaO8Lfn/PvWwTIHPNjssO5cB315mrcNZMJ0bIXfKSeoynWcBhqKjsBE2goUaNPmDOMkDeJk/DyufYIq1Z7ODXKr6ZQbxrrTVGT2YKGxnhDk3gc2I5Mgzm/ro5Tb0zsxOivX0TJhKxHgafGmc8M9vYwiVcK2Y804ezIPnPDMY+KY/Amh1q1t2TY2o+YqT1/gq04G/hLBbMlAhO8yUH6xGO8aSufG56OV//FGdzviYbUC95CvMnEBW+bkI6K85Ii9KYTIqpNLMyt+OlhJblunC8yKHjrKQubuFxitd42rBBjom2kU0ZnGOebA+x6ONicn/NWTH2llV+NzeC9nc6szeULvUkRCrOtQm8DYoraBAtzNVPqTRrhPAMXvEXzFd3Nrd3Y7q1HmIVAvpp/WxZTUgLNCbT1tW/zhsPqU/HeDHvgGfF3IfbW0/LvTVxOXWQJ2p9qb/mRvDdaX+nSTHPYw7Z680ONKY8d7ObLLI18TUKghbRKjmckC96KrQ69zH5lq1/wFkgzPParvElevpJB7K2jGF6/VB+UvJH1//bYyBsG3ttKa8cVlMq2hFu9tbVH5lMLs+/yGPntUG+SNW8VvRnt1Zo8hcgwnGVFL6bkjTZsj5XeFnnJEXuTZg7S0GNhJrzsjfaLOn1PY1oq3tsC2+uU2aZsm7fZfMzeZB/nPYom1rK7XHvT46+M92Ya5zEGk0TLxZosmoMXeZMcWrVUeHO2eqPh7TEutIRFbwahF6i
499hMVsMOG+2ui6hPZUwEVu8+bLGtT6st17Rm9QxJn4hv0WzTgyX5pllYlm0jFXgrampekvozSdGlkalN7orUnlR5fzWarQcxPVrOW+RMQpmlNBgis0Wb0ON7ycvcb6qYoaz12gTb1J7Hvn19dsG21FFfQSBN2k5fxR7C3D2Nqqkm3KSgaNCzyu+KMTV6ML6bTDmmkvWmz9W8LrQIIVJp97bbC7zGwIj/xGPhpGnk3jz6XcS1ran6cW4WPCaoMibtEAOEnmborzi1d200l5opaWetHFhP4rb047KvlvPeusYi7MzWkWfrRTm/dVab76rFYuTjLMHJPbWE29SoLreLt6kIRas9xJ6G5hE5bxt/mgbTPeRftqUg0BBpQZ0aXBrESv6IW2NWZ/Eeptq6R1bON9a663PtaVrVlhNpA+RmW9OvdHKgOxQTuM2SvDGvdCb1EKcNzew7VmLVvfsV9o7RSNb0s9kpl7xF2fN+HfQZD5rV3jTXfHzgm6epiWsk3RZYoa4P1sj6Fo3TWUZbPbmK09H2Gw146EGjJnlqJk3f6Kw3nA/SSA992wUL8xq0spacMLB+Tj3tjhPOxDOnO1gI4yxNtdG/PGzU81QkTYf5Ql0fs0N00SaNmID/ek57y1t7Ffz/GcJol/ZN9X6leUdf/4r69OM6EXE/BIUm8Zc3ezUztk8jOkV0h0uu4o3OJ+kN6DJubfHJHXtX+kJh780ZJqGVq6GpLjtY9bPLbMuay9inkSXUXvYjlalfozetxaLIVet2I3RYjFtF6qaZcQZ16NEkd+Ksjua9bODgk4ezvx91m/01wj6BUG6r99n77LZiK+Q/5nTZpSVhWUjbylXaQpR6iBexLRYWOVuPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAciX8DGQQ+pxsqRicAAAAASUVORK5CYII=",Jae="/assets/vua-nem-Dg9BPNDw.png",eoe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAUYAAACaCAMAAADighEiAAAAflBMVEX///8AAACgoKBkZGTv7+/ExMRpaWm2trbj4+NOTk6MjIy6urptbW2urq7MzMz39/enp6eSkpLX19fp6elfX19VVVUwMDDQ0NDn5+daWlqjo6M7OzvGxsaOjo41NTWxsbF1dXV+fn4QEBBFRUV8fHweHh4lJSWYmJgYGBhISEjvgRO/AAAHsUlEQVR4nO2c63baOhCFTQiBAuGSkAshaUzalPT9X/AcLp7ZI40MDbLbrLW/X6kkC3tbmhmN5BYFIYQQQgghhBBCCCGEEEIIIYQQQgghhBBCCCGEEEIIIYQQQgghhBBCSENMB5PeaDTqTQbTv/L7g81FPQ9Vy5FXO7vu3SRu/EZ63kyjoovnsPlMO90Mwkq4yfiHLq/Hbx3lbfx6+UkxPk+vc4SnqmU32eS97Dk9v2qD6rEetGgZNscO50HdQKt+hNdNvjl3dBe9pYY5KuOsanlV22wejcl+LCNodR+0vjEqBJXPWjW0NYNV4n5W0YhulFwydjqjoGdPxnstC1rPTF9B5ZPW9GuuStx4G+STsbO2PXsyjrXs0bYem66CofQzUTOsvZ/QNDRJRhk7penZkxGG1cTex4fp6dVWgvnD4osj9+O4o6bIKWPnGnv2ZJw4/e64tB39tDepFSsovekc4yanUrVklbGDkYYnI6hlTcCz7cc6oKl/1fvR2/mVV6saTg94TpGxhJ49GWFcWW88Dzoyfh+GHYz30L2srsZXod8206NJQMb1y9BBbJjK+L1/XXFhXQM+viujBp8f5jbugud/wMqRlsM0Ne271QUPJrx9y6hULSDjbX1LlfGbKTcDCV6/K+PGVTzQpBN4B/gFLRxhc1R9ghXeuqAJQMYjAWtKRvNACy12ZUz8HCxTon4wGAKbiePX3vkg1U+DZJDRhG9a6soIPgYHCiwco36KQi3eWMrA7UQWEK1mS5mKHDLilFTFXBmhKc5bia+X1R9oYfQa8Xc4BayV3QKZipZmdRYZwc+oD/Bl1LlYQgfVIvFN1IGlJYxgtYFr/33sAQu8jiobIYuMMIs0teLL+CKFkKuRGdq9rf6CFATkhXSKftfC2DWCdfx+ggYZyCIjBM86inwZYTJqoQi1kQkMIl/LFRC/aDfvzr1qbZjlaIgsMkKMoebel3Hglcri+Ln4HT++erCu1426HQWsTDsJs7ZHIwwUNaMLbTisqf1/sDq37SUgIGnRTgI3t23UxE1Cxh9SqqnDquQNJr2mLjT5o5LAL3q+GJ6qnbRjbk+tnSRkXEvpS1UkfuWqKB6rv2WuTr1+IFT1bhtW4e1kHXPHjVqYkFEjbbF0MgKfoC+JBsEMai+QyPXWsBAjlUcEyEMOGSFMg3xgQkYdKLKyk6G1DQvvwovU8EJSCBIQ3joFRnDXqc7P+akJkz6FKZSQEYZuVSLmcquI5CEqQ6ju4kU7SeTDnR+JtiAbAY3xKKBvxmdKRpNqgStSMuq2VvXeqn/fmxuq3sha2sPKRh3VMRnDXcZmqE3bmi0RlXH1MDnQ67+YHDTm+FMyllJ88Ooymsvtv8SsVS9LBx7sgsEixn2sf0pGs5t5SvYb96lSMmqsMgsK9v8O9XEFS+/U7tHkxMqtz01WGY05T8moS+RD2kDCpX3ELd5jbyDUW/yGTmC3wH0srf6Co9E4zZSMqsvhCWXk7P8pLmVvUtSBYbLmS9nGP5TR7uCnZCx+WQXEGB6SMbJA3++yqgdDSw25b/extLp1T32ujME5iKSM2tFu9EpceBhtMlr3caUGpbjrDOumfy1uPE/Gu/BxkjJqILizfhIoVqNNRuuuR3Xs2MeRVcyjVreTt/1MwOMS9ZyUUdNqu6yCzM8q5pSRtvP7EtqYBCxsFnpHIyDTu3Gq8wMydscBXXPO5oiMUaIlKaMueHePGL0ICYAuTHWJfcAeWHiSLfjtdnb8P7MYvN/MD6z16siUJ2W0ykjmQfLd4pu3u6Oqucl4QaLYS+HAYJ041fk5MzUBe3An20bNw26Vk3Eluy/qHwqcnmbySm7N34peanU7B5jPlBHyfk9B+7SMOlYKcBY6OcXHPOJGjH1N2rkX8dTXNsCZMkJ2JzyGnJZRf3MKyzqNl1BZeU/B6TBI8cQ+BjxMO9H32fnGj+TjpGW8hUvMDD4gI3AIBiDYuYIcZxndqgZJLTnqs2UEY37CoeUDUtHXgQPDRob4CoxvsHOFSc6wezxz2tJJ0XNlxHNHtn2NjDIj5xqLo8OFHuXP0OPC74bZePzE46gAeTh7EwEyfzZ0rJFRDN6VTlq8WPI3N7fJPtag1VXiRqPvPxrjbBlhS9iGHjUyStWvwm0jMl9oYiK8HXOW711fwsjkkR/DyxribBnREJ2UKCuc44yBTP24Oo4Ol7ZBdzN7nW2CT8naSe8UOXYGIfVnQscaGaPDtUEixpE59rjeuwhp7VOt82WEAwwmdKyTMf5EzTriWBDnbMT6qIptWcYcMqbCizoZYwWsI44/p/QW/PdRK0tLh/K2ZNjuh2fG118noy7xKuxS7yWq9+5o+hE1Q95b/LQ6g4zoEPziSMboA6tgqRdlQaPzLjumqe9Xt6za/EA9g4x4mh1MWJ2MeMmOYKl3G9anrFw8bCva/PDyT2TUWOJ3UKMHEDHCqJMRtrX2hMfnQlG83OyOyzJsuqNs+QP/h2X3wPJI2na+ODRchNsbE+mju9SZ9Cyl0TZNUWwWXWQZLn2HQX1NGD19XQQaLl7/zn848eW57c3mw7Ish/PZc1sLF0IIIYQQQgghhBBCCCGEEEIIIYQQQgghhBBCCCGEEEIIIYQQQgghhHya/wC73FEQtWgdYQAAAABJRU5ErkJggg==",toe="/assets/bonchon-CTxjXsK5.jpeg",noe="/assets/greenspeed-w1RdMt4g.png",roe="/assets/karofi-CYt58_fl.png",ioe="/assets/capital-packaging-7aPBnzni.png",soe="/assets/homefarm-DznVRb9R.png",eB=()=>{const{t:e}=St(),t=w.useRef(null),[n,r]=w.useState(!1),[i,s]=w.useState(!1),[a,o]=w.useState(0),[l,u]=w.useState(0),d=[{name:"DEEP C",logo:Zae},{name:"Green Speed",logo:noe},{name:"Vua Ná»m",logo:Jae},{name:"KAROFI",logo:roe},{name:"Bitis",logo:Xae},{name:"Bonchon",logo:toe},{name:"Ecopark",logo:Qae},{name:"Capital Packaging",logo:ioe},{name:"FRIWO",logo:eoe},{name:"Homefarm",logo:soe}],h=v=>{var S;r(!0),s(!0),o(v.pageX);const x=(S=t.current)==null?void 0:S.style.transform,b=x==null?void 0:x.match(/translateX\((-?\d+\.?\d*)px\)/);u(b?parseFloat(b[1]):0)},f=()=>{r(!1),setTimeout(()=>s(!1),1e3)},p=v=>{if(!n)return;v.preventDefault();const x=v.pageX-a;t.current&&(t.current.style.transform=`translateX(${l+x}px)`)},g=v=>{var S;r(!0),s(!0),o(v.touches[0].pageX);const x=(S=t.current)==null?void 0:S.style.transform,b=x==null?void 0:x.match(/translateX\((-?\d+\.?\d*)px\)/);u(b?parseFloat(b[1]):0)},m=v=>{if(!n)return;const x=v.touches[0].pageX-a;t.current&&(t.current.style.transform=`translateX(${l+x}px)`)},y=()=>{r(!1),setTimeout(()=>s(!1),1e3)};return c.jsxs("section",{className:"bg-background py-10 overflow-hidden border-b border-border",children:[c.jsx(U.div,{initial:{opacity:0,y:50},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-100px"},transition:{duration:2,ease:[.25,.46,.45,.94]},className:"max-w-7xl mx-auto px-6 md:px-12 lg:px-16 mb-6",children:c.jsx("p",{className:"text-center text-muted-foreground text-sm font-medium uppercase tracking-wider",children:e("logoMarquee.trusted")})}),c.jsxs("div",{className:"relative",children:[c.jsx("div",{className:"absolute left-0 top-0 bottom-0 w-20 bg-gradient-to-r from-background to-transparent z-10 pointer-events-none"}),c.jsx("div",{className:"absolute right-0 top-0 bottom-0 w-20 bg-gradient-to-l from-background to-transparent z-10 pointer-events-none"}),c.jsx("div",{ref:t,className:`flex items-center gap-16 cursor-grab active:cursor-grabbing ${i?"":"animate-marquee"} ${n?"cursor-grabbing":""}`,style:{animationPlayState:i?"paused":"running"},onMouseDown:h,onMouseUp:f,onMouseLeave:f,onMouseMove:p,onTouchStart:g,onTouchMove:m,onTouchEnd:y,children:[...d,...d].map((v,x)=>c.jsx("div",{className:"flex-shrink-0",children:c.jsx("div",{className:"flex items-center justify-center h-16 w-40 grayscale opacity-60 hover:grayscale-0 hover:opacity-100 transition-all duration-300 select-none",children:c.jsx("img",{src:v.logo,alt:`${v.name} logo`,className:"h-12 w-full object-contain px-6",loading:"lazy",decoding:"async",draggable:!1})})},x))})]})]})},aoe=()=>{const{t:e}=St(),t=[{icon:LK,stat:"10-15%",title:e("whyCompanies.benefits.turnover.title"),description:e("whyCompanies.benefits.turnover.description")},{icon:Za,stat:"2x",title:e("whyCompanies.benefits.applicants.title"),description:e("whyCompanies.benefits.applicants.description")},{icon:M_,stat:"85%",title:e("whyCompanies.benefits.engagement.title"),description:e("whyCompanies.benefits.engagement.description")},{icon:jK,stat:e("whyCompanies.benefits.digital.stat"),title:e("whyCompanies.benefits.digital.title"),description:e("whyCompanies.benefits.digital.description")}];return c.jsx("section",{className:"bg-primary px-6 py-20 md:py-24 md:px-12 lg:px-16",children:c.jsx("div",{className:"max-w-7xl mx-auto",children:c.jsxs("div",{className:"grid lg:grid-cols-2 gap-12 lg:gap-16 items-center",children:[c.jsxs(U.div,{initial:{opacity:0,y:50},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-100px"},transition:{duration:2,ease:[.25,.46,.45,.94]}
vendor: 7,767 bytes, line 499
499,children:[c.jsx("span",{className:"text-primary-foreground/60 text-sm font-medium tracking-widest uppercase mb-4 block",children:e("whyCompanies.label")}),c.jsxs("h2",{className:"text-3xl md:text-4xl lg:text-5xl font-bold text-white leading-tight mb-6",children:[e("whyCompanies.title1")," ",c.jsx("span",{className:"text-accent font-accent font-semibold",children:e("whyCompanies.title2")})]}),c.jsx("p",{className:"text-primary-foreground/80 text-lg mb-8 max-w-lg",children:e("whyCompanies.description")}),c.jsx(ut,{to:"/for-business",children:c.jsxs(de,{size:"lg",className:"bg-accent hover:bg-accent/90 text-accent-foreground font-semibold",children:[e("whyCompanies.cta"),c.jsx(Ls,{className:"ml-2 w-4 h-4"})]})})]}),c.jsx("div",{className:"grid grid-cols-2 gap-4",children:t.map((n,r)=>c.jsxs(U.div,{initial:{opacity:0,y:50},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-50px"},transition:{duration:2,delay:r*.15,ease:[.25,.46,.45,.94]},className:"bg-white/10 backdrop-blur-sm rounded-2xl p-6 border border-white/10 hover:bg-white/15 transition-all duration-300 group",children:[c.jsx("div",{className:"flex items-center justify-between mb-4",children:c.jsx("div",{className:"w-10 h-10 rounded-xl bg-accent/20 flex items-center justify-center",children:c.jsx(n.icon,{className:"w-5 h-5 text-accent"})})}),c.jsx("div",{className:"text-3xl md:text-4xl font-bold text-accent mb-1",children:n.stat}),c.jsx("h3",{className:"text-white font-semibold mb-1",children:n.title}),c.jsx("p",{className:"text-primary-foreground/60 text-sm",children:n.description})]},r))})]})})})},tB="/assets/ewa-report-cover-CWyMi7_M.png",G0=768;function ooe(){const[e,t]=w.useState(void 0);return w.useEffect(()=>{const n=window.matchMedia(`(max-width: ${G0-1}px)`),r=()=>{t(window.innerWidth<G0)};return n.addEventListener("change",r),t(window.innerWidth<G0),()=>n.removeEventListener("change",r)},[]),!!e}function loe(e){return Object.prototype.toString.call(e)==="[object Object]"}function NP(e){return loe(e)||Array.isArray(e)}function coe(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function YE(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;const i=JSON.stringify(Object.keys(e.breakpoints||{})),s=JSON.stringify(Object.keys(t.breakpoints||{}));return i!==s?!1:n.every(a=>{const o=e[a],l=t[a];return typeof o=="function"?`${o}`==`${l}`:!NP(o)||!NP(l)?o===l:YE(o,l)})}function CP(e){return e.concat().sort((t,n)=>t.name>n.name?1:-1).map(t=>t.options)}function uoe(e,t){if(e.length!==t.length)return!1;const n=CP(e),r=CP(t);return n.every((i,s)=>{const a=r[s];return YE(i,a)})}function XE(e){return typeof e=="number"}function Lk(e){return typeof e=="string"}function Ex(e){return typeof e=="boolean"}function AP(e){return Object.prototype.toString.call(e)==="[object Object]"}function Ot(e){return Math.abs(e)}function QE(e){return Math.sign(e)}function Oh(e,t){return Ot(e-t)}function doe(e,t){if(e===0||t===0||Ot(e)<=Ot(t))return 0;const n=Oh(Ot(e),Ot(t));return Ot(n/e)}function hoe(e){return Math.round(e*100)/100}function bf(e){return wf(e).map(Number)}function Ni(e){return e[Bp(e)]}function Bp(e){return Math.max(0,e.length-1)}function ZE(e,t){return t===Bp(e)}function PP(e,t=0){return Array.from(Array(e),(n,r)=>t+r)}function wf(e){return Object.keys(e)}function nB(e,t){return[e,t].reduce((n,r)=>(wf(r).forEach(i=>{const s=n[i],a=r[i],o=AP(s)&&AP(a);n[i]=o?nB(s,a):a}),n),{})}function Fk(e,t){return typeof t.MouseEvent<"u"&&e instanceof t.MouseEvent}function foe(e,t){const n={start:r,center:i,end:s};function r(){return 0}function i(l){return s(l)/2}function s(l){return t-l}function a(l,u){return Lk(e)?n[e](l):e(t,l,u)}return{measure:a}}function kf(){let e=[];function t(i,s,a,o={passive:!0}){let l;if("addEventListener"in i)i.addEventListener(s,a,o),l=()=>i.removeEventListener(s,a,o);else{const u=i;u.addListener(a),l=()=>u.removeListener(a)}return e.push(l),r}function n(){e=e.filter(i=>i())}const r={add:t,clear:n};return r}function poe(e,t,n,r){const i=kf(),s=1e3/60;let a=null,o=0,l=0;function u(){i.add(e,"visibilitychange",()=>{e.hidden&&g()})}function d(){p(),i.clear()}function h(y){if(!l)return;a||(a=y,n(),n());const v=y-a;for(a=y,o+=v;o>=s;)n(),o-=s;const x=o/s;r(x),l&&(l=t.requestAnimationFrame(h))}function f(){l||(l=t.requestAnimationFrame(h))}function p(){t.cancelAnimationFrame(l),a=null,o=0,l=0}function g(){a=null,o=0}return{init:u,destroy:d,start:f,stop:p,update:n,render:r}}function moe(e,t){const n=t==="rtl",r=e==="y",i=r?"y":"x",s=r?"x":"y",a=!r&&n?-1:1,o=d(),l=h();function u(g){const{height:m,width:y}=g;return r?m:y}function d(){return r?"top":n?"right":"left"}function h(){return r?"bottom":n?"left":"right"}function f(g){return g*a}return{scroll:i,cross:s,startEdge:o,endEdge:l,measureSize:u,direction:f}}function kl(e=0,t=0){const n=Ot(e-t);function r(u){return u<e}function i(u){return u>t}function s(u){return r(u)||i(u)}function a(u){return s(u)?r(u)?e:t:u}function o(u){return n?u-n*Math.ceil((u-t)/n):u}return{length:n,max:t,min:e,constrain:a,reachedAny:s,reachedMax:i,reachedMin:r,removeOffset:o}}function rB(e,t,n){const{constrain:r}=kl(0,e),i=e+1;let s=a(t);function a(f){return n?Ot((i+f)%i):r(f)}function o(){return s}function l(f){return s=a(f),h}function u(f){return d().set(o()+f)}function d(){return rB(e,o(),n)}const h={get:o,set:l,add:u,clone:d};return h}function goe(e,t,n,r,i,s,a,o,l,u,d,h,f,p,g,m,y,v,x){const{cross:b,direction:S}=e,k=["INPUT","SELECT","TEXTAREA"],j={passive:!1},_=kf(),E=kf(),T=kl(50,225).constrain(p.measure(20)),N={mouse:300,touch:400},P={mouse:500,touch:600},C=g?43:25;let M=!1,R=0,D=0,L=!1,B=!1,I=!1,O=!1;function V(F){if(!x)return;function ue(Ae){(Ex(x)||x(F,Ae))&&ke(Ae)}const ae=t;_.add(ae,"dragstart",Ae=>Ae.preventDefault(),j).add(ae,"touchmove",()=>{},j).add(ae,"touchend",()=>{}).add(ae,"touchstart",ue).add(ae,"mousedown",ue).add(ae,"touchcancel",ce).add(ae,"contextmenu",ce).add(ae,"click",K,!0)}function z(){_.clear(),E.clear()}function q(){const F=O?n:t;E.add(F,"touchmove",Y,j).add(F,"touchend",ce).add(F,"mousemove",Y,j).add(F,"mouseup",ce)}function X(F){const ue=F.nodeName||"";return k.includes(ue)}function J(){return(g?P:N)[O?"mouse":"touch"]}function xe(F,ue){const ae=h.add(QE(F)*-1),Ae=d.byDistance(F,!g).distance;return g||Ot(F)<T?Ae:y&&ue?Ae*.5:d.byIndex(ae.get(),0).distance}function ke(F){const ue=Fk(F,r);O=ue,I=g&&ue&&!F.buttons&&M,M=Oh(i.get(),a.get())>=2,!(ue&&F.button!==0)&&(X(F.target)||(L=!0,s.pointerDown(F),u.useFriction(0).useDuration(0),i.set(a),q(),R=s.readPoint(F),D=s.readPoint(F,b),f.emit("pointerDown")))}function Y(F){if(!Fk(F,r)&&F.touches.length>=2)return ce(F);const ae=s.readPoint(F),Ae=s.readPoint(F,b),Ie=Oh(ae,R),Ge=Oh(Ae,D);if(!B&&!O&&(!F.cancelable||(B=Ie>Ge,!B)))return ce(F);const jt=s.pointerMove(F);Ie>m&&(I=!0),u.useFriction(.3).useDuration(.75),o.start(),i.add(S(jt)),F.preventDefault()}function ce(F){const ae=d.byDistance(0,!1).index!==h.get(),Ae=s.pointerUp(F)*J(),Ie=xe(S(Ae),ae),Ge=doe(Ae,Ie),jt=C-10*Ge,_t=v+Ge/50;B=!1,L=!1,E.clear(),u.useDuration(jt).useFriction(_t),l.distance(Ie,!g),O=!1,f.emit("pointerUp")}function K(F){I&&(F.stopPropagation(),F.preventDefault(),I=!1)}function Q(){return L}return{init:V,destroy:z,pointerDown:Q}}function yoe(e,t){let r,i;function s(h){return h.timeStamp}function a(h,f){const g=`client${(f||e.scroll)==="x"?"X":"Y"}`;return(Fk(h,t)?h:h.touches[0])[g]}function o(h){return r=h,i=h,a(h)}function l(h){const f=a(h)-a(i),p=s(h)-s(r)>170;return i=h,p&&(r=h),f}function u(h){if(!r||!i)return 0;const f=a(i)-a(r),p=s(h)-s(r),g=s(h)-s(i)>170,m=f/p;return p&&!g&&Ot(m)>.1?m:0}return{pointerDown:o,pointerMove:l,pointerUp:u,readPoint:a}}function voe(){function e(n){const{offsetTop:r,offsetLeft:i,offsetWidth:s,offsetHeight:a}=n;
vendor: 12,446 bytes, line 499
499return{top:r,right:i+s,bottom:r+a,left:i,width:s,height:a}}return{measure:e}}function xoe(e){function t(r){return e*(r/100)}return{measure:t}}function boe(e,t,n,r,i,s,a){const o=[e].concat(r);let l,u,d=[],h=!1;function f(y){return i.measureSize(a.measure(y))}function p(y){if(!s)return;u=f(e),d=r.map(f);function v(x){for(const b of x){if(h)return;const S=b.target===e,k=r.indexOf(b.target),j=S?u:d[k],_=f(S?e:r[k]);if(Ot(_-j)>=.5){y.reInit(),t.emit("resize");break}}}l=new ResizeObserver(x=>{(Ex(s)||s(y,x))&&v(x)}),n.requestAnimationFrame(()=>{o.forEach(x=>l.observe(x))})}function g(){h=!0,l&&l.disconnect()}return{init:p,destroy:g}}function woe(e,t,n,r,i,s){let a=0,o=0,l=i,u=s,d=e.get(),h=0;function f(){const j=r.get()-e.get(),_=!l;let E=0;return _?(a=0,n.set(r),e.set(r),E=j):(n.set(e),a+=j/l,a*=u,d+=a,e.add(a),E=d-h),o=QE(E),h=d,k}function p(){const j=r.get()-t.get();return Ot(j)<.001}function g(){return l}function m(){return o}function y(){return a}function v(){return b(i)}function x(){return S(s)}function b(j){return l=j,k}function S(j){return u=j,k}const k={direction:m,duration:g,velocity:y,seek:f,settled:p,useBaseFriction:x,useBaseDuration:v,useFriction:S,useDuration:b};return k}function koe(e,t,n,r,i){const s=i.measure(10),a=i.measure(50),o=kl(.1,.99);let l=!1;function u(){return!(l||!e.reachedAny(n.get())||!e.reachedAny(t.get()))}function d(p){if(!u())return;const g=e.reachedMin(t.get())?"min":"max",m=Ot(e[g]-t.get()),y=n.get()-t.get(),v=o.constrain(m/a);n.subtract(y*v),!p&&Ot(y)<s&&(n.set(e.constrain(n.get())),r.useDuration(25).useBaseFriction())}function h(p){l=!p}return{shouldConstrain:u,constrain:d,toggleActive:h}}function Soe(e,t,n,r,i){const s=kl(-t+e,0),a=h(),o=d(),l=f();function u(g,m){return Oh(g,m)<=1}function d(){const g=a[0],m=Ni(a),y=a.lastIndexOf(g),v=a.indexOf(m)+1;return kl(y,v)}function h(){return n.map((g,m)=>{const{min:y,max:v}=s,x=s.constrain(g),b=!m,S=ZE(n,m);return b?v:S||u(y,x)?y:u(v,x)?v:x}).map(g=>parseFloat(g.toFixed(3)))}function f(){if(t<=e+i)return[s.max];if(r==="keepSnaps")return a;const{min:g,max:m}=o;return a.slice(g,m)}return{snapsContained:l,scrollContainLimit:o}}function joe(e,t,n){const r=t[0],i=n?r-e:Ni(t);return{limit:kl(i,r)}}function _oe(e,t,n,r){const s=t.min+.1,a=t.max+.1,{reachedMin:o,reachedMax:l}=kl(s,a);function u(f){return f===1?l(n.get()):f===-1?o(n.get()):!1}function d(f){if(!u(f))return;const p=e*(f*-1);r.forEach(g=>g.add(p))}return{loop:d}}function Eoe(e){const{max:t,length:n}=e;function r(s){const a=s-t;return n?a/-n:0}return{get:r}}function Toe(e,t,n,r,i){const{startEdge:s,endEdge:a}=e,{groupSlides:o}=i,l=h().map(t.measure),u=f(),d=p();function h(){return o(r).map(m=>Ni(m)[a]-m[0][s]).map(Ot)}function f(){return r.map(m=>n[s]-m[s]).map(m=>-Ot(m))}function p(){return o(u).map(m=>m[0]).map((m,y)=>m+l[y])}return{snaps:u,snapsAligned:d}}function Noe(e,t,n,r,i,s){const{groupSlides:a}=i,{min:o,max:l}=r,u=d();function d(){const f=a(s),p=!e||t==="keepSnaps";return n.length===1?[s]:p?f:f.slice(o,l).map((g,m,y)=>{const v=!m,x=ZE(y,m);if(v){const b=Ni(y[0])+1;return PP(b)}if(x){const b=Bp(s)-Ni(y)[0]+1;return PP(b,Ni(y)[0])}return g})}return{slideRegistry:u}}function Coe(e,t,n,r,i){const{reachedAny:s,removeOffset:a,constrain:o}=r;function l(g){return g.concat().sort((m,y)=>Ot(m)-Ot(y))[0]}function u(g){const m=e?a(g):o(g),y=t.map((x,b)=>({diff:d(x-m,0),index:b})).sort((x,b)=>Ot(x.diff)-Ot(b.diff)),{index:v}=y[0];return{index:v,distance:m}}function d(g,m){const y=[g,g+n,g-n];if(!e)return g;if(!m)return l(y);const v=y.filter(x=>QE(x)===m);return v.length?l(v):Ni(y)-n}function h(g,m){const y=t[g]-i.get(),v=d(y,m);return{index:g,distance:v}}function f(g,m){const y=i.get()+g,{index:v,distance:x}=u(y),b=!e&&s(y);if(!m||b)return{index:v,distance:g};const S=t[v]-x,k=g+d(S,0);return{index:v,distance:k}}return{byDistance:f,byIndex:h,shortcut:d}}function Aoe(e,t,n,r,i,s,a){function o(h){const f=h.distance,p=h.index!==t.get();s.add(f),f&&(r.duration()?e.start():(e.update(),e.render(1),e.update())),p&&(n.set(t.get()),t.set(h.index),a.emit("select"))}function l(h,f){const p=i.byDistance(h,f);o(p)}function u(h,f){const p=t.clone().set(h),g=i.byIndex(p.get(),f);o(g)}return{distance:l,index:u}}function Poe(e,t,n,r,i,s,a,o){const l={passive:!0,capture:!0};let u=0;function d(p){if(!o)return;function g(m){if(new Date().getTime()-u>10)return;a.emit("slideFocusStart"),e.scrollLeft=0;const x=n.findIndex(b=>b.includes(m));XE(x)&&(i.useDuration(0),r.index(x,0),a.emit("slideFocus"))}s.add(document,"keydown",h,!1),t.forEach((m,y)=>{s.add(m,"focus",v=>{(Ex(o)||o(p,v))&&g(y)},l)})}function h(p){p.code==="Tab"&&(u=new Date().getTime())}return{init:d}}function lh(e){let t=e;function n(){return t}function r(l){t=a(l)}function i(l){t+=a(l)}function s(l){t-=a(l)}function a(l){return XE(l)?l:l.get()}return{get:n,set:r,add:i,subtract:s}}function iB(e,t){const n=e.scroll==="x"?a:o,r=t.style;let i=null,s=!1;function a(f){return`translate3d(${f}px,0px,0px)`}function o(f){return`translate3d(0px,${f}px,0px)`}function l(f){if(s)return;const p=hoe(e.direction(f));p!==i&&(r.transform=n(p),i=p)}function u(f){s=!f}function d(){s||(r.transform="",t.getAttribute("style")||t.removeAttribute("style"))}return{clear:d,to:l,toggleActive:u}}function Ooe(e,t,n,r,i,s,a,o,l){const d=bf(i),h=bf(i).reverse(),f=v().concat(x());function p(_,E){return _.reduce((T,N)=>T-i[N],E)}function g(_,E){return _.reduce((T,N)=>p(T,E)>0?T.concat([N]):T,[])}function m(_){return s.map((E,T)=>({start:E-r[T]+.5+_,end:E+t-.5+_}))}function y(_,E,T){const N=m(E);return _.map(P=>{const C=T?0:-n,M=T?n:0,R=T?"end":"start",D=N[P][R];return{index:P,loopPoint:D,slideLocation:lh(-1),translate:iB(e,l[P]),target:()=>o.get()>D?C:M}})}function v(){const _=a[0],E=g(h,_);return y(E,n,!1)}function x(){const _=t-a[0]-1,E=g(d,_);return y(E,-n,!0)}function b(){return f.every(({index:_})=>{const E=d.filter(T=>T!==_);return p(E,t)<=.1})}function S(){f.forEach(_=>{const{target:E,translate:T,slideLocation:N}=_,P=E();P!==N.get()&&(T.to(P),N.set(P))})}function k(){f.forEach(_=>_.translate.clear())}return{canLoop:b,clear:k,loop:S,loopPoints:f}}function Roe(e,t,n){let r,i=!1;function s(l){if(!n)return;function u(d){for(const h of d)if(h.type==="childList"){l.reInit(),t.emit("slidesChanged");break}}r=new MutationObserver(d=>{i||(Ex(n)||n(l,d))&&u(d)}),r.observe(e,{childList:!0})}function a(){r&&r.disconnect(),i=!0}return{init:s,destroy:a}}function Ioe(e,t,n,r){const i={};let s=null,a=null,o,l=!1;function u(){o=new IntersectionObserver(g=>{l||(g.forEach(m=>{const y=t.indexOf(m.target);i[y]=m}),s=null,a=null,n.emit("slidesInView"))},{root:e.parentElement,threshold:r}),t.forEach(g=>o.observe(g))}function d(){o&&o.disconnect(),l=!0}function h(g){return wf(i).reduce((m,y)=>{const v=parseInt(y),{isIntersecting:x}=i[v];return(g&&x||!g&&!x)&&m.push(v),m},[])}function f(g=!0){if(g&&s)return s;if(!g&&a)return a;const m=h(g);return g&&(s=m),g||(a=m),m}return{init:u,destroy:d,get:f}}function Moe(e,t,n,r,i,s){const{measureSize:a,startEdge:o,endEdge:l}=e,u=n[0]&&i,d=g(),h=m(),f=n.map(a),p=y();function g(){if(!u)return 0;const x=n[0];return Ot(t[o]-x[o])}function m(){if(!u)return 0;const x=s.getComputedStyle(Ni(r));return parseFloat(x.getPropertyValue(`margin-${l}`))}function y(){return n.map((x,b,S)=>{const k=!b,j=ZE(S,b);return k?f[b]+d:j?f[b]+h:S[b+1][o]-x[o]}).map(Ot)}return{slideSizes:f,slideSizesWithGaps:p,startGap:d,endGap:h}}function $oe(e,t,n,r,i,s,a,o,l){const{startEdge:u,endEdge:d,direction:h}=e,f=XE(n);function p(v,x){return bf(v).filter(b=>b%x===0).map(b=>v.slice(b,b+x))}function g(v){return v.length?bf(v).reduce((x,b,S)=>{const k=Ni(x)||0,j=k===0,_=b===Bp(v),E=i[u]-s[k][u],T=i[u]-s[b][d],N=!r&&j?h(a):0,P=!r&&_?h(o):0,C=Ot(T-P-(E+N));return S&&C>t+l&&x.push(b),_&&x.push(v.length),x},[]).map((x,b,S)=>{const k=Math.max(S[b-1]||0);return v.slice(k,x)}):[]}function m(v){return f?p(v,n):g(v)}return{groupSlides:m}}function Doe(e,t,n,r,i,s,a){const{align:o,axis:l,direction:u,startIndex:d,loop:h,duration:f,dragFree:p,dragThreshold:g,inViewThreshold:m,slidesToScroll:y,skipSnaps:v,containScroll:x,watchResize:b,watchSlides:S,watchDrag:k,watchFocus:j}=s,_=2,E=voe(),T=E.measure(t),N=n.map(E.measure),P=moe(l,u),C=P.measureSize(T),M=xoe(C),R=foe(o,C),D=!h&&!!x,L=h||!!x,{slideSizes:B,slideSizesWithGaps:I,startGap:O,endGap:V}=Moe(P,T,N,n,L,i),z=$oe(P,C,y,h,T,N,O,V,_),{snaps:q,snapsAligned:X}=Toe(P,R,T,N,z),J=-Ni(q)+Ni(I),{snapsContained:xe,scrollContainLimit:ke}=Soe(C,J,X,x,_),Y=D?xe:X,{limit:ce}=joe(J,Y,h),K=rB(Bp(Y),d,h),Q=K.clone(),G=bf(n),F=({dragHandler:Me,scrollBody:Pe,scrollBounds:qt,options:{loop:Te}})=>{Te||qt.constrain(Me.pointerDown()),Pe.seek()},ue=({scrollBody:Me,translate:Pe,location:qt,offsetLocation:Te,previousLocation:De,scrollLooper:Qt,slideLooper:Nn,dragHandler:Qn,animation:Fn,eventHandler:ri,scrollBounds:na,options:{loop:Zp}},Fl)=>{const ii=Me.settled(),Rb=!na.shouldConstrain(),Ne=Zp?ii:ii&&Rb,nt=Ne&&!Qn.pointerDown();nt&&Fn.stop();const ht=qt.get()*Fl+De.get()*(1-Fl);Te.set(ht),Zp&&(Qt.loop(Me.direction()),Nn.loop()),Pe.to(Te.get()),nt&&ri.emit("settle"),Ne||ri.emit("scroll")},ae=poe(r,i,()=>F(Ze),Me=>ue(Ze,Me)),Ae=.68,Ie=Y[K.get()],Ge=lh(Ie),jt=lh(Ie),_t=lh(Ie),vn=lh(Ie),Vt=woe(Ge,_t,jt,vn,f,Ae),on=Coe(h,Y,J,ce,vn),xn=Aoe(ae,K,Q,Vt,on,vn,a),ds=Eoe(ce),hs=kf(),bn=Ioe(t,n,a,m),{slideRegistry:W}=Noe(D,x,Y,ke,z,G),Se=Poe(e,n,W,xn,Vt,hs,a,j),Ze={ownerDocument:r,ownerWindow:i,eventHandler:a,containerRect:T,slideRects:N,animation:ae,axis:P,dragHandler:goe(P,e,r,i,vn,yoe(P,i),Ge,ae,xn,Vt,on,K,a,M,p,g,v,Ae,k),eventStore:hs,percentOfView:M,index:K,indexPrevious:Q,limit:ce,location:Ge,offsetLocation:_t,previousLocation:jt,options:s,resizeHandler:boe(t,a,i,n,P,b,E),scrollBody:Vt,scrollBounds:koe(ce,_t,vn,Vt,M),scrollLooper:_oe(J,ce,_t,[Ge,_t,jt,vn]),scrollProgress:ds,scrollSnapList:Y.map(ds.get),scrollSnaps:Y,scrollTarget:on,scrollTo:xn,slideLooper:Ooe(P,C,J,B,I,q,Y,_t,n),slideFocus:Se,slidesHandler:Roe(t,a,S),slidesInView:bn,slideIndexes:G,slideRegistry:W,slidesToScroll:z,target:vn,translate:iB(P,t)};return Ze}function Loe(){let e={},t;function n(u){t=u}function r(u){return e[u]||[]}function i(u){return r(u).forEach(d=>d(t,u)),l}function s(u,d){return e[u]=r(u).concat([d]),l}function a(u,d){return e[u]=r(u).filter(h=>h!==d),l}function o(){e={}}const l={init:n,emit:i,off:a,on:s,clear:o};return l}const Foe={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function Boe(e){function t(s,a){return nB(s,a||{})}function n(s){const a=s.breakpoints||{},o=wf(a).filter(l=>e.matchMedia(l).matches).map(l=>a[l]).reduce((l,u)=>t(l,u),{});return t(s,o)}function r(s){return s.map(a=>wf(a.breakpoints||{})).reduce((a,o)=>a.concat(o),[]).map(e.matchMedia)}return{mergeOptions:t,optionsAtMedia:n,optionsMediaQueries:r}}function Voe(e){let t=[];function n(s,a){return t=a.filter(({options:o})=>e.optionsAtMedia(o).active!==!1),t.forEach(o=>o.init(s,e)),a.reduce((o,l)=>Object.assign(o,{[l.name]:l}),{})}function r(){t=t.filter(s=>s.destroy())}return{init:n,destroy:r}}function Ey(e,t,n){const r=e.ownerDocument,i=r.defaultView,s=Boe(i),a=Voe(s),o=kf(),l=Loe(),{mergeOptions:u,optionsAtMedia:d,optionsMediaQueries:h}=s,{on:f,off:p,emit:g}=l,m=P;let y=!1,v,x=u(Foe,Ey.globalOptions),b=u(x),S=[],k,j,_;function E(){const{container:G,slides:F}=b;j=(Lk(G)?e.querySelector(G):G)||e.children[0];const ae=Lk(F)?j.querySelectorAll(F):F;_=[].slice.call(ae||j.children)}function T(G){const F=Doe(e,j,_,r,i,G,l);if(G.loop&&!F.slideLooper.canLoop()){const ue=Object.assign({},G,{loop:!1});return T(ue)}return F}function N(G,F){y||(x=u(x,G),b=d(x),S=F||S,E(),v=T(b),h([x,...S.map(({options:ue})=>ue)]).forEach(ue=>o.add(ue,"change",P)),b.active&&(v.translate.to(v.location.get()),v.animation.init(),v.slidesInView.init(),v.slideFocus.init(Q),v.eventHandler.init(Q),v.resizeHandler.init(Q),v.slidesHandler.init(Q),v.options.loop&&v.slideLooper.loop(),j.offsetParent&&_.length&&v.dragHandler.init(Q),k=a.init(Q,S)))}function P(G,F){const ue=z();C(),N(u({startIndex:ue},G),F),l.emit("reInit")}function C(){v.dragHandler.destroy(),v.eventStore.clear(),v.translate.clear(),v.slideLooper.clear(),v.resizeHandler.destroy(),v.slidesHandler.destroy(),v.slidesInView.destroy(),v.animation.destroy(),a.destroy(),o.clear()}
499function M(){y||(y=!0,o.clear(),C(),l.emit("destroy"),l.clear())}function R(G,F,ue){!b.active||y||(v.scrollBody.useBaseFriction().useDuration(F===!0?0:b.duration),v.scrollTo.index(G,ue||0))}function D(G){const F=v.index.add(1).get();R(F,G,-1)}function L(G){const F=v.index.add(-1).get();R(F,G,1)}function B(){return v.index.add(1).get()!==z()}function I(){return v.index.add(-1).get()!==z()}function O(){return v.scrollSnapList}function V(){return v.scrollProgress.get(v.offsetLocation.get())}function z(){return v.index.get()}function q(){return v.indexPrevious.get()}function X(){return v.slidesInView.get()}function J(){return v.slidesInView.get(!1)}function xe(){return k}function ke(){return v}function Y(){return e}function ce(){return j}function K(){return _}const Q={canScrollNext:B,canScrollPrev:I,containerNode:ce,internalEngine:ke,destroy:M,off:p,on:f,emit:g,plugins:xe,previousScrollSnap:q,reInit:m,rootNode:Y,scrollNext:D,scrollPrev:L,scrollProgress:V,scrollSnapList:O,scrollTo:R,selectedScrollSnap:z,slideNodes:K,slidesInView:X,slidesNotInView:J};return N(t,n),setTimeout(()=>l.emit("init"),0),Q}Ey.globalOptions=void 0;function Vp(e={},t=[]){const n=w.useRef(e),r=w.useRef(t),[i,s]=w.useState(),[a,o]=w.useState(),l=w.useCallback(()=>{i&&i.reInit(n.current,r.current)},[i]);return w.useEffect(()=>{YE(n.current,e)||(n.current=e,l())},[e,l]),w.useEffect(()=>{uoe(r.current,t)||(r.current=t,l())},[t,l]),w.useEffect(()=>{if(coe()&&a){Ey.globalOptions=Vp.globalOptions;const u=Ey(a,n.current,r.current);return s(u),()=>u.destroy()}else s(void 0)},[a,s]),[o,i]}Vp.globalOptions=void 0;const sB=w.createContext(null);function Tx(){const e=w.useContext(sB);if(!e)throw new Error("useCarousel must be used within a <Carousel />");return e}const aB=w.forwardRef(({orientation:e="horizontal",opts:t,setApi:n,plugins:r,className:i,children:s,...a},o)=>{const[l,u]=Vp({...t,axis:e==="horizontal"?"x":"y"},r),[d,h]=w.useState(!1),[f,p]=w.useState(!1),g=w.useCallback(x=>{x&&(h(x.canScrollPrev()),p(x.canScrollNext()))},[]),m=w.useCallback(()=>{u==null||u.scrollPrev()},[u]),y=w.useCallback(()=>{u==null||u.scrollNext()},[u]),v=w.useCallback(x=>{x.key==="ArrowLeft"?(x.preventDefault(),m()):x.key==="ArrowRight"&&(x.preventDefault(),y())},[m,y]);return w.useEffect(()=>{!u||!n||n(u)},[u,n]),w.useEffect(()=>{if(u)return g(u),u.on("reInit",g),u.on("select",g),()=>{u==null||u.off("select",g)}},[u,g]),c.jsx(sB.Provider,{value:{carouselRef:l,api:u,opts:t,orientation:e||((t==null?void 0:t.axis)==="y"?"vertical":"horizontal"),scrollPrev:m,scrollNext:y,canScrollPrev:d,canScrollNext:f},children:c.jsx("div",{ref:o,onKeyDownCapture:v,className:ye("relative",i),role:"region","aria-roledescription":"carousel",...a,children:s})})});aB.displayName="Carousel";const oB=w.forwardRef(({className:e,...t},n)=>{const{carouselRef:r,orientation:i}=Tx();return c.jsx("div",{ref:r,className:"overflow-hidden",children:c.jsx("div",{ref:n,className:ye("flex",i==="horizontal"?"-ml-4":"-mt-4 flex-col",e),...t})})});oB.displayName="CarouselContent";const lB=w.forwardRef(({className:e,...t},n)=>{const{orientation:r}=Tx();return c.jsx("div",{ref:n,role:"group","aria-roledescription":"slide",className:ye("min-w-0 shrink-0 grow-0 basis-full",r==="horizontal"?"pl-4":"pt-4",e),...t})});lB.displayName="CarouselItem";const qoe=w.forwardRef(({className:e,variant:t="outline",size:n="icon",...r},i)=>{const{orientation:s,scrollPrev:a,canScrollPrev:o}=Tx();return c.jsxs(de,{ref:i,variant:t,size:n,className:ye("absolute h-8 w-8 rounded-full",s==="horizontal"?"-left-12 top-1/2 -translate-y-1/2":"-top-12 left-1/2 -translate-x-1/2 rotate-90",e),disabled:!o,onClick:a,...r,children:[c.jsx(ss,{className:"h-4 w-4"}),c.jsx("span",{className:"sr-only",children:"Previous slide"})]})});qoe.displayName="CarouselPrevious";const Uoe=w.forwardRef(({className:e,variant:t="outline",size:n="icon",...r},i)=>{const{orientation:s,scrollNext:a,canScrollNext:o}=Tx();return c.jsxs(de,{ref:i,variant:t,size:n,className:ye("absolute h-8 w-8 rounded-full",s==="horizontal"?"-right-12 top-1/2 -translate-y-1/2":"-bottom-12 left-1/2 -translate-x-1/2 rotate-90",e),disabled:!o,onClick:a,...r,children:[c.jsx(Ls,{className:"h-4 w-4"}),c.jsx("span",{className:"sr-only",children:"Next slide"})]})});
499Uoe.displayName="CarouselNext";const Woe=()=>{const{t:e}=St(),t=ooe(),n=[{icon:P_,value:e("stats.items.satisfaction.value"),label:e("stats.items.satisfaction.label"),description:e("stats.items.satisfaction.description")},{icon:Za,value:e("stats.items.users.value"),label:e("stats.items.users.label"),description:e("stats.items.users.description")},{icon:$4,value:e("stats.items.retention.value"),label:e("stats.items.retention.label"),description:e("stats.items.retention.description")},{icon:Ol,value:e("stats.items.support.value"),label:e("stats.items.support.label"),description:e("stats.items.support.description")}],r=({stat:i,index:s})=>c.jsxs("div",{className:"bg-white/10 backdrop-blur-sm border border-white/10 rounded-xl p-5 hover:bg-white/15 transition-all duration-300 h-full",children:[c.jsxs("div",{className:"flex items-center gap-3 mb-3",children:[c.jsx("div",{className:"w-10 h-10 rounded-lg bg-white/10 flex items-center justify-center",children:c.jsx(i.icon,{className:"w-5 h-5 text-white"})}),c.jsx("div",{className:"text-2xl md:text-3xl font-bold text-white",children:i.value})]}),c.jsx("h3",{className:"text-sm font-semibold text-white",children:i.label})]});return c.jsx("section",{className:"bg-beyond-blue px-4 py-16 md:py-24 md:px-12 lg:px-16 overflow-hidden",children:c.jsx("div",{className:"max-w-7xl mx-auto",children:c.jsxs("div",{className:"flex flex-col lg:flex-row lg:items-center lg:gap-16",children:[c.jsx(U.div,{initial:{opacity:0,y:50},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-100px"},transition:{duration:2,ease:[.25,.46,.45,.94]},className:"flex justify-center lg:order-2 lg:flex-1 mb-8 lg:mb-0",children:c.jsxs(ut,{to:"/impact-report",onClick:()=>window.scrollTo(0,0),className:"relative group block",children:[c.jsx("div",{className:"pointer-events-none absolute -inset-4 bg-white/10 rounded-2xl blur-2xl opacity-0 group-hover:opacity-100 transition-opacity duration-500"}),c.jsx("div",{className:"relative rounded-lg overflow-hidden shadow-2xl group-hover:scale-[1.02] transition-transform duration-300",children:c.jsx("img",{src:tB,alt:"2024 ILO Impact Report",className:"w-[280px] sm:w-[320px] lg:w-[360px] h-auto"})}),c.jsx(U.div,{className:"absolute -top-3 -right-3 z-10",animate:{rotate:[0,3,-3,0],scale:[1,1.05,1]},transition:{duration:3,repeat:1/0,ease:"easeInOut"},children:c.jsxs("div",{className:"relative",children:[c.jsx("div",{className:"absolute inset-0 bg-fluorescent/50 rounded-full blur-md"}),c.jsxs("div",{className:"relative flex items-center gap-2 bg-fluorescent text-beyond-blue px-4 py-2.5 rounded-full shadow-lg group-hover:shadow-fluorescent/40 group-hover:shadow-xl transition-shadow",children:[c.jsx("span",{className:"text-sm font-bold whitespace-nowrap",children:e("stats.readMore")}),c.jsx(U.div,{animate:{x:[0,4,0]},transition:{duration:1.5,repeat:1/0,ease:"easeInOut"},children:c.jsx(Ls,{className:"w-4 h-4"})})]})]})})]})}),c.jsxs(U.div,{initial:{opacity:0,y:50},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-100px"},transition:{duration:2,delay:.2,ease:[.25,.46,.45,.94]},className:"lg:order-1 lg:flex-1",children:[c.jsxs("div",{className:"text-center lg:text-left mb-8",children:[c.jsx("h2",{className:"text-2xl sm:text-3xl md:text-4xl font-bold text-white mb-4",children:e("stats.title")}),c.jsx("p",{className:"text-white/70 text-sm sm:text-base max-w-xl mx-auto lg:mx-0 mb-6",children:e("stats.description")}),c.jsxs(ut,{to:"/impact-report",onClick:()=>window.scrollTo(0,0),className:"inline-flex items-center gap-2 text-accent hover:text-accent/80 font-medium transition-colors group text-sm sm:text-base",children:[e("stats.badge"),c.jsx(Ls,{className:"w-4 h-4 group-hover:translate-x-1 transition-transform"})]})]}),t?c.jsx(aB,{opts:{align:"center",loop:!0},className:"w-full",children:c.jsx(oB,{className:"-ml-2",children:n.map((i,s)=>c.jsx(lB,{className:"pl-2 basis-[85%]",children:c.jsx(r,{stat:i,index:s})},s))})}):c.jsx("div",{className:"grid sm:grid-cols-2 gap-4",children:n.map((i,s)=>c.jsx(r,{stat:i,index:s},s))})]})]})})})},zoe="/assets/takashi-mori-CJqmYRuy.jpeg",Hoe="/assets/bruno-jaspaert-CLPjtR1n.jpeg",Koe="/assets/chung-thuong-ZVyoVE4Q.jpg",Goe="/assets/vua-nem-hrd-xeq4xopr.jpg",Yoe=()=>{const{t:e}=St(),[t,n]=Vp({loop:!0,align:"start",skipSnaps:!1}),[r,i]=w.useState(0),s=e("testimonial.quotes",{returnObjects:!0}),a=[Hoe,zoe,Koe,Goe],o=w.useCallback(()=>n==null?void 0:n.scrollPrev(),[n]),l=w.useCallback(()=>n==null?void 0:n.scrollNext(),[n]),u=w.useCallback(h=>
499n==null?void 0:n.scrollTo(h),[n]),d=w.useCallback(()=>{n&&i(n.selectedScrollSnap())},[n]);return w.useEffect(()=>{if(n)return n.on("select",d),d(),()=>{n.off("select",d)}},[n,d]),w.useEffect(()=>{if(!n)return;const h=setInterval(()=>{n.scrollNext()},8e3);return()=>clearInterval(h)},[n]),c.jsx("section",{className:"bg-muted/30 px-6 py-12 md:py-16 md:px-12 lg:px-16 overflow-hidden",children:c.jsxs(U.div,{initial:{opacity:0,y:50},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-100px"},transition:{duration:2,ease:[.25,.46,.45,.94]},className:"max-w-5xl mx-auto",children:[c.jsx("div",{className:"text-center mb-8 md:mb-10",children:c.jsx("h2",{className:"text-xl md:text-2xl lg:text-3xl font-bold text-foreground",children:e("testimonial.title","What our partners say")})}),c.jsxs("div",{className:"relative",children:[c.jsx("div",{className:"overflow-hidden",ref:t,children:c.jsx("div",{className:"flex",children:s.map((h,f)=>c.jsx("div",{className:"flex-[0_0_100%] min-w-0",children:c.jsxs("div",{className:"flex flex-col md:flex-row items-center gap-6 md:gap-10 lg:gap-12 px-4 md:px-8",children:[c.jsx("div",{className:"flex-shrink-0 w-[200px] h-[250px] md:w-[260px] md:h-[320px] overflow-hidden rounded-xl shadow-lg",children:c.jsx("img",{src:a[f],alt:h.author,className:"w-full h-full object-cover",loading:"lazy",decoding:"async"})}),c.jsxs("div",{className:"flex-1 flex flex-col justify-center text-center md:text-left max-w-xl",children:[c.jsx(nx,{className:"w-8 h-8 md:w-10 md:h-10 text-primary/20 mb-4 rotate-180 mx-auto md:mx-0"}),c.jsxs("blockquote",{className:"text-foreground leading-relaxed text-base md:text-lg font-medium mb-5",children:['"',h.quote,'"']}),c.jsxs("div",{className:"border-t border-border/50 pt-4",children:[c.jsx("p",{className:"text-foreground font-semibold text-base",children:h.author}),c.jsx("p",{className:"text-muted-foreground text-sm whitespace-pre-line",children:h.source})]})]})]})},f))})}),c.jsxs("div",{className:"flex items-center justify-center gap-5 mt-8",children:[c.jsx(de,{variant:"ghost",size:"icon",className:"rounded-full w-8 h-8 text-muted-foreground hover:text-foreground hover:bg-transparent transition-colors",onClick:o,children:c.jsx(Jv,{className:"w-5 h-5"})}),c.jsx("div",{className:"flex items-center gap-2",children:s.map((h,f)=>c.jsx("button",{onClick:()=>u(f),className:`rounded-full transition-all duration-300 ${r===f?"bg-primary w-2.5 h-2.5":"bg-muted-foreground/30 w-1.5 h-1.5 hover:bg-muted-foreground/50"}`,"aria-label":`Go to testimonial ${f+1}`},f))}),c.jsx(de,{variant:"ghost",size:"icon",className:"rounded-full w-8 h-8 text-muted-foreground hover:text-foreground hover:bg-transparent transition-colors",onClick:l,children:c.jsx(Fs,{className:"w-5 h-5"})})]})]})]})})},Xoe="/assets/mission-collage-Qpph1qHQ.jpg",Qoe=()=>{const{t:e}=St();return c.jsxs("section",{className:"relative min-h-[50vh] md:min-h-[60vh] flex items-center overflow-hidden",children:[c.jsxs("div",{className:"absolute inset-0",children:[c.jsx("img",{src:Xoe,alt:"Ekko in action",className:"w-full h-full object-cover object-center",loading:"lazy",decoding:"async"}),c.jsx("div",{className:"absolute inset-0 bg-gradient-to-r from-primary/95 via-primary/85 to-primary/60"})]}),c.jsx("div",{className:"relative z-10 max-w-7xl mx-auto px-6 md:px-12 lg:px-16 py-16 w-full",children:c.jsxs(U.div,{initial:{opacity:0,y:50},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-100px"},transition:{duration:2,ease:[.25,.46,.45,.94]},className:"max-w-3xl",children:[c.jsx("span",{className:"text-primary-foreground/70 text-sm font-medium tracking-widest uppercase mb-4 block",children:e("mission.label")}),c.jsx("h2",{className:"text-2xl md:text-3xl lg:text-4xl xl:text-5xl font-bold text-white leading-tight",children:e("mission.title")})]})})]})};var Nx="Tabs",[Zoe,y6e]=dr(Nx,[fx]),cB=fx(),[Joe,JE]=Zoe(Nx),uB=w.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,onValueChange:i,defaultValue:s,orientation:a="horizontal",dir:o,activationMode:l="automatic",...u}=e,d=Op(o),[h,f]=Xr({prop:r,onChange:i,defaultProp:s??"",caller:Nx});return c.jsx(Joe,{scope:n,baseId:jr(),value:h,onValueChange:f,orientation:a,dir:d,activationMode:l,children:c.jsx(we.div,{dir:d,"data-orientation":a,...u,ref:t})})});uB.displayName=Nx;var dB="TabsList",hB=w.forwardRef((e,t)=>
vendor: 5,320 bytes, line 499
499{const{__scopeTabs:n,loop:r=!0,...i}=e,s=JE(dB,n),a=cB(n);return c.jsx(c5,{asChild:!0,...a,orientation:s.orientation,dir:s.dir,loop:r,children:c.jsx(we.div,{role:"tablist","aria-orientation":s.orientation,...i,ref:t})})});hB.displayName=dB;var fB="TabsTrigger",pB=w.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,disabled:i=!1,...s}=e,a=JE(fB,n),o=cB(n),l=yB(a.baseId,r),u=vB(a.baseId,r),d=r===a.value;return c.jsx(u5,{asChild:!0,...o,focusable:!i,active:d,children:c.jsx(we.button,{type:"button",role:"tab","aria-selected":d,"aria-controls":u,"data-state":d?"active":"inactive","data-disabled":i?"":void 0,disabled:i,id:l,...s,ref:t,onMouseDown:te(e.onMouseDown,h=>{!i&&h.button===0&&h.ctrlKey===!1?a.onValueChange(r):h.preventDefault()}),onKeyDown:te(e.onKeyDown,h=>{[" ","Enter"].includes(h.key)&&a.onValueChange(r)}),onFocus:te(e.onFocus,()=>{const h=a.activationMode!=="manual";!d&&!i&&h&&a.onValueChange(r)})})})});pB.displayName=fB;var mB="TabsContent",gB=w.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,forceMount:i,children:s,...a}=e,o=JE(mB,n),l=yB(o.baseId,r),u=vB(o.baseId,r),d=r===o.value,h=w.useRef(d);return w.useEffect(()=>{const f=requestAnimationFrame(()=>h.current=!1);return()=>cancelAnimationFrame(f)},[]),c.jsx(Jr,{present:i||d,children:({present:f})=>c.jsx(we.div,{"data-state":d?"active":"inactive","data-orientation":o.orientation,role:"tabpanel","aria-labelledby":l,hidden:!f,id:u,tabIndex:0,...a,ref:t,style:{...e.style,animationDuration:h.current?"0s":void 0},children:f&&s})})});gB.displayName=mB;function yB(e,t){return`${e}-trigger-${t}`}function vB(e,t){return`${e}-content-${t}`}var ele=uB,xB=hB,bB=pB,wB=gB;const tle=ele,kB=w.forwardRef(({className:e,...t},n)=>c.jsx(xB,{ref:n,className:ye("inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground",e),...t}));kB.displayName=xB.displayName;const SB=w.forwardRef(({className:e,...t},n)=>c.jsx(bB,{ref:n,className:ye("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",e),...t}));SB.displayName=bB.displayName;const jB=w.forwardRef(({className:e,...t},n)=>c.jsx(wB,{ref:n,className:ye("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...t}));jB.displayName=wB.displayName;const nle="/assets/app-screenshot-ewa-BmmGJhkL.png",rle="/assets/app-education-modules-LualXLz5.png",ile="/assets/app-phones-mockup-ekko-BvFAYPJk.png",sle="/assets/app-savings-planning-D8UC2Uar.png",OP="/assets/hr-portal-dashboard-new-BudYc_7_.png",ale="/assets/hr-portal-dashboard-9MS_KI4T.png",ole="/assets/phone-app-1-EoQvh7Mb.png",RP="/assets/workshop-training-COm-2VDW.jpg",lle="/assets/tab-literacy-Ct-Ymb3h.jpg",cle="/assets/tab-financial-tools-O6Q85lqt.jpg",ule=()=>{const{t:e}=St(),[t,n]=w.useState("app"),r=[{icon:yK,title:e("howItWorks.workshopFeatures.certified.title","ILO-Certified Trainers"),description:e("howItWorks.workshopFeatures.certified.description","World-class financial education standards."),image:RP},{icon:ZC,title:e("howItWorks.workshopFeatures.onDemand.title","On-Demand Training"),description:e("howItWorks.workshopFeatures.onDemand.description","Workshops tailored to your workforce."),image:lle},{icon:D4,title:e("howItWorks.workshopFeatures.programs.title","Tailored Programs"),description:e("howItWorks.workshopFeatures.programs.description","For white-collar and blue-collar employees."),image:cle}],i=[{icon:af,title:e("howItWorks.appFeatures.ewa.title","Earned Wage Access"),description:e("howItWorks.appFeatures.ewa.description","Access earned wages anytime, anywhere."),image:nle},{icon:rf,title:e("howItWorks.appFeatures.education.title","Financial Education"),description:e("howItWorks.appFeatures.education.description","Gamified financial courses for your workforce."),image:rle},{icon:ex,title:e("howItWorks.appFeatures.planning.title","Financial Planning"),description:e("howItWorks.appFeatures.planning.description","Set savings goals and build better habits."),image:sle}],s=[{icon:Za,title:e("howItWorks.portalFeatures.management.title","Employee Management"),description:e("howItWorks.portalFeatures.management.description","Manage enrollment and wage advance limits."),image:OP},{icon:A_,title:e("howItWorks.portalFeatures.analytics.title","Real-time Analytics"),description:e("howItWorks.portalFeatures.analytics.description","Track usage and generate reports."),image:ale},{icon:$K,title:e("howItWorks.portalFeatures.integration.title","Seamless Integration"),description:e("howItWorks.portalFeatures.integration.description","Connect with existing HR systems."),image:ole}],a=[{id:"app",icon:I4,label:e("howItWorks.tabs.app","Ekko App"),features:i,mainImage:ile,description:e("howItWorks.appDescription","Mobile app for employees to access wages, learn financial skills, and plan savings.")},{id:"portal",icon:AK,label:e("howItWorks.tabs.portal","HR Portal"),features:s,mainImage:OP,description:e("howItWorks.portalDescription","Web dashboard for HR team
499s to manage employees and track program performance.")},{id:"workshops",icon:ZC,label:e("howItWorks.tabs.workshops","Workshops"),features:r,mainImage:RP,description:e("howItWorks.workshopDescription","On-site financial education workshops led by ILO-certified trainers.")}];return c.jsx("section",{className:"bg-background px-6 py-20 md:py-24 md:px-12 lg:px-16 overflow-hidden",children:c.jsxs("div",{className:"max-w-6xl mx-auto",children:[c.jsxs(U.div,{initial:{opacity:0,y:50},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-100px"},transition:{duration:2,ease:[.25,.46,.45,.94]},className:"text-center mb-12",children:[c.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-foreground mb-4",children:e("howItWorks.title")}),c.jsx("p",{className:"text-muted-foreground max-w-2xl mx-auto text-base",children:e("howItWorks.description")})]}),c.jsx(U.div,{initial:{opacity:0,y:50},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-100px"},transition:{duration:2,delay:.2,ease:[.25,.46,.45,.94]},children:c.jsxs(tle,{value:t,onValueChange:n,className:"w-full",children:[c.jsx(kB,{className:"grid w-full grid-cols-3 mb-8 h-auto p-1 bg-muted/50",children:a.map(o=>c.jsxs(SB,{value:o.id,className:"flex items-center gap-2 py-3 px-4 data-[state=active]:bg-primary data-[state=active]:text-primary-foreground transition-all",children:[c.jsx(o.icon,{className:"w-5 h-5"}),c.jsx("span",{className:"hidden sm:inline",children:o.label})]},o.id))}),a.map(o=>c.jsx(jB,{value:o.id,className:"mt-0 focus-visible:outline-none focus-visible:ring-0",children:c.jsxs("div",{className:"grid md:grid-cols-2 gap-8 items-center",children:[c.jsx("div",{className:"relative order-2 md:order-1",children:c.jsx("div",{className:"rounded-2xl overflow-hidden shadow-2xl bg-muted",children:c.jsx("img",{src:o.mainImage,alt:o.label,className:"w-full h-auto object-cover aspect-[4/3]"})})}),c.jsxs("div",{className:"order-1 md:order-2 space-y-6",children:[c.jsxs("div",{children:[c.jsxs("div",{className:"flex items-center gap-3 mb-3",children:[c.jsx("div",{className:"w-12 h-12 rounded-xl bg-primary/10 flex items-center justify-center",children:c.jsx(o.icon,{className:"w-6 h-6 text-primary"})}),c.jsx("h3",{className:"text-2xl font-bold text-foreground",children:o.label})]}),c.jsx("p",{className:"text-muted-foreground",children:o.description})]}),c.jsx("div",{className:"space-y-4",children:o.features.map((l,u)=>c.jsxs("div",{className:"flex items-start gap-4 p-4 rounded-xl bg-muted/50 hover:bg-muted transition-colors",children:[c.jsx("div",{className:"w-10 h-10 rounded-lg bg-primary/10 flex items-center justify-center flex-shrink-0",children:c.jsx(l.icon,{className:"w-5 h-5 text-primary"})}),c.jsxs("div",{children:[c.jsx("h4",{className:"font-semibold text-foreground mb-1",children:l.title}),c.jsx("p",{className:"text-sm text-muted-foreground",children:l.description})]})]},u))})]})]})},o.id))]})})]})})},dle=e=>e?(...t)=>e(...t):(...t)=>fetch(...t);class eT extends Error{constructor(t,n="FunctionsError",r){super(t),this.name=n,this.context=r}}class hle extends eT{constructor(t){super("Failed to send a request to the Edge Function","FunctionsFetchError",t)}}class IP extends eT{constructor(t){super("Relay Error invoking the Edge Function","FunctionsRelayError",t)}}class MP extends eT{constructor(t){super("Edge Function returned a non-2xx status code","FunctionsHttpError",t)}}var Bk;(function(e){e.Any="any",e.ApNortheast1="ap-northeast-1",e.ApNortheast2="ap-northeast-2",e.ApSouth1="ap-south-1",e.ApSoutheast1="ap-southeast-1",e.ApSoutheast2="ap-southeast-2",e.CaCentral1="ca-central-1",e.EuCentral1="eu-central-1",e.EuWest1="eu-west-1",e.EuWest2="eu-west-2",e.EuWest3="eu-west-3",e.SaEast1="sa-east-1",e.UsEast1="us-east-1",e.UsWest1="us-west-1",e.UsWest2="us-west-2"})(Bk||(Bk={}));class fle{constructor(t,{headers:n={},customFetch:r,region:i=Bk.Any}={}){this.url=t,this.headers=n,this.region=i,this.fetch=dle(r)}setAuth(t){this.headers.Authorization=`Bearer ${t}`}invoke(t){return RJ(this,arguments,void 0,function*(n,r={}){var i;let s,a;try{const{headers:o,method:l,body:u,signal:d,timeout:h}=r;let f={},{region:p}=r;p||(p=this.region);const g=new URL(`${this.url}/${n}`);p&&p!=="any"&&(f["x-region"]=p,g.searchParams.set("forceFunctionRegion",p));let m;u&&(o&&!Object.prototype.hasOwnProperty.call(o,"Content-Type")||!o)?typeof Blob<"u"&&u instanceof Blob||u instanceof ArrayBuffer?(f["Content-Type"]="application/octet-stream",m=u):typeof u=="string"?(f["Content-Type"]="text/plain",m=u):typeof FormData<"u"&&u instanceof FormData?m=u:(f["Content-Type"]="application/json",m=JSON.stringify(u)):u&&typeof u!="string"&&!(typeof Blob<"u"&&u instanceof Blob)&&!(u instanceof ArrayBuffer)&&!(typeof FormData<"u"&&u instanceof FormData)?m=JSON.stringify(u):m=u;let y=d;h&&(a=new AbortController,s=setTimeout(()=>a.abort(),h),d?(y=a.signal,d.addEventListener("abort",()=>a.abort())):y=a.signal);const v=yield this.fetch(g.toString(),{method:l||"POST",headers:Object.assign(Object.assign(Object.assign({},f),this.headers),o),body:m,signal:y}
499).catch(k=>{throw new hle(k)}),x=v.headers.get("x-relay-error");if(x&&x==="true")throw new IP(v);if(!v.ok)throw new MP(v);let b=((i=v.headers.get("Content-Type"))!==null&&i!==void 0?i:"text/plain").split(";")[0].trim(),S;return b==="application/json"?S=yield v.json():b==="application/octet-stream"||b==="application/pdf"?S=yield v.blob():b==="text/event-stream"?S=v:b==="multipart/form-data"?S=yield v.formData():S=yield v.text(),{data:S,error:null,response:v}}catch(o){return{data:null,error:o,response:o instanceof MP||o instanceof IP?o.context:void 0}}finally{s&&clearTimeout(s)}})}}var ple=class extends Error{constructor(e){super(e.message),this.name="PostgrestError",this.details=e.details,this.hint=e.hint,this.code=e.code}},mle=class{constructor(e){var t,n;this.shouldThrowOnError=!1,this.method=e.method,this.url=e.url,this.headers=new Headers(e.headers),this.schema=e.schema,this.body=e.body,this.shouldThrowOnError=(t=e.shouldThrowOnError)!==null&&t!==void 0?t:!1,this.signal=e.signal,this.isMaybeSingle=(n=e.isMaybeSingle)!==null&&n!==void 0?n:!1,e.fetch?this.fetch=e.fetch:this.fetch=fetch}throwOnError(){return this.shouldThrowOnError=!0,this}setHeader(e,t){return this.headers=new Headers(this.headers),this.headers.set(e,t),this}then(e,t){var n=this;this.schema===void 0||(["GET","HEAD"].includes(this.method)?this.headers.set("Accept-Profile",this.schema):this.headers.set("Content-Profile",this.schema)),this.method!=="GET"&&this.method!=="HEAD"&&this.headers.set("Content-Type","application/json");const r=this.fetch;let i=r(this.url.toString(),{method:this.method,headers:this.headers,body:JSON.stringify(this.body),signal:this.signal}).then(async s=>{let a=null,o=null,l=null,u=s.status,d=s.statusText;if(s.ok){var h,f;if(n.method!=="HEAD"){var p;const v=await s.text();v===""||(n.headers.get("Accept")==="text/csv"||n.headers.get("Accept")&&(!((p=n.headers.get("Accept"))===null||p===void 0)&&p.includes("application/vnd.pgrst.plan+text"))?o=v:o=JSON.parse(v))}const m=(h=n.headers.get("Prefer"))===null||h===void 0?void 0:h.match(/count=(exact|planned|estimated)/),y=(f=s.headers.get("content-range"))===null||f===void 0?void 0:f.split("/");m&&y&&y.length>1&&(l=parseInt(y[1])),n.isMaybeSingle&&n.method==="GET"&&Array.isArray(o)&&(o.length>1?(a={code:"PGRST116",details:`Results contain ${o.length} rows, application/vnd.pgrst.object+json requires 1 row`,hint:null,message:"JSON object requested, multiple (or no) rows returned"},o=null,l=null,u=406,d="Not Acceptable"):o.length===1?o=o[0]:o=null)}else{var g;const m=await s.text();try{a=JSON.parse(m),Array.isArray(a)&&s.status===404&&(o=[],a=null,u=200,d="OK")}catch{s.status===404&&m===""?(u=204,d="No Content"):a={message:m}}if(a&&n.isMaybeSingle&&(!(a==null||(g=a.details)===null||g===void 0)&&g.includes("0 rows"))&&(a=null,u=200,d="OK"),a&&n.shouldThrowOnError)throw new ple(a)}return{error:a,data:o,count:l,status:u,statusText:d}});return this.shouldThrowOnError||(i=i.catch(s=>{var a;let o="";const l=s==null?void 0:s.cause;if(l){var u,d,h,f;const g=(u=l==null?void 0:l.message)!==null&&u!==void 0?u:"",m=(d=l==null?void 0:l.code)!==null&&d!==void 0?d:"";o=`${(h=s==null?void 0:s.name)!==null&&h!==void 0?h:"FetchError"}: ${s==null?void 0:s.message}`,o+=` 500 501Caused by: ${(f=l==null?void 0:l.name)!==null&&f!==void 0?f:"Error"}: ${g}`,m&&(o+=` (${m})`),l!=null&&l.stack&&(o+=` 502${l.stack}`)}else{var p;o=(p=s==null?void 0:s.stack)!==null&&p!==void 0?p:""}return{error:{message:`${(a=s==null?void 0:s.name)!==null&&a!==void 0?a:"FetchError"}: ${s==null?void 0:s.message}`,details:o,hint:"",code:""},data:null,count:null,status:0,statusText:""}})),i.then(e,t)}returns(){return this}overrideTypes(){return this}},gle=class extends mle{select(e){let t=!1;const n=(e??"*").split("").map(r=>/\s/.test(r)&&!t?"":(r==='"'&&(t=!t),r)).join("");return this.url.searchParams.set("select",n),this.headers.append("Prefer","return=representation"),this}order(e,{ascending:t=!0,nullsFirst:n,foreignTable:r,referencedTable:i=r}={}){const s=i?`${i}.order`:"order",a=this.url.searchParams.get(s);return this.url.searchParams.set(s,`${a?`${a},`:""}${e}.${t?"asc":"desc"}${n===void 0?"":n?".nullsfirst":".nullslast"}`),this}limit(e,{foreignTable:t,referencedTable:n=t}={}){const r=typeof n>"u"?"limit":`${n}.limit`;return this.url.searchParams.set(r,`${e}`),this}range(e,t,{foreignTable:n,referencedTable:r=n}={}){const i=typeof r>"u"?"offset":`${r}.offset`,s=typeof r>"u"?"limit":`${r}.limit`;return this.url.searchParams.set(i,`${e}`),this.url.searchParams.set(s,`${t-e+1}`),this}abortSignal(e){return this.signal=e,this}single(){return this.headers.set("Accept","application/vnd.pgrst.object+json"),this}maybeSingle(){return this.method==="GET"?this.headers.set("Accept","application/json"):this.headers.set("Accept","application/vnd.pgrst.object+json"),this.isMaybeSingle=!0,this}csv(){return this.headers.set("Accept","text/csv"),this}geojson(){return this.headers.set("Accept","application/geo+json"),this}
502explain({analyze:e=!1,verbose:t=!1,settings:n=!1,buffers:r=!1,wal:i=!1,format:s="text"}={}){var a;const o=[e?"analyze":null,t?"verbose":null,n?"settings":null,r?"buffers":null,i?"wal":null].filter(Boolean).join("|"),l=(a=this.headers.get("Accept"))!==null&&a!==void 0?a:"application/json";return this.headers.set("Accept",`application/vnd.pgrst.plan+${s}; for="${l}"; options=${o};`),s==="json"?this:this}rollback(){return this.headers.append("Prefer","tx=rollback"),this}returns(){return this}maxAffected(e){return this.headers.append("Prefer","handling=strict"),this.headers.append("Prefer",`max-affected=${e}`),this}};const $P=new RegExp("[,()]");var rc=class extends gle{eq(e,t){return this.url.searchParams.append(e,`eq.${t}`),this}neq(e,t){return this.url.searchParams.append(e,`neq.${t}`),this}gt(e,t){return this.url.searchParams.append(e,`gt.${t}`),this}gte(e,t){return this.url.searchParams.append(e,`gte.${t}`),this}lt(e,t){return this.url.searchParams.append(e,`lt.${t}`),this}lte(e,t){return this.url.searchParams.append(e,`lte.${t}`),this}like(e,t){return this.url.searchParams.append(e,`like.${t}`),this}likeAllOf(e,t){return this.url.searchParams.append(e,`like(all).{${t.join(",")}}`),this}likeAnyOf(e,t){return this.url.searchParams.append(e,`like(any).{${t.join(",")}}`),this}ilike(e,t){return this.url.searchParams.append(e,`ilike.${t}`),this}ilikeAllOf(e,t){return this.url.searchParams.append(e,`ilike(all).{${t.join(",")}}`),this}ilikeAnyOf(e,t){return this.url.searchParams.append(e,`ilike(any).{${t.join(",")}}`),this}regexMatch(e,t){return this.url.searchParams.append(e,`match.${t}`),this}regexIMatch(e,t){return this.url.searchParams.append(e,`imatch.${t}`),this}is(e,t){return this.url.searchParams.append(e,`is.${t}`),this}isDistinct(e,t){return this.url.searchParams.append(e,`isdistinct.${t}`),this}in(e,t){const n=Array.from(new Set(t)).map(r=>typeof r=="string"&&$P.test(r)?`"${r}"`:`${r}`).join(",");return this.url.searchParams.append(e,`in.(${n})`),this}notIn(e,t){const n=Array.from(new Set(t)).map(r=>typeof r=="string"&&$P.test(r)?`"${r}"`:`${r}`).join(",");return this.url.searchParams.append(e,`not.in.(${n})`),this}contains(e,t){return typeof t=="string"?this.url.searchParams.append(e,`cs.${t}`):Array.isArray(t)?this.url.searchParams.append(e,`cs.{${t.join(",")}}`):this.url.searchParams.append(e,`cs.${JSON.stringify(t)}`),this}containedBy(e,t){return typeof t=="string"?this.url.searchParams.append(e,`cd.${t}`):Array.isArray(t)?this.url.searchParams.append(e,`cd.{${t.join(",")}}`):this.url.searchParams.append(e,`cd.${JSON.stringify(t)}`),this}rangeGt(e,t){return this.url.searchParams.append(e,`sr.${t}`),this}rangeGte(e,t){return this.url.searchParams.append(e,`nxl.${t}`),this}rangeLt(e,t){return this.url.searchParams.append(e,`sl.${t}`),this}rangeLte(e,t){return this.url.searchParams.append(e,`nxr.${t}`),this}rangeAdjacent(e,t){return this.url.searchParams.append(e,`adj.${t}`),this}overlaps(e,t){return typeof t=="string"?this.url.searchParams.append(e,`ov.${t}`):this.url.searchParams.append(e,`ov.{${t.join(",")}}`),this}textSearch(e,t,{config:n,type:r}={}){let i="";r==="plain"?i="pl":r==="phrase"?i="ph":r==="websearch"&&(i="w");const s=n===void 0?"":`(${n})`;return this.url.searchParams.append(e,`${i}fts${s}.${t}`),this}match(e){return Object.entries(e).forEach(([t,n])=>{this.url.searchParams.append(t,`eq.${n}`)}),this}not(e,t,n){return this.url.searchParams.append(e,`not.${t}.${n}`),this}or(e,{foreignTable:t,referencedTable:n=t}={}){const r=n?`${n}.or`:"or";return this.url.searchParams.append(r,`(${e})`),this}filter(e,t,n){return this.url.searchParams.append(e,`${t}.${n}`),this}},yle=class{constructor(e,{headers:t={},schema:n,fetch:r}){this.url=e,this.headers=new Headers(t),this.schema=n,this.fetch=r}cloneRequestState(){return{url:new URL(this.url.toString()),headers:new Headers(this.headers)}}select(e,t){const{head:n=!1,count:r}=t??{},i=n?"HEAD":"GET";let s=!1;const a=(e??"*").split("").map(u=>/\s/.test(u)&&!s?"":(u==='"'&&(s=!s),u)).join(""),{url:o,headers:l}=this.cloneRequestState();return o.searchParams.set("select",a),r&&l.append("Prefer",`count=${r}`),new rc({method:i,url:o,headers:l,schema:this.schema,fetch:this.fetch})}insert(e,{count:t,defaultToNull:n=!0}={}){var r;const i="POST",{url:s,headers:a}=this.cloneRequestState();if(t&&a.append("Prefer",`count=${t}`),n||a.append("Prefer","missing=default"),Array.isArray(e)){const o=e.reduce((l,u)=>l.concat(Object.keys(u)),[]);if(o.length>0){const l=[...new Set(o)].map(u=>`"${u}"`);s.searchParams.set("columns",l.join(","))}}return new rc({method:i,url:s,headers:a,schema:this.schema,body:e,fetch:(r=this.fetch)!==null&&r!==void 0?r:fetch})}upsert(e,{onConflict:t,ignoreDuplicates:n=!1,count:r,defaultToNull:i=!0}={}){var s;const a="POST",{url:o,headers:l}=this.cloneRequestState();if(l.append("Prefer",`resolution=${n?"ignore":"merge"}-duplicates`),t!==void 0&&o.searchParams.set("on_conflict",t),r&&l.append("Prefer",`count=${r}`),i||l.append("Prefer","missing=default"),Array.isArray(e)){const u=e.reduce((d,h)=>d.concat(Object.keys(h)),[]);if(u.length>0){const d=[...new Set(u)].map(h=>`"${h}"`);o.searchParams.set("columns",d.join(","))}}return new rc({method:a,url:o,headers:l,schema:this.schema,body:e,fetch:(s=this.fetch)!==null&&s!==void 0?s:fetch})}update(e,{count:t}={}){var n;const r="PATCH",{url:i,headers:s}=this.cloneRequestState();return t&&s.append("Prefer",`count=${t}`),new rc({method:r,url:i,headers:s,schema:this.schema,body:e,fetch:(n=this.fetch)!==null&&n!==void 0?n:fetch})}delete({count:e}={}){var t;const n="DELETE",{url:r,headers:i}=this.cloneRequestState();return e&&i.append("Prefer",`count=${e}`),new rc({method:n,url:r,headers:i,schema:this.schema,fetch:(t=this.fetch)!==null&&t!==void 0?t:fetch})}},vle=class _B{constructor(t,{headers:n={},schema:r,fetch:i}={}){this.url=t,this.headers=new Headers(n),this.schemaName=r,this.fetch=i}from(t){if(!t||typeof t!="string"||t.trim()==="")throw new Error("Invalid relation name: relation must be a non-empty string.");return new yle(new URL(`${this.url}/${t}`),{headers:new Headers(this.headers),schema:this.schemaName,fetch:this.fetch})}schema(t){return new _B(this.url,{headers:this.headers,schema:t,fetch:this.fetch})}rpc(t,n={},{head:r=!1,get:i=!1,count:s}={}){var a;let o;const l=new URL(`${this.url}/rpc/${t}`);let u;const d=p=>p!==null&&typeof p=="object"&&(!Array.isArray(p)||p.some(d)),h=r&&Object.values(n).some(d);h?(o="POST",u=n):r||i?(o=r?"HEAD":"GET",Object.entries(n).filter(([p,g])=>g!==void 0).map(([p,g])=>[p,Array.isArray(g)?`{${g.join(",")}}`:`${g}
502`]).forEach(([p,g])=>{l.searchParams.append(p,g)})):(o="POST",u=n);const f=new Headers(this.headers);return h?f.set("Prefer",s?`count=${s},return=minimal`:"return=minimal"):s&&f.set("Prefer",`count=${s}`),new rc({method:o,url:l,headers:f,schema:this.schemaName,body:u,fetch:(a=this.fetch)!==null&&a!==void 0?a:fetch})}};class xle{constructor(){}static detectEnvironment(){var t;if(typeof WebSocket<"u")return{type:"native",constructor:WebSocket};if(typeof globalThis<"u"&&typeof globalThis.WebSocket<"u")return{type:"native",constructor:globalThis.WebSocket};if(typeof global<"u"&&typeof global.WebSocket<"u")return{type:"native",constructor:global.WebSocket};if(typeof globalThis<"u"&&typeof globalThis.WebSocketPair<"u"&&typeof globalThis.WebSocket>"u")return{type:"cloudflare",error:"Cloudflare Workers detected. WebSocket clients are not supported in Cloudflare Workers.",workaround:"Use Cloudflare Workers WebSocket API for server-side WebSocket handling, or deploy to a different runtime."};if(typeof globalThis<"u"&&globalThis.EdgeRuntime||typeof navigator<"u"&&(!((t=navigator.userAgent)===null||t===void 0)&&t.includes("Vercel-Edge")))return{type:"unsupported",error:"Edge runtime detected (Vercel Edge/Netlify Edge). WebSockets are not supported in edge functions.",workaround:"Use serverless functions or a different deployment target for WebSocket functionality."};const n=globalThis.process;if(n){const r=n.versions;if(r&&r.node){const i=r.node,s=parseInt(i.replace(/^v/,"").split(".")[0]);return s>=22?typeof globalThis.WebSocket<"u"?{type:"native",constructor:globalThis.WebSocket}:{type:"unsupported",error:`Node.js ${s} detected but native WebSocket not found.`,workaround:"Provide a WebSocket implementation via the transport option."}:{type:"unsupported",error:`Node.js ${s} detected without native WebSocket support.`,workaround:`For Node.js < 22, install "ws" package and provide it via the transport option: 503import ws from "ws" 504new RealtimeClient(url, { transport: ws })`}}}return{type:"unsupported",error:"Unknown JavaScript runtime without WebSocket support.",workaround:"Ensure you're running in a supported environment (browser, Node.js, Deno) or provide a custom WebSocket implementation."}}static getWebSocketConstructor(){const t=this.detectEnvironment();if(t.constructor)return t.constructor;let n=t.error||"WebSocket not supported in this environment.";throw t.workaround&&(n+=` 505 506Suggested solution: ${t.workaround}`),new Error(n)}static createWebSocket(t,n){const r=this.getWebSocketConstructor();return new r(t,n)}static isWebSocketSupported(){try{const t=this.detectEnvironment();return t.type==="native"||t.type==="ws"}catch{return!1}}}const ble="2.93.2",wle=`realtime-js/${ble}`,kle="1.0.0",EB="2.0.0",DP=EB,Vk=1e4,Sle=1e3,jle=100;var ma;(function(e){e[e.connecting=0]="connecting",e[e.open=1]="open",e[e.closing=2]="closing",e[e.closed=3]="closed"})(ma||(ma={}));var Jt;(function(e){e.closed="closed",e.errored="errored",e.joined="joined",e.joining="joining",e.leaving="leaving"})(Jt||(Jt={}));var xi;(function(e){e.close="phx_close",e.error="phx_error",e.join="phx_join",e.reply="phx_reply",e.leave="phx_leave",e.access_token="access_token"})(xi||(xi={}));var qk;(function(e){e.websocket="websocket"})(qk||(qk={}));var Do;(function(e){e.Connecting="connecting",e.Open="open",e.Closing="closing",e.Closed="closed"})(Do||(Do={}));class _le{constructor(t){this.HEADER_LENGTH=1,this.USER_BROADCAST_PUSH_META_LENGTH=6,this.KINDS={userBroadcastPush:3,userBroadcast:4},this.BINARY_ENCODING=0,this.JSON_ENCODING=1,this.BROADCAST_EVENT="broadcast",this.allowedMetadataKeys=[],this.allowedMetadataKeys=t??[]}encode(t,n){if(t.event===this.BROADCAST_EVENT&&!(t.payload instanceof ArrayBuffer)&&typeof t.payload.event=="string")return n(this._binaryEncodeUserBroadcastPush(t));let r=[t.join_ref,t.ref,t.topic,t.event,t.payload];return n(JSON.stringify(r))}_binaryEncodeUserBroadcastPush(t){var n;return this._isArrayBuffer((n=t.payload)===null||n===void 0?void 0:n.payload)?this._encodeBinaryUserBroadcastPush(t):this._encodeJsonUserBroadcastPush(t)}_encodeBinaryUserBroadcastPush(t){var n,r;const i=(r=(n=t.payload)===null||n===void 0?void 0:n.payload)!==null&&r!==void 0?r:new ArrayBuffer(0);return this._encodeUserBroadcastPush(t,this.BINARY_ENCODING,i)}_encodeJsonUserBroadcastPush(t){var n,r;const i=(r=(n=t.payload)===null||n===void 0?void 0:n.payload)!==null&&r!==void 0?r:{},a=new TextEncoder().encode(JSON.stringify(i)).buffer;return this._encodeUserBroadcastPush(t,this.JSON_ENCODING,a)}_encodeUserBroadcastPush(t,n,r){var i,s;const a=t.topic,o=(i=t.ref)!==null&&i!==void 0?i:"",l=(s=t.join_ref)!==null&&s!==void 0?s:"",u=t.payload.event,d=this.allowedMetadataKeys?this._pick(t.payload,this.allowedMetadataKeys):{},h=Object.keys(d).length===0?"":JSON.stringify(d);if(l.length>255)throw new Error(`joinRef length ${l.length} exceeds maximum of 255`);if(o.length>255)throw new Error(`ref length ${o.length} exceeds maximum of 255`);if(a.length>255)throw new Error(`topic length ${a.length} exceeds maximum of 255`);if(u.length>255)throw new Error(`userEvent length ${u.length} exceeds maximum of 255`);if(h.length>255)throw new Error(`metadata length ${h.length} exceeds maximum of 255`);const f=this.USER_BROADCAST_PUSH_META_LENGTH+l.length+o.length+a.length+u.length+h.length,p=new ArrayBuffer(this.HEADER_LENGTH+f);let g=new DataView(p),m=0;g.setUint8(m++,this.KINDS.userBroadcastPush),g.setUint8(m++,l.length),g.setUint8(m++,o.length),g.setUint8(m++,a.length),g.setUint8(m++,u.length),g.setUint8(m++,h.length),g.setUint8(m++,n),Array.from(l,v=>g.setUint8(m++,v.charCodeAt(0))),Array.from(o,v=>g.setUint8(m++,v.charCodeAt(0))),Array.from(a,v=>g.setUint8(m++,v.charCodeAt(0))),Array.from(u,v=>g.setUint8(m++,v.charCodeAt(0))),Array.from(h,v=>g.setUint8(m++,v.charCodeAt(0)));var y=new Uint8Array(p.byteLength+r.byteLength);return y.set(new Uint8Array(p),0),y.set(new Uint8Array(r),p.byteLength),y.buffer}decode(t,n){if(this._isArrayBuffer(t)){let r=this._binaryDecode(t);return n(r)}if(typeof t=="string"){const r=JSON.parse(t),[i,s,a,o,l]=r;
506return n({join_ref:i,ref:s,topic:a,event:o,payload:l})}return n({})}_binaryDecode(t){const n=new DataView(t),r=n.getUint8(0),i=new TextDecoder;switch(r){case this.KINDS.userBroadcast:return this._decodeUserBroadcast(t,n,i)}}_decodeUserBroadcast(t,n,r){const i=n.getUint8(1),s=n.getUint8(2),a=n.getUint8(3),o=n.getUint8(4);let l=this.HEADER_LENGTH+4;const u=r.decode(t.slice(l,l+i));l=l+i;const d=r.decode(t.slice(l,l+s));l=l+s;const h=r.decode(t.slice(l,l+a));l=l+a;const f=t.slice(l,t.byteLength),p=o===this.JSON_ENCODING?JSON.parse(r.decode(f)):f,g={type:this.BROADCAST_EVENT,event:d,payload:p};return a>0&&(g.meta=JSON.parse(h)),{join_ref:null,ref:null,topic:u,event:this.BROADCAST_EVENT,payload:g}}_isArrayBuffer(t){var n;return t instanceof ArrayBuffer||((n=t==null?void 0:t.constructor)===null||n===void 0?void 0:n.name)==="ArrayBuffer"}_pick(t,n){return!t||typeof t!="object"?{}:Object.fromEntries(Object.entries(t).filter(([r])=>n.includes(r)))}}class TB{constructor(t,n){this.callback=t,this.timerCalc=n,this.timer=void 0,this.tries=0,this.callback=t,this.timerCalc=n}reset(){this.tries=0,clearTimeout(this.timer),this.timer=void 0}scheduleTimeout(){clearTimeout(this.timer),this.timer=setTimeout(()=>{this.tries=this.tries+1,this.callback()},this.timerCalc(this.tries+1))}}var ft;(function(e){e.abstime="abstime",e.bool="bool",e.date="date",e.daterange="daterange",e.float4="float4",e.float8="float8",e.int2="int2",e.int4="int4",e.int4range="int4range",e.int8="int8",e.int8range="int8range",e.json="json",e.jsonb="jsonb",e.money="money",e.numeric="numeric",e.oid="oid",e.reltime="reltime",e.text="text",e.time="time",e.timestamp="timestamp",e.timestamptz="timestamptz",e.timetz="timetz",e.tsrange="tsrange",e.tstzrange="tstzrange"})(ft||(ft={}));const LP=(e,t,n={})=>{var r;const i=(r=n.skipTypes)!==null&&r!==void 0?r:[];return t?Object.keys(t).reduce((s,a)=>(s[a]=Ele(a,e,t,i),s),{}):{}},Ele=(e,t,n,r)=>{const i=t.find(o=>o.name===e),s=i==null?void 0:i.type,a=n[e];return s&&!r.includes(s)?NB(s,a):Uk(a)},NB=(e,t)=>{if(e.charAt(0)==="_"){const n=e.slice(1,e.length);return Ale(t,n)}switch(e){case ft.bool:return Tle(t);case ft.float4:case ft.float8:case ft.int2:case ft.int4:case ft.int8:case ft.numeric:case ft.oid:return Nle(t);case ft.json:case ft.jsonb:return Cle(t);case ft.timestamp:return Ple(t);case ft.abstime:case ft.date:case ft.daterange:case ft.int4range:case ft.int8range:case ft.money:case ft.reltime:case ft.text:case ft.time:case ft.timestamptz:case ft.timetz:case ft.tsrange:case ft.tstzrange:return Uk(t);default:return Uk(t)}},Uk=e=>e,Tle=e=>{switch(e){case"t":return!0;case"f":return!1;default:return e}},Nle=e=>{if(typeof e=="string"){const t=parseFloat(e);if(!Number.isNaN(t))return t}return e},Cle=e=>{if(typeof e=="string")try{return JSON.parse(e)}catch{return e}return e},Ale=(e,t)=>{if(typeof e!="string")return e;const n=e.length-1,r=e[n];if(e[0]==="{"&&r==="}"){let s;const a=e.slice(1,n);try{s=JSON.parse("["+a+"]")}catch{s=a?a.split(","):[]}return s.map(o=>NB(t,o))}return e},Ple=e=>typeof e=="string"?e.replace(" ","T"):e,CB=e=>{const t=new URL(e);return t.protocol=t.protocol.replace(/^ws/i,"http"),t.pathname=t.pathname.replace(/\/+$/,"").replace(/\/socket\/websocket$/i,"").replace(/\/socket$/i,"").replace(/\/websocket$/i,""),t.pathname===""||t.pathname==="/"?t.pathname="/api/broadcast":t.pathname=t.pathname+"/api/broadcast",t.href};class Y0{constructor(t,n,r={},i=Vk){this.channel=t,this.event=n,this.payload=r,this.timeout=i,this.sent=!1,this.timeoutTimer=void 0,this.ref="",this.receivedResp=null,this.recHooks=[],this.refEvent=null}resend(t){this.timeout=t,this._cancelRefEvent(),this.ref="",this.refEvent=null,this.receivedResp=null,this.sent=!1,this.send()}send(){this._hasReceived("timeout")||(this.startTimeout(),this.sent=!0,this.channel.socket.push({topic:this.channel.topic,event:this.event,payload:this.payload,ref:this.ref,join_ref:this.channel._joinRef()}))}updatePayload(t){this.payload=Object.assign(Object.assign({},this.payload),t)}receive(t,n){var r;return this._hasReceived(t)&&n((r=this.receivedResp)===null||r===void 0?void 0:r.response),this.recHo
506oks.push({status:t,callback:n}),this}startTimeout(){if(this.timeoutTimer)return;this.ref=this.channel.socket._makeRef(),this.refEvent=this.channel._replyEventName(this.ref);const t=n=>{this._cancelRefEvent(),this._cancelTimeout(),this.receivedResp=n,this._matchReceive(n)};this.channel._on(this.refEvent,{},t),this.timeoutTimer=setTimeout(()=>{this.trigger("timeout",{})},this.timeout)}trigger(t,n){this.refEvent&&this.channel._trigger(this.refEvent,{status:t,response:n})}destroy(){this._cancelRefEvent(),this._cancelTimeout()}_cancelRefEvent(){this.refEvent&&this.channel._off(this.refEvent,{})}_cancelTimeout(){clearTimeout(this.timeoutTimer),this.timeoutTimer=void 0}_matchReceive({status:t,response:n}){this.recHooks.filter(r=>r.status===t).forEach(r=>r.callback(n))}_hasReceived(t){return this.receivedResp&&this.receivedResp.status===t}}var FP;(function(e){e.SYNC="sync",e.JOIN="join",e.LEAVE="leave"})(FP||(FP={}));class Rh{constructor(t,n){this.channel=t,this.state={},this.pendingDiffs=[],this.joinRef=null,this.enabled=!1,this.caller={onJoin:()=>{},onLeave:()=>{},onSync:()=>{}};const r=(n==null?void 0:n.events)||{state:"presence_state",diff:"presence_diff"};this.channel._on(r.state,{},i=>{const{onJoin:s,onLeave:a,onSync:o}=this.caller;this.joinRef=this.channel._joinRef(),this.state=Rh.syncState(this.state,i,s,a),this.pendingDiffs.forEach(l=>{this.state=Rh.syncDiff(this.state,l,s,a)}),this.pendingDiffs=[],o()}),this.channel._on(r.diff,{},i=>{const{onJoin:s,onLeave:a,onSync:o}=this.caller;this.inPendingSyncState()?this.pendingDiffs.push(i):(this.state=Rh.syncDiff(this.state,i,s,a),o())}),this.onJoin((i,s,a)=>{this.channel._trigger("presence",{event:"join",key:i,currentPresences:s,newPresences:a})}),this.onLeave((i,s,a)=>{this.channel._trigger("presence",{event:"leave",key:i,currentPresences:s,leftPresences:a})}),this.onSync(()=>{this.channel._trigger("presence",{event:"sync"})})}static syncState(t,n,r,i){const s=this.cloneDeep(t),a=this.transformState(n),o={},l={};return this.map(s,(u,d)=>{a[u]||(l[u]=d)}),this.map(a,(u,d)=>{const h=s[u];if(h){const f=d.map(y=>y.presence_ref),p=h.map(y=>y.presence_ref),g=d.filter(y=>p.indexOf(y.presence_ref)<0),m=h.filter(y=>f.indexOf(y.presence_ref)<0);g.length>0&&(o[u]=g),m.length>0&&(l[u]=m)}else o[u]=d}),this.syncDiff(s,{joins:o,leaves:l},r,i)}static syncDiff(t,n,r,i){const{joins:s,leaves:a}={joins:this.transformState(n.joins),leaves:this.transformState(n.leaves)};return r||(r=()=>{}),i||(i=()=>{}),this.map(s,(o,l)=>{var u;const d=(u=t[o])!==null&&u!==void 0?u:[];if(t[o]=this.cloneDeep(l),d.length>0){const h=t[o].map(p=>p.presence_ref),f=d.filter(p=>h.indexOf(p.presence_ref)<0);t[o].unshift(...f)}r(o,d,l)}),this.map(a,(o,l)=>{let u=t[o];if(!u)return;const d=l.map(h=>h.presence_ref);u=u.filter(h=>d.indexOf(h.presence_ref)<0),t[o]=u,i(o,u,l),u.length===0&&delete t[o]}),t}static map(t,n){return Object.getOwnPropertyNames(t).map(r=>n(r,t[r]))}static transformState(t){return t=this.cloneDeep(t),Object.getOwnPropertyNames(t).reduce((n,r)=>{const i=t[r];return"metas"in i?n[r]=i.metas.map(s=>(s.presence_ref=s.phx_ref,delete s.phx_ref,delete s.phx_ref_prev,s)):n[r]=i,n},{})}static cloneDeep(t){return JSON.parse(JSON.stringify(t))}onJoin(t){this.caller.onJoin=t}onLeave(t){this.caller.onLeave=t}onSync(t){this.caller.onSync=t}inPendingSyncState(){return!this.joinRef||this.joinRef!==this.channel._joinRef()}}var BP;(function(e){e.ALL="*",e.INSERT="INSERT",e.UPDATE="UPDATE",e.DELETE="DELETE"})(BP||(BP={}));var Ih;(function(e){e.BROADCAST="broadcast",e.PRESENCE="presence",e.POSTGRES_CHANGES="postgres_changes",e.SYSTEM="system"})(Ih||(Ih={}));var vs;(function(e){e.SUBSCRIBED="SUBSCRIBED",e.TIMED_OUT="TIMED_OUT",e.CLOSED="CLOSED",e.CHANNEL_ERROR="CHANNEL_ERROR"})(vs||(vs={}));class _c{constructor(t,n={config:{}},r){var i,s;if(this.topic=t,this.params=n,this.socket=r,this.bindings={},this.state=Jt.closed,this.joinedOnce=!1,this.pushBuffer=[],this.subTopic=t.replace(/^realtime:/i,""),this.params.config=Object.assign({broadcast:{ack:!1,self:!1},presence:{key:"",enabled:!1},private:!1},n.config),this.timeout=this.socket.timeout,this.joinPush=new Y0(this,xi.join,this.params,this.timeout),this.rejoinTimer=new TB(()=>this._rejoinUntilConnected(),this.socket.reconnectAfterMs),this.joinPush.receive("ok",()=>{this.state=Jt.joined,this.rejoinTimer.reset(),this.pushBuffer.forEach(a=>a.send()),this.pushBuffer=[]}),this._onClose(()=>{this.rejoinTimer.reset(),this.socket.log("channel",`close ${this.topic} ${this._joinRef()}`),this.state=Jt.closed,this.socket._remove(this)}),this._onError(a=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,a),this.state=Jt.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("timeout",()=>{this._isJoining()&&(this.socket.log("channel",`timeout ${this.topic}`,this.joinPush.timeout),this.state=Jt.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("error",a=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,a),this.state=Jt.errored,this.rejoinTimer.scheduleTimeout())}),this._on(xi.reply,{},(a,o)=>{this._trigger(this._replyEventName(o),a)}),this.presence=new Rh(this),this.broadcastEndpointURL=CB(this.socket.endPoint),this.private=this.params.config.private||!1,!this.private&&(!((s=(i=this.params.config)===null||i===void 0?void 0:i.broadcast)===null||s===void 0)&&s.replay))throw`tried to use replay on public channel '${this.topic}'. It must be a private channel.`}subscribe(t,n=this.timeout){var r,i,s;if(this.socket.isConnected()||this.socket.connect(),this.state==Jt.closed){const{config:{broadcast:a,presence:o,private:l}}=this.params,u=(i=(r=this.bindings.postgres_changes)===null||r===void 0?void 0:r.map(p=>p.filter))!==null&&i!==void 0?i:[],d=!!this.bindings[Ih.PRESENCE]&&this.bindings[Ih.PRESENCE].length>0||((s=this.params.config.presence)===null||s===void 0?void 0:s.enabled)===!0,h={},f={broadcast:a,presence:Object.assign(Object.assign({},o),{enabled:d}),postgres_changes:u,private:l};this.socket.accessTokenValue&&(h.access_token=this.socket.accessTokenValue),this._onError(p=>t==null?void 0:t(vs.CHANNEL_ERROR,p)),this._onClose(()=>t==null?void 0:t(vs.CLOSED)),this.updateJoinPayload(Object.assign({config:f},h)),this.joinedOnce=!0,this._rejoin(n),this.joinPush.receive("ok",async({postgres_changes:p})=>{var g;if(this.socket._isManualToken()||this.socket.setAuth(),p===void 0){t==null||t(vs.SUBSCRIBED);return}else{const m=this.bindings.postgres_changes,y=(g=m==null?void 0:m.length)!==null&&g!==void 0?g:0,v=[];for(let x=0;x<y;x++){const b=m[x],{filter:{event:S,schema:k,table:j,filter:_}}=b,E=p&&p[x];if(E&&E.event===S&&_c.isFilterValueEqual(E.schema,k)&&_c.isFilterValueEqual(E.table,j)&&_c.isFilterValueEqual(E.filter,_))v.pu
506sh(Object.assign(Object.assign({},b),{id:E.id}));else{this.unsubscribe(),this.state=Jt.errored,t==null||t(vs.CHANNEL_ERROR,new Error("mismatch between server and client bindings for postgres changes"));return}}this.bindings.postgres_changes=v,t&&t(vs.SUBSCRIBED);return}}).receive("error",p=>{this.state=Jt.errored,t==null||t(vs.CHANNEL_ERROR,new Error(JSON.stringify(Object.values(p).join(", ")||"error")))}).receive("timeout",()=>{t==null||t(vs.TIMED_OUT)})}return this}presenceState(){return this.presence.state}async track(t,n={}){return await this.send({type:"presence",event:"track",payload:t},n.timeout||this.timeout)}async untrack(t={}){return await this.send({type:"presence",event:"untrack"},t)}on(t,n,r){return this.state===Jt.joined&&t===Ih.PRESENCE&&(this.socket.log("channel",`resubscribe to ${this.topic} due to change in presence callbacks on joined channel`),this.unsubscribe().then(async()=>await this.subscribe())),this._on(t,n,r)}async httpSend(t,n,r={}){var i;if(n==null)return Promise.reject("Payload is required for httpSend()");const s={apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"};this.socket.accessTokenValue&&(s.Authorization=`Bearer ${this.socket.accessTokenValue}`);const a={method:"POST",headers:s,body:JSON.stringify({messages:[{topic:this.subTopic,event:t,payload:n,private:this.private}]})},o=await this._fetchWithTimeout(this.broadcastEndpointURL,a,(i=r.timeout)!==null&&i!==void 0?i:this.timeout);if(o.status===202)return{success:!0};let l=o.statusText;try{const u=await o.json();l=u.error||u.message||l}catch{}return Promise.reject(new Error(l))}async send(t,n={}){var r,i;if(!this._canPush()&&t.type==="broadcast"){console.warn("Realtime send() is automatically falling back to REST API. This behavior will be deprecated
506in the future. Please use httpSend() explicitly for REST delivery.");const{event:s,payload:a}=t,o={apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"};this.socket.accessTokenValue&&(o.Authorization=`Bearer ${this.socket.accessTokenValue}`);const l={method:"POST",headers:o,body:JSON.stringify({messages:[{topic:this.subTopic,event:s,payload:a,private:this.private}]})};try{const u=await this._fetchWithTimeout(this.broadcastEndpointURL,l,(r=n.timeout)!==null&&r!==void 0?r:this.timeout);return await((i=u.body)===null||i===void 0?void 0:i.cancel()),u.ok?"ok":"error"}catch(u){return u.name==="AbortError"?"timed out":"error"}}else return new Promise(s=>{var a,o,l;const u=this._push(t.type,t,n.timeout||this.timeout);t.type==="broadcast"&&!(!((l=(o=(a=this.params)===null||a===void 0?void 0:a.config)===null||o===void 0?void 0:o.broadcast)===null||l===void 0)&&l.ack)&&s("ok"),u.receive("ok",()=>s("ok")),u.receive("error",()=>s("error")),u.receive("timeout",()=>s("timed out"))})}updateJoinPayload(t){this.joinPush.updatePayload(t)}unsubscribe(t=this.timeout){this.state=Jt.leaving;const n=()=>{this.socket.log("channel",`leave ${this.topic}`),this._trigger(xi.close,"leave",this._joinRef())};this.joinPush.destroy();let r=null;return new Promise(i=>{r=new Y0(this,xi.leave,{},t),r.receive("ok",()=>{n(),i("ok")}).receive("timeout",()=>{n(),i("timed out")}).receive("error",()=>{i("error")}),r.send(),this._canPush()||r.trigger("ok",{})}).finally(()=>{r==null||r.destroy()})}teardown(){this.pushBuffer.forEach(t=>t.destroy()),this.pushBuffer=[],this.rejoinTimer.reset(),this.joinPush.destroy(),this.state=Jt.closed,this.bindings={}}async _fetchWithTimeout(t,n,r){const i=new AbortController,s=setTimeout(()=>i.abort(),r),a=await this.socket.fetch(t,Object.assign(Object.assign({},n),{signal:i.signal}));return clearTimeout(s),a}_push(t,n,r=this.timeout){if(!this.joinedOnce)throw`tried to push '${t}' to '${this.topic}' before joining. Use channel.subscribe() before pushing events`;let i=new Y0(this,t,n,r);return this._canPush()?i.send():this._addToPushBuffer(i),i}_addToPushBuffer(t){if(t.startTimeout(),this.pushBuffer.push(t),this.pushBuffer.length>jle){const n=this.pushBuffer.shift();n&&(n.destroy(),this.socket.log("channel",`discarded push due to buffer overflow: ${n.event}`,n.payload))}}_onMessage(t,n,r){return n}_isMember(t){return this.topic===t}_joinRef(){return this.joinPush.ref}_trigger(t,n,r){var i,s;const a=t.toLocaleLowerCase(),{close:o,error:l,leave:u,join:d}=xi;if(r&&[o,l,u,d].indexOf(a)>=0&&r!==this._joinRef())return;let f=this._onMessage(a,n,r);if(n&&!f)throw"channel onMessage callbacks must return the payload, modified or unmodified";["insert","update","delete"].includes(a)?(i=this.bindings.postgres_changes)===null||i===void 0||i.filter(p=>{var g,m,y;return((g=p.filter)===null||g===void 0?void 0:g.event)==="*"||((y=(m=p.filter)===null||m===void 0?void 0:m.event)===null||y===void 0?void 0:y.toLocaleLowerCase())===a}).map(p=>p.callback(f,r)):(s=this.bindings[a])===null||s===void 0||s.filter(p=>{var g,m,y,v,x,b;if(["broadcast","presence","postgres_changes"].includes(a))if("id"in p){const S=p.id,k=(g=p.filter)===null||g===void 0?void 0:g.event;return S&&((m=n.ids)===null||m===void 0?void 0:m.includes(S))&&(k==="*"||(k==null?void 0:k.toLocaleLowerCase())===((y=n.data)===null||y===void 0?void 0:y.type.toLocaleLowerCase()))}else{const S=(x=(v=p==null?void 0:p.filter)===null||v===void 0?void 0:v.event)===null||x===void 0?void 0:x.toLocaleLowerCase();return S==="*"||S===((b=n==null?void 0:n.event)===null||b===void 0?void 0:b.toLocaleLowerCase())}else return p.type.toLocaleLowerCase()===a}).map(p=>{if(typeof f=="object"&&"ids"in f){const g=f.data,{schema:m,table:y,commit_timestamp:v,type:x,errors:b}=g;f=Object.assign(Object.assign({},{schema:m,table:y,commit_timestamp:v,eventType:x,new:{},old:{},errors:b}),this._getPayloadRecords(g))}p.callback(f,r)})}_isClosed(){return this.state===Jt.closed}_isJoined(){return this.state===Jt.joined}_isJoining(){return this.state===Jt.joining}_isLeaving(){return this.state===Jt.leaving}_replyEventName(t){return`chan_reply_${t}`}_on(t,n,r){const i=t.toLocaleLowerCase(),s={type:i,filter:n,callback:r};return this.bindings[i]?this.bindings[i].push(s):this.bindings[i]=[s],this}_off(t,n){const r=t.toLocaleLowerCase();return this.bindings[r]&&(this.bindings[r]=this.bindings[r].filter(i=>{var s;return!(((s=i.type)===null||s===void 0?void 0:s.toLocaleLowerCase())===r&&_c.isEqual(i.filter,n))})),this}static isEqual(t,n){if(Object.keys(t).length!==Object.keys(n).length)return!1;for(const r in t)if(t[r]!==n[r])return!1;return!0}static isFilterValueEqual(t,n){return(t??void 0)===(n??void 0)}_rejoinUntilConnected(){this.rejoinTimer.scheduleTimeout(),this.socket.isConnected()&&this._rejoin()}_onClose(t){this._on(xi.close,{},t)}_onError(t){this._on(xi.error,{},n=>t(n))}_canPush(){return this.socket.isConnected()&&this._isJoined()}_rejoin(t=this.timeout){this._isLeaving()||(this.socket._leaveOpenTopic(this.topic),this.state=Jt.joining,this.joinPush.resend(t))}_getPayloadRecords(t){const n={new:{},old:{}};return(t.type==="INSERT"||t.type==="UPDATE")&&(n.new=LP(t.columns,t.record)),(t.type==="UPDATE"||t.type==="DELETE")&&(n.old=LP(t.columns,t.old_record)),n}}const X0=()=>{},Mm={HEARTBEAT_INTERVAL:25e3,RECONNECT_DELAY:10,HEARTBEAT_TIMEOUT_FALLBACK:100},Ole=[1e3,2e3,5e3,1e4],Rle=1e4,Ile=` 507 addEventListener("message", (e) => { 508 if (e.data.event === "start") { 509 setInterval(() => postMessage({ event: "keepAlive" }), e.data.interval); 510 } 511 });`;class Mle{constructor(t,n){var r;if(this.accessTokenValue=null,this.apiKey=null,this._manuallySetToken=!1,this.channels=new Array,this.endPoint="",this.httpEndpoint="",this.headers={},this.params={},this.timeout=Vk,this.transport=null,this.heartbeatIntervalMs=Mm.HEARTBEAT_INTERVAL,this.heartbeatTimer=void 0,this.pendingHeartbeatRef=null,this.heartbeatCallback=X0,this.ref=0,this.reconnectTimer=null,this.vsn=DP,this.logger=X0,this.conn=null,this.sendBuffer=[],this.serializer
511=new _le,this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.accessToken=null,this._connectionState="disconnected",this._wasManualDisconnect=!1,this._authPromise=null,this._heartbeatSentAt=null,this._resolveFetch=i=>i?(...s)=>i(...s):(...s)=>fetch(...s),!(!((r=n==null?void 0:n.params)===null||r===void 0)&&r.apikey))throw new Error("API key is required to connect to Realtime");this.apiKey=n.params.apikey,this.endPoint=`${t}/${qk.websocket}`,this.httpEndpoint=CB(t),this._initializeOptions(n),this._setupReconnectionTimer(),this.fetch=this._resolveFetch(n==null?void 0:n.fetch)}connect(){if(!(this.isConnecting()||this.isDisconnecting()||this.conn!==null&&this.isConnected())){if(this._setConnectionState("connecting"),this.accessToken&&!this._authPromise&&this._setAuthSafely("connect"),this.transport)this.conn=new this.transport(this.endpointURL());else try{this.conn=xle.createWebSocket(this.endpointURL())}catch(t){this._setConnectionState("disconnected");const n=t.message;throw n.includes("Node.js")?new Error(`${n} 512 513To use Realtime in Node.js, you need to provide a WebSocket implementation: 514 515Option 1: Use Node.js 22+ which has native WebSocket support 516Option 2: Install and provide the "ws" package: 517 518 npm install ws 519 520 import ws from "ws" 521 const client = new RealtimeClient(url, { 522 ...options, 523 transport: ws 524 })`):new Error(`WebSocket not available: ${n}`)}this._setupConnectionHandlers()}}endpointURL(){return this._appendParams(this.endPoint,Object.assign({},this.params,{vsn:this.vsn}))}disconnect(t,n){if(!this.isDisconnecting())if(this._setConnectionState("disconnecting",!0),this.conn){const r=setTimeout(()=>{this._setConnectionState("disconnected")},100);this.conn.onclose=()=>{clearTimeout(r),this._setConnectionState("disconnected")},typeof this.conn.close=="function"&&(t?this.conn.close(t,n??""):this.conn.close()),this._teardownConnection()}else this._setConnectionState("disconnected")}getChannels(){return this.channels}async removeChannel(t){const n=await t.unsubscribe();return this.channels.length===0&&this.disconnect(),n}async removeAllChannels(){const t=await Promise.all(this.channels.map(n=>n.unsubscribe()));return this.channels=[],this.disconnect(),t}log(t,n,r){this.logger(t,n,r)}connectionState(){switch(this.conn&&this.conn.readyState){case ma.connecting:return Do.Connecting;case ma.open:return Do.Open;case ma.closing:return Do.Closing;default:return Do.Closed}}isConnected(){return this.connectionState()===Do.Open}isConnecting(){return this._connectionState==="connecting"}isDisconnecting(){return this._connectionState==="disconnecting"}channel(t,n={config:{}}){const r=`realtime:${t}`,i=this.getChannels().find(s=>s.topic===r);if(i)return i;{const s=new _c(`realtime:${t}`,n,this);return this.channels.push(s),s}}push(t){const{topic:n,event:r,payload:i,ref:s}=t,a=()=>{this.encode(t,o=>{var l;(l=this.conn)===null||l===void 0||l.send(o)})};this.log("push",`${n} ${r} (${s})`,i),this.isConnected()?a():this.sendBuffer.push(a)}async setAuth(t=null){this._authPromise=this._performAuth(t);try{await this._authPromise}finally{this._authPromise=null}}_isManualToken(){return this._manuallySetToken}async sendHeartbeat(){var t;if(!this.isConnected()){try{this.heartbeatCallback("disconnected")}catch(n){this.log("error","error in heartbeat callback",n)}return}if(this.pendingHeartbeatRef){this.pendingHeartbeatRef=null,this._heartbeatSentAt=null,this.log("transport","heartbeat timeout. Attempting to re-establish connection");try{this.heartbeatCallback("timeout")}catch(n){this.log("error","error in heartbeat callback",n)}this._wasManualDisconnect=!1,(t=this.conn)===null||t===void 0||t.close(Sle,"heartbeat timeout"),setTimeout(()=>{var n;this.isConnected()||(n=this.reconnectTimer)===null||n===void 0||n.scheduleTimeout()},Mm.HEARTBEAT_TIMEOUT_FALLBACK);return}this._heartbeatSentAt=Date.now(),this.pendingHeartbeatRef=this._makeRef(),this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.pendingHeartbeatRef});try{this.heartbeatCallback("sent")}catch(n){this.log("error","error in heartbeat callback",n)}this._setAuthSafely("heartbeat")}onHeartbeat(t){this.heartbeatCallback=t}flushSendBuffer(){this.isConnected()&&this.sendBuffer.length>0&&(this.sendBuffer.forEach(t=>t()),this.sendBuffer=[])}_makeRef(){let t=this.ref+1;return t===this.ref?this.ref=0:this.ref=t,this.ref.toString()}_leaveOpenTopic(t){let n=this.channels.find(r=>r.topic===t&&(r._isJoined()||r._isJoining()));n&&(this.log("transport",`leaving duplicate topic "${t}"`),n.unsubscribe())}_remove(t){this.channels=this.channels.filter(n=>n.topic!==t.topic)}_onConnMessage(t){this.decode(t.data,n=>
524{if(n.topic==="phoenix"&&n.event==="phx_reply"&&n.ref&&n.ref===this.pendingHeartbeatRef){const u=this._heartbeatSentAt?Date.now()-this._heartbeatSentAt:void 0;try{this.heartbeatCallback(n.payload.status==="ok"?"ok":"error",u)}catch(d){this.log("error","error in heartbeat callback",d)}this._heartbeatSentAt=null,this.pendingHeartbeatRef=null}const{topic:r,event:i,payload:s,ref:a}=n,o=a?`(${a})`:"",l=s.status||"";this.log("receive",`${l} ${r} ${i} ${o}`.trim(),s),this.channels.filter(u=>u._isMember(r)).forEach(u=>u._trigger(i,s,a)),this._triggerStateCallbacks("message",n)})}_clearTimer(t){var n;t==="heartbeat"&&this.heartbeatTimer?(clearInterval(this.heartbeatTimer),this.heartbeatTimer=void 0):t==="reconnect"&&((n=this.reconnectTimer)===null||n===void 0||n.reset())}_clearAllTimers(){this._clearTimer("heartbeat"),this._clearTimer("reconnect")}_setupConnectionHandlers(){this.conn&&("binaryType"in this.conn&&(this.conn.binaryType="arraybuffer"),this.conn.onopen=()=>this._onConnOpen(),this.conn.onerror=t=>this._onConnError(t),this.conn.onmessage=t=>this._onConnMessage(t),this.conn.onclose=t=>this._onConnClose(t),this.conn.readyState===ma.open&&this._onConnOpen())}_teardownConnection(){if(this.conn){if(this.conn.readyState===ma.open||this.conn.readyState===ma.connecting)try{this.conn.close()}catch(t){this.log("error","Error closing connection",t)}this.conn.onopen=null,this.conn.onerror=null,this.conn.onmessage=null,this.conn.onclose=null,this.conn=null}this._clearAllTimers(),this._terminateWorker(),this.channels.forEach(t=>t.teardown())}_onConnOpen(){this._setConnectionState("connected"),this.log("transport",`connected to ${this.endpointURL()}`),(this._authPromise||(this.accessToken&&!this.accessTokenValue?this.setAuth():Promise.resolve())).then(()=>{this.flushSendBuffer()}).catch(n=>{this.log("error","error waiting for auth on connect",n),this.flushSendBuffer()}),this._clearTimer("reconnect"),this.worker?this.workerRef||this._startWorkerHeartbeat():this._startHeartbeat(),this._triggerStateCallbacks("open")}_startHeartbeat(){this.heartbeatTimer&&clearInterval(this.heartbeatTimer),this.heartbeatTimer=setInterval(()=>this.sendHeartbeat(),this.heartbeatIntervalMs)}_startWorkerHeartbeat(){this.workerUrl?this.log("worker",`starting worker for from ${this.workerUrl}`):this.log("worker","starting default worker");const t=this._workerObjectUrl(this.workerUrl);this.workerRef=new Worker(t),this.workerRef.onerror=n=>{this.log("worker","worker error",n.message),this._terminateWorker()},this.workerRef.onmessage=n=>{n.data.event==="keepAlive"&&this.sendHeartbeat()},this.workerRef.postMessage({event:"start",interval:this.heartbeatIntervalMs})}_terminateWorker(){this.workerRef&&(this.log("worker","terminating worker"),this.workerRef.terminate(),this.workerRef=void 0)}_onConnClose(t){var n;this._setConnectionState("disconnected"),this.log("transport","close",t),this._triggerChanError(),this._clearTimer("heartbeat"),this._wasManualDisconnect||(n=this.reconnectTimer)===null||n===void 0||n.scheduleTimeout(),this._triggerStateCallbacks("close",t)}_onConnError(t){this._setConnectionState("disconnected"),this.log("transport",`${t}`),this._triggerChanError(),this._triggerStateCallbacks("error",t);try{this.heartbeatCallback("error")}catch(n){this.log("error","error in heartbeat callback",n)}}_triggerChanError(){this.channels.forEach(t=>t._trigger(xi.error))}_appendParams(t,n){if(Object.keys(n).length===0)return t;const r=t.match(/\?/)?"&":"?",i=new URLSearchParams(n);return`${t}${r}${i}`}_workerObjectUrl(t){let n;if(t)n=t;else{const r=new Blob([Ile],{type:"application/javascript"});n=URL.createObjectURL(r)}return n}_setConnectionState(t,n=!1){this._connectionState=t,t==="connecting"?this._wasManualDisconnect=!1:t==="disconnecting"&&(this._wasManualDisconnect=n)}async _performAuth(t=null){let n,r=!1;if(t)n=t,r=!0;else if(this.accessToken)try{n=await this.accessToken()}catch(i){this.log("error","Error fetching access token from callback",i),n=this.accessTokenValue}else n=this.accessTokenValue;r?this._manuallySetToken=!0:this.accessToken&&(this._manuallySetToken=!1),this.accessTokenValue!=n&&(this.accessTokenValue=n,this.channels.forEac
524h(i=>{const s={access_token:n,version:wle};n&&i.updateJoinPayload(s),i.joinedOnce&&i._isJoined()&&i._push(xi.access_token,{access_token:n})}))}async _waitForAuthIfNeeded(){this._authPromise&&await this._authPromise}_setAuthSafely(t="general"){this._isManualToken()||this.setAuth().catch(n=>{this.log("error",`Error setting auth in ${t}`,n)})}_triggerStateCallbacks(t,n){try{this.stateChangeCallbacks[t].forEach(r=>{try{r(n)}catch(i){this.log("error",`error in ${t} callback`,i)}})}catch(r){this.log("error",`error triggering ${t} callbacks`,r)}}_setupReconnectionTimer(){this.reconnectTimer=new TB(async()=>{setTimeout(async()=>{await this._waitForAuthIfNeeded(),this.isConnected()||this.connect()},Mm.RECONNECT_DELAY)},this.reconnectAfterMs)}_initializeOptions(t){var n,r,i,s,a,o,l,u,d,h,f,p;switch(this.transport=(n=t==null?void 0:t.transport)!==null&&n!==void 0?n:null,this.timeout=(r=t==null?void 0:t.timeout)!==null&&r!==void 0?r:Vk,this.heartbeatIntervalMs=(i=t==null?void 0:t.heartbeatIntervalMs)!==null&&i!==void 0?i:Mm.HEARTBEAT_INTERVAL,this.worker=(s=t==null?void 0:t.worker)!==null&&s!==void 0?s:!1,this.accessToken=(a=t==null?void 0:t.accessToken)!==null&&a!==void 0?a:null,this.heartbeatCallback=(o=t==null?void 0:t.heartbeatCallback)!==null&&o!==void 0?o:X0,this.vsn=(l=t==null?void 0:t.vsn)!==null&&l!==void 0?l:DP,t!=null&&t.params&&(this.params=t.params),t!=null&&t.logger&&(this.logger=t.logger),(t!=null&&t.logLevel||t!=null&&t.log_level)&&(this.logLevel=t.logLevel||t.log_level,this.params=Object.assign(Object.assign({},this.params),{log_level:this.logLevel})),this.reconnectAfterMs=(u=t==null?void 0:t.reconnectAfterMs)!==null&&u!==void 0?u:g=>Ole[g-1]||Rle,this.vsn){case kle:this.encode=(d=t==null?void 0:t.encode)!==null&&d!==void 0?d:(g,m)=>m(JSON.stringify(g)),this.decode=(h=t==null?void 0:t.decode)!==null&&h!==void 0?h:(g,m)=>m(JSON.parse(g));break;case EB:this.encode=(f=t==null?void 0:t.encode)!==null&&f!==void 0?f:this.serializer.encode.bind(this.serializer),this.decode=(p=t==null?void 0:t.decode)!==null&&p!==void 0?p:this.serializer.decode.bind(this.serializer);break;default:throw new Error(`Unsupported serializer version: ${this.vsn}`)}if(this.worker){if(typeof window<"u"&&!window.Worker)throw new Error("Web Worker is not supported");this.workerUrl=t==null?void 0:t.workerUrl}}}var Sf=class extends Error{constructor(e,t){var n;super(e),this.name="IcebergError",this.status=t.status,this.icebergType=t.icebergType,this.icebergCode=t.icebergCode,this.details=t.details,this.isCommitStateUnknown=t.icebergType==="CommitStateUnknownException"||[500,502,504].includes(t.status)&&((n=t.icebergType)==null?void 0:n.includes("CommitState"))===!0}isNotFound(){return this.status===404}isConflict(){return this.status===409}isAuthenticationTimeout(){return this.status===419}};function $le(e,t,n){const r=new URL(t,e);if(n)for(const[i,s]of Object.entries(n))s!==void 0&&r.searchParams.set(i,s);return r.toString()}async function Dle(e){return!e||e.type==="none"?{}:e.type==="bearer"?{Authorization:`Bearer ${e.token}`}:e.type==="header"?{[e.name]:e.value}:e.type==="custom"?await e.getHeaders():{}}function Lle(e){const t=e.fetchImpl??globalThis.fetch;return{async request({method:n,path:r,query:i,body:s,headers:a}){const o=$le(e.baseUrl,r,i),l=await Dle(e.auth),u=await t(o,{method:n,headers:{...s?{"Content-Type":"application/json"}:{},...l,...a},body:s?JSON.stringify(s):void 0}),d=await u.text(),h=(u.headers.get("content-type")||"").includes("application/json"),f=h&&d?JSON.parse(d):d;if(!u.ok){const p=h?f:void 0,g=p==null?void 0:p.error;throw new Sf((g==null?void 0:g.message)??`Request failed with status ${u.status}`,{status:u.status,icebergType:g==null?void 0:g.type,icebergCode:g==null?void 0:g.code,details:p})}return{status:u.status,headers:u.headers,data:f}}}}function $m(e){return e.join("�")}var Fle=class{constructor(e,t=""){this.client=e,this.prefix=t}async listNamespaces(e){const t=e?{parent:$m(e.namespace)}:void 0;return(await this.client.request({method:"GET",path:`${this.prefix}/namespaces`,query:t})).data.namespaces.map(r=>({namespace:r}))}async createNamespace(e,t){const n={namespace:e.namespace,properties:t==null?void 0:t.properties};return(await this.client.request({method:"POST",path:`${this.prefix}/namespaces`,body:n})).data}async dropNamespace(e){await this.client.request({method:"DELETE",path:`${this.prefix}/namespaces/${$m(e.namespace)}`})}async loadNamespaceMetadata(e){return{properties:(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${$m(e.namespace)}`})).data.properties}}async namespaceExists(e){try{return await this.client.request({method:"HEAD",path:`${this.prefix}/namespaces/${$m(e.namespace)}`}),!0}catch(t){if(t instanceof Sf&&t.status===404)return!1;throw t}}async createNamespaceIfNotExists(e,t){try{return await this.createNamespace(e,t)}catch(n){if(n instanceof Sf&&n.status===409)return;throw n}}};function Kl(e){return e.join("�")}var Ble=class{constructor(e,t="",n){this.client=e,this.prefix=t,this.accessDelegation=n}async listTables(e){return(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${Kl(e.namespace)}/tables`})).data.identifiers}async createTable(e,t){const n={};return this.accessDelegation&&(n["X-Iceberg-Access-Delegation"]=this.accessDelegation),(await this.client.request({method:"POST",path:`${this.prefix}/namespaces/${Kl(e.namespace)}/tables`,body:t,headers:n})).data.metadata}async updateTable(e,t){const n=await this.client.request({method:"POST",path:`${this.prefix}/namespaces/${Kl(e.namespace)}/tables/${e.name}`,body:t});return{"metadata-location":n.data["metadata-location"],metadata:n.data.metadata}}async dropTable(e,t){await this.client.request({method:"DELETE",path:`${this.prefix}/namespaces/${Kl(e.namespace)}/tables/${e.name}`,query:{purgeRequested:String((t==null?void 0:t.purge)??!1)}})}async loadTable(e){const t={};return this.accessDelegation&&(t["X-Iceberg-Access-Delegation"]=this.accessDelegation),(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${Kl(e.namespace)}/tables/${e.name}`,headers:t})).data.metadata}async tableExists(e){const t={};this.accessDelegation&&(t["X-Iceberg-Access-Delegation"]=this.accessDelegation);try{return await this.client.request({method:"HEAD",path:`${this.prefix}/namespaces/${Kl(e.namespace)}/tables/${e.name}`,headers:t}),!0}catch(n){if(n instanceof Sf&&n.status===404)return!1;throw n}}async createTableIfNotExists(e,t){try{return await this.createTable(e,t)}catch(n){if(n instanceof Sf&&n.status===409)return await this.loadTable({namespace:e.namespace,name:t.name});throw n}}},Vle=class{constructor(e){var r;let t="v1";e.catalogName&&(t+=`/${e.catalogName}`);const n=e.baseUrl.endsWith("/")?e.baseUrl:`${e.baseUrl}/`;this.client=Lle({baseUrl:n,auth:e.auth,fetchImpl:e.fetch}),this.accessDelegation=(r=e.accessDelegation)==null?void 0:r.join(","),this.namespaceOps=new Fle(this.client,t),this.tableOps=new Ble(this.client,t,this.accessDelegation)}async listNamespaces(e){return this.namespaceOps.listNamespaces(e)}async createNamespace(e,t){return this.namespaceOps.createNamespace(e,t)}async dropNamespace(e){await this.namespaceOps.dropNamespace(e)}async loadNamespaceMetadata(e){return this.namespaceOps.loadNamespaceMetadata(e)}async listTables(e){return this.tableOps.listTables(e)}
524async createTable(e,t){return this.tableOps.createTable(e,t)}async updateTable(e,t){return this.tableOps.updateTable(e,t)}async dropTable(e,t){await this.tableOps.dropTable(e,t)}async loadTable(e){return this.tableOps.loadTable(e)}async namespaceExists(e){return this.namespaceOps.namespaceExists(e)}async tableExists(e){return this.tableOps.tableExists(e)}async createNamespaceIfNotExists(e,t){return this.namespaceOps.createNamespaceIfNotExists(e,t)}async createTableIfNotExists(e,t){return this.tableOps.createTableIfNotExists(e,t)}},Cx=class extends Error{constructor(e,t="storage",n,r){super(e),this.__isStorageError=!0,this.namespace=t,this.name=t==="vectors"?"StorageVectorsError":"StorageError",this.status=n,this.statusCode=r}};function Ax(e){return typeof e=="object"&&e!==null&&"__isStorageError"in e}var Dm=class extends Cx{constructor(e,t,n,r="storage"){super(e,r,t,n),this.name=r==="vectors"?"StorageVectorsApiError":"StorageApiError",this.status=t,this.statusCode=n}toJSON(){return{name:this.name,message:this.message,status:this.status,statusCode:this.statusCode}}},AB=class extends Cx{constructor(e,t,n="storage"){super(e,n),this.name=n==="vectors"?"StorageVectorsUnknownError":"StorageUnknownError",this.originalError=t}};const qle=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),Ule=e=>{if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Wk=e=>{if(Array.isArray(e))return e.map(n=>Wk(n));if(typeof e=="function"||e!==Object(e))return e;const t={};return Object.entries(e).forEach(([n,r])=>{const i=n.replace(/([-_][a-z])/gi,s=>s.toUpperCase().replace(/[-_]/g,""));t[i]=Wk(r)}),t},Wle=e=>!e||typeof e!="string"||e.length===0||e.length>100||e.trim()!==e||e.includes("/")||e.includes("\\")?!1:/^[\w!.\*'() &$@=;:+,?-]+$/.test(e);function jf(e){"@babel/helpers - typeof";return jf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},jf(e)}function zle(e,t){if(jf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(jf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Hle(e){var t=zle(e,"string");return jf(t)=="symbol"?t:t+""}function Kle(e,t,n){return(t=Hle(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function VP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ee(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?VP(Object(n),!0).forEach(function(r){Kle(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):VP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}const qP=e=>{var t;return e.msg||e.message||e.error_description||(typeof e.error=="string"?e.error:(t=e.error)===null||t===void 0?void 0:t.message)||JSON.stringify(e)},Gle=async(e,t,n,r)=>{if(e&&typeof e=="object"&&"status"in e&&"ok"in e&&typeof e.status=="number"&&!(n!=null&&n.noResolveJson)){const i=e,s=i.status||500;if(typeof i.json=="function")i.json().then(a=>{const o=(a==null?void 0:a.statusCode)||(a==null?void 0:a.code)||s+"";t(new Dm(qP(a),s,o,r))}).catch(()=>{if(r==="vectors"){const a=s+"";t(new Dm(i.statusText||`HTTP ${s} error`,s,a,r))}else{const a=s+"";t(new Dm(i.statusText||`HTTP ${s} error`,s,a,r))}});else{const a=s+"";t(new Dm(i.statusText||`HTTP ${s} error`,s,a,r))}}else t(new AB(qP(e),e,r))},Yle=(e,t,n,r)=>{const i={method:e,headers:(t==null?void 0:t.headers)||{}};return e==="GET"||e==="HEAD"||!r?Ee(Ee({},i),n):(Ule(r)?(i.headers=Ee({"Content-Type":"application/json"},t==null?void 0:t.headers),i.body=JSON.stringify(r)):i.body=r,t!=null&&t.duplex&&(i.duplex=t.duplex),Ee(Ee({},i),n))};async function Bd(e,t,n,r,i,s,a){return new Promise((o,l)=>{e(n,Yle(t,r,i,s)).then(u=>{if(!u.ok)throw u;if(r!=null&&r.noResolveJson)return u;if(a==="vectors"){const d=u.headers.get("content-type");if(!d||!d.includes("application/json"))return{}}return u.json()}).then(u=>o(u)).catch(u=>Gle(u,l,r,a))})}function Xle(e="storage"){return{get:async(t,n,r,i)=>Bd(t,"GET",n,r,i,void 0,e),post:async(t,n,r,i,s)=>Bd(t,"POST",n,i,s,r,e),put:async(t,n,r,i,s)=>Bd(t,"PUT",n,i,s,r,e),head:async(t,n,r,i)=>Bd(t,"HEAD",n,Ee(Ee({},r),{},{noResolveJson:!0}),i,void 0,e),remove:async(t,n,r,i,s)=>Bd(t,"DELETE",n,i,s,r,e)}}const Qle=Xle("storage"),{get:_f,post:Et,put:zk,head:Zle,remove:tT}=Qle;var dd=class{constructor(e,t={},n,r="storage"){this.shouldThrowOnError=!1,this.url=e,this.headers=t,this.fetch=qle(n),this.namespace=r}throwOnError(){return this.shouldThrowOnError=!0,this}async handleOperation(e){var t=this;try{return{data:await e(),error:null}}catch(n){if(t.shouldThrowOnError)throw n;if(Ax(n))return{data:null,error:n};throw n}}},Jle=class{constructor(e,t){this.downloadFn=e,this.shouldThrowOnError=t}then(e,t){return this.execute().then(e,t)}async execute(){var e=this;try{return{data:(await e.downloadFn()).body,error:null}}catch(t){if(e.shouldThrowOnError)throw t;if(Ax(t))return{data:null,error:t};throw t}}};let PB;PB=Symbol.toStringTag;var ece=class{constructor(e,t){this.downloadFn=e,this.shouldThrowOnError=t,this[PB]="BlobDownloadBuilder",this.promise=null}asStream(){return new Jle(this.downloadFn,this.shouldThrowOnError)}then(e,t){return this.getPromise().then(e,t)}catch(e){return this.getPromise().catch(e)}finally(e){return this.getPromise().finally(e)}getPromise(){return this.promise||(this.promise=this.execute()),this.promise}async execute(){var e=this;try{return{data:await(await e.downloadFn()).blob(),error:null}}catch(t){if(e.shouldThrowOnError)throw t;if(Ax(t))return{data:null,error:t};throw t}}};const tce={limit:100,offset:0,sortBy:{column:"name",order:"asc"}},UP={cacheControl:"3600",contentType:"text/plain;charset=UTF-8",upsert:!1};var nce=class extends dd{constructor(e,t={},n,r){super(e,t,r,"storage"),this.bucketId=n}async uploadOrUpdate(e,t,n,r){var i=this;return i.handleOperation(async()=>{let s;const a=Ee(Ee({},UP),r);let o=Ee(Ee({},i.headers),e==="POST"&&{"x-upsert":String(a.upsert)});const l=a.metadata;typeof Blob<"u"&&n instanceof Blob?(s=new FormData,s.append("cacheControl",a.cacheControl),l&&s.append("metadata",i.encodeMetadata(l)),s.append("",n)):typeof FormData<"u"&&n instanceof FormData?(s=n,s.has("cacheControl")||s.append("cacheControl",a.cacheControl),l&&!s.has("metadata")&&s.append("metadata",i.encodeMetadata(l))):(s=n,o["cache-control"]=`max-age=${a.cacheControl}`,o["content-type"]=a.contentType,l&&(o["x-metadata"]=i.toBase64(i.encodeMetadata(l))),(typeof ReadableStream<"u"&&s instanceof ReadableStream||s&&typeof s=="object"&&"pipe"in s&&typeof s.pipe=="function")&&!a.duplex&&(a.duplex="half")),r!=null&&r.headers&&(o=Ee(Ee({},o),r.headers));const u=i._removeEmptyFolders(t),d=i._getFinalPath(u),h=await(e=="PUT"?zk:Et)(i.fetch,`${i.url}/object/${d}`,s,Ee({headers:o},a!=null&&a.duplex?{duplex:a.duplex}:{}));return{path:u,id:h.Id,fullPath:h.Key}})}async upload(e,t,n){return this.uploadOrUpdate("POST",e,t,n)}async uploadToSignedUrl(e,t,n,r){var i=this;const s=i._removeEmptyFolders(e),a=i._getFinalPath(s),o=new URL(i.url+`/object/upload/sign/${a}`);return o.searchParams.set("token",t),i.handleOperation(async()=>{let l;const u=Ee({upsert:UP.upsert},r),d=Ee(Ee({},i.headers),{"x-upsert":String(u.upsert)});return typeof Blob<"u"&&n instanceof Blob?(l=new FormData,l.append("cacheControl",u.cacheControl),l.append("",n)):typeof FormData<"u"&&n instanceof FormData?(l=n,l.append("cacheControl",u.cacheControl)):(l=n,d["cache-control"]=`max-age=${u.cacheControl}`,d["content-type"]=u.contentType),{path:s,fullPath:(await zk(i.fetch,o.toString(),l,{headers:d})).Key}})}async createSignedUploadUrl(e,t){var n=this;return n.handleOperation(async()=>{let r=n._getFinalPath(e);const i=Ee({},n.headers);t!=null&&t.upsert&&(i["x-upsert"]="true");const s=await Et(n.fetch,`${n.url}/object/upload/sign/${r}`,{},{headers:i}),a=new URL(n.url+s.url),o=a.searchParams.get("token");if(!o)throw new Cx("No token returned by API");return{signedUrl:a.toString(),path:e,token:o}})}async update(e,t,n){return this.uploadOrUpdate("PUT",e,t,n)}async move(e,t,n){var r=this;return r.handleOperation(async()=>await Et(r.fetch,`${r.url}/object/move`,{bucketId:r.bucketId,sourceKey:e,destinationKey:t,de
524stinationBucket:n==null?void 0:n.destinationBucket},{headers:r.headers}))}async copy(e,t,n){var r=this;return r.handleOperation(async()=>({path:(await Et(r.fetch,`${r.url}/object/copy`,{bucketId:r.bucketId,sourceKey:e,destinationKey:t,destinationBucket:n==null?void 0:n.destinationBucket},{headers:r.headers})).Key}))}async createSignedUrl(e,t,n){var r=this;return r.handleOperation(async()=>{let i=r._getFinalPath(e),s=await Et(r.fetch,`${r.url}/object/sign/${i}`,Ee({expiresIn:t},n!=null&&n.transform?{transform:n.transform}:{}),{headers:r.headers});const a=n!=null&&n.download?`&download=${n.download===!0?"":n.download}`:"";return{signedUrl:encodeURI(`${r.url}${s.signedURL}${a}`)}})}async createSignedUrls(e,t,n){var r=this;return r.handleOperation(async()=>{const i=await Et(r.fetch,`${r.url}/object/sign/${r.bucketId}`,{expiresIn:t,paths:e},{headers:r.headers}),s=n!=null&&n.download?`&download=${n.download===!0?"":n.download}`:"";return i.map(a=>Ee(Ee({},a),{},{signedUrl:a.signedURL?encodeURI(`${r.url}${a.signedURL}${s}`):null}))})}download(e,t){const n=typeof(t==null?void 0:t.transform)<"u"?"render/image/authenticated":"object",r=this.transformOptsToQueryString((t==null?void 0:t.transform)||{}),i=r?`?${r}`:"",s=this._getFinalPath(e),a=()=>_f(this.fetch,`${this.url}/${n}/${s}${i}`,{headers:this.headers,noResolveJson:!0});return new ece(a,this.shouldThrowOnError)}async info(e){var t=this;const n=t._getFinalPath(e);return t.handleOperation(async()=>Wk(await _f(t.fetch,`${t.url}/object/info/${n}`,{headers:t.headers})))}async exists(e){var t=this;const n=t._getFinalPath(e);try{return await Zle(t.fetch,`${t.url}/object/${n}`,{headers:t.headers}),{data:!0,error:null}}catch(r){if(t.shouldThrowOnError)throw r;if(Ax(r)&&r instanceof AB){const i=r.originalError;if([400,404].includes(i==null?void 0:i.status))return{data:!1,error:r}}throw r}}getPublicUrl(e,t){const n=this._getFinalPath(e),r=[],i=t!=null&&t.download?`download=${t.download===!0?"":t.download}`:"";i!==""&&r.push(i);const s=typeof(t==null?void 0:t.transform)<"u"?"render/image":"object",a=this.transformOptsToQueryString((t==null?void 0:t.transform)||{});a!==""&&r.push(a);let o=r.join("&");return o!==""&&(o=`?${o}`),{data:{publicUrl:encodeURI(`${this.url}/${s}/public/${n}${o}`)}}}async remove(e){var t=this;return t.handleOperation(async()=>await tT(t.fetch,`${t.url}/object/${t.bucketId}`,{prefixes:e},{headers:t.headers}))}async list(e,t,n){var r=this;return r.handleOperation(async()=>{const i=Ee(Ee(Ee({},tce),t),{},{prefix:e||""});return await Et(r.fetch,`${r.url}/object/list/${r.bucketId}`,i,{headers:r.headers},n)})}async listV2(e,t){var n=this;return n.handleOperation(async()=>{const r=Ee({},e);return await Et(n.fetch,`${n.url}/object/list-v2/${n.bucketId}`,r,{headers:n.headers},t)})}encodeMetadata(e){return JSON.stringify(e)}toBase64(e){return typeof Buffer<"u"?Buffer.from(e).toString("base64"):btoa(e)}_getFinalPath(e){return`${this.bucketId}/${e.replace(/^\/+/,"")}`}_removeEmptyFolders(e){return e.replace(/^\/|\/$/g,"").replace(/\/+/g,"/")}transformOptsToQueryString(e){const t=[];return e.width&&t.push(`width=${e.width}`),e.height&&t.push(`height=${e.height}`),e.resize&&t.push(`resize=${e.resize}`),e.format&&t.push(`format=${e.format}`),e.quality&&t.push(`quality=${e.quality}`),t.join("&")}};const rce="2.93.2",qp={"X-Client-Info":`storage-js/${rce}`};var ice=class extends dd{constructor(e,t={},n,r){const i=new URL(e);r!=null&&r.useNewHostname&&/supabase\.(co|in|red)$/.test(i.hostname)&&!i.hostname.includes("storage.supabase.")&&(i.hostname=i.hostname.replace("supabase.","storage.supabase."));const s=i.href.replace(/\/$/,""),a=Ee(Ee({},qp),t);super(s,a,n,"storage")}async listBuckets(e){var t=this;return t.handleOperation(async()=>{const n=t.listBucketOptionsToQueryString(e);return await _f(t.fetch,`${t.url}/bucket${n}`,{headers:t.headers})})}async getBucket(e){var t=this;return t.handleOperation(async()=>await _f(t.fetch,`${t.url}/bucket/${e}`,{headers:t.headers}))}async createBucket(e,t={public:!1}){var n=this;return n.handleOperation(async()=>await Et(n.fetch,`${n.url}/bucket`,{id:e,name:e,type:t.type,public:t.public,file_size_limit:t.fileSizeLimit,allowed_mime_types:t.allowedMimeTypes},{headers:n.headers}))}async updateBucket(e,t){var n=this;return n.handleOperation(async()=>await zk(n.fetch,`${n.url}/bucket/${e}`,{id:e,name:e,public:t.public,file_size_limit:t.fileSizeLimit,allowed_mime_types:t.allowedMimeTypes},{headers:n.headers}))}async emptyBucket(e){var t=this;return t.handleOperation(async()=>await Et(t.fetch,`${t.url}/bucket/${e}/empty`,{},{headers:t.headers}))}async deleteBucket(e){var t=this;return t.handleOperation(async()=>await tT(t.fetch,`${t.url}/bucket/${e}`,{},{headers:t.headers}))}listBucketOptionsToQueryString(e){const t={};return e&&("limit"in e&&(t.limit=String(e.limit)),"offset"in e&&(t.offset=String(e.offset)),e.search&&(t.search=e.search),e.sortColumn&&(t.sortColumn=e.sortColumn),e.sortOrder&&(t.sortOrder=e.sortOrder)),Object.keys(t).length>0?"?"+new URLSearchParams(t).toString():""}},sce=class extends dd{constructor(e,t={},n){const r=e.replace(/\/$/,""),i=Ee(Ee({},qp),t);super(r,i,n,"storage")}async createBucket(e){var t=this;return t.handleOperation(async()=>await Et(t.fetch,`${t.url}/bucket`,{name:e},{headers:t.headers}))}async listBuckets(e){var t=this;return t.handleOperation(async()=>{const n=new URLSearchParams;(e==null?void 0:e.limit)!==void 0&&n.set("limit",e.limit.toString()),(e==null?void 0:e.offset)!==void 0&&n.set("offset",e.offset.toString()),e!=null&&e.sortColumn&&n.set("sortColumn",e.sortColumn),e!=null&&e.sortOrder&&n.set("sortOrder",e.sortOrder),e!=null&&e.search&&n.set("search",e.search);const r=n.toString(),i=r?`${t.url}/bucket?${r}`:`${t.url}/bucket`;return await _f(t.fetch,i,{headers:t.headers})})}async deleteBucket(e){var t=this;return t.handleOperation(async()=>await tT(t.fetch,`${t.url}/bucket/${e}`,{},{headers:t.headers}))}from(e){var t=this;if(!Wle(e))throw new Cx("Invalid bucket name: File, folder, and bucket names must follow AWS object key naming guidelines and should avoid the use of any other characters.");const n=new Vle({baseUrl:this.url,catalogName:e,auth:{type:"custom",getHeaders:async()=>t.headers},fetch:this.fetch}
524),r=this.shouldThrowOnError;return new Proxy(n,{get(i,s){const a=i[s];return typeof a!="function"?a:async(...o)=>{try{return{data:await a.apply(i,o),error:null}}catch(l){if(r)throw l;return{data:null,error:l}}}}})}},ace=class extends dd{constructor(e,t={},n){const r=e.replace(/\/$/,""),i=Ee(Ee({},qp),{},{"Content-Type":"application/json"},t);super(r,i,n,"vectors")}async createIndex(e){var t=this;return t.handleOperation(async()=>await Et(t.fetch,`${t.url}/CreateIndex`,e,{headers:t.headers})||{})}async getIndex(e,t){var n=this;return n.handleOperation(async()=>await Et(n.fetch,`${n.url}/GetIndex`,{vectorBucketName:e,indexName:t},{headers:n.headers}))}async listIndexes(e){var t=this;return t.handleOperation(async()=>await Et(t.fetch,`${t.url}/ListIndexes`,e,{headers:t.headers}))}async deleteIndex(e,t){var n=this;return n.handleOperation(async()=>await Et(n.fetch,`${n.url}/DeleteIndex`,{vectorBucketName:e,indexName:t},{headers:n.headers})||{})}},oce=class extends dd{constructor(e,t={},n){const r=e.replace(/\/$/,""),i=Ee(Ee({},qp),{},{"Content-Type":"application/json"},t);super(r,i,n,"vectors")}async putVectors(e){var t=this;if(e.vectors.length<1||e.vectors.length>500)throw new Error("Vector batch size must be between 1 and 500 items");return t.handleOperation(async()=>await Et(t.fetch,`${t.url}/PutVectors`,e,{headers:t.headers})||{})}async getVectors(e){var t=this;return t.handleOperation(async()=>await Et(t.fetch,`${t.url}/GetVectors`,e,{headers:t.headers}))}async listVectors(e){var t=this;if(e.segmentCount!==void 0){if(e.segmentCount<1||e.segmentCount>16)throw new Error("segmentCount must be between 1 and 16");if(e.segmentIndex!==void 0&&(e.segmentIndex<0||e.segmentIndex>=e.segmentCount))throw new Error(`segmentIndex must be between 0 and ${e.segmentCount-1}`)}return t.handleOperation(async()=>await Et(t.fetch,`${t.url}/ListVectors`,e,{headers:t.headers}))}async queryVectors(e){var t=this;return t.handleOperation(async()=>await Et(t.fetch,`${t.url}/QueryVectors`,e,{headers:t.headers}))}async deleteVectors(e){var t=this;if(e.keys.length<1||e.keys.length>500)throw new Error("Keys batch size must be between 1 and 500 items");return t.handleOperation(async()=>await Et(t.fetch,`${t.url}/DeleteVectors`,e,{headers:t.headers})||{})}},lce=class extends dd{constructor(e,t={},n){const r=e.replace(/\/$/,""),i=Ee(Ee({},qp),{},{"Content-Type":"application/json"},t);super(r,i,n,"vectors")}async createBucket(e){var t=this;return t.handleOperation(async()=>await Et(t.fetch,`${t.url}/CreateVectorBucket`,{vectorBucketName:e},{headers:t.headers})||{})}async getBucket(e){var t=this;return t.handleOperation(async()=>await Et(t.fetch,`${t.url}/GetVectorBucket`,{vectorBucketName:e},{headers:t.headers}))}async listBuckets(e={}){var t=this;return t.handleOperation(async()=>await Et(t.fetch,`${t.url}/ListVectorBuckets`,e,{headers:t.headers}))}async deleteBucket(e){var t=this;return t.handleOperation(async()=>await Et(t.fetch,`${t.url}/DeleteVectorBucket`,{vectorBucketName:e},{headers:t.headers})||{})}},cce=class extends lce{constructor(e,t={}){super(e,t.headers||{},t.fetch)}from(e){return new uce(this.url,this.headers,e,this.fetch)}async createBucket(e){var t=()=>super.createBucket,n=this;return t().call(n,e)}async getBucket(e){var t=()=>super.getBucket,n=this;return t().call(n,e)}async listBuckets(e={}){var t=()=>super.listBuckets,n=this;return t().call(n,e)}async deleteBucket(e){var t=()=>super.deleteBucket,n=this;return t().call(n,e)}},uce=class extends ace{constructor(e,t,n,r){super(e,t,r),this.vectorBucketName=n}async createIndex(e){var t=()=>super.createIndex,n=this;return t().call(n,Ee(Ee({},e),{},{vectorBucketName:n.vectorBucketName}))}async listIndexes(e={}){var t=()=>super.listIndexes,n=this;return t().call(n,Ee(Ee({},e),{},{vectorBucketName:n.vectorBucketName}))}async getIndex(e){var t=()=>super.getIndex,n=this;return t().call(n,n.vectorBucketName,e)}async deleteIndex(e){var t=()=>super.deleteIndex,n=this;return t().call(n,n.vectorBucketName,e)}index(e){return new dce(this.url,this.headers,this.vectorBucketName,e,this.fetch)}},dce=class extends oce{constructor(e,t,n,r,i){super(e,t,i),this.vectorBucketName=n,this.indexName=r}async putVectors(e){var t=()=>super.putVectors,n=this;return t().call(n,Ee(Ee({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async getVectors(e){var t=()=>super.getVectors,n=this;return t().call(n,Ee(Ee({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async listVectors(e={}){var t=()=>super.listVectors,n=this;return t().call(n,Ee(Ee({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async queryVectors(e){var t=()=>super.queryVectors,n=this;return t().call(n,Ee(Ee({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async deleteVectors(e){var t=()=>super.deleteVectors,n=this;return t().call(n,Ee(Ee({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}},hce=class extends ice{constructor(e,t={},n,r){super(e,t,n,r)}from(e){return new nce(this.url,this.headers,e,this.fetch)}get vectors(){return new cce(this.url+"/vector",{headers:this.headers,fetch:this.fetch})}get analytics(){return new sce(this.url+"/iceberg",this.headers,this.fetch)}};const OB="2.93.2",ic=30*1e3,Hk=3,Q0=Hk*ic,fce="http://localhost:9999",pce="supabase.auth.token",mce={"X-Client-Info":`gotrue-js/${OB}`},Kk="X-Supabase-Api-Version",RB={"2024-01-01":{timestamp:Date.parse("2024-01-01T00:00:00.0Z"),name:"2024-01-01"}},gce=/^([a-z0-9_-]{4})*($|[a-z0-9_-]{3}$|[a-z0-9_-]{2}$)$/i,yce=10*60*1e3;
524class Ef extends Error{constructor(t,n,r){super(t),this.__isAuthError=!0,this.name="AuthError",this.status=n,this.code=r}}function ve(e){return typeof e=="object"&&e!==null&&"__isAuthError"in e}class vce extends Ef{constructor(t,n,r){super(t,n,r),this.name="AuthApiError",this.status=n,this.code=r}}function xce(e){return ve(e)&&e.name==="AuthApiError"}class Lo extends Ef{constructor(t,n){super(t),this.name="AuthUnknownError",this.originalError=n}}class Xs extends Ef{constructor(t,n,r,i){super(t,r,i),this.name=n,this.status=r}}class pr extends Xs{constructor(){super("Auth session missing!","AuthSessionMissingError",400,void 0)}}function Z0(e){return ve(e)&&e.name==="AuthSessionMissingError"}class Gl extends Xs{constructor(){super("Auth session or user missing","AuthInvalidTokenResponseError",500,void 0)}}class Lm extends Xs{constructor(t){super(t,"AuthInvalidCredentialsError",400,void 0)}}class Fm extends Xs{constructor(t,n=null){super(t,"AuthImplicitGrantRedirectError",500,void 0),this.details=null,this.details=n}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}function bce(e){return ve(e)&&e.name==="AuthImplicitGrantRedirectError"}class WP extends Xs{constructor(t,n=null){super(t,"AuthPKCEGrantCodeExchangeError",500,void 0),this.details=null,this.details=n}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}class wce extends Xs{constructor(){super("PKCE code verifier not found in storage. This can happen if the auth flow was initiated in a different browser or device, or if the storage was cleared. For SSR frameworks (Next.js, SvelteKit, etc.), use @supabase/ssr on both the server and client to store the code verifier in cookies.","AuthPKCECodeVerifierMissingError",400,"pkce_code_verifier_not_found")}}class Gk extends Xs{constructor(t,n){super(t,"AuthRetryableFetchError",n,void 0)}}function J0(e){return ve(e)&&e.name==="AuthRetryableFetchError"}class zP extends Xs{constructor(t,n,r){super(t,"AuthWeakPasswordError",n,"weak_password"),this.reasons=r}}class Yk extends Xs{constructor(t){super(t,"AuthInvalidJwtError",400,"invalid_jwt")}}const Ty="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split(""),HP=` 525\r=`.split(""),kce=(()=>{const e=new Array(128);for(let t=0;t<e.length;t+=1)e[t]=-1;for(let t=0;t<HP.length;t+=1)e[HP[t].charCodeAt(0)]=-2;for(let t=0;t<Ty.length;t+=1)e[Ty[t].charCodeAt(0)]=t;return e})();function KP(e,t,n){if(e!==null)for(t.queue=t.queue<<8|e,t.queuedBits+=8;t.queuedBits>=6;){const r=t.queue>>t.queuedBits-6&63;n(Ty[r]),t.queuedBits-=6}else if(t.queuedBits>0)for(t.queue=t.queue<<6-t.queuedBits,t.queuedBits=6;t.queuedBits>=6;){const r=t.queue>>t.queuedBits-6&63;n(Ty[r]),t.queuedBits-=6}}function IB(e,t,n){const r=kce[e];if(r>-1)for(t.queue=t.queue<<6|r,t.queuedBits+=6;t.queuedBits>=8;)n(t.queue>>t.queuedBits-8&255),t.queuedBits-=8;else{if(r===-2)return;throw new Error(`Invalid Base64-URL character "${String.fromCharCode(e)}"`)}}function GP(e){const t=[],n=a=>{t.push(String.fromCodePoint(a))},r={utf8seq:0,codepoint:0},i={queue:0,queuedBits:0},s=a=>{_ce(a,r,n)};for(let a=0;a<e.length;a+=1)IB(e.charCodeAt(a),i,s);return t.join("")}function Sce(e,t){if(e<=127){t(e);return}else if(e<=2047){t(192|e>>6),t(128|e&63);return}else if(e<=65535){t(224|e>>12),t(128|e>>6&63),t(128|e&63);return}else if(e<=1114111){t(240|e>>18),t(128|e>>12&63),t(128|e>>6&63),t(128|e&63);return}throw new Error(`Unrecognized Unicode codepoint: ${e.toString(16)}`)}function jce(e,t){for(let n=0;n<e.length;n+=1){let r=e.charCodeAt(n);if(r>55295&&r<=56319){const i=(r-55296)*1024&65535;r=(e.charCodeAt(n+1)-56320&65535|i)+65536,n+=1}Sce(r,t)}}function _ce(e,t,n){if(t.utf8seq===0){if(e<=127){n(e);return}for(let r=1;r<6;r+=1)if(!(e>>7-r&1)){t.utf8seq=r;break}if(t.utf8seq===2)t.codepoint=e&31;else if(t.utf8seq===3)t.codepoint=e&15;else if(t.utf8seq===4)t.codepoint=e&7;else throw new Error("Invalid UTF-8 sequence");t.utf8seq-=1}else if(t.utf8seq>0){if(e<=127)throw new Error("Invalid UTF-8 sequence");t.codepoint=t.codepoint<<6|e&63,t.utf8seq-=1,t.utf8seq===0&&n(t.codepoint)}}function Uc(e){const t=[],n={queue:0,queuedBits:0},r=i=>{t.push(i)};for(let i=0;i<e.length;i+=1)IB(e.charCodeAt(i),n,r);return new Uint8Array(t)}function Ece(e){const t=[];return jce(e,n=>t.push(n)),new Uint8Array(t)}function zo(e){const t=[],n={queue:0,queuedBits:0},r=i=>{t.push(i)};return e.forEach(i=>
525KP(i,n,r)),KP(null,n,r),t.join("")}function Tce(e){return Math.round(Date.now()/1e3)+e}function Nce(){return Symbol("auth-callback")}const kn=()=>typeof window<"u"&&typeof document<"u",jo={tested:!1,writable:!1},MB=()=>{if(!kn())return!1;try{if(typeof globalThis.localStorage!="object")return!1}catch{return!1}if(jo.tested)return jo.writable;const e=`lswt-${Math.random()}${Math.random()}`;try{globalThis.localStorage.setItem(e,e),globalThis.localStorage.removeItem(e),jo.tested=!0,jo.writable=!0}catch{jo.tested=!0,jo.writable=!1}return jo.writable};function Cce(e){const t={},n=new URL(e);if(n.hash&&n.hash[0]==="#")try{new URLSearchParams(n.hash.substring(1)).forEach((i,s)=>{t[s]=i})}catch{}return n.searchParams.forEach((r,i)=>{t[i]=r}),t}const $B=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),Ace=e=>typeof e=="object"&&e!==null&&"status"in e&&"ok"in e&&"json"in e&&typeof e.json=="function",sc=async(e,t,n)=>{await e.setItem(t,JSON.stringify(n))},_o=async(e,t)=>{const n=await e.getItem(t);if(!n)return null;try{return JSON.parse(n)}catch{return n}},wn=async(e,t)=>{await e.removeItem(t)};class Px{constructor(){this.promise=new Px.promiseConstructor((t,n)=>{this.resolve=t,this.reject=n})}}Px.promiseConstructor=Promise;function Bm(e){const t=e.split(".");if(t.length!==3)throw new Yk("Invalid JWT structure");for(let r=0;r<t.length;r++)if(!gce.test(t[r]))throw new Yk("JWT not in base64url format");return{header:JSON.parse(GP(t[0])),payload:JSON.parse(GP(t[1])),signature:Uc(t[2]),raw:{header:t[0],payload:t[1]}}}async function Pce(e){return await new Promise(t=>{setTimeout(()=>t(null),e)})}function Oce(e,t){return new Promise((r,i)=>{(async()=>{for(let s=0;s<1/0;s++)try{const a=await e(s);if(!t(s,null,a)){r(a);return}}catch(a){if(!t(s,a)){i(a);return}}})()})}function Rce(e){return("0"+e.toString(16)).substr(-2)}function Ice(){const t=new Uint32Array(56);if(typeof crypto>"u"){const n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",r=n.length;let i="";for(let s=0;s<56;s++)i+=n.charAt(Math.floor(Math.random()*r));return i}return crypto.getRandomValues(t),Array.from(t,Rce).join("")}async function Mce(e){const n=new TextEncoder().encode(e),r=await crypto.subtle.digest("SHA-256",n),i=new Uint8Array(r);return Array.from(i).map(s=>String.fromCharCode(s)).join("")}async function $ce(e){if(!(typeof crypto<"u"&&typeof crypto.subtle<"u"&&typeof TextEncoder<"u"))return console.warn("WebCrypto API is not supported. Code challenge method will default to use plain instead of sha256."),e;const n=await Mce(e);return btoa(n).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}async function Yl(e,t,n=!1){const r=Ice();let i=r;n&&(i+="/PASSWORD_RECOVERY"),await sc(e,`${t}-code-verifier`,i);const s=await $ce(r);return[s,r===s?"plain":"s256"]}const Dce=/^2[0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|1[0-9]|2[0-9]|3[0-1])$/i;function Lce(e){const t=e.headers.get(Kk);if(!t||!t.match(Dce))return null;try{return new Date(`${t}T00:00:00.0Z`)}catch{return null}}function Fce(e){if(!e)throw new Error("Missing exp claim");const t=Math.floor(Date.now()/1e3);if(e<=t)throw new Error("JWT has expired")}function Bce(e){switch(e){case"RS256":return{name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}};case"ES256":return{name:"ECDSA",namedCurve:"P-256",hash:{name:"SHA-256"}};default:throw new Error("Invalid alg claim")}}const Vce=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;function Xl(e){if(!Vce.test(e))throw new Error("@supabase/auth-js: Expected parameter to be UUID but is not")}function ew(){const e={};return new Proxy(e,{get:(t,n)=>{if(n==="__isUserNotAvailableProxy")return!0;if(typeof n=="symbol"){const r=n.toString();if(r==="Symbol(Symbol.toPrimitive)"||r==="Symbol(Symbol.toStringTag)"||r==="Symbol(util.inspect.custom)")return}throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Accessing the "${n}" property of the session object is not supported. Please use getUser() instead.`)},set:(t,n)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Setting the "${n}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)},deleteProperty:(t,n)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Deleting the "${n}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)}})}function qce(e,t){return new Proxy(e,{get:(n,r,i)=>{if(r==="__isInsecureUserWarningProxy")return!0;
525if(typeof r=="symbol"){const s=r.toString();if(s==="Symbol(Symbol.toPrimitive)"||s==="Symbol(Symbol.toStringTag)"||s==="Symbol(util.inspect.custom)"||s==="Symbol(nodejs.util.inspect.custom)")return Reflect.get(n,r,i)}return!t.value&&typeof r=="string"&&(console.warn("Using the user object as returned from supabase.auth.getSession() or from some supabase.auth.onAuthStateChange() events could be insecure! This value comes directly from the storage medium (usually cookies on the server) and may not be authentic. Use supabase.auth.getUser() instead which authenticates the data by contacting the Supabase Auth server."),t.value=!0),Reflect.get(n,r,i)}})}function YP(e){return JSON.parse(JSON.stringify(e))}const Oo=e=>e.msg||e.message||e.error_description||e.error||JSON.stringify(e),Uce=[502,503,504];async function XP(e){var t;if(!Ace(e))throw new Gk(Oo(e),0);if(Uce.includes(e.status))throw new Gk(Oo(e),e.status);let n;try{n=await e.json()}catch(s){throw new Lo(Oo(s),s)}let r;const i=Lce(e);if(i&&i.getTime()>=RB["2024-01-01"].timestamp&&typeof n=="object"&&n&&typeof n.code=="string"?r=n.code:typeof n=="object"&&n&&typeof n.error_code=="string"&&(r=n.error_code),r){if(r==="weak_password")throw new zP(Oo(n),e.status,((t=n.weak_password)===null||t===void 0?void 0:t.reasons)||[]);if(r==="session_not_found")throw new pr}else if(typeof n=="object"&&n&&typeof n.weak_password=="object"&&n.weak_password&&Array.isArray(n.weak_password.reasons)&&n.weak_password.reasons.length&&n.weak_password.reasons.reduce((s,a)=>s&&typeof a=="string",!0))throw new zP(Oo(n),e.status,n.weak_password.reasons);throw new vce(Oo(n),e.status||500,r)}const Wce=(e,t,n,r)=>{const i={method:e,headers:(t==null?void 0:t.headers)||{}};return e==="GET"?i:(i.headers=Object.assign({"Content-Type":"application/json;charset=UTF-8"},t==null?void 0:t.headers),i.body=JSON.stringify(r),Object.assign(Object.assign({},i),n))};async function _e(e,t,n,r){var i;const s=Object.assign({},r==null?void 0:r.headers);s[Kk]||(s[Kk]=RB["2024-01-01"].name),r!=null&&r.jwt&&(s.Authorization=`Bearer ${r.jwt}`);const a=(i=r==null?void 0:r.query)!==null&&i!==void 0?i:{};r!=null&&r.redirectTo&&(a.redirect_to=r.redirectTo);const o=Object.keys(a).length?"?"+new URLSearchParams(a).toString():"",l=await zce(e,t,n+o,{headers:s,noResolveJson:r==null?void 0:r.noResolveJson},{},r==null?void 0:r.body);return r!=null&&r.xform?r==null?void 0:r.xform(l):{data:Object.assign({},l),error:null}}async function zce(e,t,n,r,i,s){const a=Wce(t,r,i,s);let o;try{o=await e(n,Object.assign({},a))}catch(l){throw console.error(l),new Gk(Oo(l),0)}if(o.ok||await XP(o),r!=null&&r.noResolveJson)return o;try{return await o.json()}catch(l){await XP(l)}}function hi(e){var t;let n=null;Gce(e)&&(n=Object.assign({},e),e.expires_at||(n.expires_at=Tce(e.expires_in)));const r=(t=e.user)!==null&&t!==void 0?t:e;return{data:{session:n,user:r},error:null}}function QP(e){const t=hi(e);return!t.error&&e.weak_password&&typeof e.weak_password=="object"&&Array.isArray(e.weak_password.reasons)&&e.weak_password.reasons.length&&e.weak_password.message&&typeof e.weak_password.message=="string"&&e.weak_password.reasons.reduce((n,r)=>n&&typeof r=="string",!0)&&(t.data.weak_password=e.weak_password),t}function ba(e){var t;return{data:{user:(t=e.user)!==null&&t!==void 0?t:e},error:null}}function Hce(e){return{data:e,error:null}}function Kce(e){const{action_link:t,email_otp:n,hashed_token:r,redirect_to:i,verification_type:s}=e,a=od(e,["action_link","email_otp","hashed_token","redirect_to","verification_type"]),o={action_link:t,email_otp:n,hashed_token:r,redirect_to:i,verification_type:s},l=Object.assign({},a);return{data:{properties:o,user:l},error:null}}function ZP(e){return e}function Gce(e){return e.access_token&&e.refresh_token&&e.expires_in}const tw=["global","local","others"];class Yce{constructor({url:t="",headers:n={},fetch:r}){this.url=t,this.headers=n,this.fetch=$B(r),this.mfa={listFactors:this._listFactors.bind(this),deleteFactor:this._deleteFactor.bind(this)},this.oauth={listClients:this._listOAuthClients.bind(this),createClient:this._createOAuthClient.bind(this),getClient:this._getOAuthClient.bind(this),updateClient:this._updateOAuthClient.bind(this),deleteClient:this._deleteOAuthClient.bind(this),regenerateClientSecret:this._regenerateOAuthClientSecret.bind(this)}}
vendor: 4,781 bytes, line 525
525async signOut(t,n=tw[0]){if(tw.indexOf(n)<0)throw new Error(`@supabase/auth-js: Parameter scope must be one of ${tw.join(", ")}`);try{return await _e(this.fetch,"POST",`${this.url}/logout?scope=${n}`,{headers:this.headers,jwt:t,noResolveJson:!0}),{data:null,error:null}}catch(r){if(ve(r))return{data:null,error:r};throw r}}async inviteUserByEmail(t,n={}){try{return await _e(this.fetch,"POST",`${this.url}/invite`,{body:{email:t,data:n.data},headers:this.headers,redirectTo:n.redirectTo,xform:ba})}catch(r){if(ve(r))return{data:{user:null},error:r};throw r}}async generateLink(t){try{const{options:n}=t,r=od(t,["options"]),i=Object.assign(Object.assign({},r),n);return"newEmail"in r&&(i.new_email=r==null?void 0:r.newEmail,delete i.newEmail),await _e(this.fetch,"POST",`${this.url}/admin/generate_link`,{body:i,headers:this.headers,xform:Kce,redirectTo:n==null?void 0:n.redirectTo})}catch(n){if(ve(n))return{data:{properties:null,user:null},error:n};throw n}}async createUser(t){try{return await _e(this.fetch,"POST",`${this.url}/admin/users`,{body:t,headers:this.headers,xform:ba})}catch(n){if(ve(n))return{data:{user:null},error:n};throw n}}async listUsers(t){var n,r,i,s,a,o,l;try{const u={nextPage:null,lastPage:0,total:0},d=await _e(this.fetch,"GET",`${this.url}/admin/users`,{headers:this.headers,noResolveJson:!0,query:{page:(r=(n=t==null?void 0:t.page)===null||n===void 0?void 0:n.toString())!==null&&r!==void 0?r:"",per_page:(s=(i=t==null?void 0:t.perPage)===null||i===void 0?void 0:i.toString())!==null&&s!==void 0?s:""},xform:ZP});if(d.error)throw d.error;const h=await d.json(),f=(a=d.headers.get("x-total-count"))!==null&&a!==void 0?a:0,p=(l=(o=d.headers.get("link"))===null||o===void 0?void 0:o.split(","))!==null&&l!==void 0?l:[];return p.length>0&&(p.forEach(g=>{const m=parseInt(g.split(";")[0].split("=")[1].substring(0,1)),y=JSON.parse(g.split(";")[1].split("=")[1]);u[`${y}Page`]=m}),u.total=parseInt(f)),{data:Object.assign(Object.assign({},h),u),error:null}}catch(u){if(ve(u))return{data:{users:[]},error:u};throw u}}async getUserById(t){Xl(t);try{return await _e(this.fetch,"GET",`${this.url}/admin/users/${t}`,{headers:this.headers,xform:ba})}catch(n){if(ve(n))return{data:{user:null},error:n};throw n}}async updateUserById(t,n){Xl(t);try{return await _e(this.fetch,"PUT",`${this.url}/admin/users/${t}`,{body:n,headers:this.headers,xform:ba})}catch(r){if(ve(r))return{data:{user:null},error:r};throw r}}async deleteUser(t,n=!1){Xl(t);try{return await _e(this.fetch,"DELETE",`${this.url}/admin/users/${t}`,{headers:this.headers,body:{should_soft_delete:n},xform:ba})}catch(r){if(ve(r))return{data:{user:null},error:r};throw r}}async _listFactors(t){Xl(t.userId);try{const{data:n,error:r}=await _e(this.fetch,"GET",`${this.url}/admin/users/${t.userId}/factors`,{headers:this.headers,xform:i=>({data:{factors:i},error:null})});return{data:n,error:r}}catch(n){if(ve(n))return{data:null,error:n};throw n}}async _deleteFactor(t){Xl(t.userId),Xl(t.id);try{return{data:await _e(this.fetch,"DELETE",`${this.url}/admin/users/${t.userId}/factors/${t.id}`,{headers:this.headers}),error:null}}catch(n){if(ve(n))return{data:null,error:n};throw n}}async _listOAuthClients(t){var n,r,i,s,a,o,l;try{const u={nextPage:null,lastPage:0,total:0},d=await _e(this.fetch,"GET",`${this.url}/admin/oauth/clients`,{headers:this.headers,noResolveJson:!0,query:{page:(r=(n=t==null?void 0:t.page)===null||n===void 0?void 0:n.toString())!==null&&r!==void 0?r:"",per_page:(s=(i=t==null?void 0:t.perPage)===null||i===void 0?void 0:i.toString())!==null&&s!==void 0?s:""},xform:ZP});if(d.error)throw d.error;const h=await d.json(),f=(a=d.headers.get("x-total-count"))!==null&&a!==void 0?a:0,p=(l=(o=d.headers.get("link"))===null||o===void 0?void 0:o.split(","))!==null&&l!==void 0?l:[];return p.length>0&&(p.forEach(g=>{const m=parseInt(g.split(";")[0].split("=")[1].substring(0,1)),y=JSON.parse(g.split(";")[1].split("=")[1]);u[`${y}Page`]=m}),u.total=parseInt(f)),{data:Object.assign(Object.assign({},h),u),error:null}}catch(u){if(ve(u))return{data:{clients:[]},error:u};throw u}}async _createOAuthClient(t){try{return await _e(this.fetch,"POST",`${this.url}/admin/oauth/clients`,{body:t,headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(ve(n))return{data:null,error:n};throw n}}async _getOAuthClient(t){try{return await _e(this.fetch,"GET",`${this.url}/admin/oauth/clients/${t}`,{headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(ve(n))return{data:null,error:n};throw n}}async _updateOAuthClient(t,n){try{return await _e(this.fetch,"PUT",`${this.url}/admin/oauth/clients/${t}`,{body:n,headers:this.headers,xform:r=>({data:r,error:null})})}catch(r){if(ve(r))return{data:null,error:r};throw r}}async _deleteOAuthClient(t){try{return await _e(this.fetch,"DELET
525E",`${this.url}/admin/oauth/clients/${t}`,{headers:this.headers,noResolveJson:!0}),{data:null,error:null}}catch(n){if(ve(n))return{data:null,error:n};throw n}}async _regenerateOAuthClientSecret(t){try{return await _e(this.fetch,"POST",`${this.url}/admin/oauth/clients/${t}/regenerate_secret`,{headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(ve(n))return{data:null,error:n};throw n}}}function JP(e={}){return{getItem:t=>e[t]||null,setItem:(t,n)=>{e[t]=n},removeItem:t=>{delete e[t]}}}const Ql={debug:!!(globalThis&&MB()&&globalThis.localStorage&&globalThis.localStorage.getItem("supabase.gotrue-js.locks.debug")==="true")};class DB extends Error{constructor(t){super(t),this.isAcquireTimeout=!0}}class Xce extends DB{}async function Qce(e,t,n){Ql.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquire lock",e,t);const r=new globalThis.AbortController;return t>0&&setTimeout(()=>{r.abort(),Ql.debug&&console.log("@supabase/gotrue-js: navigatorLock acquire timed out",e)},t),await Promise.resolve().then(()=>globalThis.navigator.locks.request(e,t===0?{mode:"exclusive",ifAvailable:!0}:{mode:"exclusive",signal:r.signal},async i=>{if(i){Ql.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquired",e,i.name);try{return await n()}finally{Ql.debug&&console.log("@supabase/gotrue-js: navigatorLock: released",e,i.name)}}else{if(t===0)throw Ql.debug&&console.log("@supabase/gotrue-js: navigatorLock: not immediately available",e),new Xce(`Acquiring an exclusive Navigator LockManager lock "${e}" immediately failed`);if(Ql.debug)try{const s=await globalThis.navigator.locks.query();console.log("@supabase/gotrue-js: Navigator LockManager state",JSON.stringify(s,null," "))}catch(s){console.warn("@supabase/gotrue-js: Error when querying Navigator LockManager state",s)}return console.warn("@supabase/gotrue-js: Navigator LockManager returned a null lock when using #request without ifAvailable set to true, it appears this browser is not following the LockManager spec https://developer.mozilla.org/en-US/docs/Web/API/LockManager/request"),await n()}}))}function Zce(){if(typeof globalThis!="object")try{Object.defineProperty(Object.prototype,"__magic__",{get:function(){return this},configurable:!0}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__}catch{typeof self<"u"&&(self.globalThis=self)}}function LB(e){if(!/^0x[a-fA-F0-9]{40}$/.test(e))throw new Error(`@supabase/auth-js: Address "${e}" is invalid.`);return e.toLowerCase()}function Jce(e){return parseInt(e,16)}function eue(e){const t=new TextEncoder().encode(e);return"0x"+Array.from(t,r=>r.toString(16).padStart(2,"0")).join("")}function tue(e){var t;const{chainId:n,domain:r,expirationTime:i,issuedAt:s=new Date,nonce:a,notBefore:o,requestId:l,resources:u,scheme:d,uri:h,version:f}=e;{if(!Number.isInteger(n))throw new Error(`@supabase/auth-js: Invalid SIWE message field "chainId". Chain ID must be a EIP-155 chain ID. Provided value: ${n}`);if(!r)throw new Error('@supabase/auth-js: Invalid SIWE message field "domain". Domain must be provided.');if(a&&a.length<8)throw new Error(`@supabase/auth-js: Invalid SIWE message field "nonce". Nonce must be at least 8 characters. Provided value: ${a}`);if(!h)throw new Error('@supabase/auth-js: Invalid SIWE message field "uri". URI must be provided.');if(f!=="1")throw new Error(`@supabase/auth-js: Invalid SIWE message field "version". Version must be '1'. Provided value: ${f}`);if(!((t=e.statement)===null||t===void 0)&&t.includes(` 526`))throw new Error(`@supabase/auth-js: Invalid SIWE message field "statement". Statement must not include '\\n'. Provided value: ${e.statement}`)}const p=LB(e.address),g=d?`${d}://${r}`:r,m=e.statement?`${e.statement} 527`:"",y=`${g} wants you to sign in with your Ethereum account: 528${p} 529 530${m}`;let v=`URI: ${h} 531Version: ${f} 532Chain ID: ${n}${a?` 533Nonce: ${a}`:""} 534Issued At: ${s.toISOString()}`;if(i&&(v+=` 535Expiration Time: ${i.toISOString()}`),o&&(v+=` 536Not Before: ${o.toISOString()}`),l&&(v+=` 537Request ID: ${l}`),u){let x=` 538Resources:`;for(const b of u){if(!b||typeof b!="string")throw new Error(`@supabase/auth-js: Invalid SIWE message field "resources". Every resource must be a valid string. Provided value: ${b}`);x+=` 539- ${b}`}v+=x}return`${y} 540${v}`}
540class Kt extends Error{constructor({message:t,code:n,cause:r,name:i}){var s;super(t,{cause:r}),this.__isWebAuthnError=!0,this.name=(s=i??(r instanceof Error?r.name:void 0))!==null&&s!==void 0?s:"Unknown Error",this.code=n}}class Ny extends Kt{constructor(t,n){super({code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:n,message:t}),this.name="WebAuthnUnknownError",this.originalError=n}}function nue({error:e,options:t}){var n,r,i;const{publicKey:s}=t;if(!s)throw Error("options was missing required publicKey property");if(e.name==="AbortError"){if(t.signal instanceof AbortSignal)return new Kt({message:"Registration ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:e})}else if(e.name==="ConstraintError"){if(((n=s.authenticatorSelection)===null||n===void 0?void 0:n.requireResidentKey)===!0)return new Kt({message:"Discoverable credentials were required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_DISCOVERABLE_CREDENTIAL_SUPPORT",cause:e});if(t.mediation==="conditional"&&((r=s.authenticatorSelection)===null||r===void 0?void 0:r.userVerification)==="required")return new Kt({message:"User verification was required during automatic registration but it could not be performed",code:"ERROR_AUTO_REGISTER_USER_VERIFICATION_FAILURE",cause:e});if(((i=s.authenticatorSelection)===null||i===void 0?void 0:i.userVerification)==="required")return new Kt({message:"User verification was required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_USER_VERIFICATION_SUPPORT",cause:e})}else{if(e.name==="InvalidStateError")return new Kt({message:"The authenticator was previously registered",code:"ERROR_AUTHENTICATOR_PREVIOUSLY_REGISTERED",cause:e});if(e.name==="NotAllowedError")return new Kt({message:e.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e});if(e.name==="NotSupportedError")return s.pubKeyCredParams.filter(o=>o.type==="public-key").length===0?new Kt({message:'No entry in pubKeyCredParams was of type "public-key"',code:"ERROR_MALFORMED_PUBKEYCREDPARAMS",cause:e}):new Kt({message:"No available authenticator supported any of the specified pubKeyCredParams algorithms",code:"ERROR_AUTHENTICATOR_NO_SUPPORTED_PUBKEYCREDPARAMS_ALG",cause:e});if(e.name==="SecurityError"){const a=window.location.hostname;if(FB(a)){if(s.rp.id!==a)return new Kt({message:`The RP ID "${s.rp.id}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else return new Kt({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:e})}else if(e.name==="TypeError"){if(s.user.id.byteLength<1||s.user.id.byteLength>64)return new Kt({message:"User ID was not between 1 and 64 characters",code:"ERROR_INVALID_USER_ID_LENGTH",cause:e})}else if(e.name==="UnknownError")return new Kt({message:"The authenticator was unable to process the specified options, or could not create a new credential",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:e})}return new Kt({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e})}function rue({error:e,options:t}){const{publicKey:n}=t;if(!n)throw Error("options was missing required publicKey property");if(e.name==="AbortError"){if(t.signal instanceof AbortSignal)return new Kt({message:"Authentication ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:e})}else{if(e.name==="NotAllowedError")return new Kt({message:e.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e});if(e.name==="SecurityError"){const r=window.location.hostname;if(FB(r)){if(n.rpId!==r)return new Kt({message:`The RP ID "${n.rpId}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else return new Kt({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:e})}else if(e.name==="UnknownError")return new Kt({message:"The authenticator was unable to process the specified options, or could not create a new assertion signature",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:e})}return new Kt({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e})}class iue{createNewAbortSignal(){if(this.controller){const n=new Error("Cancelling existing WebAuthn API call for new one");n.name="AbortError",this.controller.abort(n)}const t=new AbortController;return this.controller=t,t.signal}cancelCeremony(){if(this.controller){const t=new Error("Manually cancelling existing WebAuthn API call");t.name="AbortError",this.controller.abort(t),this.controller=void 0}}}const sue=new iue;function aue(e){if(!e)throw new Error("Credential creation options are required");if(typeof PublicKeyCredential<"u"&&"parseCreationOptionsFromJSON"in PublicKeyCredential&&typeof PublicKeyCredential.parseCreationOptionsFromJSON=="function")return PublicKeyCredential.parseCreationOptionsFromJSON(e);const{challenge:t,user:n,excludeCredentials:r}=e,i=od(e,["challenge","user","excludeCredentials"]),s=Uc(t).buffer,a=Object.assign(Object.assign({},n),{id:Uc(n.id).buffer}),o=Object.assign(Object.assign({},i),{challenge:s,user:a});if(r&&r.length>0){o.excludeCredentials=new Array(r.length);for(let l=0;l<r.length;l++){const u=r[l];o.excludeCredentials[l]=Object.assign(Object.assign({},u),{id:Uc(u.id).buffer,type:u.type||"public-key",transports:u.transports})}}return o}function oue(e){if(!e)throw new Error("Credential request options are required");if(typeof PublicKeyCredential<"u"&&"parseRequestOptionsFromJSON"in PublicKeyCredential&&typeof PublicKeyCredential.parseRequestOptionsFromJSON=="function")return PublicKeyCredential.parseRequestOptionsFromJSON(e);const{challenge:t,allowCredentials:n}=e,r=od(e,["challenge","allowCredentials"]),i=Uc(t).buffer,s=Object.assign(Object.assign({},r),{challenge:i});if(n&&n.length>0){s.allowCredentials=new Array(n.length);for(let a=0;a<n.length;a++){const o=n[a];s.allowCredentials[a]=Object.assign(Object.assign({},o),{id:Uc(o.id).buffer,type:o.type||"public-key",transports:o.transports})}}return s}function lue(e){var t;if("toJSON"in e&&typeof e.toJSON=="function")return e.toJSON();const n=e;return{id:e.id,rawId:e.id,response:{attestationObject:zo(new Uint8Array(e.response.attestationObject)),clientDataJSON:zo(new Uint8Array(e.response.clientDataJSON))},type:"public-key",clientExtensionResults:e.getClientExtensionResults(),authenticatorAttachment:(t=n.authenticatorAttachment)!==null&&t!==void 0?t:void 0}}function cue(e){var t;if("toJSON"in e&&typeof e.toJSON=="function")return e.toJSON();const n=e,r=e.getClientExtensionResults(),i=e.response;return{id:e.id,rawId:e.id,response:{authenticatorData:zo(new Uint8Array(i.authenticatorData)),clientDataJSON:zo(new Uint8Array(i.clientDataJSON)),signature:zo(new Uint8Array(i.signature)),userHandle:i.userHandle?zo(new Uint8Array(i.userHandle)):void 0},type:"public-key",clientExtensionResults:r,authenticatorAttachment:(t=n.authenticatorAttachment)!==null&&t!==void 0?t:void 0}}function FB(e){return e==="localhost"||/^([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,}$/i.test(e)}function eO(){var e,t;return!!(kn()&&"PublicKeyCredential"in window&&window.PublicKeyCredential&&"credentials"in navigator&&typeof((e=navigator==null?void 0:navigator.credentials)===null||e===void 0?void 0:e.create)=="function"&&typeof((t=navigator==null?void 0:navigator.credentials)===null||t===void 0?void 0:t.get)=="function")}async function uue(e){try{const t=await navigator.credentials.create(e);return t?t instanceof PublicKeyCredential?{data:t,error:null}:{data:null,error:new Ny("Browser returned unexpected credential type",t)}:{data:null,error:new Ny("Empty credential response",t)}}
540catch(t){return{data:null,error:nue({error:t,options:e})}}}async function due(e){try{const t=await navigator.credentials.get(e);return t?t instanceof PublicKeyCredential?{data:t,error:null}:{data:null,error:new Ny("Browser returned unexpected credential type",t)}:{data:null,error:new Ny("Empty credential response",t)}}catch(t){return{data:null,error:rue({error:t,options:e})}}}const hue={hints:["security-key"],authenticatorSelection:{authenticatorAttachment:"cross-platform",requireResidentKey:!1,userVerification:"preferred",residentKey:"discouraged"},attestation:"direct"},fue={userVerification:"preferred",hints:["security-key"],attestation:"direct"};function Cy(...e){const t=i=>i!==null&&typeof i=="object"&&!Array.isArray(i),n=i=>i instanceof ArrayBuffer||ArrayBuffer.isView(i),r={};for(const i of e)if(i)for(const s in i){const a=i[s];if(a!==void 0)if(Array.isArray(a))r[s]=a;else if(n(a))r[s]=a;else if(t(a)){const o=r[s];t(o)?r[s]=Cy(o,a):r[s]=Cy(a)}else r[s]=a}return r}function pue(e,t){return Cy(hue,e,t||{})}function mue(e,t){return Cy(fue,e,t||{})}class gue{constructor(t){this.client=t,this.enroll=this._enroll.bind(this),this.challenge=this._challenge.bind(this),this.verify=this._verify.bind(this),this.authenticate=this._authenticate.bind(this),this.register=this._register.bind(this)}async _enroll(t){return this.client.mfa.enroll(Object.assign(Object.assign({},t),{factorType:"webauthn"}))}async _challenge({factorId:t,webauthn:n,friendlyName:r,signal:i},s){try{const{data:a,error:o}=await this.client.mfa.challenge({factorId:t,webauthn:n});if(!a)return{data:null,error:o};const l=i??sue.createNewAbortSignal();if(a.webauthn.type==="create"){const{user:u}=a.webauthn.credential_options.publicKey;u.name||(u.name=`${u.id}:${r}`),u.displayName||(u.displayName=u.name)}switch(a.webauthn.type){case"create":{const u=pue(a.webauthn.credential_options.publicKey,s==null?void 0:s.create),{data:d,error:h}=await uue({publicKey:u,signal:l});return d?{data:{factorId:t,challengeId:a.id,webauthn:{type:a.webauthn.type,credential_response:d}},error:null}:{data:null,error:h}}case"request":{const u=mue(a.webauthn.credential_options.publicKey,s==null?void 0:s.request),{data:d,error:h}=await due(Object.assign(Object.assign({},a.webauthn.credential_options),{publicKey:u,signal:l}));return d?{data:{factorId:t,challengeId:a.id,webauthn:{type:a.webauthn.type,credential_response:d}},error:null}:{data:null,error:h}}}}catch(a){return ve(a)?{data:null,error:a}:{data:null,error:new Lo("Unexpected error in challenge",a)}}}async _verify({challengeId:t,factorId:n,webauthn:r}){return this.client.mfa.verify({factorId:n,challengeId:t,webauthn:r})}async _authenticate({factorId:t,webauthn:{rpId:n=typeof window<"u"?window.location.hostname:void 0,rpOrigins:r=typeof window<"u"?[window.location.origin]:void 0,signal:i}={}},s){if(!n)return{data:null,error:new Ef("rpId is required for WebAuthn authentication")};try{if(!eO())return{data:null,error:new Lo("Browser does not support WebAuthn",null)};const{data:a,error:o}=await this.challenge({factorId:t,webauthn:{rpId:n,rpOrigins:r},signal:i},{request:s});if(!a)return{data:null,error:o};const{webauthn:l}=a;return this._verify({factorId:t,challengeId:a.challengeId,webauthn:{type:l.type,rpId:n,rpOrigins:r,credential_response:l.credential_response}})}catch(a){return ve(a)?{data:null,error:a}:{data:null,error:new Lo("Unexpected error in authenticate",a)}}}async _register({friendlyName:t,webauthn:{rpId:n=typeof window<"u"?window.location.hostname:void 0,rpOrigins:r=typeof window<"u"?[window.location.origin]:void 0,signal:i}={}},s){if(!n)return{data:null,error:new Ef("rpId is required for WebAuthn registration")};try{if(!eO())return{data:null,error:new Lo("Browser does not support WebAuthn",null)};const{data:a,error:o}=await this._enroll({friendlyName:t});if(!a)return await this.client.mfa.listFactors().then(d=>{var h;return(h=d.data)===null||h===void 0?void 0:h.all.find(f=>f.factor_type==="webauthn"&&f.friendly_name===t&&f.status!=="unverified")}).then(d=>d?this.client.mfa.unenroll({factorId:d==null?void 0:d.id}):void 0),{data:null,error:o};const{data:l,error:u}=await this._challenge({factorId:a.id,friendlyName:a.friendly_name,webauthn:{rpId:n,rpOrigins:r},signal:i},{create:s});return l?this._verify({factorId:a.id,challengeId:l.challengeId,webauthn:{rpId:n,rpOrigins:r,type:l.webauthn.type,credential_response:l.webauthn.credential_response}}):{data:null,error:u}}
540catch(a){return ve(a)?{data:null,error:a}:{data:null,error:new Lo("Unexpected error in register",a)}}}}Zce();const yue={url:fce,storageKey:pce,autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,headers:mce,flowType:"implicit",debug:!1,hasCustomAuthorizationHeader:!1,throwOnError:!1,lockAcquireTimeout:1e4};async function tO(e,t,n){return await n()}const Zl={};class Tf{get jwks(){var t,n;return(n=(t=Zl[this.storageKey])===null||t===void 0?void 0:t.jwks)!==null&&n!==void 0?n:{keys:[]}}set jwks(t){Zl[this.storageKey]=Object.assign(Object.assign({},Zl[this.storageKey]),{jwks:t})}get jwks_cached_at(){var t,n;return(n=(t=Zl[this.storageKey])===null||t===void 0?void 0:t.cachedAt)!==null&&n!==void 0?n:Number.MIN_SAFE_INTEGER}set jwks_cached_at(t){Zl[this.storageKey]=Object.assign(Object.assign({},Zl[this.storageKey]),{cachedAt:t})}constructor(t){var n,r,i;this.userStorage=null,this.memoryStorage=null,this.stateChangeEmitters=new Map,this.autoRefreshTicker=null,this.autoRefreshTickTimeout=null,this.visibilityChangedCallback=null,this.refreshingDeferred=null,this.initializePromise=null,this.detectSessionInUrl=!0,this.hasCustomAuthorizationHeader=!1,this.suppressGetSessionWarning=!1,this.lockAcquired=!1,this.pendingInLock=[],this.broadcastChannel=null,this.logger=console.log;const s=Object.assign(Object.assign({},yue),t);if(this.storageKey=s.storageKey,this.instanceID=(n=Tf.nextInstanceID[this.storageKey])!==null&&n!==void 0?n:0,Tf.nextInstanceID[this.storageKey]=this.instanceID+1,this.logDebugMessages=!!s.debug,typeof s.debug=="function"&&(this.logger=s.debug),this.instanceID>0&&kn()){const a=`${this._logPrefix()} Multiple GoTrueClient instances detected in the same browser context. It is not an error, but this should be avoided as it may produce undefined behavior when used concurrently under the same storage key.`;console.warn(a),this.logDebugMessages&&console.trace(a)}if(this.persistSession=s.persistSession,this.autoRefreshToken=s.autoRefreshToken,this.admin=new Yce({url:s.url,headers:s.headers,fetch:s.fetch}),this.url=s.url,this.headers=s.headers,this.fetch=$B(s.fetch),this.lock=s.lock||tO,this.detectSessionInUrl=s.detectSessionInUrl,this.flowType=s.flowType,this.hasCustomAuthorizationHeader=s.hasCustomAuthorizationHeader,this.throwOnError=s.throwOnError,this.lockAcquireTimeout=s.lockAcquireTimeout,s.lock?this.lock=s.lock:this.persistSession&&kn()&&(!((r=globalThis==null?void 0:globalThis.navigator)===null||r===void 0)&&r.locks)?this.lock=Qce:this.lock=tO,this.jwks||(this.jwks={keys:[]},this.jwks_cached_at=Number.MIN_SAFE_INTEGER),this.mfa={verify:this._verify.bind(this),enroll:this._enroll.bind(this),unenroll:this._unenroll.bind(this),challenge:this._challenge.bind(this),listFactors:this._listFactors.bind(this),challengeAndVerify:this._challengeAndVerify.bind(this),getAuthenticatorAssuranceLevel:this._getAuthenticatorAssuranceLevel.bind(this),webauthn:new gue(this)},this.oauth={getAuthorizationDetails:this._getAuthorizationDetails.bind(this),approveAuthorization:this._approveAuthorization.bind(this),denyAuthorization:this._denyAuthorization.bind(this),listGrants:this._listOAuthGrants.bind(this),revokeGrant:this._revokeOAuthGrant.bind(this)},this.persistSession?(s.storage?this.storage=s.storage:MB()?this.storage=globalThis.localStorage:(this.memoryStorage={},this.storage=JP(this.memoryStorage)),s.userStorage&&(this.userStorage=s.userStorage)):(this.memoryStorage={},this.storage=JP(this.memoryStorage)),kn()&&globalThis.BroadcastChannel&&this.persistSession&&this.storageKey){try{this.broadcastChannel=new globalThis.BroadcastChannel(this.storageKey)}catch(a){console.error("Failed to create a new BroadcastChannel, multi-tab state changes will not be available",a)}(i=this.broadcastChannel)===null||i===void 0||i.addEventListener("message",async a=>{this._debug("received broadcast notification from other tab or client",a);try{await this._notifyAllSubscribers(a.data.event,a.data.session,!1)}catch(o){this._debug("#broadcastChannel","error",o)}})}this.initialize().catch(a=>{this._debug("#initialize()","error",a)})}isThrowOnErrorEnabled(){return this.throwOnError}_returnResult(t){if(this.throwOnError&&t&&t.error)throw t.error;return t}_logPrefix(){return`GoTrueClient@${this.storageKey}:${this.instanceID} (${OB}) ${new Date().toISOString()}`}_debug(...t){return this.logDebugMessages&&this.logger(this._logPrefix(),...t),this}async initialize(){return this.initializePromise?await this.initializePromise:(this.initializePromise=(async()=>await this._acquireLock(this.lockAcquireTimeout,async()=>await this._initialize()))(),await this.initializePromise)}async _initialize(){var t;try{let n={},r="none";if(kn()&&(n=Cce(window.location.href),this._isImplicitGrantCallback(n)?r="implicit":await this._isPKCECallback(n)&&(r="pkce")),kn()&&this.detectSessionInUrl&&r!=="none"){const{data:i,error:s}=await this._getSessionFromURL(n,r);if(s){if(this._debug("#_initialize()","error detecting session from URL",s),bce(s)){const l=(t=s.details)===null||t===void 0?void 0:t.code;if(l==="identity_already_exists"||l==="identity_not_found"||l==="single_identity_not_deletable")return{error:s}}return{error:s}}const{session:a,redirectType:o}=i;return this._debug("#_initialize()","detected session in URL",a,"redirect type",o),await this._saveSession(a),setTimeout(async()=>{o==="recovery"?await this._notifyAllSubscribers("PASSWORD_RECOVERY",a):await this._notifyAllSubscribers("SIGNED_IN",a)},0),{error:null}}return await this._recoverAndRefresh(),{error:null}}catch(n){return ve(n)?this._returnResult({error:n}):this._returnResult({error:new Lo("Unexpected error during initialization",n)})}finally{await this._handleVisibilityChange(),this._debug("#_initialize()","end")}}async signInAnonymously(t){var n,r,i;try{const s=await _e(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{data:(r=(n=t==null?void 0:t.options)===null||n===void 0?void 0:n.data)!==null&&r!==void 0?r:{},gotrue_meta_security:{captcha_token:(i=t==null?void 0:t.options)===null||i===void 0?void 0:i.captchaToken}},xform:hi}),{data:a,error:o}=s;
540if(o||!a)return this._returnResult({data:{user:null,session:null},error:o});const l=a.session,u=a.user;return a.session&&(await this._saveSession(a.session),await this._notifyAllSubscribers("SIGNED_IN",l)),this._returnResult({data:{user:u,session:l},error:null})}catch(s){if(ve(s))return this._returnResult({data:{user:null,session:null},error:s});throw s}}async signUp(t){var n,r,i;try{let s;if("email"in t){const{email:d,password:h,options:f}=t;let p=null,g=null;this.flowType==="pkce"&&([p,g]=await Yl(this.storage,this.storageKey)),s=await _e(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,redirectTo:f==null?void 0:f.emailRedirectTo,body:{email:d,password:h,data:(n=f==null?void 0:f.data)!==null&&n!==void 0?n:{},gotrue_meta_security:{captcha_token:f==null?void 0:f.captchaToken},code_challenge:p,code_challenge_method:g},xform:hi})}else if("phone"in t){const{phone:d,password:h,options:f}=t;s=await _e(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{phone:d,password:h,data:(r=f==null?void 0:f.data)!==null&&r!==void 0?r:{},channel:(i=f==null?void 0:f.channel)!==null&&i!==void 0?i:"sms",gotrue_meta_security:{captcha_token:f==null?void 0:f.captchaToken}},xform:hi})}else throw new Lm("You must provide either an email or phone number and a password");const{data:a,error:o}=s;if(o||!a)return await wn(this.storage,`${this.storageKey}-code-verifier`),this._returnResult({data:{user:null,session:null},error:o});const l=a.session,u=a.user;return a.session&&(await this._saveSession(a.session),await this._notifyAllSubscribers("SIGNED_IN",l)),this._returnResult({data:{user:u,session:l},error:null})}catch(s){if(await wn(this.storage,`${this.storageKey}-code-verifier`),ve(s))return this._returnResult({data:{user:null,session:null},error:s});throw s}}async signInWithPassword(t){try{let n;if("email"in t){const{email:s,password:a,options:o}=t;n=await _e(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{email:s,password:a,gotrue_meta_security:{captcha_token:o==null?void 0:o.captchaToken}},xform:QP})}else if("phone"in t){const{phone:s,password:a,options:o}=t;n=await _e(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{phone:s,password:a,gotrue_meta_security:{captcha_token:o==null?void 0:o.captchaToken}},xform:QP})}else throw new Lm("You must provide either an email or phone number and a password");const{data:r,error:i}=n;if(i)return this._returnResult({data:{user:null,session:null},error:i});if(!r||!r.session||!r.user){const s=new Gl;return this._returnResult({data:{user:null,session:null},error:s})}return r.session&&(await this._saveSession(r.session),await this._notifyAllSubscribers("SIGNED_IN",r.session)),this._returnResult({data:Object.assign({user:r.user,session:r.session},r.weak_password?{weakPassword:r.weak_password}:null),error:i})}catch(n){if(ve(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async signInWithOAuth(t){var n,r,i,s;return await this._handleProviderSignIn(t.provider,{redirectTo:(n=t.options)===null||n===void 0?void 0:n.redirectTo,scopes:(r=t.options)===null||r===void 0?void 0:r.scopes,queryParams:(i=t.options)===null||i===void 0?void 0:i.queryParams,skipBrowserRedirect:(s=t.options)===null||s===void 0?void 0:s.skipBrowserRedirect})}async exchangeCodeForSession(t){return await this.initializePromise,this._acquireLock(this.lockAcquireTimeout,async()=>this._exchangeCodeForSession(t))}async signInWithWeb3(t){const{chain:n}=t;switch(n){case"ethereum":return await this.signInWithEthereum(t);case"solana":return await this.signInWithSolana(t);default:throw new Error(`@supabase/auth-js: Unsupported chain "${n}"`)}}async signInWithEthereum(t){var n,r,i,s,a,o,l,u,d,h,f;let p,g;if("message"in t)p=t.message,g=t.signature;else{const{chain:m,wallet:y,statement:v,options:x}=t;let b;if(kn())if(typeof y=="object")b=y;else{const T=window;if("ethereum"in T&&typeof T.ethereum=="object"&&"request"in T.ethereum&&typeof T.ethereum.request=="function")b=T.ethereum;else throw new Error("@supabase/auth-js: No compatible Ethereum wallet interface on the window object (window.ethereum) detected. Make sure the user already has a wallet installed and connected for this app. Prefer passing the wallet interface object directly to signInWithWeb3({ chain: 'ethereum', wallet: resolvedUserWallet }) instead.")}else{if(typeof y!="object"||!(x!=null&&x.url))throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");b=y}const S=new URL((n=x==null?void 0:x.url)!==null&&n!==void 0?n:window.location.href),k=await b.request({method:"eth_requestAccounts"}).then(T=>T).catch(()=>{throw new Error("@supabase/auth-js: Wallet method eth_requestAccounts is missing or invalid")});if(!k||k.length===0)throw new Error("@supabase/auth-js: No accounts available. Please ensure the wallet is connected.");const j=LB(k[0]);let _=(r=x==null?void 0:x.signInWithEthereum)===null||r===void 0?void 0:r.chainId;if(!_){const T=await b.request({method:"eth_chainId"});_=Jce(T)}const E={domain:S.host,address:j,statement:v,uri:S.href,version:"1",chainId:_,nonce:(i=x==null?void 0:x.signInWithEthereum)===null||i===void 0?void 0:i.nonce,issuedAt:(a=(s=x==null?void 0:x.signInWithEthereum)===null||s===void 0?void 0:s.issuedAt)!==null&&a!==void 0?a:new Date,expirationTime:(o=x==null?void 0:x.signInWithEthereum)===null||o===void 0?void 0:o.expirationTime,notBefore:(l=x==null?void 0:x.signInWithEthereum)===null||l===void 0?void 0:l.notBefore,requestId:(u=x==null?void 0:x.signInWithEthereum)===null||u===void 0?void 0:u.requestId,resources:(d=x==null?void 0:x.signInWithEthereum)===null||d===void 0?void 0:d.resources};p=tue(E),g=await b.request({method:"personal_sign",params:[eue(p),j]})}try{const{data:m,error:y}=await _e(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"ethereum",message:p,signature:g}
540,!((h=t.options)===null||h===void 0)&&h.captchaToken?{gotrue_meta_security:{captcha_token:(f=t.options)===null||f===void 0?void 0:f.captchaToken}}:null),xform:hi});if(y)throw y;if(!m||!m.session||!m.user){const v=new Gl;return this._returnResult({data:{user:null,session:null},error:v})}return m.session&&(await this._saveSession(m.session),await this._notifyAllSubscribers("SIGNED_IN",m.session)),this._returnResult({data:Object.assign({},m),error:y})}catch(m){if(ve(m))return this._returnResult({data:{user:null,session:null},error:m});throw m}}async signInWithSolana(t){var n,r,i,s,a,o,l,u,d,h,f,p;let g,m;if("message"in t)g=t.message,m=t.signature;else{const{chain:y,wallet:v,statement:x,options:b}=t;let S;if(kn())if(typeof v=="object")S=v;else{const j=window;if("solana"in j&&typeof j.solana=="object"&&("signIn"in j.solana&&typeof j.solana.signIn=="function"||"signMessage"in j.solana&&typeof j.solana.signMessage=="function"))S=j.solana;else throw new Error("@supabase/auth-js: No compatible Solana wallet interface on the window object (window.solana) detected. Make sure the user already has a wallet installed and connected for this app. Prefer passing the wallet interface object directly to signInWithWeb3({ chain: 'solana', wallet: resolvedUserWallet }) instead.")}else{if(typeof v!="object"||!(b!=null&&b.url))throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");S=v}const k=new URL((n=b==null?void 0:b.url)!==null&&n!==void 0?n:window.location.href);if("signIn"in S&&S.signIn){const j=await S.signIn(Object.assign(Object.assign(Object.assign({issuedAt:new Date().toISOString()},b==null?void 0:b.signInWithSolana),{version:"1",domain:k.host,uri:k.href}),x?{statement:x}:null));let _;if(Array.isArray(j)&&j[0]&&typeof j[0]=="object")_=j[0];else if(j&&typeof j=="object"&&"signedMessage"in j&&"signature"in j)_=j;else throw new Error("@supabase/auth-js: Wallet method signIn() returned unrecognized value");if("signedMessage"in _&&"signature"in _&&(typeof _.signedMessage=="string"||_.signedMessage instanceof Uint8Array)&&_.signature instanceof Uint8Array)g=typeof _.signedMessage=="string"?_.signedMessage:new TextDecoder().decode(_.signedMessage),m=_.signature;else throw new Error("@supabase/auth-js: Wallet method signIn() API returned object without signedMessage and signature fields")}else{if(!("signMessage"in S)||typeof S.signMessage!="function"||!("publicKey"in S)||typeof S!="object"||!S.publicKey||!("toBase58"in S.publicKey)||typeof S.publicKey.toBase58!="function")throw new Error("@supabase/auth-js: Wallet does not have a compatible signMessage() and publicKey.toBase58() API");g=[`${k.host} wants you to sign in with your Solana account:`,S.publicKey.toBase58(),...x?["",x,""]:[""],"Version: 1",`URI: ${k.href}`,`Issued At: ${(i=(r=b==null?void 0:b.signInWithSolana)===null||r===void 0?void 0:r.issuedAt)!==null&&i!==void 0?i:new Date().toISOString()}`,...!((s=b==null?void 0:b.signInWithSolana)===null||s===void 0)&&s.notBefore?[`Not Before: ${b.signInWithSolana.notBefore}`]:[],...!((a=b==null?void 0:b.signInWithSolana)===null||a===void 0)&&a.expirationTime?[`Expiration Time: ${b.signInWithSolana.expirationTime}`]:[],...!((o=b==null?void 0:b.signInWithSolana)===null||o===void 0)&&o.chainId?[`Chain ID: ${b.signInWithSolana.chainId}`]:[],...!((l=b==null?void 0:b.signInWithSolana)===null||l===void 0)&&l.nonce?[`Nonce: ${b.signInWithSolana.nonce}`]:[],...!((u=b==null?void 0:b.signInWithSolana)===null||u===void 0)&&u.requestId?[`Request ID: ${b.signInWithSolana.requestId}`]:[],...!((h=(d=b==null?void 0:b.signInWithSolana)===null||d===void 0?void 0:d.resources)===null||h===void 0)&&h.length?["Resources",...b.signInWithSolana.resources.map(_=>`- ${_}`)]:[]].join(` 541`);const j=await S.signMessage(new TextEncoder().encode(g),"utf8");if(!j||!(j instanceof Uint8Array))throw new Error("@supabase/auth-js: Wallet signMessage() API returned an recognized value");m=j}}try{const{data:y,error:v}=await _e(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"solana",message:g,signature:zo(m)},!((f=t.options)===null||f===void 0)&&f.captchaToken?{gotrue_meta_security:{captcha_token:(p=t.options)===null||p===void 0?void 0:p.captchaToken}}:null),xform:hi});if(v)throw v;if(!y||!y.session||!y.user){const x=new Gl;return this._returnResult({data:{user:null,session:null},error:x})}return y.session&&(await this._saveSession(y.session),await this._notifyAllSubscribers("SIGNED_IN",y.session)),this._returnResult({data:Object.assign({},y),error:v})}catch(y){if(ve(y))return this._returnResult({data:{user:null,session:null},error:y});throw y}}async _exchangeCodeForSession(t){const n=await _o(this.storage,`${this.storageKey}-code-verifier`),[r,i]=(n??"").split("/");try{if(!r&&this.flowType==="pkce")throw new wce;const{data:s,error:a}=await _e(this.fetch,"POST",`${this.url}/token?grant_type=pkce`,{headers:this.headers,body:{auth_code:t,code_verifier:r},xform:hi});if(await wn(this.storage,`${this.storageKey}-code-verifier`),a)throw a;if(!s||!s.session||!s.user){const o=new Gl;return this._returnResult({data:{user:null,session:null,redirectType:null},error:o})}return s.session&&(await this._saveSession(s.session),await this._notifyAllSubscribers("SIGNED_IN",s.session)),this._returnResult({data:Object.assign(Object.assign({},s),{redirectType:i??null}),error:a})}catch(s){if(await wn(this.storage,`${this.storageKey}-code-verifier`),ve(s))return this._returnResult({data:{user:null,session:null,redirectType:null},error:s});throw s}}async signInWithIdToken(t){try{const{options:n,provider:r,token:i,access_token:s,nonce:a}=t,o=await _e(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,body:{provider:r,id_token:i,access_token:s,nonce:a,gotrue_meta_security:{captcha_token:n==null?void 0:n.captchaToken}},xform:hi}),{data:l,error:u}=o;if(u)return this._returnResult({data:{user:null,session:null},error:u});if(!l||!l.session||!l.user){const d=new Gl;return this._returnResult({data:{user:null,session:null},error:d})}return l.session&&(await this._saveSession(l.session),await this._notifyAllSubscribers("SIGNED_IN",l.session)),this._returnResult({data:l,error:u})}catch(n){if(ve(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async signInWithOtp(t){var n,r,i,s,a;try{if("email"in t){const{email:o,options:l}=t;let u=null,d=null;this.flowType==="pkce"&&([u,d]=await Yl(this.storage,this.storageKey));const{error:h}=await _e(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{email:o,data:(n=l==null?void 0:l.data)!==null&&n!==void 0?n:{},create_user:(r=l==null?void 0:l.shouldCreateUser)!==null&&r!==void 0?r:!0,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken},code_challenge:u,code_challenge_method:d},redirectTo:l==null?void 0:l.emailRedirectTo});return this._returnResult({data:{user:null,session:null},error:h})}if("phone"in t){const{phone:o,options:l}=t,{data:u,error:d}=await _e(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{phone:o,data:(i=l==null?void 0:l.data)!==null&&i!==void 0?i:{},create_user:(s=l==null?void 0:l.shouldCreateUser)!==null&&s!==void 0?s:!0,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken},channel:(a=l==null?void 0:l.channel)!==null&&a!==void 0?a:"sms"}});return this._returnResult({data:{user:null,session:null,messageId:u==null?void 0:u.message_id},error:d})}throw new Lm("You must provide either an email or phone number.")}catch(o){if(await wn(this.storage,`${this.storageKey}-code-verifier`),ve(o))return this._returnResult({data:{user:null,session:null},error:o});throw o}}async verifyOtp(t){var n,r;try{let i,s;"options"in t&&(i=(n=t.options)===null||n===void 0?void 0:n.redirectTo,s=(r=t.options)===null||r===void 0?void 0:r.captchaToken);const{data:a,error:o}=await _e(this.fetch,"POST",`${this.url}/verify`,{headers:this.headers,body:Object.assign(Object.assign({},t),{gotrue_meta_security:{captcha_token:s}}),redirectTo:i,xform:hi});if(o)throw o;if(!a)throw new Error("An error occurred on token verification.");const l=a.session,u=a.user;return l!=null&&l.access_token&&(await this._saveSession(l),await this._notifyAllSubscribers(t.type=="recovery"?"PASSWORD_RECOVERY":"SIGNED_IN",l)),this._returnResult({data:{user:u,session:l},error:null})}catch(i){if(ve(i))return this._returnResult({data:{user:null,session:null},error:i});throw i}}async signInWithSSO(t){var n,r,i,s,a;try{let o=null,l=null;this.flowType==="pkce"&&([o,l]=await Yl(this.storage,this.storageKey));const u=await _e(this.fetch,"POST",`${this.url}/sso`,{body:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},"providerId"in t?{provider_id:t.providerId}:null),"domain"in t?{domain:t.domain}:null),{redirect_to:(r=(n=t.options)===null||n===void 0?void 0:n.redirectTo)!==null&&r!==void 0?r:void 0}),!((i=t==null?void 0:t.options)===null||i===void 0)&&i.captchaToken?{gotrue_meta_security:{captcha_token:t.options.captchaToken}}
541:null),{skip_http_redirect:!0,code_challenge:o,code_challenge_method:l}),headers:this.headers,xform:Hce});return!((s=u.data)===null||s===void 0)&&s.url&&kn()&&!(!((a=t.options)===null||a===void 0)&&a.skipBrowserRedirect)&&window.location.assign(u.data.url),this._returnResult(u)}catch(o){if(await wn(this.storage,`${this.storageKey}-code-verifier`),ve(o))return this._returnResult({data:null,error:o});throw o}}async reauthenticate(){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._reauthenticate())}async _reauthenticate(){try{return await this._useSession(async t=>{const{data:{session:n},error:r}=t;if(r)throw r;if(!n)throw new pr;const{error:i}=await _e(this.fetch,"GET",`${this.url}/reauthenticate`,{headers:this.headers,jwt:n.access_token});return this._returnResult({data:{user:null,session:null},error:i})})}catch(t){if(ve(t))return this._returnResult({data:{user:null,session:null},error:t});throw t}}async resend(t){try{const n=`${this.url}/resend`;if("email"in t){const{email:r,type:i,options:s}=t,{error:a}=await _e(this.fetch,"POST",n,{headers:this.headers,body:{email:r,type:i,gotrue_meta_security:{captcha_token:s==null?void 0:s.captchaToken}},redirectTo:s==null?void 0:s.emailRedirectTo});return this._returnResult({data:{user:null,session:null},error:a})}else if("phone"in t){const{phone:r,type:i,options:s}=t,{data:a,error:o}=await _e(this.fetch,"POST",n,{headers:this.headers,body:{phone:r,type:i,gotrue_meta_security:{captcha_token:s==null?void 0:s.captchaToken}}});return this._returnResult({data:{user:null,session:null,messageId:a==null?void 0:a.message_id},error:o})}throw new Lm("You must provide either an email or phone number and a type")}catch(n){if(ve(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async getSession(){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>this._useSession(async n=>n))}async _acquireLock(t,n){this._debug("#_acquireLock","begin",t);try{if(this.lockAcquired){const r=this.pendingInLock.length?this.pendingInLock[this.pendingInLock.length-1]:Promise.resolve(),i=(async()=>(await r,await n()))();return this.pendingInLock.push((async()=>{try{await i}catch{}})()),i}return await this.lock(`lock:${this.storageKey}`,t,async()=>{this._debug("#_acquireLock","lock acquired for storage key",this.storageKey);try{this.lockAcquired=!0;const r=n();for(this.pendingInLock.push((async()=>{try{await r}catch{}})()),await r;this.pendingInLock.length;){const i=[...this.pendingInLock];await Promise.all(i),this.pendingInLock.splice(0,i.length)}return await r}finally{this._debug("#_acquireLock","lock released for storage key",this.storageKey),this.lockAcquired=!1}})}finally{this._debug("#_acquireLock","end")}}async _useSession(t){this._debug("#_useSession","begin");try{const n=await this.__loadSession();return await t(n)}finally{this._debug("#_useSession","end")}}async __loadSession(){this._debug("#__loadSession()","begin"),this.lockAcquired||this._debug("#__loadSession()","used outside of an acquired lock!",new Error().stack);try{let t=null;const n=await _o(this.storage,this.storageKey);if(this._debug("#getSession()","session from storage",n),n!==null&&(this._isValidSession(n)?t=n:(this._debug("#getSession()","session from storage is not valid"),await this._removeSession())),!t)return{data:{session:null},error:null};const r=t.expires_at?t.expires_at*1e3-Date.now()<Q0:!1;if(this._debug("#__loadSession()",`session has${r?"":" not"} expired`,"expires_at",t.expires_at),!r){if(this.userStorage){const a=await _o(this.userStorage,this.storageKey+"-user");a!=null&&a.user?t.user=a.user:t.user=ew()}if(this.storage.isServer&&t.user&&!t.user.__isUserNotAvailableProxy){const a={value:this.suppressGetSessionWarning};t.user=qce(t.user,a),a.value&&(this.suppressGetSessionWarning=!0)}return{data:{session:t},error:null}}const{data:i,error:s}=await this._callRefreshToken(t.refresh_token);return s?this._returnResult({data:{session:null},error:s}):this._returnResult({data:{session:i},error:null})}finally{this._debug("#__loadSession()","end")}}async getUser(t){if(t)return await this._getUser(t);await this.initializePromise;const n=await this._acquireLock(this.lockAcquireTimeout,async()=>await this._getUser());return n.data.user&&(this.suppressGetSessionWarning=!0),n}async _getUser(t){try{return t?await _e(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:t,xform:ba}):await this._useSession(async n=>{var r,i,s;const{data:a,error:o}=n;
541if(o)throw o;return!(!((r=a.session)===null||r===void 0)&&r.access_token)&&!this.hasCustomAuthorizationHeader?{data:{user:null},error:new pr}:await _e(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:(s=(i=a.session)===null||i===void 0?void 0:i.access_token)!==null&&s!==void 0?s:void 0,xform:ba})})}catch(n){if(ve(n))return Z0(n)&&(await this._removeSession(),await wn(this.storage,`${this.storageKey}-code-verifier`)),this._returnResult({data:{user:null},error:n});throw n}}async updateUser(t,n={}){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._updateUser(t,n))}async _updateUser(t,n={}){try{return await this._useSession(async r=>{const{data:i,error:s}=r;if(s)throw s;if(!i.session)throw new pr;const a=i.session;let o=null,l=null;this.flowType==="pkce"&&t.email!=null&&([o,l]=await Yl(this.storage,this.storageKey));const{data:u,error:d}=await _e(this.fetch,"PUT",`${this.url}/user`,{headers:this.headers,redirectTo:n==null?void 0:n.emailRedirectTo,body:Object.assign(Object.assign({},t),{code_challenge:o,code_challenge_method:l}),jwt:a.access_token,xform:ba});if(d)throw d;return a.user=u.user,await this._saveSession(a),await this._notifyAllSubscribers("USER_UPDATED",a),this._returnResult({data:{user:a.user},error:null})})}catch(r){if(await wn(this.storage,`${this.storageKey}-code-verifier`),ve(r))return this._returnResult({data:{user:null},error:r});throw r}}async setSession(t){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._setSession(t))}async _setSession(t){try{if(!t.access_token||!t.refresh_token)throw new pr;const n=Date.now()/1e3;let r=n,i=!0,s=null;const{payload:a}=Bm(t.access_token);if(a.exp&&(r=a.exp,i=r<=n),i){const{data:o,error:l}=await this._callRefreshToken(t.refresh_token);if(l)return this._returnResult({data:{user:null,session:null},error:l});if(!o)return{data:{user:null,session:null},error:null};s=o}else{const{data:o,error:l}=await this._getUser(t.access_token);if(l)return this._returnResult({data:{user:null,session:null},error:l});s={access_token:t.access_token,refresh_token:t.refresh_token,user:o.user,token_type:"bearer",expires_in:r-n,expires_at:r},await this._saveSession(s),await this._notifyAllSubscribers("SIGNED_IN",s)}return this._returnResult({data:{user:s.user,session:s},error:null})}catch(n){if(ve(n))return this._returnResult({data:{session:null,user:null},error:n});throw n}}async refreshSession(t){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._refreshSession(t))}async _refreshSession(t){try{return await this._useSession(async n=>{var r;if(!t){const{data:a,error:o}=n;if(o)throw o;t=(r=a.session)!==null&&r!==void 0?r:void 0}if(!(t!=null&&t.refresh_token))throw new pr;const{data:i,error:s}=await this._callRefreshToken(t.refresh_token);return s?this._returnResult({data:{user:null,session:null},error:s}):i?this._returnResult({data:{user:i.user,session:i},error:null}):this._returnResult({data:{user:null,session:null},error:null})})}catch(n){if(ve(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async _getSessionFromURL(t,n){try{if(!kn())throw new Fm("No browser detected.");if(t.error||t.error_description||t.error_code)throw new Fm(t.error_description||"Error in URL with unspecified error_description",{error:t.error||"unspecified_error",code:t.error_code||"unspecified_code"});switch(n){case"implicit":if(this.flowType==="pkce")throw new WP("Not a valid PKCE flow url.");break;case"pkce":if(this.flowType==="implicit")throw new Fm("Not a valid implicit grant flow url.");break;default:}if(n==="pkce"){if(this._debug("#_initialize()","begin","is PKCE flow",!0),!t.code)throw new WP("No code detected.");const{data:x,error:b}=await this._exchangeCodeForSession(t.code);if(b)throw b;const S=new URL(window.location.href);return S.searchParams.delete("code"),window.history.replaceState(window.history.state,"",S.toString()),{data:{session:x.session,redirectType:null},error:null}}const{provider_token:r,provider_refresh_token:i,access_token:s,refresh_token:a,expires_in:o,expires_at:l,token_type:u}=t;if(!s||!o||!a||!u)throw new Fm("No session defined in URL");const d=Math.round(Date.now()/1e3),h=parseInt(o);let f=d+h;l&&(f=parseInt(l));const p=f-d;
541p*1e3<=ic&&console.warn(`@supabase/gotrue-js: Session as retrieved from URL expires in ${p}s, should have been closer to ${h}s`);const g=f-h;d-g>=120?console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued over 120s ago, URL could be stale",g,f,d):d-g<0&&console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued in the future? Check the device clock for skew",g,f,d);const{data:m,error:y}=await this._getUser(s);if(y)throw y;const v={provider_token:r,provider_refresh_token:i,access_token:s,expires_in:h,expires_at:f,refresh_token:a,token_type:u,user:m.user};return window.location.hash="",this._debug("#_getSessionFromURL()","clearing window.location.hash"),this._returnResult({data:{session:v,redirectType:t.type},error:null})}catch(r){if(ve(r))return this._returnResult({data:{session:null,redirectType:null},error:r});throw r}}_isImplicitGrantCallback(t){return typeof this.detectSessionInUrl=="function"?this.detectSessionInUrl(new URL(window.location.href),t):!!(t.access_token||t.error_description)}async _isPKCECallback(t){const n=await _o(this.storage,`${this.storageKey}-code-verifier`);return!!(t.code&&n)}async signOut(t={scope:"global"}){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._signOut(t))}async _signOut({scope:t}={scope:"global"}){return await this._useSession(async n=>{var r;const{data:i,error:s}=n;if(s&&!Z0(s))return this._returnResult({error:s});const a=(r=i.session)===null||r===void 0?void 0:r.access_token;if(a){const{error:o}=await this.admin.signOut(a,t);if(o&&!(xce(o)&&(o.status===404||o.status===401||o.status===403)||Z0(o)))return this._returnResult({error:o})}return t!=="others"&&(await this._removeSession(),await wn(this.storage,`${this.storageKey}-code-verifier`)),this._returnResult({error:null})})}onAuthStateChange(t){const n=Nce(),r={id:n,callback:t,unsubscribe:()=>{this._debug("#unsubscribe()","state change callback with id removed",n),this.stateChangeEmitters.delete(n)}};return this._debug("#onAuthStateChange()","registered callback with id",n),this.stateChangeEmitters.set(n,r),(async()=>(await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>{this._emitInitialSession(n)})))(),{data:{subscription:r}}}async _emitInitialSession(t){return await this._useSession(async n=>{var r,i;try{const{data:{session:s},error:a}=n;if(a)throw a;await((r=this.stateChangeEmitters.get(t))===null||r===void 0?void 0:r.callback("INITIAL_SESSION",s)),this._debug("INITIAL_SESSION","callback id",t,"session",s)}catch(s){await((i=this.stateChangeEmitters.get(t))===null||i===void 0?void 0:i.callback("INITIAL_SESSION",null)),this._debug("INITIAL_SESSION","callback id",t,"error",s),console.error(s)}})}async resetPasswordForEmail(t,n={}){let r=null,i=null;this.flowType==="pkce"&&([r,i]=await Yl(this.storage,this.storageKey,!0));try{return await _e(this.fetch,"POST",`${this.url}/recover`,{body:{email:t,code_challenge:r,code_challenge_method:i,gotrue_meta_security:{captcha_token:n.captchaToken}},headers:this.headers,redirectTo:n.redirectTo})}catch(s){if(await wn(this.storage,`${this.storageKey}-code-verifier`),ve(s))return this._returnResult({data:null,error:s});throw s}}async getUserIdentities(){var t;try{const{data:n,error:r}=await this.getUser();if(r)throw r;return this._returnResult({data:{identities:(t=n.user.identities)!==null&&t!==void 0?t:[]},error:null})}catch(n){if(ve(n))return this._returnResult({data:null,error:n});throw n}}async linkIdentity(t){return"token"in t?this.linkIdentityIdToken(t):this.linkIdentityOAuth(t)}async linkIdentityOAuth(t){var n;try{const{data:r,error:i}=await this._useSession(async s=>{var a,o,l,u,d;const{data:h,error:f}=s;if(f)throw f;const p=await this._getUrlForProvider(`${this.url}/user/identities/authorize`,t.provider,{redirectTo:(a=t.options)===null||a===void 0?void 0:a.redirectTo,scopes:(o=t.options)===null||o===void 0?void 0:o.scopes,queryParams:(l=t.options)===null||l===void 0?void 0:l.queryParams,skipBrowserRedirect:!0});return await _e(this.fetch,"GET",p,{headers:this.headers,jwt:(d=(u=h.session)===null||u===void 0?void 0:u.access_token)!==null&&d!==void 0?d:void 0})});if(i)throw i;return kn()&&!(!((n=t.options)===null||n===void 0)&&n.skipBrowserRedirect)&&window.location.assign(r==null?void 0:r.url),this._returnResult({data:{provider:t.provider,url:r==null?void 0:r.url},error:null})}catch(r){if(ve(r))return this._returnResult({data:{provider:t.provider,url:null},error:r});throw r}}async linkIdentityIdToken(t){return await this._useSession(async n=>{var r;try{const{error:i,data:{session:s}}=n;
541if(i)throw i;const{options:a,provider:o,token:l,access_token:u,nonce:d}=t,h=await _e(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,jwt:(r=s==null?void 0:s.access_token)!==null&&r!==void 0?r:void 0,body:{provider:o,id_token:l,access_token:u,nonce:d,link_identity:!0,gotrue_meta_security:{captcha_token:a==null?void 0:a.captchaToken}},xform:hi}),{data:f,error:p}=h;return p?this._returnResult({data:{user:null,session:null},error:p}):!f||!f.session||!f.user?this._returnResult({data:{user:null,session:null},error:new Gl}):(f.session&&(await this._saveSession(f.session),await this._notifyAllSubscribers("USER_UPDATED",f.session)),this._returnResult({data:f,error:p}))}catch(i){if(await wn(this.storage,`${this.storageKey}-code-verifier`),ve(i))return this._returnResult({data:{user:null,session:null},error:i});throw i}})}async unlinkIdentity(t){try{return await this._useSession(async n=>{var r,i;const{data:s,error:a}=n;if(a)throw a;return await _e(this.fetch,"DELETE",`${this.url}/user/identities/${t.identity_id}`,{headers:this.headers,jwt:(i=(r=s.session)===null||r===void 0?void 0:r.access_token)!==null&&i!==void 0?i:void 0})})}catch(n){if(ve(n))return this._returnResult({data:null,error:n});throw n}}async _refreshAccessToken(t){const n=`#_refreshAccessToken(${t.substring(0,5)}...)`;this._debug(n,"begin");try{const r=Date.now();return await Oce(async i=>(i>0&&await Pce(200*Math.pow(2,i-1)),this._debug(n,"refreshing attempt",i),await _e(this.fetch,"POST",`${this.url}/token?grant_type=refresh_token`,{body:{refresh_token:t},headers:this.headers,xform:hi})),(i,s)=>{const a=200*Math.pow(2,i);return s&&J0(s)&&Date.now()+a-r<ic})}catch(r){if(this._debug(n,"error",r),ve(r))return this._returnResult({data:{session:null,user:null},error:r});throw r}finally{this._debug(n,"end")}}_isValidSession(t){return typeof t=="object"&&t!==null&&"access_token"in t&&"refresh_token"in t&&"expires_at"in t}async _handleProviderSignIn(t,n){const r=await this._getUrlForProvider(`${this.url}/authorize`,t,{redirectTo:n.redirectTo,scopes:n.scopes,queryParams:n.queryParams});return this._debug("#_handleProviderSignIn()","provider",t,"options",n,"url",r),kn()&&!n.skipBrowserRedirect&&window.location.assign(r),{data:{provider:t,url:r},error:null}}async _recoverAndRefresh(){var t,n;const r="#_recoverAndRefresh()";this._debug(r,"begin");try{const i=await _o(this.storage,this.storageKey);if(i&&this.userStorage){let a=await _o(this.userStorage,this.storageKey+"-user");!this.storage.isServer&&Object.is(this.storage,this.userStorage)&&!a&&(a={user:i.user},await sc(this.userStorage,this.storageKey+"-user",a)),i.user=(t=a==null?void 0:a.user)!==null&&t!==void 0?t:ew()}else if(i&&!i.user&&!i.user){const a=await _o(this.storage,this.storageKey+"-user");a&&(a!=null&&a.user)?(i.user=a.user,await wn(this.storage,this.storageKey+"-user"),await sc(this.storage,this.storageKey,i)):i.user=ew()}if(this._debug(r,"session from storage",i),!this._isValidSession(i)){this._debug(r,"session is not valid"),i!==null&&await this._removeSession();return}const s=((n=i.expires_at)!==null&&n!==void 0?n:1/0)*1e3-Date.now()<Q0;if(this._debug(r,`session has${s?"":" not"} expired with margin of ${Q0}s`),s){if(this.autoRefreshToken&&i.refresh_token){const{error:a}=await this._callRefreshToken(i.refresh_token);a&&(console.error(a),J0(a)||(this._debug(r,"refresh failed with a non-retryable error, removing the session",a),await this._removeSession()))}}else if(i.user&&i.user.__isUserNotAvailableProxy===!0)try{const{data:a,error:o}=await this._getUser(i.access_token);!o&&(a!=null&&a.user)?(i.user=a.user,await this._saveSession(i),await this._notifyAllSubscribers("SIGNED_IN",i)):this._debug(r,"could not get user data, skipping SIGNED_IN notification")}catch(a){console.error("Error getting user data:",a),this._debug(r,"error getting user data, skipping SIGNED_IN notification",a)}else await this._notifyAllSubscribers("SIGNED_IN",i)}catch(i){this._debug(r,"error",i),console.error(i);return}finally{this._debug(r,"end")}}async _callRefreshToken(t){var n,r;if(!t)throw new pr;if(this.refreshingDeferred)return this.refreshingDeferred.promise;const i=`#_callRefreshToken(${t.substring(0,5)}...)`;this._debug(i,"begin");try{this.refreshingDeferred=new Px;const{data:s,error:a}=await this._refreshAccessToken(t);if(a)throw a;if(!s.session)throw new pr;await this._saveSession(s.session),await this._notifyAllSubscribers("TOKEN_REFRESHED",s.session);const o={data:s.session,error:null};return this.refreshingDeferred.resolve(o),o}catch(s){if(this._debug(i,"error",s),ve(s)){const a={data:null,error:s};return J0(s)||await this._removeSession(),(n=this.refreshingDeferred)===null||n===void 0||n.resolve(a),a}throw(r=this.refreshingDeferred)===null||r===void 0||r.reject(s),s}finally{this.refreshingDeferred=null,this._debug(i,"end")}}async _notifyAllSubscribers(t,n,r=!0){const i=`#_notifyAllSubscribers(${t})`;this._debug(i,"begin",n,`broadcast = ${r}`);try{this.broadcastChannel&&r&&this.broadcastChannel.postMessage({event:t,session:n});const s=[],a=Array.from(this.stateChangeEmitters.values()).map(async o=>{try{await o.callback(t,n)}catch(l){s.push(l)}});if(await Promise.all(a),s.length>0){for(let o=0;o<s.length;o+=1)console.error(s[o]);throw s[0]}}finally{this._debug(i,"end")}}async _saveSession(t){this._debug("#_saveSession()",t),this.suppressGetSessionWarning=!0,await wn(this.storage,`${this.storageKey}-code-verifier`);const n=Object.assign({},t),r=n.user&&n.user.__isUserNotAvailableProxy===!0;if(this.userStorage){!r&&n.user&&await sc(this.userStorage,this.storageKey+"-user",{user:n.user});const i=Object.assign({},n);delete i.user;const s=YP(i);await sc(this.storage,this.storageKey,s)}else{const i=YP(n);await sc(this.storage,this.storageKey,i)}}async _removeSession(){this._debug("#_removeSession()"),this.suppressGetSessionWarning=!1,await wn(this.storage,this.storageKey),await wn(this.storage,this.storageKey+"-code-verifier"),await wn(this.storage,this.storageKey+"-user"),this.userStorage&&await wn(this.userStorage,this.storageKey+"-user"),await this._notifyAllSubscribers("SIGNED_OUT",null)}_removeVisibilityChangedCallback(){this._debug("#_removeVisibilityChangedCallback()");const t=this.visibilityChangedCallback;this.visibilityChangedCallback=null;try{t&&kn()&&(window!=null&&window.removeEventListener)&&window.removeEventListener("visibilitychange",t)}
541catch(n){console.error("removing visibilitychange callback failed",n)}}async _startAutoRefresh(){await this._stopAutoRefresh(),this._debug("#_startAutoRefresh()");const t=setInterval(()=>this._autoRefreshTokenTick(),ic);this.autoRefreshTicker=t,t&&typeof t=="object"&&typeof t.unref=="function"?t.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(t);const n=setTimeout(async()=>{await this.initializePromise,await this._autoRefreshTokenTick()},0);this.autoRefreshTickTimeout=n,n&&typeof n=="object"&&typeof n.unref=="function"?n.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(n)}async _stopAutoRefresh(){this._debug("#_stopAutoRefresh()");const t=this.autoRefreshTicker;this.autoRefreshTicker=null,t&&clearInterval(t);const n=this.autoRefreshTickTimeout;this.autoRefreshTickTimeout=null,n&&clearTimeout(n)}async startAutoRefresh(){this._removeVisibilityChangedCallback(),await this._startAutoRefresh()}async stopAutoRefresh(){this._removeVisibilityChangedCallback(),await this._stopAutoRefresh()}async _autoRefreshTokenTick(){this._debug("#_autoRefreshTokenTick()","begin");try{await this._acquireLock(0,async()=>{try{const t=Date.now();try{return await this._useSession(async n=>{const{data:{session:r}}=n;if(!r||!r.refresh_token||!r.expires_at){this._debug("#_autoRefreshTokenTick()","no session");return}const i=Math.floor((r.expires_at*1e3-t)/ic);this._debug("#_autoRefreshTokenTick()",`access token expires in ${i} ticks, a tick lasts ${ic}ms, refresh threshold is ${Hk} ticks`),i<=Hk&&await this._callRefreshToken(r.refresh_token)})}catch(n){console.error("Auto refresh tick failed with error. This is likely a transient error.",n)}}finally{this._debug("#_autoRefreshTokenTick()","end")}})}catch(t){if(t.isAcquireTimeout||t instanceof DB)this._debug("auto refresh token tick lock not available");else throw t}}async _handleVisibilityChange(){if(this._debug("#_handleVisibilityChange()"),!kn()||!(window!=null&&window.addEventListener))return this.autoRefreshToken&&this.startAutoRefresh(),!1;try{this.visibilityChangedCallback=async()=>{try{await this._onVisibilityChanged(!1)}catch(t){this._debug("#visibilityChangedCallback","error",t)}},window==null||window.addEventListener("visibilitychange",this.visibilityChangedCallback),await this._onVisibilityChanged(!0)}catch(t){console.error("_handleVisibilityChange",t)}}async _onVisibilityChanged(t){const n=`#_onVisibilityChanged(${t})`;this._debug(n,"visibilityState",document.visibilityState),document.visibilityState==="visible"?(this.autoRefreshToken&&this._startAutoRefresh(),t||(await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>{if(document.visibilityState!=="visible"){this._debug(n,"acquired the lock to recover the session, but the browser visibilityState is no longer visible, aborting");return}await this._recoverAndRefresh()}))):document.visibilityState==="hidden"&&this.autoRefreshToken&&this._stopAutoRefresh()}async _getUrlForProvider(t,n,r){const i=[`provider=${encodeURIComponent(n)}`];if(r!=null&&r.redirectTo&&i.push(`redirect_to=${encodeURIComponent(r.redirectTo)}`),r!=null&&r.scopes&&i.push(`scopes=${encodeURIComponent(r.scopes)}`),this.flowType==="pkce"){const[s,a]=await Yl(this.storage,this.storageKey),o=new URLSearchParams({code_challenge:`${encodeURIComponent(s)}`,code_challenge_method:`${encodeURIComponent(a)}`});i.push(o.toString())}if(r!=null&&r.queryParams){const s=new URLSearchParams(r.queryParams);i.push(s.toString())}return r!=null&&r.skipBrowserRedirect&&i.push(`skip_http_redirect=${r.skipBrowserRedirect}`),`${t}?${i.join("&")}`}async _unenroll(t){try{return await this._useSession(async n=>{var r;const{data:i,error:s}=n;return s?this._returnResult({data:null,error:s}):await _e(this.fetch,"DELETE",`${this.url}/factors/${t.factorId}`,{headers:this.headers,jwt:(r=i==null?void 0:i.session)===null||r===void 0?void 0:r.access_token})})}catch(n){if(ve(n))return this._returnResult({data:null,error:n});throw n}}async _enroll(t){try{return await this._useSession(async n=>{var r,i;const{data:s,error:a}=n;
541if(a)return this._returnResult({data:null,error:a});const o=Object.assign({friendly_name:t.friendlyName,factor_type:t.factorType},t.factorType==="phone"?{phone:t.phone}:t.factorType==="totp"?{issuer:t.issuer}:{}),{data:l,error:u}=await _e(this.fetch,"POST",`${this.url}/factors`,{body:o,headers:this.headers,jwt:(r=s==null?void 0:s.session)===null||r===void 0?void 0:r.access_token});return u?this._returnResult({data:null,error:u}):(t.factorType==="totp"&&l.type==="totp"&&(!((i=l==null?void 0:l.totp)===null||i===void 0)&&i.qr_code)&&(l.totp.qr_code=`data:image/svg+xml;utf-8,${l.totp.qr_code}`),this._returnResult({data:l,error:null}))})}catch(n){if(ve(n))return this._returnResult({data:null,error:n});throw n}}async _verify(t){return this._acquireLock(this.lockAcquireTimeout,async()=>{try{return await this._useSession(async n=>{var r;const{data:i,error:s}=n;if(s)return this._returnResult({data:null,error:s});const a=Object.assign({challenge_id:t.challengeId},"webauthn"in t?{webauthn:Object.assign(Object.assign({},t.webauthn),{credential_response:t.webauthn.type==="create"?lue(t.webauthn.credential_response):cue(t.webauthn.credential_response)})}:{code:t.code}),{data:o,error:l}=await _e(this.fetch,"POST",`${this.url}/factors/${t.factorId}/verify`,{body:a,headers:this.headers,jwt:(r=i==null?void 0:i.session)===null||r===void 0?void 0:r.access_token});return l?this._returnResult({data:null,error:l}):(await this._saveSession(Object.assign({expires_at:Math.round(Date.now()/1e3)+o.expires_in},o)),await this._notifyAllSubscribers("MFA_CHALLENGE_VERIFIED",o),this._returnResult({data:o,error:l}))})}catch(n){if(ve(n))return this._returnResult({data:null,error:n});throw n}})}async _challenge(t){return this._acquireLock(this.lockAcquireTimeout,async()=>{try{return await this._useSession(async n=>{var r;const{data:i,error:s}=n;if(s)return this._returnResult({data:null,error:s});const a=await _e(this.fetch,"POST",`${this.url}/factors/${t.factorId}/challenge`,{body:t,headers:this.headers,jwt:(r=i==null?void 0:i.session)===null||r===void 0?void 0:r.access_token});if(a.error)return a;const{data:o}=a;if(o.type!=="webauthn")return{data:o,error:null};switch(o.webauthn.type){case"create":return{data:Object.assign(Object.assign({},o),{webauthn:Object.assign(Object.assign({},o.webauthn),{credential_options:Object.assign(Object.assign({},o.webauthn.credential_options),{publicKey:aue(o.webauthn.credential_options.publicKey)})})}),error:null};case"request":return{data:Object.assign(Object.assign({},o),{webauthn:Object.assign(Object.assign({},o.webauthn),{credential_options:Object.assign(Object.assign({},o.webauthn.credential_options),{publicKey:oue(o.webauthn.credential_options.publicKey)})})}),error:null}}})}catch(n){if(ve(n))return this._returnResult({data:null,error:n});throw n}})}async _challengeAndVerify(t){const{data:n,error:r}=await this._challenge({factorId:t.factorId});return r?this._returnResult({data:null,error:r}):await this._verify({factorId:t.factorId,challengeId:n.id,code:t.code})}async _listFactors(){var t;const{data:{user:n},error:r}=await this.getUser();if(r)return{data:null,error:r};const i={all:[],phone:[],totp:[],webauthn:[]};for(const s of(t=n==null?void 0:n.factors)!==null&&t!==void 0?t:[])i.all.push(s),s.status==="verified"&&i[s.factor_type].push(s);return{data:i,error:null}}async _getAuthenticatorAssuranceLevel(t){var n,r,i,s;if(t)try{const{payload:p}=Bm(t);let g=null;p.aal&&(g=p.aal);let m=g;const{data:{user:y},error:v}=await this.getUser(t);if(v)return this._returnResult({data:null,error:v});((r=(n=y==null?void 0:y.factors)===null||n===void 0?void 0:n.filter(S=>S.status==="verified"))!==null&&r!==void 0?r:[]).length>0&&(m="aal2");const b=p.amr||[];return{data:{currentLevel:g,nextLevel:m,currentAuthenticationMethods:b},error:null}}catch(p){if(ve(p))return this._returnResult({data:null,error:p});throw p}const{data:{session:a},error:o}
541=await this.getSession();if(o)return this._returnResult({data:null,error:o});if(!a)return{data:{currentLevel:null,nextLevel:null,currentAuthenticationMethods:[]},error:null};const{payload:l}=Bm(a.access_token);let u=null;l.aal&&(u=l.aal);let d=u;((s=(i=a.user.factors)===null||i===void 0?void 0:i.filter(p=>p.status==="verified"))!==null&&s!==void 0?s:[]).length>0&&(d="aal2");const f=l.amr||[];return{data:{currentLevel:u,nextLevel:d,currentAuthenticationMethods:f},error:null}}async _getAuthorizationDetails(t){try{return await this._useSession(async n=>{const{data:{session:r},error:i}=n;return i?this._returnResult({data:null,error:i}):r?await _e(this.fetch,"GET",`${this.url}/oauth/authorizations/${t}`,{headers:this.headers,jwt:r.access_token,xform:s=>({data:s,error:null})}):this._returnResult({data:null,error:new pr})})}catch(n){if(ve(n))return this._returnResult({data:null,error:n});throw n}}async _approveAuthorization(t,n){try{return await this._useSession(async r=>{const{data:{session:i},error:s}=r;if(s)return this._returnResult({data:null,error:s});if(!i)return this._returnResult({data:null,error:new pr});const a=await _e(this.fetch,"POST",`${this.url}/oauth/authorizations/${t}/consent`,{headers:this.headers,jwt:i.access_token,body:{action:"approve"},xform:o=>({data:o,error:null})});return a.data&&a.data.redirect_url&&kn()&&!(n!=null&&n.skipBrowserRedirect)&&window.location.assign(a.data.redirect_url),a})}catch(r){if(ve(r))return this._returnResult({data:null,error:r});throw r}}async _denyAuthorization(t,n){try{return await this._useSession(async r=>{const{data:{session:i},error:s}=r;if(s)return this._returnResult({data:null,error:s});if(!i)return this._returnResult({data:null,error:new pr});const a=await _e(this.fetch,"POST",`${this.url}/oauth/authorizations/${t}/consent`,{headers:this.headers,jwt:i.access_token,body:{action:"deny"},xform:o=>({data:o,error:null})});return a.data&&a.data.redirect_url&&kn()&&!(n!=null&&n.skipBrowserRedirect)&&window.location.assign(a.data.redirect_url),a})}catch(r){if(ve(r))return this._returnResult({data:null,error:r});throw r}}async _listOAuthGrants(){try{return await this._useSession(async t=>{const{data:{session:n},error:r}=t;return r?this._returnResult({data:null,error:r}):n?await _e(this.fetch,"GET",`${this.url}/user/oauth/grants`,{headers:this.headers,jwt:n.access_token,xform:i=>({data:i,error:null})}):this._returnResult({data:null,error:new pr})})}catch(t){if(ve(t))return this._returnResult({data:null,error:t});throw t}}async _revokeOAuthGrant(t){try{return await this._useSession(async n=>{const{data:{session:r},error:i}=n;return i?this._returnResult({data:null,error:i}):r?(await _e(this.fetch,"DELETE",`${this.url}/user/oauth/grants`,{headers:this.headers,jwt:r.access_token,query:{client_id:t.clientId},noResolveJson:!0}),{data:{},error:null}):this._returnResult({data:null,error:new pr})})}catch(n){if(ve(n))return this._returnResult({data:null,error:n});throw n}}async fetchJwk(t,n={keys:[]}){let r=n.keys.find(o=>o.kid===t);if(r)return r;const i=Date.now();if(r=this.jwks.keys.find(o=>o.kid===t),r&&this.jwks_cached_at+yce>i)return r;const{data:s,error:a}=await _e(this.fetch,"GET",`${this.url}/.well-known/jwks.json`,{headers:this.headers});if(a)throw a;return!s.keys||s.keys.length===0||(this.jwks=s,this.jwks_cached_at=i,r=s.keys.find(o=>o.kid===t),!r)?null:r}async getClaims(t,n={}){try{let r=t;if(!r){const{data:p,error:g}
541=await this.getSession();if(g||!p.session)return this._returnResult({data:null,error:g});r=p.session.access_token}const{header:i,payload:s,signature:a,raw:{header:o,payload:l}}=Bm(r);n!=null&&n.allowExpired||Fce(s.exp);const u=!i.alg||i.alg.startsWith("HS")||!i.kid||!("crypto"in globalThis&&"subtle"in globalThis.crypto)?null:await this.fetchJwk(i.kid,n!=null&&n.keys?{keys:n.keys}:n==null?void 0:n.jwks);if(!u){const{error:p}=await this.getUser(r);if(p)throw p;return{data:{claims:s,header:i,signature:a},error:null}}const d=Bce(i.alg),h=await crypto.subtle.importKey("jwk",u,d,!0,["verify"]);if(!await crypto.subtle.verify(d,h,a,Ece(`${o}.${l}`)))throw new Yk("Invalid JWT signature");return{data:{claims:s,header:i,signature:a},error:null}}catch(r){if(ve(r))return this._returnResult({data:null,error:r});throw r}}}Tf.nextInstanceID={};const vue=Tf,xue="2.93.2";let ch="";typeof Deno<"u"?ch="deno":typeof document<"u"?ch="web":typeof navigator<"u"&&navigator.product==="ReactNative"?ch="react-native":ch="node";const bue={"X-Client-Info":`supabase-js-${ch}/${xue}`},wue={headers:bue},kue={schema:"public"},Sue={autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,flowType:"implicit"},jue={};function Nf(e){"@babel/helpers - typeof";return Nf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Nf(e)}function _ue(e,t){if(Nf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Nf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Eue(e){var t=_ue(e,"string");return Nf(t)=="symbol"?t:t+""}function Tue(e,t,n){return(t=Eue(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function $t(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?nO(Object(n),!0).forEach(function(r){Tue(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}const Nue=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),Cue=()=>Headers,Aue=(e,t,n)=>{const r=Nue(n),i=Cue();return async(s,a)=>{var o;const l=(o=await t())!==null&&o!==void 0?o:e;let u=new i(a==null?void 0:a.headers);return u.has("apikey")||u.set("apikey",e),u.has("Authorization")||u.set("Authorization",`Bearer ${l}`),r(s,$t($t({},a),{},{headers:u}))}};function Pue(e){return e.endsWith("/")?e:e+"/"}function Oue(e,t){var n,r;const{db:i,auth:s,realtime:a,global:o}=e,{db:l,auth:u,realtime:d,global:h}=t,f={db:$t($t({},l),i),auth:$t($t({},u),s),realtime:$t($t({},d),a),storage:{},global:$t($t($t({},h),o),{},{headers:$t($t({},(n=h==null?void 0:h.headers)!==null&&n!==void 0?n:{}),(r=o==null?void 0:o.headers)!==null&&r!==void 0?r:{})}),accessToken:async()=>""};return e.accessToken?f.accessToken=e.accessToken:delete f.accessToken,f}function Rue(e){const t=e==null?void 0:e.trim();if(!t)throw new Error("supabaseUrl is required.");if(!t.match(/^https?:\/\//i))throw new Error("Invalid supabaseUrl: Must be a valid HTTP or HTTPS URL.");try{return new URL(Pue(t))}catch{throw Error("Invalid supabaseUrl: Provided URL is malformed.")}}var Iue=class extends vue{constructor(e){super(e)}},Mue=class{constructor(e,t,n){var r,i;this.supabaseUrl=e,this.supabaseKey=t;const s=Rue(e);if(!t)throw new Error("supabaseKey is required.");this.realtimeUrl=new URL("realtime/v1",s),this.realtimeUrl.protocol=this.realtimeUrl.protocol.replace("http","ws"),this.authUrl=new URL("auth/v1",s),this.storageUrl=new URL("storage/v1",s),this.functionsUrl=new URL("functions/v1",s);const a=`sb-${s.hostname.split(".")[0]}-auth-token`,o={db:kue,realtime:jue,auth:$t($t({},Sue),{},{storageKey:a}),global:wue},l=Oue(n??{},o);if(this.storageKey=(r=l.auth.storageKey)!==null&&r!==void 0?r:"",this.headers=(i=l.global.headers)!==null&&i!==void 0?i:{},l.accessToken)this.accessToken=l.accessToken,this.auth=new Proxy({},{get:(d,h)=>{throw new Error(`@supabase/supabase-js: Supabase Client is configured with the accessToken option, accessing supabase.auth.${String(h)} is not possible`)}});else{var u;this.auth=this._initSupabaseAuthClient((u=l.auth)!==null&&u!==void 0?u:{},this.headers,l.global.fetch)}this.fetch=Aue(t,this._getAccessToken.bind(this),l.global.fetch),this.realtime=this._initRealtimeClient($t({headers:this.headers,accessToken:this._getAccessToken.bind(this)},l.realtime)),this.accessToken&&Promise.resolve(this.accessToken()).then(d=>this.realtime.setAuth(d)).catch(d=>console.warn("Failed to set initial Realtime auth token:",d)),this.rest=new vle(new URL("rest/v1",s).href,{headers:this.headers,schema:l.db.schema,fetch:this.fetch}),this.storage=new hce(this.storageUrl.href,this.headers,this.fetch,n==null?void 0:n.storage),l.accessToken||this._listenForAuthEvents()}get functions(){return new fle(this.functionsUrl.href,{headers:this.headers,customFetch:this.fetch})}from(e){return this.rest.from(e)}schema(e){return this.rest.schema(e)}rpc(e,t={},n={head:!1,get:!1,count:void 0}){return this.rest.rpc(e,t,n)}
541channel(e,t={config:{}}){return this.realtime.channel(e,t)}getChannels(){return this.realtime.getChannels()}removeChannel(e){return this.realtime.removeChannel(e)}removeAllChannels(){return this.realtime.removeAllChannels()}async _getAccessToken(){var e=this,t,n;if(e.accessToken)return await e.accessToken();const{data:r}=await e.auth.getSession();return(t=(n=r.session)===null||n===void 0?void 0:n.access_token)!==null&&t!==void 0?t:e.supabaseKey}_initSupabaseAuthClient({autoRefreshToken:e,persistSession:t,detectSessionInUrl:n,storage:r,userStorage:i,storageKey:s,flowType:a,lock:o,debug:l,throwOnError:u},d,h){const f={Authorization:`Bearer ${this.supabaseKey}`,apikey:`${this.supabaseKey}`};return new Iue({url:this.authUrl.href,headers:$t($t({},f),d),storageKey:s,autoRefreshToken:e,persistSession:t,detectSessionInUrl:n,storage:r,userStorage:i,flowType:a,lock:o,debug:l,throwOnError:u,fetch:h,hasCustomAuthorizationHeader:Object.keys(this.headers).some(p=>p.toLowerCase()==="authorization")})}_initRealtimeClient(e){return new Mle(this.realtimeUrl.href,$t($t({},e),{},{params:$t($t({},{apikey:this.supabaseKey}),e==null?void 0:e.params)}))}_listenForAuthEvents(){return this.auth.onAuthStateChange((e,t)=>{this._handleTokenChanged(e,"CLIENT",t==null?void 0:t.access_token)})}_handleTokenChanged(e,t,n){(e==="TOKEN_REFRESHED"||e==="SIGNED_IN")&&this.changedAccessToken!==n?(this.changedAccessToken=n,this.realtime.setAuth(n)):e==="SIGNED_OUT"&&(this.realtime.setAuth(),t=="STORAGE"&&this.auth.signOut(),this.changedAccessToken=void 0)}};const $ue=(e,t,n)=>new Mue(e,t,n);function Due(){if(typeof window<"u")return!1;const e=globalThis.process;if(!e)return!1;const t=e.version;if(t==null)return!1;const n=t.match(/^v(\d+)\./);return n?parseInt(n[1],10)<=18:!1}Due()&&console.warn("â ï¸ Node.js 18 and below are deprecated and will no longer be supported in future versions of @supabase/supabase-js. Please upgrade to Node.js 20 or later. For more information, visit: https://github.com/orgs/supabase/discussions/37217");function Lue(){var y,v;if(typeof window>"u")return;const e=location.hostname,n=["lovableproject.com","lovableproject-dev.com","lovable.app","gpt-eng.com","gptengineer.run"].some(x=>e===x||e.endsWith("."+x)),r="[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}",i=n?((y=e.match(new RegExp("^(?:id-preview(?:-[a-z0-9]+)?|project)--("+r+")(?:-dev)?(?=\\.|$)","i")))==null?void 0:y[1])??((v=e.match(new RegExp("^("+r+")(?=[.-])","i")))==null?void 0:v[1]):void 0,s=window.parent&&window.parent!==window;if(!i||!s)return localStorage;const a=e.endsWith(".lovableproject-dev.com")||e.endsWith(".gpt-eng.com"),o=a?/^https:\/\/([a-z0-9-]+\.)*(lovable\.dev|gptengineer\.app)$|^http:\/\/localhost:3000$/:/^https:\/\/([a-z0-9-]+\.)*(lovable\.dev|gptengineer\.app)$/,l=location.ancestorOrigins&&location.ancestorOrigins[0]||(document.referrer?new URL(document.referrer).origin:""),u=l&&o.test(l)?[l]:a?["https://lovable.dev","http://localhost:3000"]:["https://lovable.dev"],d="lovable-preview-auth:result",h=2e3,f=()=>Math.random().toString(36).slice(2)+Date.now().toString(36),p=(x,b,S)=>new Promise(k=>{const j=f();let _=!1,E;const T=C=>{_||(_=!0,clearTimeout(E),window.removeEventListener("message",N),k(C))},N=C=>{if(u.indexOf(C.origin)<0)return;const M=C.data;M&&M.type===d&&M.requestId===j&&T(M)};window.addEventListener("message",N);const P={type:x,requestId:j,projectId:i,key:b};S!==void 0&&(P.value=S);for(const C of u)window.parent.postMessage(P,C);E=setTimeout(()=>T(null),h)});let g=!0;const m=250;return{getItem:async x=>{let b=await p("lovable-preview-auth:get",x);return!b&&g&&(await new Promise(S=>setTimeout(S,m)),b=await p("lovable-preview-auth:get",x)),g=!1,b&&b.ok&&typeof b.value=="string"?b.value===""?(localStorage.removeItem(x),null):b.value:localStorage.getItem(x)},setItem:(x,b)=>(localStorage.setItem(x,b),p("lovable-preview-auth:set",x,b).then(S=>{S&&S.ok&&typeof S.value=="string"&&localStorage.getItem(x)===b&&(S.value===""?localStorage.removeItem(x):localStorage.setItem(x,S.value))})),removeItem:x=>(localStorage.removeItem(x),p("lovable-preview-auth:remove",x).then(()=>{}))}}const Fue="https://xgrpogjbgfalnnbapejb.supabase.co",Bue="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6InhncnBvZ2piZ2ZhbG5uYmFw
541ZWpiIiwicm9sZSI6ImFub24iLCJpYXQiOjE3Njk1NDY0OTIsImV4cCI6MjA4NTEyMjQ5Mn0.kW9liUqHaXSonvN2jg1fdak_7fdJmmI28h3m34gL8BY",ne=$ue(Fue,Bue,{auth:{storage:Lue(),persistSession:!0,autoRefreshToken:!0}});function Ii(e){const t=Object.prototype.toString.call(e);return e instanceof Date||typeof e=="object"&&t==="[object Date]"?new e.constructor(+e):typeof e=="number"||t==="[object Number]"||typeof e=="string"||t==="[object String]"?new Date(e):new Date(NaN)}function Sl(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}const BB=6048e5,Vue=864e5;let que={};function Ox(){return que}function Cf(e,t){var o,l,u,d;const n=Ox(),r=(t==null?void 0:t.weekStartsOn)??((l=(o=t==null?void 0:t.locale)==null?void 0:o.options)==null?void 0:l.weekStartsOn)??n.weekStartsOn??((d=(u=n.locale)==null?void 0:u.options)==null?void 0:d.weekStartsOn)??0,i=Ii(e),s=i.getDay(),a=(s<r?7:0)+s-r;return i.setDate(i.getDate()-a),i.setHours(0,0,0,0),i}function Ay(e){return Cf(e,{weekStartsOn:1})}function VB(e){const t=Ii(e),n=t.getFullYear(),r=Sl(e,0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);const i=Ay(r),s=Sl(e,0);s.setFullYear(n,0,4),s.setHours(0,0,0,0);const a=Ay(s);return t.getTime()>=i.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}function rO(e){const t=Ii(e);return t.setHours(0,0,0,0),t}function iO(e){const t=Ii(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function Uue(e,t){const n=rO(e),r=rO(t),i=+n-iO(n),s=+r-iO(r);return Math.round((i-s)/Vue)}function Wue(e){const t=VB(e),n=Sl(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),Ay(n)}function zue(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function Hue(e){if(!zue(e)&&typeof e!="number")return!1;const t=Ii(e);return!isNaN(Number(t))}function Kue(e){const t=Ii(e),n=Sl(e,0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}const Gue={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Yue=(e,t,n)=>{let r;const i=Gue[e];return typeof i=="string"?r=i:t===1?r=i.one:r=i.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function nw(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const Xue={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Que={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Zue={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Jue={date:nw({formats:Xue,defaultWidth:"full"}),time:nw({formats:Que,defaultWidth:"full"}),dateTime:nw({formats:Zue,defaultWidth:"full"})},ede={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},tde=(e,t,n,r)=>ede[e];function Vd(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let i;if(r==="formatting"&&e.formattingValues){const a=e.defaultFormattingWidth||e.defaultWidth,o=n!=null&&n.width?String(n.width):a;i=e.formattingValues[o]||e.formattingValues[a]}else{const a=e.defaultWidth,o=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[o]||e.values[a]}const s=e.argumentCallback?e.argumentCallback(t):t;return i[s]}}const nde={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},rde={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},ide={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},sde={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
541ay","Saturday"]},ade={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},ode={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},lde=(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},cde={ordinalNumber:lde,era:Vd({values:nde,defaultWidth:"wide"}),quarter:Vd({values:rde,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Vd({values:ide,defaultWidth:"wide"}),day:Vd({values:sde,defaultWidth:"wide"}),dayPeriod:Vd({values:ade,defaultWidth:"wide",formattingValues:ode,defaultFormattingWidth:"wide"})};function qd(e){return(t,n={})=>{const r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],s=t.match(i);if(!s)return null;const a=s[0],o=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(o)?dde(o,h=>h.test(a)):ude(o,h=>h.test(a));let u;u=e.valueCallback?e.valueCallback(l):l,u=n.valueCallback?n.valueCallback(u):u;const d=t.slice(a.length);return{value:u,rest:d}}}function ude(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function dde(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function hde(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const i=r[0],s=t.match(e.parsePattern);if(!s)return null;let a=e.valueCallback?e.valueCallback(s[0]):s[0];a=n.valueCallback?n.valueCallback(a):a;const o=t.slice(i.length);return{value:a,rest:o}}}const fde=/^(\d+)(th|st|nd|rd)?/i,pde=/\d+/i,mde={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},gde={any:[/^b/i,/^(a|c)/i]},yde={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},vde={any:[/1/i,/2/i,/3/i,/4/i]},xde={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},bde={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},wde={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},kde={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},Sde={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},jde={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},_de={ordinalNumber:hde({matchPattern:fde,parsePattern:pde,valueCallback:e=>parseInt(e,10)}),era:qd({matchPatterns:mde,defaultMatchWidth:"wide",parsePatterns:gde,defaultParseWidth:"any"}),quarter:qd({matchPatterns:yde,defaultMatchWidth:"wide",parsePatterns:vde,defaultParseWidth:"any",valueCallback:e=>e+1}),month:qd({matchPatterns:xde,defaultMatchWidth:"wide",parsePatterns:bde,defaultParseWidth:"any"}),day:qd({matchPatterns:wde,defaultMatchWidth:"wide",parsePatterns:kde,defaultParseWidth:"any"}),dayPeriod:qd({matchPatterns:Sde,defaultMatchWidth:"any",parsePatterns:jde,defaultParseWidth:"any"})},Ede={code:"en-US",formatDistance:Yue,formatLong:Jue,formatRelative:tde,localize:cde,match:_de,options:{weekStartsOn:0,firstWeekContainsDate:1}};function Tde(e){const t=Ii(e);return Uue(t,Kue(t))+1}function Nde(e){const t=Ii(e),n=+Ay(t)-+Wue(t);return Math.round(n/BB)+1}function qB(e,t){var d,h,f,p;const n=Ii(e),r=n.getFullYear(),i=Ox(),s=(t==null?void 0:t.firstWeekContainsDate)??((h=(d=t==null?void 0:t.locale)==null?void 0:d.options)==null?void 0:h.firstWeekContainsDate)??i.firstWeekContainsDate??((p=(f=i.locale)==null?void 0:f.options)==null?void 0:p.firstWeekContainsDate)??1,a=Sl(e,0);a.setFullYear(r+1,0,s),a.setHours(0,0,0,0);const o=Cf(a,t),l=Sl(e,0);l.setFullYear(r,0,s),l.setHours(0,0,0,0);const u=Cf(l,t);return n.getTime()>=o.getTime()?r+1:n.getTime()>=u.getTime()?r:r-1}function Cde(e,t){var o,l,u,d;const n=Ox(),r=(t==null?void 0:t.firstWeekContainsDate)??((l=(o=t==null?void 0:t.locale)==null?void 0:o.options)==null?void 0:l.firstWeekContainsDate)??n.firstWeekContainsDate??((d=(u=n.locale)==null?void 0:u.options)==null?void 0:d.firstWeekContainsDate)??1,i=qB(e,t),s=Sl(e,0);return s.setFullYear(i,0,r),s.setHours(0,0,0,0),Cf(s,t)}function Ade(e,t){const n=Ii(e),r=+Cf(n,t)-+Cde(n,t);return Math.round(r/BB)+1}function at(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const la={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return at(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):at(n+1,2)},d(e,t){return at(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return at(e.getHours()%12||12,t.length)},H(e,t){return at(e.getHours(),t.length)},m(e,t){return at(e.getMinutes(),t.length)},s(e,t){return at(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),i=Math.trunc(r*Math.pow(10,n-3));return at(i,t.length)}},Jl={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},sO={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),i=r>0?r:1-r;return n.ordinalNumber(i,{unit:"year"})}return la.y(e,t)},Y:function(e,t,n,r){const i=qB(e,r),s=i>0?i:1-i;if(t==="YY"){const a=s%100;return at(a,2)}return t==="Yo"?n.ordinalNumber(s,{unit:"year"}):at(s,t.length)},R:function(e,t){const n=VB(e);return at(n,t.length)},u:function(e,t){const n=e.getFullYear();return at(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return at(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return at(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return la.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return at(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const i=Ade(e,r);return t==="wo"?n.ordinalNumber(i,{unit:"week"}):at(i,t.length)},I:function(e,t,n){const r=Nde(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):at(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):la.d(e,t)},D:function(e,t,n){const r=Tde(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):at(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const i=e.getDay(),s=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(s);case"ee":return at(s,2);case"eo":return n.ordinalNumber(s,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});case"eeee":default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const i=e.getDay(),s=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(s);case"cc":return at(s,t.length);case"co":return n.ordinalNumber(s,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});case"cccc":default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),i=r===0?7:r;switch(t){case"i":return String(i);case"ii":return at(i,t.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const i=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let i;switch(r===12?i=Jl.noon:r===0?i=Jl.midnight:i=r/12>
vendor: 4,427 bytes, line 541
541=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let i;switch(r>=17?i=Jl.evening:r>=12?i=Jl.afternoon:r>=4?i=Jl.morning:i=Jl.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return la.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):la.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):at(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):at(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):la.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):la.s(e,t)},S:function(e,t){return la.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return oO(r);case"XXXX":case"XX":return Ro(r);case"XXXXX":case"XXX":default:return Ro(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return oO(r);case"xxxx":case"xx":return Ro(r);case"xxxxx":case"xxx":default:return Ro(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+aO(r,":");case"OOOO":default:return"GMT"+Ro(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+aO(r,":");case"zzzz":default:return"GMT"+Ro(r,":")}},t:function(e,t,n){const r=Math.trunc(e.getTime()/1e3);return at(r,t.length)},T:function(e,t,n){const r=e.getTime();return at(r,t.length)}};function aO(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Math.trunc(r/60),s=r%60;return s===0?n+String(i):n+String(i)+t+at(s,2)}function oO(e,t){return e%60===0?(e>0?"-":"+")+at(Math.abs(e)/60,2):Ro(e,t)}function Ro(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=at(Math.trunc(r/60),2),s=at(r%60,2);return n+i+t+s}const lO=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},UB=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},Pde=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return lO(e,t);let s;switch(r){case"P":s=t.dateTime({width:"short"});break;case"PP":s=t.dateTime({width:"medium"});break;case"PPP":s=t.dateTime({width:"long"});break;case"PPPP":default:s=t.dateTime({width:"full"});break}return s.replace("{{date}}",lO(r,t)).replace("{{time}}",UB(i,t))},Ode={p:UB,P:Pde},Rde=/^D+$/,Ide=/^Y+$/,Mde=["D","DD","YY","YYYY"];function $de(e){return Rde.test(e)}function Dde(e){return Ide.test(e)}function Lde(e,t,n){const r=Fde(e,t,n);if(console.warn(r),Mde.includes(e))throw new RangeError(r)}function Fde(e,t,n){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const Bde=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Vde=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,qde=/^'([^]*?)'?$/,Ude=/''/g,Wde=/[a-zA-Z]/;function Py(e,t,n){var d,h,f,p;const r=Ox(),i=r.locale??Ede,s=r.firstWeekContainsDate??((h=(d=r.locale)==null?void 0:d.options)==null?void 0:h.firstWeekContainsDate)??1,a=r.weekStartsOn??((p=(f=r.locale)==null?void 0:f.options)==null?void 0:p.weekStartsOn)??0,o=Ii(e);if(!Hue(o))throw new RangeError("Invalid time value");let l=t.match(Vde).map(g=>{const m=g[0];if(m==="p"||m==="P"){const y=Ode[m];return y(g,i.formatLong)}return g}).join("").match(Bde).map(g=>{if(g==="''")return{isToken:!1,value:"'"};const m=g[0];if(m==="'")return{isToken:!1,value:zde(g)};if(sO[m])return{isToken:!0,value:g};
541if(m.match(Wde))throw new RangeError("Format string contains an unescaped latin alphabet character `"+m+"`");return{isToken:!1,value:g}});i.localize.preprocessor&&(l=i.localize.preprocessor(o,l));const u={firstWeekContainsDate:s,weekStartsOn:a,locale:i};return l.map(g=>{if(!g.isToken)return g.value;const m=g.value;(Dde(m)||$de(m))&&Lde(m,t,String(e));const y=sO[m[0]];return y(o,m,i.localize,u)}).join("")}function zde(e){const t=e.match(qde);return t?t[1].replace(Ude,"'"):e}const Hde=()=>{const{t:e,i18n:t}=St(),n=t.language==="vi",{data:r=[],isLoading:i}=dn({queryKey:["latest-news"],queryFn:async()=>{const{data:o,error:l}=await ne.from("news_articles").select("id, slug, title, title_vi, description, description_vi, image_url, published_at, created_at").eq("published",!0).order("published_at",{ascending:!1,nullsFirst:!1}).limit(3);if(l)throw l;return o}}),s=(o,l)=>n&&l?l:o,a=o=>{if(!o)return"";try{return Py(new Date(o),"MMMM d, yyyy")}catch{return""}};return i?c.jsx("section",{className:"bg-background px-6 py-20 md:py-24 md:px-12 lg:px-16",children:c.jsx("div",{className:"max-w-7xl mx-auto",children:c.jsxs("div",{className:"animate-pulse",children:[c.jsx("div",{className:"h-8 bg-muted rounded w-48 mb-4"}),c.jsx("div",{className:"h-4 bg-muted rounded w-64 mb-12"}),c.jsx("div",{className:"grid md:grid-cols-3 gap-6",children:[1,2,3].map(o=>c.jsxs("div",{className:"bg-card rounded-xl overflow-hidden border border-border",children:[c.jsx("div",{className:"aspect-video bg-muted"}),c.jsxs("div",{className:"p-5 space-y-3",children:[c.jsx("div",{className:"h-3 bg-muted rounded w-24"}),c.jsx("div",{className:"h-5 bg-muted rounded w-full"}),c.jsx("div",{className:"h-4 bg-muted rounded w-20"})]})]},o))})]})})}):r.length===0?null:c.jsx("section",{className:"bg-background px-6 py-20 md:py-24 md:px-12 lg:px-16",children:c.jsxs("div",{className:"max-w-7xl mx-auto",children:[c.jsxs(U.div,{initial:{opacity:0,y:50},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-100px"},transition:{duration:2,ease:[.25,.46,.45,.94]},className:"flex flex-col md:flex-row md:items-end justify-between gap-4 mb-12",children:[c.jsxs("div",{children:[c.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-foreground mb-2",children:e("newsPreview.title","Latest News")}),c.jsx("p",{className:"text-muted-foreground",children:e("newsPreview.subtitle","Stay updated with our latest partnerships and insights")})]}),c.jsx(ut,{to:"/news",children:c.jsxs(de,{variant:"outline",className:"gap-2",children:[e("newsPreview.viewAll","View all news"),c.jsx(Ls,{className:"w-4 h-4"})]})})]}),c.jsx("div",{className:"grid md:grid-cols-3 gap-6",children:r.map((o,l)=>c.jsx(U.div,{initial:{opacity:0,y:50},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-50px"},transition:{duration:2,delay:l*.15,ease:[.25,.46,.45,.94]},children:c.jsxs(ut,{to:`/news/${o.slug||o.id}`,className:"group block bg-card rounded-xl overflow-hidden border border-border hover:border-primary/30 hover:shadow-md transition-all duration-300",children:[c.jsx("div",{className:"aspect-video overflow-hidden",children:c.jsx("img",{src:o.image_url||"/placeholder.svg",alt:s(o.title,o.title_vi),className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-500",loading:"lazy",decoding:"async"})}),c.jsxs("div",{className:"p-5",children:[c.jsxs("div",{className:"flex items-center gap-2 text-muted-foreground text-sm mb-2",children:[c.jsx(fu,{className:"w-3.5 h-3.5"}),c.jsx("span",{children:a(o.published_at||o.created_at)})]}),c.jsx("h3",{className:"font-semibold text-foreground mb-3 line-clamp-2 group-hover:text-primary transition-colors",children:s(o.title,o.title_vi)}),c.jsxs("div",{className:"flex items-center gap-1 text-primary font-medium text-sm",children:[e("newsPreview.readMore","Read more"),c.jsx(A4,{className:"w-4 h-4 group-hover:translate-x-0.5 group-hover:-translate-y-0.5 transition-transform"})]})]})]})},o.id))})]})})},Kde="/assets/vietcetera-CxpTzmFJ.png",Gde="/assets/antv-CbFlaDCS.webp",Yde="/assets/vtv4-DEyXzdGE.svg",Ud=[{logoUrl:Yde,logoAlt:"VTV4",title:"VTV4 reports on Ekko's financial wellness solution for Vietnamese workers",titleVi:"VTV4 ÄÆ°a tin vá» giải pháp an sinh tà i chÃnh Ekko cho ngưá»i lao Äá»ng Viá»t Nam",link:"https://www.youtube.com/watch?v=TkAgVOqHAX8&t=608s"},{logoUrl:Kde,logoAlt:"Vietcetera",title:"Mads Werner: Salary advances are temporary, financial literacy is the ultimate goal",titleVi:"Mads Werner: Ứng lương chá» là tạm thá»i, hiá»u biết tà i chÃnh má»i là mục tiêu cuá»i cùng",link:"https://vietcetera.com/en/mads-werner-salary-advances-are-temporary-financial-literacy-is-the-ultimate-goal"},{logoUrl:"https://ekko.vn/wp-content/uploads/2024/01/image-10.png",logoAlt:"Lao Äá»ng Công Äoà n",title:"Earned wage access: The key to financial wellness for workers",titleVi:"Ứng lương linh hoạt: Chìa khóa giúp ngưá»i lao Äá»ng an sinh tà i chÃnh",link:"https://laodongc
541ongdoan.vn/ung-luong-linh-hoat-chia-khoa-giup-nguoi-lao-dong-an-sinh-tai-chinh-90929.html"},{logoUrl:"https://ekko.vn/wp-content/uploads/2024/02/logo-bao-chi-noi-ve-ekko-dan-tri.png",logoAlt:"Dân TrÃ",title:"Danish CEO builds tech startup to support Vietnamese workers",titleVi:"CEO 9X Äan Mạch khá»i nghiá»p á» Viá»t Nam: 'Tôi cá»ng hiến vì ngôi nhà thứ 2'",link:"https://dantri.com.vn/doi-song/ceo-9x-dan-mach-khoi-nghiep-o-viet-nam-toi-cong-hien-vi-ngoi-nha-thu-2-20230621205633972.htm"},{logoUrl:"https://ekko.vn/wp-content/uploads/2024/01/image-10.png",logoAlt:"Lao Äá»ng Công Äoà n",title:"Danish CEO and the flexible salary solution EKKO: Helping workers achieve financial security",titleVi:"CEO Äan Mạch và giải pháp ứng lương linh hoạt EKKO: Giúp an sinh tà i chÃnh cho NLÄ",link:"https://laodongcongdoan.vn/ceo-dan-mach-va-giai-phap-ung-luong-linh-hoat-ekko-giup-an-sinh-tai-chinh-cho-nld-91270.html"},{logoUrl:Gde,logoAlt:"ANTV",title:"ANTV makes a report on Ekko's financial wellness solution",titleVi:"ANTV ÄÆ°a tin vá» giải pháp an sinh tà i chÃnh Ekko",link:"https://www.youtube.com/watch?v=4PC4eRQFngY&t=217s"}],WB=()=>{const{t:e,i18n:t}=St(),[n,r]=w.useState(0),[i,s]=w.useState(!1),[a,o]=w.useState(new Set),l=3,u=Math.ceil(Ud.length/l),d=w.useCallback(v=>{o(x=>new Set(x).add(v))},[]);w.useEffect(()=>{if(i)return;const v=setInterval(()=>{r(x=>(x+1)%u)},5e3);return()=>clearInterval(v)},[i,u]);const h=v=>{r(v)},f=()=>{r(v=>(v-1+u)%u)},p=()=>{r(v=>(v+1)%u)},g=Ud.slice(n*l,n*l+l),m=n%Ud.length,y=Ud[m];return c.jsx("section",{className:"px-6 py-16 md:px-12 lg:px-16 bg-background",children:c.jsxs("div",{className:"max-w-7xl mx-auto",children:[c.jsxs(U.div,{initial:{opacity:0,y:50},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-100px"},transition:{duration:2,ease:[.25,.46,.45,.94]},className:"mb-12",children:[c.jsx("span",{className:"text-sm font-medium text-primary tracking-widest uppercase mb-4 block",children:e("about.press.label","In The Media")}),c.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-foreground",children:e("about.press.title","What the media is saying")})]}),c.jsxs("div",{className:"hidden md:block relative",onMouseEnter:()=>s(!0),onMouseLeave:()=>s(!1),children:[c.jsx("div",{className:"overflow-hidden",children:c.jsx(Ka,{mode:"wait",children:c.jsx(U.div,{initial:{opacity:0,x:50},animate:{opacity:1,x:0},exit:{opacity:0,x:-50},transition:{duration:.5},className:"grid md:grid-cols-3 gap-6",children:g.map((v,x)=>c.jsxs("a",{href:v.link,target:"_blank",rel:"noopener noreferrer",className:"group bg-background rounded-2xl p-6 border border-border hover:border-primary/50 hover:shadow-lg transition-all",children:[c.jsx("div",{className:"h-12 mb-6 flex items-center",children:a.has(n*l+x)?c.jsx("span",{className:"text-lg font-bold text-muted-foreground",children:v.logoAlt}):c.jsx("img",{src:v.logoUrl,alt:v.logoAlt,className:"h-full w-auto object-contain max-w-[120px]",loading:"lazy",decoding:"async",onError:()=>d(n*l+x)})}),c.jsx("h3",{className:"font-semibold text-foreground group-hover:text-primary transition-colors mb-4 line-clamp-2",children:t.language==="vi"?v.titleVi:v.title}),c.jsxs("div",{className:"flex items-center gap-2 text-primary text-sm font-medium",children:[e("about.press.readArticle","Read article"),c.jsx(D1,{className:"w-4 h-4"})]})]},`${n}-${x}`))},n)})}),c.jsx(de,{variant:"outline",size:"icon",className:"absolute -left-4 top-1/2 -translate-y-1/2 rounded-full bg-background shadow-lg z-10",onClick:f,children:c.jsx(Jv,{className:"h-5 w-5"})}),c.jsx(de,{variant:"outline",size:"icon",className:"absolute -right-4 top-1/2 -translate-y-1/2 rounded-full bg-background shadow-lg z-10",onClick:p,children:c.jsx(Fs,{className:"h-5 w-5"})}),c.jsx("div",{className:"flex justify-center gap-2 mt-8",children:Array.from({length:u}).map((v,x)=>c.jsx("button",{onClick:()=>h(x),className:`w-2.5 h-2.5 rounded-full transition-all ${x===n?"bg-primary w-8":"bg-muted-foreground/30 hover:bg-muted-foreground/50"}`,"aria-label":`Go to slide ${x+1}`},x))})]}),c.jsxs("div",{className:"md:hidden relative",onTouchStart:()=>s(!0),onTouchEnd:()=>s(!1),children:[c.jsx(Ka,{mode:"wait",children:c.jsxs(U.a,{href:y.link,target:"_blank",rel:"noopener noreferrer",initial:{opacity:0,x:50}
541,animate:{opacity:1,x:0},exit:{opacity:0,x:-50},transition:{duration:.3},className:"block bg-background rounded-2xl p-6 border border-border",children:[c.jsx("div",{className:"h-10 mb-4 flex items-center",children:a.has(m)?c.jsx("span",{className:"text-base font-bold text-muted-foreground",children:y.logoAlt}):c.jsx("img",{src:y.logoUrl,alt:y.logoAlt,className:"h-full w-auto object-contain max-w-[100px]",loading:"lazy",decoding:"async",onError:()=>d(m)})}),c.jsx("h3",{className:"font-semibold text-foreground mb-3 line-clamp-2",children:t.language==="vi"?y.titleVi:y.title}),c.jsxs("div",{className:"flex items-center gap-2 text-primary text-sm font-medium",children:[e("about.press.readArticle","Read article"),c.jsx(D1,{className:"w-4 h-4"})]})]},m)}),c.jsx("div",{className:"flex justify-center gap-1.5 mt-6",children:Ud.map((v,x)=>c.jsx("button",{onClick:()=>r(x),className:`w-2 h-2 rounded-full transition-all ${x===m?"bg-primary w-6":"bg-muted-foreground/30"}`,"aria-label":`Go to article ${x+1}`},x))})]})]})})},Xde="/assets/malakai-logo-CYBADmwe.png",Qde={new:"New:",text:"Ekko raises $4.2M seed round to expand financial wellness across Vietnam.",textShort:"Ekko raises $4.2M seed round",cta:"Read more"},Zde={business:"For Employers",workers:"For Employees",about:"About Us",blog:"Insights",admin:"Admin",contact:"Contact Us",careers:"Careers",impact:"Impact",news:"News"},Jde={badge:"#1 Earned Wage Access in Vietnam",title1:"A simple way to support your employees",title2:"every day.",description:"Reduce stress and turnover by giving your employees real-time access to wages they've already earned.",cta:"Learn More",learnMore:"Learn More"},ehe={trusted:"Trusted by leading companies across Vietnam"},the={title1:"Financial Health Package",title2:"Make every day",title3:"count",description:"A comprehensive employee benef
541it program designed to empower your workforce, from on-demand wage access to savings programs and digital HR transformation.",tabs:{comprehensive:"Financial Liquidity",tools:"Financial Literacy",education:"HR Digital Transformation"},cards:{liquidity:{title:"Liquidity",description:"24/7 access to earned wages. Withdraw anytime with zero capital risk to employers."},literacy:{title:"Literacy",description:"Gamified financial education to build stronger money skills."},savings:{title:"Savings",description:"Build lasting savings habits through goal-setting, automated contributions, and personalized nudges."},hrdx:{title:"HR DX",description:"Digital transformation tools for streamlined HR operations."}}},nhe={badge:"Read the highlights of the study here",title:"Impact Beyond Cost Savings",description:"Last Year's ILO Impact Report uncovered powerful insights about how Ekko is changing lives",items:{satisfaction:{value:"64%",label:"Improved Emergency Handling",description:"Report improved ability to deal with emergency expenses"},users:{value:"63%",label:"Quality of Life Improved",description:"Users report their quality of life has improved"},retention:{value:"52%",label:"Less Financial Worry",description:"Users confess worrying about finances has decreased"},support:{value:"45%",label:"Reduced Informal Borrowing",description:"Users reduced their reliance on informal loans"}},readMore:"Read More"},rhe={label:"For Employers",title1:"Why Companies",title2:"work with us",description:"Stronger teams start with financial stability. Join leading companies transforming their workforce.",cta:"Learn More",benefits:{turnover:{title:"Lower Turnover",description:"Reduce employee turnover within the first year"},applicants:{title:"More Applicants",description:"Stand out with daily pay benefits"},engagement:{title:"Higher Engagement",description:"Boost productivity by reducing financial stress"},digital:{stat:"Free",title:"Digital Tools",description:"Training tools included at no extra cost"}}},ihe={label:"/ MISSION",title:"Boosting financial wellness and nurturing prosperous workforces across South-East Asian enterprises."},she={title:"How It Works",subtitle:"Simple, fast, secure",description:"Our Financial Health Package combines earned wage access, expert-led workshops, and powerful HR tools to improve employee wellbeing and retention.",tabs:{app:"Ekko App",appSubtitle:"For Employees",portal:"HR Portal",portalSubtitle:"For HR Department",workshops:"Workshops",workshopsSubtitle:"For Employees",convenient:"Convenient Wage Access",streamlined:"Streamlined Management"},appTitle:"EKKO App",appFeatures:{ewa:{title:"Earned Wage Access",description:"Your employees can access their earned wages anytime, anywhere. Instant withdrawals with no hidden fees."},education:{title:"Financial Education",description:"Empower your workforce with gamified financial courses designed by experts to build lasting money skills."},planning:{title:"Financial Planning",description:"Help employees set savings goals, track spending, and develop better financial habits over time."}},portalFeatures:{management:{title:"Employee Management",description:"Easily manage employee enrollment, set wage advance limits, and define eligibility rules."},analytics:{title:"Real-time Analytics",description:"Track usage patterns, monitor adoption rates, and generate comprehensive reports."},integration:{title:"Seamless Integration",description:"Connect with your existing HR and payroll systems for automated reconciliation."}},workshopFeatures:{onDemand:{title:"On-Demand Training",description:"Book financial literacy workshops tailored to your workforce's schedule and needs, delivered at your workplace or online."},certified:{title:"ILO-Certified Trainers",description:"Our trainers are certified by the International Labour Organisation, ensuring world-class financial education standards."},programs:{title:"Tailored Programs",description:"Specialized curricula designed for both white-collar and blue-collar employees, addressing unique financial challenges for each group."}},features:{interface:{title:"Beautiful interface, streamlined operations",description:"Easy to use design that works for everyone - across all roles and digital literacy levels. Employees can advance wages with just a few taps."},support:{title:"Access wages anytime with 24/7 support",description:"Ekko's customer support team is always ready 24/7 to answer all questions and assist you. Available to all employees, even those with poor credit history."},education:{title:"Free Financial Education with expert curriculum",description:"Engaging, gamified lessons made for anyone. Each course is visually illustrated with graphics, quizzes, and interactive tools, making learning simple, fun, and effective."}},steps:{step1:{title:"Employee Request",description:"Employee initiates an advance via the Ekko app, based on hours worked or wages accrued to date."},step2:{title:"Ekko Disburses",description:"Ekko instantly advances funds to the employee's s
541alary account (within seconds), based on verified earned wages."},step3:{title:"Payroll Reconciliation",description:"On payday, the employer deducts the advance from the employee's pay."},step4:{title:"Employer Reimbursement",description:"The employer reimburses Ekko for the total advanced amount, typically 3-5 business days after payroll."}},appDescription:"Mobile app for employees to access wages, learn financial skills, and plan savings.",portalDescription:"Web dashboard for HR teams to manage employees and track program performance.",workshopDescription:"On-site financial education workshops led by ILO-certified trainers."},ahe={company:{title:"Benefits for your company",subtitle:"Stronger teams start with financial stability",items:{turnover:{title:"Reduce employee turnover",description:"Our studies show a 10-15% reduction in employee turnover after one year of using Ekko."},attract:{title:"Attract more job applicants",description:'Stand out in a competitive job market with a compelling "daily pay" advantage.'},engagement:{title:"Stronger engagement",description:"Reducing financial stress helps boost productivity and improve morale across your workforce."},digital:{title:"More digitally integrated",description:"Additional digital transformation and internal employee training tools at no extra cost."}}},backoffice:{title:"Benefits for your back office",subtitle:"Streamlined Workflows for HR, C&B, and Accounting Teams",items:{paperwork:{title:"No reimbursement paperwork",description:"Work-related cash advances are managed digitally, reducing admin burden."},digital:{title:"Digitally transformed process",description:"Save time with automated approvals and real-time tracking."},accuracy:{title:"Improved data accuracy",description:"We help employees input correct attendance, improving payroll precision."}}},employees:{title:"Benefits for your employees",subtitle:"How Ekko is changing lives",items:{debt:{title:"Avoiding debt traps",description:"By providing an alternative to high-interest black market loans, on-demand pay helps employees avoid financial traps while addressing immediate needs."}
541,access:{title:"Giving unrestricted access",description:"Available to all employees, even those with poor credit history."},smarter:{title:"Smarter money management",description:"Make the best choice during financial emergencies. Access earnings while preserving savings and protecting interest-earning accounts."}}}},ohe={title:"Flexible Pricing That Works for Your Organization",subtitle:"Choose the model that best fits your company's goals, or combine both.",saas:{title:"Ekko SaaS",subtitle:"Employer-Paid",description:"A monthly platform fee paid by the company, based on the number of employees. Best for companies that want to offer EWA as a full employee benefit."},base:{title:"Ekko Base",subtitle:"Employee-Paid",description:"Employees pay a small % fee per salary advance transaction. No cost to employer. Best for companies that want to offer EWA access without budget impact."},mixed:"Optional: Mixed Model available"},lhe={title:"Security & Data Protection",iso:"ISO 27001 Certified",description:"Ekko is certified in ISO 27001, the global gold standard for information security.",items:{pentest:{title:"Regular Penetration Testing",description:"We partner with CyRadar, a trusted Vietnamese cybersecurity firm and Google VirusTotal partner."},compliance:{title:"Full Compliance",description:"Fully compliant with Vietnam's Decree 13 on Personal Data Protection with OTP-based user consent."},protection:{title:"Data Protection",description:"Strengthens cybersecurity posture, reduces operational and data leak risks, detects vulnerabilities."}}},che={title:"Seamless Integration with Leading HR Systems",description:"No setup headaches. We've already done the heavy lifting with Vietnam's top HR platforms."},uhe={title:"Smooth Rollout Process",description:"With proven best practices, we ensure a smooth rollout of Ekko across your workforce",steps:{step1:{title:"Quick Setup",duration:"1-2 days",items:["Contract Signing","HR/timekeeping integration (API, file upload, or manual)","Payroll process review to tailor system setup"]},step2:{title:"System Integration & Training",duration:"1-7 days",items:["Employee onboarding on-site","Define salary advance policies (caps, groups, eligibility)","HR onboarding (1-hour session)"]},step3:{title:"Go Live & Monthly Reconcile",duration:"Ongoing",items:["Monthly reconciliation (5 days before payday)","Review, confirm & reimburse Ekko after payday"]}}},dhe={quotes:[{quote:"We're always looking for ways to improve our employees' wellbeing, and Ekko brings a fresh, thoughtful approach that reinforces our culture of care and responsibility. It gives our staff the freedom to manage unexpected expenses without turning to harmful lending options.",author:"Bruno Jaspaert",source:`Chairman of EuroCham Vietnam 542Chief Executive Officer of Deep C Industrial Zones Vietnam`},{quote:"Ekko supports our recruitment efforts by offering something most candidates haven't seen before. It signals that we're forward-thinking and people-first, and it helps us stand out in a competitive hiring market.",author:"Takashi Mori",source:"AGS (Vietnam) - Managing Director"},{quote:`Ekko is a very useful app for Homefarm employees, helping workers be more proactive with personal financial solutions, especially when unexpected needs arise. 543The app is designed to be convenient, accessible, and quick to use, suitable for Homefarm's diverse workforce. 544Thank you Ekko for partnering with Homefarm!`,author:"Ms Chung Thương",source:"HR Director, Homefarm"},{quote:`Implementing Ekko is one of the practical benefits that Vua Ná»m offers employees, helping workers be more proactive in managing their personal finances when unexpected needs arise. 545This benefit not only helps reduce financial stress for employees but also demonstrates Vua Ná»m's care for the wellbeing and long-term commitment of our team.`,author:"HR Director, Vua Ná»m",source:"Vua Ná»m"}],title:"What our partners say"},hhe={title:"Together, we can make every day count.",description:"Let Ekko help your business build a happier work environment.",contact:"Contact Us",hotline:"Support Hotline",email:"Contact Email",address:"21 Trà ng Tiá»n, Hoà n Kiếm, Hà Ná»i"},fhe={tagline:"Boosting financial wellness and nurturing prosperous workforces across South-East Asian enterprises.",product:{title:"Product",flexible:"Earned Wage Access",tools:"Financial Tools",education:"Financial Education",pricing:"Pricing"}
545,company:{title:"Company",about:"About Us",team:"Team",careers:"Careers",blog:"Blog"},resources:{title:"Resources",helpCenter:"Help Center",faq:"FAQ",caseStudies:"Case Studies",api:"API Docs"},legal:{title:"Legal",terms:"Terms of Service",privacy:"Privacy Policy",cookies:"Cookie Policy"},copyright:"© 2025 Ekko. All rights reserved.",madeIn:"Made with â¤ï¸ in Vietnam"},phe={title:"Selected Clients",description:"Trusted by leading companies across manufacturing, retail, and services sectors"},mhe={title:"Awards & Recognition",items:["Japan ESG Impact Awards","Nordic Business Innovation Award","Luxembourg Excellence in DEI Award","Korea Development Health & Safety Award","AmCham Vietnam Award"]},ghe={quotes:{quote1:"An innovative technology product to support workers in vulnerable times",quote2:"New creative solution that helps increase productivity at work",quote3:"This solution will be an essential service for employees",quote4:"The journey of transforming new financial habits"}},yhe={hero:{title:"Your employees deserve financial wellness",subtitle:"Earned Wage Access Solution",description:"Our earned wage access solution enhances daily life, addressing the challenges of living paycheck to paycheck and leading to a more secure financial state"},unicef:{badge:"UNICEF Recommends",title:"Ekko highlighted in UNICEF's Family-Friendly Practices Handbook",subtitle:"In their latest Family-Friendly Practices Handbook, UNICEF has recognized Ekko as a leading example of salary on demand and financial literacy training as advanced wage protection policies.",policy1:{number:"01",title:"On-Demand Pay (EWA) â Intermediate Policy Recommendation",description:'"Provide the option of on-demand pay, allowing workers to access earned wages before payday." This helps workers manage urgent financial needs without resorting to high-interest loans.'},policy2:{number:"02",title:"Financial Wellness Programs â Advanced Policy Recommendation",description:`"Implement comprehensive financial wellness programs like education savings support for workers' children." This promotes long-term financial health and security.`},cta:"View UNICEF Handbook",pageHint:"Scroll to page 39 to view Ekko's feature"},valueProps:{recruitment:{title:"Boost Recruitment and Retention",description:"85% of our customers shared that EWA is an effective tool, with low cost to re
545cruit and retain talent. It symbolizes goodwill toward your staff by empowering them to take control of their finances."},privacy:{title:"Privacy-First Approach",description:"Ekko's minimal data collection not only respects employee privacy but also simplifies your HR processes, reduces onboarding friction, and boosts employee engagement."},deployment:{title:"Lean & Effortless Deployment",description:"Ekko integrates with most HR systems like Vnresource, BIPO, FPT IHRP to synchronize data. The deployment process is simpler and streamlined than ever."},security:{title:"Trust is Our Priority",description:"We prioritize data and system security through ISO 27001 compliance and annual penetration tests, guaranteeing protection against breaches and fraud."}},deploy:{label:"/ SERVICE",title:"Deploy Ekko at your company",description:"With a simple process and a professional team, Ekko can bring a unique benefit to your company in just under 5 working days.",steps:{step1:{number:"01",title:"Meet up",description:"We discuss your workforce needs and sign a partnership agreement to get started."},step2:{number:"02",title:"Deploy",description:"Together, we configure Ekko's Financial Health Package based on your company's requirements."},step3:{number:"03",title:"Announce",description:"We help communicate the new employee benef
545its to your staff with Ekko's marketing kit."},step4:{number:"04",title:"Access",description:"Your employees sign up on Ekko's mobile app and start using their financial wellness benefits."}}},app:{title:"Everything your employees need in one app",subtitle:"From instant wage access to financial education, empowering workers with tools that make a real difference.",support:{title:"24/7 Support",description:"Round-the-clock customer support in Vietnamese, ready to assist your employees anytime."},stats:{withdrawal:"Average withdrawal time",interest:"Interest rate",availability:"App availability",courses:"Financial courses"}},faq:{title:"Frequently Asked Questions",items:{q1:{question:"What is earned wage access? Is it a payday loan?",answer:"Ekko provides a wage technology platform for businesses, allowing workers to proactively access part of their salary at any time without waiting for payday. Ekko is completely different from loans: no interest, no hidden fees, no deferred payment, and no debt recovery."},q2:{question:"Does Ekko's solution affect the cash flow of employers?",answer:"Employers only need to reimburse Ekko the money that their employees advanced at the end of the month, which creates NO IMPACT on the businesses' cash flow."},q3:{question:"Does Ekko create more workload for HR department?",answer:"Ekko can integrate with most HR software on the market to automate the process of deployment and wage access management, reducing HR workload significantly."},q4:{question:"What is included in Ekko's Financial Education Programme?",answer:"Our ITC-ILO certified programme covers 6 core modules: Setting Financial Goals, Managing Money Day-to-Day, Saving for the Future, Borrowing Responsibly, Using Financial Services, and Protecting Your Finances. Content is delivered through workshops and in-app courses, tailored for Vietnam's workforce."},q5:{question:"How does Ekko measure impact on employee financial wellness?",answer:"We track key metrics including savings account openings, course completion rates, and reduction in informal borrowing. Our partners typically see improved employee retention, reduced absenteeism, and higher productivity within 6 months of implementation."}}},whyPartner:{subtitle:"We make implementation seamless while keeping your data secure",title:"Why Partner With Us"}},vhe={hero:{title:"Access your earned wages anytime",description:"No more waiting for payday. Get instant access to money you've already earned. No credit check, no hidden fees.",downloadOn:"Download on the"},app:{badge:"Ekko App",features:{courses:{description:"Free learning with fun gamified content",title:"Financial Courses"},instant:{description:"Get funds in seconds, directly to your bank account",title:"Instant Wage Access"},savings:{description:"Set goals and track your savings progress",title:"Savings Tools"},security:{description:"ISO 27001 certified with OTP authentication",title:"Maximum Security"},support:{description:"Vietnamese support team always ready to help",title:"24/7 Support"},tracking:{description:"See your earned wages updated daily",title:"Real-time Tracking"}},subtitle:"Manage your personal finances easily with features designed for you",title:"Everything you need in one app"},faq:{items:{q1:{answer:"Ekko is an employer-integrated benefit. That means your company must be partnered with us in order for you to access the app.",question:"Can anyone use the Ekko App?"},q2:{answer:"Once your employer has implemented Ekko, your pay information is transmitted through a secure connection. Your wage balance (based on pay rate and hours worked) will be updated daily. You can withdraw to your bank account and the amount will be deducted from your next paycheck.",question:"How does Ekko work?"},q3:{answer:"Getting started is fast and easy! After your employer announces the new benefit, download the Ekko app from the App Store or Google Play. Launch the app and tap 'Sign Up'. From there, follow the prompts and you'll be on your way.",question:"How do I sign up?"},q4:{answer:"No! Ekko is completely different from loans: no interest, no hidden fees, no deferred payment, and no debt collection. You're simply accessing wages
545you've already worked to earn.",question:"Is Ekko a loan?"},q5:{answer:"Ekko takes security seriously with ISO 27001 certification. We use one-time passwords (OTP), in-app verification, and additional protections when changing sensitive data.",question:"Is the Ekko App secure?"}},title:"FAQ"},howItWorks:{badge:"Get Started",steps:{step1:{description:"Once the program is set up, you'll receive an announcement through your employer.",title:"Your employer partners with Ekko"},step2:{description:"Launch the app and sign up by verifying basic information and linking your bank account.",title:"Download the app and sign up"},step3:{description:"Track your available earned wages, make withdrawals, and explore financial wellness tools.",title:"Start using Ekko"},step4:{description:"The amount you withdrew will appear as a single line deduction on your pay stub.",title:"Get remaining wages on payday"}},subtitle:"Four simple steps to start using Ekko",title:"How it works"},support:{description:"We're here 24/7 to answer your questions and help you navigate your account.",phone:"Phone",title:"Need app support?"},wellness:{benefits:{balance:{description:"Better align your pay with your bills and start eliminating unnecessary late payment fees.",title:"Balance Income & Expenses"},debt:{description:"Reduce the need to rely on high-interest loans, credit cards, and other unsustainable options.",title:"Avoid Debt Traps"},education:{description:"Access free in-app financial courses to build lasting money management skills.",title:"Financial Education"},safety:{description:"Be more equipped to manage unexpected and emergency expenses life throws at you.",title:"Financial Safety Net"}},title:"Financial wellness isn't just about money. It's about peace of mind."}},xhe={hero:{title:`We're Ekko 546and this is our story`,description:"Ekko is the earned wage access solution for forward-thinking companies across Vietnam. We empower workers with financial flexibility while helping businesses reduce turnover."},story:{title:"Our Story",description:"In Vietnam, workers often face financial stress between paydays. High-interest black market loans trap many in cycles of debt. Ekko was founded to break this cycle by providing a safe, fair alternative that empowers workers and strengthens businesses."},clients:{title:"Trusted by leading companies"},team:{label:"Meet Our Team",title:"Passionate people building the future of pay.",description:"We're a diverse team of technologists, finance experts, and dreamers united by a common goal: making financial inclusion a reality for Vietnamese workers.",cta:"Join Our Team"},awards:{label:"Recognition",title:"Award-winning innovation"},investors:{label:"Our Investors",title:"Backed by impact",description:"We partner with impact-driven funds and foundations who share our vision of financial inclusion for every worker."},press:{label:"In The Media",title:"What the media is saying",readArticle:"Read article"},cta:{title:"Want to join our team?",description:"We're always looking for passionate people to help us empower workers across Vietnam. Explore our open positions and become part of the Ekko family.",viewCareers:"View Open Positions"}},bhe={label:"CAREERS",title:"Join Our Mission",subtitle:"Help us empower millions of workers with financial freedom. Build something meaningful.",whyJoin:{title:"Why Join Ekko?",description:"We're building the future of financial wellness for workers across Southeast Asia."},values:{impact:{title:"Impact First",description:"We're building solutions that genuinely improve workers' lives."},team:{title:"Team Spirit",description:"We collaborate, support each other, and celebrate wins together."},growth:{title:"Rapid Growth",description:"Join a fast-growing startup where you can make a real difference."},culture:{title:"Diverse Culture",description:"A multicultural team bridging Vietnam and global markets."}},openings:{title:"Open Positions"},filter:{all:"All Departments"},loading:"Loading positions...",noOpenings:"No open positions at the moment.",checkBack:"Check back soon or send us your CV at [email protected]",viewJob:"View Job",backToJobs:"Back to All Jobs",sections:{description:"Job Description",requirements:"Requirements",benefits:"Benefits"}
546,apply:{title:"Apply for this position",name:"Full Name",email:"Email",phone:"Phone",coverLetter:"Cover Letter",coverLetterPlaceholder:"Tell us why you're interested...",submit:"Submit Application",submitting:"Submitting...",success:{title:"Application Submitted!",description:"We'll review your application and get back to you soon."},error:{title:"Error",description:"Failed to submit application. Please try again."},instructions:"To apply, please send your application including:",requirement:{coverLetter:"Cover letter",cv:"CV/Resume",position:"Position you're applying for"}},notFound:{title:"Job Not Found",description:"This position may no longer be available."},cta:{title:"Don't see a role that fits?",description:"We're always looking for talented people. Send us your CV and we'll keep you in mind.",button:"Send Your CV"}},whe={nav:{intro:"Introduction",methodology:"Methodology",demographics:"Demographics",quality:"Quality of Life",loyalty:"Building Loyalty",voices:"Voices"},hero:{badge:"Supported by The ILO & Gates Foundation",title:"2024 EWA",titleAccent:"Impact Report",description:"Discover how Earned Wage Access is transforming financial wellness for workers across Vietnam"},summary:{title:"Rethinking Pay for a More Resilient Workforce",description:"In Vietnam, many workers struggle to make ends meet, living paycheck to paycheck. When unexpected expenses arise, they often turn to predatory lenders, creating cycles of debt. Earned Wage Access (EWA) offers a solution by enabling employees to access earned income before payday."},stats:{manageFinances:{label:"Improved ability to manage finances",quote:"I can now plan my monthly budget better and save for emergencies."},emergencies:{label:"Improved ability to deal with emergencies",quote:"When I urgently need money, I can now be financially self-reliant thanks to Ekko."},qualityOfLife:{label:"Quality of life improved",quote:"I find that Ekko helps improve life regarding paying for my child's tuition."},reducedStress:{label:"Reduced financial stress",quote:"I no longer feel stressed when waiting for payday."}},methodology:{label:"Research Methodology",title:"A Data-Driven Look at EWA's Impact",description:"The 2024 EWA Impact Report builds on a qualitative study conducted by the International Labour Organization (ILO) and the Gates Foundation, with 60 Decibels surveying workers using Ekko.",companies:"Companies surveyed",responses:"Worker responses",minutes:"Minutes per interview",weeks:"Weeks of research",partners:"Research & Impact Partners"},demographics:{label:"Demographics",title:"Understanding Our Users",monthlyUsage:"of users surveyed use Ekko at least once every month",respondents:"Respondents",medianAge:"Median Age",householdSize:"Household Size",purposeTitle:"Purpose of Using Ekko",mentions:"mentions",categories:{household:"Regular Household",work:"Work Related",emergency:"Emergency",personal:"Personal"},relyOnEkko:"Rely solely on Ekko for their financing needs",relyDescription:"To manage their monthly expenses, respondents rely on Ekko as a trusted financial resource rather than borrowing from friends, acquaintances, or payday lenders."},qualityOfLife:{label:"Quality of Life",title:"Perceived Quality of Life Change",description:"A remarkable 63% of respondents stated that their lives have improved with Ekko, as it provides a reliable financial safety net and helps them achieve stability and easing their worries.",chartLabels:{veryImproved:"Very much improved",slightlyImproved:"Slightly improved",noChange:"No change",slightlyWorse:"Slightly worse"},reasons:{emergency:{text:"Access to emergency funds",quote:"When I encountered difficulties, Ekko supports me to advance my salary to help pay for emergencies."},cashFlow:{text:"Improved cash flow",quote:"Expenses for small, daily items like food no longer pose an issue for me on a monthly basis."},stress:{text:"Reduced financial stress",quote:"I no longer feel stressed when waiting for payday."}}},loyalty:{label:"Building Loyalty",title:"Strengthening Employee-Employer Relationships",jobImportance:{title:"Importance in Job Consideration",score:"/10 average importance score",description:"When considering a new job, access to an EWA service like Ekko ranks highly important to workers."},relationship:{title:"Employer Relationship",label:"improved relationship",description:"More than half of users report that their relationship with their employer has improved because of Ekko's earned wage access service."},quote:"I find it very convenient. Normal company will not allow employees to advance salary, there's really n
546o way to do that kind of advance. So I appreciate it.",quoteAuthor:"Office staff, age 22, male"},voices:{label:"Voices That Matter",title:"Real Stories from Real Workers",description:"Feedback from our users is at the heart of Ekko's journey. These voices guide us toward building a more impactful solution."},testimonials:{factoryWorker:{quote:"When I urgently need money, instead of calling many people for help, I can now be financially self-reliant thanks to Ekko.",author:"Factory worker",location:"Bình Dương"},securityGuard:{quote:"I find that Ekko helps improve life regarding paying for my child's extra tuition because these tuition fees don't align with payday.",author:"Security guard",location:"Ho Chi Minh City"},gardener:{quote:"Since using Ekko, I no longer feel caught off guard by monthly expenses like electricity, water, and my children's school fees.",author:"Gardener",location:"Hung Yen"},busDriver:{quote:"I no longer have to worry when running out of money before receiving my company's salary. I can cover living expenses like food and transportation.",author:"Bus driver",location:"Vietnam"}},trust:{label:"Building Trust",title:"Our Users Trust Ekko",transparency:"report clear, transparent fee structure and policies",timeliness:'rate timeliness of service as "Very Good" or "Good"',challenges:"Only 8% of users report any challenges",quote:"The Ekko app's salary advance service is quite easy to understand and use.",quoteAuthor:"Factory worker, age 45"},cta:{title:"Want the Full Study?",description:"Reach out to receive the complete 2024 EWA Impact Report and learn how Ekko can transform your workforce's financial wellness.",button:"Get in Touch"}},khe={label:"INSIGHTS",title:"Latest News",subtitle:"Stay updated with the latest news, partnerships, and insights from Ekko",filter:{all:"All",news:"News",article:"Articles"},readMore:"Read more",noArticles:"No articles found"},She={backToNews:"Back to News",relatedArticles:"Related Articles",notFound:"Article not found"},jhe={badge:"Financial Education Programme",description1:"Our Financial Education Programme is built on the",description1Suffix:", carefully adapted to Vietnam's context.",description2:"Our trainers are the",description2Suffix:", empowering workers with the knowledge and skills to take control of their finances.",iloMethodology:"International Labour Organization's globally recognized methodology",itcIlo:"International Training Centre of the ILO",module:"Module",modules:{borrowing:{point1:"Compare credit options and understand the true cost of borrowing",point2:"Learn how to choose safe loan products",point3:"Avoid debt traps and over-indebtedness",shortTitle:"Borrowing",title:"Borrowing Responsibly"},budgeting:{point1:"Learn to budget and spend wisely",point2:"Track expenses and keep financial records",point3:"Build smart money habits for everyday life",shortTitle:"Budgeting",title:"Managing Money Day-to-Day"},goals:{point1:"Learn how to set short- and long-term financial goals",point2:"Build confidence in communicating about money",point3:"Make a plan and track progress over time",shortTitle:"Goals",title:"Setting Financial Goals"},protection:{point1:"Learn how to manage risks and avoid financial fraud",point2:"Understand how insurance works and when to use it",shortTitle:"Protection",title:"Protecting Your Finances"},savings:{point1:"Understand different saving methods and products",point2:"Choose the right saving option for your goals",point3:"Build a habit of regular saving",shortTitle:"Savings",title:"Saving for the Future"},services:{point1:"Understand how to use banks, e-wallets, and money transfer tools safely",point2:"Build confidence in dealing with financial institutions",point3:"Make informed choices when using financial products",shortTitle:"Services",title:"Using Financial Services"}},modulesNote:"Modules can be structured differently depending on your workforce needs",modulesSubtitle:"Click on a module to explore what your employees will learn",modulesTitle:"6 Core Financial Education Modules",officialPartner:"Official Partner",stats:{completions:"course completions",savings:"savings accounts opened",workshops:"hours of workshops"},title:"Content Built on Best Educators in the World",trainersHighlight:"first and only ILO-certified financial educators in Vietnam"}
546,_he={readMore:"Read more",subtitle:"Stay updated with our latest partnerships and insights",title:"Latest News",viewAll:"View all news"},Ehe={announcement:Qde,nav:Zde,hero:Jde,logoMarquee:ehe,content:the,stats:nhe,whyCompanies:rhe,mission:ihe,howItWorks:she,benefits:ahe,pricing:ohe,security:lhe,integrations:che,rollout:uhe,testimonial:dhe,cta:hhe,footer:fhe,clients:phe,awards:mhe,media:ghe,forBusiness:yhe,forWorkers:vhe,about:xhe,careers:bhe,impactReport:whe,news:khe,newsDetail:She,financialEducation:jhe,newsPreview:_he},The={new:"Má»i:",text:"Ekko gá»i vá»n thà nh công 4,2 triá»u USD Äá» má» rá»ng giải pháp an sinh tà i chÃnh tại Viá»t Nam.",textShort:"Ekko gá»i vá»n 4,2 triá»u USD",cta:"Äá»c thêm"},Nhe={business:"Cho Doanh nghiá»p",workers:"Cho Nhân viên",about:"Vá» chúng tôi",blog:"Góc nhìn",admin:"Quản trá» viên",contact:"Liên há»"},Che={badge:"Ứng lương linh hoạt #1 Viá»t Nam",title1:"Cách ÄÆ¡n giản Äá» há» trợ nhân viên",title2:"má»i ngà y.",description:"Giúp giảm cÄng thẳng tà i chÃnh và tá»· lá» nghá» viá»c bằng cách cho nhân viên chá»§ Äá»ng tiếp cáºn phần lương Äã là m ra trưá»c kỳ lương thông thưá»ng",cta:"Tìm hiá»u thêm",learnMore:"Tìm hiá»u thêm"},Ahe={trusted:"ÄÆ°á»£c tin dùng bá»i các doanh nghiá»p hà ng Äầu tại Viá»t Nam"},Phe={title1:"Gói Sức Khá»e Tà i ChÃnh",title2:"Má»i ngà y Äá»u",title3:"Äáng giá",description:"Chương trình phúc lợi nhân viên toà n diá»n ÄÆ°á»£c thiết kế Äá» trao quyá»n cho lá»±c lượng lao Äá»ng cá»§a bạn, từ ứng lương theo nhu cầu Äến chương trình tiết kiá»m và chuyá»n Äá»i sá» HR.",tabs:{comprehensive:"Thanh khoản tà i chÃnh",tools:"Kiến thức tà i chÃnh",education:"Chuyá»n Äá»i sá» HR"},cards:{liquidity:{title:"Thanh khoản",description:"Truy cáºp lương 24/7. Rút tiá»n bất cứ lúc nà o vá»i rá»§i ro vá
546»n bằng không cho doanh nghiá»p."},literacy:{title:"Kiến thức",description:"Giáo dục tà i chÃnh dạng game Äá» xây dá»±ng kỹ nÄng quản lý tiá»n mạnh mẽ hÆ¡n."},savings:{title:"Tiết kiá»m",description:"Xây dá»±ng thói quen tiết kiá»m lâu dà i thông qua Äặt mục tiêu, Äóng góp tá»± Äá»ng và nhắc nhá» cá nhân hóa."},hrdx:{title:"HR DX",description:"Công cụ chuyá»n Äá»i sá» Äá» tá»i ưu hóa hoạt Äá»ng HR."}}},Ohe={badge:"Xem những Äiá»m ná»i báºt cá»§a báo cáo tại Äây",title:"Chi phà hiá»u quả, tác Äá»ng to lá»n",description:"Vá»i sá»± tà i trợ và Äá»ng hà nh cá»§a ILO (Tá» chức lao Äá»ng thế quá»c tế), Ekko phá»i hợp cùng ÄÆ¡n vá» khảo sát Äã triá»n khai má»t chiến dá»ch khảo sát toà n diá»n trong nÄm 2024, qua Äó ghi nháºn những phát hiá»n quan trá»ng vá» tác Äá»ng thá»±c tế cá»§a Ekko trong viá»c cải thiá»n Äá»i sá»ng ngưá»i lao Äá»ng.",items:{satisfaction:{value:"64%",label:"nháºn thấy có sá»± cải thiá»n nÄng lá»±c xá» lý các tình huá»ng khẩn cấp",description:"Báo cáo cải thiá»n khả nÄng xá» lý chi phà khẩn cấp"},users:{value:"63%",label:"Äá»ng ý rằng chất lượng sá»ng ÄÆ°á»£c cải thiá»n",description:"Ngưá»i dùng báo cáo chất lượng cuá»c sá»ng ÄÆ°á»£c cải thiá»n"},retention:{value:"52%",label:"nháºn thấy há» Äã giảm bá»t ÄÆ°á»£c lo lắng tà i chÃnh",description:"Ngưá»i dùng thừa nháºn lo lắng vá» tà i chÃnh Äã giảm"},support:{value:"45%",label:"cho biết Äã hạn chế ÄÆ°á»£c viá»c vay mượn bên ngoà i, tÃn dụng Äen",description:"Ngưá»i dùng giảm phụ thuá»c và o các khoản vay không chÃnh thức"}},readMore:"Chi tiết"},Rhe={label:"",title1:"Tại sao Doanh nghiá»p",title2:"chá»n Ekko",description:"Má»t Äá»i ngÅ© vững mạnh bắt Äầu từ sá»± á»n Äá»nh tà i chÃnh. Hãy Äá»ng hà nh cùng các doanh nghiá»p hà ng Äầu trong hà nh trình Äá»i má»i lá»±c lượng lao Äá»ng.",cta:"Tìm hiá»u thêm",benefits:{turnover:{title:"Giảm Nghá» viá»c",description:"Giảm tá»· lá» nghá» viá»c trong nÄm Äầu tiên"},applicants:{title:"Thu hút",description:"Ná»i báºt vá»i phúc lợi lương hà ng ngà y"},engagement:{title:"TÄng hiá»u quả",description:"TÄng nÄng suất bằng cách giảm cÄng thẳng tà i chÃnh"},digital:{stat:"Miá»
n phÃ",title:"Không phát sinh phÃ",description:"Há»c và thá»±c hà nh ngay trên ứng dụng mà không phát sinh phà sá» dụng"}}},Ihe={label:"/ SỨ Má»NH",title:"Nâng tầm an sinh tà i chÃnh và nuôi dưỡng nguá»n nhân lá»±c thá»nh vượng cho doanh nghiá»p khu vá»±c Äông Nam Ã."},Mhe={title:"Ekko - Giải pháp An sinh tà i chÃnh",subtitle:"ÄÆ¡n giản, nhanh chóng, an toà n",description:"Giải pháp cá»§a chúng tôi kết hợp ứng dụng di Äá»ng vá»i tÃnh nÄng ứng lương và há»c táºp quản lý tà i chÃnh cá nhân, các lá»p giáo dục tà i chÃnh trá»±c tiếp, cùng bá» công cụ há» trợ nhân sá»± toà n diá»n, giúp tá»i ưu váºn hà nh doanh nghiá»p, Äá»ng thá»i nâng cao phúc lợi và tÄng khả nÄng giữ chân nhân viên.",tabs:{app:"Ứng dụng Ekko",appSubtitle:"Cho Nhân viên",portal:"HR Portal",portalSubtitle:"Cho Bá» pháºn HR",workshops:"Äà o tạo trá»±c tiếp",workshopsSubtitle:"Cho Nhân viên",convenient:"Ứng lương tiá»n lợi",streamlined:"Quản lý tinh gá»n"},appDescription:"Ứng dụng di Äá»ng giúp ngưá»i lao Äá»ng tiếp cáºn lương Äã là m ra, há»c kỹ nÄng quản lý tà i chÃnh và láºp kế hoạch tiết kiá»m.",appTitle:"Ứng dụng EKKO",appFeatures:{ewa:{title:"Ứng lương Linh hoạt",description:"Nhân viên chá»§ Äá»ng tiếp cáºn lương Äã là m ra má»i lúc, rút tiá»n nhanh chóng vá»i chi phà minh bạch, không phà ẩn."},education:{title:"Há»c Quản lý Tà i chÃnh",description:"Các khóa há»c tà i chÃnh tương tác dạng game, do chuyên gia thiết kế, giúp nhân viên xây dá»±ng kỹ nÄng quản lý tiá»n hiá»u quả và bá»n vá
546»¯ng."},planning:{title:"Láºp kế hoạch Tiết kiá»m",description:"Công cụ giúp nhân viên Äặt mục tiêu tiết kiá»m, theo dõi chi tiêu và hình thà nh thói quen tà i chÃnh là nh mạnh."}},portalDescription:"Portal trên ná»n tảng web dà nh cho Äá»i ngÅ© Nhân sá»±, giúp quản lý nhân viên và theo dõi thông tin và sá» liá»u ngay láºp tức.",portalFeatures:{management:{title:"Quản lý Nhân viên",description:"Dá»
dà ng quản lý viá»c ÄÄng ký, ứng lương và cáºp nháºt, chá»nh sá»a thông tin cÆ¡ bản cÅ©ng như hạn mức ứng lương cho từng nhân viên"},analytics:{title:"Phân tÃch Thá»i gian thá»±c",description:"Cáºp nháºt hà nh vi ngưá»i dùng, kiá»m soát tá»· lá» sá» dụng và tạo báo cáo toà n diá»n."},integration:{title:"TÃch hợp Liá»n mạch",description:"Kết ná»i vá»i há» thá»ng HR và bảng lương hiá»n có Äá» Äá»i soát tá»± Äá»ng."}},workshopDescription:"Các buá»i Äà o tạo giáo dục tà i chÃnh trá»±c tiếp ÄÆ°á»£c triá»n khai tại doanh nghiá»p, do giảng viên ÄÆ°á»£c ILO chứng nháºn dẫn dắt.",workshopFeatures:{onDemand:{title:"Äà o tạo Theo yêu cầu",description:"Äặt lá»ch há»i thảo kiến thức tà i chÃnh phù hợp vá»i lá»ch trình và nhu cầu nhân viên, tá» chức tại nÆ¡i là m viá»c hoặc trá»±c tuyến."},certified:{title:"Giảng viên ÄÆ°á»£c ILO Chứng nháºn",description:"Giảng viên ÄÆ°á»£c chứng nháºn bá»i Tá» chức Lao Äá»ng Quá»c tế, Äảm bảo tiêu chuẩn giáo dục tà i chÃnh Äẳng cấp thế giá»i."},programs:{title:"Chương trình Tùy chá»nh",description:"Giáo trình chuyên biá»t dà nh cho cả nhân viên vÄn phòng và công nhân, giải quyết thách thức tà i chÃnh riêng cá»§a từng nhóm."}},features:{interface:{title:"Giao diá»n Äẹp mắt, thao tác tinh gá»n",description:"Thiết kế dá»
sá» dụng cho má»i ngưá»i - trên má»i vai trò và mức Äá» hiá»u biết sá». Nhân viên có thỠứng lương chá» vá»i và i thao tác."},support:{title:"Ứng lương má»i lúc vá»i há» trợ 24/7",description:"Äá»i ngÅ© há» trợ khách hà ng Ekko luôn sẵn sà ng 24/7 Äá» trả lá»i má»i câu há»i. Dà nh cho tất cả nhân viên, ká» cả những ngưá»i có lá»ch sá» tÃn dụng kém."},education:{title:"Miá»
n phà Giáo dục tà i chÃnh vá»i giáo trình chuyên gia",description:"Bà i há»c hấp dẫn, dạng game dà nh cho má»i ngưá»i. Má»i khóa há»c ÄÆ°á»£c minh há»a bằng Äá» há»a, câu Äá» và công cụ tương tác, giúp viá»c há»c ÄÆ¡n giản, vui và hiá»u quả."}},steps:{step1:{title:"Yêu cầu cá»§a nhân viên",description:"Nhân viên khá»i tạo yêu cầu ứng lương qua ứng dụng Ekko, dá»±a trên sá» giá» là m viá»c hoặc lương Äã tÃch lÅ©y."},step2:{title:"Ekko giải ngân",description:"Ekko chuyá»n tiá»n ngay láºp tức và o tà i khoản lương cá»§a nhân viên (trong và i giây), dá»±a trên lương Äã xác minh."},step3:{title:"Äá»i soát lương",description:"Và o ngà y phát lương, doanh nghiá»p khấu trừ khoản ứng trưá»c từ lương nhân viên."},step4:{title:"Hoà n trả doanh nghiá»p",description:"Doanh nghiá»p hoà n trả Ekko tá»ng sá» tiá»n Äã ứng, thưá»ng là 3-5 ngà y là m viá»c sau kỳ lương."}}},$he={company:{title:"Lợi Ãch cho công ty",subtitle:"Äá»i ngÅ© vững mạnh bắt Äầu từ á»n Äá»nh tà i chÃnh",items:{turnover:{title:"Giảm tá»· lá» nghá» viá»c",description:"Nghiên cứu cho thấy giảm 10-15% tá»· lá» nghá» viá»c sau má»t nÄm sá» dụng Ekko."},attract:{title:"Thu hút nhiá»u ứng viên hÆ¡n",description:'Ná»i báºt trong thá» trưá»ng tuyá»n dụng cạnh tranh vá»i lợi thế "lương hà ng ngà y".'},engagement:{title:"Gắn kết mạnh mẽ hÆ¡n",description:"Giảm cÄng thẳng tà i chÃnh giúp tÄng nÄng suất và cải thiá»n tinh thần toà n bá» nhân viên."},digital:{title:"TÃch hợp sá» hÆ¡n",description:"Công cụ chuyá»n Äá»i sá» và Äà o tạo nhân viên ná»i bá» bá» sung miá»
n phÃ."}}},backoffice:{title:"Lợi Ãch cho bá» pháºn vÄn phòng",subtitle:"Quy trình tinh gá»n cho các Äá»i HR, C&B và Kế toán",items:{paperwork:{title:"Không thá»§ tục hoà n tiá»n",description:"Các khoản ứng tiá»n liên quan Äến công viá»c ÄÆ°á»£c quản lý sá», giảm gánh nặng hà nh chÃnh."},digital:{title:"Quy trình sá» hóa",description:"Tiết kiá»m thá»i gian vá»i phê duyá»t tá»± Äá»ng và theo dõi thá»i gian thá»±c."},accuracy:{title:"Cải thiá»n Äá» chÃnh xác dữ liá»u",description:"Chúng tôi giúp nhân viên nháºp chấm công chÃnh xác, cải thiá»n Äá» chÃnh xác lương."}}},employees:{title:"Lợi Ãch cho nhân viên",subtitle:"Cách Ekko Äang thay Äá»i cuá»c sá»ng",items:{debt:{title:"Tránh bẫy nợ",description:"Bằng cách cung cấp giải pháp thay thế cho các khoản vay lãi suất cao từ thá» trưá»ng chợ Äen, ứng lương theo nhu cầu giúp nhân viên tránh bẫy tà i chÃnh."},access:{title:"Truy cáºp không hạn chế",description:"Dà nh cho tất cả nhân viên, ká» cả những ngưá»i có lá»ch sá» tÃn dụng kém."},smarter:{title:"Quản lý tiá»n thông minh hÆ¡n",description:"ÄÆ°a ra lá»±a chá»n tá»t nhất trong trưá»ng hợp khẩn cấp tà i chÃnh. Tiếp cáºn thu nháºp trong khi bảo toà n tiết kiá»m."}}}},Dhe={title:"Giá cả linh hoạt phù hợp vá»i tá» chức cá»§a bạn",subtitle:"Chá»n mô hình phù hợp nhất vá»i mục tiêu công ty, hoặc kết hợp cả hai.",saas:{title:"Ekko SaaS",subtitle:"Doanh nghiá»p trả",description:"Phà ná»n tảng hà ng tháng do công ty trả, dá»±a trên sá» lượng nhân viên. Tá»t nhất cho các công ty muá»n cung cấp EWA như phúc lợi toà n diá»n."},base:{title:"Ekko Base",subtitle:"Nhân viên trả",description:"Nhân viên trả phà % nhá» má»i giao dá»ch ứng lương. Không tá»n chi phà cho doanh nghiá»p. Tá»t nhất cho các công ty muá»n cung cấp EWA mà không ảnh hưá»ng ngân sách."},mixed:"Tùy chá»n: Mô hình kết hợp"},Lhe={title:"Bảo máºt & Bảo vá» dữ liá»u",iso:"Chứng nháºn ISO 27001",description:"Ekko ÄÆ°á»£c chứng nháºn ISO 27001, tiêu chuẩn và ng toà n cầu vá» bảo máºt thông tin.",items:{pentest:{title:"Kiá»m tra xâm nháºp thưá»ng xuyên",description:"Chúng tôi hợp tác vá»i CyRadar, công ty an ninh mạng Viá»t Nam uy tÃn và Äá»i tác Google VirusTotal."},compliance:{title:"Tuân thá»§ Äầy Äá»§",description:"Tuân thá»§ hoà n toà n Nghá» Äá»nh 13 cá»§a Viá»t Nam vá» Bảo vá» Dữ liá»u Cá nhân vá»i xác thá»±c OTP."},protection:{title:"Bảo vá» dữ liá»u",description:"TÄng cưá»ng an ninh mạng, giảm rá»§i ro váºn hà nh và rò rá» dữ liá»u, phát hiá»n lá» há»ng."}}},Fhe={title:"TÃch hợp liá»n mạch vá»i các há» thá»ng HR hà ng Äá
546º§u",description:"Không rắc rá»i thiết láºp. Chúng tôi Äã là m viá»c nặng vá»i các ná»n tảng HR hà ng Äầu Viá»t Nam."},Bhe={title:"Quy trình triá»n khai suôn sẻ",description:"Vá»i các phương pháp tá»t nhất Äã ÄÆ°á»£c chứng minh, chúng tôi Äảm bảo triá»n khai Ekko suôn sẻ cho toà n bá» nhân viên",steps:{step1:{title:"Thiết láºp nhanh",duration:"1-2 ngà y",items:["Ký hợp Äá»ng","TÃch hợp HR/chấm công (API, tải file, hoặc thá»§ công)","Äánh giá quy trình lương Äá» tùy chá»nh há» thá»ng"]},step2:{title:"TÃch hợp há» thá»ng & Äà o tạo",duration:"1-7 ngà y",items:["ÄÄng ký nhân viên tại chá»","Xác Äá»nh chÃnh sách ứng lương (giá»i hạn, nhóm, Äiá»u kiá»n)","Äà o tạo HR (1 giá»)"]},step3:{title:"Ra mắt & Äá»i soát hà ng tháng",duration:"Liên tục",items:["Äá»i soát hà ng tháng (5 ngà y trưá»c ngà y lương)","Xem xét, xác nháºn & hoà n trả Ekko sau kỳ lương"]}}},Vhe={title:"Khách hà ng nói gì vá» Ekko",quotes:[{quote:"Chúng tôi luôn tìm kiếm những cách thức Äá» nâng cao phúc lợi cho nhân viên, và Ekko mang Äến má»t cách tiếp cáºn má»i mẻ, chu Äáo, cá»§ng cá» vÄn hóa quan tâm và trách nhiá»m cá»§a chúng tôi. Ekko giúp nhân viên chá»§ Äá»ng quản lý các chi phà phát sinh mà không cần tìm Äến các hình thức vay mượn có hại.",author:"Bruno Jaspaert",source:`Chá»§ tá»ch EuroCham Viá»t Nam 547Tá»ng Giám Äá»c Äiá»u hà nh Deep C Industrial Zones Viá»t Nam`},{quote:"Ekko há» trợ ná» lá»±c tuyá»n dụng cá»§a chúng tôi bằng cách mang Äến Äiá»u mà hầu hết ứng viên chưa từng thấy. Äiá»u nà y cho thấy chúng tôi là doanh nghiá»p tiên phong và Äặt con ngưá»i là m trá»ng tâm, giúp chúng tôi ná»i báºt trong thá» trưá»ng tuyá»n dụng cạnh tranh.",author:"Takashi Mori",source:"AGS (Viá»t Nam) - Tá»ng Giám Äá»c"},{quote:`Ekko là má»t ứng dụng rất hữu Ãch Äá»i vá»i CBNV Homefarm, há» trợ ngưá»i lao Äá»ng chá»§ Äá»ng hÆ¡n trong các giải pháp tà i chÃnh cá nhân, Äặc biá»t khi có nhu cầu phát sinh. 548Ứng dụng ÄÆ°á»£c thiết kế tiá»n dụng, dá» tiếp cáºn, thao tác nhanh gá»n, phù hợp vá»i Äa dạng Äá»i tượng ngưá»i lao Äá»ng cá»§a Homefarm. 549Cảm Æ¡n Ekko Äã Äá»ng hà nh cùng Homefarm thá»i gian qua!`,author:"Ms Chung Thương",source:"Giám Äá»c Nhân sá»±, Homefarm"},{quote:`Viá»c triá»n khai Ekko là má»t trong những phúc lợi thiết thá»±c mà Vua Ná»m dà nh cho CBNV, nhằm há» trợ ngưá»i lao Äá»ng chá»§ Äá»ng hÆ¡n trong viá»c cân Äá»i và quản lý tà i chÃnh cá nhân khi có nhu cầu phát sinh. 550Phúc lợi nà y không chá» góp phần giảm áp lá»±c tà i chÃnh cho ngưá»i lao Äá»ng mà còn thá» hiá»n sá»± quan tâm cá»§a Vua Ná»m tá»i Äá»i sá»ng và sá»± gắn bó lâu dà i cá»§a Äá»i ngÅ©.`,author:"Giám Äá»c Nhân sá»±, Vua Ná»m",source:"Vua Ná»m"}]},qhe={title:"Cùng nhau, chúng ta khiến má»i ngà y Äá»u Äáng giá.",description:"Hãy Äá» Ekko giúp doanh nghiá»p cá»§a bạn xây dá»±ng môi trưá»ng là m viá»c hạnh phúc hÆ¡n.",contact:"Liên há» tư vấn",hotline:"Hotline há» trợ",email:"Email liên há»",address:"21 Trà ng Tiá»n, Hoà n Kiếm, Hà Ná»i"},Uhe={tagline:"Nâng tầm an sinh tà i chÃnh và nuôi dưỡng nguá»n nhân lá»±c thá»nh vượng cho doanh nghiá»p khu vá»±c Äông Nam Ã.",product:{title:"Sản phẩm",flexible:"Ứng lương linh hoạt",tools:"Công cụ tà i chÃnh",education:"Giáo dục tà i chÃnh",pricing:"Bảng giá"},company:{title:"Công ty",about:"Vá» chúng tôi",team:"Äá»i ngÅ©",careers:"Tuyá»n dụng",blog:"Blog"},resources:{title:"Tà i nguyên",helpCenter:"Trung tâm há» trợ",faq:"Câu há»i thưá»ng gặp",caseStudies:"Nghiên cứu Äiá»n hình",api:"Tà i liá»u API"},legal:{title:"Pháp lý",terms:"Äiá»u khoản sá» dụng",privacy:"ChÃnh sách bảo máºt",cookies:"ChÃnh sách Cookie"},copyright:"© 2025 Ekko. Äã ÄÄng ký bản quyá»n.",madeIn:"ÄÆ°á»£c tạo vá»i â¤ï¸ tại Viá»t Nam"},Whe={title:"Khách hà ng tiêu biá»u",description:"ÄÆ°á»£c tin dùng bá»i các công ty hà ng Äá
550º§u trong lÄ©nh vá»±c sản xuất, bán lẻ và dá»ch vụ"},zhe={title:"Giải thưá»ng & Ghi nháºn",items:["Japan ESG Impact Awards","Nordic Business Innovation Award","Luxembourg Excellence in DEI Award","Korea Development Health & Safety Award","AmCham Vietnam Award"]},Hhe={quotes:{quote1:"Sản phẩm công nghá» Äá»i má»i há» trợ ngưá»i lao Äá»ng trong thá»i Äiá»m khó khÄn",quote2:"Giải pháp sáng tạo má»i giúp tÄng nÄng suất là m viá»c",quote3:"Giải pháp nà y sẽ là dá»ch vụ thiết yếu cho nhân viên",quote4:"Hà nh trình chuyá»n Äá»i thói quen tà i chÃnh má»i"}},Khe={hero:{title:"Nhân viên cá»§a bạn xứng Äáng ÄÆ°á»£c an sinh tà i chÃnh",subtitle:"Giải pháp Ứng lương Linh hoạt",description:"Giải pháp an sinh tà i chÃnh cho phép nhân viên chá»§ Äá»ng sá» dụng má»t phần lương Äã kiếm ÄÆ°á»£c, giảm bá»t áp lá»±c chi tiêu khẩn cấp và an tâm hÆ¡n trong cuá»c sá»ng hà ng ngà y."},unicef:{badge:"UNICEF Khuyến nghá»",title:"Ekko ÄÆ°á»£c UNICEF ghi nháºn trong Sá» tay Thá»±c hà nh Thân thiá»n vá»i Gia Äình",subtitle:"UNICEF Äã nêu báºt Ekko như và dụ Äiá»n hình vỠứng lương linh hoạt và Äà o tạo kiến thức tà i chÃnh, là chÃnh sách bảo vá» thu nháºp tiên tiến dà nh cho ngưá»i lao Äá»ng.",policy1:{number:"01",title:"Ứng lương Linh hoạt (EWA) â Khuyến nghá» Cấp Äá» Trung bình",description:'"Cho phép ngưá»i lao Äá»ng tiếp cáºn lương Äã là m ra trưá»c ngà y phát lương." Giải pháp nà y giúp há» xá» lý chi phà phát sinh mà không cần vay lãi suất cao.'},policy2:{number:"02",title:"Chương trình An sinh Tà i chÃnh â Khuyến nghá» Cấp Äá» Nâng cao",description:'"Triá»n khai chương trình an sinh tà i chÃnh toà n diá»n, bao gá»m há» trợ tiết kiá»m giáo dục cho con em ngưá»i lao Äá»ng." Giải pháp nà y thúc Äẩy sức khá»e tà i chÃnh và an ninh dà i hạn.'},cta:"Xem Sá» tay UNICEF",pageHint:"Cuá»n Äến trang 39 Äá» xem phần giá»i thiá»u vá» Ekko"},valueProps:{recruitment:{title:"Tuyá»n dụng và Giữ chân Nhân tà i Hiá»u quả",description:"85% Äá»i tác cho biết ứng lương linh hoạt là công cụ chi phà thấp nhưng hiá»u quả cao Äá» thu hút và giữ chân nhân viên, thá» hiá»n sá»± quan tâm thá»±c sá»± Äến Äá»i sá»ng tà i chÃnh cá»§a há»."},privacy:{title:"Tôn trá»ng Quyá»n riêng tư",description:"Ekko chá» thu tháºp dữ liá»u cần thiết, vừa bảo vá» quyá»n riêng tư nhân viên vừa ÄÆ¡n giản hóa quy trình HR, giúp triá»n khai nhanh chóng và tÄng tá»· lá» sá» dụng."},deployment:{title:"Triá»n khai Nhanh chóng & Dá»
dà ng",description:"Ekko tÃch hợp sẵn vá»i các há» thá»ng HR phá» biến như Vnresource, BIPO, FPT IHRP. Quy trình triá»n khai ÄÆ¡n giản, hoà n tất chá» trong 5 ngà y là m viá»c."},security:{title:"Bảo máºt là Ưu tiên Hà ng Äầu",description:"Há» thá»ng Äạt chứng nháºn ISO 27001 vÃ ÄÆ°á»£c kiá»m tra bảo máºt Äá»nh kỳ, Äảm bảo an toà n tuyá»t Äá»i cho dữ liá»u doanh nghiá»p và nhân viên."}},deploy:{label:"QUY TRÃNH",title:"Triá»n khai Ekko tại doanh nghiá»p cá»§a bạn",description:"Quy trình ÄÆ¡n giản, Äá»i ngÅ© chuyên nghiá»p â Ekko sẵn sà ng phục vụ nhân viên cá»§a bạn chá» trong 5 ngà y là m viá»c.",steps:{step1:{number:"01",title:"Trao Äá»i & Ký kết",description:"Chúng tôi tìm hiá»u nhu cầu cá»§a doanh nghiá»p và ký thá»a thuáºn hợp tác."},step2:{number:"02",title:"Cấu hình Há» thá»ng",description:"Äá»i ngÅ© Ekko thiết láºp giải pháp theo yêu cầu riêng cá»§a doanh nghiá»p."},step3:{number:"03",title:"Truyá»n thông Ná»i bá»",description:"Chúng tôi há» trợ thông báo phúc lợi má»i Äến toà n bá» nhân viên vá»i bá» tà i liá»u marketing sẵn có."},step4:{number:"04",title:"Nhân viên Sá» dụng",description:"Nhân viên ÄÄng ký qua ứng dụng Ekko và bắt Äầu sá» dụng các tÃnh nÄng tà i chÃnh ngay láºp tức."}}},app:{title:"Má»i thứ nhân viên cần trong má»t ứng dụng",subtitle:"Ứng lương linh hoạt, há»c quản lý tà i chÃnh cá nhân và láºp kế hoạch tiết kiá»m â tất cả trong má»t ứng dụng dá»
dùng, giúp nhân viên chá»§ Äá»ng tà i chÃnh má»i ngà y.",support:{title:"Há» trợ 24/7",description:"Äá»i ngÅ© chÄm sóc khách hà ng luôn sẵn sà ng há» trợ bằng tiếng Viá»t, giải Äáp má»i thắc mắc cá»§a nhân viên bất cứ lúc nà o."},stats:{withdrawal:"Thá»i gian nháºn tiá»n",interest:"Lãi suất",availability:"Hoạt Äá»ng liên tục",courses:"Khóa há»c tà i chÃnh"}},whyPartner:{title:"Tại sao Hợp tác vá»i Ekko",subtitle:"Äa dạng phương án triá»n khai, Äảm bảo an toà n dữ liá»u doanh nghiá»p"},faq:{title:"Câu há»i Thưá»ng gặp",items:{q1:{question:"Ứng lương linh hoạt là gì? Có phải vay lương không?",answer:"Ekko là ná»n tảng công nghá» lương cho phép nhân viên chá»§ Äá»ng rút trưá»c má»t phần lương Äã là m ra bất cứ lúc nà o, không cần chá» ngà y phát lương. Äây hoà n toà n KHÃNG phải vay: không lãi suất, không phà ẩn, không trả góp, và không thu há»i nợ."},q2:{question:"Giải pháp cá»§a Ekko có ảnh hưá»ng Äến dòng tiá»n doanh nghiá»p không?",answer:"Không. Doanh nghiá»p chá» cần hoà n trả Ekko sá» tiá»n nhân viên Äã ứng và o cuá»i kỳ lương, hoà n toà n KHÃNG ảnh hưá»ng Äến dòng tiá»n hoạt Äá»ng hà ng ngà y."},q3:{question:"Ekko có tạo thêm viá»c cho bá» pháºn HR không?",answer:"Không. Ekko tÃch hợp vá»i hầu hết phần má»m HR trên thá» trưá»ng, tá»± Äá»ng hóa quy trình triá»n khai và quản lý ứng lương, thá»±c tế còn giảm Äáng ká» khá»i lượng công viá»c HR."},q4:{question:"Chương trình Giáo dục Tà i chÃnh bao gá»m những gì?",answer:"Chương trình ÄÆ°á»£c ITC-ILO chứng nháºn, gá»m 6 module: Äặt Mục tiêu Tà i chÃnh, Quản lý Chi tiêu Hà ng ngà y, Tiết kiá»m cho Tương lai, Vay Mượn Có Trách nhiá»m, Sá» dụng Dá»ch vụ Tà i chÃnh, và Bảo vá» Tà i chÃnh. Ná»i dung ÄÆ°á»£c thiết kế phù hợp vá»i ngưá»i lao Äá»ng Viá»t Nam, triá»n khai qua workshop và khóa há»c trên ứng dụng."},q5:{question:"Ekko Äo lưá»ng tác Äá»ng như thế nà o?",answer:"Chúng tôi theo dõi các chá» sá» quan trá»ng: sá» tà i khoản tiết kiá»m má» má»i, tá»· lá» hoà n thà nh khóa há»c, và mức giảm vay mượn phi chÃnh thức. Äá»i tác thưá»ng thấy cải thiá»n rõ rá»t vá» tá»· lá» giữ chân nhân viên, giảm nghá» viá»c Äá»t xuất, và tÄng nÄng suất trong 6 tháng Äầu triá»n khai."}}}},Ghe={hero:{title:"Công sức hôm nay, tiá»n lương nháºn ngay!",description:"Vá»i Ekko, bạn có thá» sá» dụng phần thu nháºp Äã kiếm ÄÆ°á»£c trưá»c ngà y trả lương, khi cần và theo cách cá»§a bạn.",downloadOn:"Tải vá» trên"},howItWorks:{badge:"Bắt Äầu ngay",title:"Cách thức hoạt Äá»ng",subt
550itle:"Bá»n bưá»c ÄÆ¡n giản Äá» bắt Äầu sá» dụng Ekko",steps:{step1:{title:"Doanh nghiá»p ký Hợp Äá»ng hợp tác vá»i Ekko",description:"Sau khi chương trình ÄÆ°á»£c triá»n khai, bạn sẽ nháºn ÄÆ°á»£c thông báo từ phòng nhân sá»±."},step2:{title:"Tải ứng dụng và ÄÄng ký",description:"MỠứng dụng và ÄÄng ký bằng cách xác minh thông tin cÆ¡ bản và liên kết tà i khoản ngân hà ng."},step3:{title:"Bắt Äầu sá» dụng Ekko",description:"Theo dõi hạn mức hà ng ngà y theo sá» công thá»±c tế, thá»±c hiá»n ứng lương và khám phá các công cụ tà i chÃnh."},step4:{title:"Nháºn phần lương còn lại và o kỳ thanh toán lương",description:"Sá» tiá»n bạn Äã ứng sẽ ÄÆ°á»£c trừ và o lương và hiá»n thá» rõ rà ng trên phiếu lương."}}},wellness:{title:"Sức khá»e tà i chÃnh không chá» nằm á» sá» tiá»n bạn có, mà Ỡcảm giác an tâm má»i ngà y.",benefits:{safety:{title:"An toà n tà i chÃnh",description:"Sẵn sà ng Äá»i phó vá»i các sá»± cá» khẩn cấp và bất ngá» phát sinh trong cuá»c sá»ng."},debt:{title:"Tránh vay nợ",description:"Giảm phụ thuá»c và o các hình thức vay lãi cao, thẻ tÃn dụng và những giải pháp tà i chÃnh không bá»n vững."},balance:{title:"Cải thiá»n chất lượng cuá»c sá»ng",description:"Khi ngưá»i lao Äá»ng an tâm tà i chÃnh, há» có thá» táºp trung tá»t hÆ¡n cho công viá»c, gia Äình và cuá»c sá»ng."},education:{title:"Giáo dục tà i chÃnh",description:"Truy cáºp các khóa há»c tà i chÃnh miá» n phà trong ứng dụng Äá» nâng cao kỹ nÄng quản lý tà i chÃnh."}}},app:{badge:"Ứng dụng Ekko",title:"Má»i thứ bạn cần trong má»t ứng dụng",subtitle:"Quản lý tà i chÃnh cá nhân dá» dà ng vá»i các tÃnh nÄng ÄÆ°á»£c thiết kế cho bạn",features:{instant:{title:"Ứng lương tức thì",description:"Nháºn tiá»n trong và i giây, trá»±c tiếp và o tà i khoản nháºn lương cá»§a bạn"},tracking:{title:"Theo dõi thá»i gian thá»±c",description:"Theo dõi hạn mức theo sá» công thá»±c tế ÄÆ°á»£c cáºp nháºt hà ng ngà y"},courses:{title:"Khóa há»c tà i chÃnh",description:"Há»c táºp miá» n phà vá»i ná»i dung gamified thú vá»"},savings:{title:"Công cụ tiết kiá»m",description:"Äặt mục tiêu và theo dõi tiến trình tiết kiá»m"},security:{title:"Bảo máºt tá»i Äa",description:"Chứng nháºn ISO 27001 và xác thá»±c OTP"},support:{title:"Há» trợ 24/7",description:"Äá»i ngÅ© há» trợ luôn sẵn sà ng giải Äáp thắc mắc và há» trợ"}},cta:{title:"Tải ứng dụng ngay hôm nay",description:"Cùng Ekko nâng cao khả nÄng kiá»m soát tà i chÃnh cá»§a bạn."}},support:{title:"Cần há» trợ ứng dụng?",description:"Chúng tôi luôn sẵn sà ng 24/7 Äá» trả lá»i câu há»i và giúp bạn sá» dụng ứng dụng thà nh công",phone:"Äiá»n thoại"},faq:{title:"Câu há»i thưá»ng gặp",items:{q1:{question:"Ai có thá» sá» dụng ứng dụng Ekko?",answer:"Ekko là má»t phúc lợi ÄÆ°á»£c tÃch hợp bá»i nhà tuyá»n dụng. Äiá»u Äó có nghÄ©a là công ty cá»§a bạn phải hợp tác vá»i chúng tôi Äá» bạn có thá» truy cáºp ứng dụng."},q2:{question:"Ekko hoạt Äá»ng như thế nà o?",answer:"Sau khi công ty triá»n khai Ekko, thông tin lương cá»§a bạn ÄÆ°á»£c truyá»n qua kết ná»i bảo máºt. Sá» dư lương (dá»±a trên mức lương và sá» giá» là m viá»c) sẽ ÄÆ°á»£c cáºp nháºt hà ng ngà y. Bạn có thỠứng tiá»n và o tà i khoản ngân hà ng và sá» tiá»n ứng sẽ ÄÆ°á»£c trừ và o lương kỳ sau."},q3:{question:"Tôi ÄÄng ký như thế nà o?",answer:"Bắt Äầu rất nhanh và dá» dà ng! Sau khi công ty thông báo vá» phúc lợi má»i, hãy tải ứng dụng Ekko từ App Store hoặc Google Play. MỠứng dụng và nhấn 'ÄÄng ký'. Từ Äó, là m theo hưá»ng dẫn và bạn sẽ sẵn sà ng."},q4:{question:"Ekko có phải là khoản vay không?",answer:"Không! Ekko hoà n toà n khác vá»i các khoản vay: không lãi suất, không phà ẩn, không trả cháºm và không Äòi nợ. Bạn chá» Äang truy cáºp tiá»n lương mà mình Äã là m viá»c Äá» kiếm ÄÆ°á»£c."},q5:{question:"Ứng dụng Ekko có an toà n không?",answer:"Ekko rất coi trá»ng bảo máºt vá»i chứng nháºn ISO 27001. Chúng tôi sá» dụng máºt khẩu má»t lần (OTP), xác minh trong ứng dụng và các biá»n pháp bảo vá» bá» sung khi thay Äá»i dữ liá»u nhạy cảm."}}}},Yhe={hero:{title:`Giá»i thiá»u vá» Ekko 551và câu chuyá»n cá»§a chúng tôi`,description:"Ekko lÃ ÄÆ¡n vá» tiên phong trong lÄ©nh vá»±c Ứng lương Linh hoạt (Earned Wage Access) tại Viá»t Nam, cung cấp giải pháp tà i chÃnh sáng tạo nhằm nâng cao nÄng lá»±c tá»± chá»§ tà i chÃnh cho ngưá»i lao Äá»ng, Äá»ng thá»i há» trợ doanh nghiá»p tá»i ưu hóa chiến lược giữ chân và phát triá»n nguá»n nhân lá»±c."},story:{title:"Hà nh trình hình thà nh và phát triá»n",description:"Thá»±c trạng cho thấy phần lá»n ngưá»i lao Äá»ng Viá»t Nam thưá»ng gặp khó khÄn vá» dòng tiá»n trong khoảng thá»i gian chá» Äợi giữa các kỳ lương. Khi phát sinh nhu cầu tà i chÃnh Äá»t xuất, nhiá»u ngưá»i buá»c phải tiếp cáºn các nguá»n tÃn dụng phi chÃnh thức vá»i lãi suất cao, dẫn Äến nguy cÆ¡ mắc kẹt trong vòng xoáy nợ nần. Ekko ÄÆ°á»£c thà nh láºp vá»i sứ má»nh giải quyết triá»t Äá» vấn Äá» nà y thông qua má»t ná»n tảng tà i chÃnh minh bạch, an toà n và bá»n vá
551»¯ng."},clients:{title:"ÄÆ°á»£c tin tưá»ng bá»i các táºp Äoà n và doanh nghiá»p hà ng Äầu"},team:{label:"Äá»i ngÅ© nhân sá»±",title:"Äá»i ngÅ© nhân sá»± nhiá»t huyết kiến tạo tấm lá chắn thép bảo vá» cho lá»±c lượng lao Äá»ng tại Viá»t Nam",description:"Ekko quy tụ Äá»i ngÅ© nhân sá»± già u kinh nghiá»m trong lÄ©nh vá»±c công nghá», tà i chÃnh và quản trá», cùng chung tầm nhìn xây dá»±ng há» sinh thái tà i chÃnh toà n diá»n, phục vụ ngưá»i lao Äá»ng trên khắp Viá»t Nam.",cta:"Tham gia Äá»i ngÅ©"},awards:{label:"Giải thưá»ng và Ghi nháºn",title:"Vinh danh những Äóng góp trong lÄ©nh vá»±c Äá»i má»i sáng tạo"},investors:{label:"Äá»i tác Äầu tư",title:"Hợp tác chiến lược hưá»ng Äến tác Äá»ng xã há»i tÃch cá»±c",description:"Ekko vinh dá»± nháºn ÄÆ°á»£c sá»± Äá»ng hà nh từ các Quỹ Äầu tư Tác Äá»ng (Impact Investors) và các tá» chức quá»c tế uy tÃn, cùng chung tay thá»±c hiá»n sứ má»nh phá» cáºp dá»ch vụ tà i chÃnh toà n diá»n Äến má»i tầng lá»p ngưá»i lao Äá»ng."},press:{label:"Truyá»n thông và Báo chÃ",title:"Ekko trong mắt giá»i truyá»n thông",readArticle:"Äá»c bà i viết chi tiết"},cta:{title:"CÆ¡ há»i nghá» nghiá»p tại Ekko",description:"Ekko luôn tìm kiếm những cá nhân tà i nÄng và nhiá»t huyết, sẵn sà ng Äóng góp và o sứ má»nh nâng cao chất lượng cuá»c sá»ng cho hà ng triá»u ngưá»i lao Äá»ng Viá»t Nam. Khám phá các vá» trà Äang tuyá»n dụng và khá»i Äầu hà nh trình sá»± nghiá»p cùng chúng tôi.",viewCareers:"Xem các vá» trà Äang tuyá»n"}},Xhe={label:"TUYá»N DỤNG",title:"Tham gia Sứ má»nh cá»§a Chúng tôi",subtitle:"Giúp chúng tôi trao quyá»n tà i chÃnh cho hà ng triá»u ngưá»i lao Äá»ng. Xây dá»±ng Äiá»u có ý nghÄ©a.",whyJoin:{title:"Tại sao chá»n Ekko?",description:"Chúng tôi Äang xây dá»±ng tương lai an sinh tà i chÃnh cho ngưá»i lao Äá»ng khắp Äông Nam Ã."},values:{impact:{title:"Tác Äá»ng Äầu tiên",description:"Chúng tôi xây dá»±ng giải pháp thá»±c sá»± cải thiá»n cuá»c sá»ng ngưá»i lao Äá»ng."},team:{title:"Tinh thần Äá»i nhóm",description:"Chúng tôi hợp tác, há» trợ nhau và cùng Än mừng chiến thắng."},growth:{title:"Phát triá»n Nhanh",description:"Tham gia startup phát triá»n nhanh nÆ¡i bạn có thá» tạo ra sá»± khác biá»t thá»±c sá»±."},culture:{title:"VÄn hóa Äa dạng",description:"Äá»i ngÅ© Äa vÄn hóa kết ná»i Viá»t Nam và thá» trưá»ng toà n cầu."}},openings:{title:"Vá» trà Äang tuyá»n"},filter:{all:"Tất cả Phòng ban"},loading:"Äang tải vá» trÃ...",noOpenings:"Hiá»n tại không có vá» trà tuyá»n dụng.",checkBack:"Vui lòng quay lại sau hoặc gá»i CV Äến [email protected]",viewJob:"Xem Chi tiết",backToJobs:"Quay lại Danh sách",sections:{description:"Mô tả Công viá»c",requirements:"Yêu cầu",benefits:"Phúc lợi"},apply:{title:"Ứng tuyá»n vá» trà nà y",name:"Há» và Tên",email:"Email",phone:"Sá» Äiá»n thoại",coverLetter:"Thư xin viá»c",coverLetterPlaceholder:"Cho chúng tôi biết tại sao bạn quan tâm...",submit:"Gá»i ÄÆ¡n ứng tuyá»n",submitting:"Äang gá»i...",success:{title:"Äã gá»i ÄÆ¡n ứng tuyá»n!",description:"Chúng tôi sẽ xem xét ÄÆ¡n cá»§a bạn và liên há» sá»m."},error:{title:"Lá»i",description:"Không thá» gá»i ÄÆ¡n ứng tuyá»n. Vui lòng thá» lại."}},notFound:{title:"Không tìm thấy Vá» trÃ",description:"Vá» trà nà y có thá» không còn khả dụng."},cta:{title:"Không thấy vá» trà phù hợp?",description:"Chúng tôi luôn tìm kiếm nhân tà i. Gá»i CV và chúng tôi sẽ ghi nhá» bạn.",button:"Gá»i CV cá»§a bạn"}},Qhe={nav:{intro:"Tá»ng quan",methodology:"Phương pháp nghiên cứu",demographics:"Äặc Äiá»m ngưá»i dùng",quality:"Tác Äá»ng Äến Äá»i sá»ng",loyalty:"Gắn kết lao Äá»ng",voices:"Chia sẻ từ ngưá»i lao Äá»ng"},hero:{badge:"Nghiên cứu ÄÆ°á»£c há» trợ bá»i ILO & Quỹ Gates",title:"Báo cáo Äánh giá Tác Äá»ng",titleAccent:"Ứng lương Linh hoạt 2024",description:"Nghiên cứu toà n diá»n vá» hiá»u quả cá»§a giải pháp Ứng lương Linh hoạt (EWA) Äá»i vá»i an sinh tà i chÃnh cá»§a ngưá»i lao Äá»ng tại Viá»t Nam"}
551,summary:{title:"Äá»i má»i Mô hình Trả lương Hưá»ng tá»i Phát triá»n Bá»n vững",description:"Tại Viá»t Nam, phần lá»n ngưá»i lao Äá»ng phải xoay xá» cuá»c sá»ng từ kỳ lương nà y sang kỳ lương khác. Khi phát sinh chi phà Äá»t xuất, há» buá»c phải tìm Äến các nguá»n vay lãi suất cao, dá»
rÆ¡i và o vòng xoáy nợ kéo dà i. Ứng lương Linh hoạt (EWA) mang Äến má»t giải pháp thiết thá»±c, cho phép nhân viên chá»§ Äá»ng tiếp cáºn phần thu nháºp Äã là m ra trưá»c ngà y trả lương, giúp giảm áp lá»±c tà i chÃnh và tránh những lá»±a chá»n kém bá»n vững."},stats:{manageFinances:{label:"Nâng cao nÄng lá»±c quản lý tà i chÃnh cá nhân",quote:"Tôi có thá» láºp kế hoạch chi tiêu hà ng tháng hiá»u quả hÆ¡n và dà nh ra má»t khoản cho các tình huá»ng khẩn cấp."},emergencies:{label:"TÄng khả nÄng ứng phó vá»i chi phà phát sinh",quote:"Khi cần tiá»n gấp, tôi không còn phải nhá» vả nhiá»u ngưá»i mà có thá» tá»± chá»§ Äá»ng xá» lý nhá» Ekko."},qualityOfLife:{label:"Cải thiá»n chất lượng cuá»c sá»ng",quote:"Ekko giúp tôi Äóng há»c phà cho con Äúng hạn mà không phải lo lắng chá» Äến ngà y lương."},reducedStress:{label:"Giảm thiá»u áp lá»±c tà i chÃnh",quote:"Tôi không còn cảm thấy cÄng thẳng khi chá» Äợi Äến kỳ lương như trưá»c."}},methodology:{label:"Phương pháp Nghiên cứu",title:"Tiếp cáºn Dá»±a trên Bằng chứng Khoa há»c",description:"Báo cáo Äánh giá Tác Äá»ng EWA 2024 ÄÆ°á»£c xây dá»±ng dá»±a trên nghiên cứu Äá»nh tÃnh cá»§a Tá» chức Lao Äá»ng Quá»c tế (ILO) và Quỹ Gates, do ÄÆ¡n vá» nghiên cứu Äá»c láºp 60 Decibels thá»±c hiá»n khảo sát trá»±c tiếp vá»i ngưá»i lao Äá»ng Äã sá» dụng Ekko.",companies:"Doanh nghiá»p tham gia",responses:"Phản há»i từ ngưá»i lao Äá»ng",minutes:"Phút/cuá»c phá»ng vấn",weeks:"Tuần triá»n khai nghiên cứu",partners:"Äá»i tác Nghiên cứu & Äánh giá Tác Äá»ng"},demographics:{label:"Äặc Äiá»m Ngưá»i dùng",title:"Phân tÃch Äá»i tượng Nghiên cứu",monthlyUsage:"ngưá»i tham gia khảo sát sá» dụng Ekko Ãt nhất má»t lần má»i tháng",respondents:"Ngưá»i tham gia",medianAge:"Äá» tuá»i trung vá»",householdSize:"Quy mô há» gia Äình",purposeTitle:"Mục ÄÃch Sá» dụng Ekko",mentions:"lượt Äá» cáºp",categories:{household:"Chi tiêu sinh hoạt gia Äình",work:"Chi phà liên quan công viá»c",emergency:"Tình huá»ng khẩn cấp",personal:"Nhu cầu cá nhân"},relyOnEkko:"Lá»±a chá»n Ekko là nguá»n há» trợ tà i chÃnh chÃnh",relyDescription:"Äá» Äáp ứng các nhu cầu chi tiêu hà ng tháng, ngưá»i lao Äá»ng tin tưá»ng sá» dụng Ekko thay vì vay mượn từ ngưá»i thân, bạn bè hoặc các nguá»n tÃn dụng phi chÃnh thức có lãi suất cao."},qualityOfLife:{label:"Tác Äá»ng Äến Äá»i sá»ng",title:"Äánh giá Mức Äá» Cải thiá»n Chất lượng Cuá»c sá»ng",description:"Kết quả nghiên cứu cho thấy 63% ngưá»i tham gia khảo sát ghi nháºn cuá»c sá»ng ÄÆ°á»£c cải thiá»n ká» từ khi sá» dụng Ekko. Dá»ch vụ nà y Äóng vai trò như má»t nguá»n há» trợ tà i chÃnh Äáng tin cáºy, giúp há» Äạt ÄÆ°á»£c sá»± á»n Äá»nh và giảm bá»t lo âu vá» tà i chÃnh.",chartLabels:{veryImproved:"Cải thiá»n Äáng ká»",slightlyImproved:"Cải thiá»n má»t phần",noChange:"Không thay Äá»i",slightlyWorse:"Giảm nhẹ"},reasons:{emergency:{text:"Chá»§ Äá»ng ứng phó tình huá»ng khẩn cấp",quote:"Khi gặp khó khÄn Äá»t xuất, Ekko há» trợ tôi ứng lương ká»p thá»i Äá» xá» lý các chi phà phát sinh."},cashFlow:{text:"Cải thiá»n dòng tiá»n cá nhân",quote:"Các chi phà sinh hoạt hà ng ngà y như thá»±c phẩm không còn là gánh nặng Äá»i vá»i tôi má»i tháng."},stress:{text:"Giảm thiá»u cÄng thẳng tà i chÃnh",quote:"Tôi không còn cảm thấy lo lắng trong những ngà y chá» Äợi Äến kỳ lương."}}},loyalty:{label:"Gắn kết Lao Äá»ng",title:"Cá»§ng cá» Má»i quan há» Ngưá»i lao Äá»ng và Doanh nghiá»p",jobImportance:{title:"Mức ÄỠƯu tiên khi Lá»±a chá»n Viá»c là m",score:"/10 Äiá»m trung bình vá» mức Äá» quan trá»ng",description:"Khi cân nhắc cÆ¡ há»i viá»c là m má»i, quyá»n tiếp cáºn dá»ch vụ Ứng lương Linh hoạt như Ekko ÄÆ°á»£c ngưá»i lao Äá»ng Äánh giá là yếu tá» có tầm quan trá»ng cao."},relationship:{title:"Chất lượng Má»i quan há» vá»i Doanh nghiá»p",label:"ghi nháºn má»i quan há» ÄÆ°á»£c cải thiá»n",description:"HÆ¡n má»t ná»a sá» ngưá»i dùng cho biết má»i quan há» vá»i doanh nghiá»p Äã trá» nên tÃch cá»±c hÆ¡n ká» từ khi ÄÆ°á»£c tiếp cáºn dá»ch vụ ứng lương cá»§a Ekko."},quote:"Tôi thấy rất tiá»n lợi. Thông thưá»ng, công ty không cho phép nhân viên ứng lương trưá»c, thá»±c sá»± không có cách nà o Äá» là m Äiá»u Äó. Vì váºy, tôi rất trân trá»ng phúc lợi nà y.",quoteAuthor:"Nhân viên vÄn phòng, 22 tuá
551»i, nam"},voices:{label:"Chia sẻ từ Ngưá»i lao Äá»ng",title:"Câu chuyá»n Thá»±c tế từ Ngưá»i dùng",description:"Phản há»i từ ngưá»i dùng là kim chá» nam trong hà nh trình phát triá»n cá»§a Ekko. Những chia sẻ nà y giúp Äá»nh hưá»ng viá»c xây dá»±ng các giải pháp mang lại tác Äá»ng tÃch cá»±c và bá»n vững hÆ¡n."},testimonials:{factoryWorker:{quote:"Khi cần tiá»n gấp, thay vì phải gá»i Äiá»n nhá» vả nhiá»u ngưá»i, giá» Äây tôi có thá» tá»± chá»§ Äá»ng xá» lý nhá» Ekko.",author:"Công nhân nhà máy",location:"Bình Dương"},securityGuard:{quote:"Ekko giúp tôi cải thiá»n cuá»c sá»ng vì có thá» Äóng há»c phà phụ Äạo cho con Äúng hạn, dù các khoản nà y không trùng vá»i ngà y nháºn lương.",author:"Nhân viên bảo vá»",location:"TP. Há» Chà Minh"},gardener:{quote:"Từ khi sá» dụng Ekko, tôi không còn bá» Äá»ng trưá»c các khoản chi phà cá» Äá»nh hà ng tháng như tiá»n Äiá»n, tiá»n nưá»c và há»c phà cá»§a con.",author:"Nhân viên chÄm sóc cây cảnh",location:"Hưng Yên"},busDriver:{quote:"Tôi không còn lo lắng khi hết tiá»n trưá»c kỳ lương. Tôi có thá» trang trải các chi phà sinh hoạt thiết yếu như Än uá»ng và Äi lại má»t cách chá»§ Äá»ng.",author:"Tà i xế xe buýt",location:"Viá»t Nam"}},trust:{label:"Mức Äá» Tin cáºy",title:"Äánh giá Äá» Tin cáºy cá»§a Dá»ch vụ",transparency:"Äánh giá cấu trúc phà và chÃnh sách hoà n toà n minh bạch, dá»
hiá»u",timeliness:'Äánh giá tÃnh ká»p thá»i cá»§a dá»ch vụ á» mức "Rất tá»t" hoặc "Tá»t"',challenges:"Chá» 8% ngưá»i dùng gặp khó khÄn trong quá trình sá» dụng",quote:"Dá»ch vụ ứng lương trên ứng dụng Ekko rất dá»
hiá»u và thao tác ÄÆ¡n giản.",quoteAuthor:"Công nhân nhà máy, 45 tuá»i"},cta:{title:"Tìm hiá»u Nghiên cứu Chi tiết?",description:"Liên há» vá»i chúng tôi Äá» nháºn Báo cáo Äánh giá Tác Äá»ng EWA 2024 Äầy Äá»§ và khám phá cách Ekko có thá» nâng cao an sinh tà i chÃnh cho lá»±c lượng lao Äá»ng cá»§a doanh nghiá»p.",button:"Liên há» Tư vấn"}},Zhe={badge:"Chương trình Giáo dục Tà i chÃnh",title:"Ná»i dung từ các Chuyên gia Giáo dục Hà ng Äầu Thế giá»i",description1:"Chương trình Giáo dục Tà i chÃnh cá»§a chúng tôi ÄÆ°á»£c xây dá»±ng dá»±a trên",iloMethodology:"phương pháp luáºn ÄÆ°á»£c quá»c tế công nháºn cá»§a Tá» chức Lao Äá»ng Quá»c tế (ILO)",description1Suffix:", ÄÆ°á»£c Äiá»u chá»nh phù hợp vá»i bá»i cảnh Viá»t Nam.",description2:"Äá»i ngÅ© giảng viên cá»§a chúng tôi là ",trainersHighlight:"những chuyên gia giáo dục tà i chÃnh Äầu tiên và duy nhất tại Viá»t Nam ÄÆ°á»£c ILO chứng nháºn",description2Suffix:", trang bá» kiến thức và kỹ nÄng giúp ngưá»i lao Äá»ng là m chá»§ tà i chÃnh cá nhân.",stats:{workshops:"giá» Äà o tạo",completions:"lượt hoà n thà nh khóa há»c",savings:"tà i khoản tiết kiá»m má» má»i"},officialPartner:"Äá»i tác ChÃnh thức",itcIlo:"Trung tâm Äà o tạo Quá»c tế cá»§a ILO",modulesTitle:"6 Module Giáo dục Tà i chÃnh Cá»t lõi",modulesSubtitle:"Nhấp và o từng module Äá» khám phá ná»i dung nhân viên sẽ há»c",module:"Module",modulesNote:"Các module có thá» ÄÆ°á»£c Äiá»u chá»nh linh hoạt tùy theo nhu cầu cá»§a doanh nghiá»p",modules:{goals:{title:"Äặt Mục tiêu Tà i chÃnh",shortTitle:"Mục tiêu",point1:"Há»c cách Äặt mục tiêu tà i chÃnh ngắn hạn và dà i hạn",point2:"Xây dá»±ng sá»± tá»± tin khi trao Äá»i vá» tiá»n bạc",point3:"Láºp kế hoạch và theo dõi tiến Äá» theo thá»i gian"},budgeting:{title:"Quản lý Chi tiêu Hà ng ngà y",shortTitle:"Ngân sách",point1:"Há»c cách láºp ngân sách và chi tiêu hợp lý",point2:"Theo dõi chi phà và ghi chép tà i chÃnh",point3:"Xây dá»±ng thói quen quản lý tiá»n thông minh trong cuá»c sá»ng"},savings:{title:"Tiết kiá»m cho Tương lai",shortTitle:"Tiết kiá»m",point1:"Hiá»u các phương pháp và sản phẩm tiết kiá»m khác nhau",point2:"Chá»n hình thức tiết kiá»m phù hợp vá»i mục tiêu cá»§a bạn",point3:"Hình thà nh thói quen tiết kiá»m Äá»u Äặn"},borrowing:{title:"Vay Mượn Có Trách nhiá»m",shortTitle:"Vay mượn",point1:"So sánh các lá»±a chá»n tÃn dụng và hiá»u chi phà thá»±c sá»± cá»§a viá»c vay",point2:"Há»c cách chá»n sản phẩm vay an toà n",point3:"Tránh bẫy nợ và tình trạng vay quá mức"},services:{title:"Sá» dụng Dá»ch vụ Tà i chÃnh",shortTitle:"Dá»ch vụ",point1:"Hiá»u cách sá» dụng ngân hà ng, và Äiá»n tá» và công cụ chuyá»n tiá»n an toà n",point2:"Xây dá»±ng sá»± tá»± tin khi giao dá»ch vá»i các tá» chức tà i chÃnh",point3:"ÄÆ°a ra lá»±a chá»n sáng suá»t khi sá» dụng sản phẩm tà i chÃnh"},protection:{title:"Bảo vá» Tà i chÃnh",shortTitle:"Bảo vá»",point1:"Há»c cách quản lý rá»§i ro và tránh lừa Äảo tà i chÃnh",point2:"Hiá»u cách bảo hiá»m hoạt Äá»ng và khi nà o nên sá» dụng"}}},Jhe={label:"GÃC NHÃN",title:"Tin tức má»i nhất",subtitle:"Cáºp nháºt những tin tức, hợp tác và góc nhìn má»i nhất từ Ekko",filter:{all:"Tất cả",news:"Tin tức",article:"Bà i viết"},readMore:"Äá»c thêm",noArticles:"Không tìm thấy bà i viết"},efe={backToNews:"Quay lại Tin tức",relatedArticles:"Bà i viết liên quan",notFound:"Không tìm thấy bà i viết"},tfe={announcement:The,nav:Nhe,hero:Che,logoMarquee:Ahe,content:Phe,stats:Ohe,whyCompanies:Rhe,mission:Ihe,howItWorks:Mhe,benefits:$he,pricing:Dhe,security:Lhe,integrations:Fhe,rollout:Bhe,testimonial:Vhe,cta:qhe,footer:Uhe,clients:Whe,awards:zhe,media:Hhe,forBusiness:Khe,forWorkers:Ghe,about:Yhe,careers:Xhe,impactReport:Qhe,f
551inancialEducation:Zhe,news:Jhe,newsDetail:efe},nfe={new:"ì ê·:",text:"Ekko, ë² í¸ë¨ ì ìì ê¸ìµ ì°ë¹ íë를 ìí´ 420ë§ ë¬ë¬ ê·ëª¨ì ì´ê¸° í¬ì ì ì¹.",textShort:"Ekko, 420ë§ ë¬ë¬ ê·ëª¨ì ì´ê¸° í¬ì ì ì¹",cta:"ë ì½ì´ë³´ê¸°"},rfe={business:"ê³ ì©ì£¼ì©",workers:"ì§ìì©",about:"íì¬ ìê°",blog:"íµì°°ë ¥",admin:"ê´ë¦¬ì",contact:"문ìí기",careers:"ì±ì©",impact:"ìí¥",news:"ë´ì¤"},ife={badge:"#1 Earned Wage Access in Vietnam",title1:"ë§¤ì¼ ì§ìì ì§ìíë",title2:"ê°ì¥ ê°ë¨í ë°©ë²",description:"ì§ìë¤ì´ ì´ë¯¸ ì¼í´ì ë² ìê¸ì ì¤ìê°ì¼ë¡ ì ê·¼í ì ìëë¡ íì¬ ì¤í¸ë ì¤ì ì´ì§ë¥ ì ì¤ì´ì¸ì.",cta:"ë ìì보기",learnMore:"ë ìì보기"},sfe={trusted:"ë² í¸ë¨ ì ìì ì ë 기ì
ë¤ì´ ì 뢰í©ëë¤"},afe={title1:"ì¬ì ê±´ê° í¨í¤ì§",title2:"í루í루를",title3:"ê°ì§ê²",description:"ì¨ë맨ë ìê¸ ì¸ì¶ë¶í° ì ì¶ íë¡ê·¸ë¨, HR ëì§í¸ íì ê¹ì§ ì§ìì ìëì ê°ííëë¡ ì¤ê³ë ì¢
í© ë³µë¦¬íì íë¡ê·¸ë¨ì
ëë¤.",tabs:{comprehensive:"ì¬ì ì ëì±",tools:"ì¬ì ì§ì",education:"HR ëì§í¸ ì í"},cards:{liquidity:{title:"ì ëì±",description:"24ìê° ì¸ì ë ì´ë¯¸ ì 립ë ìê¸ì ì ê·¼í ì ìì¼ë©°, ê³ ì©ì£¼ìê²ë ì본 ë¶ë´ì´ ììµëë¤."},literacy:{title:"ì§ì",description:"ê²ìí ê¸ìµ êµì¡ì¼ë¡ ííí ì¬ì ê´ë¦¬ ìëì í¤ìëë¤."},savings:{title:"ì ì¶",description:"목í ì¤ì , ìë ì ì¶, ë§ì¶¤í ì림ì íµí´ ì§ìì ì¸ ì ì¶ ìµê´ì ë§ëëë¤."},hrdx:{title:"HR DX",description:"HR ì
무를 ê°ìííë ëì§í¸ ì í ë구ì
ëë¤."}}},ofe={badge:"리í¬í¸ 주ì ë´ì© 보기",title:"ë¹ì© ì ê° ê·¸ ì´ìì í¨ê³¼",description:"ì§ëí´ ILO ìí©í¸ 리í¬í¸ë Ekkoê° ì´ë»ê² ì¶ì ë³íìí¤ê³ ìëì§ ê°ë ¥í íµì°°ì ë³´ì¬ì£¼ììµëë¤",items:{satisfaction:{value:"64%",label:"ê°ì ë ê¸´ê¸ ìí© ëì²",description:"ê¸´ê¸ ê²½ë¹ ì²ë¦¬ ë¥ë ¥ í¥ì ë³´ê³ "},users:{value:"63%",label:"ì¶ì ì§ í¥ì",description:"ì¬ì©ìë¤ì ì¶ì ì§ í¥ì ë³´ê³ "},retention:{value:"52%",label:"ì¬ì ì ê±±ì ê°ì",description:"ì¬ì©ìê° ì¬ì ì ê±±ì ì´ ì¤ìë¤ê³ ëµíìµëë¤"},support:{value:"45%",label:"ë¹ê³µì ëì¶ ê°ì",description:"ì¬ì©ìì ë¹ê³µì ëì¶ ìì¡´ëê° ê°ìíìµëë¤"}},readMore:"ë ì½ì´ë³´ê¸°"},lfe={label:"ê³ ì©ì£¼ì©",title1:"기ì
ë¤ì´ Ekko를",title2:"ì ííë ì´ì ",description:"ë ê°í íì ì¬ì ì ìì ìì ììë©ëë¤. ì¸ë ¥ì íì íë ì ë 기ì
ë¤ê³¼ í¨ê»íì¸ì.",cta:"ë ìì보기",benefits:{turnover:{title:"ë®ì ì´ì§ë¥ ",description:"첫 í´ ë´ ì§ì ì´ì§ë¥ ê°ì"},applicants:{title:"ë ë§ì ì§ìì",description:"ì¼ì¼ ê¸ì¬ ííì¼ë¡ ì°¨ë³ííì¸ì"},engagement:{title:"ëì ì°¸ì¬ë",description:"ì¬ì ì¤í¸ë ì¤ë¥¼ ì¤ì¬ ìì°ì±ì ëì´ì¸ì"},digital:{stat:"무ë£",title:"ëì§í¸ ë구",description:"ì¶ê° ë¹ì© ìì´ êµì¡ ë구 í¬í¨"}}},cfe={label:"/ 미ì
",title:"ëë¨ììì 기ì
ì ì¬ì ì°ë¹ì ì¦ì§íê³ , ë íìë¡ì´ ì¸ë ¥ì í¤ìê°ëë¤."},ufe={title:"ìë ë°©ì",subtitle:"ê°í¸íê³ ë¹ ë¥´ë©° ìì í©ëë¤",description:"ë¹ì¬ì ì¬ì ê±´ê° í¨í¤ì§ë ê·¼ë¡ìë ì ì§ê¸, ì ë¬¸ê° ì£¼ë ìí¬ì ë° ê°ë ¥í HR ë구를 ê²°í©íì¬ ì§ì ë³µì§ ë° ì ì§ë¥¼ ê°ì í©ëë¤.",tabs:{app:"Ekko ì±",appSubtitle:"ì§ìì©",portal:"HR í¬í¸",portalSubtitle:"HR ë¶ìì©",workshops:"ìí¬ì",workshopsSubtitle:"ì§ìì©",convenient:"í¸ë¦¬í ìê¸ ì ê·¼",streamlined:"ê°ìíë ê´ë¦¬"},appTitle:"EKKO ì±",appFeatures:{ewa:{title:"ê·¼ë¡ìë ì ì§ê¸",description:"ì§ìë¤ì ì¸ì ì´ëìë ê·¼ë¡ìëì ì ê·¼í ì ììµëë¤. ì¨ê²¨ì§ ììë£ ìì´ ì¦ì ì¸ì¶ì´ ê°ë¥í©ëë¤."},education:{title:"ì¬ì êµì¡",description:"ì 문ê°ê° ì¤ê³í ê²ìíë ê¸ìµ êµì¡ ê³¼ì ì íµí´ ì§ìì ìëì ê°ííê³ ì§ìì ì¸ ìì° ê´ë¦¬ ë¥ë ¥ì í¤ìëë¤."},planning:{title:"ìì° ê³í",description:"ì§ìë¤ì´ ì ì¶ ëª©í를 ì¤ì íê³ , ì§ì¶ì ì¶ì íë©°, ìê°ì´ ì§ë¨ì ë°ë¼ ë ëì ì¬ì ìµê´ì ê°ë°íëë¡ ëìµëë¤."}},portalFeatures:{management:{title:"ì§ì ê´ë¦¬",description:"ì§ì ë±ë¡ì ì
551½ê² ê´ë¦¬íê³ , ìê¸ ì ì§ê¸ íë를 ì¤ì íë©°, ì격 ê·ì¹ì ì ìí©ëë¤."},analytics:{title:"ì¤ìê° ë¶ì",description:"ì¬ì© í¨í´ì ì¶ì íê³ , ì±íë¥ ì 모ëí°ë§íë©°, í¬ê´ì ì¸ ë³´ê³ ì를 ìì±í©ëë¤."},integration:{title:"ìíí íµí©",description:"ìë ì¡°ì 기ë¥ì ìí´ ê¸°ì¡´ HR ë° ê¸ì¬ ìì¤í
ê³¼ ì°ê²°í©ëë¤."}},workshopFeatures:{onDemand:{title:"주문í êµì¡",description:"ì§ìë¤ì ì¼ì ê³¼ ì구ì ë§ì¶° ì¬ì 문í´ë ¥ ìí¬ìì ìì½íê³ , ì§ì¥ ë´ ëë ì¨ë¼ì¸ì¼ë¡ ì ê³µí©ëë¤."},certified:{title:"ILO ì¸ì¦ í¸ë ì´ë",description:"ë¹ì¬ì í¸ë ì´ëë êµì ë
¸ë기구(ILO)ì ì¸ì¦ì ë°ì ì¸ê³ì ìì¤ì ì¬ì êµì¡ 기ì¤ì ë³´ì¥í©ëë¤."},programs:{title:"ë§ì¶¤í íë¡ê·¸ë¨",description:"íì´í¸ì¹¼ë¼ ë° ë¸ë£¨ì¹¼ë¼ ì§ìì ìí´ ê³ ìë ì 문 커리íë¼ì¼ë¡, ê° ê·¸ë£¹ì ê³ ì í ì¬ì ì 문ì 를 ë¤ë£¹ëë¤."}},features:{interface:{title:"ìë¦ë¤ì´ ì¸í°íì´ì¤, ê°ìíë ì´ì",description:"모ë ìí ê³¼ ëì§í¸ ì´í´ ìì¤ì ê±¸ì³ ëª¨ë ì¬ëìê² ì í©í ì¬ì©í기 ì¬ì´ ëìì¸ì
ëë¤. ì§ìë¤ì ëª ë²ì íì¼ë¡ ìê¸ì ì ì§ê¸ë°ì ì ììµëë¤."},support:{title:"ì°ì¤ë¬´í´ 24ìê° ì§ìì¼ë¡ ì¸ì ë ì§ ìê¸ ì ê·¼",description:"Ekkoì ê³ ê° ì§ìíì ì°ì¤ë¬´í´ 24ìê° ìì ì§ë¬¸ì ëµë³íê³ ì§ìì ì ê³µí ì¤ë¹ê° ëì´ ììµëë¤. ì ì© ë¶ë 기ë¡ì´ ìë ì§ìë 모ë ì´ì© ê°ë¥í©ëë¤."},education:{title:"ì ë¬¸ê° ì»¤ë¦¬íë¼ì¼ë¡ 무ì ì¬ì êµì¡ ì ê³µ",description:"ë구ë ì°¸ì¬í ì ìë ë§¤ë ¥ì ì´ê³ ê²ìíë ìì
ì
ëë¤. ê° ê°ì¢ë ê·¸ëí½, í´ì¦ ë° ëíí ëêµ¬ë¡ ìê°ì ì¼ë¡ ì¤ëª
ëì´ íìµì ê°ë¨íê³ ì¬ë¯¸ìê³ í¨ê³¼ì ì¼ë¡ ë§ëëë¤."}},steps:{step1:{title:"ì§ì ìì²",description:"ì§ìì 근무 ìê° ëë íì¬ê¹ì§ ë°ìí ìê¸ì 기ì¤ì¼ë¡ Ekko ì±ì íµí´ ì ì§ê¸ì ììí©ëë¤."},step2:{title:"Ekko ì§ê¸",description:"Ekkoë íì¸ë ê·¼ë¡ìëì 기ì¤ì¼ë¡ ì§ìì ê¸ì¬ ê³ì¢ë¡ ì¦ì(ëª ì´ ìì) ìê¸ì ì ì§ê¸í©ëë¤."},step3:{title:"ê¸ì¬ ì¡°ì ",description:"ê¸ì¬ì¼ì ê³ ì©ì£¼ë ì§ì ê¸ì¬ìì ì ì§ê¸ì¡ì ê³µì í©ëë¤."},step4:{title:"ê³ ì©ì£¼ ìí",description:"ê³ ì©ì£¼ë ê¸ì¬ ì§ê¸ í ì¼ë°ì ì¼ë¡ 3-5 ìì
ì¼ ì´ë´ì Ekkoìê² ì´ ì ì§ê¸ì¡ì ìíí©ëë¤."}},appDescription:"ì§ìë¤ì´ ìê¸ì ì ê·¼íê³ , ì¬ì 기ì ì ë°°ì°ê³ , ì ì¶ì ê³íí ì ìë 모ë°ì¼ ì±ì
ëë¤.",portalDescription:"HR íì´ ì§ìì ê´ë¦¬íê³ íë¡ê·¸ë¨ ì±ê³¼ë¥¼ ì¶ì í ì ìë ì¹ ëìë³´ëì
ëë¤.",workshopDescription:"ILO ì¸ì¦ í¸ë ì´ëê° ì§ííë íì¥ ì¬ì êµì¡ ìí¬ìì
ëë¤."},dfe={company:{title:"ê·ì¬ë¥¼ ìí íí",subtitle:"ê°ë ¥í íì ì¬ì ì ìì ì±ìì ììë©ëë¤",items:{turnover:{title:"ì§ì ì´ì§ë¥ ê°ì",description:"ë¹ì¬ì ì°êµ¬ì ë°ë¥´ë©´ Ekko ì¬ì© 1ë
í ì§ì ì´ì§ë¥ ì´ 10-15% ê°ìíìµëë¤."},attract:{title:"ë ë§ì 구ì§ì ì ì¹",description:'ë§¤ë ¥ì ì¸ "ì¼ì¼ ê¸ì¬" ì´ì ì íµí´ ê²½ìì ì¸ ì±ì© ìì¥ìì ëê°ì ëíë´ììì¤.'},engagement:{title:"ë ê°ë ¥í ì°¸ì¬",description:"ì¬ì ì ì¤í¸ë ì¤ ê°ìë ì ì§ìì ìì°ì±ì ëì´ê³ ì¬ê¸°ë¥¼ í¥ììí¤ë ë° ëìì´ ë©ëë¤."},digital:{title:"ëì± ëì§í¸ íµí©",description:"ì¶ê° ë¹ì© ìì´ ì¶ê°ì ì¸ ëì§í¸ ì í ë° ë´ë¶ ì§ì êµì¡ ë구를 ì ê³µí©ëë¤."}}},backoffice:{title:"ê´ë¦¬ ë¶ì를 ìí íí",subtitle:"HR, C&B, íê³íì ìí í¨ì¨ì ì¸ ìí¬íë¡ì°",items:{paperwork:{title:"ì ì° ìë¥ ìì
ë¶íì",description:"ì
무 ê´ë ¨ íê¸ ì ì§ê¸ì´ ëì§í¸ ë°©ìì¼ë¡ ê´ë¦¬ëì´ ê´ë¦¬ ë¶ë´ì ì¤ì
ëë¤."},digital:{title:"ëì§í¸ ì íë íë¡ì¸ì¤",description:"ìë ì¹ì¸ ë° ì¤ìê° ì¶ì ì¼ë¡ ìê°ì ì ì½íììì¤."},accuracy:{title:"í¥ìë ë°ì´í° ì íì±",description:"ì§ìë¤ì´ ì íí ì¶í´ê·¼ 기ë¡ì ì
ë ¥íëë¡ ëê³ ê¸ì¬ ì íë를 í¥ììíµëë¤."}}},employees:{title:"ì§ìì ìí íí",subtitle:"Ekkoë ì´ë»ê² ì¶ì ë³íìí¤ëê°",items:{debt:{title:"ë¶ì± í¨ì íí¼",description:"ê³ ê¸ë¦¬ ììì¥ ëì¶ì ëí ëìì ì ê³µí¨ì¼ë¡ì¨, 주문í ê¸ì¬ë ì§ìë¤ì´ ë¹ì¥ì íì를 í´ê²°íë©´ì ì¬ì ì í¨ì ì í¼íëë¡ ëìµëë¤."},access:{title:"ì í ìë ì ê·¼ì± ì ê³µ",description:"ì ì© ê¸°ë¡ì´ ì¢ì§ ìì ì§ìë í¬í¨íì¬ ëª¨ë ì§ìì´ ì´ì©í ì ììµëë¤."},smarter:{title:"ë ì¤ë§í¸í ìê¸ ê´ë¦¬",description:"ì¬ì ì ë¹ì ìí© ì ìµì ì ì íì íììì¤. ì ì¶ì ë³´ì¡´íê³ ì´ì ìì
ê³ì¢ë¥¼ ë³´í¸íë©´ì ìì
ì ì ê·¼íììì¤."}}}},hfe={title:"ê·ì¬ì ì¡°ì§ì ì í©í ì ì°í ê°ê²© ì±
ì ",subt
551itle:"ê·ì¬ì 목íì ê°ì¥ ì í©í 모ë¸ì ì ííê±°ë ë ê°ì§ë¥¼ 모ë ì¡°í©í´ë³´ì¸ì.",saas:{title:"Ekko SaaS",subtitle:"ê³ ì©ì£¼ ë¶ë´",description:"ì§ì ìì ë°ë¼ íì¬ê° ì§ë¶íë ìë³ íë«í¼ ìê¸ì ëë¤. EWA를 ìë²½í ì§ì 복리íìì¼ë¡ ì ê³µíê³ ì íë íì¬ì ê°ì¥ ì í©í©ëë¤."},base:{title:"Ekko Base",subtitle:"ì§ì ë¶ë´",description:"ì§ìì ê¸ì¬ ì ì§ê¸ ê±°ëë¹ ìì¡ì ììë£ë¥¼ ì§ë¶í©ëë¤. ê³ ì©ì£¼ìê²ë ë¹ì©ì´ ë°ìíì§ ììµëë¤. ìì°ì ìí¥ì 미ì¹ì§ ìê³ EWA ì ê·¼ì±ì ì ê³µíê³ ì íë íì¬ì ê°ì¥ ì í©í©ëë¤."},mixed:"ì í ì¬í: í¼í© ëª¨ë¸ ì¬ì© ê°ë¥"},ffe={title:"ë³´ì ë° ë°ì´í° ë³´í¸",iso:"ISO 27001 ì¸ì¦",description:"Ekkoë ì ë³´ ë³´ìì ëí ê¸ë¡ë² íì¤ì¸ ISO 27001 ì¸ì¦ì ë°ììµëë¤.",items:{pentest:{title:"ì 기 ì¹¨í¬ í ì¤í¸",description:"ë¹ì¬ë ì 뢰í ì ìë ë² í¸ë¨ ì¬ì´ë² ë³´ì íì¬ì´ì Google VirusTotal íí¸ëì¸ CyRadarì íë ¥í©ëë¤."},compliance:{title:"ìë²½í ë²ê· ì¤ì",description:"OTP ê¸°ë° ì¬ì©ì ëì를 íµí´ ë² í¸ë¨ ê°ì¸ ë°ì´í° ë³´í¸ì ê´í ë²ê· 13í¸ë¥¼ ìë²½íê² ì¤ìí©ëë¤."},protection:{title:"ë°ì´í° ë³´í¸",description:"ì¬ì´ë² ë³´ì íì¸ë¥¼ ê°ííê³ ì´ì ë° ë°ì´í° ì ì¶ ìíì ì¤ì´ë©° ì·¨ì½ì ì íì§í©ëë¤."}}},pfe={title:"ì ëì ì¸ HR ìì¤í ê³¼ì ìíí íµí©",description:"ì¤ì 문ì ë¡ ì´ë ¤ìì 겪ì íìê° ììµëë¤. ë² í¸ë¨ ìµê³ ì HR íë«í¼ê³¼ì ì°ëì ì´ë¯¸ ìë£íìµëë¤."},mfe={title:"ìíí ì¶ì íë¡ì¸ì¤",description:"ì ì¦ë ëª¨ë² ì¬ë¡ë¥¼ íµí´ ê·ì¬ì ì ì§ìì ê±¸ì³ Ekkoì ìíí ì¶ì를 ë³´ì¥í©ëë¤.",steps:{step1:{title:"ë¹ ë¥¸ ì¤ì ",duration:"1-2ì¼",items:["ê³ì½ ì²´ê²°","HR/ìê° ê¸°ë¡ íµí© (API, íì¼ ì ë¡ë ëë ìë)","ê¸ì¬ íë¡ì¸ì¤ ê²í 를 íµí ìì¤í ì¤ì ë§ì¶¤í"]},step2:{title:"ìì¤í íµí© ë° êµì¡",duration:"1-7ì¼",items:["íì¥ ì§ì ì¨ë³´ë©","ê¸ì¬ ì ì§ê¸ ì ì± ì ì (íë, 그룹, ì격)","HR ì¨ë³´ë© (1ìê° ì¸ì )"]},step3:{title:"ì¶ì ë° ìë³ ì¡°ì ",duration:"ì§ìì ",items:["ìë³ ì¡°ì (ê¸ì¬ ì§ê¸ì¼ 5ì¼ ì )","ê¸ì¬ ì§ê¸ì¼ ì´í Ekko ê²í , íì¸ ë° ìí"]}}},gfe={quotes:[{quote:"ë¹ì¬ë ì§ìë¤ì 복리íìì ê°ì í기 ìí ë°©ìì íì 모ìíê³ ìì¼ë©°, Ekkoë ë¹ì¬ì ë°°ë ¤ì ì± ì 문í를 ê°ííë ì ì íê³ ì¬ë ¤ ê¹ì ì ê·¼ ë°©ìì ì ê³µí©ëë¤. ì´ë¥¼ íµí´ ì§ìë¤ì ì í´í ëì¶ ìµì ì ìì¡´íì§ ìê³ ììì¹ ëª»í ë¹ì©ì ìì ë¡ê² ê´ë¦¬í ì ììµëë¤.",author:"Bruno Jaspaert",source:`ì ë¡ì°¸ ë² í¸ë¨ íì¥ 552Deep C Industrial Zones ë² í¸ë¨ ìµê³ ê²½ìì`},{quote:"Ekkoë ëë¶ë¶ì ì§ììë¤ì´ ê²½íí´ ë³´ì§ ëª»í ê²ì ì ê³µí¨ì¼ë¡ì¨ ë¹ì¬ì ì±ì© íëì ì§ìí©ëë¤. ì´ë ë¹ì¬ê° 미ë ì§í¥ì ì´ê³ ì¬ëì ìµì°ì ì¼ë¡ ìê°íë¤ë ê²ì ëíë´ë©°, ê²½ìì ì¸ ì±ì© ìì¥ìì ë¹ì¬ê° ëë³´ì¼ ì ìëë¡ ëìµëë¤.",author:"Takashi Mori",source:"AGS (ë² í¸ë¨) - ì 무 ì´ì¬"},{quote:`Ekkoë Homefarm ì§ìë¤ìê² ë§¤ì° ì ì©í ì±ì¼ë¡, í¹í ììì¹ ëª»í íìê° ë°ìí ê²½ì° ì§ìë¤ì´ ê°ì¸ ì¬ì ì루ì ì ëí´ ëì± ì£¼ëì ì¼ë¡ ëì²í ì ìëë¡ ëìµëë¤. 553ì´ ì±ì Homefarmì ë¤ìí ì¸ë ¥ìê² ì í©íëë¡ í¸ë¦¬íê³ ì ê·¼ì±ì´ ë°ì´ëë©° ë¹ ë¥´ê² ì¬ì©í ì ìëë¡ ì¤ê³ëììµëë¤. 554Homefarmê³¼ íí¸ëìì 맺ì´ì£¼ì Ekkoì ê°ì¬ë립ëë¤!`,author:"Ms Chung Thương",source:"Homefarm HR ì´ì¬"},{quote:`Ekko를 ëì íë ê²ì Vua Ná»mì´ ì§ìë¤ìê² ì ê³µíë ì¤ì§ì ì¸ íí ì¤ íëë¡, ììì¹ ëª»í íìê° ë°ìí ë ì§ìë¤ì´ ê°ì¸ ì¬ì ì ë³´ë¤ ì£¼ëì ì¼ë¡ ê´ë¦¬í ì ìëë¡ ëìµëë¤. 555ì´ë¬í ííì ì§ìë¤ì ì¬ì ì ì¤í¸ë ì¤ë¥¼ ì¤ì´ë ë° ëìì´ ë ë¿ë§ ìëë¼, ì§ìë¤ì 복리íìê³¼ íì ì¥ê¸°ì ì¸ íì ì ëí Vua Ná»mì ê´ì¬ì ë³´ì¬ì¤ëë¤.`,author:"Vua Ná»m HR ì´ì¬",source:"Vua Ná»m"}],title:"íí¸ë ì견"},yfe={title:"í¨ê»ë¼ë©´, 매ì¼ì´ ìì¤í©ëë¤.",description:"Ekkoì í¨ê» ê·ì¬ì ë¹ì¦ëì¤ë¥¼ ìí ë íë³µí 근무 íê²½ì 구ì¶íììì¤.",contact:"문ìí기",hotline:"ì§ì í«ë¼ì¸",email:"문ì ì´ë©ì¼",address:"21 Trà ng Tiá»n, Hoà n Kiếm, Hà Ná»i"},vfe={tagline:"ëë¨ììì 기ì ì ë°ì ê±¸ì³ ì¬ì ê±´ì ì±ì ëì´ê³ íìë¡ì´ ì¸ë ¥ì ì¡ì±í©ëë¤.",product:{title:"ì í",flexible:"ê¸ì¬ 조기 ì¸ì¶ (Earned Wage Access)",tools:"ì¬ì ê´ë¦¬ ë구",education:"ì¬ì êµì¡",pricing:"ê°ê²©"}
555,company:{title:"íì¬",about:"íì¬ ìê°",team:"í",careers:"ì±ì©",blog:"ë¸ë¡ê·¸"},resources:{title:"ìë£",helpCenter:"ê³ ê°ì§ìì¼í°",faq:"ì주 묻ë ì§ë¬¸",caseStudies:"ì¬ë¡ ì°êµ¬",api:"API 문ì"},legal:{title:"ë²ë¥ ",terms:"ìë¹ì¤ ì½ê´",privacy:"ê°ì¸ì ë³´ì²ë¦¬ë°©ì¹¨",cookies:"ì¿ í¤ ì ì±
"},copyright:"© 2025 Ekko. 모ë ê¶ë¦¬ ë³´ì .",madeIn:"ë² í¸ë¨ìì â¤ï¸ ì í¨ê» ì ìë¨"},xfe={title:"ì ì ë ê³ ê°ì¬",description:"ì ì¡°, ì매, ìë¹ì¤ ë¶ë¬¸ì ì ë 기ì
ë¤ì´ ì 뢰í©ëë¤."},bfe={title:"ìì ë° íì°½",items:["ì¼ë³¸ ESG ìí©í¸ ì´ìë","ë
¸ë¥´ë ë¹ì¦ëì¤ íì ì","룩ì
ë¶ë¥´í¬ ë¤ìì±, ííì±, í¬ì©ì± ì°ìì","ëíë¯¼êµ ê°ë° ë³´ê±´ ë° ìì ì","ì£¼ë² í¸ë¨ 미êµìê³µíìì ìì¥ì"]},wfe={quotes:{quote1:"ì·¨ì½ ê³ì¸µ ê·¼ë¡ì를 ì§ìíë íì ì ì¸ ê¸°ì ì í",quote2:"ì§ì¥ ìì°ì± í¥ìì ëìì´ ëë ìë¡ì´ ì°½ìì ì¸ ì루ì
",quote3:"ì´ ì루ì
ì ì§ìë¤ìê² íìì ì¸ ìë¹ì¤ê° ë ê²ì
ëë¤",quote4:"ìë¡ì´ ê¸ìµ ìµê´ì ë°ê¾¸ë ì¬ì "}},kfe={hero:{title:"ì§ìë¤ì ì¬ì ì ìë
ì ë³´ì¥íì¸ì",subtitle:"ê¸ì¬ ì ì§ê¸ ì루ì
",description:"ë¹ì¬ì ê¸ì¬ ì ì§ê¸ ì루ì
ì ìê¸ë ë§ ê¸°ë¤ë¦¬ë ì´ë ¤ìì í´ê²°íì¬ ì§ìë¤ì ì¼ìì ê°ì íê³ , ë ìì ì ì¸ ì¬ì ìí를 ë§ë¤ì´ì¤ëë¤."},unicef:{badge:"UNICEF ì¶ì²",title:"UNICEFì ê°ì¡±ì¹íì 기ì
ê´í í¸ëë¶ì ìê°ë Ekko",subtitle:"UNICEFë ìµì ê°ì¡±ì¹íì 기ì
ê´í í¸ëë¶ìì Ekko를 ì ì§ì ì¸ ìê¸ ë³´í¸ ì ì±
ì¼ë¡ìì ê¸ì¬ ì ì§ê¸ ë° ê¸ìµ êµì¡ íë ¨ì ì ëì ì¸ ì¬ë¡ë¡ ì¸ì íìµëë¤.",policy1:{number:"01",title:"ê¸ì¬ ì ì§ê¸(EWA) â ì¤ê° ë¨ê³ ì ì±
ê¶ì¥ ì¬í",description:'"ê·¼ë¡ìê° ê¸ì¬ì¼ ì ì ì´ë¯¸ ì¼í ë§í¼ì ìê¸ì ë°ì ì ìë ê¸ì¬ ì ì§ê¸ ìµì
ì ì ê³µíììì¤." ì´ë ê·¼ë¡ìê° ê³ ê¸ë¦¬ ëì¶ì ìì¡´íì§ ìê³ ê¸´ê¸í ì¬ì ì íì를 í´ê²°íë ë° ëìì´ ë©ëë¤.'},policy2:{number:"02",title:"ê¸ìµ ê±´ì ì± íë¡ê·¸ë¨ â ê³ ê¸ ë¨ê³ ì ì±
ê¶ì¥ ì¬í",description:'"ê·¼ë¡ì ìë
를 ìí êµì¡ ì ì¶ ì§ìê³¼ ê°ì í¬ê´ì ì¸ ê¸ìµ ê±´ì ì± íë¡ê·¸ë¨ì ìííììì¤." ì´ë ì¥ê¸°ì ì¸ ì¬ì ê±´ì ì±ê³¼ ìì ì ì¦ì§í©ëë¤.'},cta:"UNICEF í¸ëë¶ ë³´ê¸°",pageHint:"39íì´ì§ë¡ ì¤í¬ë¡¤íì¬ Ekko ìê° ë´ì©ì íì¸íì¸ì"},valueProps:{recruitment:{title:"ì±ì© ë° ì§ì ì ì§ì¨ í¥ì",description:"ê³ ê°ì¬ì 85%ê° EWAê° ì ì ë¹ì©ì¼ë¡ ì¸ì¬ë¥¼ ì±ì©íê³ ì ì§íë ë° í¨ê³¼ì ì¸ ë구ë¼ê³ ëµíìµëë¤. EWAë ì§ìë¤ì´ ì¤ì¤ë¡ ì¬ì ì ê´ë¦¬í ì ìëë¡ ì§ìí¨ì¼ë¡ì¨ ì§ìì ëí 기ì
ì ë°°ë ¤ë¥¼ ìì§í©ëë¤."},privacy:{title:"ê°ì¸ì ë³´ ë³´í¸ ì°ì ì ê·¼ ë°©ì",description:"Ekkoì ìµìíì ë°ì´í° ìì§ì ì§ìì ê°ì¸ì 보를 ì¡´ì¤í ë¿ë§ ìëë¼, ê·ì¬ì HR íë¡ì¸ì¤ë¥¼ ê°ìííê³ , ì¨ë³´ë©ì ì´ë ¤ìì ì¤ì´ë©°, ì§ì ì°¸ì¬ë를 ëì
ëë¤."},deployment:{title:"ê°í¸íê³ í¨ì¨ì ì¸ ëì
",description:"Ekkoë Vnresource, BIPO, FPT IHRPì ê°ì ëë¶ë¶ì HR ìì¤í
ê³¼ íµí©íì¬ ë°ì´í°ë¥¼ ë기íí©ëë¤. ëì
ê³¼ì ì´ ê·¸ ì´ë ëë³´ë¤ ê°ë¨íê³ í¨ì¨ì ì
ëë¤."},security:{title:"ì 뢰를 ìµì°ì ì¼ë¡ ìê°í©ëë¤",description:"ì í¬ë ISO 27001 ê·ì ì¤ì ë° ì°ê° 모ì í´í¹ í
ì¤í¸ë¥¼ íµí´ ë°ì´í° ë° ìì¤í
ë³´ìì ìµì°ì ì¼ë¡ íì¬, ì ë³´ ì ì¶ ë° ì¬ê¸°ë¡ë¶í°ì ë³´í¸ë¥¼ ë³´ì¥í©ëë¤."}},deploy:{label:"/ ìë¹ì¤",title:"ê·ì¬ì Ekko를 ëì
íì¸ì",description:"ê°ë¨í íë¡ì¸ì¤ì ì 문 íì íµí´ Ekkoë ìì
ì¼ ê¸°ì¤ 5ì¼ ì´ë´ì ê·ì¬ì í¹ë³í ë³µì§ë¥¼ ì ê³µí ì ììµëë¤.",steps:{step1:{number:"01",title:"미í
",description:"ê·ì¬ì ì¸ë ¥ ì구 ì¬íì ëí´ ë
¼ìíê³ , ìë¹ì¤ ììì ìí íí¸ëì ê³ì½ì ì²´ê²°í©ëë¤."},step2:{number:"02",title:"ëì
",description:"ê·ì¬ì ì구ì¬íì ë§ì¶° Ekkoì ê¸ìµ ê±´ì ì± í¨í¤ì§ë¥¼ í¨ê» 구ì±í©ëë¤."}
555,step3:{number:"03",title:"ê³µì§",description:"Ekkoì ë§ì¼í
í¤í¸ë¥¼ íì©íì¬ ìë¡ì´ ì§ì ë³µì§ ííì ì§ìë¤ìê² í¨ê³¼ì ì¼ë¡ ì릴 ì ìëë¡ ì§ìí©ëë¤."},step4:{number:"04",title:"ì´ì©",description:"ì§ìë¤ì´ Ekko 모ë°ì¼ ì±ì ê°ì
íê³ ê¸ìµ ê±´ì ì± íí ì´ì©ì ììí©ëë¤."}}},app:{title:"ì§ìë¤ìê² íìí 모ë ê²ì íëì ì±ì",subtitle:"ì¦ê°ì ì¸ ê¸ì¬ ì ê·¼ë¶í° ê¸ìµ êµì¡ê¹ì§, ê·¼ë¡ììê² ì¤ì§ì ì¸ ë³í를 ê°ì ¸ì¤ë ë구를 ì ê³µí©ëë¤.",support:{title:"ì°ì¤ë¬´í´ 24ìê° ì§ì",description:"ë² í¸ë¨ì´ë¡ ì°ì¤ë¬´í´ ê³ ê° ì§ìì ì ê³µíì¬ ì¸ì ë ì§ ì§ìë¤ì ì§ìí ì¤ë¹ê° ëì´ ììµëë¤."},stats:{withdrawal:"íê· ì¸ì¶ ìê°",interest:"ì´ìì¨",availability:"ì± ì´ì© ê°ë¥ ìê°",courses:"ê¸ìµ êµì¡ ê³¼ì "}},faq:{title:"ì주 묻ë ì§ë¬¸",items:{q1:{question:"ê¸ì¬ ì ì§ê¸ì´ë 무ìì¸ê°ì? ê¸ì¬ ë´ë³´ ëì¶ì¸ê°ì?",answer:"Ekkoë 기ì
ì ìí ìê¸ ê¸°ì íë«í¼ì¼ë¡, ê·¼ë¡ìê° ê¸ì¬ì¼ê¹ì§ 기ë¤ë¦´ íì ìì´ ì¸ì ë ì§ ìì ì ê¸ì¬ ì¼ë¶ì 미리 ì ê·¼í ì ìëë¡ í©ëë¤. Ekkoë ì´ì, ì¨ê²¨ì§ ììë£, ì§ë¶ ì ì, ì±ê¶ ì¶ì¬ì´ ìë¤ë ì ìì ëì¶ê³¼ë ìì í ë¤ë¦
ëë¤."},q2:{question:"Ekko ì루ì
ì´ ê³ ì©ì£¼ì íê¸ íë¦ì ìí¥ì 미ì¹ëì?",answer:"ê³ ì©ì£¼ë ìë§ì ì§ìë¤ì´ ì ì§ê¸ë°ì ê¸ì¡ë§í¼ë§ Ekkoì ìííë©´ ëë¯ë¡, 기ì
ì íê¸ íë¦ìë ì í ìí¥ì 미ì¹ì§ ììµëë¤."},q3:{question:"Ekko ëì
ì¼ë¡ HR ë¶ìì ì
ë¬´ê° ëì´ëëì?",answer:"Ekkoë ìì¤ì ëë¶ë¶ HR ìíí¸ì¨ì´ì íµí©íì¬ ëì
ë° ê¸ì¬ ì ì§ê¸ ê´ë¦¬ íë¡ì¸ì¤ë¥¼ ìëíí ì ìì´, HR ë¶ìì ì
무ëì íì í ì¤ì¬ì¤ëë¤."},q4:{question:"Ekkoì ê¸ìµ êµì¡ íë¡ê·¸ë¨ìë 무ìì´ í¬í¨ëëì?",answer:"ë¹ì¬ì ITC-ILO ì¸ì¦ íë¡ê·¸ë¨ì ì¬ë¬´ 목í ì¤ì , ì¼ì ìê¸ ê´ë¦¬, 미ë를 ìí ì ì¶, ì±
ìê° ìë ëì¶, ê¸ìµ ìë¹ì¤ ì´ì©, ì¬ì° ë³´í¸ ë± 6ê°ì íµì¬ 모ëì ë¤ë£¹ëë¤. ì½í
ì¸ ë ë² í¸ë¨ ê·¼ë¡ììê² ë§ì¶°ì§ ìí¬ìê³¼ ì¸ì± ê°ì¢ë¥¼ íµí´ ì ê³µë©ëë¤."},q5:{question:"Ekkoë ì§ìì ê¸ìµ ê±´ì ì±ì 미ì¹ë ìí¥ì ì´ë»ê² 측ì íëì?",answer:"ì í¬ë ì ì¶ ê³ì¢ ê°ì¤, êµì¡ ê³¼ì ì´ìì¨, ë¹ê³µì ëì¶ ê°ì ë± ì£¼ì ì§í를 ì¶ì í©ëë¤. íí¸ëì¬ë¤ì ì¼ë°ì ì¼ë¡ ëì
6ê°ì ì´ë´ì ì§ì ì ì§ì¨ í¥ì, ê²°ê·¼ì¨ ê°ì, ìì°ì± ì¦ë í¨ê³¼ë¥¼ ê²½íí©ëë¤."}}},whyPartner:{subtitle:"ì í¬ë ë°ì´í° ë³´ìì ì ì§íë©´ì ìíí 구íì ì§ìí©ëë¤.",title:"ì í¬ì íë ¥í´ì¼ íë ì´ì "}},Sfe={hero:{title:"ì¸ì ë ì§ ì§ê¸ë°ì ìê¸ì ì¡ì¸ì¤íì¸ì",description:"ë ì´ì ê¸ì¬ì¼ê¹ì§ 기ë¤ë¦´ íìê° ììµëë¤. ì´ë¯¸ ì§ê¸ë°ì ìê¸ì ì¦ì ì¡ì¸ì¤íì¸ì. ì ì© ì¡°íë ì¨ê²¨ì§ ììë£ê° ììµëë¤.",downloadOn:"ë¤ìì ë¤ì´ë¡ë"},app:{badge:"Ekko ì±",features:{courses:{description:"ì¬ë¯¸ìë ê²ìíë ì½í
ì¸ ë¡ ë¬´ë£ íìµ",title:"ì¬ì ê°ì¢"},instant:{description:"ê·íì ìí ê³ì¢ë¡ ì¦ì ìê¸ì ìë ¹íì¸ì",title:"ì¦ì ìê¸ ì¡ì¸ì¤"},savings:{description:"목í를 ì¤ì íê³ ì ì¶ ì§í ìí©ì ì¶ì íì¸ì",title:"ì ì¶ ë구"},security:{description:"OTP ì¸ì¦ì íµí´ ISO 27001 ì¸ì¦ì ë°ììµëë¤",title:"ìµë ë³´ì"},support:{description:"ë² í¸ë¨ ì§ì íì´ íì ëì¸ ì¤ë¹ê° ëì´ ììµëë¤",title:"24/7 ì§ì"},tracking:{description:"ë§¤ì¼ ì
ë°ì´í¸ëë ì 립 ìê¸ì íì¸íì¸ì",title:"ì¤ìê° ì¶ì "}},subtitle:"ê·í를 ìí´ ì¤ê³ë 기ë¥ì¼ë¡ ê°ì¸ ì¬ì ì ì½ê² ê´ë¦¬íì¸ì",title:"íëì ì±ì¼ë¡ íìí 모ë ê²"},faq:{items:{q1:{answer:"Ekkoë ê³ ì©ì£¼ íµí© ííì
ëë¤. ì¦, ì±ì ì¡ì¸ì¤íë ¤ë©´ ê·íì íì¬ê° ë¹ì¬ì ì í´í´ì¼ í©ëë¤.",question:"ë구ë Ekko ì±ì ì¬ì©í ì ìëì?"},q2:{answer:"ê³ ì©ì£¼ê° Ekko를 구ííë©´ ê·íì ê¸ì¬ ì ë³´ë ë³´ì ì°ê²°ì íµí´ ì ì¡ë©ëë¤. ê·íì ìê¸ ì
555ì¡(ê¸ì¬ì¨ ë° ê·¼ë¡ ìê°ì 기ë°)ì ë§¤ì¼ ì ë°ì´í¸ë©ëë¤. ê·íë ìí ê³ì¢ë¡ ì¸ì¶í ì ìì¼ë©° í´ë¹ ê¸ì¡ì ë¤ì ê¸ì¬ìì ê³µì ë©ëë¤.",question:"Ekkoë ì´ë»ê² ìëíëì?"},q3:{answer:"ììí기ë ë¹ ë¥´ê³ ì½ìµëë¤! ê³ ì©ì£¼ê° ìë¡ì´ ííì ë°íí í, App Store ëë Google Playìì Ekko ì±ì ë¤ì´ë¡ëíì¸ì. ì±ì ì¤ííê³ 'ê°ì 'ì ííì¸ì. 거기ìë¶í° ì§ìì ë°ë¼ ì§ííìë©´ ë©ëë¤.",question:"ì´ë»ê² ê°ì íëì?"},q4:{answer:"ìëëë¤! Ekkoë ëì¶ê³¼ë ìì í ë¤ë¦ ëë¤: ì´ì, ì¨ê²¨ì§ ììë£, ì°ì²´ë£, ì±ê¶ ì¶ì¬ì´ ììµëë¤. ê·íë ì´ë¯¸ ì¼í´ì ë² ìê¸ì ë¨ìí ì¡ì¸ì¤íë ê²ì ëë¤.",question:"Ekkoë ëì¶ì¸ê°ì?"},q5:{answer:"Ekkoë ISO 27001 ì¸ì¦ì íµí´ ë³´ìì ì¤ìíê² ìê°í©ëë¤. 민ê°í ë°ì´í°ë¥¼ ë³ê²½í ë ì¼íì© ë¹ë°ë²í¸(OTP), ì¸ì± íì¸ ë° ì¶ê° ë³´í¸ ê¸°ë¥ì ì¬ì©í©ëë¤.",question:"Ekko ì±ì ë³´ìì´ ëëì?"}},title:"FAQ"},howItWorks:{badge:"ììí기",steps:{step1:{description:"íë¡ê·¸ë¨ì´ ì¤ì ëë©´ ê³ ì©ì£¼ë¥¼ íµí´ ê³µì§ì¬íì ë°ê² ë©ëë¤.",title:"ê³ ì©ì£¼ê° Ekkoì íí¸ë ê´ê³ë¥¼ 맺ìµëë¤"},step2:{description:"ì±ì ì¤ííê³ ê¸°ë³¸ ì 보를 íì¸íê³ ìí ê³ì¢ë¥¼ ì°ê²°íì¬ ê°ì íì¸ì.",title:"ì±ì ë¤ì´ë¡ëíê³ ê°ì íì¸ì"},step3:{description:"ì¬ì© ê°ë¥í ìê¸ì ì¶ì íê³ , ì¸ì¶íê³ , ì¬ì ê±´ê° ë구를 ì´í´ë³´ì¸ì.",title:"Ekko ì¬ì© ìì"},step4:{description:"ì¸ì¶í ê¸ì¡ì ê¸ì¬ ëª ì¸ìì ë¨ì¼ í목 ê³µì ë¡ íìë©ëë¤.",title:"ê¸ì¬ì¼ì ë¨ì ìê¸ì ë°ì¼ì¸ì"}},subtitle:"Ekko ì¬ì©ì ììíë ë¤ ê°ì§ ê°ë¨í ë¨ê³",title:"ìë ë°©ì"},support:{description:"24ìê° ì°ì¤ë¬´í´ë¡ ì§ë¬¸ì ëµë³íê³ ê³ì íìì ëìë립ëë¤.",phone:"ì í",title:"ì± ì§ìì´ íìíì¸ì?"},wellness:{benefits:{balance:{description:"ê¸ì¬ë¥¼ ì²êµ¬ìì ë ì ë§ì¶ê³ ë¶íìí ì°ì²´ë£ë¥¼ ìì 기 ììíì¸ì.",title:"ìì ë° ì§ì¶ ê· í"},debt:{description:"ê³ ê¸ë¦¬ ëì¶, ì ì© ì¹´ë ë° ê¸°í ì§ì ë¶ê°ë¥í ìµì ì ìì¡´í íìì±ì ì¤ì ëë¤.",title:"ë¶ì± í¨ì í¼í기"},education:{description:"ì§ìì ì¸ ìê¸ ê´ë¦¬ 기ì ì 구ì¶í기 ìí´ ë¬´ë£ ì¸ì± ì¬ì ê°ì¢ì ì¡ì¸ì¤íììì¤.",title:"ì¬ì êµì¡"},safety:{description:"ììì¹ ëª»í ë¹ì ê²½ë¹ë¥¼ ê´ë¦¬í ì ìë ë ëì ì¤ë¹ë¥¼ íììì¤.",title:"ì¬ì ì ìì ë§"}},title:"ì¬ì ì°ë¹ì ë¨ìí ëì ê´í ê²ì´ ìëëë¤. ê·¸ê²ì ë§ìì ííì ê´í ê²ì ëë¤."}},jfe={hero:{title:`ì í¬ë Ekkoì ëë¤. 556ê·¸ë¦¬ê³ ì´ê²ì ì í¬ì ì´ì¼ê¸°ì ëë¤`,description:"Ekkoë ë² í¸ë¨ ì ìì 미ë ì§í¥ì ì¸ ê¸°ì ì ìí ê¸ì¬ ì ì§ê¸ ì루ì ì ëë¤. ë¹ì¬ë ì§ìë¤ìê² ì¬ì ì ì ì°ì±ì ì ê³µíë ëìì 기ì ì ì´ì§ë¥ ì ì¤ì´ë ë° ëìì ë립ëë¤."},story:{title:"ì í¬ì ì´ì¼ê¸°",description:"ë² í¸ë¨ì ê·¼ë¡ìë¤ì ì¢ ì¢ ê¸ì¬ì¼ ì¬ì´ì ì¬ì ì ì´ë ¤ìì ì§ë©´í©ëë¤. ê³ ê¸ë¦¬ ììì¥ ëì¶ì ë§ì ì¬ëë¤ì ë¹ì ì ìíì ë¹ ë¨ë¦½ëë¤. Ekkoë ê·¼ë¡ììê² íì ì¤ì´ì£¼ê³ 기ì ì ê°ííë ìì íê³ ê³µì í ëìì ì ê³µí¨ì¼ë¡ì¨ ì´ë¬í ì ìíì ë기 ìí´ ì¤ë¦½ëììµëë¤."},clients:{title:"ì ëì ì¸ ê¸°ì ë¤ì ì 뢰를 ë°ê³ ììµëë¤"},team:{label:"ì í¬ íì ìê°í©ëë¤",title:"ê¸ì¬ì 미ë를 ë§ë¤ì´ê°ë ì´ì ì ì¸ ì¬ëë¤.",description:"ì í¬ë ë² í¸ë¨ ê·¼ë¡ìë¤ì ìí ê¸ìµ í¬ì©ì íì¤ë¡ ë§ë¤ê² ë¤ë ê³µëì 목íë¡ ëì¹ ê¸°ì ì, ê¸ìµ ì 문ê°, 몽ìê°ë¤ë¡ 구ì±ë ë¤ìí íì ëë¤.",cta:"ì í¬ íì í©ë¥íì¸ì"},awards:{label:"íì°½",title:"ìì ê²½ë ¥ì ë¹ëë íì "},investors:{label:"ì í¬ í¬ììë¤",title:"ìí©í¸ì ìí´ ì§ìë°ê³ ììµëë¤",description:"ì í¬ë 모ë ê·¼ë¡ì를 ìí ê¸ìµ í¬ì©ì´ë¼ë ë¹ì ì ê³µì íë ìí©í¸ ì¤ì¬ì íë ë° ì¬ë¨ê³¼ íë ¥í©ëë¤."},press:{label:"ì¸ë¡ ë³´ë",title:"ì¸ë¡ ì´ ë§íë ê²ë¤",readArticle:"ê¸°ì¬ ì½ê¸°"},cta:{title:"ì í¬ íì í©ë¥íê³ ì¶ì¼ì ê°ì?",description:"ì í¬ë ë² í¸ë¨ ì ìì ê·¼ë¡ìë¤ìê² íì ì¤ì´ì¤ ì´ì ì ì¸ ì¬ëë¤ì íì ì°¾ê³ ììµëë¤. ì´ë¦° ì§ì를 ì´í´ë³´ê³ Ekko ê°ì¡±ì ì¼ìì´ ëì길 ë°ëëë¤.",viewCareers:"ì´ë¦° ì§ì 보기"}},_fe={label:"ì±ì©",title:"ì í¬ ë¯¸ì ì ëì°¸íì¸ì",subtitle:"ìë°±ë§ ëª ì ê·¼ë¡ììê² ê²½ì ì ìì 를 ì ê³µíë ë° ëì°¸í´ ì£¼ì¸ì. ì미 ìë ê²ì í¨ê» ë§ë¤ì´ ëê°ìë¤.",whyJoin:{title:"Ekkoì í©ë¥í´ì¼ íë ì´ì ",description:"ì í¬ë ëë¨ììì ê·¼ë¡ìë¤ì ì¬ì ì ì°ë¹ì ìí 미ë를 구ì¶íê³ ììµëë¤."},values:{impact:{title:"ìí¥ ì°ì ",description:"ì í¬ë ê·¼ë¡ìì ì¶ì ì§ì ì¼ë¡ ê°ì íë ì루ì ì 구ì¶í©ëë¤."},team:{title:"í ì ì ",description:"ì í¬ë íë ¥íê³ ìë¡ë¥¼ ì§ìíë©° í¨ê» ì±ê³¼ë¥¼ ì¶íí©ëë¤."},growth:{title:"ê³ ì ì±ì¥",description:"ì¤ì§ì ì¸ ë³í를 ë§ë¤ ì ìë ë¹ ë¥´ê² ì±ì¥íë ì¤íí¸ì ì í©ë¥íì¸ì."},culture:{title:"ë¤ìí 문í",description:"ë² í¸ë¨ê³¼ ê¸ë¡ë² ìì¥ì ìë ë¤ë¬¸í íì ëë¤."}},openings:{title:"íì¬ ì±ì© ì¤ì¸ í¬ì§ì "},filter:{all:"모ë ë¶ì"},loading:"í¬ì§ì ì ë¶ë¬ì¤ë ì¤...",noOpenings:"íì¬ ì±ì© ì¤ì¸ í¬ì§ì ì´ ììµëë¤.",checkBack:"ê³§ ë¤ì íì¸íìê±°ë [email protected]ì¼ë¡ ì´ë ¥ì를 ë³´ë´ì£¼ììì¤.",viewJob:"ì±ì© ê³µê³ ë³´ê¸°",backToJobs:"모ë ì±ì© ê³µê³ ë¡ ëìê°ê¸°",sections:{description:"ì§ë¬´ ì¤ëª ",requirements:"ì구 ì¬í",benefits:"íí"},apply:{title:"ì´ í¬ì§ì ì ì§ìí기",name:"ì´ë¦",email:"ì´ë©ì¼",phone:"ì°ë½ì²",coverLetter:"ì기ìê°ì",coverLetterPlaceholder:"ê´ì¬ ìë ì´ì 를 ìë ¤ì£¼ì
556¸ì...",submit:"ì§ìì ì ì¶",submitting:"ì ì¶ ì¤...",success:{title:"ì§ììê° ì ì¶ëììµëë¤!",description:"ê·íì ì§ìì를 ê²í í í ê³§ ì°ë½ëë¦¬ê² ìµëë¤."},error:{title:"ì¤ë¥",description:"ì§ìì ì ì¶ì ì¤í¨íìµëë¤. ë¤ì ìëí´ ì£¼ììì¤."},instructions:"ì§ìíìë ¤ë©´ ë¤ìì í¬í¨í ì§ìì를 ë³´ë´ì£¼ììì¤:",requirement:{coverLetter:"ì기ìê°ì",cv:"ì´ë ¥ì",position:"ì§ìíë ì§ì±
"}},notFound:{title:"ì±ì© ê³µê³ ë¥¼ ì°¾ì ì ììµëë¤",description:"ì´ í¬ì§ì
ì ë ì´ì ì í¨íì§ ìì ì ììµëë¤."},cta:{title:"ì í©í ìí ì ì°¾ì§ ëª»íì
¨ìµëê¹?",description:"ì í¬ë íì ì ë¥í ì¸ì¬ë¥¼ ì°¾ê³ ììµëë¤. ì´ë ¥ì를 ë³´ë´ì£¼ìë©´ ì°¸ê³ íê² ìµëë¤.",button:"ì´ë ¥ì ë³´ë´ê¸°"}},Efe={nav:{intro:"ìë¡ ",methodology:"ë°©ë²ë¡ ",demographics:"ì¸êµ¬íµê³",quality:"ì¶ì ì§",loyalty:"ì¶©ì±ë 구ì¶",voices:"목ì리"},hero:{badge:"ILO ë° Gates Foundationì ì§ìì ë°ììµëë¤",title:"2024ë
EWA",titleAccent:"ìí©í¸ ë³´ê³ ì",description:"Earned Wage Access(EWA)ê° ë² í¸ë¨ ê·¼ë¡ìë¤ì ì¬ì ì°ë¹ì ì´ë»ê² ë³íìí¤ê³ ìëì§ ììë³´ììì¤."},summary:{title:"ëì± ê°ë ¥í ì¸ë ¥ì ìí ê¸ì¬ ì¬ê³ ",description:"ë² í¸ë¨ì ë§ì ê·¼ë¡ìë¤ì ë¹ ë¯í ìíì íë©° ê²¨ì° ìê³ë¥¼ ì ì§íê³ ììµëë¤. ììì¹ ëª»í ì§ì¶ì´ ë°ìíë©´ ì¢
ì¢
ì½íì ëì¶ ê¸°ê´ì ìì¡´íì¬ ë¶ì±ì ì
ìíì ë§ëëë¤. Earned Wage Access(EWA)ë ì§ìì´ ê¸ì¬ì¼ ì´ì ì ì´ë¯¸ ë²ì´ë ìëì ì ê·¼í ì ìëë¡ í¨ì¼ë¡ì¨ í´ê²°ì±
ì ì ê³µí©ëë¤."},stats:{manageFinances:{label:"ì¬ì ê´ë¦¬ ë¥ë ¥ í¥ì",quote:"ì´ì ìë³ ìì°ì ë ì ê³ííê³ ë¹ìê¸ì ì ì¶í ì ììµëë¤."},emergencies:{label:"ë¹ì ìí© ëì² ë¥ë ¥ í¥ì",quote:"ê¸íê² ëì´ íìí ë, ì´ì Ekko ëë¶ì ì¬ì ì ì¼ë¡ ì립í ì ììµëë¤."},qualityOfLife:{label:"ì¶ì ì§ í¥ì",quote:"Ekkoê° ì ìë
ì íë¹ ì§ë¶ê³¼ ê´ë ¨íì¬ ì¶ì ì§ì í¥ìíë ë° ëìì´ ëë¤ê³ ìê°í©ëë¤."},reducedStress:{label:"ì¬ì ì ì¤í¸ë ì¤ ê°ì",quote:"ë ì´ì ê¸ì¬ì¼ì 기ë¤ë¦¬ë©° ì¤í¸ë ì¤ë¥¼ ë°ì§ ììµëë¤."}},methodology:{label:"ì°êµ¬ ë°©ë²ë¡ ",title:"EWAì ìí¥ì ëí ë°ì´í° ê¸°ë° ë¶ì",description:"2024ë
EWA ìí©í¸ ë³´ê³ ìë êµì ë
¸ë 기구(ILO)ì Gates Foundationì´ Ekko를 ì¬ì©íë ê·¼ë¡ì를 ëìì¼ë¡ 60 Decibelsê° ì¤ë¬¸ ì¡°ì¬ë¥¼ ì¤ìí ì§ì ì°êµ¬ë¥¼ ë°íì¼ë¡ ìì±ëììµëë¤.",companies:"ì¤ë¬¸ ì¡°ì¬ ëì 기ì
",responses:"ê·¼ë¡ì ìëµ",minutes:"ì¸í°ë·°ë¹ ìê°(ë¶)",weeks:"ì°êµ¬ 기ê°(주)",partners:"ì°êµ¬ ë° ìí©í¸ íí¸ë"},demographics:{label:"ì¸êµ¬íµê³",title:"ì¬ì©ì ì´í´",monthlyUsage:"ì¤ë¬¸ ì¡°ì¬ ëì ì¬ì©ìì %ê° ë§¤ì ìµì í ë² Ekko를 ì¬ì©í©ëë¤",respondents:"ìëµì",medianAge:"íê· ì°ë ¹",householdSize:"ê°êµ¬ ê·ëª¨",purposeTitle:"Ekko ì¬ì© 목ì ",mentions:"ì¸ê¸",categories:{household:"ì 기 ê°êµ¬ ì§ì¶",work:"ì
무 ê´ë ¨",emergency:"ë¹ì",personal:"ê°ì¸"},relyOnEkko:"ì¬ì ì íì를 ìí´ Ekkoìë§ ìì¡´í©ëë¤",relyDescription:"ìë³ ì§ì¶ì ê´ë¦¬í기 ìí´ ìëµìë¤ì ì¹êµ¬, ì§ì¸ ëë ê¸ì¬ì¼ ëì¶ ê¸°ê´ì¼ë¡ë¶í° ëì ë¹ë¦¬ë ëì ì 뢰í ì ìë ì¬ì ììì¼ë¡ì Ekkoì ìì¡´í©ëë¤."},qualityOfLife:{label:"ì¶ì ì§",title:"ì¸ìë ì¶ì ì§ ë³í",description:"ìëµìì 63%ë¼ë ëë¼ì´ ë¹ì¨ì´ Ekkoê° ìì ì ì¸ ì¬ì ìì ë§ì ì ê³µíê³ ìì ì±ì ë¬ì±íë©° ê±±ì ì ëì´ì£¼ì´ ì¶ì´ ê°ì ëìë¤ê³ ëµíìµëë¤.",chartLabels:{veryImproved:"ë§¤ì° í¥ìë¨",slightlyImproved:"ì½ê° í¥ìë¨",noChange:"ë³í ìì",slightlyWorse:"ì½ê° ì
íë¨"},reasons:{emergency:{text:"ê¸´ê¸ ìê¸ ì ê·¼",quote:"ì´ë ¤ìì ì²íì ë, Ekkoë ê¸´ê¸ ìí© ë¹ì©ì ì§ë¶íë ë° ëìì´ ëëë¡ ê¸ì¬ë¥¼ 미리 ë°ì ì ìëë¡ ì§ìí©ëë¤."},cashFlow:{text:"íê¸ íë¦ ê°ì ",quote:"ìíê³¼ ê°ì ìì ì¼ì í목ì ëí ì§ì¶ì´ ë ì´ì 매ì ì ìê² ë¬¸ì ê° ëì§ ììµëë¤."},stress:{text:"ì¬ì ì ì¤í¸ë ì¤ ê°ì",quote:"ë ì´ì ê¸ì¬ì¼ì 기ë¤ë¦¬ë©° ì¤í¸ë ì¤ë¥¼ ë°ì§ ììµëë¤."}}},loyalty:{label:"ì¶©ì±ë 구ì¶",title:"ì§ì-ê³ ì©ì£¼ ê´ê³ ê°í",jobImportance:{title:"ì§ì
ê³ ë ¤ ì ì¤ìë",score:"/10ì íê· ì¤ìë ì ì",description:"ìë¡ì´ ì§ì
ì ê³ ë ¤í ë, Ekkoì ê°ì EWA ìë¹ì¤ì ëí ì ê·¼ì±ì ê·¼ë¡ììê² ë§¤ì° ì¤ìíê² íê°ë©ëë¤."},relationship:{title:"ê³ ì©ì£¼ ê´ê³",label:"ê´ê³ ê°ì ",description:"ì¬ì©ìì ì ë° ì´ìì´ Ekkoì Earned Wage Access ìë¹ì¤ ëë¶ì ê³ ì©ì£¼ìì ê´ê³ê° ê°ì ëìë¤ê³ ë³´ê³ íìµëë¤."},quote:"ë§¤ì° í¸ë¦¬íë¤ê³ ìê°í©ëë¤. ì¼ë° íì¬ììë ì§ìë¤ì´ ê¸ì¬ë¥¼ 미리 ë°ì ì ìì¼ë©°, ê·¸ë° ì¢
ë¥ì ì ë¶ì´ ì ë§ ë¶ê°ë¥í©ëë¤. ê·¸ëì ê°ì¬íê² ìê°í©ëë¤.",quoteAuthor:"íì¬ì, 22ì¸, ë¨ì±"},voices:{label:"ì¤ìí 목ì리",title:"ì¤ì ê·¼ë¡ìë¤ì ì¤ì ì´ì¼ê¸°",description:"ì¬ì©ìë¤ì í¼ëë°±ì Ekko ì¬ì ì íµì¬ì
ëë¤. ì´ë¬í 목ì리ë ì°ë¦¬ê° ë ìí¥ë ¥ ìë ì루ì
ì 구ì¶íë ë° ê¸¸ì¡ì´ê° ë©ëë¤."},testimonials:{factoryWorker:{quote:"ê¸íê² ëì´ íìí ë, ë§ì ì¬ëë¤ìê² ëìì ìì²íë ëì ì´ì Ekko ëë¶ì ì¬ì ì ì¼ë¡ ì립í ì ììµëë¤.",author:"ê³µì¥ ê·¼ë¡ì",location:"Bình Dương"},securityGuard:{quote:"Ekkoê° ì ìì´ì ì¶ê° íë¹ë¥¼ ì§ë¶íë ë° ì¶ì ì§ì í¥ìíë ë° ëìì´ ëë¤ê³ ìê°í©ëë¤. íë¹ê° ê¸ì¬ì¼ê³¼ ë§ì§ ì기 ë문ì
ëë¤.",author:"ê²½ë¹ì",location:"í¸ì¹ë¯¼ ì"},gardener:{quote:"Ekko를 ì¬ì©í ì´íë¡ ì 기, ìë, ìë
íë¹ì ê°ì ìë³ ì§ì¶ì ë ì´ì ë¹í©íì§ ììµëë¤.",author:"ì ìì¬",location:"Hung Yen"},busDriver:{quote:"íì¬ ê¸ì¬ë¥¼ ë°ê¸° ì ì ëì´ ë¨ì´ì§ë ê²ì ëí´ ë ì´ì ê±±ì í íìê° ììµëë¤. ìë£í ë° êµíµë¹ì ê°ì ìíë¹ë¥¼ ì¶©ë¹í ì ììµëë¤.",author:"ë²ì¤ ì´ì ì¬",location:"ë² í¸ë¨"}},trust:{label:"ì 뢰 구ì¶",title:"ì¬ì©ìë¤ì Ekko를 ì 뢰í©ëë¤",transparency:"ëª
ííê³ í¬ëª
í ììë£ êµ¬ì¡° ë° ì ì±
ë³´ê³ ",timeliness:'ìë¹ì¤ì ì ìì±ì "ë§¤ì° ì¢ì" ëë "ì¢ì"ì¼ë¡ íê°',challenges:"ì¬ì©ìì 8%ë§ì´ ì´ë ¤ìì ë³´ê³ íìµëë¤",quote:"Ekko ì±ì ê¸ì¬ ì ì§ê¸ ìë¹ì¤ë ì´í´í기 ì½ê³ ì¬ì©í기 í¸ë¦¬í©ëë¤.",quoteAuthor:"ê³µì¥ ê·¼ë¡ì, 45ì¸"},cta:{title:"ì ì²´ ì°êµ¬ë¥¼ ìíìëê¹?",description:"ìì í 2024ë
EWA ìí©í¸ ë³´ê³ ì를 ë°ìë³´ê³ Ekkoê° ì§ìì ì¬ì ì°ë¹ì ì´ë»ê² ë³íìí¬ ì ìëì§ ììë³´ììì¤.",button:"문ìí기"}},Tfe={label:"ì¸ì¬ì´í¸",title:"ìµì ë´ì¤",subtitle:"Ekkoì ìµì ë´ì¤, íí¸ëì ë° ì¸ì¬ì´í¸ë¥¼ íì¸íììì¤.",filter:{all:"ì ì²´",news:"ë´ì¤",article:"ìí°í´"}
556,readMore:"ë ì½ì´ë³´ê¸°",noArticles:"ìí°í´ì ì°¾ì ì ììµëë¤."},Nfe={backToNews:"ììì¼ë¡ ëìê°ê¸°",relatedArticles:"ê´ë ¨ 기ì¬",notFound:"기ì¬ë¥¼ ì°¾ì ì ììµëë¤"},Cfe={badge:"ì¬ë¬´ êµì¡ íë¡ê·¸ë¨",description1:"ë¹ì¬ì ì¬ë¬´ êµì¡ íë¡ê·¸ë¨ì ë¤ìì 기ë°ì¼ë¡ 구ì¶ëììµëë¤.",description1Suffix:", ë² í¸ë¨ ìí©ì ë§ê² ì ì¤íê² ì¡°ì ëììµëë¤.",description2:"ë¹ì¬ì ê°ì¬ë ë¤ìê³¼ ê°ìµëë¤.",description2Suffix:", ê·¼ë¡ììê² ì¬ì ê´ë¦¬ì íìí ì§ìê³¼ 기ì ì ì ê³µí©ëë¤.",iloMethodology:"êµì ë
¸ë 기구(International Labour Organization)ì ì¸ê³ì ì¼ë¡ ì¸ì ë°ë ë°©ë²ë¡ ",itcIlo:"ILO êµì íë ¨ ì¼í°",module:"모ë",modules:{borrowing:{point1:"ì ì© ìµì
ì ë¹êµíê³ ëì¶ì ì¤ì ë¹ì©ì ì´í´í©ëë¤.",point2:"ìì í ëì¶ ìíì ì ííë ë°©ë²ì ë°°ìëë¤.",point3:"ë¶ì± í¨ì ê³¼ ê³¼ëí ë¶ì±ë¥¼ í¼í©ëë¤.",shortTitle:"ëì¶",title:"ì±
ìê° ìë ëì¶"},budgeting:{point1:"ìì°ì ì±
ì íê³ íëª
íê² ì§ì¶íë ë°©ë²ì ë°°ìëë¤.",point2:"ì§ì¶ì ì¶ì íê³ ì¬ë¬´ 기ë¡ì ì ì§í©ëë¤.",point3:"ì¼ì ìíì ìí íëª
í ë ê´ë¦¬ ìµê´ì íì±í©ëë¤.",shortTitle:"ìì° ì±
ì ",title:"ì¼ìì ì¸ ë ê´ë¦¬"},goals:{point1:"ë¨ê¸° ë° ì¥ê¸° ì¬ë¬´ 목í를 ì¤ì íë ë°©ë²ì ë°°ìëë¤.",point2:"ëì ëí ìì¬ìíµì ìì ê°ì í¤ìëë¤.",point3:"ê³íì ì¸ì°ê³ ìê° ê²½ê³¼ì ë°ë¥¸ ì§í ìí©ì ì¶ì í©ëë¤.",shortTitle:"목í",title:"ì¬ë¬´ 목í ì¤ì "},protection:{point1:"ìíì ê´ë¦¬íê³ ê¸ìµ ì¬ê¸°ë¥¼ í¼íë ë°©ë²ì ë°°ìëë¤",point2:"ë³´íì ìë ë°©ìê³¼ ì¬ì© ì기를 ì´í´í©ëë¤",shortTitle:"ë³´í¸",title:"ì¬ì ë³´í¸"},savings:{point1:"ë¤ìí ì ì¶ ë°©ë²ê³¼ ìíì ì´í´í©ëë¤",point2:"ê·íì 목íì ì í©í ì ì¶ ìµì
ì ì íí©ëë¤",point3:"ì 기ì ì¸ ì ì¶ ìµê´ì ë§ëëë¤",shortTitle:"ì ì¶",title:"미ë를 ìí ì ì¶"},services:{point1:"ìí, ì ìì§ê°, ì¡ê¸ ë구를 ìì íê² ì¬ì©íë ë°©ë²ì ì´í´í©ëë¤",point2:"ê¸ìµ 기ê´ê³¼ì ê±°ëì ëí ìì ê°ì í¤ìëë¤",point3:"ê¸ìµ ìí ì¬ì© ì ì ë³´ì ì
ê°í ì íì í©ëë¤",shortTitle:"ìë¹ì¤",title:"ê¸ìµ ìë¹ì¤ ì´ì©"}},modulesNote:"모ëì ê·ì¬ì ì¸ë ¥ ì구ì ë°ë¼ ë¤ë¥´ê² 구ì±ë ì ììµëë¤",modulesSubtitle:"모ëì í´ë¦íì¬ ì§ìë¤ì´ 무ìì ë°°ì¸ì§ ì´í´ë³´ì¸ì",modulesTitle:"6ê°ì§ íµì¬ ì¬ë¬´ êµì¡ 모ë",officialPartner:"ê³µì íí¸ë",stats:{completions:"ê³¼ì ìë£",savings:"ê°ì¤ë ì ì¶ ê³ì¢",workshops:"ìí¬ìµ ìê°"},title:"ì¸ê³ ìµê³ ì êµì¡ìë¤ì 기ë°ì¼ë¡ 구ì¶ë ì½í
ì¸ ",trainersHighlight:"ë² í¸ë¨ ìµì´ì´ì ì ì¼í ILO ì¸ì¦ ì¬ë¬´ êµì¡ì"},Afe={readMore:"ë ì½ì´ë³´ê¸°",subtitle:"Ekkoì ìµì íí¸ëìê³¼ ì¸ì¬ì´í¸ë¥¼ ë§ëë³´ì¸ì",title:"ìµì ë´ì¤",viewAll:"모ë ë´ì¤ 보기"},Pfe={announcement:nfe,nav:rfe,hero:ife,logoMarquee:sfe,content:afe,stats:ofe,whyCompanies:lfe,mission:cfe,howItWorks:ufe,benefits:dfe,pricing:hfe,security:ffe,integrations:pfe,rollout:mfe,testimonial:gfe,cta:yfe,footer
556:vfe,clients:xfe,awards:bfe,media:wfe,forBusiness:kfe,forWorkers:Sfe,about:jfe,careers:_fe,impactReport:Efe,news:Tfe,newsDetail:Nfe,financialEducation:Cfe,newsPreview:Afe},Ofe={new:"ææ°ï¼",text:"Ekko 宿 420 ä¸ç¾å
ç§åè½®èèµï¼å 鿍å¨è¶åçè´¢å¡å¥åº·æ®åã",textShort:"Ekko 宿 420 ä¸ç¾å
ç§åè½®èèµ",cta:"é
读å
¨æ"},Rfe={business:"ä¼ä¸æ¹æ¡",workers:"åå·¥æ¹æ¡",about:"å
³äºæä»¬",blog:"è¡ä¸æ´å¯",admin:"管çåå°",contact:"èç³»æä»¬",careers:"å å
¥æä»¬",impact:"社ä¼å½±å",news:"æ°é»ä¸å¿"},Ife={badge:"è¶åé¢å
çåºèªå³åæå¡",title1:"以ç®åçæ¹å¼,",title2:"æ¯å¤©ä¸ºåå·¥æä¾æ¯æã",description:"让å工鿶æ¯åå·²èµåçèªèµ,å轻财å¡åå,éä½äººææµå¤±ã",cta:"äºè§£æ´å¤",learnMore:"äºè§£æ´å¤"},Mfe={trusted:"ä¼å¤è¶åé¢åä¼ä¸çå
±åéæ©"},$fe={title1:"è´¢å¡å¥åº·ç¦å©æ¹æ¡",title2:"让æ¯ä¸å¤©",title3:"æ´ä»å®¹",description:"ä¸å¥å
¨é¢çåå·¥ç¦å©æ¹æ¡ï¼æ¶µçåºèªå³ä»ãå¨è计å以忰åå人åèµæºè½¬åï¼å
¨é¢èµè½æ¨çåå·¥éä¼ã",tabs:{comprehensive:"è´¢å¡æµå¨æ§",tools:"è´¢å¡ç´ å
»",education:"人åèµæºæ°åå转å"},cards:{liquidity:{title:"æµå¨æ§",description:"7Ã24 å°æ¶éæ¶æåå·²æ£å·¥èµï¼ä¼ä¸æ éæ¿æ
ä»»ä½èµéé£é©ã"},literacy:{title:"ç´ å
»",description:"游æåçè´¢å¡æè²ï¼å¸®å©åå·¥å»ºç«æ´æå®ççè´¢è½åã"},savings:{title:"å¨è",description:"éè¿ç®æ 设å®ãèªå¨å¨èä¸ä¸ªæ§åæéï¼å¸®å©åå·¥å
»æé¿æå¨èä¹ æ¯ã"},hrdx:{title:"HR æ°åå",description:"æ°åå转åå·¥å
·ï¼è®©äººåèµæºæµç¨æ´é«æé¡ºç
ã"}}},Dfe={badge:"æ¥çç ç©¶ææéç¹æè¦",title:"è¶
è¶ææ¬çæ·±è¿å½±å",description:"å»å¹´å½é
å³å·¥ç»ç»(ILO)å½±å忥åæç¤ºäº Ekko å¦ä½å宿¹ååå·¥ççæ´»",items:{satisfaction:{value:"64%",label:"æ´ä»å®¹åºå¯¹çªåæ
åµ",description:"å工表示åºå¯¹çªå弿¯çè½åæ¾èæå"},users:{value:"63%",label:"çæ´»åè´¨æå",description:"å工表示æ´ä½çæ´»åè´¨å¾å°æ¹å"},retention:{value:"52%",label:"è´¢å¡ç¦èåå°",description:"å工表示对财å¡çæ
å¿§ææ¾ä¸é"},support:{value:"45%",label:"åå°éæ£è§åè´·",description:"å工对æ°é´é«æ¯åè´·çä¾èµæ¾èéä½"}},readMore:"æ¥çæ´å¤"},Lfe={label:"为ä»ä¹éæ©æä»¬",title1:"é¢å
ä¼ä¸",title2:"为ä½éæ© Ekko",description:"稳åºçå¢é,å§äºç¨³å®çè´¢å¡ãå å
¥æ£å¨æ¹ååå·¥ä½éªçé¢å
ä¼ä¸ã",cta:"äºè§£æ´å¤",benefits:{turnover:{title:"éä½ç¦»èç",description:"ææåå°åå·¥å¨å
¥èé¦å¹´çæµå¤±"},applicants:{title:"å¢å åºèè
",description:"ä»¥æ¯æ¥å¯æ¯åçèªèµç¦å©è±é¢èåº"},engagement:{title:"æåæ¬ä¸åº¦",description:"ç¼è§£è´¢å¡åå,æ¿å工使ç"},digital:{stat:"å
è´¹",title:"æ°ååå·¥å
·",description:"é
å¥å¹è®ä¸ç®¡çå·¥å
·,æ éé¢å¤ä»è´¹"}}},Ffe={label:"/ æä»¬ç使å½",title:"为ä¸åäºä¼ä¸åå·¥æåè´¢å¡å¥åº·,å©åæé æ´å
·é§æ§ä¸å¹¸ç¦æçå¢éã"},Bfe={title:"è¿ä½æ¹å¼",subtitle:"ç®åãå¿«éãå®å
¨",description:"æä»¬çâå工财å¡å¥åº·æ¹æ¡âæ´ååºèªå³åãä¸å®¶å¹è®ä¸äººåèµæºå·¥å
·,å
¨é¢æååå·¥ç¦ç¥ä¸çåçã",tabs:{app:"Ekko åºç¨",appSubtitle:"é¢ååå·¥",portal:"HR 管çåå°",portalSubtitle:"é¢å人åèµæºé¨é¨",workshops:"线ä¸å·¥ä½å",workshopsSubtitle:"é¢ååå·¥",convenient:"便æ·çèªèµæ¯å",streamlined:"髿çå¢é管ç"},appTitle:"Ekko å工端 App",appFeatures:{ewa:{title:"åºèªå³å",description:"åå·¥å¯éæ¶éå°æ¯åå·²èµåçèªèµ,ç§çº§å°è´¦,é¶éèè´¹ç¨ã"},education:{title:"è´¢å¡æè²",description:"ç±ä¸å®¶è®¾è®¡çè¶£å³åç财课ç¨,帮å©å工建ç«é¿æåççéé±è§å¿µã"},planning:{title:"è´¢å¡è§å",description:"åå©å工设å®å¨èç®æ ã追踪æ¥å¸¸æ¯åº,鿥å
»æå¥åº·ççè´¢ä¹ æ¯ã"}},portalFeatures:{management:{title:"å工管ç",description:"è½»æ¾ç®¡çåå·¥å¼éã设置æ¯åé¢åº¦,å¹¶èªå®ä¹ä½¿ç¨è§åã"},analytics:{title:"宿¶æ°æ®åæ",description:"ææ¡ä½¿ç¨è¶å¿ãåä¸çä¸é¡¹ç®ææ,ä¸é®çæå®æ´æ¥è¡¨ã"},integration:{title:"æ ç¼å¯¹æ¥",description:"ä¸ç°æäººåèµæºåèªé
¬ç³»ç»æ ç¼éæ,èªå¨å®æå¯¹è´¦ã"}},workshopFeatures:{onDemand:{title:"æéå¹è®",description:"æ ¹æ®ä¼ä¸æççµæ´»å®æè´¢å¡ç´ å
»å·¥ä½å,å¯å¨åå
¬ç°åºæçº¿ä¸è¿è¡ã"},certified:{title:"ILO 认è¯è®²å¸",description:"ææè®²å¸åéè¿å½é
å³å·¥ç»ç»(ILO)认è¯,æä¾å½é
æ åçè´¢å¡æè²ã"},programs:{title:"å®å¶å课ç¨",description:"é对ç½é¢ä¸èé¢åå·¥åå«è®¾è®¡,ç²¾åè§£å³ä¸å
556群ä½çè´¢å¡ææã"}},features:{interface:{title:"ç®æ´çé¢,顺ç
ä½éª",description:"为ä¸åå²ä½åæ°åæ°´å¹³çå工设计,åªéè½»ç¹å ä¸å³å¯å®æèªèµæ¯åã"},support:{title:"å
¨å¤©å客æ,éæ¶æ¯åèªèµ",description:"Ekko 客æå¢é 7Ã24 å°æ¶å¨çº¿,æ ä¿¡ç¨è®°å½é¨æ§,ææåå·¥åå¯ä½¿ç¨ã"},education:{title:"å
è´¹çä¸ä¸ç财课ç¨",description:"çå¨ç徿ãè¶£å³æµéªä¸äºå¨å·¥å
·,让æ¯ä¸ä½åå·¥é½è½è½»æ¾ææ¡çè´¢ç¥è¯ã"}},steps:{step1:{title:"åå·¥åèµ·ç³è¯·",description:"åå·¥å¨ Ekko App 䏿 ¹æ®å·²å·¥ä½æ¶é¿æç´¯è®¡èªèµåèµ·æ¯åã"},step2:{title:"Ekko 峿¶å°è´¦",description:"Ekko ç§çº§å°å·²æ ¸å®çèªèµæ¬¾é¡¹æå
¥åå·¥çå·¥èµè´¦æ·ã"},step3:{title:"èªèµå¯¹è´¦",description:"åèªæ¥å½å¤©,ä¼ä¸ä»åå·¥èªèµä¸æ£é¤ç¸åºçæ¯åéé¢ã"},step4:{title:"ä¼ä¸ç»ç®",description:"ä¼ä¸å¨åèªå约 3â5 ä¸ªå·¥ä½æ¥å
å Ekko 宿ç»ç®ã"}},appDescription:"å工端移å¨åºç¨:æ¯åèªèµãå¦ä¹ çè´¢ãè§åå¨èä¸ç«å¼å®æã",portalDescription:"é¢å HR å¢éçç½é¡µç®¡çåå°,è½»æ¾ç®¡çåå·¥å¹¶è¿½è¸ªé¡¹ç®ææã",workshopDescription:"ç± ILO 认è¯è®²å¸ä¸»è®²çä¼ä¸å
é¨è´¢å¡ç´ å
»å·¥ä½åã"},Vfe={company:{title:"为æ¨çä¼ä¸å¸¦æ¥çä»·å¼",subtitle:"æ´ç¨³åºçå¢éï¼æºäºç¨³å®çè´¢å¡",items:{turnover:{title:"éä½å工离èç",description:"æä»¬çç ç©¶æ¾ç¤ºï¼ä½¿ç¨ Ekko ä¸å¹´åå工离èçå¯ä¸é 10â15%ã"},attract:{title:"æ´å
·å¸å¼åçé主åç",description:"以â天天å¯é¢èªâä¼å¿å¨æ¿ççæèå¸åºä¸è±é¢èåºã"},engagement:{title:"æ´é«çåå·¥æ¬ä¸åº¦",description:"ç¼è§£è´¢å¡ååæå©äºæå工使çå¹¶æ¹åå¢é士æ°ã"},digital:{title:"æ´å®åçæ°ååè½å",description:"é¢å¤æä¾æ°åå转åä¸åå·¥å¹è®å·¥å
·ï¼æ éé¢å¤ä»è´¹ã"}}},backoffice:{title:"为æ¨çåå°å¢é带æ¥çä»·å¼",subtitle:"为人åèµæºãèªé
¬ç¦å©ä¸è´¢å¡å¢éä¼å工使µç¨",items:{paperwork:{title:"å嫿¥é纸质æµç¨",description:"å·¥ä½ç¸å
³çç°é颿¯å
¨æµç¨æ°ååï¼åè½»è¡æ¿è´æ
ã"},digital:{title:"æ°ååæµç¨",description:"èªå¨å®¡æ¹ä¸å®æ¶è¿½è¸ªï¼èç大鿶é´ã"},accuracy:{title:"æåæ°æ®åç¡®æ§",description:"åå©åå·¥å确填åèå¤ï¼è®©èªé
¬æ ¸ç®æ´ç²¾åã"}}},employees:{title:"为æ¨çå工带æ¥çä»·å¼",subtitle:"çç Ekko å¦ä½æ¹åçæ´»",items:{debt:{title:"è¿ç¦»åºå¡é·é±",description:"æä¾é«å©è´·ä¹å¤çå¯é æ¿ä»£æ¹æ¡ï¼å¸®å©åå·¥åºå¯¹ç´§æ¥æ¯åºï¼é¿å
é·å
¥è´¢å¡å°å¢ã"},access:{title:"æ å·®å«å¼æ¾",description:"é¢åææå工弿¾ï¼å³ä½¿ä¿¡ç¨è®°å½è¾å¼±ä¹è½ä½¿ç¨ã"},smarter:{title:"æ´èªæçèµé管ç",description:"å¨ç´§æ¥æ
åµä¸ååºæä¼éæ©ï¼ä½¿ç¨å·²æ£å·¥èµï¼åæ¶ä¿çå¨èä¸çæ¯è´¦æ·ã"}}}},qfe={title:"å¥åä¼ä¸å®é
ççµæ´»å®ä»·æ¹æ¡",subtitle:"æ ¹æ®ä¼ä¸ç®æ èªç±éæ©ï¼ä¹å¯ä¸¤ç§æ¹æ¡ç»å使ç¨ã",saas:{title:"Ekko SaaS",subtitle:"ç±ä¼ä¸ä»è´¹",description:"ç±ä¼ä¸æææ¯ä»å¹³å°è´¹ç¨ï¼ä»·æ ¼éå工人æ°è®¡ç®ãéåå¸æå° EWA ä½ä¸ºå®æ´åå·¥ç¦å©æä¾çå
¬å¸ã"},base:{title:"Ekko Base",subtitle:"ç±åå·¥ä»è´¹",description:"å工卿¯ç¬å·¥èµé¢æ¯æ¶æ¯ä»å°éæ¯ä¾è´¹ç¨ï¼ä¼ä¸é¶ææ¬ãéå叿å¨ä¸å¢å é¢ç®çåæä¸æä¾ EWA çå
¬å¸ã"},mixed:"å¯éï¼æ¯ææ··å模å¼"},Ufe={title:"å®å
¨ä¸æ°æ®ä¿æ¤",iso:"ISO 27001 认è¯",description:"Ekko å·²è·å
¨çä¿¡æ¯å®å
¨éæ å ISO 27001 认è¯ã",items:{pentest:{title:"宿æ¸éæµè¯",description:"æä»¬ä¸è¶åé¢å
çç½ç»å®å
¨å
¬å¸ CyRadar åä½ï¼å
¶äº¦ä¸º Google VirusTotal åä½ä¼ä¼´ã"},compliance:{title:"åè§å®å¤",description:"å®å
¨ç¬¦åè¶åã第 13 å·æ³ä»¤ãä¸ªäººæ°æ®ä¿æ¤è¦æ±ï¼éç¨ OTP ç¨æ·æææºå¶ã"},protection:{title:"æ°æ®ä¿æ¤",description:"强åç½ç»å®å
¨è½åï¼éä½è¿è¥ä¸æ°æ®æ³é²é£é©ï¼åæ¶åç°æ½å¨æ¼æ´ã"}}},Wfe={title:"ä¸ä¸»æµäººåèµæºç³»ç»æ ç¼å¯¹æ¥",description:"æ éç¹çé
ç½®ï¼æä»¬å·²ä¸è¶åä¸»æµ HR å¹³å°å®ææ·±åº¦éæã"},zfe={title:"顺ç
çä¸çº¿æµç¨",description:"便æççæä½³å®è·µï¼æä»¬ç¡®ä¿ Ekko 卿¨çåå·¥éä¼ä¸é¡ºå©è½å°",steps:{step1:{title:"å¿«éå¯å¨",duration:"1â2 天",items:["ç¾ç½²åå","å¯¹æ¥ HR/èå¤ç³»ç»ï¼APIãæä»¶ä¸ä¼ æäººå·¥æ¹å¼ï¼","梳çèªé
¬æµç¨
556ï¼å®å¶ç³»ç»é ç½®"]},step2:{title:"ç³»ç»å¯¹æ¥ä¸å¹è®",duration:"1â7 天",items:["ç°åºä¸ºåå·¥å¼éè´¦å·","å¶å®å·¥èµé¢æ¯æ¿çï¼é¢åº¦ã群ç»ãéç¨èå´ï¼","HR å¢éå¹è®ï¼çº¦ 1 å°æ¶ï¼"]},step3:{title:"æ£å¼ä¸çº¿ä¸æåº¦å¯¹è´¦",duration:"æç»è¿è¡",items:["æ¯æå¯¹è´¦ï¼åèªæ¥å 5 天ï¼","åèªåæ ¸å¯¹ç¡®è®¤å¹¶ç»ç®ç» Ekko"]}}},Hfe={title:"åä½ä¼ä¼´æä¹è¯´",quotes:[{quote:"æä»¬ä¸ç´å¨æ¢ç´¢æ¹ååå·¥ç¦ç¥çæ¹å¼ãEkko 带æ¥äºä¸ç§å ¨æ°ä¸è´´å¿çæè·¯,è¿ä¸æ¥å¼ºåäºæä»¬å ³æåå·¥ãåäºæ å½çä¼ä¸æåãå®è®©åå·¥è½å¤ä»å®¹åºå¯¹çªå弿¯,èä¸å¿ æ±å©äºé«æ¯åè´·ã",author:"Bruno Jaspaert",source:`è¶å欧çåä¼ä¸»å¸ 557Deep C è¶åå·¥ä¸ååºé¦å¸æ§è¡å®`},{quote:"Ekko 让æä»¬å¨æè䏿´å ·å¸å¼åãå®ååéäººä¼ éäºæä»¬åç»ã以人为æ¬çä»·å¼è§,叮婿们卿¿çç人æå¸åºä¸è±é¢èåºã",author:"Takashi Mori",source:"AGS(è¶å)è£äºæ»ç»ç"},{quote:`Ekko 对 Homefarm çåå·¥é常å®ç¨,让大家å¨é¢å¯¹çªåçè´¢å¡éè¦æ¶æ´å ä»å®¹ã 558åºç¨ä¾¿æ·ãæç¨ãååºè¿ é,é常éå Homefarm å¤å åçå¢éã 559æè°¢ Ekko ä¸ Homefarm çåä½!`,author:"Ms Chung Thương",source:"人åèµæºæ»ç,Homefarm"},{quote:`æ¨åº Ekko æ¯ Vua Ná»m 为å工带æ¥çå®é ç¦å©ä¹ä¸,帮å©å¤§å®¶å¨éå°ä¸´æ¶éè¦æ¶æ´ä¸»å¨å°ç®¡ç个人财å¡ã 560è¿ä¸ä» ç¼è§£äºåå·¥çç»æµåå,ä¹ä½ç°äº Vua Ná»m 对å¢éå¹¸ç¦æä¸é¿æåå±çéè§ã`,author:"人åèµæºæ»ç,Vua Ná»m",source:"Vua Ná»m"}]},Kfe={title:"æºæå ±è¿,让æ¯ä¸å¤©é½æ´æä»·å¼ã",description:"让 Ekko å©åæ¨çä¼ä¸,å ±åè¥é æ´å¹¸ç¦çå·¥ä½ç¯å¢ã",contact:"èç³»æä»¬",hotline:"客æç线",email:"é®ä»¶å¨è¯¢",address:"æ²³å å¸è¿åé¡é¿é±è¡ 21 å·"},Gfe={tagline:"为ä¸åäºä¼ä¸åå·¥æåè´¢å¡å¥åº·,å©åæé æ´å ·é§æ§ä¸å¹¸ç¦æçå¢éã",product:{title:"产å",flexible:"åºèªå³å",tools:"è´¢å¡å·¥å ·",education:"è´¢å¡æè²",pricing:"ä»·æ ¼æ¹æ¡"},company:{title:"å ¬å¸",about:"å ³äºæä»¬",team:"å¢é",careers:"å å ¥æä»¬",blog:"å客"},resources:{title:"èµæº",helpCenter:"帮å©ä¸å¿",faq:"常è§é®é¢",caseStudies:"æ¡ä¾ç ç©¶",api:"API ææ¡£"},legal:{title:"æ³å¾",terms:"æå¡æ¡æ¬¾",privacy:"éç§æ¿ç",cookies:"Cookie æ¿ç"},copyright:"© 2025 Ekko çæææã",madeIn:"ç¨å¿åé ,æºèªè¶å â¤ï¸"},Yfe={title:"é¨ååä½å®¢æ·",description:"æ·±åå¶é ãé¶å®ä¸æå¡çå¤ä¸ªè¡ä¸é¢å ä¼ä¸çä¿¡èµ"},Xfe={title:"è£èªä¸å¥é¡¹",items:["æ¥æ¬ ESG å½±ååå¥","忬§åä¸åæ°å¥","墿£®å ¡å¤å ä¸å 容åè¶å¥","é©å½åå±å¥åº·ä¸å®å ¨å¥","è¶åç¾å½åä¼å¥"]},Qfe={quotes:{quote1:"䏿¬¾å¨è°é¾æ¶å»ä¸ºå·¥äººæä¾æ¯æçåæ°ç§æäº§å",quote2:"叮婿å工使ççå ¨æ°è§£å³æ¹æ¡",quote3:"è¿å°æä¸ºåå·¥ä¸å¯æç¼ºçä¸é¡¹æå¡",quote4:"éå¡è´¢å¡ä¹ æ¯çæ ç¨"}},Zfe={hero:{title:"让åå·¥æ¥æçæ£çè´¢å¡å¥åº·",subtitle:"åºèªå³åè§£å³æ¹æ¡",description:"Ekko çåºèªå³åæ¹æ¡è®©åå·¥åå«âæå âåå,æåæ¥å¸¸ç活质é,è¿åæ´ç¨³å¥çè´¢å¡ç¶æ"},unicef:{badge:"èåå½å¿ç«¥åºé伿¨è",title:"Ekko å ¥éèåå½å¿ç«¥åºéä¼ãå®¶åºå好å®è·µæåã",subtitle:"卿æ°åå¸çãå®¶åºå好å®è·µæåãä¸,èåå½å¿ç«¥åºéä¼(UNICEF)å° Ekko å为âèªèµæéæ¯åâä¸âè´¢å¡ç´ å »å¹è®âçå è¿èªé ¬ä¿éèä¾ã",policy1:{number:"01",title:"æéæ¯èª(EWA)â è¿é¶æ¿ç建议",description:"â为åå·¥æä¾èªèµæéæ¯åé项,ä½¿å ¶è½å¤å¨åèªæ¥ä¹å使ç¨å·²èµåçå·¥èµãâè¿æå©äºåå·¥åºå¯¹ç´§æ¥è´¢å¡éæ±,é¿å é·å ¥é«æ¯åè´·ã"},policy2:{number:"02",title:"å工财å¡å¥åº·è®¡å â é«é¶æ¿ç建议",description:"âæ¨è¡è¦ç广æ³çå工财å¡å¥åº·è®¡å,ä¾å¦æ¯æåå·¥å女æè²å¨èãâè¿æå©äºå»ºç«é¿æç¨³åºçè´¢å¡å®å ¨æã"},cta:"æ¥ç UNICEF æå",pageHint:"ç¿»è³ç¬¬ 39 页坿¥çå ³äº Ekko çä»ç»"}
560,valueProps:{recruitment:{title:"æåæèä¸çä»»",description:"85% çåä½ä¼ä¸åé¦,åºèªå³åæ¯æåä¸çä½äººææå
·æ§ä»·æ¯çç¦å©ä¹ä¸ãå®ååå·¥ä¼ éå
³æ,让ä»ä»¬çæ£ææ¡èªèº«çè´¢å¡èå¥ã"},privacy:{title:"以éç§ä¸ºå
",description:"Ekko åªééå¿
è¦çæå°æ°æ®,ä¸ä»
å°éåå·¥éç§,ä¹è½ç®å HR æµç¨ãå å¿«å¼éé度,å¹¶æååå·¥åä¸åº¦ã"},deployment:{title:"è½»éé¨ç½²,å¿«éä¸çº¿",description:"Ekko å¯ä¸ VnresourceãBIPOãFPT IHRP çä¸»æµ HR ç³»ç»å¯¹æ¥,å®ç°æ°æ®åæ¥,让é¨ç½²æµç¨æ¯ä»¥å¾æ´å ç®æ´é«æã"},security:{title:"å¼å¾ä¿¡èµçå®å
¨ä¿é",description:"æä»¬éè¿ ISO 27001 认è¯,并宿å¼å±æ¸éæµè¯,å
¨æ¹ä½å®æ¤æ°æ®ä¸ç³»ç»å®å
¨,æµå¾¡æ¼æ´ä¸æ¬ºè¯é£é©ã"}},deploy:{label:"/ æå¡æµç¨",title:"å¨è´µå
¬å¸é¨ç½² Ekko",description:"å忏
æ°çæµç¨ä¸ä¸ä¸çå¢é,Ekko å¯å¨ 5 ä¸ªå·¥ä½æ¥å
为贵å
¬å¸ä¸çº¿è¿é¡¹ç¬ç¹çåå·¥ç¦å©ã",steps:{step1:{number:"01",title:"æ²éæ´½è°",description:"æä»¬ä¸æ¨æ·±å
¥äºè§£å¢ééæ±,å¹¶ç¾ç½²åä½åè®®,æ£å¼å¯å¨é¡¹ç®ã"},step2:{number:"02",title:"é¨ç½²é
ç½®",description:"æ ¹æ®è´µå
¬å¸çå
·ä½æ
åµ,å
±åå®å¶ Ekkoâå工财å¡å¥åº·æ¹æ¡âã"},step3:{number:"03",title:"å®£ä¼ æ¨å¹¿",description:"æä»¬æä¾å®æ´çå®£ä¼ ç©æ,å婿¨ååå·¥ä»ç»è¿é¡¹æ°ç¦å©ã"},step4:{number:"04",title:"å工使ç¨",description:"åå·¥å¨ Ekko ææºåºç¨ä¸å®ææ³¨å,å³å¯äº«åè´¢å¡å¥åº·ç¦å©ã"}}},app:{title:"åå·¥æéçä¸å,å°½å¨ä¸ä¸ªåºç¨",subtitle:"ä»ç§çº§æ¯èªå°è´¢å¡æè²,ä»¥çæ£å®ç¨çå·¥å
·èµè½æ¯ä¸ä½åå·¥ã",support:{title:"7Ã24 å®¢ææ¯æ",description:"è¶åè¯å®¢æå
¨å¤©åå¨çº¿,éæ¶ä¸ºæ¨çåå·¥æä¾å¸®å©ã"},stats:{withdrawal:"å¹³åå°è´¦æ¶é¿",interest:"婿¯è´¹ç",availability:"åºç¨å¯ç¨ç",courses:"è´¢å¡è¯¾ç¨æ°é"}},faq:{title:"常è§é®é¢",items:{q1:{question:"ä»ä¹æ¯åºèªå³å?宿¯ä¸ç§åèªæ¥è´·æ¬¾å?",answer:"Ekko 为ä¼ä¸æä¾èªèµç§æå¹³å°,让åå·¥å¯ä»¥éæ¶ä¸»å¨æ¯åå·²èµåçé¨åèªèµ,èæ éçå°åèªæ¥ãEkko ä¸è´·æ¬¾æªç¶ä¸å:æ 婿¯ãæ éèè´¹ç¨ãæ å±æãæ å¬æ¶ã"},q2:{question:"Ekko æ¯å¦ä¼å½±åä¼ä¸çç°éæµ?",answer:"ä¼ä¸åªé卿æ«ç»ä¸å°å工已æ¯åçéé¢ç»ç®ç» Ekko,å æ¤å¯¹ä¼ä¸çç°éæµæ²¡æä»»ä½å½±åã"},q3:{question:"Ekko ä¼å¢å HR é¨é¨çå·¥ä½éå?",answer:"Ekko å¯ä¸å¸é¢ä¸å¤§å¤æ° HR ç³»ç»å¯¹æ¥,èªå¨å宿é¨ç½²ä¸æ¯èªç®¡çæµç¨,æ¾èåè½» HR çæ¥å¸¸å·¥ä½éã"},q4:{question:"Ekko çè´¢å¡æè²é¡¹ç®å
å«åªäºå
容?",answer:"æä»¬ç项ç®éè¿ ITC-ILO 认è¯,æ¶µç 6 å¤§æ ¸å¿æ¨¡å:设å®è´¢å¡ç®æ ãæ¥å¸¸èµé管çãå¨èè§åãçæ§åè´·ã使ç¨éèæå¡ãä¿æ¤ä¸ªäººè´¢å¡ã课ç¨ä»¥å·¥ä½åä¸åºç¨å
å¦ä¹ ç¸ç»å,ä¸ä¸ºè¶åå³å¨åé身å®å¶ã"},q5:{question:"Ekko å¦ä½è¡¡éå工财å¡å¥åº·çæ¹åææ?",answer:"æä»¬å
³æ³¨å¤é¡¹å
³é®ææ ,å
æ¬å¨èè´¦æ·å¼è®¾æ
åµã课ç¨å®æçä¸éæ£è§åè´·çåå°å¹
度ãåä½ä¼ä¸é常å¨é¨ç½²å 6 个æå
å³å¯çå°åå·¥çä»»çæé«ãæ·å·¥çä¸éãç产åæåã"}}},whyPartner:{subtitle:"宿½è½»æ¾æ å¿§,æ°æ®å®å
¨æ è",title:"为ä»ä¹ä¸æä»¬åä½"}},Jfe={hero:{title:"éæ¶æ¯åæ¨å·²èµåçèªèµ",description:"æ éåçåèªæ¥ãæ¨èµå°çé±,æ³ç¨å°±ç¨ãæ éä¿¡ç¨å®¡æ ¸,é¶éèè´¹ç¨ã",downloadOn:"ç«å³ä¸è½½"},app:{badge:"Ekko åºç¨",title:"æ¨éè¦çä¸å,é½å¨ä¸ä¸ªåºç¨ä¸",subtitle:"为æ¨é身设计çåè½,让个人财å¡ç®¡çæ´è½»æ¾",features:{courses:{title:"è´¢å¡è¯¾ç¨",description:"å
è´¹çè¶£å³å课ç¨,让çè´¢å¦ä¹ è½»æ¾æå¿«"},instant:{title:"ç§å°é¶è¡è´¦æ·",description:"æ¯åçèªèµå¨æ°ç§å
ç´è¾¾æ¨çé¶è¡è´¦æ·"},savings:{title:"å¨èå·¥å
·",description:"设å®ç®æ ,ç´è§è¿½è¸ªæ¨çå¨èè¿åº¦"},security:{title:"顶级å®å
¨ä¿é",description:"éè¿ ISO 27001 认è¯,å¹¶éç¨ OTP åééªè¯"},support:{title:"7Ã24 客æ",description:"è¶åè¯å®¢æå¢ééæ¶å¾
å½,éæ¶ä¸ºæ¨è§£ç"}
560,tracking:{title:"宿¶æ¥ç",description:"æ¯æ¥æ´æ°æ¨å·²èµåçèªèµéé¢"}}},faq:{title:"常è§é®é¢",items:{q1:{question:"ä»»ä½äººé½å¯ä»¥ä½¿ç¨ Ekko å?",answer:"Ekko æ¯éè¿ä¼ä¸æä¾çåå·¥ç¦å©ãæ¨çå ¬å¸éä¸æä»¬å»ºç«åä½,æ¨æè½ä½¿ç¨è¯¥åºç¨ã"},q2:{question:"Ekko æ¯å¦ä½è¿ä½ç?",answer:"彿¨çé主æ¥å ¥ Ekko å,æ¨çèªèµä¿¡æ¯å°éè¿å®å ¨éé忥ãç³»ç»ä¼ä¾æ®æ¨çå·¥èµæ åä¸å·¥ä½æ¶é¿,æ¯æ¥æ´æ°å¯æ¯åéé¢ãæ¨å¯éæ¶æç°è³é¶è¡è´¦æ·,该éé¢å°å¨ä¸æ¬¡åèªæ¶èªå¨æ£é¤ã"},q3:{question:"æè¯¥å¦ä½æ³¨å?",answer:"é常ç®å!å½å ¬å¸å®£å¸ä¸çº¿è¯¥ç¦å©å,请åå¾ App Store æ Google Play ä¸è½½ Ekko åºç¨,ç¹å»â注åâ,æç §æç¤ºæä½å³å¯å®æå¼éã"},q4:{question:"Ekko æ¯è´·æ¬¾å?",answer:"䏿¯ãEkko ä¸è´·æ¬¾å®å ¨ä¸å:æ 婿¯ãæ éèè´¹ç¨ãæ å±æãæ å¬æ¶ãæ¨åªæ¯å¨ä½¿ç¨èªå·±å·²ç»å·¥ä½èµå°çèªèµã"},q5:{question:"Ekko åºç¨å®å ¨å?",answer:"Ekko é«åº¦éè§å®å ¨,å·²è·å¾ ISO 27001 认è¯ãæä»¬éç¨ä¸æ¬¡æ§å¯ç (OTP)ãåºç¨å 身份éªè¯,以åéå¯¹æææä½çå¤é鲿¤æªæ½ã"}}},howItWorks:{badge:"è½»æ¾å¼å§",title:"ä½¿ç¨æ¹å¼",subtitle:"å个ç®åæ¥éª¤,å³å»å¼å§ä½¿ç¨ Ekko",steps:{step1:{title:"æ¨çé主æ¥å ¥ Ekko",description:"项ç®ä¸çº¿å,æ¨å°éè¿å ¬å¸æ¶å°æ£å¼éç¥ã"},step2:{title:"ä¸è½½åºç¨å¹¶å®ææ³¨å",description:"æå¼åºç¨,éªè¯åºæ¬ä¿¡æ¯å¹¶ç»å®é¶è¡è´¦æ·å³å¯æ³¨åã"},step3:{title:"å¼å§ä½¿ç¨ Ekko",description:"éæ¶æ¥ç坿¯åèªèµãåèµ·æç°,并使ç¨è´¢å¡å¥åº·å·¥å ·ã"},step4:{title:"åèªæ¥ç»ç®",description:"æ¨å·²æ¯åçéé¢å°å¨å·¥èµå䏿¾ç¤ºä¸ºä¸é¡¹ç»ä¸æ£æ¬¾ã"}}},support:{title:"éè¦å¸®å©?",description:"æä»¬ 7Ã24 å°æ¶å¨çº¿,éæ¶è§£çæ¨ççé®,å婿¨ç®¡çè´¦æ·ã",phone:"çµè¯"},wellness:{title:"è´¢å¡å¥åº·ä¸ä» å ³ä¹éé±,æ´å ³ä¹å å¿çä»å®¹ã",benefits:{balance:{title:"æ¶æ¯æ´å¹³è¡¡",description:"让èªèµèå¥ä¸è´¦å卿æ´è´´å,åå«ä¸å¿ è¦çæ»çº³éã"},debt:{title:"è¿ç¦»åºå¡é·é±",description:"åå°å¯¹é«æ¯è´·æ¬¾ãä¿¡ç¨å¡çä¸å¯æç»èèµæ¹å¼çä¾èµã"},education:{title:"è´¢å¡æè²",description:"å è´¹åºç¨å 课ç¨,叮婿¨å»ºç«é¿æåç¨ççè´¢è½åã"},safety:{title:"è´¢å¡å®å ¨ç½",description:"让æ¨ä»å®¹åºå¯¹çªåç¶åµåç´§æ¥å¼éã"}}}},epe={hero:{title:`æä»¬æ¯ Ekko 561è¿æ¯æä»¬çæ äº`,description:"Ekko æ¯é¢åè¶ååç»æ§ä¼ä¸çåºèªå³ä»ï¼Earned Wage Accessï¼è§£å³æ¹æ¡ãæä»¬èµäºå工财å¡çµæ´»æ§ï¼åæ¶å¸®å©ä¼ä¸éä½ç¦»èçã"},story:{title:"æä»¬çæ äº",description:"å¨è¶åï¼å·¥äººå¸¸å¨åèªæ¥ä¹é´é¢ä¸´è´¢å¡ååï¼é«å©è´·è®©è®¸å¤äººé·å ¥åºå¡å¾ªç¯ãEkko çæç«æ£æ¯ä¸ºäºæç ´è¿ä¸å¾ªç¯ï¼éè¿å®å ¨ãå ¬å¹³çæ¹å¼èµè½å·¥äººï¼ä¹è®©ä¼ä¸æ´å 稳åºã"},clients:{title:"å¼å¾é¢å ä¼ä¸ä¿¡èµ"},team:{label:"å¢éä»ç»",title:"ç¨çæ æé èªé ¬çæªæ¥",description:"æä»¬ç±ææ¯ä¸å®¶ãéè人æä¸æ¢¦æ³å®¶ç»æï¼æçå ±åçç®æ ï¼è®©è¶åæ¯ä¸ä½å·¥äººé½è½äº«æçæ£çéèæ®æ ã",cta:"å å ¥æä»¬"},awards:{label:"è£èªè®¤å¯",title:"å±¡è·æ®è£çåæ°"},investors:{label:"æä»¬çæèµäºº",title:"ç±å½±ååæèµè æ¯æ",description:"æä»¬ä¸ä¸æ³¨å½±ååçåºéååºéä¼åä½ï¼å ±åæ¨å¨æ¯ä¸ä½å·¥äººçéèæ®æ æ¿æ¯ã"},press:{label:"åªä½æ¥é",title:"åªä½å¦ä½è¯ä»·æä»¬",readArticle:"é è¯»å ¨æ"},cta:{title:"æ³å å ¥æä»¬çå¢éï¼",description:"æä»¬å§ç»å¨å¯»æ¾æçæ ç人æï¼ä¸èµ·èµè½è¶åçæ¯ä¸ä½å·¥äººãæ¬¢è¿æµè§èä½å¹¶æä¸º Ekko 大家åºçä¸åã",viewCareers:"æ¥çèä½ç©ºç¼º"}},tpe={label:"æè",title:"å å ¥æä»¬ç使å½",subtitle:"叮婿们èµè½æ°ç¾ä¸å·¥äººå®ç°è´¢å¡èªç±ï¼å ±åæé ææä¹çäºä¸ã",whyJoin:{title:"为ä»ä¹å å ¥ Ekkoï¼",description:"æä»¬æ£å¨ä¸ºä¸åäºç工人æé è´¢å¡å¥åº·çæªæ¥ã"},values:{impact:{title:"å½±ååè³ä¸",description:"æä»¬æé çè§£å³æ¹æ¡çæ£æ¹å工人ççæ´»ã"},team:{title:"å¢éç²¾ç¥",description:"æä»¬ç¸äºåä½ãå½¼æ¤æ¯æãä¸ååºç¥æ¯ä¸æ¬¡èå©ã"},growth:{title:"å¿«éæé¿",description:"å å ¥ä¸å®¶é«éæé¿çååå ¬å¸ï¼åé çæ£çä»·å¼ã"},culture:{title:"å¤å æå",description:"䏿¯è¿æ¥è¶åä¸å ¨çå¸åºçå¤å å¢éã"}},openings:{title:"æèèä½"},filter:{all:"å ¨é¨é¨é¨"},loading:"æ£å¨å è½½èä½...",noOpenings:"ç®åææ ç©ºç¼ºèä½ã",checkBack:"请ç¨åå访é®ï¼æå°ç®ååéè³ [email protected]",viewJob:"æ¥çèä½",backToJobs:"è¿åå ¨é¨èä½",sections:{description:"èä½æè¿°",requirements:"ä»»èè¦æ±",benefits:"ç¦å©å¾ é"},apply:{title:"ç³è¯·æ¤èä½",name:"å§å",email:"é®ç®±",phone:"çµè¯",coverLetter:"æ±èä¿¡",coverLetterPlaceholder:"请åè¯æä»¬æ¨æå ´è¶£çåå ...",submit:"æäº¤ç³è¯·",submitting:"æäº¤ä¸...",success:{title:"ç³è¯·å·²æäº¤ï¼",description:"æä»¬å°å®¡é æ¨çç³è¯·å¹¶å°½å¿«ä¸æ¨èç³»ã"},error:{title:"é误",description:"ç³è¯·æäº¤å¤±è´¥ï¼è¯·ç¨ååè¯ã"},instructions:"ç³è¯·æ¶è¯·æäº¤ä»¥ä¸ææï¼",requirement:{coverLetter:"æ±èä¿¡",cv:"ç®å",position:"ç³è¯·çèä½"}},notFound:{title:"æªæ¾å°è¯¥èä½",description:"该èä½å¯è½å·²ä¸å弿¾ã"},cta:{title:"æ²¡ææ¾å°åéçèä½ï¼",description:"æä»¬å§ç»å¨å¯»æ¾ä¼ç§ç人æï¼æ¬¢
561è¿å°æ¨çç®ååéç»æä»¬ã",button:"åéç®å"}},npe={nav:{intro:"ç®ä»",methodology:"ç ç©¶æ¹æ³",demographics:"ç¨æ·ç»å",quality:"çæ´»è´¨é",loyalty:"åå·¥å¿ è¯åº¦",voices:"ç¨æ·ä¹å£°"},hero:{badge:"ç±å½é
å³å·¥ç»ç»ä¸çè¨åºé伿¯æ",title:"2024 åºèªå³ä»",titleAccent:"å½±å忥å",description:"äºè§£åºèªå³ä»å¦ä½æ¹åè¶å工人çè´¢å¡å¥åº·"},summary:{title:"éæ°å®ä¹èªé
¬ï¼æé æ´æé§æ§çåå·¥éä¼",description:"å¨è¶åï¼è®¸å¤å·¥äººé æå
度æ¥ï¼ä¸æ¦éå°æå¤å¼æ¯ï¼ä¾¿å¯è½æ±å©äºé«å©è´·ï¼é·å
¥åºå¡å¾ªç¯ãåºèªå³ä»ï¼EWAï¼è®©åå·¥å¯å¨åèªæ¥åæåå·²æ£å¾çå·¥èµï¼ä¸ºä»ä»¬æä¾äºä¸æ¡æ´å¥½çåºè·¯ã"},stats:{manageFinances:{label:"æ´å¥½å°ç®¡çè´¢å¡çè½åæå",quote:"ç°å¨æå¯ä»¥æ´å¥½å°è§åæ¯æé¢ç®ï¼å¹¶ä¸ºç´§æ¥æ
åµå¨èã"},emergencies:{label:"åºå¯¹ç´§æ¥æ
åµçè½åæå",quote:"彿æ¥éç¨é±æ¶ï¼å¤äºäº Ekkoï¼æç°å¨å¯ä»¥åå°è´¢å¡èªç«ã"},qualityOfLife:{label:"çæ´»è´¨éæå",quote:"Ekko 叮婿æ¯ä»å©åçå¦è´¹ï¼è®©çæ´»æ´ä»å®¹ã"},reducedStress:{label:"è´¢å¡åååè½»",quote:"æä¸åå 为çå¾
åèªæ¥èæå°ç¦èã"}},methodology:{label:"ç ç©¶æ¹æ³",title:"ä»¥æ°æ®çè§ EWA çå½±åå",description:"ã2024 EWA å½±å忥åãåºäºå½é
å³å·¥ç»ç»ï¼ILOï¼ä¸çè¨åºéä¼å¼å±ç宿§ç ç©¶ï¼ç± 60 Decibels å¯¹ä½¿ç¨ Ekko çåå·¥è¿è¡äºè°ç ã",companies:"åä¸è°ç çä¼ä¸",responses:"åå·¥å馿°é",minutes:"æ¯æ¬¡è®¿è°æ¶é¿ï¼åéï¼",weeks:"ç ç©¶å¨æ°",partners:"ç ç©¶ä¸å½±åååä½ä¼ä¼´"},demographics:{label:"ç¨æ·ç»å",title:"äºè§£æä»¬çç¨æ·",monthlyUsage:"çåè®¿ç¨æ·æ¯æè³å°ä½¿ç¨ Ekko 䏿¬¡",respondents:"å访è
",medianAge:"å¹´é¾ä¸ä½æ°",householdSize:"å®¶åºè§æ¨¡",purposeTitle:"ä½¿ç¨ Ekko çç¨é",mentions:"次æå",categories:{household:"æ¥å¸¸å®¶åºå¼é",work:"å·¥ä½ç¸å
³",emergency:"ç´§æ¥æ
åµ",personal:"个人æ¶è´¹"},relyOnEkko:"ä»
ä¾é Ekko 满足å
¶èèµéæ±",relyDescription:"å¨ç®¡çæåº¦å¼éæ¶ï¼å访è
éæ©å° Ekko ä½ä¸ºå¯ä¿¡èµçè´¢å¡èµæºï¼èéå亲å忬¾æä½¿ç¨é«å©è´·ã"},qualityOfLife:{label:"çæ´»è´¨é",title:"æç¥å°ççæ´»è´¨éåå",description:"å¤è¾¾ 63% çå访è
表示ï¼Ekko 让ä»ä»¬ççæ´»å¾å°æ¹åï¼ä¸ºä»ä»¬æä¾å¯é çè´¢å¡å®å
¨ç½ï¼ç¼è§£ç¦è并带æ¥ç¨³å®æã",chartLabels:{veryImproved:"æ¾èæ¹å",slightlyImproved:"ç¥ææ¹å",noChange:"没æåå",slightlyWorse:"ç¥æä¸é"},reasons:{emergency:{text:"è·å¾ç´§æ¥èµé",quote:"彿éå°å°é¾æ¶ï¼Ekko 帮æé¢æ¯å·¥èµä»¥åºå¯¹ç´§æ¥å¼éã"},cashFlow:{text:"ç°éæµæ´é¡ºç
",quote:"é£ç©çæ¥å¸¸å°é¢æ¯åºï¼ä¸åæ¯æ¯æçè´æ
ã"},stress:{text:"è´¢å¡åååè½»",quote:"æä¸åå 为çå¾
åèªæ¥èæå°ç¦èã"}}},loyalty:{label:"æåå¿ è¯åº¦",title:"强åé主ä¸åå·¥çå
³ç³»",jobImportance:{title:"卿±èèéä¸çéè¦æ§",score:"/10 å¹³åéè¦æ§è¯å",description:"å¨èèæ°å·¥ä½æ¶ï¼è½å¦ä½¿ç¨å Ekko è¿æ ·çåºèªå³ä»æå¡å¯¹åå·¥æ¥è¯´é常éè¦ã"},relationship:{title:"é主å
³ç³»",label:"å
³ç³»æææ¹å",description:"è¶
è¿ä¸åçç¨æ·è¡¨ç¤ºï¼å¾çäº Ekko çåºèªå³ä»æå¡ï¼ä»ä»¬ä¸é主çå
³ç³»å徿´å¥½ã"},quote:"æè§å¾é常æ¹ä¾¿ãä¸è¬å
¬å¸ä¸å
许å工颿¯å·¥èµï¼æ ¹æ¬æ²¡æåæ³å
é¢è¿ç¬é±ãæä»¥æççå¾æè°¢è¿é¡¹æå¡ã",quoteAuthor:"åå
¬å®¤èåï¼22 å²ï¼ç·æ§"},voices:{label:"éè¦ç声é³",title:"çå®å·¥äººçç宿
äº",description:"ç¨æ·çå馿¯ Ekko åè¿è·¯ä¸çæ ¸å¿ï¼è¿äºå£°é³æå¼æä»¬æé æ´å
·å½±ååçè§£å³æ¹æ¡ã"},testimonials:{factoryWorker:{quote:"彿æ¥éç¨é±æ¶ï¼ä¸å¿
åæçµè¯å夿±å©ï¼å¤äº Ekkoï¼æå¯ä»¥åå°è´¢å¡èªç«ã",author:"å·¥å工人",location:"å¹³é³"},securityGuard:{quote:"Ekko å¸®ææ¯ä»å©åçè¡¥ä¹ è´¹ç¨ï¼å 为è¿äºè´¹ç¨å¾å¾èµ¶ä¸ä¸åèªæ¥ã",author:"ä¿å®",location:"è¡å¿æå¸"},gardener:{quote:"ä½¿ç¨ Ekko ä¹åï¼æä¸å被çµè´¹ãæ°´è´¹åå©åçå¦è´¹çæåº¦å¼éæå¾æªæä¸åã",author:"åä¸",location:"å
´å®"},busDriver:{quote:"å¨é¢å°å
¬å¸å·¥èµä¹åï¼æä¸åå 为没é±èç¦èï¼å¯ä»¥å®å¿æ¯ä»é£ç©å交éççæ´»å¼éã",author:"巴士叿º",location:"è¶å"}},trust:{label:"建ç«ä¿¡ä»»",title:"ç¨æ·ä¿¡èµ Ekko",transparency:"表示费ç¨ç»æä¸æ¿çæ¸
æ°éæ",timeliness:"å°æå¡åæ¶æ§è¯ä¸ºâé常好âæâè¯å¥½â",challenges:"ä»
8% çç¨æ·å馿¾éå°é®é¢",quote:"Ekko åºç¨çå·¥èµé¢æ¯æå¡é常容æçè§£å使ç¨ã",quoteAuthor:"å·¥å工人ï¼45 å²"},cta:{title:"æ³è·å宿´æ¥åï¼",description:"欢è¿èç³»æä»¬ï¼è·å宿´çã2024 EWA å½±å忥åãï¼äºè§£ Ekko å¦ä½æåæ¨åå·¥éä¼çè´¢å¡å¥åº·ã",button:"èç³»æä»¬"}}
561,rpe={label:"æ´å¯",title:"ææ°å¨æ",subtitle:"äºè§£ Ekko çææ°æ°é»ãåä½ä¸æ´å¯",filter:{all:"å
¨é¨",news:"æ°é»",article:"æç« "},readMore:"é
读å
¨æ",noArticles:"ææ å
容"},ipe={backToNews:"è¿åæ°é»",relatedArticles:"ç¸å
³æç« ",notFound:"æªæ¾å°è¯¥æç« "},spe={badge:"è´¢å¡æè²é¡¹ç®",description1:"æä»¬çè´¢å¡æè²é¡¹ç®åºäº",description1Suffix:"ï¼å¹¶é对è¶åæ¬å°æ
å¢è¿è¡äºç²¾å¿è°æ´ã",description2:"æä»¬çè®²å¸æ¯",description2Suffix:"ï¼å¸®å©å·¥äººææ¡ç®¡çè´¢å¡çç¥è¯ä¸æè½ã",iloMethodology:"å½é
å³å·¥ç»ç»äº«èªå
¨ççæ¹æ³è®º",itcIlo:"å½é
å³å·¥ç»ç»å½é
å¹è®ä¸å¿ï¼ITC-ILOï¼",module:"模å",modules:{borrowing:{point1:"æ¯è¾ä¸åä¿¡è´·æ¹å¼ï¼çè§£åè´·çç宿æ¬",point2:"å¦ä¼æéå®å
¨å¯é ç贷款产å",point3:"é¿å
åºå¡é·é±ä¸è¿åº¦è´åº",shortTitle:"åè´·",title:"è´è´£ä»»å°åè´·"},budgeting:{point1:"å¦ä¹ çæ§é¢ç®ä¸æ¶è´¹",point2:"è®°å½å¼éå¹¶ä¿æè´¢å¡æ¡£æ¡",point3:"å
»ææ¥å¸¸çè´¢çå¥½ä¹ æ¯",shortTitle:"é¢ç®",title:"æ¥å¸¸è´¢å¡ç®¡ç"},goals:{point1:"å¦ä¹ 设å®çæä¸é¿æè´¢å¡ç®æ ",point2:"æåä¸ä»äººæ²ééé±è®®é¢çä¿¡å¿",point3:"å¶å®è®¡åå¹¶æç»è¿½è¸ªè¿å±",shortTitle:"ç®æ ",title:"设å®è´¢å¡ç®æ "},protection:{point1:"å¦ä¹ 管çé£é©å¹¶è¯å«éèè¯éª",point2:"äºè§£ä¿é©å¦ä½è¿ä½ä»¥å使¶ä½¿ç¨",shortTitle:"ä¿æ¤",title:"ä¿æ¤æ¨çè´¢å¡"},savings:{point1:"äºè§£ä¸åå¨èæ¹å¼ä¸äº§å",point2:"éæ©æéåèªå·±ç®æ çå¨èæ¹æ¡",point3:"å
»æè§å¾å¨èçä¹ æ¯",shortTitle:"å¨è",title:"ä¸ºæªæ¥å¨è"},services:{point1:"å¦ä¹ å¦ä½å®å
¨ä½¿ç¨é¶è¡ãçµåé±å
䏿±æ¬¾å·¥å
·",point2:"建ç«ä¸éèæºææäº¤éçä¿¡å¿",point3:"å¨ä½¿ç¨éèäº§åæ¶ååºææºå³ç",shortTitle:"æå¡",title:"åç¨éèæå¡"}},modulesNote:"è¯¾ç¨æ¨¡å坿 ¹æ®æ¨çåå·¥éæ±çµæ´»è°æ´",modulesSubtitle:"ç¹å»æ¨¡åï¼äºè§£åå·¥å°å¦å°çå
容",modulesTitle:"6 å¤§æ ¸å¿è´¢å¡æè²æ¨¡å",officialPartner:"宿¹åä½ä¼ä¼´",stats:{completions:"次课ç¨å®æ",savings:"个å¨èè´¦æ·å¼ç«",workshops:"å°æ¶å·¥ä½å"},title:"ç±ä¸çé¡¶å°æè²æºææé çå
容",trainersHighlight:"è¶å馿¹ä¹æ¯å¯ä¸è·å½é
å³å·¥ç»ç»è®¤è¯çè´¢å¡æè²è®²å¸"},ape={readMore:"é
读å
¨æ",subtitle:"äºè§£æä»¬çææ°åä½ä¸è¡ä¸æ´å¯",title:"ææ°å¨æ",viewAll:"æ¥çå
¨é¨æ°é»"},ope={announcement:Ofe,nav:Rfe,hero:Ife,logoMarquee:Mfe,content:$fe,stats:Dfe,whyCompanies:Lfe,mission:Ffe,howItWorks:Bfe,benefits:Vfe,pricing:qfe,security:Ufe,integrations:Wfe,rollout:zfe,testimonial:Hfe,cta:Kfe,footer
561:Gfe,clients:Yfe,awards:Xfe,media:Qfe,forBusiness:Zfe,forWorkers:Jfe,about:epe,careers:tpe,impactReport:npe,news:rpe,newsDetail:ipe,financialEducation:spe,newsPreview:ape};Ln.use(XZ).init({resources:{en:{translation:Ehe},vi:{translation:tfe},ko:{translation:Pfe},zh:{translation:ope}},lng:"en",fallbackLng:"en",interpolation:{escapeValue:!1}});const oe=(e,t,n,r)=>{const i=Ln.language;return i==="zh"&&r?r:i==="ko"&&n?n:i==="vi"&&t?t:e??""},lpe=({className:e})=>c.jsx("svg",{viewBox:"0 0 384 512",fill:"currentColor",className:e,children:c.jsx("path",{d:"M318.7 268.7c-.2-36.7 16.4-64.4 50-84.8-18.8-26.9-47.2-41.7-84.7-44.6-35.5-2.8-74.3 20.7-88.5 20.7-15 0-49.4-19.7-76.4-19.7C63.3 141.2 4 184.8 4 273.5q0 39.3 14.4 81.2c12.8 36.7 59 126.7 107.2 125.2 25.2-.6 43-17.9 75.8-17.9 31.8 0 48.3 17.9 76.4 17.9 48.6-.7 90.4-82.5 102.6-119.3-65.2-30.7-61.7-90-61.7-91.9zm-56.6-164.2c27.3-32.4 24.8-61.9 24-72.5-24.1 1.4-52 16.4-67.9 34.9-17.5 19.8-27.8 44.3-25.6 71.9 26.1 2 49.9-11.4 69.5-34.3z"})}),cpe=({className:e})=>c.jsx("svg",{viewBox:"0 0 512 512",fill:"currentColor",className:e,children:c.jsx("path",{d:"M325.3 234.3L104.6 13l280.8 161.2-60.1 60.1zM47 0C34 6.8 25.3 19.2 25.3 35.3v441.3c0 16.1 8.7 28.5 21.7 35.3l256.6-256L47 0zm425.2 225.6l-58.9-34.1-65.7 64.5 65.7 64.5 60.1-34.1c18-14.3 18-46.5-1.2-60.8zM104.6 499l280.8-161.2-60.1-60.1L104.6 499z"})}),pn=()=>{const{t:e,i18n:t}=St(),n=Ar(),r=s=>a=>{a.preventDefault(),n(s),window.scrollTo({top:0,behavior:"instant"})},i={solutions:{title:oe("Solutions","Giải pháp","ì루ì
","è§£å³æ¹æ¡"),links:[{label:oe("For Business","Cho doanh nghiá»p","기ì
ì©","ä¼ä¸æ¹æ¡"),href:"/for-business"},{label:oe("For Employees","Cho nhân viên","ì§ìì©","åå·¥æ¹æ¡"),href:"/for-workers"},{label:oe("Impact Report","Báo cáo tác Äá»ng","ìí©í¸ 리í¬í¸","å½±å忥å"),href:"/impact-report"}]},company:{title:oe("Company","Công ty","íì¬","å
¬å¸"),links:[{label:oe("About Us","Vá» chúng tôi","íì¬ ìê°","å
³äºæä»¬"),href:"/about"},{label:oe("News","Tin tức","ë´ì¤","æ°é»"),href:"/news"},{label:oe("Careers","Tuyá»n dụng","ì±ì©","å å
¥æä»¬"),href:"/careers"},{label:oe("Terms of Service","ChÃnh sách sá» dụng","ì´ì©ì½ê´","æå¡æ¡æ¬¾"),href:"/chinh-sach-su-dung"}]}};return c.jsx("footer",{className:"bg-beyond-blue px-6 py-12 md:px-12 lg:px-16",children:c.jsxs("div",{className:"max-w-7xl mx-auto",children:[c.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 lg:grid-cols-5 gap-8 lg:gap-12",children:[c.jsxs("div",{className:"col-span-2 md:col-span-4 lg:col-span-2",children:[c.jsx("a",{href:"/",onClick:r("/"),className:"inline-block mb-4",children:c.jsx("img",{src:ho,alt:"ekko",className:"h-7 w-auto brightness-0 invert"})}),c.jsx("p",{className:"text-white/60 text-sm leading-relaxed mb-5 max-w-xs",children:e("footer.tagline")}),c.jsxs("div",{className:"flex gap-2 mb-4",children:[c.jsxs("a",{href:"https://apps.apple.com/us/app/ekko/id1599997767",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2 bg-white/10 hover:bg-white/20 rounded-lg px-3 py-2 transition-colors",children:[c.jsx(lpe,{className:"w-4 h-4 text-white"}),c.jsx("span",{className:"text-xs text-white font-medium",children:"App Store"})]}),c.jsxs("a",{href:"https://play.google.com/store/apps/details?id=com.ewaapp&hl=en",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2 bg-white/10 hover:bg-white/20 rounded-lg px-3 py-2 transition-colors",children:[c.jsx(cpe,{className:"w-4 h-4 text-white"}),c.jsx("span",{className:"text-xs text-white font-medium",children:"Google Play"})]})]})]}),Object.values(i).map((s,a)=>c.jsxs("div",{children:[c.jsx("h4",{className:"text-white font-semibold text-sm mb-3",children:s.title}),c.jsx("ul",{className:"space-y-2",children:s.links.map((o,l)=>c.jsx("li",{children:c.jsx("a",{href:o.href,onClick:r(o.href),className:"text-white/60 hover:text-accent text-sm transition-colors",children:o.label})},l))})]},a)),c.jsxs("div",{children:[c.jsx("h4",{className:"text-white font-semibold text-sm mb-3",children:oe("Contact","Liên há»","문ì","èç³»æä»¬")}),c.jsxs("ul",{className:"space-y-2 text-sm",children:[c.jsx("li",{children:c.jsx("a",{href:"mailto:[email protected]",className:"text-white/60 hover:text-accent transition-colors",children:"[email protected]"})}),c.jsx("li",{children:c.jsx("a",{href:"tel:02899999582",className:"text-white/60 hover:text-accent transition-colors",children:"028 99999 582"})}),c.jsx("li",{className:"text-white/60 text-sm leading-relaxed pt-1",children:e("cta.address")})]})]})]}),c.jsx("div",{className:"border-t border-white/10 mt-10 pt-6",children:c.jsxs("div",{className:"flex flex-col sm:flex-row justify-between items-center gap-4 relative",children:[c.jsx("p",{className:"text-white/40 text-xs",children:e("footer.copyright")}),c.jsxs("a",{href:"https://malakai.vn",target:"_blank",rel:"noopener noreferrer",className:"flex flex-col items-center gap-1 sm:absolute sm:left-1/2 sm:-translate-x-1/2 group",children:[c.jsx("span",{className:"text-white/40 group-hover:text-white/70 text-xs transition-colors",children:oe("Website Powered by","Website ÄÆ°á»£c phát triá»n bá»i","ì¹ì¬ì´í¸ ì ê³µ","ç½ç«ææ¯æ¯æ")}),c.jsx("img",{src:Xde,alt:"MalakAI",className:"h-4 w-auto brightness-0 invert opacity-60 group-hover:opacity-100 transition-opacity"})]}),c.jsxs("div",{className:"flex items-center gap-4",children:[c.jsxs("div",{className:"flex gap-2",children:[c.jsx("a",{href:"https://www.linkedin.com/company/100569069",target:"_blank",rel:"noopener noreferrer",className:"w-8 h-8 rounded-full bg-white/10 hover:bg-white/20 flex items-center justify-center transition-colors",children:c.jsx(_K,{className:"w-4 h-4 text-white"})}),c.jsx("a",{href:"https://www.facebook.com/ekkoewa",target:"_blank",rel:"noopener noreferrer",className:"w-8 h-8 rounded-full bg-white/10 hover:bg-white/20 flex items-center justify-center transition-colors",children:c.jsx(bK,{className:"w-4 h-4 text-white"})})]}
561),c.jsx("a",{href:"/admin/login",onClick:r("/admin/login"),className:"text-white/40 hover:text-accent text-xs transition-colors",children:"Admin"})]})]})})]})})},upe=()=>c.jsxs("div",{className:"min-h-screen bg-background",children:[c.jsx(hr,{title:"Ekko â Earned Wage Access for Vietnamese Workforces",description:"Ekko helps companies in Vietnam offer earned wage access, financial literacy, and HR digital tools that reduce turnover and improve worker financial health.",path:"/"}),c.jsx(fn,{isOverlay:!0}),c.jsxs("main",{children:[c.jsx(Dte,{}),c.jsx(eB,{}),c.jsx(Qoe,{}),c.jsx(ule,{}),c.jsx(aoe,{}),c.jsx(Yoe,{}),c.jsx(Woe,{}),c.jsx(WB,{}),c.jsx(Hde,{})]}),c.jsx(pn,{})]}),zt=w.forwardRef(({className:e,type:t,...n},r)=>c.jsx("input",{type:t,className:ye("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:r,...n}));zt.displayName="Input";const dpe="/assets/hero-factory-workers-new-2-cU-GPjzL.jpg",hpe="/assets/app-phones-mockup-1zdwQBpX.png",fpe="/assets/itc-ilo-logo-QvRyU-ct.png",ppe=()=>{const{t:e}=St(),[t,n]=w.useState(0),r=[{number:1,icon:M4,title:e("financialEducation.modules.goals.title","Setting Financial Goals"),shortTitle:e("financialEducation.modules.goals.shortTitle","Goals"),points:[e("financialEducation.modules.goals.point1","Learn how to set short- and long-term financial goals"),e("financialEducation.modules.goals.point2","Build confidence in communicating about money"),e("financialEducation.modules.goals.point3","Make a plan and track progress over time")],color:"from-blue-500 to-blue-600"},{number:2,icon:af,title:e("financialEducation.modules.budgeting.title","Managing Money Day-to-Day"),shortTitle:e("financialEducation.modules.budgeting.shortTitle","Budgeting"),points:[e("financialEducation.modules.budgeting.point1","Learn to budget and spend wisely"),e("financialEducation.modules.budgeting.point2","Track expenses and keep financial records"),e("financialEducation.modules.budgeting.point3","Build smart money habits for everyday life")],color:"from-emerald-500 to-emerald-600"},{number:3,icon:ex,title:e("financialEducation.modules.savings.title","Saving for the Future"),shortTitle:e("financialEducation.modules.savings.shortTitle","Savings"),points:[e("financialEducation.modules.savings.point1","Understand different saving methods and products"),e("financialEducation.modules.savings.point2","Choose the right saving option for your goals"),e("financialEducation.modules.savings.point3","Build a habit of regular saving")],color:"from-amber-500 to-amber-600"},{number:4,icon:P4,title:e("financialEducation.modules.borrowing.title","Borrowing Responsibly"),shortTitle:e("financialEducation.modules.borrowing.shortTitle","Borrowing"),points:[e("financialEducation.modules.borrowing.point1","Compare credit options and understand the true cost of borrowing"),e("financialEducation.modules.borrowing.point2","Learn how to choose safe loan products"),e("financialEducation.modules.borrowing.point3","Avoid debt traps and over-indebtedness")],color:"from-rose-500 to-rose-600"},{number:5,icon:Lc,title:e("financialEducation.modules.services.title","Using Financial Services"),shortTitle:e("financialEducation.modules.services.shortTitle","Services"),points:[e("financialEducation.modules.services.point1","Understand how to use banks, e-wallets, and money transfer tools safely"),e("financialEducation.modules.services.point2","Build confidence in dealing with financial institutions"),e("financialEducation.modules.services.point3","Make informed choices when using financial products")],color:"from-violet-500 to-violet-600"},{number:6,icon:sf,title:e("financialEducation.modules.protection.title","Protecting Your Finances"),shortTitle:e("financialEducation.modules.protection.shortTitle","Protection"),points:[e("financialEducation.modules.protection.point1","Learn how to manage risks and avoid financial fraud"),e("financialEducation.modules.protection.point2","Understand how insurance works and when to use it")],color:"from-cyan-500 to-cyan-600"}];return c.jsx("section",{className:"bg-background px-6 py-24 md:px-12 lg:px-16 overflow-hidden",children:c.jsxs("div",{className:"max-w-7xl mx-auto",children:[c.jsx(U.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"mb-16",children:c.jsxs("div",{className:"grid lg:grid-cols-5 ga
561p-12 items-center",children:[c.jsxs("div",{className:"lg:col-span-3",children:[c.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[c.jsx("div",{className:"w-10 h-10 rounded-xl bg-primary flex items-center justify-center",children:c.jsx(rf,{className:"w-5 h-5 text-primary-foreground"})}),c.jsx("span",{className:"text-primary font-semibold",children:e("financialEducation.badge","Financial Education Programme")})]}),c.jsx("h2",{className:"text-3xl md:text-4xl lg:text-5xl font-bold text-foreground mb-6",children:e("financialEducation.title","Content Built on Best Educators in the World")}),c.jsxs("p",{className:"text-muted-foreground leading-relaxed text-lg mb-4",children:[e("financialEducation.description1","Our Financial Education Programme is built on the")," ",c.jsx("span",{className:"font-semibold text-foreground",children:e("financialEducation.iloMethodology","International Labour Organization's globally recognized methodology")}),e("financialEducation.description1Suffix",", carefully adapted to Vietnam's context.")]}),c.jsxs("p",{className:"text-muted-foreground leading-relaxed text-lg mb-6",children:[e("financialEducation.description2","Our trainers are the")," ",c.jsx("span",{className:"font-semibold text-primary",children:e("financialEducation.trainersHighlight","first and only ILO-certified financial educators in Vietnam")}),e("financialEducation.description2Suffix",", empowering workers with the knowledge and skills to take control of their finances.")]}),c.jsxs("div",{className:"flex items-center gap-8 md:gap-10",children:[c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx("span",{className:"text-2xl md:text-3xl font-bold text-primary",children:"220+"}),c.jsx("span",{className:"text-xs md:text-sm text-muted-foreground",children:e("financialEducation.stats.workshops","hours of workshops")})]}),c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx("span",{className:"text-2xl md:text-3xl font-bold text-primary",children:"30,000+"}),c.jsx("span",{className:"text-xs md:text-sm text-muted-foreground",children:e("financialEducation.stats.completions","course completions")})]}),c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx("span",{className:"text-2xl md:text-3xl font-bold text-primary",children:"2,500+"}),c.jsx("span",{className:"text-xs md:text-sm text-muted-foreground",children:e("financialEducation.stats.savings","savings accounts opened")})]})]})]}),c.jsx("div",{className:"lg:col-span-2",children:c.jsxs(U.div,{initial:{opacity:0,scale:.95},whileInView:{opacity:1,scale:1},viewport:{once:!0},className:"bg-gradient-to-br from-primary/10 via-primary/5 to-accent/10 rounded-3xl p-8 border border-primary/20 relative overflow-hidden text-center",children:[c.jsx("div",{className:"absolute top-0 right-0 w-40 h-40 bg-primary/10 rounded-full blur-3xl"}),c.jsx("div",{className:"absolute bottom-0 left-0 w-32 h-32 bg-accent/20 rounded-full blur-2xl"}),c.jsxs("div",{className:"relative z-10",children:[c.jsx("span",{className:"inline-block px-4 py-1.5 bg-primary/10 text-primary text-xs font-semibold rounded-full mb-6 tracking-wide",children:e("financialEducation.officialPartner","Official Partner")}),c.jsx("div",{className:"flex justify-center mb-4",children:c.jsx("img",{src:fpe,alt:"International Training Centre of the ILO",className:"h-16 md:h-20 object-contain",loading:"lazy",decoding:"async"})}),c.jsx("p",{className:"text-xs text-muted-foreground mt-4 leading-relaxed",children:e("financialEducation.itcIlo","International Training Centre of the ILO")})]})]})})]})}),c.jsx("div",{className:"border-t border-border my-16"}),c.jsxs(U.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},children:[c.jsx("h3",{className:"text-2xl md:text-3xl font-bold text-foreground mb-2",children:e("financialEducation.modulesTitle","6 Core Financial Education Modules")}),c.jsx("p",{className:"text-muted-foreground mb-8",children:e("financialEducation.modulesSubtitle","Click on a module to explore what your employees will learn")}),c.jsxs("div",{className:"grid lg:grid-cols-12 gap-6",children:[c.jsx("div",{className:"lg:col-span-4 space-y-2",children:r.map((i,s)=>c.jsxs(U.button,{onClick:()=>n(s),className:`w-full text-left p-4 rounded-xl transition-all duration-300 flex items-center gap-4 group ${t===s?"bg-primary text-primary-foreground shadow-lg":"bg-muted hover:bg-muted/80"}`,whileHover:{x:t===s?0:4},whileTap:{scale:.98},children:[c.jsx("div",{className:`w-10 h-10 rounded-lg flex items-center justify-center flex-shrink-0 ${t===s?"bg-white/20":"bg-primary/10"}`,children:c.jsx(i.icon,{className:`w-5 h-5 ${t===s?"text-white":"text-primary"}`})}),c.jsxs("div",{className:"flex-1 min-w-0",children:[c.jsxs("div",{className:`text-xs font-medium mb-0.5 ${t===s?"text-white/70":"text-muted-foreground"}`,children:[e("financialEducation.module","Module")," ",i.number]}),c.jsx("div",{className:"font-semibold truncate",children:i.title})]}),c.jsx(Fs,{className:`w-5 h-5 flex-shrink-0 transition-transform ${t===s?"text-white rotate-90":"text-muted-foreground"}`})]},s))}),c.jsx("div",{className:"lg:col-span-8",children:c.jsx(Ka,{mode:"wait",children:c.jsxs(U.div,{initial:{opacity:0,x:20}
561,animate:{opacity:1,x:0},exit:{opacity:0,x:-20},transition:{duration:.3},className:"bg-gradient-to-br from-primary to-primary/80 rounded-3xl p-8 md:p-10 text-white min-h-[320px] relative overflow-hidden",children:[c.jsx("div",{className:"absolute top-0 right-0 w-64 h-64 bg-white/5 rounded-full blur-3xl"}),c.jsx("div",{className:"absolute bottom-0 left-0 w-48 h-48 bg-white/5 rounded-full blur-2xl"}),c.jsxs("div",{className:"relative z-10",children:[c.jsxs("div",{className:"flex items-center gap-4 mb-6",children:[c.jsx("div",{className:"w-14 h-14 rounded-2xl bg-white/20 flex items-center justify-center",children:(()=>{const i=r[t].icon;return c.jsx(i,{className:"w-7 h-7 text-white"})})()}),c.jsxs("div",{children:[c.jsxs("span",{className:"text-white/60 text-sm font-medium",children:[e("financialEducation.module","Module")," ",r[t].number]}),c.jsx("h4",{className:"text-2xl font-bold",children:r[t].title})]})]}),c.jsx("div",{className:"space-y-4",children:r[t].points.map((i,s)=>c.jsxs(U.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{delay:s*.1},className:"flex items-start gap-3",children:[c.jsx("div",{className:"w-6 h-6 rounded-full bg-accent flex items-center justify-center flex-shrink-0 mt-0.5",children:c.jsx(Np,{className:"w-4 h-4 text-accent-foreground"})}),c.jsx("p",{className:"text-white/90 leading-relaxed",children:i})]},s))})]})]},t)})})]}),c.jsx("p",{className:"text-center text-sm text-muted-foreground mt-8 italic",children:e("financialEducation.modulesNote","Modules can be structured differently depending on your workforce needs")})]})]})})};var Je;(function(e){e.assertEqual=i=>{};function t(i){}e.assertIs=t;function n(i){throw new Error}e.assertNever=n,e.arrayToEnum=i=>{const s={};for(const a of i)s[a]=a;return s},e.getValidEnumValues=i=>{const s=e.objectKeys(i).filter(o=>typeof i[i[o]]!="number"),a={};for(const o of s)a[o]=i[o];return e.objectValues(a)},e.objectValues=i=>e.objectKeys(i).map(function(s){return i[s]}),e.objectKeys=typeof Object.keys=="function"?i=>Object.keys(i):i=>{const s=[];for(const a in i)Object.prototype.hasOwnProperty.call(i,a)&&s.push(a);return s},e.find=(i,s)=>{for(const a of i)if(s(a))return a},e.isInteger=typeof Number.isInteger=="function"?i=>Number.isInteger(i):i=>typeof i=="number"&&Number.isFinite(i)&&Math.floor(i)===i;function r(i,s=" | "){return i.map(a=>typeof a=="string"?`'${a}'`:a).join(s)}e.joinValues=r,e.jsonStringifyReplacer=(i,s)=>typeof s=="bigint"?s.toString():s})(Je||(Je={}));var cO;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(cO||(cO={}));const me=Je.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),ga=e=>{switch(typeof e){case"undefined":return me.undefined;case"string":return me.string;case"number":return Number.isNaN(e)?me.nan:me.number;case"boolean":return me.boolean;case"function":return me.function;case"bigint":return me.bigint;case"symbol":return me.symbol;case"object":return Array.isArray(e)?me.array:e===null?me.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?me.promise:typeof Map<"u"&&e instanceof Map?me.map:typeof Set<"u"&&e instanceof Set?me.set:typeof Date<"u"&&e instanceof Date?me.date:me.object;default:return me.unknown}}
vendor: 4,379 bytes, line 561
561,ee=Je.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class Us extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=r=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=t}format(t){const n=t||function(s){return s.message},r={_errors:[]},i=s=>{for(const a of s.issues)if(a.code==="invalid_union")a.unionErrors.map(i);else if(a.code==="invalid_return_type")i(a.returnTypeError);else if(a.code==="invalid_arguments")i(a.argumentsError);else if(a.path.length===0)r._errors.push(n(a));else{let o=r,l=0;for(;l<a.path.length;){const u=a.path[l];l===a.path.length-1?(o[u]=o[u]||{_errors:[]},o[u]._errors.push(n(a))):o[u]=o[u]||{_errors:[]},o=o[u],l++}}};return i(this),r}static assert(t){if(!(t instanceof Us))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,Je.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=n=>n.message){const n={},r=[];for(const i of this.issues)if(i.path.length>0){const s=i.path[0];n[s]=n[s]||[],n[s].push(t(i))}else r.push(t(i));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}}Us.create=e=>new Us(e);const Xk=(e,t)=>{let n;switch(e.code){case ee.invalid_type:e.received===me.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case ee.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,Je.jsonStringifyReplacer)}`;break;case ee.unrecognized_keys:n=`Unrecognized key(s) in object: ${Je.joinValues(e.keys,", ")}`;break;case ee.invalid_union:n="Invalid input";break;case ee.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${Je.joinValues(e.options)}`;break;case ee.invalid_enum_value:n=`Invalid enum value. Expected ${Je.joinValues(e.options)}, received '${e.received}'`;break;case ee.invalid_arguments:n="Invalid function arguments";break;case ee.invalid_return_type:n="Invalid function return type";break;case ee.invalid_date:n="Invalid date";break;case ee.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:Je.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case ee.too_small:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="bigint"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:n="Invalid input";break;case ee.too_big:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?n=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:n="Invalid input";break;case ee.custom:n="Invalid input";break;
vendor: 5,147 bytes, line 561
561case ee.invalid_intersection_types:n="Intersection results could not be merged";break;case ee.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case ee.not_finite:n="Number must be finite";break;default:n=t.defaultError,Je.assertNever(e)}return{message:n}};let mpe=Xk;function gpe(){return mpe}const ype=e=>{const{data:t,path:n,errorMaps:r,issueData:i}=e,s=[...n,...i.path||[]],a={...i,path:s};if(i.message!==void 0)return{...i,path:s,message:i.message};let o="";const l=r.filter(u=>!!u).slice().reverse();for(const u of l)o=u(a,{data:t,defaultError:o}).message;return{...i,path:s,message:o}};function se(e,t){const n=gpe(),r=ype({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===Xk?void 0:Xk].filter(i=>!!i)});e.common.issues.push(r)}class Tr{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,n){const r=[];for(const i of n){if(i.status==="aborted")return Oe;i.status==="dirty"&&t.dirty(),r.push(i.value)}return{status:t.value,value:r}}static async mergeObjectAsync(t,n){const r=[];for(const i of n){const s=await i.key,a=await i.value;r.push({key:s,value:a})}return Tr.mergeObjectSync(t,r)}static mergeObjectSync(t,n){const r={};for(const i of n){const{key:s,value:a}=i;if(s.status==="aborted"||a.status==="aborted")return Oe;s.status==="dirty"&&t.dirty(),a.status==="dirty"&&t.dirty(),s.value!=="__proto__"&&(typeof a.value<"u"||i.alwaysSet)&&(r[s.value]=a.value)}return{status:t.value,value:r}}}const Oe=Object.freeze({status:"aborted"}),uh=e=>({status:"dirty",value:e}),ei=e=>({status:"valid",value:e}),uO=e=>e.status==="aborted",dO=e=>e.status==="dirty",bu=e=>e.status==="valid",Oy=e=>typeof Promise<"u"&&e instanceof Promise;var ge;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(ge||(ge={}));class io{constructor(t,n,r,i){this._cachedPath=[],this.parent=t,this.data=n,this._path=r,this._key=i}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const hO=(e,t)=>{if(bu(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const n=new Us(e.common.issues);return this._error=n,this._error}}};function Ve(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:r,description:i}=e;if(t&&(n||r))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:i}:{errorMap:(a,o)=>{const{message:l}=e;return a.code==="invalid_enum_value"?{message:l??o.defaultError}:typeof o.data>"u"?{message:l??r??o.defaultError}:a.code!=="invalid_type"?{message:o.defaultError}:{message:l??n??o.defaultError}},description:i}}class Qe{get description(){return this._def.description}_getType(t){return ga(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:ga(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new Tr,ctx:{common:t.parent.common,data:t.data,parsedType:ga(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const n=this._parse(t);if(Oy(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(t){const n=this._parse(t);return Promise.resolve(n)}parse(t,n){const r=this.safeParse(t,n);if(r.success)return r.data;throw r.error}safeParse(t,n){const r={common:{issues:[],async:(n==null?void 0:n.async)??!1,contextualErrorMap:n==null?void 0:n.errorMap},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:ga(t)},i=this._parseSync({data:t,path:r.path,parent:r});return hO(r,i)}"~validate"(t){var r,i;const n={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:ga(t)};if(!this["~standard"].async)try{const s=this._parseSync({data:t,path:[],parent:n});return bu(s)?{value:s.value}:{issues:n.common.issues}}catch(s){(i=(r=s==null?void 0:s.message)==null?void 0:r.toLowerCase())!=null&&i.includes("encountered")&&(this["~standard"].async=!0),n.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:n}).then(s=>bu(s)?{value:s.value}:{issues:n.common.issues})}async parseAsync(t,n){const r=await this.safeParseAsync(t,n);if(r.success)return r.data;throw r.error}async safeParseAsync(t,n){const r={common:{issues:[],contextualErrorMap:n==null?void 0:n.errorMap,async:!0},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:ga(t)},i=this._parse({data:t,path:r.path,parent:r}),s=await(Oy(i)?i:Promise.resolve(i));return hO(r,s)}refine(t,n){const r=i=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(i):n;return this._refinement((i,s)=>{const a=t(i),o=()=>s.addIssue({code:ee.custom,...r(i)});
vendor: 6,114 bytes, line 561
561return typeof Promise<"u"&&a instanceof Promise?a.then(l=>l?!0:(o(),!1)):a?!0:(o(),!1)})}refinement(t,n){return this._refinement((r,i)=>t(r)?!0:(i.addIssue(typeof n=="function"?n(r,i):n),!1))}_refinement(t){return new ku({schema:this,typeName:Re.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:n=>this["~validate"](n)}}optional(){return Ga.create(this,this._def)}nullable(){return Su.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return ts.create(this)}promise(){return $y.create(this,this._def)}or(t){return Iy.create([this,t],this._def)}and(t){return My.create(this,t,this._def)}transform(t){return new ku({...Ve(this._def),schema:this,typeName:Re.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const n=typeof t=="function"?t:()=>t;return new Zk({...Ve(this._def),innerType:this,defaultValue:n,typeName:Re.ZodDefault})}brand(){return new Bpe({typeName:Re.ZodBranded,type:this,...Ve(this._def)})}catch(t){const n=typeof t=="function"?t:()=>t;return new Jk({...Ve(this._def),innerType:this,catchValue:n,typeName:Re.ZodCatch})}describe(t){const n=this.constructor;return new n({...this._def,description:t})}pipe(t){return nT.create(this,t)}readonly(){return eS.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const vpe=/^c[^\s-]{8,}$/i,xpe=/^[0-9a-z]+$/,bpe=/^[0-9A-HJKMNP-TV-Z]{26}$/i,wpe=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,kpe=/^[a-z0-9_-]{21}$/i,Spe=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,jpe=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,_pe=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,Epe="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let rw;const Tpe=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Npe=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,Cpe=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,Ape=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Ppe=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,Ope=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,zB="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",Rpe=new RegExp(`^${zB}$`);function HB(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`);const n=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${n}`}function Ipe(e){return new RegExp(`^${HB(e)}$`)}function Mpe(e){let t=`${zB}T${HB(e)}`;const n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,new RegExp(`^${t}$`)}function $pe(e,t){return!!((t==="v4"||!t)&&Tpe.test(e)||(t==="v6"||!t)&&Cpe.test(e))}function Dpe(e,t){if(!Spe.test(e))return!1;try{const[n]=e.split(".");if(!n)return!1;const r=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),i=JSON.parse(atob(r));return!(typeof i!="object"||i===null||"typ"in i&&(i==null?void 0:i.typ)!=="JWT"||!i.alg||t&&i.alg!==t)}catch{return!1}}function Lpe(e,t){return!!((t==="v4"||!t)&&Npe.test(e)||(t==="v6"||!t)&&Ape.test(e))}class Ma extends Qe{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==me.string){const s=this._getOrReturnCtx(t);
vendor: 17,372 bytes, line 561
561return se(s,{code:ee.invalid_type,expected:me.string,received:s.parsedType}),Oe}const r=new Tr;let i;for(const s of this._def.checks)if(s.kind==="min")t.data.length<s.value&&(i=this._getOrReturnCtx(t,i),se(i,{code:ee.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),r.dirty());else if(s.kind==="max")t.data.length>s.value&&(i=this._getOrReturnCtx(t,i),se(i,{code:ee.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),r.dirty());else if(s.kind==="length"){const a=t.data.length>s.value,o=t.data.length<s.value;(a||o)&&(i=this._getOrReturnCtx(t,i),a?se(i,{code:ee.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}):o&&se(i,{code:ee.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}),r.dirty())}else if(s.kind==="email")_pe.test(t.data)||(i=this._getOrReturnCtx(t,i),se(i,{validation:"email",code:ee.invalid_string,message:s.message}),r.dirty());else if(s.kind==="emoji")rw||(rw=new RegExp(Epe,"u")),rw.test(t.data)||(i=this._getOrReturnCtx(t,i),se(i,{validation:"emoji",code:ee.invalid_string,message:s.message}),r.dirty());else if(s.kind==="uuid")wpe.test(t.data)||(i=this._getOrReturnCtx(t,i),se(i,{validation:"uuid",code:ee.invalid_string,message:s.message}),r.dirty());else if(s.kind==="nanoid")kpe.test(t.data)||(i=this._getOrReturnCtx(t,i),se(i,{validation:"nanoid",code:ee.invalid_string,message:s.message}),r.dirty());else if(s.kind==="cuid")vpe.test(t.data)||(i=this._getOrReturnCtx(t,i),se(i,{validation:"cuid",code:ee.invalid_string,message:s.message}),r.dirty());else if(s.kind==="cuid2")xpe.test(t.data)||(i=this._getOrReturnCtx(t,i),se(i,{validation:"cuid2",code:ee.invalid_string,message:s.message}),r.dirty());else if(s.kind==="ulid")bpe.test(t.data)||(i=this._getOrReturnCtx(t,i),se(i,{validation:"ulid",code:ee.invalid_string,message:s.message}),r.dirty());else if(s.kind==="url")try{new URL(t.data)}catch{i=this._getOrReturnCtx(t,i),se(i,{validation:"url",code:ee.invalid_string,message:s.message}),r.dirty()}else s.kind==="regex"?(s.regex.lastIndex=0,s.regex.test(t.data)||(i=this._getOrReturnCtx(t,i),se(i,{validation:"regex",code:ee.invalid_string,message:s.message}),r.dirty())):s.kind==="trim"?t.data=t.data.trim():s.kind==="includes"?t.data.includes(s.value,s.position)||(i=this._getOrReturnCtx(t,i),se(i,{code:ee.invalid_string,validation:{includes:s.value,position:s.position},message:s.message}),r.dirty()):s.kind==="toLowerCase"?t.data=t.data.toLowerCase():s.kind==="toUpperCase"?t.data=t.data.toUpperCase():s.kind==="startsWith"?t.data.startsWith(s.value)||(i=this._getOrReturnCtx(t,i),se(i,{code:ee.invalid_string,validation:{startsWith:s.value},message:s.message}),r.dirty()):s.kind==="endsWith"?t.data.endsWith(s.value)||(i=this._getOrReturnCtx(t,i),se(i,{code:ee.invalid_string,validation:{endsWith:s.value},message:s.message}),r.dirty()):s.kind==="datetime"?Mpe(s).test(t.data)||(i=this._getOrReturnCtx(t,i),se(i,{code:ee.invalid_string,validation:"datetime",message:s.message}),r.dirty()):s.kind==="date"?Rpe.test(t.data)||(i=this._getOrReturnCtx(t,i),se(i,{code:ee.invalid_string,validation:"date",message:s.message}),r.dirty()):s.kind==="time"?Ipe(s).test(t.data)||(i=this._getOrReturnCtx(t,i),se(i,{code:ee.invalid_string,validation:"time",message:s.message}),r.dirty()):s.kind==="duration"?jpe.test(t.data)||(i=this._getOrReturnCtx(t,i),se(i,{validation:"duration",code:ee.invalid_string,message:s.message}),r.dirty()):s.kind==="ip"?$pe(t.data,s.version)||(i=this._getOrReturnCtx(t,i),se(i,{validation:"ip",code:ee.invalid_string,message:s.message}),r.dirty()):s.kind==="jwt"?Dpe(t.data,s.alg)||(i=this._getOrReturnCtx(t,i),se(i,{validation:"jwt",code:ee.invalid_string,message:s.message}),r.dirty()):s.kind==="cidr"?Lpe(t.data,s.version)||(i=this._getOrReturnCtx(t,i),se(i,{validation:"cidr",code:ee.invalid_string,message:s.message}),r.dirty()):s.kind==="base64"?Ppe.test(t.data)||(i=this._getOrReturnCtx(t,i),se(i,{validation:"base64",code:ee.invalid_string,message:s.message}),r.dirty()):s.kind==="base64url"?Ope.test(t.data)||(i=this._getOrReturnCtx(t,i),se(i,{validation:"base64url",code:ee.invalid_string,message:s.message}),r.dirty()):Je.assertNever(s);return{status:r.value,value:t.data}}_regex(t,n,r){return this.refinement(i=>t.test(i),{validation:n,code:ee.invalid_string,...ge.errToObj(r)})}_addCheck(t){return new Ma({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...ge.errToObj(t)})}url(t){return this._addCheck({kind:"url",...ge.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...ge.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...ge.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...ge.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...ge.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...ge.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...ge.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...ge.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...ge.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...ge.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...ge.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...ge.errToObj(t)})}datetime(t){return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,offset:(t==null?void 0:t.offset)??!1,local:(t==null?void 0:t.local)??!1,...ge.errToObj(t==null?void 0:t.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,...ge.errToObj(t==null?void 0:t.message)})}duration(t){return this._addCheck({kind:"duration",...ge.errToObj(t)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...ge.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n==null?void 0:n.position,...ge.errToObj(n==null?void 0:n.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...ge.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...ge.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...ge.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...ge.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...ge.errToObj(n)})}nonempty(t){return this.min(1,ge.errToObj(t))}trim(){return new Ma({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Ma({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Ma({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isCIDR(){return!!this._def.checks.find(t=>t.kind==="cidr")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get isBase64url(){return!!this._def.checks.find(t=>t.kind==="base64url")}get minLength(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxLength(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}Ma.create=e=>new Ma({checks:[],typeName:Re.ZodString,coerce:(e==null?void 0:e.coerce)??!1,...Ve(e)});function Fpe(e,t){const n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,i=n>r?n:r,s=Number.parseInt(e.toFixed(i).replace(".","")),a=Number.parseInt(t.toFixed(i).replace(".",""));return s%a/10**i}class Af extends Qe{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==me.number){const s=this._getOrReturnCtx(t);return se(s,{code:ee.invalid_type,expected:me.number,received:s.parsedType}),Oe}let r;const i=new Tr;for(const s of this._def.checks)s.kind==="int"?Je.isInteger(t.data)||(r=this._getOrReturnCtx(t,r),se(r,{code:ee.invalid_type,expected:"integer",received:"float",message:s.message}),i.dirty()):s.kind==="min"?(s.inclusive?t.data<s.value:t.data<=s.value)&&(r=this._getOrReturnCtx(t,r),se(r,{code:ee.too_small,minimum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),i.dirty()):s.kind==="max"?(s.inclusive?t.data>s.value:t.data>=s.value)&&(r=this._getOrReturnCtx(t,r),se(r,{code:ee.too_big,maximum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),i.dirty()):s.kind==="multipleOf"?Fpe(t.data,s.value)!==0&&(r=this._getOrReturnCtx(t,r),se(r,{code:ee.not_multiple_of,multipleOf:s.value,message:s.message}),i.dirty()):s.kind==="finite"?Number.isFinite(t.data)||(r=this._getOrReturnCtx(t,r),se(r,{code:ee.not_finite,message:s.message}),i.dirty()):Je.assertNever(s);return{status:i.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,ge.toString(n))}gt(t,n){return this.setLimit("min",t,!1,ge.toString(n))}lte(t,n){return this.setLimit("max",t,!0,ge.toString(n))}lt(t,n){return this.setLimit("max",t,!1,ge.toString(n))}setLimit(t,n,r,i){return new Af({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:ge.toString(i)}]})}_addCheck(t){return new Af({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:ge.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:ge.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:ge.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:ge.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:ge.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:ge.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:ge.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:ge.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:ge.toString(t)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&Je.isInteger(t.value))}get isFinite(){let t=null,n=null;for(const r of this._def.checks){if(r.kind==="finite"||r.kind==="int"||r.kind==="multipleOf")return!0;r.kind==="min"?(n===null||r.value>n)&&(n=r.value):r.kind==="max"&&(t===null||r.value<t)&&(t=r.value)}return Number.isFinite(n)&&Number.isFinite(t)}}Af.create=e=>new Af({checks:[],typeName:Re.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...Ve(e)});class Pf extends Qe{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch{return this._getInvalidInput(t)}if(this._getType(t)!==me.bigint)return this._getInvalidInput(t);let r;const i=new Tr;for(const s of this._def.checks)s.kind==="min"?(s.inclusive?t.data<s.value:t.data<=s.value)&&(r=this._getOrReturnCtx(t,r),se(r,{code:ee.too_small,type:"bigint",minimum:s.value,inclusive:s.inclusive,message:s.message}),i.dirty()):s.kind==="max"?(s.inclusive?t.data>s.value:t.data>=s.value)&&(r=this._getOrReturnCtx(t,r),se(r,{code:ee.too_big,type:"bigint",maximum:s.value,inclusive:s.inclusive,message:s.message}),i.dirty()):s.kind==="multipleOf"?t.data%s.value!==BigInt(0)&&(r=this._getOrReturnCtx(t,r),se(r,{code:ee.not_multiple_of,multipleOf:s.value,message:s.message}),i.dirty()):Je.assertNever(s);return{status:i.value,value:t.data}}_getInvalidInput(t){const n=this._getOrReturnCtx(t);return se(n,{code:ee.invalid_type,expected:me.bigint,received:n.parsedType}),Oe}gte(t,n){return this.setLimit("min",t,!0,ge.toString(n))}gt(t,n){return this.setLimit("min",t,!1,ge.toString(n))}lte(t,n){return this.setLimit("max",t,!0,ge.toString(n))}lt(t,n){return this.setLimit("max",t,!1,ge.toString(n))}setLimit(t,n,r,i){return new Pf({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:ge.toString(i)}]})}_addCheck(t){return new Pf({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:ge.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:ge.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:ge.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:ge.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:ge.toString(n)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}Pf.create=e=>new Pf({checks:[],typeName:Re.ZodBigInt,coerce:(e==null?void 0:e.coerce)??!1,...Ve(e)});class fO extends Qe{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==me.boolean){const r=this._getOrReturnCtx(t);return se(r,{code:ee.invalid_type,expected:me.boolean,received:r.parsedType}),Oe}return ei(t.data)}}fO.create=e=>new fO({typeName:Re.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...Ve(e)});class Ry extends Qe{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==me.date){const s=this._getOrReturnCtx(t);return se(s,{code:ee.invalid_type,expected:me.date,received:s.parsedType}),Oe}if(Number.isNaN(t.data.getTime())){const s=this._getOrReturnCtx(t);return se(s,{code:ee.invalid_date}),Oe}const r=new Tr;let i;for(const s of this._def.checks)s.kind==="min"?t.data.getTime()<s.value&&(i=this._getOrReturnCtx(t,i),se(i,{code:ee.too_small,message:s.message,inclusive:!0,exact:!1,minimum:s.value,type:"date"}),r.dirty()):s.kind==="max"?t.data.getTime()>s.value&&(i=this._getOrReturnCtx(t,i),se(i,{code:ee.too_big,message:s.message,inclusive:!0,exact:!1,maximum:s.value,type:"date"}),r.dirty()):Je.assertNever(s);return{status:r.value,value:new Date(t.data.getTime())}}_addCheck(t){return new Ry({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:ge.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:ge.toString(n)})}get minDate(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t!=null?new Date(t):null}}Ry.create=e=>new Ry({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:Re.ZodDate,...Ve(e)});class pO extends Qe{_parse(t){if(this._getType(t)!==me.symbol){const r=this._getOrReturnCtx(t);return se(r,{code:ee.invalid_type,expected:me.symbol,received:r.parsedType}),Oe}return ei(t.data)}}pO.create=e=>new pO({typeName:Re.ZodSymbol,...Ve(e)});class mO extends Qe{_parse(t){if(this._getType(t)!==me.undefined){const r=this._getOrReturnCtx(t);return se(r,{code:ee.invalid_type,expected:me.undefined,received:r.parsedType}),Oe}return ei(t.data)}}mO.create=e=>new mO({typeName:Re.ZodUndefined,...Ve(e)});class gO extends Qe{_parse(t){if(this._getType(t)!==me.null){const r=this._getOrReturnCtx(t);return se(r,{code:ee.invalid_type,expected:me.null,received:r.parsedType}),Oe}return ei(t.data)}}gO.create=e=>new gO({typeName:Re.ZodNull,...Ve(e)});class yO extends Qe{constructor(){super(...arguments),this._any=!0}_parse(t){return ei(t.data)}}yO.create=e=>new yO({typeName:Re.ZodAny,...Ve(e)});class vO extends Qe{constructor(){super(...arguments),this._unknown=!0}_parse(t){return ei(t.data)}}vO.create=e=>new vO({typeName:Re.ZodUnknown,...Ve(e)});class so extends Qe{_parse(t){const n=this._getOrReturnCtx(t);return se(n,{code:ee.invalid_type,expected:me.never,received:n.parsedType}),Oe}}so.create=e=>new so({typeName:Re.ZodNever,...Ve(e)});class xO extends Qe{_parse(t){if(this._getType(t)!==me.undefined){const r=this._getOrReturnCtx(t);return se(r,{code:ee.invalid_type,expected:me.void,received:r.parsedType}),Oe}return ei(t.data)}}xO.create=e=>new xO({typeName:Re.ZodVoid,...Ve(e)});class ts extends Qe{_parse(t){const{ctx:n,status:r}=this._processInputParams(t),i=this._def;
vendor: 4,851 bytes, line 561
561if(n.parsedType!==me.array)return se(n,{code:ee.invalid_type,expected:me.array,received:n.parsedType}),Oe;if(i.exactLength!==null){const a=n.data.length>i.exactLength.value,o=n.data.length<i.exactLength.value;(a||o)&&(se(n,{code:a?ee.too_big:ee.too_small,minimum:o?i.exactLength.value:void 0,maximum:a?i.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:i.exactLength.message}),r.dirty())}if(i.minLength!==null&&n.data.length<i.minLength.value&&(se(n,{code:ee.too_small,minimum:i.minLength.value,type:"array",inclusive:!0,exact:!1,message:i.minLength.message}),r.dirty()),i.maxLength!==null&&n.data.length>i.maxLength.value&&(se(n,{code:ee.too_big,maximum:i.maxLength.value,type:"array",inclusive:!0,exact:!1,message:i.maxLength.message}),r.dirty()),n.common.async)return Promise.all([...n.data].map((a,o)=>i.type._parseAsync(new io(n,a,n.path,o)))).then(a=>Tr.mergeArray(r,a));const s=[...n.data].map((a,o)=>i.type._parseSync(new io(n,a,n.path,o)));return Tr.mergeArray(r,s)}get element(){return this._def.type}min(t,n){return new ts({...this._def,minLength:{value:t,message:ge.toString(n)}})}max(t,n){return new ts({...this._def,maxLength:{value:t,message:ge.toString(n)}})}length(t,n){return new ts({...this._def,exactLength:{value:t,message:ge.toString(n)}})}nonempty(t){return this.min(1,t)}}ts.create=(e,t)=>new ts({type:e,minLength:null,maxLength:null,exactLength:null,typeName:Re.ZodArray,...Ve(t)});function ac(e){if(e instanceof Dt){const t={};for(const n in e.shape){const r=e.shape[n];t[n]=Ga.create(ac(r))}return new Dt({...e._def,shape:()=>t})}else return e instanceof ts?new ts({...e._def,type:ac(e.element)}):e instanceof Ga?Ga.create(ac(e.unwrap())):e instanceof Su?Su.create(ac(e.unwrap())):e instanceof jl?jl.create(e.items.map(t=>ac(t))):e}class Dt extends Qe{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),n=Je.objectKeys(t);return this._cached={shape:t,keys:n},this._cached}_parse(t){if(this._getType(t)!==me.object){const u=this._getOrReturnCtx(t);return se(u,{code:ee.invalid_type,expected:me.object,received:u.parsedType}),Oe}const{status:r,ctx:i}=this._processInputParams(t),{shape:s,keys:a}=this._getCached(),o=[];if(!(this._def.catchall instanceof so&&this._def.unknownKeys==="strip"))for(const u in i.data)a.includes(u)||o.push(u);const l=[];for(const u of a){const d=s[u],h=i.data[u];l.push({key:{status:"valid",value:u},value:d._parse(new io(i,h,i.path,u)),alwaysSet:u in i.data})}if(this._def.catchall instanceof so){const u=this._def.unknownKeys;if(u==="passthrough")for(const d of o)l.push({key:{status:"valid",value:d},value:{status:"valid",value:i.data[d]}});else if(u==="strict")o.length>0&&(se(i,{code:ee.unrecognized_keys,keys:o}),r.dirty());else if(u!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const u=this._def.catchall;for(const d of o){const h=i.data[d];l.push({key:{status:"valid",value:d},value:u._parse(new io(i,h,i.path,d)),alwaysSet:d in i.data})}}return i.common.async?Promise.resolve().then(async()=>{const u=[];for(const d of l){const h=await d.key,f=await d.value;u.push({key:h,value:f,alwaysSet:d.alwaysSet})}return u}).then(u=>Tr.mergeObjectSync(r,u)):Tr.mergeObjectSync(r,l)}get shape(){return this._def.shape()}strict(t){return ge.errToObj,new Dt({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,r)=>{var s,a;const i=((a=(s=this._def).errorMap)==null?void 0:a.call(s,n,r).message)??r.defaultError;return n.code==="unrecognized_keys"?{message:ge.errToObj(t).message??i}:{message:i}}}:{}})}strip(){return new Dt({...this._def,unknownKeys:"strip"})}passthrough(){return new Dt({...this._def,unknownKeys:"passthrough"})}extend(t){return new Dt({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new Dt({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:Re.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new Dt({...this._def,catchall:t})}pick(t){const n={};for(const r of Je.objectKeys(t))t[r]&&this.shape[r]&&(n[r]=this.shape[r]);return new Dt({...this._def,shape:()=>n})}omit(t){const n={};for(const r of Je.objectKeys(this.shape))t[r]||(n[r]=this.shape[r]);return new Dt({...this._def,shape:()=>n})}deepPartial(){return ac(this)}partial(t){const n={};for(const r of Je.objectKeys(this.shape)){const i=this.shape[r];t&&!t[r]?n[r]=i:n[r]=i.optional()}return new Dt({...this._def,shape:()=>n})}required(t){const n={};for(const r of Je.objectKeys(this.shape))if(t&&!t[r])n[r]=this.shape[r];else{let s=this.shape[r];for(;s instanceof Ga;)s=s._def.innerType;n[r]=s}return new Dt({...this._def,shape:()=>n})}keyof(){return KB(Je.objectKeys(this.shape))}}Dt.create=(e,t)=>
vendor: 4,602 bytes, line 561
561new Dt({shape:()=>e,unknownKeys:"strip",catchall:so.create(),typeName:Re.ZodObject,...Ve(t)});Dt.strictCreate=(e,t)=>new Dt({shape:()=>e,unknownKeys:"strict",catchall:so.create(),typeName:Re.ZodObject,...Ve(t)});Dt.lazycreate=(e,t)=>new Dt({shape:e,unknownKeys:"strip",catchall:so.create(),typeName:Re.ZodObject,...Ve(t)});class Iy extends Qe{_parse(t){const{ctx:n}=this._processInputParams(t),r=this._def.options;function i(s){for(const o of s)if(o.result.status==="valid")return o.result;for(const o of s)if(o.result.status==="dirty")return n.common.issues.push(...o.ctx.common.issues),o.result;const a=s.map(o=>new Us(o.ctx.common.issues));return se(n,{code:ee.invalid_union,unionErrors:a}),Oe}if(n.common.async)return Promise.all(r.map(async s=>{const a={...n,common:{...n.common,issues:[]},parent:null};return{result:await s._parseAsync({data:n.data,path:n.path,parent:a}),ctx:a}})).then(i);{let s;const a=[];for(const l of r){const u={...n,common:{...n.common,issues:[]},parent:null},d=l._parseSync({data:n.data,path:n.path,parent:u});if(d.status==="valid")return d;d.status==="dirty"&&!s&&(s={result:d,ctx:u}),u.common.issues.length&&a.push(u.common.issues)}if(s)return n.common.issues.push(...s.ctx.common.issues),s.result;const o=a.map(l=>new Us(l));return se(n,{code:ee.invalid_union,unionErrors:o}),Oe}}get options(){return this._def.options}}Iy.create=(e,t)=>new Iy({options:e,typeName:Re.ZodUnion,...Ve(t)});function Qk(e,t){const n=ga(e),r=ga(t);if(e===t)return{valid:!0,data:e};if(n===me.object&&r===me.object){const i=Je.objectKeys(t),s=Je.objectKeys(e).filter(o=>i.indexOf(o)!==-1),a={...e,...t};for(const o of s){const l=Qk(e[o],t[o]);if(!l.valid)return{valid:!1};a[o]=l.data}return{valid:!0,data:a}}else if(n===me.array&&r===me.array){if(e.length!==t.length)return{valid:!1};const i=[];for(let s=0;s<e.length;s++){const a=e[s],o=t[s],l=Qk(a,o);if(!l.valid)return{valid:!1};i.push(l.data)}return{valid:!0,data:i}}else return n===me.date&&r===me.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class My extends Qe{_parse(t){const{status:n,ctx:r}=this._processInputParams(t),i=(s,a)=>{if(uO(s)||uO(a))return Oe;const o=Qk(s.value,a.value);return o.valid?((dO(s)||dO(a))&&n.dirty(),{status:n.value,value:o.data}):(se(r,{code:ee.invalid_intersection_types}),Oe)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([s,a])=>i(s,a)):i(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}My.create=(e,t,n)=>new My({left:e,right:t,typeName:Re.ZodIntersection,...Ve(n)});class jl extends Qe{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==me.array)return se(r,{code:ee.invalid_type,expected:me.array,received:r.parsedType}),Oe;if(r.data.length<this._def.items.length)return se(r,{code:ee.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),Oe;!this._def.rest&&r.data.length>this._def.items.length&&(se(r,{code:ee.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const s=[...r.data].map((a,o)=>{const l=this._def.items[o]||this._def.rest;return l?l._parse(new io(r,a,r.path,o)):null}).filter(a=>!!a);return r.common.async?Promise.all(s).then(a=>Tr.mergeArray(n,a)):Tr.mergeArray(n,s)}get items(){return this._def.items}rest(t){return new jl({...this._def,rest:t})}}jl.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new jl({items:e,typeName:Re.ZodTuple,rest:null,...Ve(t)})};class bO extends Qe{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==me.map)return se(r,{code:ee.invalid_type,expected:me.map,received:r.parsedType}),Oe;const i=this._def.keyType,s=this._def.valueType,a=[...r.data.entries()].map(([o,l],u)=>({key:i._parse(new io(r,o,r.path,[u,"key"])),value:s._parse(new io(r,l,r.path,[u,"value"]))}));if(r.common.async){const o=new Map;return Promise.resolve().then(async()=>{for(const l of a){const u=await l.key,d=await l.value;if(u.status==="aborted"||d.status==="aborted")return Oe;(u.status==="dirty"||d.status==="dirty")&&n.dirty(),o.set(u.value,d.value)}return{status:n.value,value:o}})}else{const o=new Map;for(const l of a){const u=l.key,d=l.value;if(u.status==="aborted"||d.status==="aborted")return Oe;(u.status==="dirty"||d.status==="dirty")&&n.dirty(),o.set(u.value,d.value)}return{status:n.value,value:o}}}}
vendor: 5,833 bytes, line 561
561bO.create=(e,t,n)=>new bO({valueType:t,keyType:e,typeName:Re.ZodMap,...Ve(n)});class Of extends Qe{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==me.set)return se(r,{code:ee.invalid_type,expected:me.set,received:r.parsedType}),Oe;const i=this._def;i.minSize!==null&&r.data.size<i.minSize.value&&(se(r,{code:ee.too_small,minimum:i.minSize.value,type:"set",inclusive:!0,exact:!1,message:i.minSize.message}),n.dirty()),i.maxSize!==null&&r.data.size>i.maxSize.value&&(se(r,{code:ee.too_big,maximum:i.maxSize.value,type:"set",inclusive:!0,exact:!1,message:i.maxSize.message}),n.dirty());const s=this._def.valueType;function a(l){const u=new Set;for(const d of l){if(d.status==="aborted")return Oe;d.status==="dirty"&&n.dirty(),u.add(d.value)}return{status:n.value,value:u}}const o=[...r.data.values()].map((l,u)=>s._parse(new io(r,l,r.path,u)));return r.common.async?Promise.all(o).then(l=>a(l)):a(o)}min(t,n){return new Of({...this._def,minSize:{value:t,message:ge.toString(n)}})}max(t,n){return new Of({...this._def,maxSize:{value:t,message:ge.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}}Of.create=(e,t)=>new Of({valueType:e,minSize:null,maxSize:null,typeName:Re.ZodSet,...Ve(t)});class wO extends Qe{get schema(){return this._def.getter()}_parse(t){const{ctx:n}=this._processInputParams(t);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}}wO.create=(e,t)=>new wO({getter:e,typeName:Re.ZodLazy,...Ve(t)});class kO extends Qe{_parse(t){if(t.data!==this._def.value){const n=this._getOrReturnCtx(t);return se(n,{received:n.data,code:ee.invalid_literal,expected:this._def.value}),Oe}return{status:"valid",value:t.data}}get value(){return this._def.value}}kO.create=(e,t)=>new kO({value:e,typeName:Re.ZodLiteral,...Ve(t)});function KB(e,t){return new wu({values:e,typeName:Re.ZodEnum,...Ve(t)})}class wu extends Qe{_parse(t){if(typeof t.data!="string"){const n=this._getOrReturnCtx(t),r=this._def.values;return se(n,{expected:Je.joinValues(r),received:n.parsedType,code:ee.invalid_type}),Oe}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(t.data)){const n=this._getOrReturnCtx(t),r=this._def.values;return se(n,{received:n.data,code:ee.invalid_enum_value,options:r}),Oe}return ei(t.data)}get options(){return this._def.values}get enum(){const t={};for(const n of this._def.values)t[n]=n;return t}get Values(){const t={};for(const n of this._def.values)t[n]=n;return t}get Enum(){const t={};for(const n of this._def.values)t[n]=n;return t}extract(t,n=this._def){return wu.create(t,{...this._def,...n})}exclude(t,n=this._def){return wu.create(this.options.filter(r=>!t.includes(r)),{...this._def,...n})}}wu.create=KB;class SO extends Qe{_parse(t){const n=Je.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(t);if(r.parsedType!==me.string&&r.parsedType!==me.number){const i=Je.objectValues(n);return se(r,{expected:Je.joinValues(i),received:r.parsedType,code:ee.invalid_type}),Oe}if(this._cache||(this._cache=new Set(Je.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){const i=Je.objectValues(n);return se(r,{received:r.data,code:ee.invalid_enum_value,options:i}),Oe}return ei(t.data)}get enum(){return this._def.values}}SO.create=(e,t)=>new SO({values:e,typeName:Re.ZodNativeEnum,...Ve(t)});class $y extends Qe{unwrap(){return this._def.type}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==me.promise&&n.common.async===!1)return se(n,{code:ee.invalid_type,expected:me.promise,received:n.parsedType}),Oe;const r=n.parsedType===me.promise?n.data:Promise.resolve(n.data);return ei(r.then(i=>this._def.type.parseAsync(i,{path:n.path,errorMap:n.common.contextualErrorMap})))}}$y.create=(e,t)=>new $y({type:e,typeName:Re.ZodPromise,...Ve(t)});class ku extends Qe{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Re.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:n,ctx:r}=this._processInputParams(t),i=this._def.effect||null,s={addIssue:a=>{se(r,a),a.fatal?n.abort():n.dirty()},get path(){return r.path}};if(s.addIssue=s.addIssue.bind(s),i.type==="preprocess"){const a=i.transform(r.data,s);if(r.common.async)return Promise.resolve(a).then(async o=>{if(n.value==="aborted")return Oe;const l=await this._def.schema._parseAsync({data:o,path:r.path,parent:r});return l.status==="aborted"?Oe:l.status==="dirty"||n.value==="dirty"?uh(l.value):l});{if(n.value==="aborted")return Oe;const o=this._def.schema._parseSync({data:a,path:r.path,parent:r});return o.status==="aborted"?Oe:o.status==="dirty"||n.value==="dirty"?uh(o.value):o}}if(i.type==="refinement"){const a=o=>{const l=i.refinement(o,s);if(r.common.async)return Promise.resolve(l);if(l instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return o};if(r.common.async===!1){const o=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return o.status==="aborted"?Oe:(o.status==="dirty"&&n.dirty(),a(o.value),{status:n.value,value:o.value})}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(o=>o.status==="aborted"?Oe:(o.status==="dirty"&&n.dirty(),a(o.value).then(()=>({status:n.value,value:o.value}))))}if(i.type==="transform")if(r.common.async===!1){const a=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!bu(a))return Oe;const o=i.transform(a.value,s);if(o instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:o}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(a=>bu(a)?Promise.resolve(i.transform(a.value,s)).then(o=>({status:n.value,value:o})):Oe);Je.assertNever(i)}}
561ku.create=(e,t,n)=>new ku({schema:e,typeName:Re.ZodEffects,effect:t,...Ve(n)});ku.createWithPreprocess=(e,t,n)=>new ku({schema:t,effect:{type:"preprocess",transform:e},typeName:Re.ZodEffects,...Ve(n)});class Ga extends Qe{_parse(t){return this._getType(t)===me.undefined?ei(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Ga.create=(e,t)=>new Ga({innerType:e,typeName:Re.ZodOptional,...Ve(t)});class Su extends Qe{_parse(t){return this._getType(t)===me.null?ei(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Su.create=(e,t)=>new Su({innerType:e,typeName:Re.ZodNullable,...Ve(t)});class Zk extends Qe{_parse(t){const{ctx:n}=this._processInputParams(t);let r=n.data;return n.parsedType===me.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}Zk.create=(e,t)=>new Zk({innerType:e,typeName:Re.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...Ve(t)});class Jk extends Qe{_parse(t){const{ctx:n}=this._processInputParams(t),r={...n,common:{...n.common,issues:[]}},i=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return Oy(i)?i.then(s=>({status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new Us(r.common.issues)},input:r.data})})):{status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new Us(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}Jk.create=(e,t)=>new Jk({innerType:e,typeName:Re.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...Ve(t)});class jO extends Qe{_parse(t){if(this._getType(t)!==me.nan){const r=this._getOrReturnCtx(t);return se(r,{code:ee.invalid_type,expected:me.nan,received:r.parsedType}),Oe}return{status:"valid",value:t.data}}}jO.create=e=>new jO({typeName:Re.ZodNaN,...Ve(e)});class Bpe extends Qe{_parse(t){const{ctx:n}=this._processInputParams(t),r=n.data;return this._def.type._parse({data:r,path:n.path,parent:n})}unwrap(){return this._def.type}}class nT extends Qe{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.common.async)return(async()=>{const s=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return s.status==="aborted"?Oe:s.status==="dirty"?(n.dirty(),uh(s.value)):this._def.out._parseAsync({data:s.value,path:r.path,parent:r})})();{const i=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return i.status==="aborted"?Oe:i.status==="dirty"?(n.dirty(),{status:"dirty",value:i.value}):this._def.out._parseSync({data:i.value,path:r.path,parent:r})}}static create(t,n){return new nT({in:t,out:n,typeName:Re.ZodPipeline})}}class eS extends Qe{_parse(t){const n=this._def.innerType._parse(t),r=i=>(bu(i)&&(i.value=Object.freeze(i.value)),i);return Oy(n)?n.then(i=>r(i)):r(n)}unwrap(){return this._def.innerType}}eS.create=(e,t)=>new eS({innerType:e,typeName:Re.ZodReadonly,...Ve(t)});Dt.lazycreate;var Re;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(Re||(Re={}));const Vm=Ma.create;so.create;ts.create;const Vpe=Dt.create;Dt.strictCreate;Iy.create;My.create;jl.create;wu.create;$y.create;Ga.create;Su.create;const qpe=Vpe({fullName:Vm().trim().min(1,"Vui lòng nháºp há» và tên").max(100),phone:Vm().trim().min(1,"Vui lòng nháºp sá» Äiá»n thoại").max(20),jobTitle:Vm().trim().min(1,"Vui lòng nháºp chức vụ").max(100),companyName:Vm().trim().min(1,"Vui lòng nháºp tên công ty").max(200)}),Upe=()=>{const{t:e,i18n:t}=St(),{toast:n}=ls(),[r,i]=w.useState(0),[s,a]=w.useState({fullName:"",phone:"",jobTitle:"",companyName:""}),[o,l]=w.useState(!1),[u,d]=w.useState(!1),h=y=>{const{name:v,value:x}=y.target;a(b=>({...b,[v]:x}))},f=async y=>{y.preventDefault();const v=qpe.safeParse(s);if(!v.success){n({title:oe("Error","Lá»i","ì¤ë¥","é误"),description:v.error.errors[0].message,variant:"destructive"});return}l(!0);try{const{error:x}=await ne.from("business_inquiries").insert({full_name:s.fullName.trim(),phone:s.phone.trim(),job_title:s.jobTitle.trim(),company_name:s.companyName.trim()});if(x)throw x;d(!0),n({title:oe("Success!","Thà nh công!","ì±ê³µ!","æäº¤æå!"),description:oe("We will contact you as soon as possible.","Chúng tôi sẽ liên há» vá»i bạn trong thá»i gian sá»m nhất.","ìµëí ë¹ ë¥¸ ìì¼ ë´ì ì°ë½ëë¦¬ê² ìµëë¤.","æä»¬ä¼å°½å¿«ä¸æ¨èç³»ã")})}catch{n({title:oe("Error","Lá»i","ì¤ë¥","é误"),description:oe("Something went wrong. Please try again.","Có lá»i xảy ra. Vui lòng thá» lại.","문ì ê° ë°ìíìµëë¤. ë¤ì ìëí´ì£¼ì¸ì.","åºäºç¹å°é®é¢,请åè¯ä¸æ¬¡ã"),variant:"destructive"})}finally{l(!1)}},p=[{icon:sf,title:e("forBusiness.valueProps.privacy.title"),description:e("forBusiness.valueProps.privacy.description")},{icon:M_,title:e("forBusiness.valueProps.deployment.title"),description:e("forBusiness.valueProps.deployment.description")},{icon:O4,title:e("forBusiness.valueProps.security.title"),description:e("forBusiness.valueProps.security.description")}],g=[{icon:kK,number:e("forBusiness.deploy.steps.step1.number"),title:e("forBusiness.deploy.steps.step1.title"),description:e("forBusiness.deploy.steps.step1.description")},{icon:Za,number:e("forBusiness.deploy.steps.step2.number"),title:e("forBusiness.deploy.steps.step2.title"),description:e("forBusiness.deploy.steps.step2.description")},{icon:TK,number:e("forBusiness.deploy.steps.step3.number"),title:e("forBusiness.deploy.steps.step3.title"),description:e("forBusiness.deploy.steps.step3.description")},{icon:I4,number:e("forBusiness.deploy.steps.step4.number"),title:e("forBusiness.deploy.steps.step4.title"),description:e("forBusiness.deploy.steps.step4.description")}],m=[{question:e("forBusiness.faq.items.q1.question"),answer:e("forBusiness.faq.items.q1.answer")},{question:e("forBusiness.faq.items.q2.question"),answer:e("forBusiness.faq.items.q2.answer")},{question:e("forBusiness.faq.items.q3.question"),answer:e("forBusiness.faq.items.q3.answer")},{question:e("forBusiness.faq.items.q4.question"),answer:e("forBusiness.faq.items.q4.answer")},{question:e("forBusiness.faq.items.q5.question"),answer:e("forBusiness.faq.items.q5.answer")}];return c.jsxs("div",{className:"min-h-screen bg-background",children:[c.jsx(hr,{title:"For Business â Earned Wage Access for Companies | Ekko",description:"Offer earned wage access, financial literacy, and HR digital tools to your employees. Reduce turnover and improve productivity with Ekko's enterprise solution.",path:"/for-business",jsonLd:{"@context":"https://schema.org","@type":"FAQPage",mainEntity:m.map(y=>
561({"@type":"Question",name:y.question,acceptedAnswer:{"@type":"Answer",text:y.answer}}))}}),c.jsx(fn,{isOverlay:!0}),c.jsxs("main",{children:[c.jsxs("section",{className:"relative w-full h-[85vh] min-h-[600px]",children:[c.jsx("img",{src:dpe,alt:"Factory workers in manufacturing plant",className:"w-full h-full object-cover"}),c.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/60 via-black/20 to-transparent"}),c.jsx("div",{className:"absolute inset-0 flex items-end",children:c.jsx("div",{className:"max-w-7xl mx-auto w-full px-6 md:px-12 lg:px-16 pb-20",children:c.jsxs(U.div,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.6},className:"max-w-3xl",children:[c.jsx("h1",{className:"text-4xl md:text-5xl lg:text-6xl xl:text-7xl font-bold text-white leading-[1.1] mb-6",children:e("forBusiness.hero.title")}),c.jsx("p",{className:"text-white/80 text-lg md:text-xl max-w-xl leading-relaxed",children:e("forBusiness.hero.description")})]})})})]}),c.jsx("section",{className:"bg-secondary px-6 py-20 md:px-12 lg:px-16",children:c.jsxs("div",{className:"max-w-7xl mx-auto",children:[c.jsxs(U.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-12",children:[c.jsx("img",{src:"https://upload.wikimedia.org/wikipedia/commons/thumb/e/ed/Logo_of_UNICEF.svg/1200px-Logo_of_UNICEF.svg.png",alt:"UNICEF",className:"h-10 md:h-14 w-auto mx-auto mb-8"}),c.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-foreground mb-4",children:e("forBusiness.unicef.title")}),c.jsx("p",{className:"text-muted-foreground text-lg max-w-3xl mx-auto",children:e("forBusiness.unicef.subtitle")})]}),c.jsxs("div",{className:"grid md:grid-cols-2 gap-8",children:[c.jsxs(U.div,{initial:{opacity:0,x:-20},whileInView:{opacity:1,x:0},viewport:{once:!0},className:"bg-card rounded-3xl p-8 shadow-lg border border-border",children:[c.jsx("span",{className:"text-5xl font-bold text-primary/20",children:e("forBusiness.unicef.policy1.number")}),c.jsx("h3",{className:"text-xl font-bold text-foreground mt-4 mb-3",children:e("forBusiness.unicef.policy1.title")}),c.jsx("p",{className:"text-muted-foreground leading-relaxed",children:e("forBusiness.unicef.policy1.description")})]}),c.jsxs(U.div,{initial:{opacity:0,x:20},whileInView:{opacity:1,x:0},viewport:{once:!0},className:"bg-card rounded-3xl p-8 shadow-lg border border-border",children:[c.jsx("span",{className:"text-5xl font-bold text-primary/20",children:e("forBusiness.unicef.policy2.number")}),c.jsx("h3",{className:"text-xl font-bold text-foreground mt-4 mb-3",children:e("forBusiness.unicef.policy2.title")}),c.jsx("p",{className:"text-muted-foreground leading-relaxed",children:e("forBusiness.unicef.policy2.description")})]})]}),c.jsxs("div",{className:"text-center mt-8",children:[c.jsx("p",{className:"text-muted-foreground text-sm mb-4",children:e("forBusiness.unicef.pageHint","Scroll to page 39 to view Ekko's feature")}),c.jsx("a",{href:"https://www.unicef.org/childrightsandbusiness/media/1436/file/FFP-Full-Toolkit.pdf",target:"_blank",rel:"noopener noreferrer",children:c.jsxs(de,{variant:"outline",className:"border-primary text-primary hover:bg-primary hover:text-primary-foreground",children:[e("forBusiness.unicef.cta"),c.jsx(Fs,{className:"ml-2 h-4 w-4"})]})})]})]})}),c.jsx("section",{className:"bg-background px-6 py-20 md:px-12 lg:px-16",children:c.jsx("div",{className:"max-w-5xl mx-auto",children:c.jsx(U.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"rounded-3xl overflow-hidden shadow-2xl",children:c.jsxs("video",{className:"w-full aspect-video",autoPlay:!0,muted:!0,loop:!0,playsInline:!0,preload:"auto",children:[c.jsx("source",{src:"/videos/ekko-intro.mp4",type:"video/mp4"}),"Your browser does not support the video tag."]})})})}),c.jsx("section",{className:"bg-gradient-to-b from-background to-secondary/30 px-6 py-24 md:px-12 lg:px-16 overflow-hidden",children:c.jsxs("div",{className:"max-w-7xl mx-auto",children:[c.jsxs(U.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-16",children:[c.jsx("span",{className:"inline-block px-4 py-2 rounded-full bg-primary/10 text-primary text-sm font-semibold mb-4",children:e("howItWorks.appTitle")}),c.jsx("h2",{className:"text-3xl md:text-4xl lg:text-5xl font-bold text-foreground mb-4",children:e("forBusiness.app.title","Everything your employees need in one app")}),c.jsx("p",{className:"text-muted-foreground text-lg max-w-2xl mx-auto",children:e("forBusiness.app.subtitle","From instant wage access to financial education, empowering workers with tools that make a real difference.")})]}),c.jsxs("div",{className:"grid lg:grid-cols-12 gap-8 items-center mb-16",children:[c.jsxs(U.div,{initial:{opacity:0,x:-30},whileInView:{opacity:1,x:0},viewport:{once:!0},className:"lg:col-span-4 space-y-6",children:[c.jsxs("div",{className:"bg-card rounded-2xl p-6 border border-border hover:border-primary/30 hover:shadow-lg transition-all group",children:[c.jsx("div",{className:"w-12 h-12 rounded-xl bg-accent flex items-center justify-center mb-4 group-hover:scale-110 transition-transform",children:c.jsx(af,{className:"w-6 h-6 text-accent-foreground"})}),c.jsx("h3",{className:"text-lg font-bold text-foreground mb-2",children:e("howItWorks.appFeatures.ewa.title")}),c.jsx("p",{className:"text-muted-foreground text-sm leading-relaxed",children:e("howItWorks.appFeatures.ewa.description")})]}),c.jsxs("div",{className:"bg-card rounded-2xl p-6 border border-border hover:border-primary/30 hover:shadow-lg transition-all group",children:[c.jsx("div",{className:"w-12 h-12 rounded-xl bg-primary/10 flex items-center justify-center mb-4 group-hover:scale-110 transition-transform",children:c.jsx(rf,{className:"w-6 h-6 text-primary"})}),c.jsx("h3",{className:"text-lg font-bold text-foreground mb-2",children:e("howItWorks.appFeatures.education.title")}),c.jsx("p",{className:"text-muted-foreground text-sm leading-relaxed",children:e("howItWorks.appFeatures.education.description")})]})]}),c.jsx(U.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"lg:col-span-4 relative",children:c.jsxs("div",{className:"relative flex justify-center items-center",children:[c.jsx("div",{className:"absolute inset-0 bg-gradient-to-r from-primary/20 via-accent/20 to-primary/20 blur-3xl op
561acity-50"}),c.jsx(U.div,{animate:{y:[0,-10,0]},transition:{duration:4,repeat:1/0,ease:"easeInOut"},className:"relative z-20",children:c.jsx("img",{src:hpe,alt:"Ekko App Screens",className:"w-72 md:w-80 lg:w-96 drop-shadow-2xl"})})]})}),c.jsxs(U.div,{initial:{opacity:0,x:30},whileInView:{opacity:1,x:0},viewport:{once:!0},className:"lg:col-span-4 space-y-6",children:[c.jsxs("div",{className:"bg-card rounded-2xl p-6 border border-border hover:border-primary/30 hover:shadow-lg transition-all group",children:[c.jsx("div",{className:"w-12 h-12 rounded-xl bg-secondary flex items-center justify-center mb-4 group-hover:scale-110 transition-transform",children:c.jsx(ex,{className:"w-6 h-6 text-foreground"})}),c.jsx("h3",{className:"text-lg font-bold text-foreground mb-2",children:e("howItWorks.appFeatures.planning.title")}),c.jsx("p",{className:"text-muted-foreground text-sm leading-relaxed",children:e("howItWorks.appFeatures.planning.description")})]}),c.jsxs("div",{className:"bg-card rounded-2xl p-6 border border-border hover:border-primary/30 hover:shadow-lg transition-all group",children:[c.jsx("div",{className:"w-12 h-12 rounded-xl bg-primary flex items-center justify-center mb-4 group-hover:scale-110 transition-transform",children:c.jsx(Ol,{className:"w-6 h-6 text-primary-foreground"})}),c.jsx("h3",{className:"text-lg font-bold text-foreground mb-2",children:e("forBusiness.app.support.title","24/7 Support")}),c.jsx("p",{className:"text-muted-foreground text-sm leading-relaxed",children:e("forBusiness.app.support.description","Round-the-clock customer support in Vietnamese, ready to assist your employees anytime.")})]})]})]}),c.jsxs(U.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"grid grid-cols-3 gap-6",children:[c.jsxs("div",{className:"text-center p-6 rounded-2xl bg-primary/5",children:[c.jsx("span",{className:"text-3xl md:text-4xl font-bold text-primary",children:"15s"}),c.jsx("p",{className:"text-muted-foreground text-sm mt-2",children:e("forBusiness.app.stats.withdrawal","Average withdrawal time")})]}),c.jsxs("div",{className:"text-center p-6 rounded-2xl bg-secondary",children:[c.jsx("span",{className:"text-3xl md:text-4xl font-bold text-foreground",children:"24/7"}),c.jsx("p",{className:"text-muted-foreground text-sm mt-2",children:e("forBusiness.app.stats.availability","App availability")})]}),c.jsxs("div",{className:"text-center p-6 rounded-2xl bg-primary/5",children:[c.jsx("span",{className:"text-3xl md:text-4xl font-bold text-primary",children:"50+"}),c.jsx("p",{className:"text-muted-foreground text-sm mt-2",children:e("forBusiness.app.stats.courses","Financial courses")})]})]})]})}),c.jsx(ppe,{}),c.jsx("section",{className:"bg-secondary px-6 py-20 md:px-12 lg:px-16",children:c.jsxs("div",{className:"max-w-7xl mx-auto",children:[c.jsxs(U.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-12",children:[c.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-foreground mb-4",children:e("forBusiness.whyPartner.title","Why Partner With Us")}),c.jsx("p",{className:"text-muted-foreground max-w-2xl mx-auto",children:e("forBusiness.whyPartner.subtitle","We make implementation seamless while keeping your data secure")})]}),c.jsx("div",{className:"grid md:grid-cols-3 gap-8",children:p.map((y,v)=>c.jsxs(U.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:v*.1},className:"text-center",children:[c.jsx("div",{className:"w-16 h-16 rounded-2xl flex items-center justify-center mx-auto mb-5 bg-primary/10",children:c.jsx(y.icon,{className:"w-8 h-8 text-primary"})}),c.jsx("h3",{className:"text-lg font-bold mb-2 text-foreground",children:y.title}),c.jsx("p",{className:"text-sm leading-relaxed text-muted-foreground",children:y.description})]},v))})]})}),c.jsx("section",{className:"bg-primary px-6 py-20 md:px-12 lg:px-16",children:c.jsxs("div",{className:"max-w-7xl mx-auto",children:[c.jsxs(U.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-16",children:[c.jsx("span",{className:"text-accent text-sm font-medium tracking-widest",children:e("forBusiness.deploy.label")}),c.jsx("h2",{className:"text-3xl md:text-4xl lg:text-5xl font-bold text-primary-foreground mt-4 mb-4",children:e("forBusiness.deploy.title")}
561),c.jsx("p",{className:"text-primary-foreground/70 text-lg max-w-2xl mx-auto",children:e("forBusiness.deploy.description")})]}),c.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-4 gap-6",children:g.map((y,v)=>c.jsxs(U.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:v*.1},className:"bg-white/10 backdrop-blur-sm border border-white/20 rounded-3xl p-6 text-center hover:bg-white/15 transition-colors",children:[c.jsx("div",{className:"w-16 h-16 rounded-full bg-accent flex items-center justify-center mx-auto mb-4",children:c.jsx(y.icon,{className:"w-8 h-8 text-accent-foreground"})}),c.jsx("span",{className:"text-accent text-3xl font-bold",children:y.number}),c.jsx("h3",{className:"text-xl font-bold text-white mt-2 mb-3",children:y.title}),c.jsx("p",{className:"text-white/70 text-sm leading-relaxed",children:y.description})]},v))})]})}),c.jsx("section",{className:"bg-background px-6 py-20 md:px-12 lg:px-16",children:c.jsxs("div",{className:"max-w-3xl mx-auto",children:[c.jsx(U.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-12",children:c.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-foreground",children:e("forBusiness.faq.title")})}),c.jsx("div",{className:"space-y-4",children:m.map((y,v)=>c.jsxs(U.div,{initial:{opacity:0,y:10},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:v*.1},className:"border border-border rounded-2xl overflow-hidden",children:[c.jsxs("button",{onClick:()=>i(r===v?null:v),className:"w-full flex items-center justify-between p-6 text-left hover:bg-muted/50 transition-colors",children:[c.jsx("h3",{className:"font-semibold text-foreground pr-4",children:y.question}),r===v?c.jsx(CK,{className:"w-5 h-5 text-primary flex-shrink-0"}):c.jsx(tx,{className:"w-5 h-5 text-muted-foreground flex-shrink-0"})]}),c.jsx("div",{className:`grid transition-all duration-300 ${r===v?"grid-rows-[1fr]":"grid-rows-[0fr]"}`,children:c.jsx("div",{className:"overflow-hidden",children:c.jsx("p",{className:"px-6 pb-6 text-muted-foreground leading-relaxed",children:y.answer})})})]},v))})]})}),c.jsx("section",{className:"bg-accent px-6 py-20 md:px-12 lg:px-16",children:c.jsx("div",{className:"max-w-5xl mx-auto",children:c.jsxs(U.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"grid md:grid-cols-2 gap-12 items-center",children:[c.jsxs("div",{className:"text-center md:text-left",children:[c.jsx("h2",{className:"text-3xl md:text-4xl lg:text-5xl font-bold text-accent-foreground mb-6",children:e("cta.title")}),c.jsx("p",{className:"text-accent-foreground/80 text-lg max-w-xl",children:e("cta.description")})]}),c.jsx("div",{className:"bg-background/10 backdrop-blur-sm rounded-2xl p-8 border border-accent-foreground/10",children:u?c.jsxs("div",{className:"text-center py-8",children:[c.jsx(vK,{className:"w-16 h-16 text-primary mx-auto mb-4"}),c.jsx("h3",{className:"text-xl font-semibold text-accent-foreground mb-2",children:oe("Thank you!","Cảm Æ¡n bạn!","ê°ì¬í©ëë¤!","æè°¢æ¨çä¿¡ä»»!")}),c.jsx("p",{className:"text-accent-foreground/70",children:oe("We will contact you as soon as possible.","Chúng tôi sẽ liên há» vá»i bạn trong thá»i gian sá»m nhất.","ìµëí ë¹ ë¥¸ ìì¼ ë´ì ì°ë½ëë¦¬ê² ìµëë¤.","æä»¬ä¼å°½å¿«ä¸æ¨èç³»ã")})]}):c.jsxs("form",{onSubmit:f,className:"space-y-4",children:[c.jsx("div",{children:c.jsx(zt,{name:"fullName",placeholder:oe("Full name *","Há» và tên *","ì±í¨ *","å§å *"),value:s.fullName,onChange:h,className:"bg-background/80 border-accent-foreground/20 text-foreground placeholder:text-muted-foreground",required:!0})}),c.jsx("div",{children:c.jsx(zt,{name:"phone",type:"tel",placeholder:oe("Phone number *","Sá» Äiá»n thoại *","ì íë²í¸ *","èç³»çµè¯ *"),value:s.phone,onChange:h,className:"bg-background/80 border-accent-foreground/20 text-foreground placeholder:text-muted-foreground",required:!0})}),c.jsx("div",{children:c.jsx(zt,{name:"jobTitle",placeholder:oe("Job title *","Chức vụ *","ì§ì±
*","èå¡ *"),value:s.jobTitle,onChange:h,className:"bg-background/80 border-accent-foreground
561/20 text-foreground placeholder:text-muted-foreground",required:!0})}),c.jsx("div",{children:c.jsx(zt,{name:"companyName",placeholder:oe("Company name *","Tên công ty *","íì¬ëª
*","å
¬å¸åç§° *"),value:s.companyName,onChange:h,className:"bg-background/80 border-accent-foreground/20 text-foreground placeholder:text-muted-foreground",required:!0})}),c.jsxs(de,{type:"submit",size:"lg",className:"w-full bg-primary hover:bg-primary/90 text-primary-foreground",disabled:o,children:[o?oe("Sending...","Äang gá»i...","ì ì¡ ì¤...","æäº¤ä¸..."):oe("Submit","Gá»i thông tin","ì ì¶í기","æäº¤ä¿¡æ¯"),c.jsx(MK,{className:"ml-2 h-5 w-5"})]})]})})]})})})]}),c.jsx(pn,{})]})};var Rx="Collapsible",[Wpe,GB]=dr(Rx),[zpe,rT]=Wpe(Rx),YB=w.forwardRef((e,t)=>{const{__scopeCollapsible:n,open:r,defaultOpen:i,disabled:s,onOpenChange:a,...o}=e,[l,u]=Xr({prop:r,defaultProp:i??!1,onChange:a,caller:Rx});return c.jsx(zpe,{scope:n,disabled:s,contentId:jr(),open:l,onOpenToggle:w.useCallback(()=>u(d=>!d),[u]),children:c.jsx(we.div,{"data-state":sT(l),"data-disabled":s?"":void 0,...o,ref:t})})});YB.displayName=Rx;var XB="CollapsibleTrigger",QB=w.forwardRef((e,t)=>{const{__scopeCollapsible:n,...r}=e,i=rT(XB,n);return c.jsx(we.button,{type:"button","aria-controls":i.contentId,"aria-expanded":i.open||!1,"data-state":sT(i.open),"data-disabled":i.disabled?"":void 0,disabled:i.disabled,...r,ref:t,onClick:te(e.onClick,i.onOpenToggle)})});QB.displayName=XB;var iT="CollapsibleContent",ZB=w.forwardRef((e,t)=>{const{forceMount:n,...r}=e,i=rT(iT,e.__scopeCollapsible);return c.jsx(Jr,{present:n||i.open,children:({present:s})=>c.jsx(Hpe,{...r,ref:t,present:s})})});ZB.displayName=iT;var Hpe=w.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:r,children:i,...s}
vendor: 4,171 bytes, line 561
561=e,a=rT(iT,n),[o,l]=w.useState(r),u=w.useRef(null),d=qe(t,u),h=w.useRef(0),f=h.current,p=w.useRef(0),g=p.current,m=a.open||o,y=w.useRef(m),v=w.useRef(void 0);return w.useEffect(()=>{const x=requestAnimationFrame(()=>y.current=!1);return()=>cancelAnimationFrame(x)},[]),mn(()=>{const x=u.current;if(x){v.current=v.current||{transitionDuration:x.style.transitionDuration,animationName:x.style.animationName},x.style.transitionDuration="0s",x.style.animationName="none";const b=x.getBoundingClientRect();h.current=b.height,p.current=b.width,y.current||(x.style.transitionDuration=v.current.transitionDuration,x.style.animationName=v.current.animationName),l(r)}},[a.open,r]),c.jsx(we.div,{"data-state":sT(a.open),"data-disabled":a.disabled?"":void 0,id:a.contentId,hidden:!m,...s,ref:d,style:{"--radix-collapsible-content-height":f?`${f}px`:void 0,"--radix-collapsible-content-width":g?`${g}px`:void 0,...e.style},children:m&&i})});function sT(e){return e?"open":"closed"}var Kpe=YB,Gpe=QB,Ype=ZB,Mi="Accordion",Xpe=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[aT,Qpe,Zpe]=jp(Mi),[Ix,v6e]=dr(Mi,[Zpe,GB]),oT=GB(),JB=A.forwardRef((e,t)=>{const{type:n,...r}=e,i=r,s=r;return c.jsx(aT.Provider,{scope:e.__scopeAccordion,children:n==="multiple"?c.jsx(nme,{...s,ref:t}):c.jsx(tme,{...i,ref:t})})});JB.displayName=Mi;var[eV,Jpe]=Ix(Mi),[tV,eme]=Ix(Mi,{collapsible:!1}),tme=A.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:i=()=>{},collapsible:s=!1,...a}=e,[o,l]=Xr({prop:n,defaultProp:r??"",onChange:i,caller:Mi});return c.jsx(eV,{scope:e.__scopeAccordion,value:A.useMemo(()=>o?[o]:[],[o]),onItemOpen:l,onItemClose:A.useCallback(()=>s&&l(""),[s,l]),children:c.jsx(tV,{scope:e.__scopeAccordion,collapsible:s,children:c.jsx(nV,{...a,ref:t})})})}),nme=A.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:i=()=>{},...s}=e,[a,o]=Xr({prop:n,defaultProp:r??[],onChange:i,caller:Mi}),l=A.useCallback(d=>o((h=[])=>[...h,d]),[o]),u=A.useCallback(d=>o((h=[])=>h.filter(f=>f!==d)),[o]);return c.jsx(eV,{scope:e.__scopeAccordion,value:a,onItemOpen:l,onItemClose:u,children:c.jsx(tV,{scope:e.__scopeAccordion,collapsible:!0,children:c.jsx(nV,{...s,ref:t})})})}),[rme,Mx]=Ix(Mi),nV=A.forwardRef((e,t)=>{const{__scopeAccordion:n,disabled:r,dir:i,orientation:s="vertical",...a}=e,o=A.useRef(null),l=qe(o,t),u=Qpe(n),h=Op(i)==="ltr",f=te(e.onKeyDown,p=>{var E;if(!Xpe.includes(p.key))return;const g=p.target,m=u().filter(T=>{var N;return!((N=T.ref.current)!=null&&N.disabled)}),y=m.findIndex(T=>T.ref.current===g),v=m.length;if(y===-1)return;p.preventDefault();let x=y;const b=0,S=v-1,k=()=>{x=y+1,x>S&&(x=b)},j=()=>{x=y-1,x<b&&(x=S)};switch(p.key){case"Home":x=b;break;case"End":x=S;break;case"ArrowRight":s==="horizontal"&&(h?k():j());break;case"ArrowDown":s==="vertical"&&k();break;case"ArrowLeft":s==="horizontal"&&(h?j():k());break;case"ArrowUp":s==="vertical"&&j();break}const _=x%v;(E=m[_].ref.current)==null||E.focus()});return c.jsx(rme,{scope:n,disabled:r,direction:i,orientation:s,children:c.jsx(aT.Slot,{scope:n,children:c.jsx(we.div,{...a,"data-orientation":s,ref:l,onKeyDown:r?void 0:f})})})}),Dy="AccordionItem",[ime,lT]=Ix(Dy),rV=A.forwardRef((e,t)=>{const{__scopeAccordion:n,value:r,...i}=e,s=Mx(Dy,n),a=Jpe(Dy,n),o=oT(n),l=jr(),u=r&&a.value.includes(r)||!1,d=s.disabled||e.disabled;return c.jsx(ime,{scope:n,open:u,disabled:d,triggerId:l,children:c.jsx(Kpe,{"data-orientation":s.orientation,"data-state":cV(u),...o,...i,ref:t,disabled:d,open:u,onOpenChange:h=>{h?a.onItemOpen(r):a.onItemClose(r)}})})});rV.displayName=Dy;var iV="AccordionHeader",sV=A.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,i=Mx(Mi,n),s=lT(iV,n);return c.jsx(we.h3,{"data-orientation":i.orientation,"data-state":cV(s.open),"data-disabled":s.disabled?"":void 0,...r,ref:t})});sV.displayName=iV;var tS="AccordionTrigger",aV=A.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,i=Mx(Mi,n),s=lT(tS,n),a=eme(tS,n),o=oT(n);return c.jsx(aT.ItemSlot,{scope:n,children:c.jsx(Gpe,{"aria-disabled":s.open&&!a.collapsible||void 0,"data-orientation":i.orientation,id:s.triggerId,...o,...r,ref:t})})});aV.displayName=tS;var oV="AccordionContent",lV=A.forwardRef((e,t)=>
561{const{__scopeAccordion:n,...r}=e,i=Mx(Mi,n),s=lT(oV,n),a=oT(n);return c.jsx(Ype,{role:"region","aria-labelledby":s.triggerId,"data-orientation":i.orientation,...a,...r,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});lV.displayName=oV;function cV(e){return e?"open":"closed"}var sme=JB,ame=rV,ome=sV,uV=aV,dV=lV;const lme=sme,hV=w.forwardRef(({className:e,...t},n)=>c.jsx(ame,{ref:n,className:ye("border-b",e),...t}));hV.displayName="AccordionItem";const fV=w.forwardRef(({className:e,children:t,...n},r)=>c.jsx(ome,{className:"flex",children:c.jsxs(uV,{ref:r,className:ye("flex flex-1 items-center justify-between py-4 font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180",e),...n,children:[t,c.jsx(pu,{className:"h-4 w-4 shrink-0 transition-transform duration-200"})]})}));fV.displayName=uV.displayName;const pV=w.forwardRef(({className:e,children:t,...n},r)=>c.jsx(dV,{ref:r,className:"overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...n,children:c.jsx("div",{className:ye("pb-4 pt-0",e),children:t})}));pV.displayName=dV.displayName;const cme="/assets/mission-collage-Qpph1qHQ.jpg",ume="/assets/step-1-employer-BBCz-O96.png",dme="/assets/step-2-download-CAzKuY4Q.jpg",hme="/assets/step-3-using-CzePwOq6.jpg",fme="/assets/young-people-using-phones-DjJfx9qn.png",pme=()=>{const{t:e}=St(),t=[{step:"1",title:e("forWorkers.howItWorks.steps.step1.title","Your employer partners with Ekko"),description:e("forWorkers.howItWorks.steps.step1.description","Once the program is set up, you'll receive an announcement through your employer."),image:ume},{step:"2",title:e("forWorkers.howItWorks.steps.step2.title","Download the app and sign up"),description:e("forWorkers.howItWorks.steps.step2.description","Launch the app and sign up by verifying basic information and linking your bank account."),image:dme},{step:"3",title:e("forWorkers.howItWorks.steps.step3.title","Start using Ekko"),description:e("forWorkers.howItWorks.steps.step3.description","Track your available earned wages, make withdrawals, and explore financial wellness tools."),image:hme},{step:"4",title:e("forWorkers.howItWorks.steps.step4.title","Get remaining wages on payday"),description:e("forWorkers.howItWorks.steps.step4.description","The amount you withdrew will appear as a single line deduction on your pay stub."),image:fme}],n=[{icon:sf,title:e("forWorkers.wellness.benefits.safety.title","Financial Safety Net"),description:e("forWorkers.wellness.benefits.safety.description","Be more equipped to manage unexpected and emergency expenses life throws at you.")},{icon:P4,title:e("forWorkers.wellness.benefits.debt.title","Avoid Debt Traps"),description:e("forWorkers.wellness.benefits.debt.description","Reduce the need to rely on high-interest loans, credit cards, and other unsustainable options.")},{icon:af,title:e("forWorkers.wellness.benefits.balance.title","Balance Income & Expenses"),description:e("forWorkers.wellness.benefits.balance.description","Better align your pay with your bills and start eliminating unnecessary late payment fees.")},{icon:rf,title:e("forWorkers.wellness.benefits.education.title","Financial Education"),description:e("forWorkers.wellness.benefits.education.description","Access free in-app financial courses to build lasting money management skills.")}],r=[{icon:af,title:e("forWorkers.app.features.instant.title","Instant Wage Access"),description:e("forWorkers.app.features.instant.description","Get funds in seconds, directly to your bank account"),delay:0},{icon:Ol,title:e("forWorkers.app.features.tracking.title","Real-time Tracking"),description:e("forWorkers.app.features.tracking.description","See your earned wages updated daily"),delay:.1},{icon:rf,title:e("forWorkers.app.features.courses.title","Financial Courses"),description:e("forWorkers.app.features.courses.description","Free learning with fun gamified content"),delay:.2},{icon:ex,title:e("forWorkers.app.features.savings.title","Savings Tools"),description:e("forWorkers.app.features.savings.description","Set goals and track y
561our savings progress"),delay:.3},{icon:sf,title:e("forWorkers.app.features.security.title","Maximum Security"),description:e("forWorkers.app.features.security.description","ISO 27001 certified with OTP authentication"),delay:.4},{icon:QC,title:e("forWorkers.app.features.support.title","24/7 Support"),description:e("forWorkers.app.features.support.description","Vietnamese support team always ready to help"),delay:.5}],i=[{question:e("forWorkers.faq.items.q1.question","Can anyone use the Ekko App?"),answer:e("forWorkers.faq.items.q1.answer","Ekko is an employer-integrated benefit. That means your company must be partnered with us in order for you to access the app.")},{question:e("forWorkers.faq.items.q2.question","How does Ekko work?"),answer:e("forWorkers.faq.items.q2.answer","Once your employer has implemented Ekko, your pay information is transmitted through a secure connection. Your wage balance (based on pay rate and hours worked) will be updated daily. You can withdraw to your bank account and the amount will be deducted from your next paycheck.")},{question:e("forWorkers.faq.items.q3.question","How do I sign up?"),answer:e("forWorkers.faq.items.q3.answer","Getting started is fast and easy! After your employer announces the new benefit, download the Ekko app from the App Store or Google Play. Launch the app and tap 'Sign Up'. From there, follow the prompts and you'll be on your way.")},{question:e("forWorkers.faq.items.q4.question","Is Ekko a loan?"),answer:e("forWorkers.faq.items.q4.answer","No! Ekko is completely different from loans: no interest, no hidden fees, no deferred payment, and no debt collection. You're simply accessing wages you've already worked to earn.")},{question:e("forWorkers.faq.items.q5.question","Is the Ekko App secure?"),answer:e("forWorkers.faq.items.q5.answer","Ekko takes security seriously with ISO 27001 certification. We use one-time passwords (OTP), in-app verification, and additional protections when changing sensitive data.")}];return c.jsxs("div",{className:"min-h-screen bg-background",children:[c.jsx(hr,{title:"For Workers â Access Your Earned Wages Anytime | Ekko",description:"Get instant access to wages you've already earned. No interest, no hidden fees. Download the Ekko app and take control of your finances today.",path:"/for-workers",jsonLd:{"@context":"https://schema.org","@type":"FAQPage",mainEntity:i.map(s=>({"@type":"Question",name:s.question,acceptedAnswer:{"@type":"Answer",text:s.answer}}))}}),c.jsx(fn,{isOverlay:!0}),c.jsxs("main",{children:[c.jsxs("section",{className:"relative w-full h-[85vh] min-h-[600px]",children:[c.jsx("div",{className:"absolute inset-0 bg-cover bg-center",style:{backgroundImage:`url(${cme})`}}),c.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/80 via-black/50 to-black/30"}),c.jsx("div",{className:"absolute inset-0 flex items-end",children:c.jsx("div",{className:"max-w-7xl mx-auto w-full px-6 md:px-12 lg:px-16 pb-20",children:c.jsxs(U.div,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.6},className:"max-w-3xl",children:[c.jsx("h1",{className:"text-4xl md:text-5xl lg:text-6xl xl:text-7xl font-bold text-white leading-[1.1] mb-6",children:e("forWorkers.hero.title","Work Today, Get Paid Today")}),c.jsx("p",{className:"text-white/80 text-lg md:text-xl max-w-xl leading-relaxed mb-8",children:e("forWorkers.hero.description","If your employer offers Ekko as a benefit, you can access your earned wages ahead of payday. Any time, for any reason.")}),c.jsxs("div",{className:"flex flex-wrap gap-4",children:[c.jsxs("a",{href:"https://apps.apple.com/us/app/ekko/id1599997767",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-3 bg-white/10 backdrop-blur-sm border border-white/20 rounded-xl px-5 py-3 hover:bg-white/20 transition-colors",children:[c.jsx("svg",{viewBox:"0 0 24 24",className:"w-8 h-8 text-white",fill:"currentColor",children:c.jsx("path",{d:"M18.71 19.5c-.83 1.24-1.71 2.45-3.05 2.47-1.34.03-1.77-.79-3.29-.79-1.53 0-2 .77-3.27.82-1.31.05-2.3-1.32-3.14-2.53C4.25 17 2.94 12.45 4.7 9.39c.87-1.52 2.43-2.48 4.12-2.51 1.28-.02 2.5.87 3.29.87.78 0 2.26-1.07 3.81-.91.65.03 2.47.26 3.64 1.98-.09.06-2.17 1.28-2.15 3.81.03 3.02 2.65 4.03 2.68 4.04-.03.07-.42 1.44-1.38 2.83M13 3.5c.73-.83 1.94-1.46 2.94-1.5.13 1.17-.34 2.35-1.04 3.19-.69.85-1.83 1.51-2.95 1.42-.15-1.15.41-2.35 1.05-3.11z"})}),c.jsxs("div",{className:"text-left",children:[c.jsx("p",{className:"text-white/70 text-xs",children:e("forWorkers.hero.downloadOn","Download on the")}),c.jsx("p",{className:"text-white font-semibold",children:"App Store"})]})]}),c.jsxs("a",{href:"https://play.google.com/store/apps/details?id=com.ewaapp&hl=en",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-3 bg-white/10 backdrop-blur-sm border border-white/20 rounded-xl px-5 py-3 hover:bg-white/20 transition-colors",children:[c.jsx("svg",{viewBox:"0 0 24 24",className:"w-8 h-8 text-white",f
561ill:"currentColor",children:c.jsx("path",{d:"M3,20.5V3.5C3,2.91 3.34,2.39 3.84,2.15L13.69,12L3.84,21.85C3.34,21.6 3,21.09 3,20.5M16.81,15.12L6.05,21.34L14.54,12.85L16.81,15.12M20.16,10.81C20.5,11.08 20.75,11.5 20.75,12C20.75,12.5 20.53,12.9 20.18,13.18L17.89,14.5L15.39,12L17.89,9.5L20.16,10.81M6.05,2.66L16.81,8.88L14.54,11.15L6.05,2.66Z"})}),c.jsxs("div",{className:"text-left",children:[c.jsx("p",{className:"text-white/70 text-xs",children:e("forWorkers.hero.downloadOn","Get it on")}),c.jsx("p",{className:"text-white font-semibold",children:"Google Play"})]})]})]})]})})})]}),c.jsx("section",{className:"bg-background px-6 py-20 md:py-24 md:px-12 lg:px-16",children:c.jsxs("div",{className:"max-w-6xl mx-auto",children:[c.jsxs(U.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-12 md:mb-16",children:[c.jsx("span",{className:"inline-block bg-primary/10 text-primary px-4 py-1.5 rounded-full text-sm font-medium mb-4",children:e("forWorkers.howItWorks.badge","Get Started")}),c.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-foreground mb-3",children:e("forWorkers.howItWorks.title","How it works")}),c.jsx("p",{className:"text-muted-foreground text-base md:text-lg",children:e("forWorkers.howItWorks.subtitle","Four simple steps to start using Ekko")})]}),c.jsx("div",{className:"hidden lg:block",children:c.jsxs("div",{className:"relative",children:[c.jsx("div",{className:"absolute top-6 left-[calc(12.5%)] right-[calc(12.5%)] h-0.5 bg-primary/30"}),c.jsx("div",{className:"grid grid-cols-4 gap-4",children:t.map((s,a)=>c.jsxs(U.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:a*.1,duration:.4},className:"flex flex-col items-center",children:[c.jsx("div",{className:"relative z-10 w-12 h-12 rounded-full bg-primary flex items-center justify-center mb-4 shadow-md",children:c.jsx("span",{className:"text-lg font-bold text-primary-foreground",children:s.step})}),c.jsxs("div",{className:"w-full h-full bg-secondary/60 rounded-xl overflow-hidden border-t-4 border-primary/40 hover:border-primary transition-colors duration-300 flex flex-col",children:[c.jsx("div",{className:"w-full h-48 overflow-hidden flex-shrink-0",children:c.jsx("img",{src:s.image,alt:s.title,className:"w-full h-full object-cover"})}),c.jsxs("div",{className:"p-5 flex-1 flex flex-col justify-start",children:[c.jsx("h3",{className:"text-base font-semibold text-foreground mb-2 text-center",children:s.title}),c.jsx("p",{className:"text-muted-foreground text-sm leading-relaxed text-center",children:s.description})]})]})]},a))})]})}),c.jsx("div",{className:"lg:hidden",children:c.jsxs("div",{className:"relative",children:[c.jsx("div",{className:"absolute top-0 bottom-0 left-6 w-0.5 bg-primary/30"}),c.jsx("div",{className:"space-y-6",children:t.map((s,a)=>c.jsxs(U.div,{initial:{opacity:0,x:-20},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{delay:a*.1,duration:.4},className:"flex gap-4",children:[c.jsx("div",{className:"relative z-10 flex-shrink-0 w-12 h-12 rounded-full bg-primary flex items-center justify-center shadow-md",children:c.jsx("span",{className:"text-lg font-bold text-primary-foreground",children:s.step})}),c.jsxs("div",{className:"flex-1 bg-secondary/60 rounded-xl overflow-hidden border-l-4 border-primary/40",children:[c.jsx("div",{className:"w-full h-24 overflow-hidden",children:c.jsx("img",{src:s.image,alt:s.title,className:"w-full h-full object-cover"})}),c.jsxs("div",{className:"p-4",children:[c.jsx("h3",{className:"text-base font-semibold text-foreground mb-1",children:s.title}),c.jsx("p",{className:"text-muted-foreground text-sm leading-relaxed",children:s.description})]})]})]},a))})]})})]})}),c.jsx("section",{className:"bg-secondary/30 px-6 py-20 md:px-12 lg:px-16",children:c.jsxs("div",{className:"max-w-7xl mx-auto",children:[c.jsx(U.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-16",children:c.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-foreground mb-4",children:e("forWorkers.wellness.title","Financial wellness isn't just about money. It's about peace of mind.")})}),c.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-4 gap-6",children:n.map((s,a)=>c.jsxs(U.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:a*.1},className:"bg-background rounded-2xl p-6 shadow-sm",children:[c.jsx("div",{className:"w-12 h-12 rounded-xl bg-primary/10 flex items-center justify-center mb-4",children:c.jsx(s.icon,{className:"w-6 h-6 text-primary"})}),c.jsx("h3",{className:"text-lg font-semibold text-foreground mb-2",children:s.title}),c.jsx("p",{className:"text-muted-foreground text-sm",children:s.description})]},a))})]})}),c.jsx("section",{className:"bg-beyond-blue px-6 py-24 md:px-12 lg:px-16 overflow-hidden",children:c.jsxs("div",{className:"max-w-7xl mx-auto",children:[c.jsxs(U.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-16",children:[c.jsx(U.span,{initial:{opacity:0,scale:.9},whileInView:{opacity:1,scale:1},viewport:{once:!0},className:"inline-block bg-accent/20 text-accent px-4 py-2 rounded-full text-sm font-medium mb-4",children:e("forWorkers.app.badge","Ekko App")}),c.jsx("h2",{className:"text-3xl md:text-4xl lg:text-5xl font-bold text-white mb-4",children:e("forWorkers.app.title","Everything you need in one app")}),c.jsx("p",{className:"text-white/70 text-lg max-w-2xl mx-auto",children:e("forWorkers.app.subtitle","Manage your personal finances easily with features designed for you")})]}),c.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-6 mb-12",children:r.map((s,a)=>c.jsxs(U.div,{initial:{opacity:0,y:30,scale:.95},whileInView:{opacity:1,y:0,scale:1},viewport:{once:!0},transition:{delay:s.delay,duration:.5},whileHover:{y:-8,transition:{duration:.2}},className:"group bg-white/5 backdrop-blur-sm border border-white/10 rounded-2xl p-6 hover:bg-white/10 hover:border-white/20 transition-all duration-300",children:[c.jsx(U.div,{className:"w-14 h-14 roun
561ded-xl bg-accent/20 flex items-center justify-center mb-4 group-hover:bg-accent/30 transition-colors",whileHover:{rotate:[0,-10,10,0],transition:{duration:.5}},children:c.jsx(s.icon,{className:"w-7 h-7 text-accent"})}),c.jsx("h3",{className:"text-xl font-semibold text-white mb-2",children:s.title}),c.jsx("p",{className:"text-white/60 text-sm leading-relaxed",children:s.description})]},a))})]})}),c.jsx("section",{className:"bg-background px-6 py-20 md:px-12 lg:px-16",children:c.jsx("div",{className:"max-w-7xl mx-auto",children:c.jsxs("div",{className:"grid lg:grid-cols-2 gap-12 items-center",children:[c.jsxs(U.div,{initial:{opacity:0,x:-20},whileInView:{opacity:1,x:0},viewport:{once:!0},className:"bg-secondary rounded-3xl p-8 lg:p-12",children:[c.jsx("div",{className:"w-16 h-16 rounded-2xl bg-primary flex items-center justify-center mb-6",children:c.jsx(QC,{className:"w-8 h-8 text-primary-foreground"})}),c.jsx("h2",{className:"text-2xl md:text-3xl font-bold text-foreground mb-4",children:e("forWorkers.support.title","Need app support?")}),c.jsx("p",{className:"text-muted-foreground mb-8",children:e("forWorkers.support.description","We're here 24/7 to answer your questions and help you navigate your account.")}),c.jsxs("div",{className:"space-y-4",children:[c.jsxs("div",{className:"flex items-center gap-4",children:[c.jsx("div",{className:"w-10 h-10 rounded-full bg-primary/10 flex items-center justify-center",children:c.jsx(mu,{className:"w-5 h-5 text-primary"})}),c.jsxs("div",{children:[c.jsx("p",{className:"text-sm text-muted-foreground",children:"Email"}),c.jsx("a",{href:"mailto:[email protected]",className:"text-foreground font-medium hover:text-primary transition-colors",children:"[email protected]"})]})]}),c.jsxs("div",{className:"flex items-center gap-4",children:[c.jsx("div",{className:"w-10 h-10 rounded-full bg-primary/10 flex items-center justify-center",children:c.jsx(Cp,{className:"w-5 h-5 text-primary"})}),c.jsxs("div",{children:[c.jsx("p",{className:"text-sm text-muted-foreground",children:e("forWorkers.support.phone","Phone")}),c.jsx("a",{href:"tel:02899999582",className:"text-foreground font-medium hover:text-primary transition-colors",children:"028 99999 582"})]})]})]})]}),c.jsxs(U.div,{initial:{opacity:0,x:20},whileInView:{opacity:1,x:0},viewport:{once:!0},children:[c.jsx("h2",{className:"text-2xl md:text-3xl font-bold text-foreground mb-6",children:e("forWorkers.faq.title","FAQ")}),c.jsx(lme,{type:"single",collapsible:!0,className:"w-full",children:i.map((s,a)=>c.jsxs(hV,{value:`item-${a}`,children:[c.jsx(fV,{className:"text-left text-foreground hover:text-primary",children:s.question}),c.jsx(pV,{className:"text-muted-foreground",children:s.answer})]},a))})]})]})})})]}),c.jsx(pn,{})]})},mme="/assets/team-leadership-DRGiqQ6-.jpg",gme="/assets/team-group-BF0VwWru.jpg",yme="/assets/impact-square-CWvq52h8.webp",vme="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAS0AAACnCAMAAABzYfrWAAABhlBMVEX////75/DE6+vmqMj7OIIAAFcAAF4AAFkAAFgAAF8AAFUAAFwAAGH75e8AAE/5+fpl4uJ0UogAAG2skrGsqcy9pb/Kw9LG8PA4OHPq6PZWLHT76vJIQY2Qo7ZkYJxcNXj1/Pz98fbg9fX8e6YAAEqenMMySXrnosTrt9Gb5+fQt8y3yNI6Un+locf7Jnv+9vrlrMvPy+YAAELh3vJ3dqpwbKOB5OQ4Lm/Uv9z7G3f4YJfrk7mtsc3zz+Dt2+mWiK2PjLrt8fhETYm47u4AAD78u9D0pcPriLL4krXyRIr5tc3pXZvfUZf7xdf1m7yjXa2rjMX2ap77hq2Rdb3Bhrytms2IX7N1XLbErdSCa7tjXIwqIoJ2dJtUPoW8uM5WYYtfVIVFKXmdiMbIzuF1fKeIcJpXTZDa5eoxGmp0U7G6qNR4gqiMfsGEh8XO0eEcE3yjwt1Wl8coKn+Wtda23OeIos9ivtVRQoGmpLpVVYRtXJYiI2rZ2OFBFWpZMHV/YJAAACsgO3M5X/eOAAANw0lEQVR4nO1d+UPbRhaWgdE5tqhDTBylieSgBSeLBRjMUfCBWxLYpdskm00KjhNKIN7SQq9dE8K2u//5zugc+SCAJRMJfT8gaTyekT/ee/PmaeaJoiJEiBDBBS3+1dqj+w4er23GtO61NUWHpnWvE1asrC2tr99f+2pFkihRRwxx93gpl7u/IbVXF5V4LBbXgY4xpf83fGXIj//lr19sduAEQZM2v15avL+2qZASpGCSXOjPnV45pLW/fTPRTZc0KRaTJE3bfDq0iLG+9OTpRpxSWrlC8nUdxGvh2d+nz/hYM2mRJGXlaS43hJDLLQ5taG1sxUKvjcrzf3x/toUmWJEUaWNpcUhHbiiuXDO6tOcvFj5aR5HiJGErT0y+FleuF10vP86VAZIxxNd9g6/FzQ50if7e8pVh4bxcGdBswooTE0u6/VrcaKMr3nlYDTq0b59fWAwMbqSJwcGpLwzjtaZIrXSF0U99+aJ4xqdaHiPdboSwgMXHBxFdU0+weOWWNhXJRVgI3QgkWF0+yd8sb23TwML2q9rkYZqsIMYnMFuOeA093iiSEhbvw/33FdOdBSuvvhIAy9A0x9G0wAjoBB8Bv12qV5xqkkXX+JLpfeXW1wi6QqaKL7/t8INSpSRgED0MSCST915vvS3Xam92kgkeldICYFaXrS9JSnxq0ODrfm7I9CaeSCFVxe/atbAyCYHACSBxVDvedf1asZgqvYc8YgwwW7t6EZpBSyumeD0y2RrKfS2Fkq1nbX5D5S1gOJqHs/VuSpRX5xMMpPlXeIqEHQlpxZSucYuuJSWEbIkvWueEiCsBMuzr3bO/mFaTPK3zFdPpMq2XTddiCGVLbLPvNxBXAKqVjtXdWFhNIL6aeWPmaGqjRVeuGDq22shKJRnE1ch5v3/Y5DkalAyHwdTGqfF1na1NKWxstZI1x0MBnJsrjNQOgEyyqBspKU7QlduwVDEsHsQzt806RYKVqJ1HB0mMAJrjV
561ZKuwSnM1mNLtkIyr/7upetyhOcEmLp4M+kTHvL7Lrqw7Vo3A2EhmVYvuP2sPfSbX19UsAyMsJzQyOuyZCnjoq2K4TBbxW9dl3cBTJQu15KmFCFNm8bLpOsR8urjOl0e3OrVQ3vhsifzaCysX7YtSUrPM3TyAUkXDklIUjwkNv6ZazicR07WWSGbjyAuKVsA8i668MAoKeGwWm6jtc9A4V0PrWlIhmZ5CAzbZbip4zkce+7xNj8NKC/Iq30WCuluVc/XXjwmzvJcMu949VNPMV0bPTX7icClhzXQm2RhaPG4OAvohmTFnk1dXAyBlS9+R1yM8D3ZLBNYGU8EwfC7YoOWLuae9tzyleOfxHiY5mHi0qMhCSWu/IImjfhZNqGLQ140faV4+T1x0eDYskftammA/BAJP+iZsGZAi4H3Tkm/9C1D73jXcj0Bob56Sxs3fdRc0IfFl0S0dBcZrctNdzpjj2Hm9BM9fDOBYxEetn4VIEWrAXlPjJYFMQmBEXXV2Xqcy6152Xz/QVqtY0Dve9t6KsEZmo0N/fjKUNDZIp6HaRCyvbml7Tix4onj4xMryqPFYLsQeUK0Sgxz4HX7FRZC/aS4Ikmx+NCS1x30Fd84wqTxEHof2TwQwDE+iis4uvVk3fMO+gnCxpcYdtL7DirAFC48C5K+Wg9yzGaaiMVDCPz4KQcM0H0UPdQsrQd5pviDo3p1IHhutTDSDH1LP9Efy04F2D0Vf3DOb3EJrwdEA/s0rzes6FPGCV/66Aumnec8RZ5+5U8nCzxTxkcRC5fyyJ9O+oHnjjTdYMCyT71AzrTz8XhcexRcM//MOd3hGC9niCRmBT6Pj5okadRG78GzK4Lyo32a5uktv7rZ5Zkb9kUxsIaLMFt1lvHB2TJBhoG0Kd+68Rnf5+3TGs3nz6jZG17RwPFUxn3rxmf86FjcJJ30r58Swx/aFxNBfajoTHu0BP3Gv35SgFDzlYCaecI33QWGT+QPpARdsy/iK/515CcU5wn1TQY88LGnJGHmYwEdFKediHyZ8dHIU1SThva5GFS2nIXKaEj0c9Eeat627YFlywnX7NCMnz25RHfQz578w7QzOh0JR372hCahjgsRUIdrOmOfQnrbz57qLHCWsAZVE53tbwnuMz97esiCh/ZFUNlyDLvPbKUA6zzVDSpbjiYmuHt+9hQKtkbtU4bzcZqoa2Lw7ZbDls9jYp0JAVvOgskjP0MQLR5EQOeJhC//GZ3wsyeXdxpU2XLNfPwMO6HmnUWBAWXr3U/2Kfrnn5UJqVc0CUXXAspWxlnLXGdZT5e5tQASERsxoHZLdB755Hk/o4FaQnCigUpA2aJ+ts80xs9I8zRgnC20xaA+fv3RceZ/IeJ1nqNMPsUILFs/OQ7XgeBj8PQNGT0LbCab35xBsQ78e/oqkgtStMAu4JIdMy/6aLiQ2VLtCy24uzEcM4+fJ/uzfIui5kgtl4JqtijqV2zmjX/2CMNeKPXD+SFDjnOuAmu2dMOlSEb6j4qnO3xI7PKkIgbWbKF/+896dkT9fJX2bSUl0bASXLOFPa64lS2lzhMOt4dIA3rVuQqwaGFVxNvqjUWBEPJ+WOCawBO71ALNlvyzEq9kBvTzEcBcMmHGWUjzkJglBFoRKepf7wYQjBkQ5KD3wjUrkKt/AzwiYoz+msF06eeTPghXmiefj2hBXelm4d8DhHBB3uthcZ/miURLgc/M8lt2wBauOk83vW0dtUgMiMG28TpI4VqleU8derw/lFg4GeBZj4WqIVwyPi8C6OlscUtgyZ1WwRctihomhGvSU10c4Tly6U4IRAsJV8ERLmpVAJ6Ni8jVAqfOZZCniAQM4TIMfRpyrEe7o7QGx5NNhUK0KCpD6mKKgUQQvResCmbqDAOiX5uu+o1CldDFz936c2ncZel58nrAgzY/CZjCZdK1ByDsna67gD4ipeldSBKdIhQKhOmi5kDv0nUXuBPEyb0mQPuEkBnOttDF97Y1A0mWO5teaPQQozBcJSy9TlcPTr0yz9DbbrLCo4cIo8Om6TLpwql0587+SnekIC1su0bATKZb3WBieLjgouuYhcyHyz29VgHHNF2+VSZUeoiQHbZMV8b4oXWG5vhLPL5OryKxdE8H5LCRhey8Tdc7IxqcbqKhsXnRsbHE0zR0LwWTw2W0dAwPt0oXNcnQNH9wERe83mARw+5vyKYbFypUCboszcHixZzvrRgY9Xmck75lLA0lWZQ8TNIlm6U3IcsxXOkc5l68Oc/TAjvXQm04yTKFq40uTUV8CWxz+WwBOyxBFnH1utXMhZUsSht20WV7SKLKAZoG8O5kl6iqNl2a5wWOYbfahoTQkkWJSlany/S7BogfWt9nGVpg2Mbc8XRatEc4UaxMH5eakBfwq8jUdjJHs3JbWVigSRVDG6ut4oVfRTZPA0F/pV0yOf/+/dzc+zfNRpLlGVwoNEqdQmLZbN/u/QqgxeJKptBJGzHS9ZMPHGAFgUaw/jJAYE6OOzplcmG0U3F4oCmKomVsbczIrRXSD0ZK+3caEINrfLhTm6ynu7ieo4W2b4cSsi5emYHuFlpJI5wZZZezVc/v61MFpqvQS9ygGmLz3o6CbuzlS347E3aL1QrDmbgUX5nC9VFCC1XTV5Uv+L3ryBXGaMHg6wLmS65eI+PeCjlTNQzY+QgbzV43e9UOOTOa/biEIakqjMp9uaFPH3ImWyhUu/gUiM5CNqLKDRHpZaGQzSLSLIxWq7hkNGRPdDyDjBSTQKZ9chQhQoQIESJEiBAhQoQIESJEiBAhQoQIESJE+Dh2S7PlFFmgHM/OuhexSTdRievdRfnS7OwxkWzlc3PhzSnR0qGK6oRj26sFcZ4pqSVIJJlPJZoltTZDbPaZnNlS1dcJYp/F3lhNVVdnbtqtfGl+eMPJ7T/H76lqc8zPTL19x94H/XDHzkcgGkla0rRNxeGYLjCnY/ZOi/qYvihwecxa7ywmzFc4O2wtG9lLymM+3fiVIGGoTsrOOVM3ExuV3lslJVPMaidWyYmZr6thbSgQAW1Q6bD1pmwceSeDduAhzxj7B/Izslmi3jaOD/5j1fns2Dgu71slt0yW7lrKKYKy8fpgh62kKYlHfqaB7jMstpQx2Syx2fqTVefO58ZxxN5bbrNly1Yib2SfJNgy37Vyz9bo4MNiS2qXrXa2PlglHdiq1GbxSbjZor402KokZbOgO1tpe8d1B7bSp2PYWQg5W/u/tHhE3dly0Iktagebt5CzJd5JuHfKXZqt5QYVerbw2wsgmXTm0mxRwu41YIuijnnoTGs6s1XZuX379z+sklsmvW62Dk6uBVt4JmNPUFSheRtj/s9WCWZLPDw8LdsexGrjd1zlHu9iKz2jkWwd6XV+58LHFlW2U5Oqt1I63rZp4rLjb5WNOk0XW9S+SrJ1bNTZCRNb/7V8eSshqWrK1OTFvFPM1oJAsmVGI8KkiY4v7wFbFNyN2Do/W6Wt41CzZfny+TPYsmfVdhrGbmxVmINwswXNiI39HuZ2tkpbxtGJ2HRji9qDtpcRSrb+aOiHO3bi23a2Dsf0hGPphB176cpWKhFutqjtRLlchoyd9UE1WVL/Z1dRx16Xy3Nf7tkFH0yW9q3kQOKMuW9/x9ZEU2ip26Fii1ou12rEVLH40H3ESKvl8iTxXOOhmd0uZWe5e2gq8qldq27V8SJxY4QIEYKB/wOumMbUtEWJzQAAAABJRU5ErkJggg==",xme="/assets/fondation-botnar-BZ5P7X97.png",bme=()=>{const{t:e}=St(),t=[{image:"/images/awards/catapult-inclusion.png",title:"Catapult: Inclusion SE Asia",organization:"The LHoFT"},{image:"/images/awards/nordcham-innovation.png",title:"Business Innovation Award",organization:"Nordcham Vietnam"},{image:"/images/awards/inno-vietnam-japan.png",title:"Inno Vietnam - Jap
561an",organization:"MPI - METI - NIC - JETRO"},{image:"/images/awards/koica-impact.png",title:"Impact Challenge at SEA",organization:"KOICA"}];return c.jsxs("div",{className:"min-h-screen bg-background",children:[c.jsx(hr,{title:"About Ekko â Building Financial Health for Workforces",description:"Meet the team behind Ekko, the earned wage access platform empowering Vietnamese workers and partnering with forward-thinking employers across Southeast Asia.",path:"/about"}),c.jsx(fn,{}),c.jsxs("main",{children:[c.jsx("section",{className:"px-6 pt-32 pb-20 md:px-12 lg:px-16 bg-background",children:c.jsx("div",{className:"max-w-7xl mx-auto",children:c.jsxs("div",{className:"grid lg:grid-cols-2 gap-12 lg:gap-16 items-center",children:[c.jsxs(U.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6},children:[c.jsx("h1",{className:"text-4xl md:text-5xl lg:text-6xl font-bold text-foreground leading-tight mb-6 whitespace-pre-line",children:e("about.hero.title",`We're Ekko 562and this is our story`)}),c.jsx("p",{className:"text-lg md:text-xl text-muted-foreground leading-relaxed",children:e("about.hero.description","Ekko is the earned wage access solution for forward-thinking companies across Vietnam. We empower workers with financial flexibility while helping businesses reduce turnover.")})]}),c.jsx(U.div,{initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},transition:{duration:.6,delay:.2},className:"relative",children:c.jsx("div",{className:"rounded-3xl overflow-hidden shadow-2xl",children:c.jsx("img",{src:mme,alt:"Ekko Leadership Team",className:"w-full h-auto object-cover",fetchPriority:"high",decoding:"async"})})})]})})}),c.jsx("section",{className:"py-12 border-y border-border bg-background",children:c.jsx("div",{className:"max-w-7xl mx-auto px-6 md:px-12 lg:px-16",children:c.jsxs("div",{className:"flex flex-col md:flex-row md:items-center gap-8",children:[c.jsx("h2",{className:"text-2xl md:text-3xl font-bold text-foreground whitespace-nowrap",children:e("about.clients.title","Trusted by leading companies")}),c.jsx("div",{className:"flex-1 overflow-hidden",children:c.jsx(eB,{})})]})})}),c.jsx("section",{className:"px-6 py-24 md:px-12 lg:px-16 bg-secondary/30",children:c.jsx("div",{className:"max-w-7xl mx-auto",children:c.jsxs("div",{className:"grid lg:grid-cols-2 gap-16 items-center",children:[c.jsx(U.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"order-2 lg:order-1",children:c.jsx("div",{className:"rounded-3xl overflow-hidden shadow-xl",children:c.jsx("img",{src:gme,alt:"Ekko Team",className:"w-full h-auto object-cover",loading:"lazy",decoding:"async"})})}),c.jsxs(U.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"order-1 lg:order-2",children:[c.jsx("span",{className:"text-sm font-medium text-primary tracking-widest uppercase mb-4 block",children:e("about.team.label","Meet Our Team")}),c.jsx("h2",{className:"text-3xl md:text-4xl lg:text-5xl font-bold text-foreground mb-6",children:e("about.team.title","Passionate people building the future of pay.")}),c.jsx("p",{className:"text-lg text-muted-foreground leading-relaxed mb-8",children:e("about.team.description","We're a diverse team of technologists, finance experts, and dreamers united by a common goal: making financial inclusion a reality for Vietnamese workers.")}),c.jsx(ut,{to:"/careers",children:c.jsxs(de,{size:"lg",className:"group",children:[e("about.team.cta","Join Our Team"),c.jsx(Ls,{className:"ml-2 h-5 w-5 group-hover:translate-x-1 transition-transform"})]})})]})]})})}),c.jsx("section",{className:"px-6 py-24 md:px-12 lg:px-16 bg-background",children:c.jsxs("div",{className:"max-w-7xl mx-auto",children:[c.jsxs(U.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-16",children:[c.jsx("span",{className:"text-sm font-medium text-primary tracking-widest uppercase mb-4 block",children:e("about.awards.label","Recognition")}),c.jsx("h2",{className:"text-3xl md:text-4xl lg:text-5xl font-bold text-foreground",children:e("about.awards.title","Award-winning innovation")})]}),c.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-6 md:gap-10",children:t.map((n,r)=>c.jsxs(U.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:r*.1},className:"text-center group",children:[c.jsx("div",{className:"w-36 h-36 md:w-44 md:h-44 mx-auto mb-5 rounded-3xl bg-gradient-to-br from-secondary to-secondary/60 flex items-center justify-center p-6 shadow-lg group-hover:shadow-xl group-hover:scale-105 transition-all duration-300 border border-border/50",children:c.jsx("img",{src:n.image,alt:n.title,className:"w-full h-full object-contain drop-shadow-sm",loading:"lazy",decoding:"async"})}),c.jsx("h3",{className:"font-semibold text-foreground text-base mb-1",children:n.title}),c.jsx("p",{className:"text-muted-foreground text-sm",children:n.organization})]},n.title))})]})}),c.jsx("section",{className:"px-6 py-16 md:px-12 lg:px-16 bg-secondary/30",children:c.jsxs("div",{className:"max-w-7xl mx-auto",children:[c.jsxs(U.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-16",children:[c.jsx("span",{className:"text-sm font-medium text-primary tracking-widest uppercase mb-4 block",children:e("about.investors.label","Our Investors")}),c.jsx("h2",{className:"text-3xl md:text-4xl lg:text-5xl font-bold text-foreground mb-4",children:e("about.investors.title","Backed by impact")}),c.jsx("p",{className:"text-lg text-muted-foreground max-w-2xl mx-auto",children:e("about.investors.description","We partner with impact-driven funds and foundations who share our vision of financial inclusion for every worker.")})]}),c.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-8 max-w-4xl mx-auto",children:[{name:"Impact Square",description:"Impact investment fund",logo:yme},{name:"Sagana",description:"Social impact investor",logo:vme}
562,{name:"Fondation Botnar",description:"Youth-focused foundation",logo:xme}].map((n,r)=>c.jsxs(U.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:r*.1},className:"bg-background rounded-2xl p-8 text-center border border-border hover:border-primary/30 hover:shadow-lg transition-all",children:[c.jsx("div",{className:"h-16 mx-auto mb-4 flex items-center justify-center",children:c.jsx("img",{src:n.logo,alt:n.name,className:"max-h-16 max-w-full object-contain",loading:"lazy",decoding:"async"})}),c.jsx("h3",{className:"font-semibold text-foreground text-lg mb-1",children:n.name}),c.jsx("p",{className:"text-muted-foreground text-sm",children:n.description})]},n.name))})]})}),c.jsx(WB,{}),c.jsx("section",{className:"px-6 py-24 md:px-12 lg:px-16 bg-primary",children:c.jsx("div",{className:"max-w-4xl mx-auto text-center",children:c.jsxs(U.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},children:[c.jsx("h2",{className:"text-3xl md:text-4xl lg:text-5xl font-bold text-primary-foreground mb-6",children:e("about.cta.title","Want to join our team?")}),c.jsx("p",{className:"text-primary-foreground/80 text-lg mb-8 max-w-2xl mx-auto",children:e("about.cta.description","We're always looking for passionate people to help us empower workers across Vietnam. Explore our open positions and become part of the Ekko family.")}),c.jsx("div",{className:"flex flex-wrap justify-center gap-4",children:c.jsx(ut,{to:"/careers",children:c.jsxs(de,{size:"lg",className:"bg-accent text-accent-foreground hover:bg-accent/90 px-8",children:[e("about.cta.viewCareers","View Open Positions"),c.jsx(Ls,{className:"ml-2 h-5 w-5"})]})})})]})})})]}),c.jsx(pn,{})]})},wme="/assets/worker-2-JZUZu2xM.jpg",kme="/assets/ilo-logo-full-CNHTvn3K.png",Sme="/assets/60-decibels-logo-Bw8gmu4B.webp",jme="/assets/gates-foundation-logo-DgvD_6mN.png",_me="/assets/security-guard-B2WtRaHl.jpg",Eme="/assets/factory-worker-DI4zLYMB.jpg",Tme="/assets/gardener-C-nUw49m.jpg",Nme="/assets/bus-driver-BEEAo7Tj.jpg",Cme=({value:e,suffix:t="",duration:n=2,onComplete:r})=>{const[i,s]=w.useState(0),a=w.useRef(null),o=J6(a,{once:!0,margin:"-100px"});return w.useEffect(()=>{if(o){const u=e/60;let d=0;const h=setInterval(()=>{d+=u,d>=e?(s(e),clearInterval(h),r==null||r()):s(Math.floor(d))},n*1e3/60);return()=>clearInterval(h)}},[o,e,n,r]),c.jsxs("span",{ref:a,children:[i,t]})},Ame=({value:e,suffix:t="%",label:n,icon:r,tooltip:i,workerQuote:s,index:a=0})=>{const[o,l]=w.useState(!1),[u,d]=w.useState(!1),[h,f]=w.useState(!1);w.useEffect(()=>{if(u){f(!0);const g=setTimeout(()=>f(!1),1e3);return()=>clearTimeout(g)}},[u]);const p=c.jsxs(U.div,{className:"relative bg-beyond-blue rounded-2xl p-6 text-center group overflow-hidden h-full min-h-[180px] flex flex-col justify-center cursor-pointer",whileHover:{y:-8,boxShadow:"0 25px 50px -20px rgba(0,0,0,0.4)"},onHoverStart:()=>l(!0),onHoverEnd:()=>l(!1),initial:{opacity:0,y:60},whileInView:{opacity:1,y:0},transition:{duration:.8,delay:a*.1,ease:"easeOut"},viewport:{once:!0,margin:"-50px"},children:[c.jsx(Ka,{children:o&&c.jsx(U.div,{className:"absolute inset-0 bg-accent/10 rounded-2xl",initial:{opacity:0}
562,animate:{opacity:1},exit:{opacity:0},transition:{duration:.3}})}),c.jsx(Ka,{children:h&&c.jsx(U.div,{className:"absolute inset-0 rounded-2xl border-2 border-accent",initial:{scale:1,opacity:.8},animate:{scale:1.1,opacity:0},exit:{opacity:0},transition:{duration:.8,ease:"easeOut"}})}),c.jsxs("div",{className:"relative z-10",children:[c.jsx(U.div,{className:"w-12 h-12 mx-auto mb-4 rounded-xl bg-white/10 flex items-center justify-center",animate:o?{scale:1.1,rotate:5}:{scale:1,rotate:0},transition:{type:"spring",stiffness:300},children:c.jsx(r,{className:"w-6 h-6 text-accent"})}),c.jsx(U.div,{className:"text-4xl font-bold text-white mb-2",animate:o?{scale:1.05}:{scale:1},children:c.jsx(Cme,{value:e,suffix:t,onComplete:()=>d(!0)})}),c.jsx("p",{className:"text-white/70 text-sm",children:n}),c.jsx(Ka,{children:o&&s&&c.jsx(U.div,{className:"absolute inset-0 bg-beyond-blue/95 rounded-2xl p-4 flex items-center justify-center",initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:10},transition:{duration:.2},children:c.jsxs("div",{children:[c.jsx("p",{className:"text-accent text-xs font-medium mb-2",children:"Worker Voice"}),c.jsxs("p",{className:"text-white/90 text-sm italic leading-relaxed",children:['"',s,'"']})]})})})]})]});return i&&!s?c.jsx(_3,{children:c.jsxs(BX,{children:[c.jsx(VX,{asChild:!0,children:p}),c.jsx(E3,{side:"top",className:"max-w-xs",children:c.jsx("p",{children:i})})]})}):p},Pme=({testimonials:e})=>{const[t,n]=Vp({loop:!0,align:"center"}),[r,i]=w.useState(0),[s,a]=w.useState(!1),[o,l]=w.useState(!1),u=w.useCallback(()=>n==null?void 0:n.scrollPrev(),[n]),d=w.useCallback(()=>n==null?void 0:n.scrollNext(),[n]),h=w.useCallback(p=>n==null?void 0:n.scrollTo(p),[n]),f=w.useCallback(()=>{n&&i(n.selectedScrollSnap())},[n]);return w.useEffect(()=>{if(n)return n.on("select",f),f(),()=>{n.off("select",f)}},[n,f]),w.useEffect(()=>{if(!n||s||o)return;const p=setInterval(()=>{n.scrollNext()},5e3);return()=>clearInterval(p)},[n,s,o]),c.jsxs(U.div,{className:"relative",initial:{opacity:0,y:40},whileInView:{opacity:1,y:0},transition:{duration:.8},viewport:{once:!0},onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),children:[c.jsx("div",{className:"overflow-hidden",ref:t,children:c.jsx("div",{className:"flex",children:e.map((p,g)=>c.jsx("div",{className:"flex-[0_0_100%] min-w-0 md:flex-[0_0_50%] lg:flex-[0_0_50%] px-3",children:c.jsxs(U.div,{className:`bg-card border border-border rounded-2xl p-6 h-full transition-all duration-300 ${r===g?"shadow-lg scale-[1.02]":"opacity-70"}`,whileHover:{y:-5},children:[c.jsxs("div",{className:"flex justify-between items-start mb-4",children:[c.jsx(nx,{className:"w-8 h-8 text-accent/40"}),c.jsxs("div",{className:"flex items-center gap-1 text-xs text-muted-foreground",children:[c.jsx(R_,{className:"w-3 h-3"}),c.jsx("span",{children:p.location})]})]}),c.jsxs("div",{className:`flex gap-4 mb-6 ${p.image?"flex-row":""}`,children:[p.image&&c.jsx("div",{className:"flex-shrink-0",children:c.jsx("img",{src:p.image,alt:p.author,className:"w-24 h-24 md:w-32 md:h-32 object-cover rounded-xl"})}),c.jsxs("p",{className:"text-foreground leading-relaxed text-lg flex-1",children:['"',p.quote,'"']})]}),c.jsxs("div",{className:"flex items-center gap-3 pt-4 border-t border-border",children:[c.jsx("div",{className:"w-10 h-10 rounded-full bg-primary/10 flex items-center justify-center",children:c.jsx(Tp,{className:"w-5 h-5 text-primary"})}),c.jsxs("div",{children:[c.jsx("p",{className:"font-medium text-foreground",children:p.author}),c.jsxs("p",{className:"text-sm text-muted-foreground",children:["Age ",p.age," ⢠",p.gender]})]})]})]})},g))})}),c.jsxs("div",{className:"flex items-center justify-center gap-4 mt-8",children:[c.jsx(de,{variant:"outline",size:"icon",className:"rounded-full w-10 h-10",onClick:u,children:c.jsx(Jv,{className:"w-5 h-5"})}),c.jsx("div",{className:"flex items-center gap-2",children:e.map((p,g)=>c.jsx("button",{onClick:()=>h(g),className:`w-2.5 h-2.5 rounded-full transition-all duration-300 ${r===g?"bg-primary w-8":"bg-muted-foreground/30 hover:bg-muted-foreground/50"}`,"aria-label":`Go to testimonial ${g+1}`},g))}),c.jsx(de,{variant:"outline",size:"icon",className:"rounded-full w-10 h-10",onClick:d,children:c.jsx(Fs,{className:"w-5 h-5"})}),c.jsx(de,{variant:"ghost",size:"icon",className:"rounded-full w-10 h-10",onClick:()=>a(!s),children:s?c.jsx(RK,{className:"w-4 h-4"}):c.jsx(OK,{className:"w-4 h-4"})})]}),c.jsx(Ka,{children:!s&&!o&&c.jsx(U.div,{className:"absolute -bottom-1 left-1/2 -translate-x-1/2 w-32 h-0.5 bg-muted rounded-full overflow-hidden",initial:{opacity:0}
vendor: 6,127 bytes, line 562
562,animate:{opacity:1},exit:{opacity:0},children:c.jsx(U.div,{className:"h-full bg-primary",initial:{width:"0%"},animate:{width:"100%"},transition:{duration:5,ease:"linear",repeat:1/0}},r)})})]})};var Ome=Array.isArray,fr=Ome,Rme=typeof em=="object"&&em&&em.Object===Object&&em,mV=Rme,Ime=mV,Mme=typeof self=="object"&&self&&self.Object===Object&&self,$me=Ime||Mme||Function("return this")(),us=$me,Dme=us,Lme=Dme.Symbol,Up=Lme,_O=Up,gV=Object.prototype,Fme=gV.hasOwnProperty,Bme=gV.toString,Wd=_O?_O.toStringTag:void 0;function Vme(e){var t=Fme.call(e,Wd),n=e[Wd];try{e[Wd]=void 0;var r=!0}catch{}var i=Bme.call(e);return r&&(t?e[Wd]=n:delete e[Wd]),i}var qme=Vme,Ume=Object.prototype,Wme=Ume.toString;function zme(e){return Wme.call(e)}var Hme=zme,EO=Up,Kme=qme,Gme=Hme,Yme="[object Null]",Xme="[object Undefined]",TO=EO?EO.toStringTag:void 0;function Qme(e){return e==null?e===void 0?Xme:Yme:TO&&TO in Object(e)?Kme(e):Gme(e)}var Qs=Qme;function Zme(e){return e!=null&&typeof e=="object"}var Zs=Zme,Jme=Qs,ege=Zs,tge="[object Symbol]";function nge(e){return typeof e=="symbol"||ege(e)&&Jme(e)==tge}var hd=nge,rge=fr,ige=hd,sge=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,age=/^\w*$/;function oge(e,t){if(rge(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||ige(e)?!0:age.test(e)||!sge.test(e)||t!=null&&e in Object(t)}var cT=oge;function lge(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var po=lge;const fd=tt(po);var cge=Qs,uge=po,dge="[object AsyncFunction]",hge="[object Function]",fge="[object GeneratorFunction]",pge="[object Proxy]";function mge(e){if(!uge(e))return!1;var t=cge(e);return t==hge||t==fge||t==dge||t==pge}var uT=mge;const Be=tt(uT);var gge=us,yge=gge["__core-js_shared__"],vge=yge,iw=vge,NO=function(){var e=/[^.]+$/.exec(iw&&iw.keys&&iw.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function xge(e){return!!NO&&NO in e}var bge=xge,wge=Function.prototype,kge=wge.toString;function Sge(e){if(e!=null){try{return kge.call(e)}catch{}try{return e+""}catch{}}return""}var yV=Sge,jge=uT,_ge=bge,Ege=po,Tge=yV,Nge=/[\\^$.*+?()[\]{}|]/g,Cge=/^\[object .+?Constructor\]$/,Age=Function.prototype,Pge=Object.prototype,Oge=Age.toString,Rge=Pge.hasOwnProperty,Ige=RegExp("^"+Oge.call(Rge).replace(Nge,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Mge(e){if(!Ege(e)||_ge(e))return!1;var t=jge(e)?Ige:Cge;return t.test(Tge(e))}var $ge=Mge;function Dge(e,t){return e==null?void 0:e[t]}var Lge=Dge,Fge=$ge,Bge=Lge;function Vge(e,t){var n=Bge(e,t);return Fge(n)?n:void 0}var Ml=Vge,qge=Ml,Uge=qge(Object,"create"),$x=Uge,CO=$x;function Wge(){this.__data__=CO?CO(null):{},this.size=0}var zge=Wge;function Hge(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Kge=Hge,Gge=$x,Yge="__lodash_hash_undefined__",Xge=Object.prototype,Qge=Xge.hasOwnProperty;function Zge(e){var t=this.__data__;if(Gge){var n=t[e];return n===Yge?void 0:n}return Qge.call(t,e)?t[e]:void 0}var Jge=Zge,eye=$x,tye=Object.prototype,nye=tye.hasOwnProperty;function rye(e){var t=this.__data__;return eye?t[e]!==void 0:nye.call(t,e)}var iye=rye,sye=$x,aye="__lodash_hash_undefined__";function oye(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=sye&&t===void 0?aye:t,this}var lye=oye,cye=zge,uye=Kge,dye=Jge,hye=iye,fye=lye;function pd(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}pd.prototype.clear=cye;pd.prototype.delete=uye;pd.prototype.get=dye;pd.prototype.has=hye;pd.prototype.set=fye;var pye=pd;function mye(){this.__data__=[],this.size=0}var gye=mye;function yye(e,t){return e===t||e!==e&&t!==t}var dT=yye,vye=dT;function xye(e,t){for(var n=e.length;n--;)if(vye(e[n][0],t))return n;return-1}var Dx=xye,bye=Dx,wye=Array.prototype,kye=wye.splice;function Sye(e){var t=this.__data__,n=bye(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():kye.call(t,n,1),--this.size,!0}var jye=Sye,_ye=Dx;function Eye(e){var t=this.__data__,n=_ye(t,e);return n<0?void 0:t[n][1]}var Tye=Eye,Nye=Dx;function Cye(e){return Nye(this.__data__,e)>-1}var Aye=Cye,Pye=Dx;function Oye(e,t){var n=this.__data__,r=Pye(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var Rye=Oye,Iye=gye,Mye=jye,$ye=Tye,Dye=Aye,Lye=Rye;function md(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}md.prototype.clear=Iye;md.prototype.delete=Mye;md.prototype.get=$ye;md.prototype.has=Dye;md.prototype.set=Lye;var Lx=md,Fye=Ml,Bye=us,Vye=Fye(Bye,"Map"),hT=Vye,AO=pye,qye=Lx,Uye=hT;function Wye(){this.size=0,this.__data__={hash:new AO,map:new(Uye||qye),string:new AO}}var zye=Wye;function Hye(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var Kye=Hye,Gye=Kye;function Yye(e,t){var n=e.__data__;return Gye(t)?n[typeof t=="string"?"string":"hash"]:n.map}var Fx=Yye,Xye=Fx;function Qye(e){var t=Xye(this,e).delete(e);return this.size-=t?1:0,t}var Zye=Qye,Jye=Fx;function eve(e){return Jye(this,e).get(e)}var tve=eve,nve=Fx;function rve(e){return nve(this,e).has(e)}var ive=rve,sve=Fx;function ave(e,t){var n=sve(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var ove=ave,lve=zye,cve=Zye,uve=tve,dve=ive,hve=ove;function gd(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}gd.prototype.clear=lve;gd.prototype.delete=cve;gd.prototype.get=uve;gd.prototype.has=dve;gd.prototype.set=hve;var fT=gd,vV=fT,fve="Expected a function";function pT(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(fve);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],s=n.cache;if(s.has(i))return s.get(i);var a=e.apply(this,r);return n.cache=s.set(i,a)||s,a};return n.cache=new(pT.Cache||vV),n}pT.Cache=vV;var xV=pT;const pve=tt(xV);var mve=xV,gve=500;function yve(e){var t=mve(e,function(r){return n.size===gve&&n.clear(),r}),n=t.cache;return t}var vve=yve,xve=vve,bve=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,wve=/\\(\\)?/g,kve=xve(function(e){var t=[];
562return e.charCodeAt(0)===46&&t.push(""),e.replace(bve,function(n,r,i,s){t.push(i?s.replace(wve,"$1"):r||n)}),t}),Sve=kve;function jve(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}var mT=jve,PO=Up,_ve=mT,Eve=fr,Tve=hd,Nve=1/0,OO=PO?PO.prototype:void 0,RO=OO?OO.toString:void 0;function bV(e){if(typeof e=="string")return e;if(Eve(e))return _ve(e,bV)+"";if(Tve(e))return RO?RO.call(e):"";var t=e+"";return t=="0"&&1/e==-Nve?"-0":t}var Cve=bV,Ave=Cve;function Pve(e){return e==null?"":Ave(e)}var wV=Pve,Ove=fr,Rve=cT,Ive=Sve,Mve=wV;function $ve(e,t){return Ove(e)?e:Rve(e,t)?[e]:Ive(Mve(e))}var kV=$ve,Dve=hd,Lve=1/0;function Fve(e){if(typeof e=="string"||Dve(e))return e;var t=e+"";return t=="0"&&1/e==-Lve?"-0":t}var Bx=Fve,Bve=kV,Vve=Bx;function qve(e,t){t=Bve(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[Vve(t[n++])];return n&&n==r?e:void 0}var gT=qve,Uve=gT;function Wve(e,t,n){var r=e==null?void 0:Uve(e,t);return r===void 0?n:r}var SV=Wve;const Ci=tt(SV);function zve(e){return e==null}var Hve=zve;const Ke=tt(Hve);var Kve=Qs,Gve=fr,Yve=Zs,Xve="[object String]";function Qve(e){return typeof e=="string"||!Gve(e)&&Yve(e)&&Kve(e)==Xve}var Zve=Qve;const Wp=tt(Zve);var jV={exports:{}},lt={};/** 563 * @license React 564 * react-is.production.min.js 565 * 566 * Copyright (c) Facebook, Inc. and its affiliates. 567 * 568 * This source code is licensed under the MIT license found in the 569 * LICENSE file in the root directory of this source tree. 570 */var yT=Symbol.for("react.element"),vT=Symbol.for("react.portal"),Vx=Symbol.for("react.fragment"),qx=Symbol.for("react.strict_mode"),Ux=Symbol.for("react.profiler"),Wx=Symbol.for("react.provider"),zx=Symbol.for("react.context"),Jve=Symbol.for("react.server_context"),Hx=Symbol.for("react.forward_ref"),Kx=Symbol.for("react.suspense"),Gx=Symbol.for("react.suspense_list"),Yx=Symbol.for("react.memo"),Xx=Symbol.for("react.lazy"),exe=Symbol.for("react.offscreen"),_V;_V=Symbol.for("react.module.reference");function ti(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case yT:switch(e=e.type,e){case Vx:case Ux:case qx:case Kx:case Gx:return e;default:switch(e=e&&e.$$typeof,e){case Jve:case zx:case Hx:case Xx:case Yx:case Wx:return e;default:return t}}case vT:return t}}}lt.ContextConsumer=zx;lt.ContextProvider=Wx;lt.Element=yT;lt.ForwardRef=Hx;lt.Fragment=Vx;lt.Lazy=Xx;lt.Memo=Yx;lt.Portal=vT;lt.Profiler=Ux;lt.StrictMode=qx;lt.Suspense=Kx;lt.SuspenseList=Gx;lt.isAsyncMode=function(){return!1};lt.isConcurrentMode=function(){return!1};lt.isContextConsumer=function(e){return ti(e)===zx};lt.isContextProvider=function(e){return ti(e)===Wx};lt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===yT};lt.isForwardRef=function(e){return ti(e)===Hx};lt.isFragment=function(e){return ti(e)===Vx};lt.isLazy=function(e){return ti(e)===Xx};lt.isMemo=function(e){return ti(e)===Yx};lt.isPortal=function(e){return ti(e)===vT};lt.isProfiler=function(e){return ti(e)===Ux};lt.isStrictMode=function(e){return ti(e)===qx};lt.isSuspense=function(e){return ti(e)===Kx};lt.isSuspenseList=function(e){return ti(e)===Gx};lt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Vx||e===Ux||e===qx||e===Kx||e===Gx||e===exe||typeof e=="object"&&e!==null&&(e.$$typeof===Xx||e.$$typeof===Yx||e.$$typeof===Wx||e.$$typeof===zx||e.$$typeof===Hx||e.$$typeof===_V||e.getModuleId!==void 0)};lt.typeOf=ti;jV.exports=lt;var txe=jV.exports,nxe=Qs,rxe=Zs,ixe="[object Number]";function sxe(e){return typeof e=="number"||rxe(e)&&nxe(e)==ixe}var EV=sxe;const axe=tt(EV);var oxe=EV;function lxe(e){return oxe(e)&&e!=+e}var cxe=lxe;const zp=tt(cxe);var Wr=function(t){return t===0?0:t>0?1:-1},Ho=function(t){return Wp(t)&&t.indexOf("%")===t.length-1},le=function(t){return axe(t)&&!zp(t)},sn=function(t){return le(t)||Wp(t)},uxe=0,Qx=function(t){var n=++uxe;return"".concat(t||"").concat(n)},ir=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!le(t)&&!Wp(t))return r;var s;if(Ho(t)){var a=t.indexOf("%");s=n*parseFloat(t.slice(0,a))/100}else s=+t;return zp(s)&&(s=r),i&&s>n&&(s=n),s},oc=function(t){if(!t)return null;var n=Object.keys(t);
vendor: 5,028 bytes, line 570
570return n&&n.length?t[n[0]]:null},dxe=function(t){if(!Array.isArray(t))return!1;for(var n=t.length,r={},i=0;i<n;i++)if(!r[t[i]])r[t[i]]=!0;else return!0;return!1},IO=function(t,n){return le(t)&&le(n)?function(r){return t+r*(n-t)}:function(){return n}};function nS(e,t,n){return!e||!e.length?null:e.find(function(r){return r&&(typeof t=="function"?t(r):Ci(r,t))===n})}function rS(e,t){for(var n in e)if({}.hasOwnProperty.call(e,n)&&(!{}.hasOwnProperty.call(t,n)||e[n]!==t[n]))return!1;for(var r in t)if({}.hasOwnProperty.call(t,r)&&!{}.hasOwnProperty.call(e,r))return!1;return!0}function iS(e){"@babel/helpers - typeof";return iS=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},iS(e)}var hxe=["viewBox","children"],fxe=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"],MO=["points","pathLength"],sw={svg:hxe,polygon:MO,polyline:MO},xT=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onF
570ocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"],Ly=function(t,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var r=t;if(w.isValidElement(t)&&(r=t.props),!fd(r))return null;var i={};return Object.keys(r).forEach(function(s){xT.includes(s)&&(i[s]=n||function(a){return r[s](r,a)})}),i},pxe=function(t,n,r){return function(i){return t(n,r,i),null}},Zx=function(t,n,r){if(!fd(t)||iS(t)!=="object")return null;var i=null;return Object.keys(t).forEach(function(s){var a=t[s];xT.includes(s)&&typeof a=="function"&&(i||(i={}),i[s]=pxe(a,n,r))}),i},mxe=["children"],gxe=["children"];function $O(e,t){if(e==null)return{};var n=yxe(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function yxe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var DO={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"},As=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},LO=null,aw=null,bT=function e(t){if(t===LO&&Array.isArray(aw))return aw;var n=[];return w.Children.forEach(t,function(r){Ke(r)||(txe.isFragment(r)?n=n.concat(e(r.props.children)):n.push(r))}),aw=n,LO=t,n};function ns(e,t){var n=[],r=[];return Array.isArray(t)?r=t.map(function(i){return As(i)}):r=[As(t)],bT(e).forEach(function(i){var s=Ci(i,"type.displayName")||Ci(i,"type.n
570ame");r.indexOf(s)!==-1&&n.push(i)}),n}function Dr(e,t){var n=ns(e,t);return n&&n[0]}var FO=function(t){if(!t||!t.props)return!1;var n=t.props,r=n.width,i=n.height;return!(!le(r)||r<=0||!le(i)||i<=0)},vxe=["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"],xxe=function(t){return t&&t.type&&Wp(t.type)&&vxe.indexOf(t.type)>=0},bxe=function(t,n,r,i){var s,a=(s=sw==null?void 0:sw[i])!==null&&s!==void 0?s:[];return n.startsWith("data-")||!Be(t)&&(i&&a.includes(n)||fxe.includes(n))||r&&xT.includes(n)},Fe=function(t,n,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var i=t;if(w.isValidElement(t)&&(i=t.props),!fd(i))return null;var s={};
570return Object.keys(i).forEach(function(a){var o;bxe((o=i)===null||o===void 0?void 0:o[a],a,n,r)&&(s[a]=i[a])}),s},sS=function e(t,n){if(t===n)return!0;var r=w.Children.count(t);if(r!==w.Children.count(n))return!1;if(r===0)return!0;if(r===1)return BO(Array.isArray(t)?t[0]:t,Array.isArray(n)?n[0]:n);for(var i=0;i<r;i++){var s=t[i],a=n[i];if(Array.isArray(s)||Array.isArray(a)){if(!e(s,a))return!1}else if(!BO(s,a))return!1}return!0},BO=function(t,n){if(Ke(t)&&Ke(n))return!0;if(!Ke(t)&&!Ke(n)){var r=t.props||{},i=r.children,s=$O(r,mxe),a=n.props||{},o=a.children,l=$O(a,gxe);return i&&o?rS(s,l)&&sS(i,o):!i&&!o?rS(s,l):!1}return!1},VO=function(t,n){var r=[],i={};return bT(t).forEach(function(s,a){if(xxe(s))r.push(s);else if(s){var o=As(s.type),l=n[o]||{},u=l.handler,d=l.once;if(u&&(!d||!i[o])){var h=u(s,o,a);r.push(h),i[o]=!0}}}),r},wxe=function(t){var n=t&&t.type;return n&&DO[n]?DO[n]:null},kxe=function(t,n){return bT(n).indexOf(t)},Sxe=["children","width","height","viewBox","className","style","title","desc"];function aS(){return aS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},aS.apply(this,arguments)}function jxe(e,t){if(e==null)return{};var n=_xe(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function _xe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function oS(e){var t=e.children,n=e.width,r=e.height,i=e.viewBox,s=e.className,a=e.style,o=e.title,l=e.desc,u=jxe(e,Sxe),d=i||{width:n,height:r,x:0,y:0},h=Ye("recharts-surface",s);return A.createElement("svg",aS({},Fe(u,!0,"svg"),{className:h,width:n,height:r,style:a,viewBox:"".concat(d.x," ").concat(d.y," ").concat(d.width," ").concat(d.height)}),A.createElement("title",null,o),A.createElement("desc",null,l),t)}var Exe=["children","className"];function lS(){return lS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},lS.apply(this,arguments)}function Txe(e,t){if(e==null)return{};var n=Nxe(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Nxe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var Bt=A.forwardRef(function(e,t){var n=e.children,r=e.className,i=Txe(e,Exe),s=Ye("recharts-layer",r);return A.createElement("g",lS({className:s},Fe(i,!0),{ref:t}),n)}),Ps=function(t,n){for(var r=arguments.length,i=new Array(r>2?r-2:0),s=2;s<r;s++)i[s-2]=arguments[s]};function Cxe(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var s=Array(i);++r<i;)s[r]=e[r+t];return s}var Axe=Cxe,Pxe=Axe;function Oxe(e,t,n){var r=e.length;return n=n===void 0?r:n,!t&&n>=r?e:Pxe(e,t,n)}var Rxe=Oxe,Ixe="\\ud800-\\udfff",Mxe="\\u0300-\\u036f",$xe="\\ufe20-\\ufe2f",Dxe="\\u20d0-\\u20ff",Lxe=Mxe+$xe+Dxe,Fxe="\\ufe0e\\ufe0f",Bxe="\\u200d",Vxe=RegExp("["+Bxe+Ixe+Lxe+Fxe+"]");function qxe(e){return Vxe.test(e)}var TV=qxe;function Uxe(e){return e.split("")}var Wxe=Uxe,NV="\\ud800-\\udfff",zxe="\\u0300-\\u036f",Hxe="\\ufe20-\\ufe2f",Kxe="\\u20d0-\\u20ff",Gxe=zxe+Hxe+Kxe,Yxe="\\ufe0e\\ufe0f",Xxe="["+NV+"]",cS="["+Gxe+"]",uS="\\ud83c[\\udffb-\\udfff]",Qxe="(?:"+cS+"|"+uS+")",CV="[^"+NV+"]",AV="(?:\\ud83c[\\udde6-\\uddff]){2}",PV="[\\ud800-\\udbff][\\udc00-\\udfff]",Zxe="\\u200d",OV=Qxe+"?",RV="["+Yxe+"]?",Jxe="(?:"+Zxe+"(?:"+[CV,AV,PV].join("|")+")"+RV+OV+")*",ebe=RV+OV+Jxe,tbe="(?:"+[CV+cS+"?",cS,AV,PV,Xxe].join("|")+")",nbe=RegExp(uS+"(?="+uS+")|"+tbe+ebe,"g");function rbe(e){return e.match(nbe)||[]}var ibe=rbe,sbe=Wxe,abe=TV,obe=ibe;function lbe(e){return abe(e)?obe(e):sbe(e)}var cbe=lbe,ube=Rxe,dbe=TV,hbe=cbe,fbe=wV;function pbe(e){return function(t){t=fbe(t);var n=dbe(t)?hbe(t):void 0,r=n?n[0]:t.charAt(0),i=n?ube(n,1).join(""):t.slice(1);return r[e]()+i}}var mbe=pbe,gbe=mbe,ybe=gbe("toUpperCase"),vbe=ybe;const Jx=tt(vbe);function mt(e){return function(){return e}}const IV=Math.cos,Fy=Math.sin,$i=Math.sqrt,By=Math.PI,eb=2*By,dS=Math.PI,hS=2*dS,Io=1e-6,xbe=hS-Io;function MV(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function bbe(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return MV;const n=10**t;return function(r){this._+=r[0];for(let i=1,s=r.length;i<s;++i)this._+=Math.round(arguments[i]*n)/n+r[i]}}class wbe{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?MV:bbe(t)}moveTo(t,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,n){this._append`L${this._x1=+t},${this._y1=+n}`}quadraticCurveTo(t,n,r,i){this._append`Q${+t},${+n},${this._x1=+r},${this._y1=+i}`}bezierCurveTo(t,n,r,i,s,a){this._append`C${+t},${+n},${+r},${+i},${this._x1=+s},${this._y1=+a}`}arcTo(t,n,r,i,s){if(t=+t,n=+n,r=+r,i=+i,s=+s,s<0)throw new Error(`negative radius: ${s}`);let a=this._x1,o=this._y1,l=r-t,u=i-n,d=a-t,h=o-n,f=d*d+h*h;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(f>
vendor: 4,351 bytes, line 570
570Io)if(!(Math.abs(h*l-u*d)>Io)||!s)this._append`L${this._x1=t},${this._y1=n}`;else{let p=r-a,g=i-o,m=l*l+u*u,y=p*p+g*g,v=Math.sqrt(m),x=Math.sqrt(f),b=s*Math.tan((dS-Math.acos((m+f-y)/(2*v*x)))/2),S=b/x,k=b/v;Math.abs(S-1)>Io&&this._append`L${t+S*d},${n+S*h}`,this._append`A${s},${s},0,0,${+(h*p>d*g)},${this._x1=t+k*l},${this._y1=n+k*u}`}}arc(t,n,r,i,s,a){if(t=+t,n=+n,r=+r,a=!!a,r<0)throw new Error(`negative radius: ${r}`);let o=r*Math.cos(i),l=r*Math.sin(i),u=t+o,d=n+l,h=1^a,f=a?i-s:s-i;this._x1===null?this._append`M${u},${d}`:(Math.abs(this._x1-u)>Io||Math.abs(this._y1-d)>Io)&&this._append`L${u},${d}`,r&&(f<0&&(f=f%hS+hS),f>xbe?this._append`A${r},${r},0,1,${h},${t-o},${n-l}A${r},${r},0,1,${h},${this._x1=u},${this._y1=d}`:f>Io&&this._append`A${r},${r},0,${+(f>=dS)},${h},${this._x1=t+r*Math.cos(s)},${this._y1=n+r*Math.sin(s)}`)}rect(t,n,r,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+i}h${-r}Z`}toString(){return this._}}function wT(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{const r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);t=r}return e},()=>new wbe(t)}function kT(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function $V(e){this._context=e}$V.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function tb(e){return new $V(e)}function DV(e){return e[0]}function LV(e){return e[1]}function FV(e,t){var n=mt(!0),r=null,i=tb,s=null,a=wT(o);e=typeof e=="function"?e:e===void 0?DV:mt(e),t=typeof t=="function"?t:t===void 0?LV:mt(t);function o(l){var u,d=(l=kT(l)).length,h,f=!1,p;for(r==null&&(s=i(p=a())),u=0;u<=d;++u)!(u<d&&n(h=l[u],u,l))===f&&((f=!f)?s.lineStart():s.lineEnd()),f&&s.point(+e(h,u,l),+t(h,u,l));if(p)return s=null,p+""||null}return o.x=function(l){return arguments.length?(e=typeof l=="function"?l:mt(+l),o):e},o.y=function(l){return arguments.length?(t=typeof l=="function"?l:mt(+l),o):t},o.defined=function(l){return arguments.length?(n=typeof l=="function"?l:mt(!!l),o):n},o.curve=function(l){return arguments.length?(i=l,r!=null&&(s=i(r)),o):i},o.context=function(l){return arguments.length?(l==null?r=s=null:s=i(r=l),o):r},o}function qm(e,t,n){var r=null,i=mt(!0),s=null,a=tb,o=null,l=wT(u);e=typeof e=="function"?e:e===void 0?DV:mt(+e),t=typeof t=="function"?t:mt(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?LV:mt(+n);function u(h){var f,p,g,m=(h=kT(h)).length,y,v=!1,x,b=new Array(m),S=new Array(m);for(s==null&&(o=a(x=l())),f=0;f<=m;++f){if(!(f<m&&i(y=h[f],f,h))===v)if(v=!v)p=f,o.areaStart(),o.lineStart();else{for(o.lineEnd(),o.lineStart(),g=f-1;g>=p;--g)o.point(b[g],S[g]);o.lineEnd(),o.areaEnd()}v&&(b[f]=+e(y,f,h),S[f]=+t(y,f,h),o.point(r?+r(y,f,h):b[f],n?+n(y,f,h):S[f]))}if(x)return o=null,x+""||null}function d(){return FV().defined(i).curve(a).context(s)}return u.x=function(h){return arguments.length?(e=typeof h=="function"?h:mt(+h),r=null,u):e},u.x0=function(h){return arguments.length?(e=typeof h=="function"?h:mt(+h),u):e},u.x1=function(h){return arguments.length?(r=h==null?null:typeof h=="function"?h:mt(+h),u):r},u.y=function(h){return arguments.length?(t=typeof h=="function"?h:mt(+h),n=null,u):t},u.y0=function(h){return arguments.length?(t=typeof h=="function"?h:mt(+h),u):t},u.y1=function(h){return arguments.length?(n=h==null?null:typeof h=="function"?h:mt(+h),u):n},u.lineX0=u.lineY0=function(){return d().x(e).y(t)},u.lineY1=function(){return d().x(e).y(n)},u.lineX1=function(){return d().x(r).y(t)},u.defined=function(h){return arguments.length?(i=typeof h=="function"?h:mt(!!h),u):i},u.curve=function(h){return arguments.length?(a=h,s!=null&&(o=a(s)),u):a},u.context=function(h){return arguments.length?(h==null?s=o=null:o=a(s=h),u):s},u}class BV{constructor(t,n){this._context=t,this._x=n}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}
vendor: 2,156 bytes, line 570
570point(t,n){switch(t=+t,n=+n,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,n,t,n):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+n)/2,t,this._y0,t,n);break}}this._x0=t,this._y0=n}}function kbe(e){return new BV(e,!0)}function Sbe(e){return new BV(e,!1)}const ST={draw(e,t){const n=$i(t/By);e.moveTo(n,0),e.arc(0,0,n,0,eb)}},jbe={draw(e,t){const n=$i(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},VV=$i(1/3),_be=VV*2,Ebe={draw(e,t){const n=$i(t/_be),r=n*VV;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},Tbe={draw(e,t){const n=$i(t),r=-n/2;e.rect(r,r,n,n)}},Nbe=.8908130915292852,qV=Fy(By/10)/Fy(7*By/10),Cbe=Fy(eb/10)*qV,Abe=-IV(eb/10)*qV,Pbe={draw(e,t){const n=$i(t*Nbe),r=Cbe*n,i=Abe*n;e.moveTo(0,-n),e.lineTo(r,i);for(let s=1;s<5;++s){const a=eb*s/5,o=IV(a),l=Fy(a);e.lineTo(l*n,-o*n),e.lineTo(o*r-l*i,l*r+o*i)}e.closePath()}},ow=$i(3),Obe={draw(e,t){const n=-$i(t/(ow*3));e.moveTo(0,n*2),e.lineTo(-ow*n,-n),e.lineTo(ow*n,-n),e.closePath()}},Pr=-.5,Or=$i(3)/2,fS=1/$i(12),Rbe=(fS/2+1)*3,Ibe={draw(e,t){const n=$i(t/Rbe),r=n/2,i=n*fS,s=r,a=n*fS+n,o=-s,l=a;e.moveTo(r,i),e.lineTo(s,a),e.lineTo(o,l),e.lineTo(Pr*r-Or*i,Or*r+Pr*i),e.lineTo(Pr*s-Or*a,Or*s+Pr*a),e.lineTo(Pr*o-Or*l,Or*o+Pr*l),e.lineTo(Pr*r+Or*i,Pr*i-Or*r),e.lineTo(Pr*s+Or*a,Pr*a-Or*s),e.lineTo(Pr*o+Or*l,Pr*l-Or*o),e.closePath()}};function Mbe(e,t){let n=null,r=wT(i);e=typeof e=="function"?e:mt(e||ST),t=typeof t=="function"?t:mt(t===void 0?64:+t);function i(){let s;if(n||(n=s=r()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),s)return n=null,s+""||null}return i.type=function(s){return arguments.length?(e=typeof s=="function"?s:mt(s),i):e},i.size=function(s){return arguments.length?(t=typeof s=="function"?s:mt(+s),i):t},i.context=function(s){return arguments.length?(n=s??null,i):n},i}function Vy(){}
vendor: 6,287 bytes, line 570
570function qy(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function UV(e){this._context=e}UV.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:qy(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:qy(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function $be(e){return new UV(e)}function WV(e){this._context=e}WV.prototype={areaStart:Vy,areaEnd:Vy,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:qy(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Dbe(e){return new WV(e)}function zV(e){this._context=e}zV.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:qy(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Lbe(e){return new zV(e)}function HV(e){this._context=e}HV.prototype={areaStart:Vy,areaEnd:Vy,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function Fbe(e){return new HV(e)}function qO(e){return e<0?-1:1}function UO(e,t,n){var r=e._x1-e._x0,i=t-e._x1,s=(e._y1-e._y0)/(r||i<0&&-0),a=(n-e._y1)/(i||r<0&&-0),o=(s*i+a*r)/(r+i);return(qO(s)+qO(a))*Math.min(Math.abs(s),Math.abs(a),.5*Math.abs(o))||0}function WO(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function lw(e,t,n){var r=e._x0,i=e._y0,s=e._x1,a=e._y1,o=(s-r)/3;e._context.bezierCurveTo(r+o,i+o*t,s-o,a-o*n,s,a)}function Uy(e){this._context=e}Uy.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:lw(this,this._t0,WO(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,lw(this,WO(this,n=UO(this,e,t)),n);break;default:lw(this,this._t0,n=UO(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function KV(e){this._context=new GV(e)}(KV.prototype=Object.create(Uy.prototype)).point=function(e,t){Uy.prototype.point.call(this,t,e)};function GV(e){this._context=e}GV.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,i,s){this._context.bezierCurveTo(t,e,r,n,s,i)}};function Bbe(e){return new Uy(e)}function Vbe(e){return new KV(e)}function YV(e){this._context=e}YV.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=zO(e),i=zO(t),s=0,a=1;a<n;++s,++a)this._context.bezierCurveTo(r[0][s],i[0][s],r[1][s],i[1][s],e[a],t[a]);(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function zO(e){var t,n=e.length-1,r,i=new Array(n),s=new Array(n),a=new Array(n);for(i[0]=0,s[0]=2,a[0]=e[0]+2*e[1],t=1;t<n-1;++t)i[t]=1,s[t]=4,a[t]=4*e[t]+2*e[t+1];for(i[n-1]=2,s[n-1]=7,a[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=i[t]/s[t-1],s[t]-=r,a[t]-=r*a[t-1];for(i[n-1]=a[n-1]/s[n-1],t=n-2;t>=0;--t)i[t]=(a[t]-i[t+1])/s[t];for(s[n-1]=(e[n]+i[n-1])/2,t=0;t<n-1;++t)s[t]=2*e[t+1]-i[t+1];return[i,s]}function qbe(e){return new YV(e)}function nb(e,t){this._context=e,this._t=t}nb.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;
vendor: 12,000 bytes, lines 570-573
570default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}}this._x=e,this._y=t}};function Ube(e){return new nb(e,.5)}function Wbe(e){return new nb(e,0)}function zbe(e){return new nb(e,1)}function ju(e,t){if((a=e.length)>1)for(var n=1,r,i,s=e[t[0]],a,o=s.length;n<a;++n)for(i=s,s=e[t[n]],r=0;r<o;++r)s[r][1]+=s[r][0]=isNaN(i[r][1])?i[r][0]:i[r][1]}function pS(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function Hbe(e,t){return e[t]}function Kbe(e){const t=[];return t.key=e,t}function Gbe(){var e=mt([]),t=pS,n=ju,r=Hbe;function i(s){var a=Array.from(e.apply(this,arguments),Kbe),o,l=a.length,u=-1,d;for(const h of s)for(o=0,++u;o<l;++o)(a[o][u]=[0,+r(h,a[o].key,u,s)]).data=h;for(o=0,d=kT(t(a));o<l;++o)a[d[o]].index=o;return n(a,d),a}return i.keys=function(s){return arguments.length?(e=typeof s=="function"?s:mt(Array.from(s)),i):e},i.value=function(s){return arguments.length?(r=typeof s=="function"?s:mt(+s),i):r},i.order=function(s){return arguments.length?(t=s==null?pS:typeof s=="function"?s:mt(Array.from(s)),i):t},i.offset=function(s){return arguments.length?(n=s??ju,i):n},i}function Ybe(e,t){if((r=e.length)>0){for(var n,r,i=0,s=e[0].length,a;i<s;++i){for(a=n=0;n<r;++n)a+=e[n][i][1]||0;if(a)for(n=0;n<r;++n)e[n][i][1]/=a}ju(e,t)}}function Xbe(e,t){if((i=e.length)>0){for(var n=0,r=e[t[0]],i,s=r.length;n<s;++n){for(var a=0,o=0;a<i;++a)o+=e[a][n][1]||0;r[n][1]+=r[n][0]=-o/2}ju(e,t)}}function Qbe(e,t){if(!(!((a=e.length)>0)||!((s=(i=e[t[0]]).length)>0))){for(var n=0,r=1,i,s,a;r<s;++r){for(var o=0,l=0,u=0;o<a;++o){for(var d=e[t[o]],h=d[r][1]||0,f=d[r-1][1]||0,p=(h-f)/2,g=0;g<o;++g){var m=e[t[g]],y=m[r][1]||0,v=m[r-1][1]||0;p+=y-v}l+=h,u+=p*h}i[r-1][1]+=i[r-1][0]=n,l&&(n-=u/l)}i[r-1][1]+=i[r-1][0]=n,ju(e,t)}}function Rf(e){"@babel/helpers - typeof";return Rf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Rf(e)}var Zbe=["type","size","sizeType"];function mS(){return mS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mS.apply(this,arguments)}function HO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function KO(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?HO(Object(n),!0).forEach(function(r){Jbe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):HO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Jbe(e,t,n){return t=e0e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function e0e(e){var t=t0e(e,"string");return Rf(t)=="symbol"?t:t+""}function t0e(e,t){if(Rf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Rf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function n0e(e,t){if(e==null)return{};var n=r0e(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function r0e(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var XV={symbolCircle:ST,symbolCross:jbe,symbolDiamond:Ebe,symbolSquare:Tbe,symbolStar:Pbe,symbolTriangle:Obe,symbolWye:Ibe},i0e=Math.PI/180,s0e=function(t){var n="symbol".concat(Jx(t));return XV[n]||ST},a0e=function(t,n,r){if(n==="area")return t;switch(r){case"cross":return 5*t*t/9;case"diamond":return .5*t*t/Math.sqrt(3);case"square":return t*t;case"star":{var i=18*i0e;return 1.25*t*t*(Math.tan(i)-Math.tan(i*2)*Math.pow(Math.tan(i),2))}case"triangle":return Math.sqrt(3)*t*t/4;case"wye":return(21-10*Math.sqrt(3))*t*t/8;default:return Math.PI*t*t/4}},o0e=function(t,n){XV["symbol".concat(Jx(t))]=n},jT=function(t){var n=t.type,r=n===void 0?"circle":n,i=t.size,s=i===void 0?64:i,a=t.sizeType,o=a===void 0?"area":a,l=n0e(t,Zbe),u=KO(KO({},l),{},{type:r,size:s,sizeType:o}),d=function(){var y=s0e(r),v=Mbe().type(y).size(a0e(s,o,r));return v()},h=u.className,f=u.cx,p=u.cy,g=Fe(u,!0);return f===+f&&p===+p&&s===+s?A.createElement("path",mS({},g,{className:Ye("recharts-symbols",h),transform:"translate(".concat(f,", ").concat(p,")"),d:d()})):null};jT.registerSymbol=o0e;function _u(e){"@babel/helpers - typeof";return _u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_u(e)}function gS(){return gS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},gS.apply(this,arguments)}function GO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function l0e(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?GO(Object(n),!0).forEach(function(r){If(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):GO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function c0e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u0e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ZV(r.key),r)}}function d0e(e,t,n){return t&&u0e(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function h0e(e,t,n){return t=Wy(t),f0e(e,QV()?Reflect.construct(t,n||[],Wy(e).constructor):t.apply(e,n))}function f0e(e,t){if(t&&(_u(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return p0e(e)}function p0e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function QV(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(QV=function(){return!!e})()}function Wy(e){return Wy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Wy(e)}function m0e(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&yS(e,t)}function yS(e,t){return yS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},yS(e,t)}function If(e,t,n){return t=ZV(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ZV(e){var t=g0e(e,"string");return _u(t)=="symbol"?t:t+""}function g0e(e,t){if(_u(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(_u(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Rr=32,_T=function(e){function t(){return c0e(this,t),h0e(this,t,arguments)}return m0e(t,e),d0e(t,[{key:"renderIcon",value:function(r){var i=this.props.inactiveColor,s=Rr/2,a=Rr/6,o=Rr/3,l=r.inactive?i:r.color;if(r.type==="plainline")return A.createElement("line",{strokeWidth:4,fill:"none",stroke:l,strokeDasharray:r.payload.strokeDasharray,x1:0,y1:s,x2:Rr,y2:s,className:"recharts-legend-icon"});if(r.type==="line")return A.createElement("path",{strokeWidth:4,fill:"none",stroke:l,d:"M0,".concat(s,"h").concat(o,` 571 A`).concat(a,",").concat(a,",0,1,1,").concat(2*o,",").concat(s,` 572 H`).concat(Rr,"M").concat(2*o,",").concat(s,` 573 A`).concat(a,",").concat(a,",0,1,1,").concat(o,",").concat(s),className:"recharts-legend-icon"});if(r.type==="rect")return A.createElement("path",{stroke:"none",fill:l,d:"M0,".concat(Rr/8,"h").concat(Rr,"v").concat(Rr*3/4,"h").concat(-Rr,"z"),className:"recharts-legend-icon"});if(A.isValidElement(r.legendIcon)){var u=l0e({},r);return delete u.legendIcon,A.cloneElement(r.legendIcon,u)}return A.createElement(jT,{fill:l,cx:s,cy:s,size:Rr,sizeType:"diameter",type:r.type})}},{key:"renderItems",value:function(){var r=this,i=this.props,s=i.payload,a=i.iconSize,o=i.layout,l=i.formatter,u=i.inactiveColor,d={x:0,y:0,width:Rr,height:Rr},h={display:o==="horizontal"?"inline-block":"block",marginRight:10},f={display:"inline-block",verticalAlign:"middle",marginRight:4};return s.map(function(p,g){var m=p.formatter||l,y=Ye(If(If({"recharts-legend-item":!0},"legend-item-".concat(g),!0),"inactive",p.inactive));if(p.type==="none")return null;var v=Be(p.value)?null:p.value;Ps(!Be(p.value),`The name property is also required when using a function for the dataKey of a chart's cartesian components. Ex: <Bar name="Name of my Data"/>`);var x=p.inactive?u:p.color;return A.createElement("li",gS({className:y,style:h,key:"legend-item-".concat(g)},Zx(r.props,p,g)),A.createElement(oS,{width:a,height:a,viewBox:d,style:f},r.renderIcon(p)),A.createElement("span",{className:"recharts-legend-item-text",style:{color:x}},m?m(v,p,g):v))})}},{key:"render",value:function(){var r=this.props,i=r.payload,s=r.layout,a=r.align;if(!i||!i.length)return null;var o={padding:0,margin:0,textAlign:s==="horizontal"?a:"left"};return A.createElement("ul",{className:"recharts-default-legend",style:o},this.renderItems())}}])}(w.PureComponent);If(_T,"displayName","Legend");If(_T,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var y0e=Lx;function v0e(){this.__data__=new y0e,this.size=0}var x0e=v0e;function b0e(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var w0e=b0e;function k0e(e){return this.__data__.get(e)}var S0e=k0e;function j0e(e){return this.__data__.has(e)}var _0e=j0e,E0e=Lx,T0e=hT,N0e=fT,C0e=200;function A0e(e,t){var n=this.__data__;if(n instanceof E0e){var r=n.__data__;if(!T0e||r.length<C0e-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new N0e(r)}return n.set(e,t),this.size=n.size,this}var P0e=A0e,O0e=Lx,R0e=x0e,I0e=w0e,M0e=S0e,$0e=_0e,D0e=P0e;function yd(e){var t=this.__data__=new O0e(e);this.size=t.size}yd.prototype.clear=R0e;yd.prototype.delete=I0e;yd.prototype.get=M0e;yd.prototype.has=$0e;yd.prototype.set=D0e;var JV=yd,L0e="__lodash_hash_undefined__";function F0e(e){return this.__data__.set(e,L0e),this}var B0e=F0e;function V0e(e){return this.__data__.has(e)}var q0e=V0e,U0e=fT,W0e=B0e,z0e=q0e;function zy(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new U0e;++t<n;)this.add(e[t])}zy.prototype.add=zy.prototype.push=W0e;zy.prototype.has=z0e;var e8=zy;function H0e(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var t8=H0e;function K0e(e,t){return e.has(t)}var n8=K0e,G0e=e8,Y0e=t8,X0e=n8,Q0e=1,Z0e=2;function J0e(e,t,n,r,i,s){var a=n&Q0e,o=e.length,l=t.length;if(o!=l&&!(a&&l>o))return!1;var u=s.get(e),d=s.get(t);if(u&&d)return u==t&&d==e;var h=-1,f=!0,p=n&Z0e?new G0e:void 0;for(s.set(e,t),s.set(t,e);++h<o;){var g=e[h],m=t[h];if(r)var y=a?r(m,g,h,t,e,s):r(g,m,h,e,t,s);if(y!==void 0){if(y)continue;f=!1;break}
vendor: 5,280 bytes, line 573
573if(p){if(!Y0e(t,function(v,x){if(!X0e(p,x)&&(g===v||i(g,v,n,r,s)))return p.push(x)})){f=!1;break}}else if(!(g===m||i(g,m,n,r,s))){f=!1;break}}return s.delete(e),s.delete(t),f}var r8=J0e,ewe=us,twe=ewe.Uint8Array,nwe=twe;function rwe(e){var t=-1,n=Array(e.size);return e.forEach(function(r,i){n[++t]=[i,r]}),n}var iwe=rwe;function swe(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var ET=swe,YO=Up,XO=nwe,awe=dT,owe=r8,lwe=iwe,cwe=ET,uwe=1,dwe=2,hwe="[object Boolean]",fwe="[object Date]",pwe="[object Error]",mwe="[object Map]",gwe="[object Number]",ywe="[object RegExp]",vwe="[object Set]",xwe="[object String]",bwe="[object Symbol]",wwe="[object ArrayBuffer]",kwe="[object DataView]",QO=YO?YO.prototype:void 0,cw=QO?QO.valueOf:void 0;function Swe(e,t,n,r,i,s,a){switch(n){case kwe:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case wwe:return!(e.byteLength!=t.byteLength||!s(new XO(e),new XO(t)));case hwe:case fwe:case gwe:return awe(+e,+t);case pwe:return e.name==t.name&&e.message==t.message;case ywe:case xwe:return e==t+"";case mwe:var o=lwe;case vwe:var l=r&uwe;if(o||(o=cwe),e.size!=t.size&&!l)return!1;var u=a.get(e);if(u)return u==t;r|=dwe,a.set(e,t);var d=owe(o(e),o(t),r,i,s,a);return a.delete(e),d;case bwe:if(cw)return cw.call(e)==cw.call(t)}return!1}var jwe=Swe;function _we(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var i8=_we,Ewe=i8,Twe=fr;function Nwe(e,t,n){var r=t(e);return Twe(e)?r:Ewe(r,n(e))}var Cwe=Nwe;function Awe(e,t){for(var n=-1,r=e==null?0:e.length,i=0,s=[];++n<r;){var a=e[n];t(a,n,e)&&(s[i++]=a)}return s}var Pwe=Awe;function Owe(){return[]}var Rwe=Owe,Iwe=Pwe,Mwe=Rwe,$we=Object.prototype,Dwe=$we.propertyIsEnumerable,ZO=Object.getOwnPropertySymbols,Lwe=ZO?function(e){return e==null?[]:(e=Object(e),Iwe(ZO(e),function(t){return Dwe.call(e,t)}))}:Mwe,Fwe=Lwe;function Bwe(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var Vwe=Bwe,qwe=Qs,Uwe=Zs,Wwe="[object Arguments]";function zwe(e){return Uwe(e)&&qwe(e)==Wwe}var Hwe=zwe,JO=Hwe,Kwe=Zs,s8=Object.prototype,Gwe=s8.hasOwnProperty,Ywe=s8.propertyIsEnumerable,Xwe=JO(function(){return arguments}())?JO:function(e){return Kwe(e)&&Gwe.call(e,"callee")&&!Ywe.call(e,"callee")},TT=Xwe,Hy={exports:{}};function Qwe(){return!1}var Zwe=Qwe;Hy.exports;(function(e,t){var n=us,r=Zwe,i=t&&!t.nodeType&&t,s=i&&!0&&e&&!e.nodeType&&e,a=s&&s.exports===i,o=a?n.Buffer:void 0,l=o?o.isBuffer:void 0,u=l||r;e.exports=u})(Hy,Hy.exports);var a8=Hy.exports,Jwe=9007199254740991,e1e=/^(?:0|[1-9]\d*)$/;function t1e(e,t){var n=typeof e;return t=t??Jwe,!!t&&(n=="number"||n!="symbol"&&e1e.test(e))&&e>-1&&e%1==0&&e<t}var NT=t1e,n1e=9007199254740991;function r1e(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=n1e}var CT=r1e,i1e=Qs,s1e=CT,a1e=Zs,o1e="[object Arguments]",l1e="[object Array]",c1e="[object Boolean]",u1e="[object Date]",d1e="[object Error]",h1e="[object Function]",f1e="[object Map]",p1e="[object Number]",m1e="[object Object]",g1e="[object RegExp]",y1e="[object Set]",v1e="[object String]",x1e="[object WeakMap]",b1e="[object ArrayBuffer]",w1e="[object DataView]",k1e="[object Float32Array]",S1e="[object Float64Array]",j1e="[object Int8Array]",_1e="[object Int16Array]",E1e="[object Int32Array]",T1e="[object Uint8Array]",N1e="[object Uint8ClampedArray]",C1e="[object Uint16Array]",A1e="[object Uint32Array]",bt={};bt[k1e]=bt[S1e]=bt[j1e]=bt[_1e]=bt[E1e]=bt[T1e]=bt[N1e]=bt[C1e]=bt[A1e]=!0;bt[o1e]=bt[l1e]=bt[b1e]=bt[c1e]=bt[w1e]=bt[u1e]=bt[d1e]=bt[h1e]=bt[f1e]=bt[p1e]=bt[m1e]=bt[g1e]=bt[y1e]=bt[v1e]=bt[x1e]=!1;function P1e(e){return a1e(e)&&s1e(e.length)&&!!bt[i1e(e)]}var O1e=P1e;function R1e(e){return function(t){return e(t)}}var o8=R1e,Ky={exports:{}};Ky.exports;(function(e,t){var n=mV,r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,s=i&&i.exports===r,a=s&&n.process,o=function(){try{var l=i&&i.require&&i.require("util").types;return l||a&&a.binding&&a.binding("util")}catch{}}();e.exports=o})(Ky,Ky.exports);var I1e=Ky.exports,M1e=O1e,$1e=o8,eR=I1e,tR=eR&&eR.isTypedArray,D1e=tR?$1e(tR):M1e,l8=D1e,L1e=Vwe,F1e=TT,B1e=fr,V1e=a8,q1e=NT,U1e=l8,W1e=Object.prototype,z1e=W1e.hasOwnProperty;function H1e(e,t){var n=B1e(e),r=!n&&F1e(e),i=!n&&!r&&V1e(e),s=!n&&!r&&!i&&U1e(e),a=n||r||i||s,o=a?L1e(e.length,String):[],l=o.length;for(var u in e)(t||z1e.call(e,u))&&!(a&&(u=="length"||i&&(u=="offset"||u=="parent")||s&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||q1e(u,l)))&&o.push(u);return o}var K1e=H1e,G1e=Object.prototype;function Y1e(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||G1e;return e===n}var X1e=Y1e;function Q1e(e,t){return function(n){return e(t(n))}}var c8=Q1e,Z1e=c8,J1e=Z1e(Object.keys,Object),eke=J1e,tke=X1e,nke=eke,rke=Object.prototype,ike=rke.hasOwnProperty;function ske(e){if(!tke(e))return nke(e);var t=[];for(var n in Object(e))ike.call(e,n)&&n!="constructor"&&t.push(n);return t}var ake=ske,oke=uT,lke=CT;function cke(e){return e!=null&&lke(e.length)&&!oke(e)}var rb=cke,uke=K1e,dke=ake,hke=rb;function fke(e){return hke(e)?uke(e):dke(e)}var AT=fke,pke=Cwe,mke=Fwe,gke=AT;function yke(e){return pke(e,gke,mke)}var vke=yke,nR=vke,xke=1,bke=Object.prototype,wke=bke.hasOwnProperty;function kke(e,t,n,r,i,s){var a=n&xke,o=nR(e),l=o.length,u=nR(t),d=u.length;
vendor: 4,794 bytes, line 573
573if(l!=d&&!a)return!1;for(var h=l;h--;){var f=o[h];if(!(a?f in t:wke.call(t,f)))return!1}var p=s.get(e),g=s.get(t);if(p&&g)return p==t&&g==e;var m=!0;s.set(e,t),s.set(t,e);for(var y=a;++h<l;){f=o[h];var v=e[f],x=t[f];if(r)var b=a?r(x,v,f,t,e,s):r(v,x,f,e,t,s);if(!(b===void 0?v===x||i(v,x,n,r,s):b)){m=!1;break}y||(y=f=="constructor")}if(m&&!y){var S=e.constructor,k=t.constructor;S!=k&&"constructor"in e&&"constructor"in t&&!(typeof S=="function"&&S instanceof S&&typeof k=="function"&&k instanceof k)&&(m=!1)}return s.delete(e),s.delete(t),m}var Ske=kke,jke=Ml,_ke=us,Eke=jke(_ke,"DataView"),Tke=Eke,Nke=Ml,Cke=us,Ake=Nke(Cke,"Promise"),Pke=Ake,Oke=Ml,Rke=us,Ike=Oke(Rke,"Set"),u8=Ike,Mke=Ml,$ke=us,Dke=Mke($ke,"WeakMap"),Lke=Dke,vS=Tke,xS=hT,bS=Pke,wS=u8,kS=Lke,d8=Qs,vd=yV,rR="[object Map]",Fke="[object Object]",iR="[object Promise]",sR="[object Set]",aR="[object WeakMap]",oR="[object DataView]",Bke=vd(vS),Vke=vd(xS),qke=vd(bS),Uke=vd(wS),Wke=vd(kS),Mo=d8;(vS&&Mo(new vS(new ArrayBuffer(1)))!=oR||xS&&Mo(new xS)!=rR||bS&&Mo(bS.resolve())!=iR||wS&&Mo(new wS)!=sR||kS&&Mo(new kS)!=aR)&&(Mo=function(e){var t=d8(e),n=t==Fke?e.constructor:void 0,r=n?vd(n):"";if(r)switch(r){case Bke:return oR;case Vke:return rR;case qke:return iR;case Uke:return sR;case Wke:return aR}return t});var zke=Mo,uw=JV,Hke=r8,Kke=jwe,Gke=Ske,lR=zke,cR=fr,uR=a8,Yke=l8,Xke=1,dR="[object Arguments]",hR="[object Array]",Um="[object Object]",Qke=Object.prototype,fR=Qke.hasOwnProperty;function Zke(e,t,n,r,i,s){var a=cR(e),o=cR(t),l=a?hR:lR(e),u=o?hR:lR(t);l=l==dR?Um:l,u=u==dR?Um:u;var d=l==Um,h=u==Um,f=l==u;if(f&&uR(e)){if(!uR(t))return!1;a=!0,d=!1}if(f&&!d)return s||(s=new uw),a||Yke(e)?Hke(e,t,n,r,i,s):Kke(e,t,l,n,r,i,s);if(!(n&Xke)){var p=d&&fR.call(e,"__wrapped__"),g=h&&fR.call(t,"__wrapped__");if(p||g){var m=p?e.value():e,y=g?t.value():t;return s||(s=new uw),i(m,y,n,r,s)}}return f?(s||(s=new uw),Gke(e,t,n,r,i,s)):!1}var Jke=Zke,eSe=Jke,pR=Zs;function h8(e,t,n,r,i){return e===t?!0:e==null||t==null||!pR(e)&&!pR(t)?e!==e&&t!==t:eSe(e,t,n,r,h8,i)}var PT=h8,tSe=JV,nSe=PT,rSe=1,iSe=2;function sSe(e,t,n,r){var i=n.length,s=i,a=!r;if(e==null)return!s;for(e=Object(e);i--;){var o=n[i];if(a&&o[2]?o[1]!==e[o[0]]:!(o[0]in e))return!1}for(;++i<s;){o=n[i];var l=o[0],u=e[l],d=o[1];if(a&&o[2]){if(u===void 0&&!(l in e))return!1}else{var h=new tSe;if(r)var f=r(u,d,l,e,t,h);if(!(f===void 0?nSe(d,u,rSe|iSe,r,h):f))return!1}}return!0}var aSe=sSe,oSe=po;function lSe(e){return e===e&&!oSe(e)}var f8=lSe,cSe=f8,uSe=AT;function dSe(e){for(var t=uSe(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,cSe(i)]}return t}var hSe=dSe;function fSe(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}var p8=fSe,pSe=aSe,mSe=hSe,gSe=p8;function ySe(e){var t=mSe(e);return t.length==1&&t[0][2]?gSe(t[0][0],t[0][1]):function(n){return n===e||pSe(n,e,t)}}var vSe=ySe;function xSe(e,t){return e!=null&&t in Object(e)}var bSe=xSe,wSe=kV,kSe=TT,SSe=fr,jSe=NT,_Se=CT,ESe=Bx;function TSe(e,t,n){t=wSe(t,e);for(var r=-1,i=t.length,s=!1;++r<i;){var a=ESe(t[r]);if(!(s=e!=null&&n(e,a)))break;e=e[a]}return s||++r!=i?s:(i=e==null?0:e.length,!!i&&_Se(i)&&jSe(a,i)&&(SSe(e)||kSe(e)))}var NSe=TSe,CSe=bSe,ASe=NSe;function PSe(e,t){return e!=null&&ASe(e,t,CSe)}var OSe=PSe,RSe=PT,ISe=SV,MSe=OSe,$Se=cT,DSe=f8,LSe=p8,FSe=Bx,BSe=1,VSe=2;function qSe(e,t){return $Se(e)&&DSe(t)?LSe(FSe(e),t):function(n){var r=ISe(n,e);return r===void 0&&r===t?MSe(n,e):RSe(t,r,BSe|VSe)}}var USe=qSe;function WSe(e){return e}var xd=WSe;function zSe(e){return function(t){return t==null?void 0:t[e]}}var HSe=zSe,KSe=gT;function GSe(e){return function(t){return KSe(t,e)}}var YSe=GSe,XSe=HSe,QSe=YSe,ZSe=cT,JSe=Bx;function eje(e){return ZSe(e)?XSe(JSe(e)):QSe(e)}var tje=eje,nje=vSe,rje=USe,ije=xd,sje=fr,aje=tje;function oje(e){return typeof e=="function"?e:e==null?ije:typeof e=="object"?sje(e)?rje(e[0],e[1]):nje(e):aje(e)}var mo=oje;function lje(e,t,n,r){for(var i=e.length,s=n+(r?1:-1);r?s--:++s<i;)if(t(e[s],s,e))return s;return-1}var cje=lje;function uje(e){return e!==e}var dje=uje;function hje(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}var fje=hje,pje=cje,mje=dje,gje=fje;function yje(e,t,n){return t===t?gje(e,t,n):pje(e,mje,n)}var vje=yje,xje=vje;function bje(e,t){var n=e==null?0:e.length;return!!n&&xje(e,t,0)>-1}var wje=bje;function kje(e,t,n){for(var r=-1,i=e==null?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}var Sje=kje;function jje(){}var _je=jje,dw=u8,Eje=_je,Tje=ET,Nje=1/0,Cje=dw&&1/Tje(new dw([,-0]))[1]==Nje?function(e){return new dw(e)}:Eje,Aje=Cje,Pje=e8,Oje=wje,Rje=Sje,Ije=n8,Mje=Aje,$je=ET,Dje=200;function Lje(e,t,n){var r=-1,i=Oje,s=e.length,a=!0,o=[],l=o;if(n)a=!1,i=Rje;else if(s>=Dje){var u=t?null:Mje(e);if(u)return $je(u);a=!1,i=Ije,l=new Pje}else l=t?[]:o;e:for(;++r<s;
573){var d=e[r],h=t?t(d):d;if(d=n||d!==0?d:0,a&&h===h){for(var f=l.length;f--;)if(l[f]===h)continue e;t&&l.push(h),o.push(d)}else i(l,h,n)||(l!==o&&l.push(h),o.push(d))}return o}var Fje=Lje,Bje=mo,Vje=Fje;function qje(e,t){return e&&e.length?Vje(e,Bje(t)):[]}var Uje=qje;const mR=tt(Uje);function m8(e,t,n){return t===!0?mR(e,n):Be(t)?mR(e,t):e}function Eu(e){"@babel/helpers - typeof";return Eu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Eu(e)}var Wje=["ref"];function gR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ms(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?gR(Object(n),!0).forEach(function(r){ib(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function zje(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function yR(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,y8(r.key),r)}}function Hje(e,t,n){return t&&yR(e.prototype,t),n&&yR(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Kje(e,t,n){return t=Gy(t),Gje(e,g8()?Reflect.construct(t,n||[],Gy(e).constructor):t.apply(e,n))}function Gje(e,t){if(t&&(Eu(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Yje(e)}function Yje(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function g8(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(g8=function(){return!!e})()}
vendor: 4,370 bytes, line 573
573function Gy(e){return Gy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Gy(e)}function Xje(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&SS(e,t)}function SS(e,t){return SS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},SS(e,t)}function ib(e,t,n){return t=y8(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function y8(e){var t=Qje(e,"string");return Eu(t)=="symbol"?t:t+""}function Qje(e,t){if(Eu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Eu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Zje(e,t){if(e==null)return{};var n=Jje(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Jje(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function e_e(e){return e.value}function t_e(e,t){if(A.isValidElement(e))return A.cloneElement(e,t);if(typeof e=="function")return A.createElement(e,t);t.ref;var n=Zje(t,Wje);return A.createElement(_T,n)}var vR=1,Wc=function(e){function t(){var n;zje(this,t);for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];return n=Kje(this,t,[].concat(i)),ib(n,"lastBoundingBox",{width:-1,height:-1}),n}return Xje(t,e),Hje(t,[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();return r.height=this.wrapperNode.offsetHeight,r.width=this.wrapperNode.offsetWidth,r}return null}},{key:"updateBBox",value:function(){var r=this.props.onBBoxUpdate,i=this.getBBox();i?(Math.abs(i.width-this.lastBoundingBox.width)>vR||Math.abs(i.height-this.lastBoundingBox.height)>vR)&&(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?ms({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(r){var i=this.props,s=i.layout,a=i.align,o=i.verticalAlign,l=i.margin,u=i.chartWidth,d=i.chartHeight,h,f;if(!r||(r.left===void 0||r.left===null)&&(r.right===void 0||r.right===null))if(a==="center"&&s==="vertical"){var p=this.getBBoxSnapshot();h={left:((u||0)-p.width)/2}}else h=a==="right"?{right:l&&l.right||0}:{left:l&&l.left||0};if(!r||(r.top===void 0||r.top===null)&&(r.bottom===void 0||r.bottom===null))if(o==="middle"){var g=this.getBBoxSnapshot();f={top:((d||0)-g.height)/2}}else f=o==="bottom"?{bottom:l&&l.bottom||0}:{top:l&&l.top||0};return ms(ms({},h),f)}},{key:"render",value:function(){var r=this,i=this.props,s=i.content,a=i.width,o=i.height,l=i.wrapperStyle,u=i.payloadUniqBy,d=i.payload,h=ms(ms({position:"absolute",width:a||"auto",height:o||"auto"},this.getDefaultPosition(l)),l);return A.createElement("div",{className:"recharts-legend-wrapper",style:h,ref:function(p){r.wrapperNode=p}},t_e(s,ms(ms({},this.props),{},{payload:m8(d,u,e_e)})))}}],[{key:"getWithHeight",value:function(r,i){var s=ms(ms({},this.defaultProps),r.props),a=s.layout;return a==="vertical"&&le(r.props.height)?{height:r.props.height}:a==="horizontal"?{width:r.props.width||i}:null}}])}(w.PureComponent);ib(Wc,"displayName","Legend");ib(Wc,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var xR=Up,n_e=TT,r_e=fr,bR=xR?xR.isConcatSpreadable:void 0;function i_e(e){return r_e(e)||n_e(e)||!!(bR&&e&&e[bR])}var s_e=i_e,a_e=i8,o_e=s_e;function v8(e,t,n,r,i){var s=-1,a=e.length;for(n||(n=o_e),i||(i=[]);++s<a;){var o=e[s];t>0&&n(o)?t>
vendor: 4,416 bytes, lines 573-574
5731?v8(o,t-1,n,r,i):a_e(i,o):r||(i[i.length]=o)}return i}var x8=v8;function l_e(e){return function(t,n,r){for(var i=-1,s=Object(t),a=r(t),o=a.length;o--;){var l=a[e?o:++i];if(n(s[l],l,s)===!1)break}return t}}var c_e=l_e,u_e=c_e,d_e=u_e(),h_e=d_e,f_e=h_e,p_e=AT;function m_e(e,t){return e&&f_e(e,t,p_e)}var b8=m_e,g_e=rb;function y_e(e,t){return function(n,r){if(n==null)return n;if(!g_e(n))return e(n,r);for(var i=n.length,s=t?i:-1,a=Object(n);(t?s--:++s<i)&&r(a[s],s,a)!==!1;);return n}}var v_e=y_e,x_e=b8,b_e=v_e,w_e=b_e(x_e),OT=w_e,k_e=OT,S_e=rb;function j_e(e,t){var n=-1,r=S_e(e)?Array(e.length):[];return k_e(e,function(i,s,a){r[++n]=t(i,s,a)}),r}var w8=j_e;function __e(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}var E_e=__e,wR=hd;function T_e(e,t){if(e!==t){var n=e!==void 0,r=e===null,i=e===e,s=wR(e),a=t!==void 0,o=t===null,l=t===t,u=wR(t);if(!o&&!u&&!s&&e>t||s&&a&&l&&!o&&!u||r&&a&&l||!n&&l||!i)return 1;if(!r&&!s&&!u&&e<t||u&&n&&i&&!r&&!s||o&&n&&i||!a&&i||!l)return-1}return 0}var N_e=T_e,C_e=N_e;function A_e(e,t,n){for(var r=-1,i=e.criteria,s=t.criteria,a=i.length,o=n.length;++r<a;){var l=C_e(i[r],s[r]);if(l){if(r>=o)return l;var u=n[r];return l*(u=="desc"?-1:1)}}return e.index-t.index}var P_e=A_e,hw=mT,O_e=gT,R_e=mo,I_e=w8,M_e=E_e,$_e=o8,D_e=P_e,L_e=xd,F_e=fr;function B_e(e,t,n){t.length?t=hw(t,function(s){return F_e(s)?function(a){return O_e(a,s.length===1?s[0]:s)}:s}):t=[L_e];var r=-1;t=hw(t,$_e(R_e));var i=I_e(e,function(s,a,o){var l=hw(t,function(u){return u(s)});return{criteria:l,index:++r,value:s}});return M_e(i,function(s,a){return D_e(s,a,n)})}var V_e=B_e;function q_e(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var U_e=q_e,W_e=U_e,kR=Math.max;function z_e(e,t,n){return t=kR(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,s=kR(r.length-t,0),a=Array(s);++i<s;)a[i]=r[t+i];i=-1;for(var o=Array(t+1);++i<t;)o[i]=r[i];return o[t]=n(a),W_e(e,this,o)}}var H_e=z_e;function K_e(e){return function(){return e}}var G_e=K_e,Y_e=Ml,X_e=function(){try{var e=Y_e(Object,"defineProperty");return e({},"",{}),e}catch{}}(),k8=X_e,Q_e=G_e,SR=k8,Z_e=xd,J_e=SR?function(e,t){return SR(e,"toString",{configurable:!0,enumerable:!1,value:Q_e(t),writable:!0})}:Z_e,eEe=J_e,tEe=800,nEe=16,rEe=Date.now;function iEe(e){var t=0,n=0;return function(){var r=rEe(),i=nEe-(r-n);if(n=r,i>0){if(++t>=tEe)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var sEe=iEe,aEe=eEe,oEe=sEe,lEe=oEe(aEe),cEe=lEe,uEe=xd,dEe=H_e,hEe=cEe;function fEe(e,t){return hEe(dEe(e,t,uEe),e+"")}var pEe=fEe,mEe=dT,gEe=rb,yEe=NT,vEe=po;function xEe(e,t,n){if(!vEe(n))return!1;var r=typeof t;return(r=="number"?gEe(n)&&yEe(t,n.length):r=="string"&&t in n)?mEe(n[t],e):!1}var sb=xEe,bEe=x8,wEe=V_e,kEe=pEe,jR=sb,SEe=kEe(function(e,t){if(e==null)return[];var n=t.length;return n>1&&jR(e,t[0],t[1])?t=[]:n>2&&jR(t[0],t[1],t[2])&&(t=[t[0]]),wEe(e,bEe(t,1),[])}),jEe=SEe;const RT=tt(jEe);function Mf(e){"@babel/helpers - typeof";return Mf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Mf(e)}function jS(){return jS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jS.apply(this,arguments)}function _Ee(e,t){return CEe(e)||NEe(e,t)||TEe(e,t)||EEe()}function EEe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 574In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function TEe(e,t){if(e){if(typeof e=="string")return _R(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _R(e,t)}}function _R(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function NEe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,a,o=[],l=!0,u=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(l=(r=s.call(n)).done)&&(o.push(r.value),o.length!==t);l=!0);}catch(d){u=!0,i=d}
vendor: 28,723 bytes, lines 574-580
574finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return o}}function CEe(e){if(Array.isArray(e))return e}function ER(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function fw(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ER(Object(n),!0).forEach(function(r){AEe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ER(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function AEe(e,t,n){return t=PEe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function PEe(e){var t=OEe(e,"string");return Mf(t)=="symbol"?t:t+""}function OEe(e,t){if(Mf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Mf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function REe(e){return Array.isArray(e)&&sn(e[0])&&sn(e[1])?e.join(" ~ "):e}var IEe=function(t){var n=t.separator,r=n===void 0?" : ":n,i=t.contentStyle,s=i===void 0?{}:i,a=t.itemStyle,o=a===void 0?{}:a,l=t.labelStyle,u=l===void 0?{}:l,d=t.payload,h=t.formatter,f=t.itemSorter,p=t.wrapperClassName,g=t.labelClassName,m=t.label,y=t.labelFormatter,v=t.accessibilityLayer,x=v===void 0?!1:v,b=function(){if(d&&d.length){var C={padding:0,margin:0},M=(f?RT(d,f):d).map(function(R,D){if(R.type==="none")return null;var L=fw({display:"block",paddingTop:4,paddingBottom:4,color:R.color||"#000"},o),B=R.formatter||h||REe,I=R.value,O=R.name,V=I,z=O;if(B&&V!=null&&z!=null){var q=B(I,O,R,D,d);if(Array.isArray(q)){var X=_Ee(q,2);V=X[0],z=X[1]}else V=q}return A.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(D),style:L},sn(z)?A.createElement("span",{className:"recharts-tooltip-item-name"},z):null,sn(z)?A.createElement("span",{className:"recharts-tooltip-item-separator"},r):null,A.createElement("span",{className:"recharts-tooltip-item-value"},V),A.createElement("span",{className:"recharts-tooltip-item-unit"},R.unit||""))});return A.createElement("ul",{className:"recharts-tooltip-item-list",style:C},M)}return null},S=fw({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},s),k=fw({margin:0},u),j=!Ke(m),_=j?m:"",E=Ye("recharts-default-tooltip",p),T=Ye("recharts-tooltip-label",g);j&&y&&d!==void 0&&d!==null&&(_=y(m,d));var N=x?{role:"status","aria-live":"assertive"}:{};return A.createElement("div",jS({className:E,style:S},N),A.createElement("p",{className:T,style:k},A.isValidElement(_)?_:"".concat(_)),b())};function $f(e){"@babel/helpers - typeof";return $f=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$f(e)}function Wm(e,t,n){return t=MEe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function MEe(e){var t=$Ee(e,"string");return $f(t)=="symbol"?t:t+""}function $Ee(e,t){if($f(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if($f(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var zd="recharts-tooltip-wrapper",DEe={visibility:"hidden"};function LEe(e){var t=e.coordinate,n=e.translateX,r=e.translateY;return Ye(zd,Wm(Wm(Wm(Wm({},"".concat(zd,"-right"),le(n)&&t&&le(t.x)&&n>=t.x),"".concat(zd,"-left"),le(n)&&t&&le(t.x)&&n<t.x),"".concat(zd,"-bottom"),le(r)&&t&&le(t.y)&&r>=t.y),"".concat(zd,"-top"),le(r)&&t&&le(t.y)&&r<t.y))}function TR(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.key,i=e.offsetTopLeft,s=e.position,a=e.reverseDirection,o=e.tooltipDimension,l=e.viewBox,u=e.viewBoxDimension;if(s&&le(s[r]))return s[r];var d=n[r]-o-i,h=n[r]+i;if(t[r])return a[r]?d:h;if(a[r]){var f=d,p=l[r];return f<p?Math.max(h,l[r]):Math.max(d,l[r])}var g=h+o,m=l[r]+u;return g>m?Math.max(d,l[r]):Math.max(h,l[r])}function FEe(e){var t=e.translateX,n=e.translateY,r=e.useTranslate3d;return{transform:r?"translate3d(".concat(t,"px, ").concat(n,"px, 0)"):"translate(".concat(t,"px, ").concat(n,"px)")}}function BEe(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.offsetTopLeft,i=e.position,s=e.reverseDirection,a=e.tooltipBox,o=e.useTranslate3d,l=e.viewBox,u,d,h;return a.height>0&&a.width>0&&n?(d=TR({allowEscapeViewBox:t,coordinate:n,key:"x",offsetTopLeft:r,position:i,reverseDirection:s,tooltipDimension:a.width,viewBox:l,viewBoxDimension:l.width}),h=TR({allowEscapeViewBox:t,coordinate:n,key:"y",offsetTopLeft:r,position:i,reverseDirection:s,tooltipDimension:a.height,viewBox:l,viewBoxDimension:l.height}),u=FEe({translateX:d,translateY:h,useTranslate3d:o})):u=DEe,{cssProperties:u,cssClasses:LEe({translateX:d,translateY:h,coordinate:n})}}function Tu(e){"@babel/helpers - typeof";return Tu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Tu(e)}function NR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function CR(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?NR(Object(n),!0).forEach(function(r){ES(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):NR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function VEe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qEe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,j8(r.key),r)}}function UEe(e,t,n){return t&&qEe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function WEe(e,t,n){return t=Yy(t),zEe(e,S8()?Reflect.construct(t,n||[],Yy(e).constructor):t.apply(e,n))}function zEe(e,t){if(t&&(Tu(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return HEe(e)}function HEe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function S8(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(S8=function(){return!!e})()}function Yy(e){return Yy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Yy(e)}function KEe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_S(e,t)}function _S(e,t){return _S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},_S(e,t)}function ES(e,t,n){return t=j8(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function j8(e){var t=GEe(e,"string");return Tu(t)=="symbol"?t:t+""}function GEe(e,t){if(Tu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Tu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var AR=1,YEe=function(e){function t(){var n;VEe(this,t);for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];return n=WEe(this,t,[].concat(i)),ES(n,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),ES(n,"handleKeyDown",function(a){if(a.key==="Escape"){var o,l,u,d;n.setState({dismissed:!0,dismissedAtCoordinate:{x:(o=(l=n.props.coordinate)===null||l===void 0?void 0:l.x)!==null&&o!==void 0?o:0,y:(u=(d=n.props.coordinate)===null||d===void 0?void 0:d.y)!==null&&u!==void 0?u:0}})}}),n}return KEe(t,e),UEe(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();(Math.abs(r.width-this.state.lastBoundingBox.width)>AR||Math.abs(r.height-this.state.lastBoundingBox.height)>AR)&&this.setState({lastBoundingBox:{width:r.width,height:r.height}})}else(this.state.lastBoundingBox.width!==-1||this.state.lastBoundingBox.height!==-1)&&this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var r,i;this.props.active&&this.updateBBox(),this.state.dismissed&&(((r=this.props.coordinate)===null||r===void 0?void 0:r.x)!==this.state.dismissedAtCoordinate.x||((i=this.props.coordinate)===null||i===void 0?void 0:i.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var r=this,i=this.props,s=i.active,a=i.allowEscapeViewBox,o=i.animationDuration,l=i.animationEasing,u=i.children,d=i.coordinate,h=i.hasPayload,f=i.isAnimationActive,p=i.offset,g=i.position,m=i.reverseDirection,y=i.useTranslate3d,v=i.viewBox,x=i.wrapperStyle,b=BEe({allowEscapeViewBox:a,coordinate:d,offsetTopLeft:p,position:g,reverseDirection:m,tooltipBox:this.state.lastBoundingBox,useTranslate3d:y,viewBox:v}),S=b.cssClasses,k=b.cssProperties,j=CR(CR({transition:f&&s?"transform ".concat(o,"ms ").concat(l):void 0},k),{},{pointerEvents:"none",visibility:!this.state.dismissed&&s&&h?"visible":"hidden",position:"absolute",top:0,left:0},x);return A.createElement("div",{tabIndex:-1,className:S,style:j,ref:function(E){r.wrapperNode=E}},u)}}])}(w.PureComponent),XEe=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},ll={isSsr:XEe(),get:function(t){return ll[t]},set:function(t,n){if(typeof t=="string")ll[t]=n;else{var r=Object.keys(t);r&&r.length&&r.forEach(function(i){ll[i]=t[i]})}}};function Nu(e){"@babel/helpers - typeof";return Nu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Nu(e)}function PR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function OR(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?PR(Object(n),!0).forEach(function(r){IT(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):PR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function QEe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ZEe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,E8(r.key),r)}}function JEe(e,t,n){return t&&ZEe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function eTe(e,t,n){return t=Xy(t),tTe(e,_8()?Reflect.construct(t,n||[],Xy(e).constructor):t.apply(e,n))}function tTe(e,t){if(t&&(Nu(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return nTe(e)}function nTe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _8(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_8=function(){return!!e})()}function Xy(e){return Xy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Xy(e)}function rTe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&TS(e,t)}function TS(e,t){return TS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},TS(e,t)}function IT(e,t,n){return t=E8(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function E8(e){var t=iTe(e,"string");return Nu(t)=="symbol"?t:t+""}function iTe(e,t){if(Nu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Nu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function sTe(e){return e.dataKey}function aTe(e,t){return A.isValidElement(e)?A.cloneElement(e,t):typeof e=="function"?A.createElement(e,t):A.createElement(IEe,t)}var xs=function(e){function t(){return QEe(this,t),eTe(this,t,arguments)}return rTe(t,e),JEe(t,[{key:"render",value:function(){var r=this,i=this.props,s=i.active,a=i.allowEscapeViewBox,o=i.animationDuration,l=i.animationEasing,u=i.content,d=i.coordinate,h=i.filterNull,f=i.isAnimationActive,p=i.offset,g=i.payload,m=i.payloadUniqBy,y=i.position,v=i.reverseDirection,x=i.useTranslate3d,b=i.viewBox,S=i.wrapperStyle,k=g??[];h&&k.length&&(k=m8(g.filter(function(_){return _.value!=null&&(_.hide!==!0||r.props.includeHidden)}),m,sTe));var j=k.length>0;return A.createElement(YEe,{allowEscapeViewBox:a,animationDuration:o,animationEasing:l,isAnimationActive:f,active:s,coordinate:d,hasPayload:j,offset:p,position:y,reverseDirection:v,useTranslate3d:x,viewBox:b,wrapperStyle:S},aTe(u,OR(OR({},this.props),{},{payload:k})))}}])}(w.PureComponent);IT(xs,"displayName","Tooltip");IT(xs,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!ll.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 oTe=us,lTe=function(){return oTe.Date.now()},cTe=lTe,uTe=/\s/;function dTe(e){for(var t=e.length;t--&&uTe.test(e.charAt(t)););return t}var hTe=dTe,fTe=hTe,pTe=/^\s+/;function mTe(e){return e&&e.slice(0,fTe(e)+1).replace(pTe,"")}var gTe=mTe,yTe=gTe,RR=po,vTe=hd,IR=NaN,xTe=/^[-+]0x[0-9a-f]+$/i,bTe=/^0b[01]+$/i,wTe=/^0o[0-7]+$/i,kTe=parseInt;function STe(e){if(typeof e=="number")return e;if(vTe(e))return IR;if(RR(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=RR(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=yTe(e);var n=bTe.test(e);return n||wTe.test(e)?kTe(e.slice(2),n?2:8):xTe.test(e)?IR:+e}var T8=STe,jTe=po,pw=cTe,MR=T8,_Te="Expected a function",ETe=Math.max,TTe=Math.min;function NTe(e,t,n){var r,i,s,a,o,l,u=0,d=!1,h=!1,f=!0;if(typeof e!="function")throw new TypeError(_Te);t=MR(t)||0,jTe(n)&&(d=!!n.leading,h="maxWait"in n,s=h?ETe(MR(n.maxWait)||0,t):s,f="trailing"in n?!!n.trailing:f);function p(j){var _=r,E=i;return r=i=void 0,u=j,a=e.apply(E,_),a}function g(j){return u=j,o=setTimeout(v,t),d?p(j):a}function m(j){var _=j-l,E=j-u,T=t-_;return h?TTe(T,s-E):T}function y(j){var _=j-l,E=j-u;return l===void 0||_>=t||_<0||h&&E>=s}function v(){var j=pw();if(y(j))return x(j);o=setTimeout(v,m(j))}function x(j){return o=void 0,f&&r?p(j):(r=i=void 0,a)}function b(){o!==void 0&&clearTimeout(o),u=0,r=l=i=o=void 0}function S(){return o===void 0?a:x(pw())}function k(){var j=pw(),_=y(j);if(r=arguments,i=this,l=j,_){if(o===void 0)return g(l);if(h)return clearTimeout(o),o=setTimeout(v,t),p(l)}return o===void 0&&(o=setTimeout(v,t)),a}return k.cancel=b,k.flush=S,k}var CTe=NTe,ATe=CTe,PTe=po,OTe="Expected a function";function RTe(e,t,n){var r=!0,i=!0;if(typeof e!="function")throw new TypeError(OTe);return PTe(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),ATe(e,t,{leading:r,maxWait:t,trailing:i})}var ITe=RTe;const N8=tt(ITe);function Df(e){"@babel/helpers - typeof";return Df=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Df(e)}function $R(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function zm(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?$R(Object(n),!0).forEach(function(r){MTe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$R(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function MTe(e,t,n){return t=$Te(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $Te(e){var t=DTe(e,"string");return Df(t)=="symbol"?t:t+""}function DTe(e,t){if(Df(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Df(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function LTe(e,t){return qTe(e)||VTe(e,t)||BTe(e,t)||FTe()}function FTe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 575In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function BTe(e,t){if(e){if(typeof e=="string")return DR(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return DR(e,t)}}function DR(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function VTe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,a,o=[],l=!0,u=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(l=(r=s.call(n)).done)&&(o.push(r.value),o.length!==t);l=!0);}catch(d){u=!0,i=d}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return o}}function qTe(e){if(Array.isArray(e))return e}var UTe=w.forwardRef(function(e,t){var n=e.aspect,r=e.initialDimension,i=r===void 0?{width:-1,height:-1}:r,s=e.width,a=s===void 0?"100%":s,o=e.height,l=o===void 0?"100%":o,u=e.minWidth,d=u===void 0?0:u,h=e.minHeight,f=e.maxHeight,p=e.children,g=e.debounce,m=g===void 0?0:g,y=e.id,v=e.className,x=e.onResize,b=e.style,S=b===void 0?{}:b,k=w.useRef(null),j=w.useRef();j.current=x,w.useImperativeHandle(t,function(){return Object.defineProperty(k.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),k.current},configurable:!0})});var _=w.useState({containerWidth:i.width,containerHeight:i.height}),E=LTe(_,2),T=E[0],N=E[1],P=w.useCallback(function(M,R){N(function(D){var L=Math.round(M),B=Math.round(R);return D.containerWidth===L&&D.containerHeight===B?D:{containerWidth:L,containerHeight:B}})},[]);w.useEffect(function(){var M=function(O){var V,z=O[0].contentRect,q=z.width,X=z.height;P(q,X),(V=j.current)===null||V===void 0||V.call(j,q,X)};m>0&&(M=N8(M,m,{trailing:!0,leading:!1}));var R=new ResizeObserver(M),D=k.current.getBoundingClientRect(),L=D.width,B=D.height;return P(L,B),R.observe(k.current),function(){R.disconnect()}},[P,m]);var C=w.useMemo(function(){var M=T.containerWidth,R=T.containerHeight;if(M<0||R<0)return null;Ps(Ho(a)||Ho(l),`The width(%s) and height(%s) are both fixed numbers, 576 maybe you don't need to use a ResponsiveContainer.`,a,l),Ps(!n||n>0,"The aspect(%s) must be greater than zero.",n);var D=Ho(a)?M:a,L=Ho(l)?R:l;n&&n>0&&(D?L=D/n:L&&(D=L*n),f&&L>f&&(L=f)),Ps(D>0||L>0,`The width(%s) and height(%s) of chart should be greater than 0, 577 please check the style of container, or the props width(%s) and height(%s), 578 or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the 579 height and width.`,D,L,a,l,d,h,n);var B=!Array.isArray(p)&&As(p.type).endsWith("Chart");return A.Children.map(p,function(I){return A.isValidElement(I)?w.cloneElement(I,zm({width:D,height:L},B?{style:zm({height:"100%",width:"100%",maxHeight:L,maxWidth:D},I.props.style)}:{})):I})},[n,p,l,f,h,d,T,a]);return A.createElement("div",{id:y?"".concat(y):void 0,className:Ye("recharts-responsive-container",v),style:zm(zm({},S),{},{width:a,height:l,minWidth:d,minHeight:h,maxHeight:f}),ref:k},C)}),MT=function(t){return null};MT.displayName="Cell";function Lf(e){"@babel/helpers - typeof";return Lf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Lf(e)}function LR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function NS(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?LR(Object(n),!0).forEach(function(r){WTe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):LR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function WTe(e,t,n){return t=zTe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zTe(e){var t=HTe(e,"string");return Lf(t)=="symbol"?t:t+""}function HTe(e,t){if(Lf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Lf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ec={widthCache:{},cacheCount:0},KTe=2e3,GTe={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},FR="recharts_measurement_span";function YTe(e){var t=NS({},e);return Object.keys(t).forEach(function(n){t[n]||delete t[n]}),t}var BR=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||ll.isSsr)return{width:0,height:0};var r=YTe(n),i=JSON.stringify({text:t,copyStyle:r});if(ec.widthCache[i])return ec.widthCache[i];try{var s=document.getElementById(FR);s||(s=document.createElement("span"),s.setAttribute("id",FR),s.setAttribute("aria-hidden","true"),document.body.appendChild(s));var a=NS(NS({},GTe),r);Object.assign(s.style,a),s.textContent="".concat(t);var o=s.getBoundingClientRect(),l={width:o.width,height:o.height};return ec.widthCache[i]=l,++ec.cacheCount>KTe&&(ec.cacheCount=0,ec.widthCache={}),l}catch{return{width:0,height:0}}},XTe=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function Ff(e){"@babel/helpers - typeof";return Ff=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ff(e)}function Qy(e,t){return eNe(e)||JTe(e,t)||ZTe(e,t)||QTe()}function QTe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 580In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ZTe(e,t){if(e){if(typeof e=="string")return VR(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return VR(e,t)}}function VR(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function JTe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,a,o=[],l=!0,u=!1;try{if(s=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=s.call(n)).done)&&(o.push(r.value),o.length!==t);l=!0);}catch(d){u=!0,i=d}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return o}}function eNe(e){if(Array.isArray(e))return e}function tNe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qR(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,rNe(r.key),r)}}function nNe(e,t,n){return t&&qR(e.prototype,t),n&&qR(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function rNe(e){var t=iNe(e,"string");return Ff(t)=="symbol"?t:t+""}function iNe(e,t){if(Ff(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ff(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var UR=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,WR=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,sNe=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,aNe=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,C8={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},oNe=Object.keys(C8),Ec="NaN";function lNe(e,t){return e*C8[t]}var Hm=function(){function e(t,n){tNe(this,e),this.num=t,this.unit=n,this.num=t,this.unit=n,Number.isNaN(t)&&(this.unit=""),n!==""&&!sNe.test(n)&&(this.num=NaN,this.unit=""),oNe.includes(n)&&(this.num=lNe(t,n),this.unit="px")}return nNe(e,[{key:"add",value:function(n){return this.unit!==n.unit?new e(NaN,""):new e(this.num+n.num,this.unit)}},{key:"subtract",value:function(n){return this.unit!==n.unit?new e(NaN,""):new e(this.num-n.num,this.unit)}},{key:"multiply",value:function(n){return this.unit!==""&&n.unit!==""&&this.unit!==n.unit?new e(NaN,""):new e(this.num*n.num,this.unit||n.unit)}},{key:"divide",value:function(n){return this.unit!==""&&n.unit!==""&&this.unit!==n.unit?new e(NaN,""):new e(this.num/n.num,this.unit||n.unit)}},{key:"toString",value:function(){return"".concat(this.num).concat(this.unit)}},{key:"isNaN",value:function(){return Number.isNaN(this.num)}}],[{key:"parse",value:function(n){var r,i=(r=aNe.exec(n))!==null&&r!==void 0?r:[],s=Qy(i,3),a=s[1],o=s[2];return new e(parseFloat(a),o??"")}}])}();function A8(e){if(e.includes(Ec))return Ec;for(var t=e;t.includes("*")||t.includes("/");){var n,r=(n=UR.exec(t))!==null&&n!==void 0?n:[],i=Qy(r,4),s=i[1],a=i[2],o=i[3],l=Hm.parse(s??""),u=Hm.parse(o??""),d=a==="*"?l.multiply(u):l.divide(u);if(d.isNaN())return Ec;t=t.replace(UR,d.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var h,f=(h=WR.exec(t))!==null&&h!==void 0?h:[],p=Qy(f,4),g=p[1],m=p[2],y=p[3],v=Hm.parse(g??""),x=Hm.parse(y??""),b=m==="+"?v.add(x):v.subtract(x);if(b.isNaN())return Ec;t=t.replace(WR,b.toString())}return t}var zR=/\(([^()]*)\)/;function cNe(e){for(var t=e;t.includes("(");){var n=zR.exec(t),r=Qy(n,2),i=r[1];t=t.replace(zR,A8(i))}return t}function uNe(e){var t=e.replace(/\s+/g,"");return t=cNe(t),t=A8(t),t}function dNe(e){try{return uNe(e)}catch{return Ec}}function mw(e){var t=dNe(e.slice(5,-1));return t===Ec?"":t}var hNe=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],fNe=["dx","dy","angle","className","breakAll"];function CS(){return CS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},CS.apply(this,arguments)}function HR(e,t){if(e==null)return{};var n=pNe(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function pNe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function KR(e,t){return vNe(e)||yNe(e,t)||gNe(e,t)||mNe()}
580function mNe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 581In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function gNe(e,t){if(e){if(typeof e=="string")return GR(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return GR(e,t)}}function GR(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function yNe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,a,o=[],l=!0,u=!1;try{if(s=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=s.call(n)).done)&&(o.push(r.value),o.length!==t);l=!0);}catch(d){u=!0,i=d}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return o}}function vNe(e){if(Array.isArray(e))return e}var P8=/[ \f\n\r\t\v\u2028\u2029]+/,O8=function(t){var n=t.children,r=t.breakAll,i=t.style;try{var s=[];Ke(n)||(r?s=n.toString().split(""):s=n.toString().split(P8));var a=s.map(function(l){return{word:l,width:BR(l,i).width}}),o=r?0:BR(" ",i).width;return{wordsWithComputedWidth:a,spaceWidth:o}}catch{return null}},xNe=function(t,n,r,i,s){var a=t.maxLines,o=t.children,l=t.style,u=t.breakAll,d=le(a),h=o,f=function(){var D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return D.reduce(function(L,B){var I=B.word,O=B.width,V=L[L.length-1];if(V&&(i==null||s||V.width+O+r<Number(i)))V.words.push(I),V.width+=O+r;else{var z={words:[I],width:O};L.push(z)}return L},[])},p=f(n),g=function(D){return D.reduce(function(L,B){return L.width>B.width?L:B})};if(!d)return p;for(var m="â¦",y=function(D){var L=h.slice(0,D),B=O8({breakAll:u,style:l,children:L+m}).wordsWithComputedWidth,I=f(B),O=I.length>a||g(I).width>Number(i);return[O,I]},v=0,x=h.length-1,b=0,S;v<=x&&b<=h.length-1;){var k=Math.floor((v+x)/2),j=k-1,_=y(j),E=KR(_,2),T=E[0],N=E[1],P=y(k),C=KR(P,1),M=C[0];if(!T&&!M&&(v=k+1),T&&M&&(x=k-1),!T&&M){S=N;break}b++}return S||p},YR=function(t){var n=Ke(t)?[]:t.toString().split(P8);return[{words:n}]},bNe=function(t){var n=t.width,r=t.scaleToFit,i=t.children,s=t.style,a=t.breakAll,o=t.maxLines;if((n||r)&&!ll.isSsr){var l,u,d=O8({breakAll:a,children:i,style:s});if(d){var h=d.wordsWithComputedWidth,f=d.spaceWidth;l=h,u=f}else return YR(i);return xNe({breakAll:a,children:i,maxLines:o,style:s},l,u,n,r)}return YR(i)},XR="#808080",Cu=function(t){var n=t.x,r=n===void 0?0:n,i=t.y,s=i===void 0?0:i,a=t.lineHeight,o=a===void 0?"1em":a,l=t.capHeight,u=l===void 0?"0.71em":l,d=t.scaleToFit,h=d===void 0?!1:d,f=t.textAnchor,p=f===void 0?"start":f,g=t.verticalAnchor,m=g===void 0?"end":g,y=t.fill,v=y===void 0?XR:y,x=HR(t,hNe),b=w.useMemo(function(){return bNe({breakAll:x.breakAll,children:x.children,maxLines:x.maxLines,scaleToFit:h,style:x.style,width:x.width})},[x.breakAll,x.children,x.maxLines,h,x.style,x.width]),S=x.dx,k=x.dy,j=x.angle,_=x.className,E=x.breakAll,T=HR(x,fNe);if(!sn(r)||!sn(s))return null;var N=r+(le(S)?S:0),P=s+(le(k)?k:0),C;switch(m){case"start":C=mw("calc(".concat(u,")"));break;case"middle":C=mw("calc(".concat((b.length-1)/2," * -").concat(o," + (").concat(u," / 2))"));break;default:C=mw("calc(".concat(b.length-1," * -").concat(o,")"));break}var M=[];if(h){var R=b[0].width,D=x.width;M.push("scale(".concat((le(D)?D/R:1)/R,")"))}return j&&M.push("rotate(".concat(j,", ").concat(N,", ").concat(P,")")),M.length&&(T.transform=M.join(" ")),A.createElement("text",CS({},Fe(T,!0),{x:N,y:P,className:Ye("recharts-text",_),textAnchor:p,fill:v.includes("url")?XR:v}),b.map(function(L,B){var I=L.words.join(E?"":" ");return A.createElement("tspan",{x:N,dy:B===0?C:o,key:"".concat(I,"-").concat(B)},I)}))};function Ya(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function wNe(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function $T(e){let t,n,r;e.length!==2?(t=Ya,n=(o,l)=>Ya(e(o),l),r=(o,l)=>e(o)-l):(t=e===Ya||e===wNe?e:kNe,n=e,r=e);function i(o,l,u=0,d=o.length){if(u<d){if(t(l,l)!==0)return d;do{const h=u+d>>>1;n(o[h],l)<0?u=h+1:d=h}while(u<d)}return u}function s(o,l,u=0,d=o.length){if(u<d){if(t(l,l)!==0)return d;do{const h=u+d>>>1;n(o[h],l)<=0?u=h+1:d=h}while(u<d)}return u}function a(o,l,u=0,d=o.length){const h=i(o,l,u,d-1);return h>u&&r(o[h-1],l)>-r(o[h],l)?h-1:h}return{left:i,center:a,right:s}}function kNe(){return 0}function R8(e){return e===null?NaN:+e}function*SNe(e,t){for(let n of e)n!=null&&(n=+n)>=n&&(yield n)}const jNe=$T(Ya),Hp=jNe.right;$T(R8).center;class QR extends Map{constructor(t,n=TNe){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,i]of t)this.set(r,i)}get(t){return super.get(ZR(this,t))}has(t){return super.has(ZR(this,t))}set(t,n){return super.set(_Ne(this,t),n)}delete(t){return super.delete(ENe(this,t))}}function ZR({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function _Ne({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function ENe({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function TNe(e){return e!==null&&typeof e=="object"?e.valueOf():e}
581function NNe(e=Ya){if(e===Ya)return I8;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,n)=>{const r=e(t,n);return r||r===0?r:(e(n,n)===0)-(e(t,t)===0)}}function I8(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const CNe=Math.sqrt(50),ANe=Math.sqrt(10),PNe=Math.sqrt(2);function Zy(e,t,n){const r=(t-e)/Math.max(0,n),i=Math.floor(Math.log10(r)),s=r/Math.pow(10,i),a=s>=CNe?10:s>=ANe?5:s>=PNe?2:1;let o,l,u;return i<0?(u=Math.pow(10,-i)/a,o=Math.round(e*u),l=Math.round(t*u),o/u<e&&++o,l/u>t&&--l,u=-u):(u=Math.pow(10,i)*a,o=Math.round(e/u),l=Math.round(t/u),o*u<e&&++o,l*u>t&&--l),l<o&&.5<=n&&n<2?Zy(e,t,n*2):[o,l,u]}function AS(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];const r=t<e,[i,s,a]=r?Zy(t,e,n):Zy(e,t,n);if(!(s>=i))return[];const o=s-i+1,l=new Array(o);if(r)if(a<0)for(let u=0;u<o;++u)l[u]=(s-u)/-a;else for(let u=0;u<o;++u)l[u]=(s-u)*a;else if(a<0)for(let u=0;u<o;++u)l[u]=(i+u)/-a;else for(let u=0;u<o;++u)l[u]=(i+u)*a;return l}function PS(e,t,n){return t=+t,e=+e,n=+n,Zy(e,t,n)[2]}function OS(e,t,n){t=+t,e=+e,n=+n;const r=t<e,i=r?PS(t,e,n):PS(e,t,n);return(r?-1:1)*(i<0?1/-i:i)}function JR(e,t){let n;for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);return n}function eI(e,t){let n;for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);return n}function M8(e,t,n=0,r=1/0,i){if(t=Math.floor(t),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(e.length-1,r)),!(n<=t&&t<=r))return e;for(i=i===void 0?I8:NNe(i);r>n;){if(r-n>600){const l=r-n+1,u=t-n+1,d=Math.log(l),h=.5*Math.exp(2*d/3),f=.5*Math.sqrt(d*h*(l-h)/l)*(u-l/2<0?-1:1),p=Math.max(n,Math.floor(t-u*h/l+f)),g=Math.min(r,Math.floor(t+(l-u)*h/l+f));M8(e,t,p,g,i)}const s=e[t];let a=n,o=r;for(Hd(e,n,t),i(e[r],s)>0&&Hd(e,n,r);a<o;){for(Hd(e,a,o),++a,--o;i(e[a],s)<0;)++a;for(;i(e[o],s)>0;)--o}i(e[n],s)===0?Hd(e,n,o):(++o,Hd(e,o,r)),o<=t&&(n=o+1),t<=o&&(r=o-1)}return e}function Hd(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function ONe(e,t,n){if(e=Float64Array.from(SNe(e)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return eI(e);if(t>=1)return JR(e);var r,i=(r-1)*t,s=Math.floor(i),a=JR(M8(e,s).subarray(0,s+1)),o=eI(e.subarray(s+1));return a+(o-a)*(i-s)}}function RNe(e,t,n=R8){if(!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,i=(r-1)*t,s=Math.floor(i),a=+n(e[s],s,e),o=+n(e[s+1],s+1,e);return a+(o-a)*(i-s)}}function INe(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=Math.max(0,Math.ceil((t-e)/n))|0,s=new Array(i);++r<i;)s[r]=e+r*n;return s}function ni(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function Js(e,t){switch(arguments.length){case 0:break;case 1:{typeof e=="function"?this.interpolator(e):this.range(e);break}default:{this.domain(e),typeof t=="function"?this.interpolator(t):this.range(t);break}}return this}const RS=Symbol("implicit");function DT(){var e=new QR,t=[],n=[],r=RS;function i(s){let a=e.get(s);if(a===void 0){if(r!==RS)return r;e.set(s,a=t.push(s)-1)}return n[a%n.length]}return i.domain=function(s){if(!arguments.length)return t.slice();t=[],e=new QR;for(const a of s)e.has(a)||e.set(a,t.push(a)-1);return i},i.range=function(s){return arguments.length?(n=Array.from(s),i):n.slice()},i.unknown=function(s){return arguments.length?(r=s,i):r},i.copy=function(){return DT(t,n).unknown(r)},ni.apply(i,arguments),i}function Bf(){var e=DT().unknown(void 0),t=e.domain,n=e.range,r=0,i=1,s,a,o=!1,l=0,u=0,d=.5;delete e.unknown;function h(){var f=t().length,p=i<r,g=p?i:r,m=p?r:i;s=(m-g)/Math.max(1,f-l+u*2),o&&(s=Math.floor(s)),g+=(m-g-s*(f-l))*d,a=s*(1-l),o&&(g=Math.round(g),a=Math.round(a));var y=INe(f).map(function(v){return g+s*v});return n(p?y.reverse():y)}return e.domain=function(f){return arguments.length?(t(f),h()):t()},e.range=function(f){return arguments.length?([r,i]=f,r=+r,i=+i,h()):[r,i]},e.rangeRound=function(f){return[r,i]=f,r=+r,i=+i,o=!0,h()},e.bandwidth=function(){return a},e.step=function(){return s},e.round=function(f){return arguments.length?(o=!!f,h()):o},e.padding=function(f){return arguments.length?(l=Math.min(1,u=+f),h()):l},e.paddingInner=function(f){return arguments.length?(l=Math.min(1,f),h()):l},e.paddingOuter=function(f){return arguments.length?(u=+f,h()):u},e.align=function(f){return arguments.length?(d=Math.max(0,Math.min(1,f)),h()):d},e.copy=function(){return Bf(t(),[r,i]).round(o).paddingInner(l).paddingOuter(u).align(d)},ni.apply(h(),arguments)}function $8(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return $8(t())},e}function Mh(){return $8(Bf.apply(null,arguments).paddingInner(1))}function LT(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function D8(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Kp(){}var Vf=.7,Jy=1/Vf,zc="\\s*([+-]?\\d+)\\s*",qf="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",rs="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",MNe=/^#([0-9a-f]{3,8})$/,$Ne=new RegExp(`^rgb\\(${zc},${zc},${zc}\\)$`),DNe=new RegExp(`^rgb\\(${rs},${rs},${rs}\\)$`),LNe=new RegExp(`^rgba\\(${zc},${zc},${zc},${qf}\\)$`),FNe=new RegExp(`^rgba\\(${rs},${rs},${rs},${qf}\\)$`),BNe=new RegExp(`^hsl\\(${qf},${rs},${rs}\\)$`),VNe=new RegExp(`^hsla\\(${qf},${rs},${rs},${qf}\\)$`),tI={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};LT(Kp,Uf,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:nI,formatHex:nI,formatHex8:qNe,formatHsl:UNe,formatRgb:rI,toString:rI});function nI(){return this.rgb().formatHex()}function qNe(){return this.rgb().formatHex8()}function UNe(){return L8(this).formatHsl()}function rI(){return this.rgb().formatRgb()}function Uf(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=MNe.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?iI(t):n===3?new sr(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Km(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Km(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=$Ne.exec(e))?new sr(t[1],t[2],t[3],1):(t=DNe.exec(e))?new sr(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=LNe.exec(e))?Km(t[1],t[2],t[3],t[4]):(t=FNe.exec(e))?Km(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=BNe.exec(e))?oI(t[1],t[2]/100,t[3]/100,1):(t=VNe.exec(e))?oI(t[1],t[2]/100,t[3]/100,t[4]):tI.hasOwnProperty(e)?iI(tI[e]):e==="transparent"?new sr(NaN,NaN,NaN,0):null}function iI(e){return new sr(e>>16&255,e>>8&255,e&255,1)}function Km(e,t,n,r){return r<=0&&(e=t=n=NaN),new sr(e,t,n,r)}function WNe(e){return e instanceof Kp||(e=Uf(e)),e?(e=e.rgb(),new sr(e.r,e.g,e.b,e.opacity)):new sr}function IS(e,t,n,r){return arguments.length===1?WNe(e):new sr(e,t,n,r??1)}function sr(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}LT(sr,IS,D8(Kp,{brighter(e){return e=e==null?Jy:Math.pow(Jy,e),new sr(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Vf:Math.pow(Vf,e),new sr(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new sr(cl(this.r),cl(this.g),cl(this.b),ev(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:sI,formatHex:sI,formatHex8:zNe,formatRgb:aI,toString:aI}));function sI(){return`#${Ko(this.r)}${Ko(this.g)}${Ko(this.b)}`}function zNe(){return`#${Ko(this.r)}${Ko(this.g)}${Ko(this.b)}${Ko((isNaN(this.opacity)?1:this.opacity)*255)}`}function aI(){const e=ev(this.opacity);return`${e===1?"rgb(":"rgba("}${cl(this.r)}, ${cl(this.g)}, ${cl(this.b)}${e===1?")":`, ${e})`}`}function ev(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function cl(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Ko(e){return e=cl(e),(e<16?"0":"")+e.toString(16)}function oI(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new ki(e,t,n,r)}function L8(e){if(e instanceof ki)return new ki(e.h,e.s,e.l,e.opacity);if(e instanceof Kp||(e=Uf(e)),!e)return new ki;if(e instanceof ki)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),s=Math.max(t,n,r),a=NaN,o=s-i,l=(s+i)/2;return o?(t===s?a=(n-r)/o+(n<r)*6:n===s?a=(r-t)/o+2:a=(t-n)/o+4,o/=l<.5?s+i:2-s-i,a*=60):o=l>0&&l<1?0:a,new ki(a,o,l,e.opacity)}function HNe(e,t,n,r){return arguments.length===1?L8(e):new ki(e,t,n,r??1)}function ki(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}LT(ki,HNe,D8(Kp,{brighter(e){return e=e==null?Jy:Math.pow(Jy,e),new ki(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Vf:Math.pow(Vf,e),new ki(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new sr(gw(e>=240?e-240:e+120,i,r),gw(e,i,r),gw(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new ki(lI(this.h),Gm(this.s),Gm(this.l),ev(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=ev(this.opacity);return`${e===1?"hsl(":"hsla("}${lI(this.h)}
581, ${Gm(this.s)*100}%, ${Gm(this.l)*100}%${e===1?")":`, ${e})`}`}}));function lI(e){return e=(e||0)%360,e<0?e+360:e}function Gm(e){return Math.max(0,Math.min(1,e||0))}function gw(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const FT=e=>()=>e;function KNe(e,t){return function(n){return e+n*t}}function GNe(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function YNe(e){return(e=+e)==1?F8:function(t,n){return n-t?GNe(t,n,e):FT(isNaN(t)?n:t)}}function F8(e,t){var n=t-e;return n?KNe(e,n):FT(isNaN(e)?t:e)}const cI=function e(t){var n=YNe(t);function r(i,s){var a=n((i=IS(i)).r,(s=IS(s)).r),o=n(i.g,s.g),l=n(i.b,s.b),u=F8(i.opacity,s.opacity);return function(d){return i.r=a(d),i.g=o(d),i.b=l(d),i.opacity=u(d),i+""}}return r.gamma=e,r}(1);function XNe(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),i;return function(s){for(i=0;i<n;++i)r[i]=e[i]*(1-s)+t[i]*s;return r}}function QNe(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function ZNe(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,i=new Array(r),s=new Array(n),a;for(a=0;a<r;++a)i[a]=bd(e[a],t[a]);for(;a<n;++a)s[a]=t[a];return function(o){for(a=0;a<r;++a)s[a]=i[a](o);return s}}function JNe(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function tv(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function eCe(e,t){var n={},r={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?n[i]=bd(e[i],t[i]):r[i]=t[i];return function(s){for(i in n)r[i]=n[i](s);return r}}var MS=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,yw=new RegExp(MS.source,"g");function tCe(e){return function(){return e}}function nCe(e){return function(t){return e(t)+""}}function rCe(e,t){var n=MS.lastIndex=yw.lastIndex=0,r,i,s,a=-1,o=[],l=[];for(e=e+"",t=t+"";(r=MS.exec(e))&&(i=yw.exec(t));)(s=i.index)>n&&(s=t.slice(n,s),o[a]?o[a]+=s:o[++a]=s),(r=r[0])===(i=i[0])?o[a]?o[a]+=i:o[++a]=i:(o[++a]=null,l.push({i:a,x:tv(r,i)})),n=yw.lastIndex;return n<t.length&&(s=t.slice(n),o[a]?o[a]+=s:o[++a]=s),o.length<2?l[0]?nCe(l[0].x):tCe(t):(t=l.length,function(u){for(var d=0,h;d<t;++d)o[(h=l[d]).i]=h.x(u);return o.join("")})}function bd(e,t){var n=typeof t,r;return t==null||n==="boolean"?FT(t):(n==="number"?tv:n==="string"?(r=Uf(t))?(t=r,cI):rCe:t instanceof Uf?cI:t instanceof Date?JNe:QNe(t)?XNe:Array.isArray(t)?ZNe:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?eCe:tv)(e,t)}function BT(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function iCe(e,t){t===void 0&&(t=e,e=bd);for(var n=0,r=t.length-1,i=t[0],s=new Array(r<0?0:r);n<r;)s[n]=e(i,i=t[++n]);return function(a){var o=Math.max(0,Math.min(r-1,Math.floor(a*=r)));return s[o](a-o)}}function sCe(e){return function(){return e}}function nv(e){return+e}var uI=[0,1];function Hn(e){return e}function $S(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:sCe(isNaN(t)?NaN:.5)}function aCe(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function oCe(e,t,n){var r=e[0],i=e[1],s=t[0],a=t[1];return i<r?(r=$S(i,r),s=n(a,s)):(r=$S(r,i),s=n(s,a)),function(o){return s(r(o))}}function lCe(e,t,n){var r=Math.min(e.length,t.length)-1,i=new Array(r),s=new Array(r),a=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++a<r;)i[a]=$S(e[a],e[a+1]),s[a]=n(t[a],t[a+1]);return function(o){var l=Hp(e,o,1,r)-1;return s[l](i[l](o))}}function Gp(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function ab(){var e=uI,t=uI,n=bd,r,i,s,a=Hn,o,l,u;function d(){var f=Math.min(e.length,t.length);return a!==Hn&&(a=aCe(e[0],e[f-1])),o=f>2?lCe:oCe,l=u=null,h}function h(f){return f==null||isNaN(f=+f)?s:(l||(l=o(e.map(r),t,n)))(r(a(f)))}return h.invert=function(f){return a(i((u||(u=o(t,e.map(r),tv)))(f)))},h.domain=function(f){return arguments.length?(e=Array.from(f,nv),d()):e.slice()},h.range=function(f){return arguments.length?(t=Array.from(f),d()):t.slice()},h.rangeRound=function(f){return t=Array.from(f),n=BT,d()},h.clamp=function(f){return arguments.length?(a=f?!0:Hn,d()):a!==Hn},h.interpolate=function(f){return arguments.length?(n=f,d()):n},h.unknown=function(f){return arguments.length?(s=f,h):s},function(f,p){return r=f,i=p,d()}}function VT(){return ab()(Hn,Hn)}
vendor: 4,456 bytes, line 581
581function cCe(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function rv(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function Au(e){return e=rv(Math.abs(e)),e?e[1]:NaN}function uCe(e,t){return function(n,r){for(var i=n.length,s=[],a=0,o=e[0],l=0;i>0&&o>0&&(l+o+1>r&&(o=Math.max(1,r-l)),s.push(n.substring(i-=o,i+o)),!((l+=o+1)>r));)o=e[a=(a+1)%e.length];return s.reverse().join(t)}}function dCe(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var hCe=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Wf(e){if(!(t=hCe.exec(e)))throw new Error("invalid format: "+e);var t;return new qT({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}Wf.prototype=qT.prototype;function qT(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}qT.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 fCe(e){e:for(var t=e.length,n=1,r=-1,i;n<t;++n)switch(e[n]){case".":r=i=n;break;case"0":r===0&&(r=n),i=n;break;default:if(!+e[n])break e;r>0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(i+1):e}var B8;function pCe(e,t){var n=rv(e,t);if(!n)return e+"";var r=n[0],i=n[1],s=i-(B8=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,a=r.length;return s===a?r:s>a?r+new Array(s-a+1).join("0"):s>0?r.slice(0,s)+"."+r.slice(s):"0."+new Array(1-s).join("0")+rv(e,Math.max(0,t+s-1))[0]}function dI(e,t){var n=rv(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}const hI={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:cCe,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>dI(e*100,t),r:dI,s:pCe,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function fI(e){return e}var pI=Array.prototype.map,mI=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function mCe(e){var t=e.grouping===void 0||e.thousands===void 0?fI:uCe(pI.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",s=e.numerals===void 0?fI:dCe(pI.call(e.numerals,String)),a=e.percent===void 0?"%":e.percent+"",o=e.minus===void 0?"â":e.minus+"",l=e.nan===void 0?"NaN":e.nan+"";function u(h){h=Wf(h);var f=h.fill,p=h.align,g=h.sign,m=h.symbol,y=h.zero,v=h.width,x=h.comma,b=h.precision,S=h.trim,k=h.type;k==="n"?(x=!0,k="g"):hI[k]||(b===void 0&&(b=12),S=!0,k="g"),(y||f==="0"&&p==="=")&&(y=!0,f="0",p="=");var j=m==="$"?n:m==="#"&&/[boxX]/.test(k)?"0"+k.toLowerCase():"",_=m==="$"?r:/[%p]/.test(k)?a:"",E=hI[k],T=/[defgprs%]/.test(k);b=b===void 0?6:/[gprs]/.test(k)?Math.max(1,Math.min(21,b)):Math.max(0,Math.min(20,b));function N(P){var C=j,M=_,R,D,L;if(k==="c")M=E(P)+M,P="";else{P=+P;var B=P<0||1/P<0;if(P=isNaN(P)?l:E(Math.abs(P),b),S&&(P=fCe(P)),B&&+P==0&&g!=="+"&&(B=!1),C=(B?g==="("?g:o:g==="-"||g==="("?"":g)+C,M=(k==="s"?mI[8+B8/3]:"")+M+(B&&g==="("?")":""),T){for(R=-1,D=P.length;++R<D;)if(L=P.charCodeAt(R),48>L||L>57){M=(L===46?i+P.slice(R+1):P.slice(R))+M,P=P.slice(0,R);break}}}x&&!y&&(P=t(P,1/0));var I=C.length+P.length+M.length,O=I<v?new Array(v-I+1).join(f):"";switch(x&&y&&(P=t(O+P,O.length?v-M.length:1/0),O=""),p){case"<":P=C+P+M+O;break;case"=":P=C+O+P+M;break;case"^":P=O.slice(0,I=O.length>>1)+C+P+M+O.slice(I);break;default:P=O+C+P+M;break}return s(P)}return N.toString=function(){return h+""},N}function d(h,f){var p=u((h=Wf(h),h.type="f",h)),g=Math.max(-8,Math.min(8,Math.floor(Au(f)/3)))*3,m=Math.pow(10,-g),y=mI[8+g/3];return function(v){return p(m*v)+y}}return{format:u,formatPrefix:d}}var Ym,UT,V8;
vendor: 4,052 bytes, line 581
581gCe({thousands:",",grouping:[3],currency:["$",""]});function gCe(e){return Ym=mCe(e),UT=Ym.format,V8=Ym.formatPrefix,Ym}function yCe(e){return Math.max(0,-Au(Math.abs(e)))}function vCe(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Au(t)/3)))*3-Au(Math.abs(e)))}function xCe(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Au(t)-Au(e))+1}function q8(e,t,n,r){var i=OS(e,t,n),s;switch(r=Wf(r??",f"),r.type){case"s":{var a=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(s=vCe(i,a))&&(r.precision=s),V8(r,a)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(s=xCe(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=s-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(s=yCe(i))&&(r.precision=s-(r.type==="%")*2);break}}return UT(r)}function go(e){var t=e.domain;return e.ticks=function(n){var r=t();return AS(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var i=t();return q8(i[0],i[i.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),i=0,s=r.length-1,a=r[i],o=r[s],l,u,d=10;for(o<a&&(u=a,a=o,o=u,u=i,i=s,s=u);d-- >0;){if(u=PS(a,o,n),u===l)return r[i]=a,r[s]=o,t(r);if(u>0)a=Math.floor(a/u)*u,o=Math.ceil(o/u)*u;else if(u<0)a=Math.ceil(a*u)/u,o=Math.floor(o*u)/u;else break;l=u}return e},e}function iv(){var e=VT();return e.copy=function(){return Gp(e,iv())},ni.apply(e,arguments),go(e)}function U8(e){var t;function n(r){return r==null||isNaN(r=+r)?t:r}return n.invert=n,n.domain=n.range=function(r){return arguments.length?(e=Array.from(r,nv),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return U8(e).unknown(t)},e=arguments.length?Array.from(e,nv):[0,1],go(n)}function W8(e,t){e=e.slice();var n=0,r=e.length-1,i=e[n],s=e[r],a;return s<i&&(a=n,n=r,r=a,a=i,i=s,s=a),e[n]=t.floor(i),e[r]=t.ceil(s),e}function gI(e){return Math.log(e)}function yI(e){return Math.exp(e)}function bCe(e){return-Math.log(-e)}function wCe(e){return-Math.exp(-e)}function kCe(e){return isFinite(e)?+("1e"+e):e<0?0:e}function SCe(e){return e===10?kCe:e===Math.E?Math.exp:t=>Math.pow(e,t)}function jCe(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function vI(e){return(t,n)=>-e(-t,n)}function WT(e){const t=e(gI,yI),n=t.domain;let r=10,i,s;function a(){return i=jCe(r),s=SCe(r),n()[0]<0?(i=vI(i),s=vI(s),e(bCe,wCe)):e(gI,yI),t}return t.base=function(o){return arguments.length?(r=+o,a()):r},t.domain=function(o){return arguments.length?(n(o),a()):n()},t.ticks=o=>{const l=n();let u=l[0],d=l[l.length-1];const h=d<u;h&&([u,d]=[d,u]);let f=i(u),p=i(d),g,m;const y=o==null?10:+o;let v=[];if(!(r%1)&&p-f<y){if(f=Math.floor(f),p=Math.ceil(p),u>0){for(;f<=p;++f)for(g=1;g<r;++g)if(m=f<0?g/s(-f):g*s(f),!(m<u)){if(m>d)break;v.push(m)}}else for(;f<=p;++f)for(g=r-1;g>=1;--g)if(m=f>0?g/s(-f):g*s(f),!(m<u)){if(m>d)break;v.push(m)}v.length*2<y&&(v=AS(u,d,y))}else v=AS(f,p,Math.min(p-f,y)).map(s);return h?v.reverse():v},t.tickFormat=(o,l)=>{if(o==null&&(o=10),l==null&&(l=r===10?"s":","),typeof l!="function"&&(!(r%1)&&(l=Wf(l)).precision==null&&(l.trim=!0),l=UT(l)),o===1/0)return l;const u=Math.max(1,r*o/t.ticks().length);return d=>{let h=d/s(Math.round(i(d)));return h*r<r-.5&&(h*=r),h<=u?l(d):""}},t.nice=()=>n(W8(n(),{floor:o=>s(Math.floor(i(o))),ceil:o=>s(Math.ceil(i(o)))})),t}function z8(){const e=WT(ab()).domain([1,10]);return e.copy=()=>Gp(e,z8()).base(e.base()),ni.apply(e,arguments),e}function xI(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function bI(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function zT(e){var t=1,n=e(xI(t),bI(t));return n.constant=function(r){return arguments.length?e(xI(t=+r),bI(t)):t},go(n)}function H8(){var e=zT(ab());return e.copy=function(){return Gp(e,H8()).constant(e.constant())},ni.apply(e,arguments)}function wI(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function _Ce(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function ECe(e){return e<0?-e*e:e*e}function HT(e){var t=e(Hn,Hn),n=1;
581function r(){return n===1?e(Hn,Hn):n===.5?e(_Ce,ECe):e(wI(n),wI(1/n))}return t.exponent=function(i){return arguments.length?(n=+i,r()):n},go(t)}function KT(){var e=HT(ab());return e.copy=function(){return Gp(e,KT()).exponent(e.exponent())},ni.apply(e,arguments),e}function TCe(){return KT.apply(null,arguments).exponent(.5)}function kI(e){return Math.sign(e)*e*e}function NCe(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function K8(){var e=VT(),t=[0,1],n=!1,r;function i(s){var a=NCe(e(s));return isNaN(a)?r:n?Math.round(a):a}return i.invert=function(s){return e.invert(kI(s))},i.domain=function(s){return arguments.length?(e.domain(s),i):e.domain()},i.range=function(s){return arguments.length?(e.range((t=Array.from(s,nv)).map(kI)),i):t.slice()},i.rangeRound=function(s){return i.range(s).round(!0)},i.round=function(s){return arguments.length?(n=!!s,i):n},i.clamp=function(s){return arguments.length?(e.clamp(s),i):e.clamp()},i.unknown=function(s){return arguments.length?(r=s,i):r},i.copy=function(){return K8(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},ni.apply(i,arguments),go(i)}function G8(){var e=[],t=[],n=[],r;function i(){var a=0,o=Math.max(1,t.length);for(n=new Array(o-1);++a<o;)n[a-1]=RNe(e,a/o);return s}function s(a){return a==null||isNaN(a=+a)?r:t[Hp(n,a)]}return s.invertExtent=function(a){var o=t.indexOf(a);return o<0?[NaN,NaN]:[o>0?n[o-1]:e[0],o<n.length?n[o]:e[e.length-1]]},s.domain=function(a){if(!arguments.length)return e.slice();e=[];for(let o of a)o!=null&&!isNaN(o=+o)&&e.push(o);return e.sort(Ya),i()},s.range=function(a){return arguments.length?(t=Array.from(a),i()):t.slice()},s.unknown=function(a){return arguments.length?(r=a,s):r},s.quantiles=function(){return n.slice()},s.copy=function(){return G8().domain(e).range(t).unknown(r)},ni.apply(s,arguments)}function Y8(){var e=0,t=1,n=1,r=[.5],i=[0,1],s;function a(l){return l!=null&&l<=l?i[Hp(r,l,0,n)]:s}function o(){var l=-1;for(r=new Array(n);++l<n;)r[l]=((l+1)*t-(l-n)*e)/(n+1);return a}return a.domain=function(l){return arguments.length?([e,t]=l,e=+e,t=+t,o()):[e,t]},a.range=function(l){return arguments.length?(n=(i=Array.from(l)).length-1,o()):i.slice()},a.invertExtent=function(l){var u=i.indexOf(l);return u<0?[NaN,NaN]:u<1?[e,r[0]]:u>=n?[r[n-1],t]:[r[u-1],r[u]]},a.unknown=function(l){return arguments.length&&(s=l),a},a.thresholds=function(){return r.slice()},a.copy=function(){return Y8().domain([e,t]).range(i).unknown(s)},ni.apply(go(a),arguments)}function X8(){var e=[.5],t=[0,1],n,r=1;function i(s){return s!=null&&s<=s?t[Hp(e,s,0,r)]:n}return i.domain=function(s){return arguments.length?(e=Array.from(s),r=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(s){return arguments.length?(t=Array.from(s),r=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(s){var a=t.indexOf(s);return[e[a-1],e[a]]},i.unknown=function(s){return arguments.length?(n=s,i):n},i.copy=function(){return X8().domain(e).range(t).unknown(n)},ni.apply(i,arguments)}const vw=new Date,xw=new Date;function an(e,t,n,r){function i(s){return e(s=arguments.length===0?new Date:new Date(+s)),s}return i.floor=s=>(e(s=new Date(+s)),s),i.ceil=s=>(e(s=new Date(s-1)),t(s,1),e(s),s),i.round=s=>{const a=i(s),o=i.ceil(s);return s-a<o-s?a:o},i.offset=(s,a)=>(t(s=new Date(+s),a==null?1:Math.floor(a)),s),i.range=(s,a,o)=>{const l=[];if(s=i.ceil(s),o=o==null?1:Math.floor(o),!(s<a)||!(o>0))return l;let u;do l.push(u=new Date(+s)),t(s,o),e(s);while(u<s&&s<a);return l},i.filter=s=>an(a=>{if(a>=a)for(;e(a),!s(a);)a.setTime(a-1)},(a,o)=>{if(a>=a)if(o<0)for(;++o<=0;)for(;t(a,-1),!s(a););else for(;--o>=0;)for(;t(a,1),!s(a););}),n&&(i.count=(s,a)=>(vw.setTime(+s),xw.setTime(+a),e(vw),e(xw),Math.floor(n(vw,xw))),i.every=s=>(s=Math.floor(s),!isFinite(s)||!(s>0)?null:s>1?i.filter(r?a=>r(a)%s===0:a=>i.count(0,a)%s===0):i)),i}const sv=an(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);sv.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?an(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):sv);sv.range;const Ts=1e3,zr=Ts*60,Ns=zr*60,Ws=Ns*24,GT=Ws*7,SI=Ws*30,bw=Ws*365,Go=an(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*Ts)},(e,t)=>(t-e)/Ts,e=>e.getUTCSeconds());Go.range;const YT=an(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Ts)},(e,t)=>{e.setTime(+e+t*zr)},(e,t)=>(t-e)/zr,e=>e.getMinutes());YT.range;const XT=an(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*zr)},(e,t)=>(t-e)/zr,e=>e.getUTCMinutes());XT.range;const QT=an(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Ts-e.getMinutes()*zr)},(e,t)=>{e.setTime(+e+t*Ns)},(e,t)=>(t-e)/Ns,e=>e.getHours());QT.range;const ZT=an(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*Ns)},(e,t)=>(t-e)/Ns,e=>e.getUTCHours());ZT.range;const Yp=an(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*zr)/Ws,e=>e.getDate()-1);Yp.range;const ob=an(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Ws,e=>e.getUTCDate()-1);ob.range;const Q8=an(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Ws,e=>
vendor: 5,015 bytes, line 581
581Math.floor(e/Ws));Q8.range;function $l(e){return an(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,n)=>{t.setDate(t.getDate()+n*7)},(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*zr)/GT)}const lb=$l(0),av=$l(1),CCe=$l(2),ACe=$l(3),Pu=$l(4),PCe=$l(5),OCe=$l(6);lb.range;av.range;CCe.range;ACe.range;Pu.range;PCe.range;OCe.range;function Dl(e){return an(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n*7)},(t,n)=>(n-t)/GT)}const cb=Dl(0),ov=Dl(1),RCe=Dl(2),ICe=Dl(3),Ou=Dl(4),MCe=Dl(5),$Ce=Dl(6);cb.range;ov.range;RCe.range;ICe.range;Ou.range;MCe.range;$Ce.range;const JT=an(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());JT.range;const eN=an(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());eN.range;const zs=an(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());zs.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:an(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)});zs.range;const Hs=an(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());Hs.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:an(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)});Hs.range;function Z8(e,t,n,r,i,s){const a=[[Go,1,Ts],[Go,5,5*Ts],[Go,15,15*Ts],[Go,30,30*Ts],[s,1,zr],[s,5,5*zr],[s,15,15*zr],[s,30,30*zr],[i,1,Ns],[i,3,3*Ns],[i,6,6*Ns],[i,12,12*Ns],[r,1,Ws],[r,2,2*Ws],[n,1,GT],[t,1,SI],[t,3,3*SI],[e,1,bw]];function o(u,d,h){const f=d<u;f&&([u,d]=[d,u]);const p=h&&typeof h.range=="function"?h:l(u,d,h),g=p?p.range(u,+d+1):[];return f?g.reverse():g}function l(u,d,h){const f=Math.abs(d-u)/h,p=$T(([,,y])=>y).right(a,f);if(p===a.length)return e.every(OS(u/bw,d/bw,h));if(p===0)return sv.every(Math.max(OS(u,d,h),1));const[g,m]=a[f/a[p-1][2]<a[p][2]/f?p-1:p];return g.every(m)}return[o,l]}const[DCe,LCe]=Z8(Hs,eN,cb,Q8,ZT,XT),[FCe,BCe]=Z8(zs,JT,lb,Yp,QT,YT);function ww(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function kw(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function Kd(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function VCe(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,s=e.days,a=e.shortDays,o=e.months,l=e.shortMonths,u=Gd(i),d=Yd(i),h=Gd(s),f=Yd(s),p=Gd(a),g=Yd(a),m=Gd(o),y=Yd(o),v=Gd(l),x=Yd(l),b={a:B,A:I,b:O,B:V,c:null,d:CI,e:CI,f:u2e,g:b2e,G:k2e,H:o2e,I:l2e,j:c2e,L:J8,m:d2e,M:h2e,p:z,q,Q:OI,s:RI,S:f2e,u:p2e,U:m2e,V:g2e,w:y2e,W:v2e,x:null,X:null,y:x2e,Y:w2e,Z:S2e,"%":PI},S={a:X,A:J,b:xe,B:ke,c:null,d:AI,e:AI,f:T2e,g:D2e,G:F2e,H:j2e,I:_2e,j:E2e,L:tq,m:N2e,M:C2e,p:Y,q:ce,Q:OI,s:RI,S:A2e,u:P2e,U:O2e,V:R2e,w:I2e,W:M2e,x:null,X:null,y:$2e,Y:L2e,Z:B2e,"%":PI},k={a:N,A:P,b:C,B:M,c:R,d:TI,e:TI,f:r2e,g:EI,G:_I,H:NI,I:NI,j:JCe,L:n2e,m:ZCe,M:e2e,p:T,q:QCe,Q:s2e,s:a2e,S:t2e,u:HCe,U:KCe,V:GCe,w:zCe,W:YCe,x:D,X:L,y:EI,Y:_I,Z:XCe,"%":i2e};b.x=j(n,b),b.X=j(r,b),b.c=j(t,b),S.x=j(n,S),S.X=j(r,S),S.c=j(t,S);function j(K,Q){return function(G){var F=[],ue=-1,ae=0,Ae=K.length,Ie,Ge,jt;for(G instanceof Date||(G=new Date(+G));++ue<Ae;)K.charCodeAt(ue)===37&&(F.push(K.slice(ae,ue)),(Ge=jI[Ie=K.charAt(++ue)])!=null?Ie=K.charAt(++ue):Ge=Ie==="e"?" ":"0",(jt=Q[Ie])&&(Ie=jt(G,Ge)),F.push(Ie),ae=ue+1);return F.push(K.slice(ae,ue)),F.join("")}}function _(K,Q){return function(G){var F=Kd(1900,void 0,1),ue=E(F,K,G+="",0),ae,Ae;if(ue!=G.length)return null;if("Q"in F)return new Date(F.Q);if("s"in F)return new Date(F.s*1e3+("L"in F?F.L:0));if(Q&&!("Z"in F)&&(F.Z=0),"p"in F&&(F.H=F.H%12+F.p*12),F.m===void 0&&(F.m="q"in F?F.q:0),"V"in F){if(F.V<1||F.V>53)return null;"w"in F||(F.w=1),"Z"in F?(ae=kw(Kd(F.y,0,1)),Ae=ae.getUTCDay(),ae=Ae>4||Ae===0?ov.ceil(ae):ov(ae),ae=ob.offset(ae,(F.V-1)*7),F.y=ae.getUTCFullYear(),F.m=ae.getUTCMonth(),F.d=ae.getUTCDate()+(F.w+6)%7):(ae=ww(Kd(F.y,0,1)),Ae=ae.getDay(),ae=Ae>4||Ae===0?av.ceil(ae):av(ae),ae=Yp.offset(ae,(F.V-1)*7),F.y=ae.getFullYear(),F.m=ae.getMonth(),F.d=ae.getDate()+(F.w+6)%7)}else("W"in F||"U"in F)&&("w"in F||(F.w="u"in F?F.u%7:"W"in F?1:0),Ae="Z"in F?kw(Kd(F.y,0,1)).getUTCDay():ww(Kd(F.y,0,1)).getDay(),F.m=0,F.d="W"in F?(F.w+6)%7+F.W*7-(Ae+5)%7:F.w+F.U*7-(Ae+6)%7);return"Z"in F?(F.H+=F.Z/100|0,F.M+=F.Z%100,kw(F)):ww(F)}}function E(K,Q,G,F){for(var ue=0,ae=Q.length,Ae=G.length,Ie,Ge;ue<ae;){if(F>=Ae)return-1;
vendor: 6,279 bytes, line 581
581if(Ie=Q.charCodeAt(ue++),Ie===37){if(Ie=Q.charAt(ue++),Ge=k[Ie in jI?Q.charAt(ue++):Ie],!Ge||(F=Ge(K,G,F))<0)return-1}else if(Ie!=G.charCodeAt(F++))return-1}return F}function T(K,Q,G){var F=u.exec(Q.slice(G));return F?(K.p=d.get(F[0].toLowerCase()),G+F[0].length):-1}function N(K,Q,G){var F=p.exec(Q.slice(G));return F?(K.w=g.get(F[0].toLowerCase()),G+F[0].length):-1}function P(K,Q,G){var F=h.exec(Q.slice(G));return F?(K.w=f.get(F[0].toLowerCase()),G+F[0].length):-1}function C(K,Q,G){var F=v.exec(Q.slice(G));return F?(K.m=x.get(F[0].toLowerCase()),G+F[0].length):-1}function M(K,Q,G){var F=m.exec(Q.slice(G));return F?(K.m=y.get(F[0].toLowerCase()),G+F[0].length):-1}function R(K,Q,G){return E(K,t,Q,G)}function D(K,Q,G){return E(K,n,Q,G)}function L(K,Q,G){return E(K,r,Q,G)}function B(K){return a[K.getDay()]}function I(K){return s[K.getDay()]}function O(K){return l[K.getMonth()]}function V(K){return o[K.getMonth()]}function z(K){return i[+(K.getHours()>=12)]}function q(K){return 1+~~(K.getMonth()/3)}function X(K){return a[K.getUTCDay()]}function J(K){return s[K.getUTCDay()]}function xe(K){return l[K.getUTCMonth()]}function ke(K){return o[K.getUTCMonth()]}function Y(K){return i[+(K.getUTCHours()>=12)]}function ce(K){return 1+~~(K.getUTCMonth()/3)}return{format:function(K){var Q=j(K+="",b);return Q.toString=function(){return K},Q},parse:function(K){var Q=_(K+="",!1);return Q.toString=function(){return K},Q},utcFormat:function(K){var Q=j(K+="",S);return Q.toString=function(){return K},Q},utcParse:function(K){var Q=_(K+="",!0);return Q.toString=function(){return K},Q}}}var jI={"-":"",_:" ",0:"0"},yn=/^\s*\d+/,qCe=/^%/,UCe=/[\\^$*+?|[\]().{}]/g;function et(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",s=i.length;return r+(s<n?new Array(n-s+1).join(t)+i:i)}function WCe(e){return e.replace(UCe,"\\$&")}function Gd(e){return new RegExp("^(?:"+e.map(WCe).join("|")+")","i")}function Yd(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function zCe(e,t,n){var r=yn.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function HCe(e,t,n){var r=yn.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function KCe(e,t,n){var r=yn.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function GCe(e,t,n){var r=yn.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function YCe(e,t,n){var r=yn.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function _I(e,t,n){var r=yn.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function EI(e,t,n){var r=yn.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function XCe(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function QCe(e,t,n){var r=yn.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function ZCe(e,t,n){var r=yn.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function TI(e,t,n){var r=yn.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function JCe(e,t,n){var r=yn.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function NI(e,t,n){var r=yn.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function e2e(e,t,n){var r=yn.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function t2e(e,t,n){var r=yn.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function n2e(e,t,n){var r=yn.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function r2e(e,t,n){var r=yn.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function i2e(e,t,n){var r=qCe.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function s2e(e,t,n){var r=yn.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function a2e(e,t,n){var r=yn.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function CI(e,t){return et(e.getDate(),t,2)}function o2e(e,t){return et(e.getHours(),t,2)}function l2e(e,t){return et(e.getHours()%12||12,t,2)}function c2e(e,t){return et(1+Yp.count(zs(e),e),t,3)}function J8(e,t){return et(e.getMilliseconds(),t,3)}function u2e(e,t){return J8(e,t)+"000"}function d2e(e,t){return et(e.getMonth()+1,t,2)}function h2e(e,t){return et(e.getMinutes(),t,2)}function f2e(e,t){return et(e.getSeconds(),t,2)}function p2e(e){var t=e.getDay();return t===0?7:t}function m2e(e,t){return et(lb.count(zs(e)-1,e),t,2)}function eq(e){var t=e.getDay();return t>=4||t===0?Pu(e):Pu.ceil(e)}function g2e(e,t){return e=eq(e),et(Pu.count(zs(e),e)+(zs(e).getDay()===4),t,2)}function y2e(e){return e.getDay()}function v2e(e,t){return et(av.count(zs(e)-1,e),t,2)}function x2e(e,t){return et(e.getFullYear()%100,t,2)}function b2e(e,t){return e=eq(e),et(e.getFullYear()%100,t,2)}function w2e(e,t){return et(e.getFullYear()%1e4,t,4)}function k2e(e,t){var n=e.getDay();return e=n>=4||n===0?Pu(e):Pu.ceil(e),et(e.getFullYear()%1e4,t,4)}function S2e(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+et(t/60|0,"0",2)+et(t%60,"0",2)}function AI(e,t){return et(e.getUTCDate(),t,2)}function j2e(e,t){return et(e.getUTCHours(),t,2)}function _2e(e,t){return et(e.getUTCHours()%12||12,t,2)}function E2e(e,t){return et(1+ob.count(Hs(e),e),t,3)}function tq(e,t){return et(e.getUTCMilliseconds(),t,3)}function T2e(e,t){return tq(e,t)+"000"}function N2e(e,t){return et(e.getUTCMonth()+1,t,2)}function C2e(e,t){return et(e.getUTCMinutes(),t,2)}function A2e(e,t){return et(e.getUTCSeconds(),t,2)}function P2e(e){var t=e.getUTCDay();return t===0?7:t}function O2e(e,t){return et(cb.count(Hs(e)-1,e),t,2)}function nq(e){var t=e.getUTCDay();return t>=4||t===0?Ou(e):Ou.ceil(e)}function R2e(e,t){return e=nq(e),et(Ou.count(Hs(e),e)+(Hs(e).getUTCDay()===4),t,2)}function I2e(e){return e.getUTCDay()}function M2e(e,t){return et(ov.count(Hs(e)-1,e),t,2)}function $2e(e,t){return et(e.getUTCFullYear()%100,t,2)}function D2e(e,t){return e=nq(e),et(e.getUTCFullYear()%100,t,2)}function L2e(e,t){return et(e.getUTCFullYear()%1e4,t,4)}function F2e(e,t){var n=e.getUTCDay();return e=n>=4||n===0?Ou(e):Ou.ceil(e),et(e.getUTCFullYear()%1e4,t,4)}function B2e(){return"+0000"}function PI(){return"%"}function OI(e){return+e}function RI(e){return Math.floor(+e/1e3)}var tc,rq,iq;V2e({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
581ay","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 V2e(e){return tc=VCe(e),rq=tc.format,tc.parse,iq=tc.utcFormat,tc.utcParse,tc}function q2e(e){return new Date(e)}function U2e(e){return e instanceof Date?+e:+new Date(+e)}function tN(e,t,n,r,i,s,a,o,l,u){var d=VT(),h=d.invert,f=d.domain,p=u(".%L"),g=u(":%S"),m=u("%I:%M"),y=u("%I %p"),v=u("%a %d"),x=u("%b %d"),b=u("%B"),S=u("%Y");function k(j){return(l(j)<j?p:o(j)<j?g:a(j)<j?m:s(j)<j?y:r(j)<j?i(j)<j?v:x:n(j)<j?b:S)(j)}return d.invert=function(j){return new Date(h(j))},d.domain=function(j){return arguments.length?f(Array.from(j,U2e)):f().map(q2e)},d.ticks=function(j){var _=f();return e(_[0],_[_.length-1],j??10)},d.tickFormat=function(j,_){return _==null?k:u(_)},d.nice=function(j){var _=f();return(!j||typeof j.range!="function")&&(j=t(_[0],_[_.length-1],j??10)),j?f(W8(_,j)):d},d.copy=function(){return Gp(d,tN(e,t,n,r,i,s,a,o,l,u))},d}function W2e(){return ni.apply(tN(FCe,BCe,zs,JT,lb,Yp,QT,YT,Go,rq).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function z2e(){return ni.apply(tN(DCe,LCe,Hs,eN,cb,ob,ZT,XT,Go,iq).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function ub(){var e=0,t=1,n,r,i,s,a=Hn,o=!1,l;function u(h){return h==null||isNaN(h=+h)?l:a(i===0?.5:(h=(s(h)-n)*i,o?Math.max(0,Math.min(1,h)):h))}u.domain=function(h){return arguments.length?([e,t]=h,n=s(e=+e),r=s(t=+t),i=n===r?0:1/(r-n),u):[e,t]},u.clamp=function(h){return arguments.length?(o=!!h,u):o},u.interpolator=function(h){return arguments.length?(a=h,u):a};function d(h){return function(f){var p,g;return arguments.length?([p,g]=f,a=h(p,g),u):[a(0),a(1)]}}return u.range=d(bd),u.rangeRound=d(BT),u.unknown=function(h){return arguments.length?(l=h,u):l},function(h){return s=h,n=h(e),r=h(t),i=n===r?0:1/(r-n),u}}function yo(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function sq(){var e=go(ub()(Hn));return e.copy=function(){return yo(e,sq())},Js.apply(e,arguments)}function aq(){var e=WT(ub()).domain([1,10]);return e.copy=function(){return yo(e,aq()).base(e.base())},Js.apply(e,arguments)}function oq(){var e=zT(ub());return e.copy=function(){return yo(e,oq()).constant(e.constant())},Js.apply(e,arguments)}function nN(){var e=HT(ub());return e.copy=function(){return yo(e,nN()).exponent(e.exponent())},Js.apply(e,arguments)}function H2e(){return nN.apply(null,arguments).exponent(.5)}function lq(){var e=[],t=Hn;function n(r){if(r!=null&&!isNaN(r=+r))return t((Hp(e,r,1)-1)/(e.length-1))}return n.domain=function(r){if(!arguments.length)return e.slice();e=[];for(let i of r)i!=null&&!isNaN(i=+i)&&e.push(i);return e.sort(Ya),n},n.interpolator=function(r){return arguments.length?(t=r,n):t},n.range=function(){return e.map((r,i)=>t(i/(e.length-1)))},n.quantiles=function(r){return Array.from({length:r+1},(i,s)=>ONe(e,s/r))},n.copy=function(){return lq(t).domain(e)},Js.apply(n,arguments)}function db(){var e=0,t=.5,n=1,r=1,i,s,a,o,l,u=Hn,d,h=!1,f;function p(m){return isNaN(m=+m)?f:(m=.5+((m=+d(m))-s)*(r*m<r*s?o:l),u(h?Math.max(0,Math.min(1,m)):m))}p.domain=function(m){return arguments.length?([e,t,n]=m,i=d(e=+e),s=d(t=+t),a=d(n=+n),o=i===s?0:.5/(s-i),l=s===a?0:.5/(a-s),r=s<i?-1:1,p):[e,t,n]},p.clamp=function(m){return arguments.length?(h=!!m,p):h},p.interpolator=function(m){return arguments.length?(u=m,p):u};function g(m){return function(y){var v,x,b;return arguments.length?([v,x,b]=y,u=iCe(m,[v,x,b]),p):[u(0),u(.5),u(1)]}}return p.range=g(bd),p.rangeRound=g(BT),p.unknown=function(m){return arguments.length?(f=m,p):f},function(m){return d=m,i=m(e),s=m(t),a=m(n),o=i===s?0:.5/(s-i),l=s===a?0:.5/(a-s),r=s<i?-1:1,p}}function cq(){var e=go(db()(Hn));return e.copy=function(){return yo(e,cq())},Js.apply(e,arguments)}function uq(){var e=WT(db()).domain([.1,1,10]);return e.copy=function(){return yo(e,uq()).base(e.base())},Js.apply(e,arguments)}function dq(){var e=zT(db());return e.copy=function(){return yo(e,dq()).constant(e.constant())},Js.apply(e,arguments)}function rN(){var e=HT(db());return e.copy=function(){return yo(e,rN()).exponent(e.exponent())},Js.apply(e,arguments)}function K2e(){return rN.apply(null,arguments).exponent(.5)}const II=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:Bf,scaleDiverging:cq,scaleDivergingLog:uq,scaleDivergingPow:rN,scaleDivergingSqrt:K2e,scaleDivergingSymlog:dq,scaleIdentity:U8,scaleImplicit:RS,scaleLinear:iv,scaleLog:z8,scaleOrdinal:DT,scalePoint:Mh,scalePow:KT,scaleQuantile:G8,scaleQuantize:Y8,scaleRadial:K8,scaleSequential:sq,scaleSequentialLog:aq,scaleSequentialPow:nN,scaleSequentialQuantile:lq,scaleSequentialSqrt:H2e,scaleSequentialSymlog:oq,scaleSqrt:TCe,scaleSymlog:H8,scaleThreshold:X8,scaleTime:W2e,scaleUtc:z2e,tickFormat:q8},Symbol.toStringTag,{value:"Module"}));var G2e=hd;function Y2e(e,t,n){for(var r=-1,i=e.length;++r<i;){var s=e[r],a=t(s);if(a!=null&&(o===void 0?a===a&&!G2e(a):n(a,o)))var o=a,l=s}return l}var hb=Y2e;function X2e(e,t){return e>t}var hq=X2e,Q2e=hb,Z2e=hq,J2e=xd;function eAe(e){return e&&e.length?Q2e(e,J2e,Z2e):void 0}var tAe=eAe;const fb=tt(tAe);function nAe(e,t){return e<t}var fq=nAe,rAe=hb,iAe=fq,sAe=xd;function aAe(e){return e&&e.length?rAe(e,sAe,iAe):void 0}var oAe=aAe;const pb=tt(oAe);var lAe=mT,cAe=mo,uAe=w8,dAe=fr;function hAe(e,t){var n=dAe(e)?lAe:uAe;return n(e,cAe(t))}var fAe=hAe,pAe=x8,mAe=fAe;function gAe(e,t){return pAe(mAe(e,t),1)}var yAe=gAe;const vAe=tt(yAe);var xAe=PT;function bAe(e,t){return xAe(e,t)}var wAe=bAe;const iN=tt(wAe);
vendor: 65,748 bytes, lines 581-608
581var wd=1e9,kAe={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},aN,Nt=!0,Zr="[DecimalError] ",ul=Zr+"Invalid argument: ",sN=Zr+"Exponent out of range: ",kd=Math.floor,$o=Math.pow,SAe=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,vr,cn=1e7,wt=7,pq=9007199254740991,lv=kd(pq/wt),fe={};fe.absoluteValue=fe.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};fe.comparedTo=fe.cmp=function(e){var t,n,r,i,s=this;if(e=new s.constructor(e),s.s!==e.s)return s.s||-e.s;if(s.e!==e.e)return s.e>e.e^s.s<0?1:-1;for(r=s.d.length,i=e.d.length,t=0,n=r<i?r:i;t<n;++t)if(s.d[t]!==e.d[t])return s.d[t]>e.d[t]^s.s<0?1:-1;return r===i?0:r>i^s.s<0?1:-1};fe.decimalPlaces=fe.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*wt;if(t=e.d[t],t)for(;t%10==0;t/=10)n--;return n<0?0:n};fe.dividedBy=fe.div=function(e){return Os(this,new this.constructor(e))};fe.dividedToIntegerBy=fe.idiv=function(e){var t=this,n=t.constructor;return dt(Os(t,new n(e),0,1),n.precision)};fe.equals=fe.eq=function(e){return!this.cmp(e)};fe.exponent=function(){return Xt(this)};fe.greaterThan=fe.gt=function(e){return this.cmp(e)>0};fe.greaterThanOrEqualTo=fe.gte=function(e){return this.cmp(e)>=0};fe.isInteger=fe.isint=function(){return this.e>this.d.length-2};fe.isNegative=fe.isneg=function(){return this.s<0};fe.isPositive=fe.ispos=function(){return this.s>0};fe.isZero=function(){return this.s===0};fe.lessThan=fe.lt=function(e){return this.cmp(e)<0};fe.lessThanOrEqualTo=fe.lte=function(e){return this.cmp(e)<1};fe.logarithm=fe.log=function(e){var t,n=this,r=n.constructor,i=r.precision,s=i+5;if(e===void 0)e=new r(10);else if(e=new r(e),e.s<1||e.eq(vr))throw Error(Zr+"NaN");if(n.s<1)throw Error(Zr+(n.s?"NaN":"-Infinity"));return n.eq(vr)?new r(0):(Nt=!1,t=Os(zf(n,s),zf(e,s),s),Nt=!0,dt(t,i))};fe.minus=fe.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?yq(t,e):mq(t,(e.s=-e.s,e))};fe.modulo=fe.mod=function(e){var t,n=this,r=n.constructor,i=r.precision;if(e=new r(e),!e.s)throw Error(Zr+"NaN");return n.s?(Nt=!1,t=Os(n,e,0,1).times(e),Nt=!0,n.minus(t)):dt(new r(n),i)};fe.naturalExponential=fe.exp=function(){return gq(this)};fe.naturalLogarithm=fe.ln=function(){return zf(this)};fe.negated=fe.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};fe.plus=fe.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?mq(t,e):yq(t,(e.s=-e.s,e))};fe.precision=fe.sd=function(e){var t,n,r,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(ul+e);if(t=Xt(i)+1,r=i.d.length-1,n=r*wt+1,r=i.d[r],r){for(;r%10==0;r/=10)n--;for(r=i.d[0];r>=10;r/=10)n++}return e&&t>n?t:n};fe.squareRoot=fe.sqrt=function(){var e,t,n,r,i,s,a,o=this,l=o.constructor;if(o.s<1){if(!o.s)return new l(0);throw Error(Zr+"NaN")}for(e=Xt(o),Nt=!1,i=Math.sqrt(+o),i==0||i==1/0?(t=Yi(o.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=kd((e+1)/2)-(e<0||e%2),i==1/0?t="5e"+e:(t=i.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),r=new l(t)):r=new l(i.toString()),n=l.precision,i=a=n+3;;)if(s=r,r=s.plus(Os(o,s,a+2)).times(.5),Yi(s.d).slice(0,a)===(t=Yi(r.d)).slice(0,a)){if(t=t.slice(a-3,a+1),i==a&&t=="4999"){if(dt(s,n+1,0),s.times(s).eq(o)){r=s;break}}else if(t!="9999")break;a+=4}return Nt=!0,dt(r,n)};fe.times=fe.mul=function(e){var t,n,r,i,s,a,o,l,u,d=this,h=d.constructor,f=d.d,p=(e=new h(e)).d;if(!d.s||!e.s)return new h(0);for(e.s*=d.s,n=d.e+e.e,l=f.length,u=p.length,l<u&&(s=f,f=p,p=s,a=l,l=u,u=a),s=[],a=l+u,r=a;r--;)s.push(0);for(r=u;--r>=0;){for(t=0,i=l+r;i>r;)o=s[i]+p[r]*f[i-r-1]+t,s[i--]=o%cn|0,t=o/cn|0;s[i]=(s[i]+t)%cn|0}for(;!s[--a];)s.pop();return t?++n:s.shift(),e.d=s,e.e=n,Nt?dt(e,h.precision):e};fe.toDecimalPlaces=fe.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),e===void 0?n:(os(e,0,wd),t===void 0?t=r.rounding:os(t,0,8),dt(n,e+Xt(n)+1,t))};fe.toExponential=function(e,t){var n,r=this,i=r.constructor;return e===void 0?n=_l(r,!0):(os(e,0,wd),t===void 0?t=i.rounding:os(t,0,8),r=dt(new i(r),e+1,t),n=_l(r,!0,e+1)),n};fe.toFixed=function(e,t){var n,r,i=this,s=i.constructor;return e===void 0?_l(i):(os(e,0,wd),t===void 0?t=s.rounding:os(t,0,8),r=dt(new s(i),e+Xt(i)+1,t),n=_l(r.abs(),!1,e+Xt(r)+1),i.isneg()&&!i.isZero()?"-"+n:n)};fe.toInteger=fe.toint=function(){var e=this,t=e.constructor;return dt(new t(e),Xt(e)+1,t.rounding)};fe.toNumber=function(){return+this};fe.toPower=fe.pow=function(e){var t,n,r,i,s,a,o=this,l=o.constructor,u=12,d=+(e=new l(e));if(!e.s)return new l(vr);if(o=new l(o),!o.s){if(e.s<1)throw Error(Zr+"Infinity");return o}if(o.eq(vr))return o;if(r=l.precision,e.eq(vr))return dt(o,r);if(t=e.e,n=e.d.length-1,a=t>=n,s=o.s,a){if((n=d<0?-d:d)<=pq){for(i=new l(vr),t=Math.ceil(r/wt+4),Nt=!1;n%2&&(i=i.times(o),$I(i.d,t)),n=kd(n/2),n!==0;)o=o.times(o),$I(o.d,t);return Nt=!0,e.s<0?new l(vr).div(i):dt(i,r)}}else if(s<0)throw Error(Zr+"NaN");return s=s<0&&e.d[Math.max(t,n)]&1?-1:1,o.s=1,Nt=!1,i=e.times(zf(o,r+u)),Nt=!0,i=gq(i),i.s=s,i};fe.toPrecision=function(e,t){var n,r,i=this,s=i.constructor;return e===void 0?(n=Xt(i),r=_l(i,n<=s.toExpNeg||n>=s.toExpPos)):(os(e,1,wd),t===void 0?t=s.rounding:os(t,0,8),i=dt(new s(i),e,t),n=Xt(i),r=_l(i,e<=n||n<=s.toExpNeg,e)),r};fe.toSignificantDigits=fe.tosd=function(e,t){var n=this,r=n.constructor;return e===void 0?(e=r.precision,t=r.rounding):(os(e,1,wd),t===void 0?t=r.rounding:os(t,0,8)),dt(new r(n),e,t)};fe.toString=fe.valueOf=fe.val=fe.toJSON=fe[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=Xt(e),n=e.constructor;return _l(e,t<=n.toExpNeg||t>=n.toExpPos)};function mq(e,t){var n,r,i,s,a,o,l,u,d=e.constructor,h=d.precision;if(!e.s||!t.s)return t.s||(t=new d(e)),Nt?dt(t,h):t;if(l=e.d,u=t.d,a=e.e,i=t.e,l=l.slice(),s=a-i,s){for(s<0?(r=l,s=-s,o=u.length):(r=u,i=a,o=l.length),a=Math.ceil(h/wt),o=a>o?a+1:o+1,s>o&&(s=o,r.length=1),r.reverse();s--;)r.push(0);r.reverse()}for(o=l.length,s=u.length,o-s<0&&(s=o,r=u,u=l,l=r),n=0;s;)n=(l[--s]=l[s]+u[s]+n)/cn|0,l[s]%=cn;for(n&&(l.unshift(n),++i),o=l.length;l[--o]==0;)l.pop();return t.d=l,t.e=i,Nt?dt(t,h):t}function os(e,t,n){if(e!==~~e||e<t||e>n)throw Error(ul+e)}function Yi(e){var t,n,r,i=e.length-1,s="",a=e[0];if(i>0){for(s+=a,t=1;t<i;t++)r=e[t]+"",n=wt-r.length,n&&(s+=ya(n)),s+=r;a=e[t],r=a+"",n=wt-r.length,n&&(s+=ya(n))}else if(a===0)return"0";for(;a%10===0;)a/=10;return s+a}var Os=function(){function e(r,i){var s,a=0,o=r.length;for(r=r.slice();o--;)s=r[o]*i+a,r[o]=s%cn|0,a=s/cn|0;return a&&r.unshift(a),r}function t(r,i,s,a){var o,l;if(s!=a)l=s>a?1:-1;else for(o=l=0;o<s;o++)if(r[o]!=i[o]){l=r[o]>i[o]?1:-1;break}return l}function n(r,i,s){for(var a=0;s--;)r[s]-=a,a=r[s]<i[s]?1:0,r[s]=a*cn+r[s]-i[s];for(;!r[0]&&r.length>1;)r.shift()}return function(r,i,s,a){var o,l,u,d,h,f,p,g,m,y,v,x,b,S,k,j,_,E,T=r.constructor,N=r.s==i.s?1:-1,P=r.d,C=i.d;if(!r.s)return new T(r);if(!i.s)throw Error(Zr+"Division by zero");for(l=r.e-i.e,_=C.length,k=P.length,p=new T(N),g=p.d=[],u=0;C[u]==(P[u]||0);)++u;if(C[u]>(P[u]||0)&&--l,s==null?x=s=T.precision:a?x=s+(Xt(r)-Xt(i))+1:x=s,x<0)return new T(0);if(x=x/wt+2|0,u=0,_==1)for(d=0,C=C[0],x++;(u<k||d)&&x--;u++)b=d*cn+(P[u]||0),g[u]=b/C|0,d=b%C|0;else{for(d=cn/(C[0]+1)|0,d>1&&(C=e(C,d),P=e(P,d),_=C.length,k=P.length),S=_,m=P.slice(0,_),y=m.length;y<_;)m[y++]=0;E=C.slice(),E.unshift(0),j=C[0],C[1]>=cn/2&&++j;do d=0,o=t(C,m,_,y),o<0?(v=m[0],_!=y&&(v=v*cn+(m[1]||0)),d=v/j|0,d>1?(d>=cn&&(d=cn-1),h=e(C,d),f=h.length,y=m.length,o=t(h,m,f,y),o==1&&(d--,n(h,_<f?E:C,f))):(d==0&&(o=d=1),h=C.slice()),f=h.length,f<y&&h.unshift(0),n(m,h,y),o==-1&&(y=m.length,o=t(C,m,_,y),o<1&&(d++,n(m,_<y?E:C,y))),y=m.length):o===0&&(d++,m=[0]),g[u++]=d,o&&m[0]?m[y++]=P[S]||0:(m=[P[S]],y=1);while((S++<k||m[0]!==void 0)&&x--)}return g[0]||g.shift(),p.e=l,dt(p,a?s+Xt(p)+1:s)}}();function gq(e,t){var n,r,i,s,a,o,l=0,u=0,d=e.constructor,h=d.precision;if(Xt(e)>16)throw Error(sN+Xt(e));if(!e.s)return new d(vr);for(t==null?(Nt=!1,o=h):o=t,a=new d(.03125);e.abs().gte(.1);)e=e.times(a),u+=5;for(r=Math.log($o(2,u))/Math.LN10*2+5|0,o+=r,n=i=s=new d(vr),d.precision=o;;){if(i=dt(i.times(e),o),n=n.times(++l),a=s.plus(Os(i,n,o)),Yi(a.d).slice(0,o)===Yi(s.d).slice(0,o)){for(;u--;)s=dt(s.times(s),o);return d.precision=h,t==null?(Nt=!0,dt(s,h)):s}s=a}}function Xt(e){for(var t=e.e*wt,n=e.d[0];n>=10;n/=10)t++;return t}function Sw(e,t,n){if(t>e.LN10.sd())throw Nt=!0,n&&(e.precision=n),Error(Zr+"LN10 precision limit exceeded");return dt(new e(e.LN10),t)}function ya(e){for(var t="";e--;)t+="0";return t}function zf(e,t){var n,r,i,s,a,o,l,u,d,h=1,f=10,p=e,g=p.d,m=p.constructor,y=m.precision;if(p.s<1)throw Error(Zr+(p.s?"NaN":"-Infinity"));if(p.eq(vr))return new m(0);if(t==null?(Nt=!1,u=y):u=t,p.eq(10))return t==null&&(Nt=!0),Sw(m,u);if(u+=f,m.precision=u,n=Yi(g),r=n.charAt(0),s=Xt(p),Math.abs(s)<15e14){for(;r<7&&r!=1||r==1&&n.charAt(1)>3;)p=p.times(e),n=Yi(p.d),r=n.charAt(0),h++;s=Xt(p),r>1?(p=new m("0."+n),s++):p=new m(r+"."+n.slice(1))}else return l=Sw(m,u+2,y).times(s+""),p=zf(new m(r+"."+n.slice(1)),u-f).plus(l),m.precision=y,t==null?(Nt=!0,dt(p,y)):p;for(o=a=p=Os(p.minus(vr),p.plus(vr),u),d=dt(p.times(p),u),i=3;;){if(a=dt(a.times(d),u),l=o.plus(Os(a,new m(i),u)),Yi(l.d).slice(0,u)===Yi(o.d).slice(0,u))return o=o.times(2),s!==0&&(o=o.plus(Sw(m,u+2,y).times(s+""))),o=Os(o,new m(h),u),m.precision=y,t==null?(Nt=!0,dt(o,y)):o;o=l,i+=2}}function MI(e,t){var n,r,i;for((n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;t.charCodeAt(r)===48;)++r;for(i=t.length;t.charCodeAt(i-1)===48;)--i;if(t=t.slice(r,i),t){if(i-=r,n=n-r-1,e.e=kd(n/wt),e.d=[],r=(n+1)%wt,n<0&&(r+=wt),r<i){for(r&&e.d.push(+t.slice(0,r)),i-=wt;r<i;)e.d.push(+t.slice(r,r+=wt));t=t.slice(r),r=wt-t.length}else r-=i;for(;r--;)t+="0";if(e.d.push(+t),Nt&&(e.e>lv||e.e<-lv))throw Error(sN+n)}else e.s=0,e.e=0,e.d=[0];return e}function dt(e,t,n){var r,i,s,a,o,l,u,d,h=e.d;for(a=1,s=h[0];s>=10;s/=10)a++;if(r=t-a,r<0)r+=wt,i=t,u=h[d=0];else{if(d=Math.ceil((r+1)/wt),s=h.length,d>=s)return e;for(u=s=h[d],a=1;s>=10;s/=10)a++;r%=wt,i=r-wt+a}if(n!==void 0&&(s=$o(10,a-i-1),o=u/s%10|0,l=t<0||h[d+1]!==void 0||u%s,l=n<4?(o||l)&&(n==0||n==(e.s<0?3:2)):o>5||o==5&&(n==4||l||n==6&&(r>0?i>0?u/$o(10,a-i):0:h[d-1])%10&1||n==(e.s<0?8:7))),t<1||!h[0])return l?(s=Xt(e),h.length=1,t=t-s-1,h[0]=$o(10,(wt-t%wt)%wt),e.e=kd(-t/wt)||0):(h.length=1,h[0]=e.e=e.s=0),e;if(r==0?(h.length=d,s=1,d--):(h.length=d+1,s=$o(10,wt-r),h[d]=i>0?(u/$o(10,a-i)%$o(10,i)|0)*s:0),l)for(;;)if(d==0){(h[0]+=s)==cn&&(h[0]=1,++e.e);break}else{if(h[d]+=s,h[d]!=cn)break;h[d--]=0,s=1}for(r=h.length;h[--r]===0;)h.pop();if(Nt&&(e.e>lv||e.e<-lv))throw Error(sN+Xt(e));return e}function yq(e,t){var n,r,i,s,a,o,l,u,d,h,f=e.constructor,p=f.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new f(e),Nt?dt(t,p):t;if(l=e.d,h=t.d,r=t.e,u=e.e,l=l.slice(),a=u-r,a){for(d=a<0,d?(n=l,a=-a,o=h.length):(n=h,r=u,o=l.length),i=Math.max(Math.ceil(p/wt),o)+2,a>i&&(a=i,n.length=1),n.reverse(),i=a;i--;)n.push(0);n.reverse()}else{for(i=l.length,o=h.length,d=i<o,d&&(o=i),i=0;i<o;i++)if(l[i]!=h[i]){d=l[i]<h[i];break}a=0}for(d&&(n=l,l=h,h=n,t.s=-t.s),o=l.length,i=h.length-o;i>0;--i)l[o++]=0;for(i=h.length;i>a;){if(l[--i]<h[i]){for(s=i;s&&l[--s]===0;)l[s]=cn-1;--l[s],l[i]+=cn}l[i]-=h[i]}for(;l[--o]===0;)l.pop();for(;l[0]===0;l.shift())--r;return l[0]?(t.d=l,t.e=r,Nt?dt(t,p):t):new f(0)}function _l(e,t,n){var r,i=Xt(e),s=Yi(e.d),a=s.length;return t?(n&&(r=n-a)>0?s=s.charAt(0)+"."+s.slice(1)+ya(r):a>1&&(s=s.charAt(0)+"."+s.slice(1)),s=s+(i<0?"e":"e+")+i):i<0?(s="0."+ya(-i-1)+s,n&&(r=n-a)>0&&(s+=ya(r))):i>=a?(s+=ya(i+1-a),n&&(r=n-i-1)>0&&(s=s+"."+ya(r))):((r=i+1)<a&&(s=s.slice(0,r)+"."+s.slice(r)),n&&(r=n-a)>0&&(i+1===a&&(s+="."),s+=ya(r))),e.s<0?"-"+s:s}function $I(e,t){if(e.length>t)return e.length=t,!0}function vq(e){var t,n,r;function i(s){var a=this;if(!(a instanceof i))return new i(s);if(a.constructor=i,s instanceof i){a.s=s.s,a.e=s.e,a.d=(s=s.d)?s.slice():s;return}if(typeof s=="number"){if(s*0!==0)throw Error(ul+s);if(s>0)a.s=1;else if(s<0)s=-s,a.s=-1;else{a.s=0,a.e=0,a.d=[0];return}if(s===~~s&&s<1e7){a.e=0,a.d=[s];return}return MI(a,s.toString())}else if(typeof s!="string")throw Error(ul+s);if(s.charCodeAt(0)===45?(s=s.slice(1),a.s=-1):a.s=1,SAe.test(s))MI(a,s);else throw Error(ul+s)}if(i.prototype=fe,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=vq,i.config=i.set=jAe,e===void 0&&(e={}),e)for(r=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t<r.length;)e.hasOwnProperty(n=r[t++])||(e[n]=this[n]);return i.config(e),i}function jAe(e){if(!e||typeof e!="object")throw Error(Zr+"Object expected");var t,n,r,i=["precision",1,wd,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<i.length;t+=3)if((r=e[n=i[t]])!==void 0)if(kd(r)===r&&r>=i[t+1]&&r<=i[t+2])this[n]=r;else throw Error(ul+n+": "+r);if((r=e[n="LN10"])!==void 0)if(r==Math.LN10)this[n]=new this(r);else throw Error(ul+n+": "+r);return this}var aN=vq(kAe);vr=new aN(1);const ct=aN;function _Ae(e){return CAe(e)||NAe(e)||TAe(e)||EAe()}function EAe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 582In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function TAe(e,t){if(e){if(typeof e=="string")return DS(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return DS(e,t)}}function NAe(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function CAe(e){if(Array.isArray(e))return DS(e)}function DS(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var AAe=function(t){return t},xq={"@@functional/placeholder":!0},bq=function(t){return t===xq},DI=function(t){return function n(){return arguments.length===0||arguments.length===1&&bq(arguments.length<=0?void 0:arguments[0])?n:t.apply(void 0,arguments)}},PAe=function e(t,n){return t===1?n:DI(function(){for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];var a=i.filter(function(o){return o!==xq}).length;return a>=t?n.apply(void 0,i):e(t-a,DI(function(){for(var o=arguments.length,l=new Array(o),u=0;u<o;u++)l[u]=arguments[u];var d=i.map(function(h){return bq(h)?l.shift():h});return n.apply(void 0,_Ae(d).concat(l))}))})},mb=function(t){return PAe(t.length,t)},LS=function(t,n){for(var r=[],i=t;i<n;++i)r[i-t]=i;return r},OAe=mb(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(n){return t[n]}).map(e)}),RAe=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(!n.length)return AAe;var i=n.reverse(),s=i[0],a=i.slice(1);return function(){return a.reduce(function(o,l){return l(o)},s.apply(void 0,arguments))}},FS=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},wq=function(t){var n=null,r=null;return function(){for(var i=arguments.length,s=new Array(i),a=0;a<i;a++)s[a]=arguments[a];return n&&s.every(function(o,l){return o===n[l]})||(n=s,r=t.apply(void 0,s)),r}};function IAe(e){var t;return e===0?t=1:t=Math.floor(new ct(e).abs().log(10).toNumber())+1,t}function MAe(e,t,n){for(var r=new ct(e),i=0,s=[];r.lt(t)&&i<1e5;)s.push(r.toNumber()),r=r.add(n),i++;return s}var $Ae=mb(function(e,t,n){var r=+e,i=+t;return r+n*(i-r)}),DAe=mb(function(e,t,n){var r=t-+e;return r=r||1/0,(n-e)/r}),LAe=mb(function(e,t,n){var r=t-+e;return r=r||1/0,Math.max(0,Math.min(1,(n-e)/r))});const gb={rangeStep:MAe,getDigitCount:IAe,interpolateNumber:$Ae,uninterpolateNumber:DAe,uninterpolateTruncation:LAe};function BS(e){return VAe(e)||BAe(e)||kq(e)||FAe()}function FAe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 583In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function BAe(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function VAe(e){if(Array.isArray(e))return VS(e)}function Hf(e,t){return WAe(e)||UAe(e,t)||kq(e,t)||qAe()}function qAe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 584In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function kq(e,t){if(e){if(typeof e=="string")return VS(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return VS(e,t)}}function VS(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function UAe(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var n=[],r=!0,i=!1,s=void 0;try{for(var a=e[Symbol.iterator](),o;!(r=(o=a.next()).done)&&(n.push(o.value),!(t&&n.length===t));r=!0);}catch(l){i=!0,s=l}finally{try{!r&&a.return!=null&&a.return()}finally{if(i)throw s}}return n}}function WAe(e){if(Array.isArray(e))return e}function Sq(e){var t=Hf(e,2),n=t[0],r=t[1],i=n,s=r;return n>r&&(i=r,s=n),[i,s]}function jq(e,t,n){if(e.lte(0))return new ct(0);var r=gb.getDigitCount(e.toNumber()),i=new ct(10).pow(r),s=e.div(i),a=r!==1?.05:.1,o=new ct(Math.ceil(s.div(a).toNumber())).add(n).mul(a),l=o.mul(i);return t?l:new ct(Math.ceil(l))}function zAe(e,t,n){var r=1,i=new ct(e);if(!i.isint()&&n){var s=Math.abs(e);s<1?(r=new ct(10).pow(gb.getDigitCount(e)-1),i=new ct(Math.floor(i.div(r).toNumber())).mul(r)):s>1&&(i=new ct(Math.floor(e)))}else e===0?i=new ct(Math.floor((t-1)/2)):n||(i=new ct(Math.floor(e)));var a=Math.floor((t-1)/2),o=RAe(OAe(function(l){return i.add(new ct(l-a).mul(r)).toNumber()}),LS);return o(0,t)}function _q(e,t,n,r){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((t-e)/(n-1)))return{step:new ct(0),tickMin:new ct(0),tickMax:new ct(0)};var s=jq(new ct(t).sub(e).div(n-1),r,i),a;e<=0&&t>=0?a=new ct(0):(a=new ct(e).add(t).div(2),a=a.sub(new ct(a).mod(s)));var o=Math.ceil(a.sub(e).div(s).toNumber()),l=Math.ceil(new ct(t).sub(a).div(s).toNumber()),u=o+l+1;return u>n?_q(e,t,n,r,i+1):(u<n&&(l=t>0?l+(n-u):l,o=t>0?o:o+(n-u)),{step:s,tickMin:a.sub(new ct(o).mul(s)),tickMax:a.add(new ct(l).mul(s))})}function HAe(e){var t=Hf(e,2),n=t[0],r=t[1],i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,a=Math.max(i,2),o=Sq([n,r]),l=Hf(o,2),u=l[0],d=l[1];if(u===-1/0||d===1/0){var h=d===1/0?[u].concat(BS(LS(0,i-1).map(function(){return 1/0}))):[].concat(BS(LS(0,i-1).map(function(){return-1/0})),[d]);return n>r?FS(h):h}if(u===d)return zAe(u,i,s);var f=_q(u,d,a,s),p=f.step,g=f.tickMin,m=f.tickMax,y=gb.rangeStep(g,m.add(new ct(.1).mul(p)),p);return n>r?FS(y):y}function KAe(e,t){var n=Hf(e,2),r=n[0],i=n[1],s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,a=Sq([r,i]),o=Hf(a,2),l=o[0],u=o[1];if(l===-1/0||u===1/0)return[r,i];if(l===u)return[l];var d=Math.max(t,2),h=jq(new ct(u).sub(l).div(d-1),s,0),f=[].concat(BS(gb.rangeStep(new ct(l),new ct(u).sub(new ct(.99).mul(h)),h)),[u]);return r>i?FS(f):f}var GAe=wq(HAe),YAe=wq(KAe),XAe="Invariant failed";function Ru(e,t){throw new Error(XAe)}var QAe=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function Iu(e){"@babel/helpers - typeof";return Iu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Iu(e)}function cv(){return cv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},cv.apply(this,arguments)}function ZAe(e,t){return nPe(e)||tPe(e,t)||ePe(e,t)||JAe()}function JAe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 585In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ePe(e,t){if(e){if(typeof e=="string")return LI(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return LI(e,t)}}function LI(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function tPe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,a,o=[],l=!0,u=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(l=(r=s.call(n)).done)&&(o.push(r.value),o.length!==t);l=!0);}catch(d){u=!0,i=d}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return o}}function nPe(e){if(Array.isArray(e))return e}function rPe(e,t){if(e==null)return{};var n=iPe(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function iPe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function sPe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function aPe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Nq(r.key),r)}}function oPe(e,t,n){return t&&aPe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function lPe(e,t,n){return t=uv(t),cPe(e,Eq()?Reflect.construct(t,n||[],uv(e).constructor):t.apply(e,n))}function cPe(e,t){if(t&&(Iu(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return uPe(e)}function uPe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Eq(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Eq=function(){return!!e})()}function uv(e){return uv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},uv(e)}function dPe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&qS(e,t)}function qS(e,t){return qS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},qS(e,t)}function Tq(e,t,n){return t=Nq(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Nq(e){var t=hPe(e,"string");return Iu(t)=="symbol"?t:t+""}function hPe(e,t){if(Iu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Iu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var oN=function(e){function t(){return sPe(this,t),lPe(this,t,arguments)}return dPe(t,e),oPe(t,[{key:"render",value:function(){var r=this.props,i=r.offset,s=r.layout,a=r.width,o=r.dataKey,l=r.data,u=r.dataPointFormatter,d=r.xAxis,h=r.yAxis,f=rPe(r,QAe),p=Fe(f,!1);this.props.direction==="x"&&d.type!=="number"&&Ru();var g=l.map(function(m){var y=u(m,o),v=y.x,x=y.y,b=y.value,S=y.errorVal;if(!S)return null;var k=[],j,_;if(Array.isArray(S)){var E=ZAe(S,2);j=E[0],_=E[1]}else j=_=S;if(s==="vertical"){var T=d.scale,N=x+i,P=N+a,C=N-a,M=T(b-j),R=T(b+_);k.push({x1:R,y1:P,x2:R,y2:C}),k.push({x1:M,y1:N,x2:R,y2:N}),k.push({x1:M,y1:P,x2:M,y2:C})}else if(s==="horizontal"){var D=h.scale,L=v+i,B=L-a,I=L+a,O=D(b-j),V=D(b+_);k.push({x1:B,y1:V,x2:I,y2:V}),k.push({x1:L,y1:O,x2:L,y2:V}),k.push({x1:B,y1:O,x2:I,y2:O})}return A.createElement(Bt,cv({className:"recharts-errorBar",key:"bar-".concat(k.map(function(z){return"".concat(z.x1,"-").concat(z.x2,"-").concat(z.y1,"-").concat(z.y2)}))},p),k.map(function(z){return A.createElement("line",cv({},z,{key:"line-".concat(z.x1,"-").concat(z.x2,"-").concat(z.y1,"-").concat(z.y2)}))}))});return A.createElement(Bt,{className:"recharts-errorBars"},g)}}])}(A.Component);Tq(oN,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});Tq(oN,"displayName","ErrorBar");function Kf(e){"@babel/helpers - typeof";return Kf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Kf(e)}function FI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Eo(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?FI(Object(n),!0).forEach(function(r){fPe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):FI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function fPe(e,t,n){return t=pPe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pPe(e){var t=mPe(e,"string");return Kf(t)=="symbol"?t:t+""}function mPe(e,t){if(Kf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Kf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Cq=function(t){var n=t.children,r=t.formattedGraphicalItems,i=t.legendWidth,s=t.legendContent,a=Dr(n,Wc);if(!a)return null;var o=Wc.defaultProps,l=o!==void 0?Eo(Eo({},o),a.props):{},u;return a.props&&a.props.payload?u=a.props&&a.props.payload:s==="children"?u=(r||[]).reduce(function(d,h){var f=h.item,p=h.props,g=p.sectors||p.data||[];return d.concat(g.map(function(m){return{type:a.props.iconType||f.props.legendType,value:m.name,color:m.fill,payload:m}}))},[]):u=(r||[]).map(function(d){var h=d.item,f=h.type.defaultProps,p=f!==void 0?Eo(Eo({},f),h.props):{},g=p.dataKey,m=p.name,y=p.legendType,v=p.hide;return{inactive:v,dataKey:g,type:l.iconType||y||"square",color:lN(h),value:m||g,payload:p}}),Eo(Eo(Eo({},l),Wc.getWithHeight(a,i)),{},{payload:u,item:a})};function Gf(e){"@babel/helpers - typeof";return Gf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Gf(e)}function BI(e){return xPe(e)||vPe(e)||yPe(e)||gPe()}function gPe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 586In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function yPe(e,t){if(e){if(typeof e=="string")return US(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return US(e,t)}}function vPe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function xPe(e){if(Array.isArray(e))return US(e)}function US(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function VI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ft(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?VI(Object(n),!0).forEach(function(r){Hc(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):VI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Hc(e,t,n){return t=bPe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bPe(e){var t=wPe(e,"string");return Gf(t)=="symbol"?t:t+""}function wPe(e,t){if(Gf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Gf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function xr(e,t,n){return Ke(e)||Ke(t)?n:sn(t)?Ci(e,t,n):Be(t)?t(e):n}function $h(e,t,n,r){var i=vAe(e,function(o){return xr(o,t)});if(n==="number"){var s=i.filter(function(o){return le(o)||parseFloat(o)});return s.length?[pb(s),fb(s)]:[1/0,-1/0]}var a=r?i.filter(function(o){return!Ke(o)}):i;return a.map(function(o){return sn(o)||o instanceof Date?o:""})}var kPe=function(t){var n,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],i=arguments.length>2?arguments[2]:void 0,s=arguments.length>3?arguments[3]:void 0,a=-1,o=(n=r==null?void 0:r.length)!==null&&n!==void 0?n:0;if(o<=1)return 0;if(s&&s.axisType==="angleAxis"&&Math.abs(Math.abs(s.range[1]-s.range[0])-360)<=1e-6)for(var l=s.range,u=0;u<o;u++){var d=u>0?i[u-1].coordinate:i[o-1].coordinate,h=i[u].coordinate,f=u>=o-1?i[0].coordinate:i[u+1].coordinate,p=void 0;if(Wr(h-d)!==Wr(f-h)){var g=[];if(Wr(f-h)===Wr(l[1]-l[0])){p=f;var m=h+l[1]-l[0];g[0]=Math.min(m,(m+d)/2),g[1]=Math.max(m,(m+d)/2)}else{p=d;var y=f+l[1]-l[0];g[0]=Math.min(h,(y+h)/2),g[1]=Math.max(h,(y+h)/2)}var v=[Math.min(h,(p+h)/2),Math.max(h,(p+h)/2)];if(t>v[0]&&t<=v[1]||t>=g[0]&&t<=g[1]){a=i[u].index;break}}else{var x=Math.min(d,f),b=Math.max(d,f);if(t>(x+h)/2&&t<=(b+h)/2){a=i[u].index;break}}}else for(var S=0;S<o;S++)if(S===0&&t<=(r[S].coordinate+r[S+1].coordinate)/2||S>0&&S<o-1&&t>(r[S].coordinate+r[S-1].coordinate)/2&&t<=(r[S].coordinate+r[S+1].coordinate)/2||S===o-1&&t>(r[S].coordinate+r[S-1].coordinate)/2){a=r[S].index;break}return a},lN=function(t){var n,r=t,i=r.type.displayName,s=(n=t.type)!==null&&n!==void 0&&n.defaultProps?Ft(Ft({},t.type.defaultProps),t.props):t.props,a=s.stroke,o=s.fill,l;switch(i){case"Line":l=a;break;case"Area":case"Radar":l=a&&a!=="none"?a:o;break;default:l=o;break}return l},SPe=function(t){var n=t.barSize,r=t.totalSize,i=t.stackGroups,s=i===void 0?{}:i;if(!s)return{};for(var a={},o=Object.keys(s),l=0,u=o.length;l<u;l++)for(var d=s[o[l]].stackGroups,h=Object.keys(d),f=0,p=h.length;f<p;f++){var g=d[h[f]],m=g.items,y=g.cateAxisId,v=m.filter(function(_){return As(_.type).indexOf("Bar")>=0});if(v&&v.length){var x=v[0].type.defaultProps,b=x!==void 0?Ft(Ft({},x),v[0].props):v[0].props,S=b.barSize,k=b[y];a[k]||(a[k]=[]);var j=Ke(S)?n:S;a[k].push({item:v[0],stackList:v.slice(1),barSize:Ke(j)?void 0:ir(j,r,0)})}}return a},jPe=function(t){var n=t.barGap,r=t.barCategoryGap,i=t.bandSize,s=t.sizeList,a=s===void 0?[]:s,o=t.maxBarSize,l=a.length;if(l<1)return null;var u=ir(n,i,0,!0),d,h=[];if(a[0].barSize===+a[0].barSize){var f=!1,p=i/l,g=a.reduce(function(S,k){return S+k.barSize||0},0);g+=(l-1)*u,g>=i&&(g-=(l-1)*u,u=0),g>=i&&p>0&&(f=!0,p*=.9,g=l*p);var m=(i-g)/2>>0,y={offset:m-u,size:0};d=a.reduce(function(S,k){var j={item:k.item,position:{offset:y.offset+y.size+u,size:f?p:k.barSize}},_=[].concat(BI(S),[j]);return y=_[_.length-1].position,k.stackList&&k.stackList.length&&k.stackList.forEach(function(E){_.push({item:E,position:y})}),_},h)}else{var v=ir(r,i,0,!0);i-2*v-(l-1)*u<=0&&(u=0);var x=(i-2*v-(l-1)*u)/l;x>1&&(x>>=0);var b=o===+o?Math.min(x,o):x;d=a.reduce(function(S,k,j){var _=[].concat(BI(S),[{item:k.item,position:{offset:v+(x+u)*j+(x-b)/2,size:b}}]);return k.stackList&&k.stackList.length&&k.stackList.forEach(function(E){_.push({item:E,position:_[_.length-1].position})}),_},h)}return d},_Pe=function(t,n,r,i){var s=r.children,a=r.width,o=r.margin,l=a-(o.left||0)-(o.right||0),u=Cq({children:s,legendWidth:l});if(u){var d=i||{},h=d.width,f=d.height,p=u.align,g=u.verticalAlign,m=u.layout;if((m==="vertical"||m==="horizontal"&&g==="middle")&&p!=="center"&&le(t[p]))return Ft(Ft({},t),{},Hc({},p,t[p]+(h||0)));if((m==="horizontal"||m==="vertical"&&p==="center")&&g!=="middle"&&le(t[g]))return Ft(Ft({},t),{},Hc({},g,t[g]+(f||0)))}return t},EPe=function(t,n,r){return Ke(n)?!0:t==="horizontal"?n==="yAxis":t==="vertical"||r==="x"?n==="xAxis":r==="y"?n==="yAxis":!0},Aq=function(t,n,r,i,s){var a=n.props.children,o=ns(a,oN).filter(function(u){return EPe(i,s,u.props.direction)});if(o&&o.length){var l=o.map(function(u){return u.props.dataKey});return t.reduce(function(u,d){var h=xr(d,r);if(Ke(h))return u;var f=Array.isArray(h)?[pb(h),fb(h)]:[h,h],p=l.reduce(function(g,m){var y=xr(d,m,0),v=f[0]-Math.abs(Array.isArray(y)?y[0]:y),x=f[1]+Math.abs(Array.isArray(y)?y[1]:y);return[Math.min(v,g[0]),Math.max(x,g[1])]},[1/0,-1/0]);return[Math.min(p[0],u[0]),Math.max(p[1],u[1])]},[1/0,-1/0])}return null},TPe=function(t,n,r,i,s){var a=n.map(function(o){return Aq(t,o,r,s,i)}).filter(function(o){return!Ke(o)});return a&&a.length?a.reduce(function(o,l){return[Math.min(o[0],l[0]),Math.max(o[1],l[1])]},[1/0,-1/0]):null},Pq=function(t,n,r,i,s){var a=n.map(function(l){var u=l.props.dataKey;return r==="number"&&u&&Aq(t,l,u,i)||$h(t,u,r,s)});if(r==="number")return a.reduce(function(l,u){return[Math.min(l[0],u[0]),Math.max(l[1],u[1])]},[1/0,-1/0]);var o={};return a.reduce(function(l,u){for(var d=0,h=u.length;d<h;d++)o[u[d]]||(o[u[d]]=!0,l.push(u[d]));return l},[])},Oq=function(t,n){return t==="horizontal"&&n==="xAxis"||t==="vertical"&&n==="yAxis"||t==="centric"&&n==="angleAxis"||t==="radial"&&n==="radiusAxis"},dh=function(t,n,r){if(!t)return null;var i=t.scale,s=t.duplicateDomain,a=t.type,o=t.range,l=t.realScaleType==="scaleBand"?i.bandwidth()/2:2,u=(n||r)&&a==="category"&&i.bandwidth?i.bandwidth()/l:0;if(u=t.axisType==="angleAxis"&&(o==null?void 0:o.length)>=2?Wr(o[0]-o[1])*2*u:u,n&&(t.ticks||t.niceTicks)){var d=(t.ticks||t.niceTicks).map(function(h){var f=s?s.indexOf(h):h;return{coordinate:i(f)+u,value:h,offset:u}});return d.filter(function(h){return!zp(h.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(h,f){return{coordinate:i(h)+u,value:h,index:f,offset:u}}):i.ticks&&!r?i.ticks(t.tickCount).map(function(h){return{coordinate:i(h)+u,value:h,offset:u}}):i.domain().map(function(h,f){return{coordinate:i(h)+u,value:s?s[h]:h,index:f,offset:u}})},jw=new WeakMap,Xm=function(t,n){if(typeof n!="function")return t;jw.has(t)||jw.set(t,new WeakMap);var r=jw.get(t);if(r.has(n))return r.get(n);var i=function(){t.apply(void 0,arguments),n.apply(void 0,arguments)};return r.set(n,i),i},NPe=function(t,n,r){var i=t.scale,s=t.type,a=t.layout,o=t.axisType;if(i==="auto")return a==="radial"&&o==="radiusAxis"?{scale:Bf(),realScaleType:"band"}:a==="radial"&&o==="angleAxis"?{scale:iv(),realScaleType:"linear"}:s==="category"&&n&&(n.indexOf("LineChart")>=0||n.indexOf("AreaChart")>=0||n.indexOf("ComposedChart")>=0&&!r)?{scale:Mh(),realScaleType:"point"}:s==="category"?{scale:Bf(),realScaleType:"band"}:{scale:iv(),realScaleType:"linear"};if(Wp(i)){var l="scale".concat(Jx(i));return{scale:(II[l]||Mh)(),realScaleType:II[l]?l:"point"}}return Be(i)?{scale:i}:{scale:Mh(),realScaleType:"point"}},qI=1e-4,CPe=function(t){var n=t.domain();if(!(!n||n.length<=2)){var r=n.length,i=t.range(),s=Math.min(i[0],i[1])-qI,a=Math.max(i[0],i[1])+qI,o=t(n[0]),l=t(n[r-1]);(o<s||o>a||l<s||l>a)&&t.domain([n[0],n[r-1]])}},APe=function(t){var n=t.length;if(!(n<=0))for(var r=0,i=t[0].length;r<i;++r)for(var s=0,a=0,o=0;o<n;++o){var l=zp(t[o][r][1])?t[o][r][0]:t[o][r][1];l>=0?(t[o][r][0]=s,t[o][r][1]=s+l,s=t[o][r][1]):(t[o][r][0]=a,t[o][r][1]=a+l,a=t[o][r][1])}},PPe=function(t){var n=t.length;if(!(n<=0))for(var r=0,i=t[0].length;r<i;++r)for(var s=0,a=0;a<n;++a){var o=zp(t[a][r][1])?t[a][r][0]:t[a][r][1];o>=0?(t[a][r][0]=s,t[a][r][1]=s+o,s=t[a][r][1]):(t[a][r][0]=0,t[a][r][1]=0)}},OPe={sign:APe,expand:Ybe,none:ju,silhouette:Xbe,wiggle:Qbe,positive:PPe},RPe=function(t,n,r){var i=n.map(function(o){return o.props.dataKey}),s=OPe[r],a=Gbe().keys(i).value(function(o,l){return+xr(o,l,0)}).order(pS).offset(s);return a(t)},IPe=function(t,n,r,i,s,a){if(!t)return null;var o=a?n.reverse():n,l={},u=o.reduce(function(h,f){var p,g=(p=f.type)!==null&&p!==void 0&&p.defaultProps?Ft(Ft({},f.type.defaultProps),f.props):f.props,m=g.stackId,y=g.hide;if(y)return h;var v=g[r],x=h[v]||{hasStack:!1,stackGroups:{}};if(sn(m)){var b=x.stackGroups[m]||{numericAxisId:r,cateAxisId:i,items:[]};b.items.push(f),x.hasStack=!0,x.stackGroups[m]=b}else x.stackGroups[Qx("_stackId_")]={numericAxisId:r,cateAxisId:i,items:[f]};return Ft(Ft({},h),{},Hc({},v,x))},l),d={};return Object.keys(u).reduce(function(h,f){var p=u[f];if(p.hasStack){var g={};p.stackGroups=Object.keys(p.stackGroups).reduce(function(m,y){var v=p.stackGroups[y];return Ft(Ft({},m),{},Hc({},y,{numericAxisId:r,cateAxisId:i,items:v.items,stackedData:RPe(t,v.items,s)}))},g)}return Ft(Ft({},h),{},Hc({},f,p))},d)},MPe=function(t,n){var r=n.realScaleType,i=n.type,s=n.tickCount,a=n.originalDomain,o=n.allowDecimals,l=r||n.scale;if(l!=="auto"&&l!=="linear")return null;if(s&&i==="number"&&a&&(a[0]==="auto"||a[1]==="auto")){var u=t.domain();if(!u.length)return null;var d=GAe(u,s,o);return t.domain([pb(d),fb(d)]),{niceTicks:d}}if(s&&i==="number"){var h=t.domain(),f=YAe(h,s,o);return{niceTicks:f}}return null},$Pe=function(t,n){var r,i=(r=t.type)!==null&&r!==void 0&&r.defaultProps?Ft(Ft({},t.type.defaultProps),t.props):t.props,s=i.stackId;if(sn(s)){var a=n[s];if(a){var o=a.items.indexOf(t);return o>=0?a.stackedData[o]:null}}return null},DPe=function(t){return t.reduce(function(n,r){return[pb(r.concat([n[0]]).filter(le)),fb(r.concat([n[1]]).filter(le))]},[1/0,-1/0])},Rq=function(t,n,r){return Object.keys(t).reduce(function(i,s){var a=t[s],o=a.stackedData,l=o.reduce(function(u,d){var h=DPe(d.slice(n,r+1));return[Math.min(u[0],h[0]),Math.max(u[1],h[1])]},[1/0,-1/0]);return[Math.min(l[0],i[0]),Math.max(l[1],i[1])]},[1/0,-1/0]).map(function(i){return i===1/0||i===-1/0?0:i})},UI=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,WI=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,WS=function(t,n,r){if(Be(t))return t(n,r);if(!Array.isArray(t))return n;var i=[];if(le(t[0]))i[0]=r?t[0]:Math.min(t[0],n[0]);else if(UI.test(t[0])){var s=+UI.exec(t[0])[1];i[0]=n[0]-s}else Be(t[0])?i[0]=t[0](n[0]):i[0]=n[0];if(le(t[1]))i[1]=r?t[1]:Math.max(t[1],n[1]);else if(WI.test(t[1])){var a=+WI.exec(t[1])[1];i[1]=n[1]+a}else Be(t[1])?i[1]=t[1](n[1]):i[1]=n[1];return i},zS=function(t,n,r){if(t&&t.scale&&t.scale.bandwidth){var i=t.scale.bandwidth();if(!r||i>0)return i}if(t&&n&&n.length>=2){for(var s=RT(n,function(h){return h.coordinate}),a=1/0,o=1,l=s.length;o<l;o++){var u=s[o],d=s[o-1];a=Math.min((u.coordinate||0)-(d.coordinate||0),a)}return a===1/0?0:a}return r?void 0:0},zI=function(t,n,r){return!t||!t.length||iN(t,Ci(r,"type.defaultProps.domain"))?n:t},LPe=function(t,n){var r=t.type.defaultProps?Ft(Ft({},t.type.defaultProps),t.props):t.props,i=r.dataKey,s=r.name,a=r.unit,o=r.formatter,l=r.tooltipType,u=r.chartType,d=r.hide;return Ft(Ft({},Fe(t,!1)),{},{dataKey:i,unit:a,formatter:o,name:s||i,color:lN(t),value:xr(n,i),type:l,payload:n,chartType:u,hide:d})};function Yf(e){"@babel/helpers - typeof";return Yf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Yf(e)}function HI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function bs(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?HI(Object(n),!0).forEach(function(r){Iq(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):HI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Iq(e,t,n){return t=FPe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function FPe(e){var t=BPe(e,"string");return Yf(t)=="symbol"?t:t+""}function BPe(e,t){if(Yf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Yf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function VPe(e,t){return zPe(e)||WPe(e,t)||UPe(e,t)||qPe()}function qPe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 587In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function UPe(e,t){if(e){if(typeof e=="string")return KI(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return KI(e,t)}}function KI(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function WPe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,a,o=[],l=!0,u=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(l=(r=s.call(n)).done)&&(o.push(r.value),o.length!==t);l=!0);}catch(d){u=!0,i=d}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return o}}function zPe(e){if(Array.isArray(e))return e}var dv=Math.PI/180,HPe=function(t){return t*180/Math.PI},yt=function(t,n,r,i){return{x:t+Math.cos(-dv*i)*r,y:n+Math.sin(-dv*i)*r}},Mq=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(t-(r.left||0)-(r.right||0)),Math.abs(n-(r.top||0)-(r.bottom||0)))/2},KPe=function(t,n,r,i,s){var a=t.width,o=t.height,l=t.startAngle,u=t.endAngle,d=ir(t.cx,a,a/2),h=ir(t.cy,o,o/2),f=Mq(a,o,r),p=ir(t.innerRadius,f,0),g=ir(t.outerRadius,f,f*.8),m=Object.keys(n);return m.reduce(function(y,v){var x=n[v],b=x.domain,S=x.reversed,k;if(Ke(x.range))i==="angleAxis"?k=[l,u]:i==="radiusAxis"&&(k=[p,g]),S&&(k=[k[1],k[0]]);else{k=x.range;var j=k,_=VPe(j,2);l=_[0],u=_[1]}var E=NPe(x,s),T=E.realScaleType,N=E.scale;N.domain(b).range(k),CPe(N);var P=MPe(N,bs(bs({},x),{},{realScaleType:T})),C=bs(bs(bs({},x),P),{},{range:k,radius:g,realScaleType:T,scale:N,cx:d,cy:h,innerRadius:p,outerRadius:g,startAngle:l,endAngle:u});return bs(bs({},y),{},Iq({},v,C))},{})},GPe=function(t,n){var r=t.x,i=t.y,s=n.x,a=n.y;return Math.sqrt(Math.pow(r-s,2)+Math.pow(i-a,2))},YPe=function(t,n){var r=t.x,i=t.y,s=n.cx,a=n.cy,o=GPe({x:r,y:i},{x:s,y:a});if(o<=0)return{radius:o};var l=(r-s)/o,u=Math.acos(l);return i>a&&(u=2*Math.PI-u),{radius:o,angle:HPe(u),angleInRadian:u}},XPe=function(t){var n=t.startAngle,r=t.endAngle,i=Math.floor(n/360),s=Math.floor(r/360),a=Math.min(i,s);return{startAngle:n-a*360,endAngle:r-a*360}},QPe=function(t,n){var r=n.startAngle,i=n.endAngle,s=Math.floor(r/360),a=Math.floor(i/360),o=Math.min(s,a);return t+o*360},GI=function(t,n){var r=t.x,i=t.y,s=YPe({x:r,y:i},n),a=s.radius,o=s.angle,l=n.innerRadius,u=n.outerRadius;if(a<l||a>u)return!1;if(a===0)return!0;var d=XPe(n),h=d.startAngle,f=d.endAngle,p=o,g;if(h<=f){for(;p>f;)p-=360;for(;p<h;)p+=360;g=p>=h&&p<=f}else{for(;p>h;)p-=360;for(;p<f;)p+=360;g=p>=f&&p<=h}return g?bs(bs({},n),{},{radius:a,angle:QPe(p,n)}):null},$q=function(t){return!w.isValidElement(t)&&!Be(t)&&typeof t!="boolean"?t.className:""};function Xf(e){"@babel/helpers - typeof";return Xf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Xf(e)}var ZPe=["offset"];function JPe(e){return rOe(e)||nOe(e)||tOe(e)||eOe()}function eOe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 588In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function tOe(e,t){if(e){if(typeof e=="string")return HS(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return HS(e,t)}}function nOe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function rOe(e){if(Array.isArray(e))return HS(e)}function HS(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function iOe(e,t){if(e==null)return{};var n=sOe(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function sOe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function YI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Zt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?YI(Object(n),!0).forEach(function(r){aOe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):YI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function aOe(e,t,n){return t=oOe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function oOe(e){var t=lOe(e,"string");return Xf(t)=="symbol"?t:t+""}function lOe(e,t){if(Xf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Xf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Qf(){return Qf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Qf.apply(this,arguments)}var cOe=function(t){var n=t.value,r=t.formatter,i=Ke(t.children)?n:t.children;return Be(r)?r(i):i},uOe=function(t,n){var r=Wr(n-t),i=Math.min(Math.abs(n-t),360);return r*i},dOe=function(t,n,r){var i=t.position,s=t.viewBox,a=t.offset,o=t.className,l=s,u=l.cx,d=l.cy,h=l.innerRadius,f=l.outerRadius,p=l.startAngle,g=l.endAngle,m=l.clockWise,y=(h+f)/2,v=uOe(p,g),x=v>=0?1:-1,b,S;i==="insideStart"?(b=p+x*a,S=m):i==="insideEnd"?(b=g-x*a,S=!m):i==="end"&&(b=g+x*a,S=m),S=v<=0?S:!S;var k=yt(u,d,y,b),j=yt(u,d,y,b+(S?1:-1)*359),_="M".concat(k.x,",").concat(k.y,` 589 A`).concat(y,",").concat(y,",0,1,").concat(S?0:1,`, 590 `).concat(j.x,",").concat(j.y),E=Ke(t.id)?Qx("recharts-radial-line-"):t.id;return A.createElement("text",Qf({},r,{dominantBaseline:"central",className:Ye("recharts-radial-bar-label",o)}),A.createElement("defs",null,A.createElement("path",{id:E,d:_})),A.createElement("textPath",{xlinkHref:"#".concat(E)},n))},hOe=function(t){var n=t.viewBox,r=t.offset,i=t.position,s=n,a=s.cx,o=s.cy,l=s.innerRadius,u=s.outerRadius,d=s.startAngle,h=s.endAngle,f=(d+h)/2;if(i==="outside"){var p=yt(a,o,u+r,f),g=p.x,m=p.y;return{x:g,y:m,textAnchor:g>=a?"start":"end",verticalAnchor:"middle"}}if(i==="center")return{x:a,y:o,textAnchor:"middle",verticalAnchor:"middle"};if(i==="centerTop")return{x:a,y:o,textAnchor:"middle",verticalAnchor:"start"};if(i==="centerBottom")return{x:a,y:o,textAnchor:"middle",verticalAnchor:"end"};var y=(l+u)/2,v=yt(a,o,y,f),x=v.x,b=v.y;return{x,y:b,textAnchor:"middle",verticalAnchor:"middle"}},fOe=function(t){var n=t.viewBox,r=t.parentViewBox,i=t.offset,s=t.position,a=n,o=a.x,l=a.y,u=a.width,d=a.height,h=d>=0?1:-1,f=h*i,p=h>0?"end":"start",g=h>0?"start":"end",m=u>=0?1:-1,y=m*i,v=m>0?"end":"start",x=m>0?"start":"end";if(s==="top"){var b={x:o+u/2,y:l-h*i,textAnchor:"middle",verticalAnchor:p};return Zt(Zt({},b),r?{height:Math.max(l-r.y,0),width:u}:{})}if(s==="bottom"){var S={x:o+u/2,y:l+d+f,textAnchor:"middle",verticalAnchor:g};return Zt(Zt({},S),r?{height:Math.max(r.y+r.height-(l+d),0),width:u}:{})}if(s==="left"){var k={x:o-y,y:l+d/2,textAnchor:v,verticalAnchor:"middle"};return Zt(Zt({},k),r?{width:Math.max(k.x-r.x,0),height:d}:{})}if(s==="right"){var j={x:o+u+y,y:l+d/2,textAnchor:x,verticalAnchor:"middle"};return Zt(Zt({},j),r?{width:Math.max(r.x+r.width-j.x,0),height:d}:{})}var _=r?{width:u,height:d}:{};return s==="insideLeft"?Zt({x:o+y,y:l+d/2,textAnchor:x,verticalAnchor:"middle"},_):s==="insideRight"?Zt({x:o+u-y,y:l+d/2,textAnchor:v,verticalAnchor:"middle"},_):s==="insideTop"?Zt({x:o+u/2,y:l+f,textAnchor:"middle",verticalAnchor:g},_):s==="insideBottom"?Zt({x:o+u/2,y:l+d-f,textAnchor:"middle",verticalAnchor:p},_):s==="insideTopLeft"?Zt({x:o+y,y:l+f,textAnchor:x,verticalAnchor:g},_):s==="insideTopRight"?Zt({x:o+u-y,y:l+f,textAnchor:v,verticalAnchor:g},_):s==="insideBottomLeft"?Zt({x:o+y,y:l+d-f,textAnchor:x,verticalAnchor:p},_):s==="insideBottomRight"?Zt({x:o+u-y,y:l+d-f,textAnchor:v,verticalAnchor:p},_):fd(s)&&(le(s.x)||Ho(s.x))&&(le(s.y)||Ho(s.y))?Zt({x:o+ir(s.x,u),y:l+ir(s.y,d),textAnchor:"end",verticalAnchor:"end"},_):Zt({x:o+u/2,y:l+d/2,textAnchor:"middle",verticalAnchor:"middle"},_)},pOe=function(t){return"cx"in t&&le(t.cx)};function _n(e){var t=e.offset,n=t===void 0?5:t,r=iOe(e,ZPe),i=Zt({offset:n},r),s=i.viewBox,a=i.position,o=i.value,l=i.children,u=i.content,d=i.className,h=d===void 0?"":d,f=i.textBreakAll;if(!s||Ke(o)&&Ke(l)&&!w.isValidElement(u)&&!Be(u))return null;if(w.isValidElement(u))return w.cloneElement(u,i);var p;if(Be(u)){if(p=w.createElement(u,i),w.isValidElement(p))return p}else p=cOe(i);var g=pOe(s),m=Fe(i,!0);if(g&&(a==="insideStart"||a==="insideEnd"||a==="end"))return dOe(i,p,m);var y=g?hOe(i):fOe(i);return A.createElement(Cu,Qf({className:Ye("recharts-label",h)},m,y,{breakAll:f}),p)}_n.displayName="Label";var Dq=function(t){var n=t.cx,r=t.cy,i=t.angle,s=t.startAngle,a=t.endAngle,o=t.r,l=t.radius,u=t.innerRadius,d=t.outerRadius,h=t.x,f=t.y,p=t.top,g=t.left,m=t.width,y=t.height,v=t.clockWise,x=t.labelViewBox;if(x)return x;if(le(m)&&le(y)){if(le(h)&&le(f))return{x:h,y:f,width:m,height:y};if(le(p)&&le(g))return{x:p,y:g,width:m,height:y}}return le(h)&&le(f)?{x:h,y:f,width:0,height:0}:le(n)&&le(r)?{cx:n,cy:r,startAngle:s||i||0,endAngle:a||i||0,innerRadius:u||0,outerRadius:d||l||o||0,clockWise:v}:t.viewBox?t.viewBox:{}},mOe=function(t,n){return t?t===!0?A.createElement(_n,{key:"label-implicit",viewBox:n}):sn(t)?A.createElement(_n,{key:"label-implicit",viewBox:n,value:t}):w.isValidElement(t)?t.type===_n?w.cloneElement(t,{key:"label-implicit",viewBox:n}):A.createElement(_n,{key:"label-implicit",content:t,viewBox:n}):Be(t)?A.createElement(_n,{key:"label-implicit",content:t,viewBox:n}):fd(t)?A.createElement(_n,Qf({viewBox:n},t,{key:"label-implicit"})):null:null},gOe=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!t||!t.children&&r&&!t.label)return null;var i=t.children,s=Dq(t),a=ns(i,_n).map(function(l,u){return w.cloneElement(l,{viewBox:n||s,key:"label-".concat(u)})});if(!r)return a;var o=mOe(t.label,n||s);return[o].concat(JPe(a))};_n.parseViewBox=Dq;_n.renderCallByParent=gOe;function yOe(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var vOe=yOe;const xOe=tt(vOe);function Zf(e){"@babel/helpers - typeof";return Zf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Zf(e)}var bOe=["valueAccessor"],wOe=["data","dataKey","clockWise","id","textBreakAll"];function kOe(e){return EOe(e)||_Oe(e)||jOe(e)||SOe()}function SOe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 591In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function jOe(e,t){if(e){if(typeof e=="string")return KS(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return KS(e,t)}}function _Oe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function EOe(e){if(Array.isArray(e))return KS(e)}function KS(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function hv(){return hv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},hv.apply(this,arguments)}function XI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function QI(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?XI(Object(n),!0).forEach(function(r){TOe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):XI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function TOe(e,t,n){return t=NOe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function NOe(e){var t=COe(e,"string");return Zf(t)=="symbol"?t:t+""}function COe(e,t){if(Zf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Zf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ZI(e,t){if(e==null)return{};var n=AOe(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function AOe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var POe=function(t){return Array.isArray(t.value)?xOe(t.value):t.value};function dl(e){var t=e.valueAccessor,n=t===void 0?POe:t,r=ZI(e,bOe),i=r.data,s=r.dataKey,a=r.clockWise,o=r.id,l=r.textBreakAll,u=ZI(r,wOe);return!i||!i.length?null:A.createElement(Bt,{className:"recharts-label-list"},i.map(function(d,h){var f=Ke(s)?n(d,h):xr(d&&d.payload,s),p=Ke(o)?{}:{id:"".concat(o,"-").concat(h)};return A.createElement(_n,hv({},Fe(d,!0),u,p,{parentViewBox:d.parentViewBox,value:f,textBreakAll:l,viewBox:_n.parseViewBox(Ke(a)?d:QI(QI({},d),{},{clockWise:a})),key:"label-".concat(h),index:h}))}))}dl.displayName="LabelList";function OOe(e,t){return e?e===!0?A.createElement(dl,{key:"labelList-implicit",data:t}):A.isValidElement(e)||Be(e)?A.createElement(dl,{key:"labelList-implicit",data:t,content:e}):fd(e)?A.createElement(dl,hv({data:t},e,{key:"labelList-implicit"})):null:null}function ROe(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&n&&!e.label)return null;var r=e.children,i=ns(r,dl).map(function(a,o){return w.cloneElement(a,{data:t,key:"labelList-".concat(o)})});if(!n)return i;var s=OOe(e.label,t);return[s].concat(kOe(i))}dl.renderCallByParent=ROe;function Jf(e){"@babel/helpers - typeof";return Jf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Jf(e)}function GS(){return GS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},GS.apply(this,arguments)}function JI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function eM(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?JI(Object(n),!0).forEach(function(r){IOe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):JI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function IOe(e,t,n){return t=MOe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function MOe(e){var t=$Oe(e,"string");return Jf(t)=="symbol"?t:t+""}function $Oe(e,t){if(Jf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Jf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var DOe=function(t,n){var r=Wr(n-t),i=Math.min(Math.abs(n-t),359.999);return r*i},Qm=function(t){var n=t.cx,r=t.cy,i=t.radius,s=t.angle,a=t.sign,o=t.isExternal,l=t.cornerRadius,u=t.cornerIsExternal,d=l*(o?1:-1)+i,h=Math.asin(l/d)/dv,f=u?s:s+a*h,p=yt(n,r,d,f),g=yt(n,r,i,f),m=u?s-a*h:s,y=yt(n,r,d*Math.cos(h*dv),m);return{center:p,circleTangency:g,lineTangency:y,theta:h}},Lq=function(t){var n=t.cx,r=t.cy,i=t.innerRadius,s=t.outerRadius,a=t.startAngle,o=t.endAngle,l=DOe(a,o),u=a+l,d=yt(n,r,s,a),h=yt(n,r,s,u),f="M ".concat(d.x,",").concat(d.y,` 592 A `).concat(s,",").concat(s,`,0, 593 `).concat(+(Math.abs(l)>180),",").concat(+(a>u),`, 594 `).concat(h.x,",").concat(h.y,` 595 `);if(i>0){var p=yt(n,r,i,a),g=yt(n,r,i,u);f+="L ".concat(g.x,",").concat(g.y,` 596 A `).concat(i,",").concat(i,`,0, 597 `).concat(+(Math.abs(l)>180),",").concat(+(a<=u),`, 598 `).concat(p.x,",").concat(p.y," Z")}else f+="L ".concat(n,",").concat(r," Z");return f},LOe=function(t){var n=t.cx,r=t.cy,i=t.innerRadius,s=t.outerRadius,a=t.cornerRadius,o=t.forceCornerRadius,l=t.cornerIsExternal,u=t.startAngle,d=t.endAngle,h=Wr(d-u),f=Qm({cx:n,cy:r,radius:s,angle:u,sign:h,cornerRadius:a,cornerIsExternal:l}),p=f.circleTangency,g=f.lineTangency,m=f.theta,y=Qm({cx:n,cy:r,radius:s,angle:d,sign:-h,cornerRadius:a,cornerIsExternal:l}),v=y.circleTangency,x=y.lineTangency,b=y.theta,S=l?Math.abs(u-d):Math.abs(u-d)-m-b;if(S<0)return o?"M ".concat(g.x,",").concat(g.y,` 599 a`).concat(a,",").concat(a,",0,0,1,").concat(a*2,`,0 600 a`).concat(a,",").concat(a,",0,0,1,").concat(-a*2,`,0 601 `):Lq({cx:n,cy:r,innerRadius:i,outerRadius:s,startAngle:u,endAngle:d});var k="M ".concat(g.x,",").concat(g.y,` 602 A`).concat(a,",").concat(a,",0,0,").concat(+(h<0),",").concat(p.x,",").concat(p.y,` 603 A`).concat(s,",").concat(s,",0,").concat(+(S>180),",").concat(+(h<0),",").concat(v.x,",").concat(v.y,` 604 A`).concat(a,",").concat(a,",0,0,").concat(+(h<0),",").concat(x.x,",").concat(x.y,` 605 `);if(i>0){var j=Qm({cx:n,cy:r,radius:i,angle:u,sign:h,isExternal:!0,cornerRadius:a,cornerIsExternal:l}),_=j.circleTangency,E=j.lineTangency,T=j.theta,N=Qm({cx:n,cy:r,radius:i,angle:d,sign:-h,isExternal:!0,cornerRadius:a,cornerIsExternal:l}),P=N.circleTangency,C=N.lineTangency,M=N.theta,R=l?Math.abs(u-d):Math.abs(u-d)-T-M;if(R<0&&a===0)return"".concat(k,"L").concat(n,",").concat(r,"Z");k+="L".concat(C.x,",").concat(C.y,` 606 A`).concat(a,",").concat(a,",0,0,").concat(+(h<0),",").concat(P.x,",").concat(P.y,` 607 A`).concat(i,",").concat(i,",0,").concat(+(R>180),",").concat(+(h>0),",").concat(_.x,",").concat(_.y,` 608 A`).concat(a,",").concat(a,",0,0,").concat(+(h<0),",").concat(E.x,",").concat(E.y,"Z")}else k+="L".concat(n,",").concat(r,"Z");return k},FOe={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},fv=function(t){var n=eM(eM({},FOe),t),r=n.cx,i=n.cy,s=n.innerRadius,a=n.outerRadius,o=n.cornerRadius,l=n.forceCornerRadius,u=n.cornerIsExternal,d=n.startAngle,h=n.endAngle,f=n.className;if(a<s||d===h)return null;var p=Ye("recharts-sector",f),g=a-s,m=ir(o,g,0,!0),y;return m>0&&Math.abs(d-h)<360?y=LOe({cx:r,cy:i,innerRadius:s,outerRadius:a,cornerRadius:Math.min(m,g/2),forceCornerRadius:l,cornerIsExternal:u,startAngle:d,endAngle:h}):y=Lq({cx:r,cy:i,innerRadius:s,outerRadius:a,startAngle:d,endAngle:h}),A.createElement("path",GS({},Fe(n,!0),{className:p,d:y,role:"img"}))};function ep(e){"@babel/helpers - typeof";return ep=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ep(e)}function YS(){return YS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},YS.apply(this,arguments)}function tM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function nM(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?tM(Object(n),!0).forEach(function(r){BOe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function BOe(e,t,n){return t=VOe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function VOe(e){var t=qOe(e,"string");return ep(t)=="symbol"?t:t+""}function qOe(e,t){if(ep(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(ep(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var rM={curveBasisClosed:Dbe,curveBasisOpen:Lbe,curveBasis:$be,curveBumpX:kbe,curveBumpY:Sbe,curveLinearClosed:Fbe,curveLinear:tb,curveMonotoneX:Bbe,curveMonotoneY:Vbe,curveNatural:qbe,curveStep:Ube,curveStepAfter:zbe,curveStepBefore:Wbe},Zm=function(t){return t.x===+t.x&&t.y===+t.y},Xd=function(t){return t.x},Qd=function(t){return t.y},UOe=function(t,n){if(Be(t))return t;var r="curve".concat(Jx(t));return(r==="curveMonotone"||r==="curveBump")&&n?rM["".concat(r).concat(n==="vertical"?"Y":"X")]:rM[r]||tb},WOe=function(t){var n=t.type,r=n===void 0?"linear":n,i=t.points,s=i===void 0?[]:i,a=t.baseLine,o=t.layout,l=t.connectNulls,u=l===void 0?!1:l,d=UOe(r,o),h=u?s.filter(function(m){return Zm(m)}):s,f;if(Array.isArray(a)){var p=u?a.filter(function(m){return Zm(m)}):a,g=h.map(function(m,y){return nM(nM({},m),{},{base:p[y]})});return o==="vertical"?f=qm().y(Qd).x1(Xd).x0(function(m){return m.base.x}):f=qm().x(Xd).y1(Qd).y0(function(m){return m.base.y}),f.defined(Zm).curve(d),f(g)}return o==="vertical"&&le(a)?f=qm().y(Qd).x1(Xd).x0(a):le(a)?f=qm().x(Xd).y1(Qd).y0(a):f=FV().x(Xd).y(Qd),f.defined(Zm).curve(d),f(h)},XS=function(t){var n=t.className,r=t.points,i=t.path,s=t.pathRef;if((!r||!r.length)&&!i)return null;var a=r&&r.length?WOe(t):i;return w.createElement("path",YS({},Fe(t,!1),Ly(t),{className:Ye("recharts-curve",n),d:a,ref:s}))},Fq={exports:{}},zOe="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",HOe=zOe,KOe=HOe;function Bq(){}function Vq(){}Vq.resetWarningCache=Bq;var GOe=function(){function e(r,i,s,a,o,l){if(l!==KOe){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Vq,resetWarningCache:Bq};return n.PropTypes=n,n};Fq.exports=GOe();var YOe=Fq.exports;const it=tt(YOe);var XOe=Object.getOwnPropertyNames,QOe=Object.getOwnPropertySymbols,ZOe=Object.prototype.hasOwnProperty;function iM(e,t){return function(r,i,s){return e(r,i,s)&&t(r,i,s)}}function Jm(e){return function(n,r,i){if(!n||!r||typeof n!="object"||typeof r!="object")return e(n,r,i);var s=i.cache,a=s.get(n),o=s.get(r);if(a&&o)return a===r&&o===n;s.set(n,r),s.set(r,n);var l=e(n,r,i);return s.delete(n),s.delete(r),l}}function sM(e){return XOe(e).concat(QOe(e))}var JOe=Object.hasOwn||function(e,t){return ZOe.call(e,t)};function Ll(e,t){return e===t||!e&&!t&&e!==e&&t!==t}var eRe="__v",tRe="__o",nRe="_owner",aM=Object.getOwnPropertyDescriptor,oM=Object.keys;function rRe(e,t,n){var r=e.length;if(t.length!==r)return!1;for(;r-- >0;)if(!n.equals(e[r],t[r],r,r,e,t,n))return!1;return!0}function iRe(e,t){return Ll(e.getTime(),t.getTime())}function sRe(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function aRe(e,t){return e===t}function lM(e,t,n){var r=e.size;if(r!==t.size)return!1;if(!r)return!0;for(var i=new Array(r),s=e.entries(),a,o,l=0;(a=s.next())&&!a.done;){for(var u=t.entries(),d=!1,h=0;(o=u.next())&&!o.done;){if(i[h]){h++;continue}var f=a.value,p=o.value;if(n.equals(f[0],p[0],l,h,e,t,n)&&n.equals(f[1],p[1],f[0],p[0],e,t,n)){d=i[h]=!0;break}h++}if(!d)return!1;l++}return!0}var oRe=Ll;function lRe(e,t,n){var r=oM(e),i=r.length;if(oM(t).length!==i)return!1;for(;i-- >0;)if(!qq(e,t,n,r[i]))return!1;return!0}
608function Zd(e,t,n){var r=sM(e),i=r.length;if(sM(t).length!==i)return!1;for(var s,a,o;i-- >0;)if(s=r[i],!qq(e,t,n,s)||(a=aM(e,s),o=aM(t,s),(a||o)&&(!a||!o||a.configurable!==o.configurable||a.enumerable!==o.enumerable||a.writable!==o.writable)))return!1;return!0}function cRe(e,t){return Ll(e.valueOf(),t.valueOf())}function uRe(e,t){return e.source===t.source&&e.flags===t.flags}function cM(e,t,n){var r=e.size;if(r!==t.size)return!1;if(!r)return!0;for(var i=new Array(r),s=e.values(),a,o;(a=s.next())&&!a.done;){for(var l=t.values(),u=!1,d=0;(o=l.next())&&!o.done;){if(!i[d]&&n.equals(a.value,o.value,a.value,o.value,e,t,n)){u=i[d]=!0;break}d++}if(!u)return!1}return!0}function dRe(e,t){var n=e.length;if(t.length!==n)return!1;for(;n-- >0;)if(e[n]!==t[n])return!1;return!0}function hRe(e,t){return e.hostname===t.hostname&&e.pathname===t.pathname&&e.protocol===t.protocol&&e.port===t.port&&e.hash===t.hash&&e.username===t.username&&e.password===t.password}function qq(e,t,n,r){return(r===nRe||r===tRe||r===eRe)&&(e.$$typeof||t.$$typeof)?!0:JOe(t,r)&&n.equals(e[r],t[r],r,r,e,t,n)}var fRe="[object Arguments]",pRe="[object Boolean]",mRe="[object Date]",gRe="[object Error]",yRe="[object Map]",vRe="[object Number]",xRe="[object Object]",bRe="[object RegExp]",wRe="[object Set]",kRe="[object String]",SRe="[object URL]",jRe=Array.isArray,uM=typeof ArrayBuffer=="function"&&ArrayBuffer.isView?ArrayBuffer.isView:null,dM=Object.assign,_Re=Object.prototype.toString.call.bind(Object.prototype.toString);function ERe(e){var t=e.areArraysEqual,n=e.areDatesEqual,r=e.areErrorsEqual,i=e.areFunctionsEqual,s=e.areMapsEqual,a=e.areNumbersEqual,o=e.areObjectsEqual,l=e.arePrimitiveWrappersEqual,u=e.areRegExpsEqual,d=e.areSetsEqual,h=e.areTypedArraysEqual,f=e.areUrlsEqual;return function(g,m,y){if(g===m)return!0;if(g==null||m==null)return!1;var v=typeof g;if(v!==typeof m)return!1;if(v!=="object")return v==="number"?a(g,m,y):v==="function"?i(g,m,y):!1;var x=g.constructor;if(x!==m.constructor)return!1;if(x===Object)return o(g,m,y);if(jRe(g))return t(g,m,y);if(uM!=null&&uM(g))return h(g,m,y);if(x===Date)return n(g,m,y);if(x===RegExp)return u(g,m,y);if(x===Map)return s(g,m,y);if(x===Set)return d(g,m,y);var b=_Re(g);return b===mRe?n(g,m,y):b===bRe?u(g,m,y):b===yRe?s(g,m,y):b===wRe?d(g,m,y):b===xRe?typeof g.then!="function"&&typeof m.then!="function"&&o(g,m,y):b===SRe?f(g,m,y):b===gRe?r(g,m,y):b===fRe?o(g,m,y):b===pRe||b===vRe||b===kRe?l(g,m,y):!1}}function TRe(e){var t=e.circular,n=e.createCustomConfig,r=e.strict,i={areArraysEqual:r?Zd:rRe,areDatesEqual:iRe,areErrorsEqual:sRe,areFunctionsEqual:aRe,areMapsEqual:r?iM(lM,Zd):lM,areNumbersEqual:oRe,areObjectsEqual:r?Zd:lRe,arePrimitiveWrappersEqual:cRe,areRegExpsEqual:uRe,areSetsEqual:r?iM(cM,Zd):cM,areTypedArraysEqual:r?Zd:dRe,areUrlsEqual:hRe};if(n&&(i=dM({},i,n(i))),t){var s=Jm(i.areArraysEqual),a=Jm(i.areMapsEqual),o=Jm(i.areObjectsEqual),l=Jm(i.areSetsEqual);i=dM({},i,{areArraysEqual:s,areMapsEqual:a,areObjectsEqual:o,areSetsEqual:l})}return i}function NRe(e){return function(t,n,r,i,s,a,o){return e(t,n,o)}}function CRe(e){var t=e.circular,n=e.comparator,r=e.createState,i=e.equals,s=e.strict;if(r)return function(l,u){var d=r(),h=d.cache,f=h===void 0?t?new WeakMap:void 0:h,p=d.meta;return n(l,u,{cache:f,equals:i,meta:p,strict:s})};if(t)return function(l,u){return n(l,u,{cache:new WeakMap,equals:i,meta:void 0,strict:s})};var a={cache:void 0,equals:i,meta:void 0,strict:s};return function(l,u){return n(l,u,a)}}var ARe=vo();vo({strict:!0});vo({circular:!0});vo({circular:!0,strict:!0});vo({createInternalComparator:function(){return Ll}});vo({strict:!0,createInternalComparator:function(){return Ll}});vo({circular:!0,createInternalComparator:function(){return Ll}});vo({circular:!0,createInternalComparator:function(){return Ll},strict:!0});function vo(e){e===void 0&&(e={});var t=e.circular,n=t===void 0?!1:t,r=e.createInternalComparator,i=e.createState,s=e.strict,a=s===void 0?!1:s,o=TRe(e),l=ERe(o),u=r?r(l):NRe(l);return CRe({circular:n,comparator:l,createState:i,equals:u,strict:a})}function PRe(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function hM(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=-1,r=function i(s){n<0&&(n=s),s-n>t?(e(s),n=-1):PRe(i)};requestAnimationFrame(r)}function QS(e){"@babel/helpers - typeof";return QS=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},QS(e)}function ORe(e){return $Re(e)||MRe(e)||IRe(e)||RRe()}
vendor: 60,433 bytes, lines 608-627
608function RRe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 609In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function IRe(e,t){if(e){if(typeof e=="string")return fM(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return fM(e,t)}}function fM(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function MRe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function $Re(e){if(Array.isArray(e))return e}function DRe(){var e={},t=function(){return null},n=!1,r=function i(s){if(!n){if(Array.isArray(s)){if(!s.length)return;var a=s,o=ORe(a),l=o[0],u=o.slice(1);if(typeof l=="number"){hM(i.bind(null,u),l);return}i(l),hM(i.bind(null,u));return}QS(s)==="object"&&(e=s,t(e)),typeof s=="function"&&s()}};return{stop:function(){n=!0},start:function(s){n=!1,r(s)},subscribe:function(s){return t=s,function(){t=function(){return null}}}}}function tp(e){"@babel/helpers - typeof";return tp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},tp(e)}function pM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function mM(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?pM(Object(n),!0).forEach(function(r){Uq(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Uq(e,t,n){return t=LRe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function LRe(e){var t=FRe(e,"string");return tp(t)==="symbol"?t:String(t)}function FRe(e,t){if(tp(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(tp(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var BRe=function(t,n){return[Object.keys(t),Object.keys(n)].reduce(function(r,i){return r.filter(function(s){return i.includes(s)})})},VRe=function(t){return t},qRe=function(t){return t.replace(/([A-Z])/g,function(n){return"-".concat(n.toLowerCase())})},Dh=function(t,n){return Object.keys(n).reduce(function(r,i){return mM(mM({},r),{},Uq({},i,t(i,n[i])))},{})},gM=function(t,n,r){return t.map(function(i){return"".concat(qRe(i)," ").concat(n,"ms ").concat(r)}).join(",")};function URe(e,t){return HRe(e)||zRe(e,t)||Wq(e,t)||WRe()}function WRe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 610In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function zRe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,a,o=[],l=!0,u=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(l=(r=s.call(n)).done)&&(o.push(r.value),o.length!==t);l=!0);}catch(d){u=!0,i=d}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return o}}function HRe(e){if(Array.isArray(e))return e}function KRe(e){return XRe(e)||YRe(e)||Wq(e)||GRe()}function GRe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 611In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Wq(e,t){if(e){if(typeof e=="string")return ZS(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ZS(e,t)}}function YRe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function XRe(e){if(Array.isArray(e))return ZS(e)}function ZS(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var pv=1e-4,zq=function(t,n){return[0,3*t,3*n-6*t,3*t-3*n+1]},Hq=function(t,n){return t.map(function(r,i){return r*Math.pow(n,i)}).reduce(function(r,i){return r+i})},yM=function(t,n){return function(r){var i=zq(t,n);return Hq(i,r)}},QRe=function(t,n){return function(r){var i=zq(t,n),s=[].concat(KRe(i.map(function(a,o){return a*o}).slice(1)),[0]);return Hq(s,r)}},vM=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=n[0],s=n[1],a=n[2],o=n[3];if(n.length===1)switch(n[0]){case"linear":i=0,s=0,a=1,o=1;break;case"ease":i=.25,s=.1,a=.25,o=1;break;case"ease-in":i=.42,s=0,a=1,o=1;break;case"ease-out":i=.42,s=0,a=.58,o=1;break;case"ease-in-out":i=0,s=0,a=.58,o=1;break;default:{var l=n[0].split("(");if(l[0]==="cubic-bezier"&&l[1].split(")")[0].split(",").length===4){var u=l[1].split(")")[0].split(",").map(function(y){return parseFloat(y)}),d=URe(u,4);i=d[0],s=d[1],a=d[2],o=d[3]}}}var h=yM(i,a),f=yM(s,o),p=QRe(i,a),g=function(v){return v>1?1:v<0?0:v},m=function(v){for(var x=v>1?1:v,b=x,S=0;S<8;++S){var k=h(b)-x,j=p(b);if(Math.abs(k-x)<pv||j<pv)return f(b);b=g(b-k/j)}return f(b)};return m.isStepper=!1,m},ZRe=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.stiff,r=n===void 0?100:n,i=t.damping,s=i===void 0?8:i,a=t.dt,o=a===void 0?17:a,l=function(d,h,f){var p=-(d-h)*r,g=f*s,m=f+(p-g)*o/1e3,y=f*o/1e3+d;return Math.abs(y-h)<pv&&Math.abs(m)<pv?[h,0]:[y,m]};return l.isStepper=!0,l.dt=o,l},JRe=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=n[0];if(typeof i=="string")switch(i){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return vM(i);case"spring":return ZRe();default:if(i.split("(")[0]==="cubic-bezier")return vM(i)}return typeof i=="function"?i:null};function np(e){"@babel/helpers - typeof";return np=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},np(e)}function xM(e){return nIe(e)||tIe(e)||Kq(e)||eIe()}function eIe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 612In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function tIe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function nIe(e){if(Array.isArray(e))return ej(e)}function bM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Sn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?bM(Object(n),!0).forEach(function(r){JS(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function JS(e,t,n){return t=rIe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rIe(e){var t=iIe(e,"string");return np(t)==="symbol"?t:String(t)}function iIe(e,t){if(np(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(np(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function sIe(e,t){return lIe(e)||oIe(e,t)||Kq(e,t)||aIe()}function aIe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 613In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Kq(e,t){if(e){if(typeof e=="string")return ej(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ej(e,t)}}function ej(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function oIe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,a,o=[],l=!0,u=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(l=(r=s.call(n)).done)&&(o.push(r.value),o.length!==t);l=!0);}catch(d){u=!0,i=d}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return o}}function lIe(e){if(Array.isArray(e))return e}var mv=function(t,n,r){return t+(n-t)*r},tj=function(t){var n=t.from,r=t.to;return n!==r},cIe=function e(t,n,r){var i=Dh(function(s,a){if(tj(a)){var o=t(a.from,a.to,a.velocity),l=sIe(o,2),u=l[0],d=l[1];return Sn(Sn({},a),{},{from:u,velocity:d})}return a},n);return r<1?Dh(function(s,a){return tj(a)?Sn(Sn({},a),{},{velocity:mv(a.velocity,i[s].velocity,r),from:mv(a.from,i[s].from,r)}):a},n):e(t,i,r-1)};const uIe=function(e,t,n,r,i){var s=BRe(e,t),a=s.reduce(function(y,v){return Sn(Sn({},y),{},JS({},v,[e[v],t[v]]))},{}),o=s.reduce(function(y,v){return Sn(Sn({},y),{},JS({},v,{from:e[v],velocity:0,to:t[v]}))},{}),l=-1,u,d,h=function(){return null},f=function(){return Dh(function(v,x){return x.from},o)},p=function(){return!Object.values(o).filter(tj).length},g=function(v){u||(u=v);var x=v-u,b=x/n.dt;o=cIe(n,o,b),i(Sn(Sn(Sn({},e),t),f())),u=v,p()||(l=requestAnimationFrame(h))},m=function(v){d||(d=v);var x=(v-d)/r,b=Dh(function(k,j){return mv.apply(void 0,xM(j).concat([n(x)]))},a);if(i(Sn(Sn(Sn({},e),t),b)),x<1)l=requestAnimationFrame(h);else{var S=Dh(function(k,j){return mv.apply(void 0,xM(j).concat([n(1)]))},a);i(Sn(Sn(Sn({},e),t),S))}};return h=n.isStepper?g:m,function(){return requestAnimationFrame(h),function(){cancelAnimationFrame(l)}}};function Mu(e){"@babel/helpers - typeof";return Mu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Mu(e)}var dIe=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function hIe(e,t){if(e==null)return{};var n=fIe(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function fIe(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,s;for(s=0;s<r.length;s++)i=r[s],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function _w(e){return yIe(e)||gIe(e)||mIe(e)||pIe()}function pIe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 614In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function mIe(e,t){if(e){if(typeof e=="string")return nj(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return nj(e,t)}}function gIe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function yIe(e){if(Array.isArray(e))return nj(e)}function nj(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function wM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function di(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?wM(Object(n),!0).forEach(function(r){hh(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function hh(e,t,n){return t=Gq(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vIe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xIe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Gq(r.key),r)}}function bIe(e,t,n){return t&&xIe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Gq(e){var t=wIe(e,"string");return Mu(t)==="symbol"?t:String(t)}function wIe(e,t){if(Mu(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Mu(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function kIe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&rj(e,t)}function rj(e,t){return rj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},rj(e,t)}function SIe(e){var t=jIe();return function(){var r=gv(e),i;if(t){var s=gv(this).constructor;i=Reflect.construct(r,arguments,s)}else i=r.apply(this,arguments);return ij(this,i)}}function ij(e,t){if(t&&(Mu(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return sj(e)}function sj(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function jIe(){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 gv(e){return gv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},gv(e)}var ao=function(e){kIe(n,e);var t=SIe(n);function n(r,i){var s;vIe(this,n),s=t.call(this,r,i);var a=s.props,o=a.isActive,l=a.attributeName,u=a.from,d=a.to,h=a.steps,f=a.children,p=a.duration;if(s.handleStyleChange=s.handleStyleChange.bind(sj(s)),s.changeStyle=s.changeStyle.bind(sj(s)),!o||p<=0)return s.state={style:{}},typeof f=="function"&&(s.state={style:d}),ij(s);if(h&&h.length)s.state={style:h[0].style};else if(u){if(typeof f=="function")return s.state={style:u},ij(s);s.state={style:l?hh({},l,u):u}}else s.state={style:{}};return s}return bIe(n,[{key:"componentDidMount",value:function(){var i=this.props,s=i.isActive,a=i.canBegin;this.mounted=!0,!(!s||!a)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(i){var s=this.props,a=s.isActive,o=s.canBegin,l=s.attributeName,u=s.shouldReAnimate,d=s.to,h=s.from,f=this.state.style;if(o){if(!a){var p={style:l?hh({},l,d):d};this.state&&f&&(l&&f[l]!==d||!l&&f!==d)&&this.setState(p);return}if(!(ARe(i.to,d)&&i.canBegin&&i.isActive)){var g=!i.canBegin||!i.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var m=g||u?h:i.to;if(this.state&&f){var y={style:l?hh({},l,m):m};(l&&f[l]!==m||!l&&f!==m)&&this.setState(y)}this.runAnimation(di(di({},this.props),{},{from:m,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var i=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),i&&i()}},{key:"handleStyleChange",value:function(i){this.changeStyle(i)}},{key:"changeStyle",value:function(i){this.mounted&&this.setState({style:i})}},{key:"runJSAnimation",value:function(i){var s=this,a=i.from,o=i.to,l=i.duration,u=i.easing,d=i.begin,h=i.onAnimationEnd,f=i.onAnimationStart,p=uIe(a,o,JRe(u),l,this.changeStyle),g=function(){s.stopJSAnimation=p()};this.manager.start([f,d,g,l,h])}},{key:"runStepAnimation",value:function(i){var s=this,a=i.steps,o=i.begin,l=i.onAnimationStart,u=a[0],d=u.style,h=u.duration,f=h===void 0?0:h,p=function(m,y,v){if(v===0)return m;var x=y.duration,b=y.easing,S=b===void 0?"ease":b,k=y.style,j=y.properties,_=y.onAnimationEnd,E=v>0?a[v-1]:y,T=j||Object.keys(k);if(typeof S=="function"||S==="spring")return[].concat(_w(m),[s.runJSAnimation.bind(s,{from:E.style,to:k,duration:x,easing:S}),x]);var N=gM(T,x,S),P=di(di(di({},E.style),k),{},{transition:N});return[].concat(_w(m),[P,x,_]).filter(VRe)};return this.manager.start([l].concat(_w(a.reduce(p,[d,Math.max(f,o)])),[i.onAnimationEnd]))}},{key:"runAnimation",value:function(i){this.manager||(this.manager=DRe());var s=i.begin,a=i.duration,o=i.attributeName,l=i.to,u=i.easing,d=i.onAnimationStart,h=i.onAnimationEnd,f=i.steps,p=i.children,g=this.manager;if(this.unSubscribe=g.subscribe(this.handleStyleChange),typeof u=="function"||typeof p=="function"||u==="spring"){this.runJSAnimation(i);return}if(f.length>1){this.runStepAnimation(i);return}var m=o?hh({},o,l):l,y=gM(Object.keys(m),a,u);g.start([d,s,di(di({},m),{},{transition:y}),a,h])}},{key:"render",value:function(){var i=this.props,s=i.children;i.begin;var a=i.duration;i.attributeName,i.easing;var o=i.isActive;i.steps,i.from,i.to,i.canBegin,i.onAnimationEnd,i.shouldReAnimate,i.onAnimationReStart;var l=hIe(i,dIe),u=w.Children.count(s),d=this.state.style;if(typeof s=="function")return s(d);if(!o||u===0||a<=0)return s;var h=function(p){var g=p.props,m=g.style,y=m===void 0?{}:m,v=g.className,x=w.cloneElement(p,di(di({},l),{},{style:di(di({},y),d),className:v}));return x};return u===1?h(w.Children.only(s)):A.createElement("div",null,w.Children.map(s,function(f){return h(f)}))}}]),n}(w.PureComponent);ao.displayName="Animate";ao.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};ao.propTypes={from:it.oneOfType([it.object,it.string]),to:it.oneOfType([it.object,it.string]),attributeName:it.string,duration:it.number,begin:it.number,easing:it.oneOfType([it.string,it.func]),steps:it.arrayOf(it.shape({duration:it.number.isRequired,style:it.object.isRequired,easing:it.oneOfType([it.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),it.func]),properties:it.arrayOf("string"),onAnimationEnd:it.func})),children:it.oneOfType([it.node,it.func]),isActive:it.bool,canBegin:it.bool,onAnimationEnd:it.func,shouldReAnimate:it.bool,onAnimationStart:it.func,onAnimationReStart:it.func};function rp(e){"@babel/helpers - typeof";return rp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},rp(e)}function yv(){return yv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},yv.apply(this,arguments)}function _Ie(e,t){return CIe(e)||NIe(e,t)||TIe(e,t)||EIe()}function EIe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 615In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function TIe(e,t){if(e){if(typeof e=="string")return kM(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return kM(e,t)}}function kM(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function NIe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,a,o=[],l=!0,u=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(l=(r=s.call(n)).done)&&(o.push(r.value),o.length!==t);l=!0);}catch(d){u=!0,i=d}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return o}}function CIe(e){if(Array.isArray(e))return e}function SM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function jM(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?SM(Object(n),!0).forEach(function(r){AIe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):SM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function AIe(e,t,n){return t=PIe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function PIe(e){var t=OIe(e,"string");return rp(t)=="symbol"?t:t+""}function OIe(e,t){if(rp(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(rp(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var _M=function(t,n,r,i,s){var a=Math.min(Math.abs(r)/2,Math.abs(i)/2),o=i>=0?1:-1,l=r>=0?1:-1,u=i>=0&&r>=0||i<0&&r<0?1:0,d;if(a>0&&s instanceof Array){for(var h=[0,0,0,0],f=0,p=4;f<p;f++)h[f]=s[f]>a?a:s[f];d="M".concat(t,",").concat(n+o*h[0]),h[0]>0&&(d+="A ".concat(h[0],",").concat(h[0],",0,0,").concat(u,",").concat(t+l*h[0],",").concat(n)),d+="L ".concat(t+r-l*h[1],",").concat(n),h[1]>0&&(d+="A ".concat(h[1],",").concat(h[1],",0,0,").concat(u,`, 616 `).concat(t+r,",").concat(n+o*h[1])),d+="L ".concat(t+r,",").concat(n+i-o*h[2]),h[2]>0&&(d+="A ".concat(h[2],",").concat(h[2],",0,0,").concat(u,`, 617 `).concat(t+r-l*h[2],",").concat(n+i)),d+="L ".concat(t+l*h[3],",").concat(n+i),h[3]>0&&(d+="A ".concat(h[3],",").concat(h[3],",0,0,").concat(u,`, 618 `).concat(t,",").concat(n+i-o*h[3])),d+="Z"}else if(a>0&&s===+s&&s>0){var g=Math.min(a,s);d="M ".concat(t,",").concat(n+o*g,` 619 A `).concat(g,",").concat(g,",0,0,").concat(u,",").concat(t+l*g,",").concat(n,` 620 L `).concat(t+r-l*g,",").concat(n,` 621 A `).concat(g,",").concat(g,",0,0,").concat(u,",").concat(t+r,",").concat(n+o*g,` 622 L `).concat(t+r,",").concat(n+i-o*g,` 623 A `).concat(g,",").concat(g,",0,0,").concat(u,",").concat(t+r-l*g,",").concat(n+i,` 624 L `).concat(t+l*g,",").concat(n+i,` 625 A `).concat(g,",").concat(g,",0,0,").concat(u,",").concat(t,",").concat(n+i-o*g," Z")}else d="M ".concat(t,",").concat(n," h ").concat(r," v ").concat(i," h ").concat(-r," Z");return d},RIe=function(t,n){if(!t||!n)return!1;var r=t.x,i=t.y,s=n.x,a=n.y,o=n.width,l=n.height;if(Math.abs(o)>0&&Math.abs(l)>0){var u=Math.min(s,s+o),d=Math.max(s,s+o),h=Math.min(a,a+l),f=Math.max(a,a+l);return r>=u&&r<=d&&i>=h&&i<=f}return!1},IIe={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},cN=function(t){var n=jM(jM({},IIe),t),r=w.useRef(),i=w.useState(-1),s=_Ie(i,2),a=s[0],o=s[1];w.useEffect(function(){if(r.current&&r.current.getTotalLength)try{var S=r.current.getTotalLength();S&&o(S)}catch{}},[]);var l=n.x,u=n.y,d=n.width,h=n.height,f=n.radius,p=n.className,g=n.animationEasing,m=n.animationDuration,y=n.animationBegin,v=n.isAnimationActive,x=n.isUpdateAnimationActive;if(l!==+l||u!==+u||d!==+d||h!==+h||d===0||h===0)return null;var b=Ye("recharts-rectangle",p);return x?A.createElement(ao,{canBegin:a>0,from:{width:d,height:h,x:l,y:u},to:{width:d,height:h,x:l,y:u},duration:m,animationEasing:g,isActive:x},function(S){var k=S.width,j=S.height,_=S.x,E=S.y;return A.createElement(ao,{canBegin:a>0,from:"0px ".concat(a===-1?1:a,"px"),to:"".concat(a,"px 0px"),attributeName:"strokeDasharray",begin:y,duration:m,isActive:v,easing:g},A.createElement("path",yv({},Fe(n,!0),{className:b,d:_M(_,E,k,j,f),ref:r})))}):A.createElement("path",yv({},Fe(n,!0),{className:b,d:_M(l,u,d,h,f)}))},MIe=["points","className","baseLinePoints","connectNulls"];function Tc(){return Tc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Tc.apply(this,arguments)}function $Ie(e,t){if(e==null)return{};var n=DIe(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function DIe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function EM(e){return VIe(e)||BIe(e)||FIe(e)||LIe()}function LIe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 626In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function FIe(e,t){if(e){if(typeof e=="string")return aj(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return aj(e,t)}}function BIe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function VIe(e){if(Array.isArray(e))return aj(e)}function aj(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var TM=function(t){return t&&t.x===+t.x&&t.y===+t.y},qIe=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=[[]];return t.forEach(function(r){TM(r)?n[n.length-1].push(r):n[n.length-1].length>0&&n.push([])}),TM(t[0])&&n[n.length-1].push(t[0]),n[n.length-1].length<=0&&(n=n.slice(0,-1)),n},Lh=function(t,n){var r=qIe(t);n&&(r=[r.reduce(function(s,a){return[].concat(EM(s),EM(a))},[])]);var i=r.map(function(s){return s.reduce(function(a,o,l){return"".concat(a).concat(l===0?"M":"L").concat(o.x,",").concat(o.y)},"")}).join("");return r.length===1?"".concat(i,"Z"):i},UIe=function(t,n,r){var i=Lh(t,r);return"".concat(i.slice(-1)==="Z"?i.slice(0,-1):i,"L").concat(Lh(n.reverse(),r).slice(1))},WIe=function(t){var n=t.points,r=t.className,i=t.baseLinePoints,s=t.connectNulls,a=$Ie(t,MIe);if(!n||!n.length)return null;var o=Ye("recharts-polygon",r);if(i&&i.length){var l=a.stroke&&a.stroke!=="none",u=UIe(n,i,s);return A.createElement("g",{className:o},A.createElement("path",Tc({},Fe(a,!0),{fill:u.slice(-1)==="Z"?a.fill:"none",stroke:"none",d:u})),l?A.createElement("path",Tc({},Fe(a,!0),{fill:"none",d:Lh(n,s)})):null,l?A.createElement("path",Tc({},Fe(a,!0),{fill:"none",d:Lh(i,s)})):null)}var d=Lh(n,s);return A.createElement("path",Tc({},Fe(a,!0),{fill:d.slice(-1)==="Z"?a.fill:"none",className:o,d}))};function oj(){return oj=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},oj.apply(this,arguments)}var uN=function(t){var n=t.cx,r=t.cy,i=t.r,s=t.className,a=Ye("recharts-dot",s);return n===+n&&r===+r&&i===+i?w.createElement("circle",oj({},Fe(t,!1),Ly(t),{className:a,cx:n,cy:r,r:i})):null};function ip(e){"@babel/helpers - typeof";return ip=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ip(e)}var zIe=["x","y","top","left","width","height","className"];function lj(){return lj=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},lj.apply(this,arguments)}function NM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function HIe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?NM(Object(n),!0).forEach(function(r){KIe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):NM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function KIe(e,t,n){return t=GIe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function GIe(e){var t=YIe(e,"string");return ip(t)=="symbol"?t:t+""}function YIe(e,t){if(ip(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(ip(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function XIe(e,t){if(e==null)return{};var n=QIe(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function QIe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var ZIe=function(t,n,r,i,s,a){return"M".concat(t,",").concat(s,"v").concat(i,"M").concat(a,",").concat(n,"h").concat(r)},JIe=function(t){var n=t.x,r=n===void 0?0:n,i=t.y,s=i===void 0?0:i,a=t.top,o=a===void 0?0:a,l=t.left,u=l===void 0?0:l,d=t.width,h=d===void 0?0:d,f=t.height,p=f===void 0?0:f,g=t.className,m=XIe(t,zIe),y=HIe({x:r,y:s,top:o,left:u,width:h,height:p},m);return!le(r)||!le(s)||!le(h)||!le(p)||!le(o)||!le(u)?null:A.createElement("path",lj({},Fe(y,!0),{className:Ye("recharts-cross",g),d:ZIe(r,s,h,p,o,u)}))},eMe=hb,tMe=hq,nMe=mo;function rMe(e,t){return e&&e.length?eMe(e,nMe(t),tMe):void 0}var iMe=rMe;const sMe=tt(iMe);var aMe=hb,oMe=mo,lMe=fq;function cMe(e,t){return e&&e.length?aMe(e,oMe(t),lMe):void 0}var uMe=cMe;const dMe=tt(uMe);var hMe=["cx","cy","angle","ticks","axisLine"],fMe=["ticks","tick","angle","tickFormatter","stroke"];function $u(e){"@babel/helpers - typeof";return $u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$u(e)}function Fh(){return Fh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Fh.apply(this,arguments)}function CM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function To(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?CM(Object(n),!0).forEach(function(r){yb(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):CM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function AM(e,t){if(e==null)return{};var n=pMe(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function pMe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function mMe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function PM(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Xq(r.key),r)}}function gMe(e,t,n){return t&&PM(e.prototype,t),n&&PM(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function yMe(e,t,n){return t=vv(t),vMe(e,Yq()?Reflect.construct(t,n||[],vv(e).constructor):t.apply(e,n))}function vMe(e,t){if(t&&($u(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return xMe(e)}function xMe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Yq(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Yq=function(){return!!e})()}function vv(e){return vv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},vv(e)}function bMe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&cj(e,t)}function cj(e,t){return cj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},cj(e,t)}function yb(e,t,n){return t=Xq(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xq(e){var t=wMe(e,"string");return $u(t)=="symbol"?t:t+""}function wMe(e,t){if($u(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if($u(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var vb=function(e){function t(){return mMe(this,t),yMe(this,t,arguments)}return bMe(t,e),gMe(t,[{key:"getTickValueCoord",value:function(r){var i=r.coordinate,s=this.props,a=s.angle,o=s.cx,l=s.cy;return yt(o,l,i,a)}},{key:"getTickTextAnchor",value:function(){var r=this.props.orientation,i;switch(r){case"left":i="end";break;case"right":i="start";break;default:i="middle";break}return i}},{key:"getViewBox",value:function(){var r=this.props,i=r.cx,s=r.cy,a=r.angle,o=r.ticks,l=sMe(o,function(d){return d.coordinate||0}),u=dMe(o,function(d){return d.coordinate||0});return{cx:i,cy:s,startAngle:a,endAngle:a,innerRadius:u.coordinate||0,outerRadius:l.coordinate||0}}},{key:"renderAxisLine",value:function(){var r=this.props,i=r.cx,s=r.cy,a=r.angle,o=r.ticks,l=r.axisLine,u=AM(r,hMe),d=o.reduce(function(g,m){return[Math.min(g[0],m.coordinate),Math.max(g[1],m.coordinate)]},[1/0,-1/0]),h=yt(i,s,d[0],a),f=yt(i,s,d[1],a),p=To(To(To({},Fe(u,!1)),{},{fill:"none"},Fe(l,!1)),{},{x1:h.x,y1:h.y,x2:f.x,y2:f.y});return A.createElement("line",Fh({className:"recharts-polar-radius-axis-line"},p))}},{key:"renderTicks",value:function(){var r=this,i=this.props,s=i.ticks,a=i.tick,o=i.angle,l=i.tickFormatter,u=i.stroke,d=AM(i,fMe),h=this.getTickTextAnchor(),f=Fe(d,!1),p=Fe(a,!1),g=s.map(function(m,y){var v=r.getTickValueCoord(m),x=To(To(To(To({textAnchor:h,transform:"rotate(".concat(90-o,", ").concat(v.x,", ").concat(v.y,")")},f),{},{stroke:"none",fill:u},p),{},{index:y},v),{},{payload:m});return A.createElement(Bt,Fh({className:Ye("recharts-polar-radius-axis-tick",$q(a)),key:"tick-".concat(m.coordinate)},Zx(r.props,m,y)),t.renderTickItem(a,x,l?l(m.value,y):m.value))});return A.createElement(Bt,{className:"recharts-polar-radius-axis-ticks"},g)}},{key:"render",value:function(){var r=this.props,i=r.ticks,s=r.axisLine,a=r.tick;return!i||!i.length?null:A.createElement(Bt,{className:Ye("recharts-polar-radius-axis",this.props.className)},s&&this.renderAxisLine(),a&&this.renderTicks(),_n.renderCallByParent(this.props,this.getViewBox()))}}],[{key:"renderTickItem",value:function(r,i,s){var a;return A.isValidElement(r)?a=A.cloneElement(r,i):Be(r)?a=r(i):a=A.createElement(Cu,Fh({},i,{className:"recharts-polar-radius-axis-tick-value"}),s),a}}])}(w.PureComponent);yb(vb,"displayName","PolarRadiusAxis");yb(vb,"axisType","radiusAxis");yb(vb,"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 Du(e){"@babel/helpers - typeof";return Du=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Du(e)}function Fo(){return Fo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Fo.apply(this,arguments)}function OM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function No(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?OM(Object(n),!0).forEach(function(r){xb(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):OM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function kMe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function RM(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Zq(r.key),r)}}function SMe(e,t,n){return t&&RM(e.prototype,t),n&&RM(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function jMe(e,t,n){return t=xv(t),_Me(e,Qq()?Reflect.construct(t,n||[],xv(e).constructor):t.apply(e,n))}function _Me(e,t){if(t&&(Du(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return EMe(e)}function EMe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Qq(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Qq=function(){return!!e})()}function xv(e){return xv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},xv(e)}function TMe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&uj(e,t)}function uj(e,t){return uj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},uj(e,t)}function xb(e,t,n){return t=Zq(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Zq(e){var t=NMe(e,"string");return Du(t)=="symbol"?t:t+""}function NMe(e,t){if(Du(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Du(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var CMe=Math.PI/180,IM=1e-5,bb=function(e){function t(){return kMe(this,t),jMe(this,t,arguments)}return TMe(t,e),SMe(t,[{key:"getTickLineCoord",value:function(r){var i=this.props,s=i.cx,a=i.cy,o=i.radius,l=i.orientation,u=i.tickSize,d=u||8,h=yt(s,a,o,r.coordinate),f=yt(s,a,o+(l==="inner"?-1:1)*d,r.coordinate);return{x1:h.x,y1:h.y,x2:f.x,y2:f.y}}},{key:"getTickTextAnchor",value:function(r){var i=this.props.orientation,s=Math.cos(-r.coordinate*CMe),a;return s>IM?a=i==="outer"?"start":"end":s<-IM?a=i==="outer"?"end":"start":a="middle",a}},{key:"renderAxisLine",value:function(){var r=this.props,i=r.cx,s=r.cy,a=r.radius,o=r.axisLine,l=r.axisLineType,u=No(No({},Fe(this.props,!1)),{},{fill:"none"},Fe(o,!1));if(l==="circle")return A.createElement(uN,Fo({className:"recharts-polar-angle-axis-line"},u,{cx:i,cy:s,r:a}));var d=this.props.ticks,h=d.map(function(f){return yt(i,s,a,f.coordinate)});return A.createElement(WIe,Fo({className:"recharts-polar-angle-axis-line"},u,{points:h}))}},{key:"renderTicks",value:function(){var r=this,i=this.props,s=i.ticks,a=i.tick,o=i.tickLine,l=i.tickFormatter,u=i.stroke,d=Fe(this.props,!1),h=Fe(a,!1),f=No(No({},d),{},{fill:"none"},Fe(o,!1)),p=s.map(function(g,m){var y=r.getTickLineCoord(g),v=r.getTickTextAnchor(g),x=No(No(No({textAnchor:v},d),{},{stroke:"none",fill:u},h),{},{index:m,payload:g,x:y.x2,y:y.y2});return A.createElement(Bt,Fo({className:Ye("recharts-polar-angle-axis-tick",$q(a)),key:"tick-".concat(g.coordinate)},Zx(r.props,g,m)),o&&A.createElement("line",Fo({className:"recharts-polar-angle-axis-tick-line"},f,y)),a&&t.renderTickItem(a,x,l?l(g.value,m):g.value))});return A.createElement(Bt,{className:"recharts-polar-angle-axis-ticks"},p)}},{key:"render",value:function(){var r=this.props,i=r.ticks,s=r.radius,a=r.axisLine;return s<=0||!i||!i.length?null:A.createElement(Bt,{className:Ye("recharts-polar-angle-axis",this.props.className)},a&&this.renderAxisLine(),this.renderTicks())}}],[{key:"renderTickItem",value:function(r,i,s){var a;return A.isValidElement(r)?a=A.cloneElement(r,i):Be(r)?a=r(i):a=A.createElement(Cu,Fo({},i,{className:"recharts-polar-angle-axis-tick-value"}),s),a}}])}(w.PureComponent);xb(bb,"displayName","PolarAngleAxis");xb(bb,"axisType","angleAxis");xb(bb,"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 AMe=c8,PMe=AMe(Object.getPrototypeOf,Object),OMe=PMe,RMe=Qs,IMe=OMe,MMe=Zs,$Me="[object Object]",DMe=Function.prototype,LMe=Object.prototype,Jq=DMe.toString,FMe=LMe.hasOwnProperty,BMe=Jq.call(Object);function VMe(e){if(!MMe(e)||RMe(e)!=$Me)return!1;var t=IMe(e);if(t===null)return!0;var n=FMe.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&Jq.call(n)==BMe}var qMe=VMe;const UMe=tt(qMe);var WMe=Qs,zMe=Zs,HMe="[object Boolean]";function KMe(e){return e===!0||e===!1||zMe(e)&&WMe(e)==HMe}var GMe=KMe;const YMe=tt(GMe);function sp(e){"@babel/helpers - typeof";return sp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},sp(e)}function bv(){return bv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},bv.apply(this,arguments)}function XMe(e,t){return e$e(e)||JMe(e,t)||ZMe(e,t)||QMe()}function QMe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 627In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ZMe(e,t){if(e){if(typeof e=="string")return MM(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return MM(e,t)}}function MM(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function JMe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,a,o=[],l=!0,u=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(l=(r=s.call(n)).done)&&(o.push(r.value),o.length!==t);l=!0);}catch(d){u=!0,i=d}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return o}}function e$e(e){if(Array.isArray(e))return e}function $M(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function DM(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?$M(Object(n),!0).forEach(function(r){t$e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$M(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function t$e(e,t,n){return t=n$e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function n$e(e){var t=r$e(e,"string");return sp(t)=="symbol"?t:t+""}function r$e(e,t){if(sp(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(sp(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var LM=function(t,n,r,i,s){var a=r-i,o;return o="M ".concat(t,",").concat(n),o+="L ".concat(t+r,",").concat(n),o+="L ".concat(t+r-a/2,",").concat(n+s),o+="L ".concat(t+r-a/2-i,",").concat(n+s),o+="L ".concat(t,",").concat(n," Z"),o},i$e={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},s$e=function(t){var n=DM(DM({},i$e),t),r=w.useRef(),i=w.useState(-1),s=XMe(i,2),a=s[0],o=s[1];w.useEffect(function(){if(r.current&&r.current.getTotalLength)try{var b=r.current.getTotalLength();b&&o(b)}catch{}},[]);var l=n.x,u=n.y,d=n.upperWidth,h=n.lowerWidth,f=n.height,p=n.className,g=n.animationEasing,m=n.animationDuration,y=n.animationBegin,v=n.isUpdateAnimationActive;if(l!==+l||u!==+u||d!==+d||h!==+h||f!==+f||d===0&&h===0||f===0)return null;var x=Ye("recharts-trapezoid",p);return v?A.createElement(ao,{canBegin:a>0,from:{upperWidth:0,lowerWidth:0,height:f,x:l,y:u},to:{upperWidth:d,lowerWidth:h,height:f,x:l,y:u},duration:m,animationEasing:g,isActive:v},function(b){var S=b.upperWidth,k=b.lowerWidth,j=b.height,_=b.x,E=b.y;return A.createElement(ao,{canBegin:a>0,from:"0px ".concat(a===-1?1:a,"px"),to:"".concat(a,"px 0px"),attributeName:"strokeDasharray",begin:y,duration:m,easing:g},A.createElement("path",bv({},Fe(n,!0),{className:x,d:LM(_,E,S,k,j),ref:r})))}):A.createElement("g",null,A.createElement("path",bv({},Fe(n,!0),{className:x,d:LM(l,u,d,h,f)})))},a$e=["option","shapeType","propTransformer","activeClassName","isActive"];function ap(e){"@babel/helpers - typeof";return ap=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ap(e)}function o$e(e,t){if(e==null)return{};var n=l$e(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function l$e(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function FM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function wv(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?FM(Object(n),!0).forEach(function(r){c$e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):FM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function c$e(e,t,n){return t=u$e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u$e(e){var t=d$e(e,"string");return ap(t)=="symbol"?t:t+""}function d$e(e,t){if(ap(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(ap(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function h$e(e,t){return wv(wv({},t),e)}function f$e(e,t){return e==="symbols"}function BM(e){var t=e.shapeType,n=e.elementProps;switch(t){case"rectangle":return A.createElement(cN,n);case"trapezoid":return A.createElement(s$e,n);case"sector":return A.createElement(fv,n);case"symbols":if(f$e(t))return A.createElement(jT,n);break;default:return null}}function p$e(e){return w.isValidElement(e)?e.props:e}function m$e(e){var t=e.option,n=e.shapeType,r=e.propTransformer,i=r===void 0?h$e:r,s=e.activeClassName,a=s===void 0?"recharts-active-shape":s,o=e.isActive,l=o$e(e,a$e),u;if(w.isValidElement(t))u=w.cloneElement(t,wv(wv({},l),p$e(t)));else if(Be(t))u=t(l);else if(UMe(t)&&!YMe(t)){var d=i(t,l);u=A.createElement(BM,{shapeType:n,elementProps:d})}else{var h=l;u=A.createElement(BM,{shapeType:n,elementProps:h})}return o?A.createElement(Bt,{className:a},u):u}function wb(e,t){return t!=null&&"trapezoids"in e.props}function kb(e,t){return t!=null&&"sectors"in e.props}function op(e,t){return t!=null&&"points"in e.props}function g$e(e,t){var n,r,i=e.x===(t==null||(n=t.labelViewBox)===null||n===void 0?void 0:n.x)||e.x===t.x,s=e.y===(t==null||(r=t.labelViewBox)===null||r===void 0?void 0:r.y)||e.y===t.y;return i&&s}function y$e(e,t){var n=e.endAngle===t.endAngle,r=e.startAngle===t.startAngle;return n&&r}function v$e(e,t){var n=e.x===t.x,r=e.y===t.y,i=e.z===t.z;return n&&r&&i}function x$e(e,t){var n;return wb(e,t)?n=g$e:kb(e,t)?n=y$e:op(e,t)&&(n=v$e),n}function b$e(e,t){var n;return wb(e,t)?n="trapezoids":kb(e,t)?n="sectors":op(e,t)&&(n="points"),n}function w$e(e,t){if(wb(e,t)){var n;return(n=t.tooltipPayload)===null||n===void 0||(n=n[0])===null||n===void 0||(n=n.payload)===null||n===void 0?void 0:n.payload}if(kb(e,t)){var r;return(r=t.tooltipPayload)===null||r===void 0||(r=r[0])===null||r===void 0||(r=r.payload)===null||r===void 0?void 0:r.payload}return op(e,t)?t.payload:{}}function k$e(e){var t=e.activeTooltipItem,n=e.graphicalItem,r=e.itemData,i=b$e(n,t),s=w$e(n,t),a=r.filter(function(l,u){var d=iN(s,l),h=n.props[i].filter(function(g){var m=x$e(n,t);return m(g,t)}),f=n.props[i].indexOf(h[h.length-1]),p=u===f;return d&&p}),o=r.indexOf(a[a.length-1]);return o}var Pg;function Lu(e){"@babel/helpers - typeof";return Lu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Lu(e)}function Nc(){return Nc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Nc.apply(this,arguments)}function VM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function pt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?VM(Object(n),!0).forEach(function(r){Vr(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):VM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function S$e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qM(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,tU(r.key),r)}}function j$e(e,t,n){return t&&qM(e.prototype,t),n&&qM(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function _$e(e,t,n){return t=kv(t),E$e(e,eU()?Reflect.construct(t,n||[],kv(e).constructor):t.apply(e,n))}function E$e(e,t){if(t&&(Lu(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return T$e(e)}function T$e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function eU(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(eU=function(){return!!e})()}function kv(e){return kv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},kv(e)}function N$e(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&dj(e,t)}function dj(e,t){return dj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},dj(e,t)}function Vr(e,t,n){return t=tU(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tU(e){var t=C$e(e,"string");return Lu(t)=="symbol"?t:t+""}function C$e(e,t){if(Lu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Lu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ea=function(e){function t(n){var r;return S$e(this,t),r=_$e(this,t,[n]),Vr(r,"pieRef",null),Vr(r,"sectorRefs",[]),Vr(r,"id",Qx("recharts-pie-")),Vr(r,"handleAnimationEnd",function(){var i=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),Be(i)&&i()}),Vr(r,"handleAnimationStart",function(){var i=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),Be(i)&&i()}),r.state={isAnimationFinished:!n.isAnimationActive,prevIsAnimationActive:n.isAnimationActive,prevAnimationId:n.animationId,sectorToFocus:0},r}return N$e(t,e),j$e(t,[{key:"isActiveIndex",value:function(r){var i=this.props.activeIndex;return Array.isArray(i)?i.indexOf(r)!==-1:r===i}},{key:"hasActiveIndex",value:function(){var r=this.props.activeIndex;return Array.isArray(r)?r.length!==0:r||r===0}},{key:"renderLabels",value:function(r){var i=this.props.isAnimationActive;if(i&&!this.state.isAnimationFinished)return null;var s=this.props,a=s.label,o=s.labelLine,l=s.dataKey,u=s.valueKey,d=Fe(this.props,!1),h=Fe(a,!1),f=Fe(o,!1),p=a&&a.offsetRadius||20,g=r.map(function(m,y){var v=(m.startAngle+m.endAngle)/2,x=yt(m.cx,m.cy,m.outerRadius+p,v),b=pt(pt(pt(pt({},d),m),{},{stroke:"none"},h),{},{index:y,textAnchor:t.getTextAnchor(x.x,m.cx)},x),S=pt(pt(pt(pt({},d),m),{},{fill:"none",stroke:m.fill},f),{},{index:y,points:[yt(m.cx,m.cy,m.outerRadius,v),x]}),k=l;return Ke(l)&&Ke(u)?k="value":Ke(l)&&(k=u),A.createElement(Bt,{key:"label-".concat(m.startAngle,"-").concat(m.endAngle,"-").concat(m.midAngle,"-").concat(y)},o&&t.renderLabelLineItem(o,S,"line"),t.renderLabelItem(a,b,xr(m,k)))});return A.createElement(Bt,{className:"recharts-pie-labels"},g)}},{key:"renderSectorsStatically",value:function(r){var i=this,s=this.props,a=s.activeShape,o=s.blendStroke,l=s.inactiveShape;return r.map(function(u,d){if((u==null?void 0:u.startAngle)===0&&(u==null?void 0:u.endAngle)===0&&r.length!==1)return null;var h=i.isActiveIndex(d),f=l&&i.hasActiveIndex()?l:null,p=h?a:f,g=pt(pt({},u),{},{stroke:o?u.fill:u.stroke,tabIndex:-1});return A.createElement(Bt,Nc({ref:function(y){y&&!i.sectorRefs.includes(y)&&i.sectorRefs.push(y)},tabIndex:-1,className:"recharts-pie-sector"},Zx(i.props,u,d),{key:"sector-".concat(u==null?void 0:u.startAngle,"-").concat(u==null?void 0:u.endAngle,"-").concat(u.midAngle,"-").concat(d)}),A.createElement(m$e,Nc({option:p,isActive:h,shapeType:"sector"},g)))})}},{key:"renderSectorsWithAnimation",value:function(){var r=this,i=this.props,s=i.sectors,a=i.isAnimationActive,o=i.animationBegin,l=i.animationDuration,u=i.animationEasing,d=i.animationId,h=this.state,f=h.prevSectors,p=h.prevIsAnimationActive;return A.createElement(ao,{begin:o,duration:l,isActive:a,easing:u,from:{t:0},to:{t:1},key:"pie-".concat(d,"-").concat(p),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},function(g){var m=g.t,y=[],v=s&&s[0],x=v.startAngle;return s.forEach(function(b,S){var k=f&&f[S],j=S>0?Ci(b,"paddingAngle",0):0;if(k){var _=IO(k.endAngle-k.startAngle,b.endAngle-b.startAngle),E=pt(pt({},b),{},{startAngle:x+j,endAngle:x+_(m)+j});y.push(E),x=E.endAngle}else{var T=b.endAngle,N=b.startAngle,P=IO(0,T-N),C=P(m),M=pt(pt({},b),{},{startAngle:x+j,endAngle:x+C+j});y.push(M),x=M.endAngle}}),A.createElement(Bt,null,r.renderSectorsStatically(y))})}},{key:"attachKeyboardHandlers",value:function(r){var i=this;r.onkeydown=function(s){if(!s.altKey)switch(s.key){case"ArrowLeft":{var a=++i.state.sectorToFocus%i.sectorRefs.length;i.sectorRefs[a].focus(),i.setState({sectorToFocus:a});break}case"ArrowRight":{var o=--i.state.sectorToFocus<0?i.sectorRefs.length-1:i.state.sectorToFocus%i.sectorRefs.length;i.sectorRefs[o].focus(),i.setState({sectorToFocus:o});break}case"Escape":{i.sectorRefs[i.state.sectorToFocus].blur(),i.setState({sectorToFocus:0});break}}}}},{key:"renderSectors",value:function(){var r=this.props,i=r.sectors,s=r.isAnimationActive,a=this.state.prevSectors;return s&&i&&i.length&&(!a||!iN(a,i))?this.renderSectorsWithAnimation():this.renderSectorsStatically(i)}},{key:"componentDidMount",value:function(){this.pieRef&&this.attachKeyboardHandlers(this.pieRef)}},{key:"render",value:function(){var r=this,i=this.props,s=i.hide,a=i.sectors,o=i.className,l=i.label,u=i.cx,d=i.cy,h=i.innerRadius,f=i.outerRadius,p=i.isAnimationActive,g=this.state.isAnimationFinished;if(s||!a||!a.length||!le(u)||!le(d)||!le(h)||!le(f))return null;var m=Ye("recharts-pie",o);return A.createElement(Bt,{tabIndex:this.props.rootTabIndex,className:m,ref:function(v){r.pieRef=v}},this.renderSectors(),l&&this.renderLabels(a),_n.renderCallByParent(this.props,null,!1),(!p||g)&&dl.renderCallByParent(this.props,a,!1))}}],[{key:"getDerivedStateFromProps",value:function(r,i){return i.prevIsAnimationActive!==r.isAnimationActive?{prevIsAnimationActive:r.isAnimationActive,prevAnimationId:r.animationId,curSectors:r.sectors,prevSectors:[],isAnimationFinished:!0}:r.isAnimationActive&&r.animationId!==i.prevAnimationId?{prevAnimationId:r.animationId,curSectors:r.sectors,prevSectors:i.curSectors,isAnimationFinished:!0}:r.sectors!==i.curSectors?{curSectors:r.sectors,isAnimationFinished:!0}:null}},{key:"getTextAnchor",value:function(r,i){return r>i?"start":r<i?"end":"middle"}},{key:"renderLabelLineItem",value:function(r,i,s){if(A.isValidElement(r))return A.cloneElement(r,i);if(Be(r))return r(i);var a=Ye("recharts-pie-label-line",typeof r!="boolean"?r.className:"");return A.createElement(XS,Nc({},i,{key:s,type:"linear",className:a}))}},{key:"renderLabelItem",value:function(r,i,s){if(A.isValidElement(r))return A.cloneElement(r,i);var a=s;if(Be(r)&&(a=r(i),A.isValidElement(a)))return a;var o=Ye("recharts-pie-label-text",typeof r!="boolean"&&!Be(r)?r.className:"");return A.createElement(Cu,Nc({},i,{alignmentBaseline:"middle",className:o}),a)}}])}(w.PureComponent);Pg=ea;Vr(ea,"displayName","Pie");Vr(ea,"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:!ll.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1,rootTabIndex:0});Vr(ea,"parseDeltaAngle",function(e,t){var n=Wr(t-e),r=Math.min(Math.abs(t-e),360);return n*r});Vr(ea,"getRealPieData",function(e){var t=e.data,n=e.children,r=Fe(e,!1),i=ns(n,MT);return t&&t.length?t.map(function(s,a){return pt(pt(pt({payload:s},r),s),i&&i[a]&&i[a].props)}):i&&i.length?i.map(function(s){return pt(pt({},r),s.props)}):[]});Vr(ea,"parseCoordinateOfPie",function(e,t){var n=t.top,r=t.left,i=t.width,s=t.height,a=Mq(i,s),o=r+ir(e.cx,i,i/2),l=n+ir(e.cy,s,s/2),u=ir(e.innerRadius,a,0),d=ir(e.outerRadius,a,a*.8),h=e.maxRadius||Math.sqrt(i*i+s*s)/2;return{cx:o,cy:l,innerRadius:u,outerRadius:d,maxRadius:h}});Vr(ea,"getComposedData",function(e){var t=e.item,n=e.offset,r=t.type.defaultProps!==void 0?pt(pt({},t.type.defaultProps),t.props):t.props,i=Pg.getRealPieData(r);if(!i||!i.length)return null;var s=r.cornerRadius,a=r.startAngle,o=r.endAngle,l=r.paddingAngle,u=r.dataKey,d=r.nameKey,h=r.valueKey,f=r.tooltipType,p=Math.abs(r.minAngle),g=Pg.parseCoordinateOfPie(r,n),m=Pg.parseDeltaAngle(a,o),y=Math.abs(m),v=u;Ke(u)&&Ke(h)?(Ps(!1,`Use "dataKey" to specify the value of pie,
628 the props "valueKey" will be deprecated in 1.1.0`),v="value"):Ke(u)&&(Ps(!1,`Use "dataKey" to specify the value of pie, 629 the props "valueKey" will be deprecated in 1.1.0`),v=h);var x=i.filter(function(E){return xr(E,v,0)!==0}).length,b=(y>=360?x:x-1)*l,S=y-x*p-b,k=i.reduce(function(E,T){var N=xr(T,v,0);return E+(le(N)?N:0)},0),j;if(k>0){var _;j=i.map(function(E,T){var N=xr(E,v,0),P=xr(E,d,T),C=(le(N)?N:0)/k,M;T?M=_.endAngle+Wr(m)*l*(N!==0?1:0):M=a;var R=M+Wr(m)*((N!==0?p:0)+C*S),D=(M+R)/2,L=(g.innerRadius+g.outerRadius)/2,B=[{name:P,value:N,payload:E,dataKey:v,type:f}],I=yt(g.cx,g.cy,L,D);return _=pt(pt(pt({percent:C,cornerRadius:s,name:P,tooltipPayload:B,midAngle:D,middleRadius:L,tooltipPosition:I},E),g),{},{value:xr(E,v),startAngle:M,endAngle:R,payload:E,paddingAngle:Wr(m)*l}),_})}return pt(pt({},g),{},{sectors:j,data:i})});var A$e=Math.ceil,P$e=Math.max;function O$e(e,t,n,r){for(var i=-1,s=P$e(A$e((t-e)/(n||1)),0),a=Array(s);s--;)a[r?s:++i]=e,e+=n;return a}var R$e=O$e,I$e=T8,UM=1/0,M$e=17976931348623157e292;function $$e(e){if(!e)return e===0?e:0;if(e=I$e(e),e===UM||e===-UM){var t=e<0?-1:1;return t*M$e}return e===e?e:0}var D$e=$$e,L$e=R$e,F$e=sb,Ew=D$e;function B$e(e){return function(t,n,r){return r&&typeof r!="number"&&F$e(t,n,r)&&(n=r=void 0),t=Ew(t),n===void 0?(n=t,t=0):n=Ew(n),r=r===void 0?t<n?1:-1:Ew(r),L$e(t,n,r,e)}}
vendor: 11,741 bytes, line 629
629var V$e=B$e,q$e=V$e,U$e=q$e(),W$e=U$e;const Sv=tt(W$e);function lp(e){"@babel/helpers - typeof";return lp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},lp(e)}function WM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function zM(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?WM(Object(n),!0).forEach(function(r){nU(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):WM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function nU(e,t,n){return t=z$e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function z$e(e){var t=H$e(e,"string");return lp(t)=="symbol"?t:t+""}function H$e(e,t){if(lp(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(lp(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var K$e=["Webkit","Moz","O","ms"],G$e=function(t,n){var r=t.replace(/(\w)/,function(s){return s.toUpperCase()}),i=K$e.reduce(function(s,a){return zM(zM({},s),{},nU({},a+r,n))},{});return i[t]=n,i};function Fu(e){"@babel/helpers - typeof";return Fu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Fu(e)}function jv(){return jv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jv.apply(this,arguments)}function HM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Tw(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?HM(Object(n),!0).forEach(function(r){mr(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):HM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Y$e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function KM(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,iU(r.key),r)}}function X$e(e,t,n){return t&&KM(e.prototype,t),n&&KM(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Q$e(e,t,n){return t=_v(t),Z$e(e,rU()?Reflect.construct(t,n||[],_v(e).constructor):t.apply(e,n))}function Z$e(e,t){if(t&&(Fu(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return J$e(e)}function J$e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function rU(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(rU=function(){return!!e})()}function _v(e){return _v=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},_v(e)}function eDe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&hj(e,t)}function hj(e,t){return hj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},hj(e,t)}function mr(e,t,n){return t=iU(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function iU(e){var t=tDe(e,"string");return Fu(t)=="symbol"?t:t+""}function tDe(e,t){if(Fu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Fu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var nDe=function(t){var n=t.data,r=t.startIndex,i=t.endIndex,s=t.x,a=t.width,o=t.travellerWidth;if(!n||!n.length)return{};var l=n.length,u=Mh().domain(Sv(0,l)).range([s,s+a-o]),d=u.domain().map(function(h){return u(h)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:u(r),endX:u(i),scale:u,scaleValues:d}},GM=function(t){return t.changedTouches&&!!t.changedTouches.length},Bu=function(e){function t(n){var r;return Y$e(this,t),r=Q$e(this,t,[n]),mr(r,"handleDrag",function(i){r.leaveTimer&&(clearTimeout(r.leaveTimer),r.leaveTimer=null),r.state.isTravellerMoving?r.handleTravellerMove(i):r.state.isSlideMoving&&r.handleSlideDrag(i)}),mr(r,"handleTouchMove",function(i){i.changedTouches!=null&&i.changedTouches.length>0&&r.handleDrag(i.changedTouches[0])}),mr(r,"handleDragEnd",function(){r.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var i=r.props,s=i.endIndex,a=i.onDragEnd,o=i.startIndex;a==null||a({endIndex:s,startIndex:o})}),r.detachDragEndListener()}),mr(r,"handleLeaveWrapper",function(){(r.state.isTravellerMoving||r.state.isSlideMoving)&&(r.leaveTimer=window.setTimeout(r.handleDragEnd,r.props.leaveTimeOut))}),mr(r,"handleEnterSlideOrTraveller",function(){r.setState({isTextActive:!0})}),mr(r,"handleLeaveSlideOrTraveller",function(){r.setState({isTextActive:!1})}),mr(r,"handleSlideDragStart",function(i){var s=GM(i)?i.changedTouches[0]:i;r.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:s.pageX}),r.attachDragEndListener()}),r.travellerDragStartHandlers={startX:r.handleTravellerDragStart.bind(r,"startX"),endX:r.handleTravellerDragStart.bind(r,"endX")},r.state={},r}return eDe(t,e),X$e(t,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(r){var i=r.startX,s=r.endX,a=this.state.scaleValues,o=this.props,l=o.gap,u=o.data,d=u.length-1,h=Math.min(i,s),f=Math.max(i,s),p=t.getIndexInRange(a,h),g=t.getIndexInRange(a,f);return{startIndex:p-p%l,endIndex:g===d?d:g-g%l}}},{key:"getTextOfTick",value:function(r){var i=this.props,s=i.data,a=i.tickFormatter,o=i.dataKey,l=xr(s[r],o,r);return Be(a)?a(l,r):l}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(r){var i=this.state,s=i.slideMoveStartX,a=i.startX,o=i.endX,l=this.props,u=l.x,d=l.width,h=l.travellerWidth,f=l.startIndex,p=l.endIndex,g=l.onChange,m=r.pageX-s;m>0?m=Math.min(m,u+d-h-o,u+d-h-a):m<0&&(m=Math.max(m,u-a,u-o));var y=this.getIndex({startX:a+m,endX:o+m});(y.startIndex!==f||y.endIndex!==p)&&g&&g(y),this.setState({startX:a+m,endX:o+m,slideMoveStartX:r.pageX})}},{key:"handleTravellerDragStart",value:function(r,i){var s=GM(i)?i.changedTouches[0]:i;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:r,brushMoveStartX:s.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(r){var i=this.state,s=i.brushMoveStartX,a=i.movingTravellerId,o=i.endX,l=i.startX,u=this.state[a],d=this.props,h=d.x,f=d.width,p=d.travellerWidth,g=d.onChange,m=d.gap,y=d.data,v={startX:this.state.startX,endX:this.state.endX},x=r.pageX-s;x>0?x=Math.min(x,h+f-p-u):x<0&&(x=Math.max(x,h-u)),v[a]=u+x;var b=this.getIndex(v),S=b.startIndex,k=b.endIndex,j=function(){var E=y.length-1;return a==="startX"&&(o>l?S%m===0:k%m===0)||o<l&&k===E||a==="endX"&&(o>l?k%m===0:S%m===0)||o>l&&k===E};this.setState(mr(mr({},a,u+x),"brushMoveStartX",r.pageX),function(){g&&j()&&g(b)})}},{key:"handleTravellerMoveKeyboard",value:function(r,i){var s=this,a=this.state,o=a.scaleValues,l=a.startX,u=a.endX,d=this.state[i],h=o.indexOf(d);if(h!==-1){var f=h+r;if(!(f===-1||f>=o.length)){var p=o[f];i==="startX"&&p>=u||i==="endX"&&p<=l||this.setState(mr({},i,p),function(){s.props.onChange(s.getIndex({startX:s.state.startX,endX:s.state.endX}))})}}}},{key:"renderBackground",value:function(){var r=this.props,i=r.x,s=r.y,a=r.width,o=r.height,l=r.fill,u=r.stroke;return A.createElement("rect",{stroke:u,fill:l,x:i,y:s,width:a,height:o})}},{key:"renderPanorama",value:function(){var r=this.props,i=r.x,s=r.y,a=r.width,o=r.height,l=r.data,u=r.children,d=r.padding,h=w.Children.only(u);return h?A.cloneElement(h,{x:i,y:s,width:a,height:o,margin:d,compact:!0,data:l}):null}},{key:"renderTravellerLayer",value:function(r,i){var s,a,o=this,l=this.props,u=l.y,d=l.travellerWidth,h=l.height,f=l.traveller,p=l.ariaLabel,g=l.data,m=l.startIndex,y=l.endIndex,v=Math.max(r,this.props.x),x=Tw(Tw({},Fe(this.props,!1)),{},{x:v,y:u,width:d,height:h}),b=p||"Min value: ".concat((s=g[m])===null||s===void 0?void 0:s.name,", Max value: ").concat((a=g[y])===null||a===void 0?void 0:a.name);return A.createElement(Bt,{tabIndex:0,role:"slider","aria-label":b,"aria-valuenow":r,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[i],onTouchStart:this.travellerDragStartHandlers[i],onKeyDown:function(k){["ArrowLeft","ArrowRight"].includes(k.key)&&(k.preventDefault(),k.stopPropagation(),o.handleTravellerMoveKeyboard(k.key==="ArrowRight"?1:-1,i))},onFocus:function(){o.setState({isTravellerFocused:!0})},onBlur:function(){o.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(f,x))}},{key:"renderSlide",value:function(r,i){var s=this.props,a=s.y,o=s.height,l=s.stroke,u=s.travellerWidth,d=Math.min(r,i)+u,h=Math.max(Math.abs(i-r)-u,0);return A.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:l,fillOpacity:.2,x:d,y:a,width:h,height:o})}},{key:"renderText",value:function(){var r=this.props,i=r.startIndex,s=r.endIndex,a=r.y,o=r.height,l=r.travellerWidth,u=r.stroke,d=this.state,h=d.startX,f=d.endX,p=5,g={pointerEvents:"none",fill:u};return A.createElement(Bt,{className:"recharts-brush-texts"},A.createElement(Cu,jv({textAnchor:"end",verticalAnchor:"middle",x:Math.min(h,f)-p,y:a+o/2},g),this.getTextOfTick(i)),A.createElement(Cu,jv({textAnchor:"start",verticalAnchor:"middle",x:Math.max(h,f)+l+p,y:a+o/2},g),this.getTextOfTick(s)))}},{key:"render",value:function(){var r=this.props,i=r.data,s=r.className,a=r.children,o=r.x,l=r.y,u=r.width,d=r.height,h=r.alwaysShowText,f=this.state,p=f.startX,g=f.endX,m=f.isTextActive,y=f.isSlideMoving,v=f.isTravellerMoving,x=f.isTravellerFocused;if(!i||!i.length||!le(o)||!le(l)||!le(u)||!le(d)||u<=0||d<=0)return null;var b=Ye("recharts-brush",s),S=A.Children.count(a)===1,k=G$e("userSelect","none");return A.createElement(Bt,{className:b,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:k}
629,this.renderBackground(),S&&this.renderPanorama(),this.renderSlide(p,g),this.renderTravellerLayer(p,"startX"),this.renderTravellerLayer(g,"endX"),(m||y||v||x||h)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(r){var i=r.x,s=r.y,a=r.width,o=r.height,l=r.stroke,u=Math.floor(s+o/2)-1;return A.createElement(A.Fragment,null,A.createElement("rect",{x:i,y:s,width:a,height:o,fill:l,stroke:"none"}),A.createElement("line",{x1:i+1,y1:u,x2:i+a-1,y2:u,fill:"none",stroke:"#fff"}),A.createElement("line",{x1:i+1,y1:u+2,x2:i+a-1,y2:u+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(r,i){var s;return A.isValidElement(r)?s=A.cloneElement(r,i):Be(r)?s=r(i):s=t.renderDefaultTraveller(i),s}},{key:"getDerivedStateFromProps",value:function(r,i){var s=r.data,a=r.width,o=r.x,l=r.travellerWidth,u=r.updateId,d=r.startIndex,h=r.endIndex;if(s!==i.prevData||u!==i.prevUpdateId)return Tw({prevData:s,prevTravellerWidth:l,prevUpdateId:u,prevX:o,prevWidth:a},s&&s.length?nDe({data:s,width:a,x:o,travellerWidth:l,startIndex:d,endIndex:h}):{scale:null,scaleValues:null});if(i.scale&&(a!==i.prevWidth||o!==i.prevX||l!==i.prevTravellerWidth)){i.scale.range([o,o+a-l]);var f=i.scale.domain().map(function(p){return i.scale(p)});return{prevData:s,prevTravellerWidth:l,prevUpdateId:u,prevX:o,prevWidth:a,startX:i.scale(r.startIndex),endX:i.scale(r.endIndex),scaleValues:f}}return null}},{key:"getIndexInRange",value:function(r,i){for(var s=r.length,a=0,o=s-1;o-a>1;){var l=Math.floor((a+o)/2);r[l]>i?o=l:a=l}return i>=r[o]?o:a}}])}(w.PureComponent);mr(Bu,"displayName","Brush");mr(Bu,"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 rDe=OT;function iDe(e,t){var n;return rDe(e,function(r,i,s){return n=t(r,i,s),!n}),!!n}var sDe=iDe,aDe=t8,oDe=mo,lDe=sDe,cDe=fr,uDe=sb;function dDe(e,t,n){var r=cDe(e)?aDe:lDe;return n&&uDe(e,t,n)&&(t=void 0),r(e,oDe(t))}var hDe=dDe;const fDe=tt(hDe);var is=function(t,n){var r=t.alwaysShow,i=t.ifOverflow;return r&&(i="extendDomain"),i===n},YM=k8;function pDe(e,t,n){t=="__proto__"&&YM?YM(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var mDe=pDe,gDe=mDe,yDe=b8,vDe=mo;function xDe(e,t){var n={};return t=vDe(t),yDe(e,function(r,i,s){gDe(n,i,t(r,i,s))}),n}var bDe=xDe;const wDe=tt(bDe);function kDe(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}var SDe=kDe,jDe=OT;function _De(e,t){var n=!0;return jDe(e,function(r,i,s){return n=!!t(r,i,s),n}),n}var EDe=_De,TDe=SDe,NDe=EDe,CDe=mo,ADe=fr,PDe=sb;function ODe(e,t,n){var r=ADe(e)?TDe:NDe;return n&&PDe(e,t,n)&&(t=void 0),r(e,CDe(t))}var RDe=ODe;const IDe=tt(RDe);function cp(e){"@babel/helpers - typeof";return cp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},cp(e)}function MDe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function XM(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,sU(r.key),r)}}function $De(e,t,n){return t&&XM(e.prototype,t),n&&XM(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function QM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function eg(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?QM(Object(n),!0).forEach(function(r){dN(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):QM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function dN(e,t,n){return t=sU(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sU(e){var t=DDe(e,"string");return cp(t)=="symbol"?t:t+""}function DDe(e,t){if(cp(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(cp(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var aU=function(t,n){var r=t.x,i=t.y,s=n.x,a=n.y;return{x:Math.min(r,s),y:Math.min(i,a),width:Math.abs(s-r),height:Math.abs(a-i)}}
vendor: 58,199 bytes, lines 629-633
629,LDe=function(t){var n=t.x1,r=t.y1,i=t.x2,s=t.y2;return aU({x:n,y:r},{x:i,y:s})},oU=function(){function e(t){MDe(this,e),this.scale=t}return $De(e,[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.bandAware,s=r.position;if(n!==void 0){if(s)switch(s){case"start":return this.scale(n);case"middle":{var a=this.bandwidth?this.bandwidth()/2:0;return this.scale(n)+a}case"end":{var o=this.bandwidth?this.bandwidth():0;return this.scale(n)+o}default:return this.scale(n)}if(i){var l=this.bandwidth?this.bandwidth()/2:0;return this.scale(n)+l}return this.scale(n)}}},{key:"isInRange",value:function(n){var r=this.range(),i=r[0],s=r[r.length-1];return i<=s?n>=i&&n<=s:n>=s&&n<=i}}],[{key:"create",value:function(n){return new e(n)}}])}();dN(oU,"EPS",1e-4);var hN=function(t){var n=Object.keys(t).reduce(function(r,i){return eg(eg({},r),{},dN({},i,oU.create(t[i])))},{});return eg(eg({},n),{},{apply:function(i){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=s.bandAware,o=s.position;return wDe(i,function(l,u){return n[u].apply(l,{bandAware:a,position:o})})},isInRange:function(i){return IDe(i,function(s,a){return n[a].isInRange(s)})}})},FDe=pve(function(e){return{x:e.left,y:e.top,width:e.width,height:e.height}},function(e){return["l",e.left,"t",e.top,"w",e.width,"h",e.height].join("")}),lU=w.createContext(void 0),cU=w.createContext(void 0),uU=w.createContext(void 0),BDe=w.createContext({}),dU=w.createContext(void 0),VDe=w.createContext(0),qDe=w.createContext(0),ZM=function(t){var n=t.state,r=n.xAxisMap,i=n.yAxisMap,s=n.offset,a=t.clipPathId,o=t.children,l=t.width,u=t.height,d=FDe(s);return A.createElement(lU.Provider,{value:r},A.createElement(cU.Provider,{value:i},A.createElement(BDe.Provider,{value:s},A.createElement(uU.Provider,{value:d},A.createElement(dU.Provider,{value:a},A.createElement(VDe.Provider,{value:u},A.createElement(qDe.Provider,{value:l},o)))))))},UDe=function(){return w.useContext(dU)},WDe=function(t){var n=w.useContext(lU);n==null&&Ru();var r=n[t];return r==null&&Ru(),r},zDe=function(t){var n=w.useContext(cU);n==null&&Ru();var r=n[t];return r==null&&Ru(),r},HDe=function(){var t=w.useContext(uU);return t};function Vu(e){"@babel/helpers - typeof";return Vu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Vu(e)}function KDe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function GDe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,fU(r.key),r)}}function YDe(e,t,n){return t&&GDe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function XDe(e,t,n){return t=Ev(t),QDe(e,hU()?Reflect.construct(t,n||[],Ev(e).constructor):t.apply(e,n))}function QDe(e,t){if(t&&(Vu(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ZDe(e)}function ZDe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function hU(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(hU=function(){return!!e})()}function Ev(e){return Ev=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Ev(e)}function JDe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&fj(e,t)}function fj(e,t){return fj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},fj(e,t)}function JM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function e$(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?JM(Object(n),!0).forEach(function(r){fN(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):JM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function fN(e,t,n){return t=fU(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fU(e){var t=eLe(e,"string");return Vu(t)=="symbol"?t:t+""}function eLe(e,t){if(Vu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Vu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function tLe(e,t){return sLe(e)||iLe(e,t)||rLe(e,t)||nLe()}function nLe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 630In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function rLe(e,t){if(e){if(typeof e=="string")return t$(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return t$(e,t)}}function t$(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function iLe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,a,o=[],l=!0,u=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(l=(r=s.call(n)).done)&&(o.push(r.value),o.length!==t);l=!0);}catch(d){u=!0,i=d}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return o}}function sLe(e){if(Array.isArray(e))return e}function pj(){return pj=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},pj.apply(this,arguments)}var aLe=function(t,n){var r;return A.isValidElement(t)?r=A.cloneElement(t,n):Be(t)?r=t(n):r=A.createElement("line",pj({},n,{className:"recharts-reference-line-line"})),r},oLe=function(t,n,r,i,s,a,o,l,u){var d=s.x,h=s.y,f=s.width,p=s.height;if(r){var g=u.y,m=t.y.apply(g,{position:a});if(is(u,"discard")&&!t.y.isInRange(m))return null;var y=[{x:d+f,y:m},{x:d,y:m}];return l==="left"?y.reverse():y}if(n){var v=u.x,x=t.x.apply(v,{position:a});if(is(u,"discard")&&!t.x.isInRange(x))return null;var b=[{x,y:h+p},{x,y:h}];return o==="top"?b.reverse():b}if(i){var S=u.segment,k=S.map(function(j){return t.apply(j,{position:a})});return is(u,"discard")&&fDe(k,function(j){return!t.isInRange(j)})?null:k}return null};function lLe(e){var t=e.x,n=e.y,r=e.segment,i=e.xAxisId,s=e.yAxisId,a=e.shape,o=e.className,l=e.alwaysShow,u=UDe(),d=WDe(i),h=zDe(s),f=HDe();if(!u||!f)return null;Ps(l===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var p=hN({x:d.scale,y:h.scale}),g=sn(t),m=sn(n),y=r&&r.length===2,v=oLe(p,g,m,y,f,e.position,d.orientation,h.orientation,e);if(!v)return null;var x=tLe(v,2),b=x[0],S=b.x,k=b.y,j=x[1],_=j.x,E=j.y,T=is(e,"hidden")?"url(#".concat(u,")"):void 0,N=e$(e$({clipPath:T},Fe(e,!0)),{},{x1:S,y1:k,x2:_,y2:E});return A.createElement(Bt,{className:Ye("recharts-reference-line",o)},aLe(a,N),_n.renderCallByParent(e,LDe({x1:S,y1:k,x2:_,y2:E})))}var pN=function(e){function t(){return KDe(this,t),XDe(this,t,arguments)}return JDe(t,e),YDe(t,[{key:"render",value:function(){return A.createElement(lLe,this.props)}}])}(A.Component);fN(pN,"displayName","ReferenceLine");fN(pN,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function mj(){return mj=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mj.apply(this,arguments)}function qu(e){"@babel/helpers - typeof";return qu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qu(e)}function n$(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function r$(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?n$(Object(n),!0).forEach(function(r){Sb(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):n$(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function cLe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function uLe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,mU(r.key),r)}}function dLe(e,t,n){return t&&uLe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function hLe(e,t,n){return t=Tv(t),fLe(e,pU()?Reflect.construct(t,n||[],Tv(e).constructor):t.apply(e,n))}function fLe(e,t){if(t&&(qu(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return pLe(e)}function pLe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function pU(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(pU=function(){return!!e})()}function Tv(e){return Tv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Tv(e)}function mLe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&gj(e,t)}function gj(e,t){return gj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},gj(e,t)}function Sb(e,t,n){return t=mU(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mU(e){var t=gLe(e,"string");return qu(t)=="symbol"?t:t+""}function gLe(e,t){if(qu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(qu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var yLe=function(t){var n=t.x,r=t.y,i=t.xAxis,s=t.yAxis,a=hN({x:i.scale,y:s.scale}),o=a.apply({x:n,y:r},{bandAware:!0});return is(t,"discard")&&!a.isInRange(o)?null:o},jb=function(e){function t(){return cLe(this,t),hLe(this,t,arguments)}return mLe(t,e),dLe(t,[{key:"render",value:function(){var r=this.props,i=r.x,s=r.y,a=r.r,o=r.alwaysShow,l=r.clipPathId,u=sn(i),d=sn(s);if(Ps(o===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!u||!d)return null;var h=yLe(this.props);if(!h)return null;var f=h.x,p=h.y,g=this.props,m=g.shape,y=g.className,v=is(this.props,"hidden")?"url(#".concat(l,")"):void 0,x=r$(r$({clipPath:v},Fe(this.props,!0)),{},{cx:f,cy:p});return A.createElement(Bt,{className:Ye("recharts-reference-dot",y)},t.renderDot(m,x),_n.renderCallByParent(this.props,{x:f-a,y:p-a,width:2*a,height:2*a}))}}])}(A.Component);Sb(jb,"displayName","ReferenceDot");Sb(jb,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});Sb(jb,"renderDot",function(e,t){var n;return A.isValidElement(e)?n=A.cloneElement(e,t):Be(e)?n=e(t):n=A.createElement(uN,mj({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),n});function yj(){return yj=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},yj.apply(this,arguments)}function Uu(e){"@babel/helpers - typeof";return Uu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Uu(e)}function i$(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function s$(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?i$(Object(n),!0).forEach(function(r){_b(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i$(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function vLe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xLe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,yU(r.key),r)}}function bLe(e,t,n){return t&&xLe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function wLe(e,t,n){return t=Nv(t),kLe(e,gU()?Reflect.construct(t,n||[],Nv(e).constructor):t.apply(e,n))}function kLe(e,t){if(t&&(Uu(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return SLe(e)}function SLe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function gU(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(gU=function(){return!!e})()}function Nv(e){return Nv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Nv(e)}function jLe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&vj(e,t)}function vj(e,t){return vj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},vj(e,t)}function _b(e,t,n){return t=yU(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yU(e){var t=_Le(e,"string");return Uu(t)=="symbol"?t:t+""}function _Le(e,t){if(Uu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Uu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ELe=function(t,n,r,i,s){var a=s.x1,o=s.x2,l=s.y1,u=s.y2,d=s.xAxis,h=s.yAxis;if(!d||!h)return null;var f=hN({x:d.scale,y:h.scale}),p={x:t?f.x.apply(a,{position:"start"}):f.x.rangeMin,y:r?f.y.apply(l,{position:"start"}):f.y.rangeMin},g={x:n?f.x.apply(o,{position:"end"}):f.x.rangeMax,y:i?f.y.apply(u,{position:"end"}):f.y.rangeMax};return is(s,"discard")&&(!f.isInRange(p)||!f.isInRange(g))?null:aU(p,g)},Eb=function(e){function t(){return vLe(this,t),wLe(this,t,arguments)}return jLe(t,e),bLe(t,[{key:"render",value:function(){var r=this.props,i=r.x1,s=r.x2,a=r.y1,o=r.y2,l=r.className,u=r.alwaysShow,d=r.clipPathId;Ps(u===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var h=sn(i),f=sn(s),p=sn(a),g=sn(o),m=this.props.shape;if(!h&&!f&&!p&&!g&&!m)return null;var y=ELe(h,f,p,g,this.props);if(!y&&!m)return null;var v=is(this.props,"hidden")?"url(#".concat(d,")"):void 0;return A.createElement(Bt,{className:Ye("recharts-reference-area",l)},t.renderRect(m,s$(s$({clipPath:v},Fe(this.props,!0)),y)),_n.renderCallByParent(this.props,y))}}])}(A.Component);_b(Eb,"displayName","ReferenceArea");_b(Eb,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});_b(Eb,"renderRect",function(e,t){var n;return A.isValidElement(e)?n=A.cloneElement(e,t):Be(e)?n=e(t):n=A.createElement(cN,yj({},t,{className:"recharts-reference-area-rect"})),n});function a$(e){return ALe(e)||CLe(e)||NLe(e)||TLe()}function TLe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 631In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function NLe(e,t){if(e){if(typeof e=="string")return xj(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return xj(e,t)}}function CLe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function ALe(e){if(Array.isArray(e))return xj(e)}function xj(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var bj=function(t,n,r,i,s){var a=ns(t,pN),o=ns(t,jb),l=[].concat(a$(a),a$(o)),u=ns(t,Eb),d="".concat(i,"Id"),h=i[0],f=n;if(l.length&&(f=l.reduce(function(m,y){if(y.props[d]===r&&is(y.props,"extendDomain")&&le(y.props[h])){var v=y.props[h];return[Math.min(m[0],v),Math.max(m[1],v)]}return m},f)),u.length){var p="".concat(h,"1"),g="".concat(h,"2");f=u.reduce(function(m,y){if(y.props[d]===r&&is(y.props,"extendDomain")&&le(y.props[p])&&le(y.props[g])){var v=y.props[p],x=y.props[g];return[Math.min(m[0],v,x),Math.max(m[1],v,x)]}return m},f)}return s&&s.length&&(f=s.reduce(function(m,y){return le(y)?[Math.min(m[0],y),Math.max(m[1],y)]:m},f)),f},vU={exports:{}};(function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1));function i(l,u,d){this.fn=l,this.context=u,this.once=d||!1}function s(l,u,d,h,f){if(typeof d!="function")throw new TypeError("The listener must be a function");var p=new i(d,h||l,f),g=n?n+u:u;return l._events[g]?l._events[g].fn?l._events[g]=[l._events[g],p]:l._events[g].push(p):(l._events[g]=p,l._eventsCount++),l}function a(l,u){--l._eventsCount===0?l._events=new r:delete l._events[u]}function o(){this._events=new r,this._eventsCount=0}o.prototype.eventNames=function(){var u=[],d,h;if(this._eventsCount===0)return u;for(h in d=this._events)t.call(d,h)&&u.push(n?h.slice(1):h);return Object.getOwnPropertySymbols?u.concat(Object.getOwnPropertySymbols(d)):u},o.prototype.listeners=function(u){var d=n?n+u:u,h=this._events[d];if(!h)return[];if(h.fn)return[h.fn];for(var f=0,p=h.length,g=new Array(p);f<p;f++)g[f]=h[f].fn;return g},o.prototype.listenerCount=function(u){var d=n?n+u:u,h=this._events[d];return h?h.fn?1:h.length:0},o.prototype.emit=function(u,d,h,f,p,g){var m=n?n+u:u;if(!this._events[m])return!1;var y=this._events[m],v=arguments.length,x,b;if(y.fn){switch(y.once&&this.removeListener(u,y.fn,void 0,!0),v){case 1:return y.fn.call(y.context),!0;case 2:return y.fn.call(y.context,d),!0;case 3:return y.fn.call(y.context,d,h),!0;case 4:return y.fn.call(y.context,d,h,f),!0;case 5:return y.fn.call(y.context,d,h,f,p),!0;case 6:return y.fn.call(y.context,d,h,f,p,g),!0}for(b=1,x=new Array(v-1);b<v;b++)x[b-1]=arguments[b];y.fn.apply(y.context,x)}else{var S=y.length,k;for(b=0;b<S;b++)switch(y[b].once&&this.removeListener(u,y[b].fn,void 0,!0),v){case 1:y[b].fn.call(y[b].context);break;case 2:y[b].fn.call(y[b].context,d);break;case 3:y[b].fn.call(y[b].context,d,h);break;case 4:y[b].fn.call(y[b].context,d,h,f);break;default:if(!x)for(k=1,x=new Array(v-1);k<v;k++)x[k-1]=arguments[k];y[b].fn.apply(y[b].context,x)}}return!0},o.prototype.on=function(u,d,h){return s(this,u,d,h,!1)},o.prototype.once=function(u,d,h){return s(this,u,d,h,!0)},o.prototype.removeListener=function(u,d,h,f){var p=n?n+u:u;if(!this._events[p])return this;if(!d)return a(this,p),this;var g=this._events[p];if(g.fn)g.fn===d&&(!f||g.once)&&(!h||g.context===h)&&a(this,p);else{for(var m=0,y=[],v=g.length;m<v;m++)(g[m].fn!==d||f&&!g[m].once||h&&g[m].context!==h)&&y.push(g[m]);y.length?this._events[p]=y.length===1?y[0]:y:a(this,p)}return this},o.prototype.removeAllListeners=function(u){var d;return u?(d=n?n+u:u,this._events[d]&&a(this,d)):(this._events=new r,this._eventsCount=0),this},o.prototype.off=o.prototype.removeListener,o.prototype.addListener=o.prototype.on,o.prefixed=n,o.EventEmitter=o,e.exports=o})(vU);var PLe=vU.exports;const OLe=tt(PLe);var Nw=new OLe,Cw="recharts.syncMouseEvents";function up(e){"@babel/helpers - typeof";return up=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},up(e)}function RLe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ILe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,xU(r.key),r)}}function MLe(e,t,n){return t&&ILe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Aw(e,t,n){return t=xU(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xU(e){var t=$Le(e,"string");return up(t)=="symbol"?t:t+""}function $Le(e,t){if(up(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(up(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var DLe=function(){function e(){RLe(this,e),Aw(this,"activeIndex",0),Aw(this,"coordinateList",[]),Aw(this,"layout","horizontal")}return MLe(e,[{key:"setDetails",value:function(n){var r,i=n.coordinateList,s=i===void 0?null:i,a=n.container,o=a===void 0?null:a,l=n.layout,u=l===void 0?null:l,d=n.offset,h=d===void 0?null:d,f=n.mouseHandlerCallback,p=f===void 0?null:f;this.coordinateList=(r=s??this.coordinateList)!==null&&r!==void 0?r:[],this.container=o??this.container,this.layout=u??this.layout,this.offset=h??this.offset,this.mouseHandlerCallback=p??this.mouseHandlerCallback,this.activeIndex=Math.min(Math.max(this.activeIndex,0),this.coordinateList.length-1)}},{key:"focus",value:function(){this.spoofMouse()}},{key:"keyboardEvent",value:function(n){if(this.coordinateList.length!==0)switch(n.key){case"ArrowRight":{if(this.layout!=="horizontal")return;this.activeIndex=Math.min(this.activeIndex+1,this.coordinateList.length-1),this.spoofMouse();break}case"ArrowLeft":{if(this.layout!=="horizontal")return;this.activeIndex=Math.max(this.activeIndex-1,0),this.spoofMouse();break}}}},{key:"setIndex",value:function(n){this.activeIndex=n}},{key:"spoofMouse",value:function(){var n,r;if(this.layout==="horizontal"&&this.coordinateList.length!==0){var i=this.container.getBoundingClientRect(),s=i.x,a=i.y,o=i.height,l=this.coordinateList[this.activeIndex].coordinate,u=((n=window)===null||n===void 0?void 0:n.scrollX)||0,d=((r=window)===null||r===void 0?void 0:r.scrollY)||0,h=s+l+u,f=a+this.offset.top+o/2+d;this.mouseHandlerCallback({pageX:h,pageY:f})}}}])}();function LLe(e,t,n){if(n==="number"&&t===!0&&Array.isArray(e)){var r=e==null?void 0:e[0],i=e==null?void 0:e[1];if(r&&i&&le(r)&&le(i))return!0}return!1}function FLe(e,t,n,r){var i=r/2;return{stroke:"none",fill:"#ccc",x:e==="horizontal"?t.x-i:n.left+.5,y:e==="horizontal"?n.top+.5:t.y-i,width:e==="horizontal"?r:n.width-1,height:e==="horizontal"?n.height-1:r}}function bU(e){var t=e.cx,n=e.cy,r=e.radius,i=e.startAngle,s=e.endAngle,a=yt(t,n,r,i),o=yt(t,n,r,s);return{points:[a,o],cx:t,cy:n,radius:r,startAngle:i,endAngle:s}}function BLe(e,t,n){var r,i,s,a;if(e==="horizontal")r=t.x,s=r,i=n.top,a=n.top+n.height;else if(e==="vertical")i=t.y,a=i,r=n.left,s=n.left+n.width;else if(t.cx!=null&&t.cy!=null)if(e==="centric"){var o=t.cx,l=t.cy,u=t.innerRadius,d=t.outerRadius,h=t.angle,f=yt(o,l,u,h),p=yt(o,l,d,h);r=f.x,i=f.y,s=p.x,a=p.y}else return bU(t);return[{x:r,y:i},{x:s,y:a}]}function dp(e){"@babel/helpers - typeof";return dp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},dp(e)}function o$(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function tg(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?o$(Object(n),!0).forEach(function(r){VLe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o$(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function VLe(e,t,n){return t=qLe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qLe(e){var t=ULe(e,"string");return dp(t)=="symbol"?t:t+""}function ULe(e,t){if(dp(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(dp(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function WLe(e){var t,n,r=e.element,i=e.tooltipEventType,s=e.isActive,a=e.activeCoordinate,o=e.activePayload,l=e.offset,u=e.activeTooltipIndex,d=e.tooltipAxisBandSize,h=e.layout,f=e.chartName,p=(t=r.props.cursor)!==null&&t!==void 0?t:(n=r.type.defaultProps)===null||n===void 0?void 0:n.cursor;if(!r||!p||!s||!a||f!=="ScatterChart"&&i!=="axis")return null;var g,m=XS;if(f==="ScatterChart")g=a,m=JIe;else if(f==="BarChart")g=FLe(h,a,l,d),m=cN;else if(h==="radial"){var y=bU(a),v=y.cx,x=y.cy,b=y.radius,S=y.startAngle,k=y.endAngle;g={cx:v,cy:x,startAngle:S,endAngle:k,innerRadius:b,outerRadius:b},m=fv}else g={points:BLe(h,a,l)},m=XS;var j=tg(tg(tg(tg({stroke:"#ccc",pointerEvents:"none"},l),g),Fe(p,!1)),{},{payload:o,payloadIndex:u,className:Ye("recharts-tooltip-cursor",p.className)});return w.isValidElement(p)?w.cloneElement(p,j):w.createElement(m,j)}var zLe=["item"],HLe=["children","className","width","height","style","compact","title","desc"];function Wu(e){"@babel/helpers - typeof";return Wu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Wu(e)}function Cc(){return Cc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Cc.apply(this,arguments)}function l$(e,t){return YLe(e)||GLe(e,t)||kU(e,t)||KLe()}function KLe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 632In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function GLe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,a,o=[],l=!0,u=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(l=(r=s.call(n)).done)&&(o.push(r.value),o.length!==t);l=!0);}catch(d){u=!0,i=d}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return o}}function YLe(e){if(Array.isArray(e))return e}function c$(e,t){if(e==null)return{};var n=XLe(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function XLe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function QLe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ZLe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,SU(r.key),r)}}function JLe(e,t,n){return t&&ZLe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function e4e(e,t,n){return t=Cv(t),t4e(e,wU()?Reflect.construct(t,n||[],Cv(e).constructor):t.apply(e,n))}function t4e(e,t){if(t&&(Wu(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return n4e(e)}function n4e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function wU(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(wU=function(){return!!e})()}function Cv(e){return Cv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Cv(e)}function r4e(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&wj(e,t)}function wj(e,t){return wj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},wj(e,t)}function zu(e){return a4e(e)||s4e(e)||kU(e)||i4e()}function i4e(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 633In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function kU(e,t){if(e){if(typeof e=="string")return kj(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return kj(e,t)}}function s4e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function a4e(e){if(Array.isArray(e))return kj(e)}function kj(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function u$(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function H(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?u$(Object(n),!0).forEach(function(r){je(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u$(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function je(e,t,n){return t=SU(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function SU(e){var t=o4e(e,"string");return Wu(t)=="symbol"?t:t+""}function o4e(e,t){if(Wu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Wu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var l4e={xAxis:["bottom","top"],yAxis:["left","right"]},c4e={width:"100%",height:"100%"},jU={x:0,y:0};function ng(e){return e}var u4e=function(t,n){return n==="horizontal"?t.x:n==="vertical"?t.y:n==="centric"?t.angle:t.radius},d4e=function(t,n,r,i){var s=n.find(function(d){return d&&d.index===r});if(s){if(t==="horizontal")return{x:s.coordinate,y:i.y};if(t==="vertical")return{x:i.x,y:s.coordinate};if(t==="centric"){var a=s.coordinate,o=i.radius;return H(H(H({},i),yt(i.cx,i.cy,o,a)),{},{angle:a,radius:o})}var l=s.coordinate,u=i.angle;return H(H(H({},i),yt(i.cx,i.cy,l,u)),{},{angle:u,radius:l})}return jU},Tb=function(t,n){var r=n.graphicalItems,i=n.dataStartIndex,s=n.dataEndIndex,a=(r??[]).reduce(function(o,l){var u=l.props.data;return u&&u.length?[].concat(zu(o),zu(u)):o},[]);return a.length>0?a:t&&t.length&&le(i)&&le(s)?t.slice(i,s+1):[]};function _U(e){return e==="number"?[0,"auto"]:void 0}var Sj=function(t,n,r,i){var s=t.graphicalItems,a=t.tooltipAxis,o=Tb(n,t);return r<0||!s||!s.length||r>=o.length?null:s.reduce(function(l,u){var d,h=(d=u.props.data)!==null&&d!==void 0?d:n;h&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=r&&(h=h.slice(t.dataStartIndex,t.dataEndIndex+1));var f;if(a.dataKey&&!a.allowDuplicatedCategory){var p=h===void 0?o:h;f=nS(p,a.dataKey,i)}else f=h&&h[r]||o[r];return f?[].concat(zu(l),[LPe(u,f)]):l},[])},d$=function(t,n,r,i){var s=i||{x:t.chartX,y:t.chartY},a=u4e(s,r),o=t.orderedTooltipTicks,l=t.tooltipAxis,u=t.tooltipTicks,d=kPe(a,o,u,l);if(d>=0&&u){var h=u[d]&&u[d].value,f=Sj(t,n,d,h),p=d4e(r,o,d,s);return{activeTooltipIndex:d,activeLabel:h,activePayload:f,activeCoordinate:p}}return null},h4e=function(t,n){var r=n.axes,i=n.graphicalItems,s=n.axisType,a=n.axisIdKey,o=n.stackGroups,l=n.dataStartIndex,u=n.dataEndIndex,d=t.layout,h=t.children,f=t.stackOffset,p=Oq(d,s);return r.reduce(function(g,m){var y,v=m.type.defaultProps!==void 0?H(H({},m.type.defaultProps),m.props):m.props,x=v.type,b=v.dataKey,S=v.allowDataOverflow,k=v.allowDuplicatedCategory,j=v.scale,_=v.ticks,E=v.includeHidden,T=v[a];if(g[T])return g;var N=Tb(t.data,{graphicalItems:i.filter(function(q){var X,J=a in q.props?q.props[a]:(X=q.type.defaultProps)===null||X===void 0?void 0:X[a];return J===T}),dataStartIndex:l,dataEndIndex:u}),P=N.length,C,M,R;LLe(v.domain,S,x)&&(C=WS(v.domain,null,S),p&&(x==="number"||j!=="auto")&&(R=$h(N,b,"category")));var D=_U(x);if(!C||C.length===0){var L,B=(L=v.domain)!==null&&L!==void 0?L:D;if(b){if(C=$h(N,b,x),x==="category"&&p){var I=dxe(C);k&&I?(M=C,C=Sv(0,P)):k||(C=zI(B,C,m).reduce(function(q,X){return q.indexOf(X)>=0?q:[].concat(zu(q),[X])},[]))}else if(x==="category")k?C=C.filter(function(q){return q!==""&&!Ke(q)}):C=zI(B,C,m).reduce(function(q,X){return q.indexOf(X)>=0||X===""||Ke(X)?q:[].concat(zu(q),[X])},[]);else if(x==="number"){var O=TPe(N,i.filter(function(q){var X,J,xe=a in q.props?q.props[a]:(X=q.type.defaultProps)===null||X===void 0?void 0:X[a],ke="hide"in q.props?q.props.hide:(J=q.type.defaultProps)===null||J===void 0?void 0:J.hide;return xe===T&&(E||!ke)}),b,s,d);O&&(C=O)}p&&(x==="number"||j!=="auto")&&(R=$h(N,b,"category"))}else p?C=Sv(0,P):o&&o[T]&&o[T].hasStack&&x==="number"?C=f==="expand"?[0,1]:Rq(o[T].stackGroups,l,u):C=Pq(N,i.filter(function(q){var X=a in q.props?q.props[a]:q.type.defaultProps[a],J="hide"in q.props?q.props.hide:q.type.defaultProps.hide;return X===T&&(E||!J)}),x,d,!0);if(x==="number")C=bj(h,C,T,s,_),B&&(C=WS(B,C,S));else if(x==="category"&&B){var V=B,z=C.every(function(q){return V.indexOf(q)>=0});z&&(C=V)}}return H(H({},g),{},je({},T,H(H({},v),{},{axisType:s,domain:C,categoricalDomain:R,duplicateDomain:M,originalDomain:(y=v.domain)!==null&&y!==void 0?y:D,isCategorical:p,layout:d})))},{})},f4e=function(t,n){var r=n.graphicalItems,i=n.Axis,s=n.axisType,a=n.axisIdKey,o=n.stackGroups,l=n.dataStartIndex,u=n.dataEndIndex,d=t.layout,h=t.children,f=Tb(t.data,{graphicalItems:r,dataStartIndex:l,dataEndIndex:u}),p=f.length,g=Oq(d,s),m=-1;return r.reduce(function(y,v){var x=v.type.defaultProps!==void 0?H(H({},v.type.defaultProps),v.props):v.props,b=x[a],S=_U("number");if(!y[b]){m++;var k;return g?k=Sv(0,p):o&&o[b]&&o[b].hasStack?(k=Rq(o[b].stackGroups,l,u),k=bj(h,k,b,s)):(k=WS(S,Pq(f,r.filter(function(j){var _,E,T=a in j.props?j.props[a]:(_=j.type.defaultProps)===null||_===void 0?void 0:_[a],N="hide"in j.props?j.props.hide:(E=j.type.defaultProps)===null||E===void 0?void 0:E.hide;return T===b&&!N}),"number",d),i.defaultProps.allowDataOverflow),k=bj(h,k,b,s)),H(H({},y),{},je({},b,H(H({axisType:s},i.defaultProps),{},{hide:!0,orientation:Ci(l4e,"".concat(s,".").concat(m%2),null),domain:k,originalDomain:S,isCategorical:g,layout:d})))}return y},{})},p4e=function(t,n){var r=n.axisType,i=r===void 0?"xAxis":r,s=n.AxisComp,a=n.graphicalItems,o=n.stackGroups,l=n.dataStartIndex,u=n.dataEndIndex,d=t.children,h="".concat(i,"Id"),f=ns(d,s),p={};return f&&f.length?p=h4e(t,{axes:f,graphicalItems:a,axisType:i,axisIdKey:h,stackGroups:o,dataStartIndex:l,dataEndIndex:u}):a&&a.length&&(p=f4e(t,{Axis:s,graphicalItems:a,axisType:i,axisIdKey:h,stackGroups:o,dataStartIndex:l,dataEndIndex:u})),p},m4e=function(t){var n=oc(t),r=dh(n,!1,!0);return{tooltipTicks:r,orderedTooltipTicks:RT(r,function(i){return i.coordinate}),tooltipAxis:n,tooltipAxisBandSize:zS(n,r)}},h$=function(t){var n=t.children,r=t.defaultShowTooltip,i=Dr(n,Bu),s=0,a=0;return t.data&&t.data.length!==0&&(a=t.data.length-1),i&&i.props&&(i.props.startIndex>=0&&(s=i.props.startIndex),i.props.endIndex>=0&&(a=i.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:s,dataEndIndex:a,activeTooltipIndex:-1,isTooltipActive:!!r}},g4e=function(t){return!t||!t.length?!1:t.some(function(n){var r=As(n&&n.type);return r&&r.indexOf("Bar")>=0})},f$=function(t){return t==="horizontal"?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:t==="vertical"?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:t==="centric"?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},y4e=function(t,n){var r=t.props,i=t.graphicalItems,s=t.xAxisMap,a=s===void 0?{}:s,o=t.yAxisMap,l=o===void 0?{}:o,u=r.width,d=r.height,h=r.children,f=r.margin||{},p=Dr(h,Bu),g=Dr(h,Wc),m=Object.keys(l).reduce(function(k,j){var _=l[j],E=_.orientation;return!_.mirror&&!_.hide?H(H({},k),{},je({},E,k[E]+_.width)):k},{left:f.left||0,right:f.right||0}),y=Object.keys(a).reduce(function(k,j){var _=a[j],E=_.orientation;return!_.mirror&&!_.hide?H(H({},k),{},je({},E,Ci(k,"".concat(E))+_.height)):k},{top:f.top||0,bottom:f.bottom||0}),v=H(H({},y),m),x=v.bottom;p&&(v.bottom+=p.props.height||Bu.defaultProps.height),g&&n&&(v=_Pe(v,i,r,n));var b=u-v.left-v.right,S=d-v.top-v.bottom;return H(H({brushBottom:x},v),{},{width:Math.max(b,0),height:Math.max(S,0)})},v4e=function(t,n){if(n==="xAxis")return t[n].width;if(n==="yAxis")return t[n].height},x4e=function(t){var n=t.chartName,r=t.GraphicalChild,i=t.defaultTooltipEventType,s=i===void 0?"axis":i,a=t.validateTooltipEventTypes,o=a===void 0?["axis"]:a,l=t.axisComponents,u=t.legendContent,d=t.formatAxisMap,h=t.defaultProps,f=function(v,x){var b=x.graphicalItems,S=x.stackGroups,k=x.offset,j=x.updateId,_=x.dataStartIndex,E=x.dataEndIndex,T=v.barSize,N=v.layout,P=v.barGap,C=v.barCategoryGap,M=v.maxBarSize,R=f$(N),D=R.numericAxisName,L=R.cateAxisName,B=g4e(b),I=[];return b.forEach(function(O,V){var z=Tb(v.data,{graphicalItems:[O],dataStartIndex:_,dataEndIndex:E}),q=O.type.defaultProps!==void 0?H(H({},O.type.defaultProps),O.props):O.props,X=q.dataKey,J=q.maxBarSize,xe=q["".concat(D,"Id")],ke=q["".concat(L,"Id")],Y={},ce=l.reduce(function(Vt,on){var xn=x["".concat(on.axisType,"Map")],ds=q["".concat(on.axisType,"Id")];xn&&xn[ds]||on.axisType==="zAxis"||Ru();var hs=xn[ds];return H(H({},Vt),{},je(je({},on.axisType,hs),"".concat(on.axisType,"Ticks"),dh(hs)))},Y),K=ce[L],Q=ce["".concat(L,"Ticks")],G=S&&S[xe]&&S[xe].hasStack&&$Pe(O,S[xe].stackGroups),F=As(O.type).indexOf("Bar")>=0,ue=zS(K,Q),ae=[],Ae=B&&SPe({barSize:T,stackGroups:S,totalSize:v4e(ce,L)});if(F){var Ie,Ge,jt=Ke(J)?M:J,_t=(Ie=(Ge=zS(K,Q,!0))!==null&&Ge!==void 0?Ge:jt)!==null&&Ie!==void 0?Ie:0;ae=jPe({barGap:P,barCategoryGap:C,bandSize:_t!==ue?_t:ue,sizeList:Ae[ke],maxBarSize:jt}),_t!==ue&&(ae=ae.map(function(Vt){return H(H({},Vt),{},{position:H(H({},Vt.position),{},{offset:Vt.position.offset-_t/2})})}))}var vn=O&&O.type&&O.type.getComposedData;vn&&I.push({props:H(H({},vn(H(H({},ce),{},{displayedData:z,props:v,dataKey:X,item:O,bandSize:ue,barPosition:ae,offset:k,stackedData:G,layout:N,dataStartIndex:_,dataEndIndex:E}))),{},je(je(je({key:O.key||"item-".concat(V)},D,ce[D]),L,ce[L]),"animationId",j)),childIndex:kxe(O,v.children),item:O})}),I},p=function(v,x){var b=v.props,S=v.dataStartIndex,k=v.dataEndIndex,j=v.updateId;if(!FO({props:b}))return null;var _=b.children,E=b.layout,T=b.stackOffset,N=b.data,P=b.reverseStackOrder,C=f$(E),M=C.numericAxisName,R=C.cateAxisName,D=ns(_,r),L=IPe(N,D,"".concat(M,"Id"),"".concat(R,"Id"),T,P),B=l.reduce(function(q,X){var J="".concat(X.axisType,"Map");return H(H({},q),{},je({},J,p4e(b,H(H({},X),{},{graphicalItems:D,stackGroups:X.axisType===M&&L,dataStartIndex:S,dataEndIndex:k}))))},{}),I=y4e(H(H({},B),{},{props:b,graphicalItems:D}),x==null?void 0:x.legendBBox);Object.keys(B).forEach(function(q){B[q]=d(b,B[q],I,q.replace("Map",""),n)});var O=B["".concat(R,"Map")],V=m4e(O),z=f(b,H(H({},B),{},{dataStartIndex:S,dataEndIndex:k,updateId:j,graphicalItems:D,stackGroups:L,offset:I}));return H(H({formattedGraphicalItems:z,graphicalItems:D,offset:I,stackGroups:L},V),B)},g=function(y){function v(x){var b,S,k;return QLe(this,v),k=e4e(this,v,[x]),je(k,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),je(k,"accessibilityManager",new DLe),je(k,"handleLegendBBoxUpdate",function(j){if(j){var _=k.state,E=_.dataStartIndex,T=_.dataEndIndex,N=_.updateId;k.setState(H({legendBBox:j},p({props:k.props,dataStartIndex:E,dataEndIndex:T,updateId:N},H(H({},k.state),{},{legendBBox:j}))))}}),je(k,"handleReceiveSyncEvent",function(j,_,E){if(k.props.syncId===j){if(E===k.eventEmitterSymbol&&typeof k.props.syncMethod!="function")return;k.applySyncEvent(_)}}),je(k,"handleBrushChange",function(j){var _=j.startIndex,E=j.endIndex;if(_!==k.state.dataStartIndex||E!==k.state.dataEndIndex){var T=k.state.updateId;k.setState(function(){return H({dataStartIndex:_,dataEndIndex:E},p({props:k.props,dataStartIndex:_,dataEndIndex:E,updateId:T},k.state))}),k.triggerSyncEvent({dataStartIndex:_,dataEndIndex:E})}}),je(k,"handleMouseEnter",function(j){var _=k.getMouseInfo(j);if(_){var E=H(H({},_),{},{isTooltipActive:!0});k.setState(E),k.triggerSyncEvent(E);var T=k.props.onMouseEnter;Be(T)&&T(E,j)}}),je(k,"triggeredAfterMouseMove",function(j){var _=k.getMouseInfo(j),E=_?H(H({},_),{},{isTooltipActive:!0}):{isTooltipActive:!1};k.setState(E),k.triggerSyncEvent(E);var T=k.props.onMouseMove;Be(T)&&T(E,j)}),je(k,"handleItemMouseEnter",function(j){k.setState(function(){return{isTooltipActive:!0,activeItem:j,activePayload:j.tooltipPayload,activeCoordinate:j.tooltipPosition||{x:j.cx,y:j.cy}}})}),je(k,"handleItemMouseLeave",function(){k.setState(function(){return{isTooltipActive:!1}})}),je(k,"handleMouseMove",function(j){j.persist(),k.throttleTriggeredAfterMouseMove(j)}),je(k,"handleMouseLeave",function(j){k.throttleTriggeredAfterMouseMove.cancel();var _={isTooltipActive:!1};k.setState(_),k.triggerSyncEvent(_);var E=k.props.onMouseLeave;Be(E)&&E(_,j)}),je(k,"handleOuterEvent",function(j){var _=wxe(j),E=Ci(k.props,"".concat(_));if(_&&Be(E)){var T,N;/.*touch.*/i.test(_)?N=k.getMouseInfo(j.changedTouches[0]):N=k.getMouseInfo(j),E((T=N)!==null&&T!==void 0?T:{},j)}}),je(k,"handleClick",function(j){var _=k.getMouseInfo(j);if(_){var E=H(H({},_),{},{isTooltipActive:!0});k.setState(E),k.triggerSyncEvent(E);var T=k.props.onClick;Be(T)&&T(E,j)}}),je(k,"handleMouseDown",function(j){var _=k.props.onMouseDown;if(Be(_)){var E=k.getMouseInfo(j);_(E,j)}}),je(k,"handleMouseUp",function(j){var _=k.props.onMouseUp;if(Be(_)){var E=k.getMouseInfo(j);_(E,j)}}),je(k,"handleTouchMove",function(j){j.changedTouches!=null&&j.changedTouches.length>0&&k.throttleTriggeredAfterMouseMove(j.changedTouches[0])}),je(k,"handleTouchStart",function(j){j.changedTouches!=null&&j.changedTouches.length>0&&k.handleMouseDown(j.changedTouches[0])}),je(k,"handleTouchEnd",function(j){j.changedTouches!=null&&j.changedTouches.length>0&&k.handleMouseUp(j.changedTouches[0])}),je(k,"handleDoubleClick",function(j){var _=k.props.onDoubleClick;if(Be(_)){var E=k.getMouseInfo(j);_(E,j)}}),je(k,"handleContextMenu",function(j){var _=k.props.onContextMenu;if(Be(_)){var E=k.getMouseInfo(j);_(E,j)}}),je(k,"triggerSyncEvent",function(j){k.props.syncId!==void 0&&Nw.emit(Cw,k.props.syncId,j,k.eventEmitterSymbol)}),je(k,"applySyncEvent",function(j){var _=k.props,E=_.layout,T=_.syncMethod,N=k.state.updateId,P=j.dataStartIndex,C=j.dataEndIndex;if(j.dataStartIndex!==void 0||j.dataEndIndex!==void 0)k.setState(H({dataStartIndex:P,dataEndIndex:C},p({props:k.props,dataStartIndex:P,dataEndIndex:C,updateId:N},k.state)));else if(j.activeTooltipIndex!==void 0){var M=j.chartX,R=j.chartY,D=j.activeTooltipIndex,L=k.state,B=L.offset,I=L.tooltipTicks;if(!B)return;if(typeof T=="function")D=T(I,j);else if(T==="value"){D=-1;for(var O=0;O<I.length;O++)if(I[O].value===j.activeLabel){D=O;break}}var V=H(H({},B),{},{x:B.left,y:B.top}),z=Math.min(M,V.x+V.width),q=Math.min(R,V.y+V.height),X=I[D]&&I[D].value,J=Sj(k.state,k.props.data,D),xe=I[D]?{x:E==="horizontal"?I[D].coordinate:z,y:E==="horizontal"?q:I[D].coordinate}:jU;k.setState(H(H({},j),{},{activeLabel:X,activeCoordinate:xe,activePayload:J,activeTooltipIndex:D}))}else k.setState(j)}),je(k,"renderCursor",function(j){var _,E=k.state,T=E.isTooltipActive,N=E.activeCoordinate,P=E.activePayload,C=E.offset,M=E.activeTooltipIndex,R=E.tooltipAxisBandSize,D=k.getTooltipEventType(),L=(_=j.props.active)!==null&&_!==void 0?_:T,B=k.props.layout,I=j.key||"_recharts-cursor";return A.createElement(WLe,{key:I,activeCoordinate:N,activePayload:P,activeTooltipIndex:M,chartName:n,element:j,isActive:L,layout:B,offset:C,tooltipAxisBandSize:R,tooltipEventType:D})}),je(k,"renderPolarAxis",function(j,_,E){var T=Ci(j,"type.axisType"),N=Ci(k.state,"".concat(T,"Map")),P=j.type.defaultProps,C=P!==void 0?H(H({},P),j.props):j.props,M=N&&N[C["".concat(T,"Id")]];return w.cloneElement(j,H(H({},M),{},{className:Ye(T,M.className),key:j.key||"".concat(_,"-").concat(E),ticks:dh(M,!0)}))}),je(k,"renderPolarGrid",function(j){var _=j.props,E=_.radialLines,T=_.polarAngles,N=_.polarRadius,P=k.state,C=P.radiusAxisMap,M=P.angleAxisMap,R=oc(C),D=oc(M),L=D.cx,B=D.cy,I=D.innerRadius,O=D.outerRadius;return w.cloneElement(j,{polarAngles:Array.isArray(T)?T:dh(D,!0).map(function(V){return V.coordinate}),polarRadius:Array.isArray(N)?N:dh(R,!0).map(function(V){return V.coordinate}),cx:L,cy:B,innerRadius:I,outerRadius:O,key:j.key||"polar-grid",radialLines:E})}),je(k,"renderLegend",function(){var j=k.state.formattedGraphicalItems,_=k.props,E=_.children,T=_.width,N=_.height,P=k.props.margin||{},C=T-(P.left||0)-(P.right||0),M=Cq({children:E,formattedGraphicalItems:j,legendWidth:C,legendContent:u});if(!M)return null;var R=M.item,D=c$(M,zLe);return w.cloneElement(R,H(H({},D),{},{chartWidth:T,chartHeight:N,margin:P,onBBoxUpdate:k.handleLegendBBoxUpdate}))}),je(k,"renderTooltip",function(){var j,_=k.props,E=_.children,T=_.accessibilityLayer,N=Dr(E,xs);if(!N)return null;var P=k.state,C=P.isTooltipActive,M=P.activeCoordinate,R=P.activePayload,D=P.activeLabel,L=P.offset,B=(j=N.props.active)!==null&&j!==void 0?j:C;return w.cloneElement(N,{viewBox:H(H({},L),{},{x:L.left,y:L.top}),active:B,label:D,payload:B?R:[],coordinate:M,accessibilityLayer:T})}),je(k,"renderBrush",function(j){var _=k.props,E=_.margin,T=_.data,N=k.state,P=N.offset,C=N.dataStartIndex,M=N.dataEndIndex,R=N.updateId;return w.cloneElement(j,{key:j.key||"_recharts-brush",onChange:Xm(k.handleBrushChange,j.props.onChange),data:T,x:le(j.props.x)?j.props.x:P.left,y:le(j.props.y)?j.props.y:P.top+P.height+P.brushBottom-(E.bottom||0),width:le(j.props.width)?j.props.width:P.width,startIndex:C,endIndex:M,updateId:"brush-".concat(R)})}),je(k,"renderReferenceElement",function(j,_,E){if(!j)return null;var T=k,N=T.clipPathId,P=k.state,C=P.xAxisMap,M=P.yAxisMap,R=P.offset,D=j.type.defaultProps||{},L=j.props,B=L.xAxisId,I=B===void 0?D.xAxisId:B,O=L.yAxisId,V=O===void 0?D.yAxisId:O;return w.cloneElement(j,{key:j.key||"".concat(_,"-").concat(E),xAxis:C[I],yAxis:M[V],viewBox:{x:R.left,y:R.top,width:R.width,height:R.height},clipPathId:N})}),je(k,"renderActivePoints",function(j){var _=j.item,E=j.activePoint,T=j.basePoint,N=j.childIndex,P=j.isRange,C=[],M=_.props.key,R=_.item.type.defaultProps!==void 0?H(H({},_.item.type.defaultProps),_.item.props):_.item.props,D=R.activeDot,L=R.dataKey,B=H(H({index:N,dataKey:L,cx:E.x,cy:E.y,r:4,fill:lN(_.item),strokeWidth:2,stroke:"#fff",payload:E.payload,value:E.value},Fe(D,!1)),Ly(D));return C.push(v.renderActiveDot(D,B,"".concat(M,"-activePoint-").concat(N))),T?C.push(v.renderActiveDot(D,H(H({},B),{},{cx:T.x,cy:T.y}),"".concat(M,"-basePoint-").concat(N))):P&&C.push(null),C}),je(k,"renderGraphicChild",function(j,_,E){var T=k.filterFormatItem(j,_,E);if(!T)return null;var N=k.getTooltipEventType(),P=k.state,C=P.isTooltipActive,M=P.tooltipAxis,R=P.activeTooltipIndex,D=P.activeLabel,L=k.props.children,B=Dr(L,xs),I=T.props,O=I.points,V=I.isRange,z=I.baseLine,q=T.item.type.defaultProps!==void 0?H(H({},T.item.type.defaultProps),T.item.props):T.item.props,X=q.activeDot,J=q.hide,xe=q.activeBar,ke=q.activeShape,Y=!!(!J&&C&&B&&(X||xe||ke)),ce={};N!=="axis"&&B&&B.props.trigger==="click"?ce={onClick:Xm(k.handleItemMouseEnter,j.props.onClick)}:N!=="axis"&&(ce={onMouseLeave:Xm(k.handleItemMouseLeave,j.props.onMouseLeave),onMouseEnter:Xm(k.handleItemMouseEnter,j.props.onMouseEnter)});var K=w.cloneElement(j,H(H({},T.props),ce));function Q(on){return typeof M.dataKey=="function"?M.dataKey(on.payload):null}if(Y)if(R>=0){var G,F;if(M.dataKey&&!M.allowDuplicatedCategory){var ue=typeof M.dataKey=="function"?Q:"payload.".concat(M.dataKey.toString());G=nS(O,ue,D),F=V&&z&&nS(z,ue,D)}else G=O==null?void 0:O[R],F=V&&z&&z[R];if(ke||xe){var ae=j.props.activeIndex!==void 0?j.props.activeIndex:R;return[w.cloneElement(j,H(H(H({},T.props),ce),{},{activeIndex:ae})),null,null]}if(!Ke(G))return[K].concat(zu(k.renderActivePoints({item:T,activePoint:G,basePoint:F,childIndex:R,isRange:V})))}else{var Ae,Ie=(Ae=k.getItemByXY(k.state.activeCoordinate))!==null&&Ae!==void 0?Ae:{graphicalItem:K},Ge=Ie.graphicalItem,jt=Ge.item,_t=jt===void 0?j:jt,vn=Ge.childIndex,Vt=H(H(H({},T.props),ce),{},{activeIndex:vn});return[w.cloneElement(_t,Vt),null,null]}return V?[K,null,null]:[K,null]}),je(k,"renderCustomized",function(j,_,E){return w.cloneElement(j,H(H({key:"recharts-customized-".concat(E)},k.props),k.state))}),je(k,"renderMap",{CartesianGrid:{handler:ng,once:!0},ReferenceArea:{handler:k.renderReferenceElement},ReferenceLine:{handler:ng},ReferenceDot:{handler:k.renderReferenceElement},XAxis:{handler:ng},YAxis:{handler:ng},Brush:{handler:k.renderBrush,once:!0},Bar:{handler:k.renderGraphicChild},Line:{handler:k.renderGraphicChild},Area:{handler:k.renderGraphicChild},Radar:{handler:k.renderGraphicChild},RadialBar:{handler:k.renderGraphicChild},Scatter:{handler:k.renderGraphicChild},Pie:{handler:k.renderGraphicChild},Funnel:{handler:k.renderGraphicChild},Tooltip:{handler:k.renderCursor,once:!0},PolarGrid:{handler:k.renderPolarGrid,once:!0},PolarAngleAxis:{handler:k.renderPolarAxis},PolarRadiusAxis:{handler:k.renderPolarAxis},Customized:{handler:k.renderCustomized}}),k.clipPathId="".concat((b=x.id)!==null&&b!==void 0?b:Qx("recharts"),"-clip"),k.throttleTriggeredAfterMouseMove=N8(k.triggeredAfterMouseMove,(S=x.throttleDelay)!==null&&S!==void 0?S:1e3/60),k.state={},k}return r4e(v,y),JLe(v,[{key:"componentDidMount",value:function(){var b,S;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(b=this.props.margin.left)!==null&&b!==void 0?b:0,top:(S=this.props.margin.top)!==null&&S!==void 0?S:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var b=this.props,S=b.children,k=b.data,j=b.height,_=b.layout,E=Dr(S,xs);if(E){var T=E.props.defaultIndex;if(!(typeof T!="number"||T<0||T>this.state.tooltipTicks.length-1)){var N=this.state.tooltipTicks[T]&&this.state.tooltipTicks[T].value,P=Sj(this.state,k,T,N),C=this.state.tooltipTicks[T].coordinate,M=(this.state.offset.top+j)/2,R=_==="horizontal",D=R?{x:C,y:M}:{y:C,x:M},L=this.state.formattedGraphicalItems.find(function(I){var O=I.item;return O.type.name==="Scatter"});L&&(D=H(H({},D),L.props.points[T].tooltipPosition),P=L.props.points[T].tooltipPayload);var B={activeTooltipIndex:T,isTooltipActive:!0,activeLabel:N,activePayload:P,activeCoordinate:D};this.setState(B),this.renderCursor(E),this.accessibilityManager.setIndex(T)}}}},{key:"getSnapshotBeforeUpdate",value:function(b,S){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==S.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==b.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==b.margin){var k,j;this.accessibilityManager.setDetails({offset:{left:(k=this.props.margin.left)!==null&&k!==void 0?k:0,top:(j=this.props.margin.top)!==null&&j!==void 0?j:0}})}return null}},{key:"componentDidUpdate",value:function(b){sS([Dr(b.children,xs)],[Dr(this.props.children,xs)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var b=Dr(this.props.children,xs);if(b&&typeof b.props.shared=="boolean"){var S=b.props.shared?"axis":"item";return o.indexOf(S)>=0?S:s}return s}},{key:"getMouseInfo",value:function(b){if(!this.container)return null;var S=this.container,k=S.getBoundingClientRect(),j=XTe(k),_={chartX:Math.round(b.pageX-j.left),chartY:Math.round(b.pageY-j.top)},E=k.width/S.offsetWidth||1,T=this.inRange(_.chartX,_.chartY,E);if(!T)return null;var N=this.state,P=N.xAxisMap,C=N.yAxisMap,M=this.getTooltipEventType(),R=d$(this.state,this.props.data,this.props.layout,T);if(M!=="axis"&&P&&C){var D=oc(P).scale,L=oc(C).scale,B=D&&D.invert?D.invert(_.chartX):null,I=L&&L.invert?L.invert(_.chartY):null;return H(H({},_),{},{xValue:B,yValue:I},R)}return R?H(H({},_),R):null}},{key:"inRange",value:function(b,S){var k=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,j=this.props.layout,_=b/k,E=S/k;if(j==="horizontal"||j==="vertical"){var T=this.state.offset,N=_>=T.left&&_<=T.left+T.width&&E>=T.top&&E<=T.top+T.height;return N?{x:_,y:E}:null}var P=this.state,C=P.angleAxisMap,M=P.radiusAxisMap;if(C&&M){var R=oc(C);return GI({x:_,y:E},R)}return null}},{key:"parseEventsOfWrapper",value:function(){var b=this.props.children,S=this.getTooltipEventType(),k=Dr(b,xs),j={};k&&S==="axis"&&(k.props.trigger==="click"?j={onClick:this.handleClick}:j={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 _=Ly(this.props,this.handleOuterEvent);return H(H({},_),j)}},{key:"addListener",value:function(){Nw.on(Cw,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){Nw.removeListener(Cw,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(b,S,k){for(var j=this.state.formattedGraphicalItems,_=0,E=j.length;_<E;_++){var T=j[_];if(T.item===b||T.props.key===b.key||S===As(T.item.type)&&k===T.childIndex)return T}return null}},{key:"renderClipPath",value:function(){var b=this.clipPathId,S=this.state.offset,k=S.left,j=S.top,_=S.height,E=S.width;return A.createElement("defs",null,A.createElement("clipPath",{id:b},A.createElement("rect",{x:k,y:j,height:_,width:E})))}},{key:"getXScales",value:function(){var b=this.state.xAxisMap;return b?Object.entries(b).reduce(function(S,k){var j=l$(k,2),_=j[0],E=j[1];return H(H({},S),{},je({},_,E.scale))},{}):null}},{key:"getYScales",value:function(){var b=this.state.yAxisMap;return b?Object.entries(b).reduce(function(S,k){var j=l$(k,2),_=j[0],E=j[1];return H(H({},S),{},je({},_,E.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(b){var S;return(S=this.state.xAxisMap)===null||S===void 0||(S=S[b])===null||S===void 0?void 0:S.scale}},{key:"getYScaleByAxisId",value:function(b){var S;return(S=this.state.yAxisMap)===null||S===void 0||(S=S[b])===null||S===void 0?void 0:S.scale}},{key:"getItemByXY",value:function(b){var S=this.state,k=S.formattedGraphicalItems,j=S.activeItem;if(k&&k.length)for(var _=0,E=k.length;_<E;_++){var T=k[_],N=T.props,P=T.item,C=P.type.defaultProps!==void 0?H(H({},P.type.defaultProps),P.props):P.props,M=As(P.type);if(M==="Bar"){var R=(N.data||[]).find(function(I){return RIe(b,I)});if(R)return{graphicalItem:T,payload:R}}else if(M==="RadialBar"){var D=(N.data||[]).find(function(I){return GI(b,I)});if(D)return{graphicalItem:T,payload:D}}else if(wb(T,j)||kb(T,j)||op(T,j)){var L=k$e({graphicalItem:T,activeTooltipItem:j,itemData:C.data}),B=C.activeIndex===void 0?L:C.activeIndex;return{graphicalItem:H(H({},T),{},{childIndex:B}),payload:op(T,j)?C.data[L]:T.props.data[L]}}}return null}},{key:"render",value:function(){var b=this;if(!FO(this))return null;var S=this.props,k=S.children,j=S.className,_=S.width,E=S.height,T=S.style,N=S.compact,P=S.title,C=S.desc,M=c$(S,HLe),R=Fe(M,!1);if(N)return A.createElement(ZM,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},A.createElement(oS,Cc({},R,{width:_,height:E,title:P,desc:C}),this.renderClipPath(),VO(k,this.renderMap)));if(this.props.accessibilityLayer){var D,L;R.tabIndex=(D=this.props.tabIndex)!==null&&D!==void 0?D:0,R.role=(L=this.props.role)!==null&&L!==void 0?L:"application",R.onKeyDown=function(I){b.accessibilityManager.keyboardEvent(I)},R.onFocus=function(){b.accessibilityManager.focus()}}var B=this.parseEventsOfWrapper();return A.createElement(ZM,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},A.createElement("div",Cc({className:Ye("recharts-wrapper",j),style:H({position:"relative",curs
633or:"default",width:_,height:E},T)},B,{ref:function(O){b.container=O}}),A.createElement(oS,Cc({},R,{width:_,height:E,title:P,desc:C,style:c4e}),this.renderClipPath(),VO(k,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])}(w.Component);je(g,"displayName",n),je(g,"defaultProps",H({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},h)),je(g,"getDerivedStateFromProps",function(y,v){var x=y.dataKey,b=y.data,S=y.children,k=y.width,j=y.height,_=y.layout,E=y.stackOffset,T=y.margin,N=v.dataStartIndex,P=v.dataEndIndex;if(v.updateId===void 0){var C=h$(y);return H(H(H({},C),{},{updateId:0},p(H(H({props:y},C),{},{updateId:0}),v)),{},{prevDataKey:x,prevData:b,prevWidth:k,prevHeight:j,prevLayout:_,prevStackOffset:E,prevMargin:T,prevChildren:S})}if(x!==v.prevDataKey||b!==v.prevData||k!==v.prevWidth||j!==v.prevHeight||_!==v.prevLayout||E!==v.prevStackOffset||!rS(T,v.prevMargin)){var M=h$(y),R={chartX:v.chartX,chartY:v.chartY,isTooltipActive:v.isTooltipActive},D=H(H({},d$(v,b,_)),{},{updateId:v.updateId+1}),L=H(H(H({},M),R),D);return H(H(H({},L),p(H({props:y},L),v)),{},{prevDataKey:x,prevData:b,prevWidth:k,prevHeight:j,prevLayout:_,prevStackOffset:E,prevMargin:T,prevChildren:S})}if(!sS(S,v.prevChildren)){var B,I,O,V,z=Dr(S,Bu),q=z&&(B=(I=z.props)===null||I===void 0?void 0:I.startIndex)!==null&&B!==void 0?B:N,X=z&&(O=(V=z.props)===null||V===void 0?void 0:V.endIndex)!==null&&O!==void 0?O:P,J=q!==N||X!==P,xe=!Ke(b),ke=xe&&!J?v.updateId:v.updateId+1;return H(H({updateId:ke},p(H(H({props:y},v),{},{updateId:ke,dataStartIndex:q,dataEndIndex:X}),v)),{},{prevChildren:S,dataStartIndex:q,dataEndIndex:X})}return null}),je(g,"renderActiveDot",function(y,v,x){var b;return w.isValidElement(y)?b=w.cloneElement(y,v):Be(y)?b=y(v):b=A.createElement(uN,v),A.createElement(Bt,{className:"recharts-active-dot",key:x},b)});var m=w.forwardRef(function(v,x){return A.createElement(g,Cc({},v,{ref:x}))});return m.displayName=g.displayName,m},b4e=x4e({chartName:"PieChart",GraphicalChild:ea,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:bb},{axisType:"radiusAxis",AxisComp:vb}],formatAxisMap:KPe,defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}});const w4e={"bg-primary":"hsl(var(--primary))","bg-muted-foreground":"hsl(var(--muted-foreground))","bg-destructive":"hsl(var(--destructive))","bg-accent":"hsl(var(--accent))"},k4e=e=>{const{cx:t,cy:n,innerRadius:r,outerRadius:i,startAngle:s,endAngle:a,fill:o,payload:l,percent:u}=e;return c.jsxs("g",{children:[c.jsx(fv,{cx:t,cy:n,innerRadius:r-5,outerRadius:i+10,startAngle:s,endAngle:a,fill:o,style:{filter:"drop-shadow(0 4px 12px rgba(0,0,0,0.2))"}}),c.jsx(fv,{cx:t,cy:n,innerRadius:r-2,outerRadius:r,startAngle:s,endAngle:a,fill:o})]})},S4e=({data:e,centerLabel:t="Quality of Life"})=>{const[n,r]=w.useState(null),[i,s]=w.useState(!1),a=e.map(d=>({...d,colorValue:w4e[d.color]||d.color})),o=e.filter(d=>d.label.includes("improved")).reduce((d,h)=>d+h.value,0),l=(d,h)=>{r(h)},u=()=>{r(null)};return c.jsxs(U.div,{className:"relative",initial:{opacity:0,scale:.9},whileInView:{opacity:1,scale:1},transition:{duration:.8},viewport:{once:!0},onViewportEnter:()=>s(!0),children:[c.jsxs("div",{className:"relative h-[300px] md:h-[350px]",children:[c.jsx(UTe,{width:"100%",height:"100%",children:c.jsx(b4e,{children:c.jsx(ea,{data:a,cx:"50%",cy:"50%",innerRadius:70,outerRadius:110,paddingAngle:3,dataKey:"value",animationBegin:0,animationDuration:1500,animationEasing:"ease-out",onMouseEnter:l,onMouseLeave:u,activeIndex:n!==null?n:void 0,activeShape:k4e,children:a.map((d,h)=>c.jsx(MT,{fill:d.colorValue,style:{cursor:"pointer",transition:"all 0.3s ease",opacity:n!==null&&n!==h?.5:1}},`cell-${h}`))})})}),c.jsx("div",{className:"absolute inset-0 flex items-center justify-center pointer-events-none",children:c.jsx(Ka,{mode:"wait",children:n!==null?c.jsxs(U.div,{className:"text-center",initial:{opacity:0,scale:.8}
633,animate:{opacity:1,scale:1},exit:{opacity:0,scale:.8},transition:{duration:.2},children:[c.jsxs("div",{className:"text-3xl font-bold text-foreground",children:[a[n].value,"%"]}),c.jsx("div",{className:"text-sm text-muted-foreground max-w-[100px]",children:a[n].label})]},n):c.jsxs(U.div,{className:"text-center",initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.8},transition:{duration:.2},children:[c.jsxs(U.div,{className:"text-4xl font-bold text-primary",initial:{scale:0},animate:i?{scale:1}:{scale:0},transition:{delay:.8,type:"spring",stiffness:200},children:[o,"%"]}),c.jsx("div",{className:"text-sm text-muted-foreground",children:"Improved"})]},"default")})})]}),c.jsx("div",{className:"mt-6 grid grid-cols-2 gap-3",children:a.map((d,h)=>c.jsxs(U.div,{className:`flex items-center gap-2 p-2 rounded-lg cursor-pointer transition-all ${n===h?"bg-muted":"hover:bg-muted/50"}`,onMouseEnter:()=>r(h),onMouseLeave:()=>r(null),initial:{opacity:0,x:-20},whileInView:{opacity:1,x:0},transition:{delay:.5+h*.1},viewport:{once:!0},children:[c.jsx("div",{className:"w-3 h-3 rounded-full flex-shrink-0",style:{backgroundColor:d.colorValue}}),c.jsx("div",{className:"flex-1 min-w-0",children:c.jsx("span",{className:"text-sm text-foreground truncate block",children:d.label})}),c.jsxs("span",{className:"text-sm font-medium text-muted-foreground",children:[d.value,"%"]})]},h))})]})},j4e=({percentage:e,text:t,quote:n,index:r})=>{const i=r%2===0;return c.jsxs(U.div,{className:"bg-muted rounded-xl p-6 relative overflow-hidden group",initial:{opacity:0,x:i?-60:60,rotateY:i?-5:5},whileInView:{opacity:1,x:0,rotateY:0},transition:{duration:.7,delay:r*.15,ease:[.25,.46,.45,.94]},viewport:{once:!0,margin:"-50px"},whileHover:{scale:1.02,y:-3},children:[c.jsx(U.div,{className:"absolute top-0 right-0 w-24 h-24 bg-primary/5 rounded-full -translate-y-1/2 translate-x-1/2",initial:{scale:0},whileInView:{scale:1},transition:{delay:.3+r*.15,duration:.5},viewport:{once:!0}}),c.jsx(U.div,{className:"absolute top-4 right-4 opacity-10",initial:{opacity:0,rotate:-20},whileInView:{opacity:.1,rotate:0},transition:{delay:.4+r*.15},viewport:{once:!0},children:c.jsx(nx,{className:"w-12 h-12 text-primary"})}),c.jsxs("div",{className:"relative z-10",children:[c.jsxs("div",{className:"flex items-center gap-3 mb-3",children:[c.jsxs(U.div,{className:"text-2xl font-bold text-primary",initial:{scale:0},whileInView:{scale:1},transition:{delay:.2+r*.15,type:"spring",stiffness:300},viewport:{once:!0},children:[e,"%"]}),c.jsx(U.span,{className:"text-foreground font-medium",initial:{opacity:0}
633,whileInView:{opacity:1},transition:{delay:.3+r*.15},viewport:{once:!0},children:t})]}),c.jsxs(U.p,{className:"text-muted-foreground text-sm italic leading-relaxed",initial:{opacity:0,y:10},whileInView:{opacity:1,y:0},transition:{delay:.4+r*.15},viewport:{once:!0},children:['"',n,'"']}),c.jsx(U.div,{className:"absolute bottom-0 left-0 h-0.5 bg-primary/30 rounded-full",initial:{width:0},whileHover:{width:"100%"},transition:{duration:.3}})]})]})},Pn=({children:e,className:t="",delay:n=0})=>{const r=w.useRef(null),i=J6(r,{once:!0,margin:"-50px"});return c.jsx(U.div,{ref:r,initial:{opacity:0,y:60},animate:i?{opacity:1,y:0}:{opacity:0,y:60},transition:{duration:.8,delay:n,ease:"easeOut"},className:t,children:e})},_4e=()=>{const{t:e}=St(),{scrollYProgress:t}=Wae(),n=Dk(t,[0,.15],[1,0]),r=Dk(t,[0,.15],[1,.95]),i=[{value:48,suffix:"%",label:e("impactReport.stats.manageFinances.label"),icon:$4,workerQuote:e("impactReport.stats.manageFinances.quote")},{value:64,suffix:"%",label:e("impactReport.stats.emergencies.label"),icon:R4,workerQuote:e("impactReport.stats.emergencies.quote")},{value:63,suffix:"%",label:e("impactReport.stats.qualityOfLife.label"),icon:P_,workerQuote:e("impactReport.stats.qualityOfLife.quote")},{value:52,suffix:"%",label:e("impactReport.stats.reducedStress.label"),icon:Za,workerQuote:e("impactReport.stats.reducedStress.quote")}],s=[{value:"10+",label:e("impactReport.methodology.companies"),icon:Lc},{value:"270",label:e("impactReport.methodology.responses"),icon:Za},{value:"40",label:e("impactReport.methodology.minutes"),icon:Ol},{value:"16",label:e("impactReport.methodology.weeks"),icon:A_}],a=[{category:e("impactReport.demographics.categories.household"),mentions:208,percentage:77},{category:e("impactReport.demographics.categories.work"),mentions:65,percentage:24},{category:e("impactReport.demographics.categories.emergency"),mentions:49,percentage:18},{category:e("impactReport.demographics.categories.personal"),mentions:19,percentage:7}],o=[{quote:e("impactReport.testimonials.factoryWorker.quote"),author:e("impactReport.testimonials.factoryWorker.author"),location:e("impactReport.testimonials.factoryWorker.location"),age:30,gender:"Female",image:Eme},{quote:e("impactReport.testimonials.securityGuard.quote"),author:e("impactReport.testimonials.securityGuard.author"),location:e("impactReport.testimonials.securityGuard.location"),age:54,gender:"Male",image:_me},{quote:e("impactReport.testimonials.gardener.quote"),author:e("impactReport.testimonials.gardener.author"),location:e("impactReport.testimonials.gardener.location"),age:55,gender:"Female",image:Tme},{quote:e("impactReport.testimonials.busDriver.quote"),author:e("impactReport.testimonials.busDriver.author"),location:e("impactReport.testimonials.busDriver.location"),age:39,gender:"Male",image:Nme}],l=[{label:e("impactReport.qualityOfLife.chartLabels.veryImproved"),value:27,color:"bg-primary"},{label:e("impactReport.qualityOfLife.chartLabels.slightlyImproved"),value:36,color:"bg-primary"},{label:e("impactReport.qualityOfLife.chartLabels.noChange"),value:36,color:"bg-muted-foreground"},{label:e("impactReport.qualityOfLife.chartLabels.slightlyWorse"),value:1,color:"bg-destructive"}],u=[{id:"intro",label:e("impactReport.nav.intro")},{id:"methodology",label:e("impactReport.nav.methodology")},{id:"demographics",label:e("impactReport.nav.demographics")},{id:"quality",label:e("impactReport.nav.quality")},{id:"loyalty",label:e("impactReport.nav.loyalty")},{id:"voices",label:e("impactReport.nav.voices")}],[d,h]=w.useState("intro");return w.useEffect(()=>{const f=()=>{const p=u.map(m=>document.getElementById(m.id)),g=window.scrollY+window.innerHeight/3;for(let m=p.length-1;m>=0;m--){const y=p[m];if(y&&y.offsetTop<=g){h(u[m].id);break}}};return window.addEventListener("scroll",f),()=>window.removeEventListener("scroll",f)},[]),c.jsxs("div",{className:"min-h-screen bg-background",children:[c.jsx(hr,{title:"Impact Report â How Ekko Improves Worker Financial Health",description:"See the measurable impact of earned wage access on Vietnamese workers, validated by the ILO and 60 Decibels. Read Ekko's latest impact report.",path:"/impact-report"}),c.jsx(fn,{isOverlay:!0}),c.jsx(U.div,{className:"fixed top-0 left-0 right-0 h-1 bg-accent z-50 origin-left",style:{scaleX:t}}),c.jsx("nav",{className:"fixed right-6 top-1/2 -translate-y-1/2 z-40 hidden lg:block",children:c.jsx("div",{className:"bg-beyond-blue/95 backdrop-blur-md rounded-full py-4 px-2.5 shadow-2xl border border-white/10",children:c.jsx("div",{className:"flex flex-col items-center gap-3",children:u.map(f=>c.jsxs("a",{href:`#${f.id}`,className:"group relative flex items-center","aria-label":f.label,children:[c.jsx("span",{className:"absolute right-full mr-4 px-3 py-1.5 rounded-lg bg-beyond-blue text-white text-xs font-medium whitespace-nowrap opacity-0 group-hover:opacity-100 transition-opacity duration-200 pointer-events-none shadow-lg border border-white/10",children:f.label}),c.jsx("span",{className:`block w-2.5 h-2.5 rounded-full transition-all duration-300 ${d===f.id?"bg-accent scale-125 shadow-[0_0_8px_rgba(205,248,54,0.6)]":"bg-white/40 group-hover:bg-white/70 group-hover:scale-110"}`})]},f.id))})})}),c.jsxs(U.section,{id:"intro",className:"relative min-h-screen flex items-center justify-center bg-beyond-blue overflow-hidden pt-20",style:{opacity:n,scale:r},children:[c.jsxs("div",{className:"absolute inset-0 overflow-hidden",children:[c.jsx(U.div,{className:"absolute top-20 left-10 w-72 h-72 bg-accent/10 rounded-full blur-3xl",animate:{x:[0,50,0],y:[0,30,0]},transition:{duration:10,repeat:1/0}}),c.jsx(U.div,{className:"absolute bottom-20 right-10 w-96 h-96 bg-primary/10 rounded-full blur-3xl",animate:{x:[0,-30,0],y:[0,-50,0]},transition:{duration:12,repeat:1/0}})]}),c.jsxs("div",{className:"relative z-10 max-w-6xl mx-auto px-6 py-20 grid lg:grid-cols-2 gap-12 items-center",children:[c.jsxs(U.div,{initial:{opacity:0,x:-50}
633,animate:{opacity:1,x:0},transition:{duration:.8},children:[c.jsxs(U.div,{className:"inline-flex items-center gap-2 px-4 py-2 rounded-full bg-accent/20 text-accent text-sm font-medium mb-6",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.3},children:[c.jsx(M4,{className:"w-4 h-4"}),e("impactReport.hero.badge")]}),c.jsxs(U.h1,{className:"text-4xl md:text-5xl lg:text-6xl font-bold text-white mb-6 leading-tight",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.4},children:[e("impactReport.hero.title"),c.jsx("span",{className:"text-accent block",children:e("impactReport.hero.titleAccent")})]}),c.jsx(U.p,{className:"text-white/70 text-lg md:text-xl max-w-lg",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.5},children:e("impactReport.hero.description")})]}),c.jsxs(U.div,{className:"relative flex justify-center",initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.8,delay:.3},children:[c.jsx("div",{className:"absolute -inset-8 bg-accent/15 rounded-3xl blur-3xl"}),c.jsxs("div",{className:"relative",children:[c.jsx("div",{className:"absolute inset-0 bg-black/30 rounded-lg blur-xl translate-y-4 scale-95"}),c.jsx("img",{src:tB,alt:"2024 EWA Impact Report",className:"relative w-full max-w-sm h-auto rounded-lg shadow-2xl"})]})]})]}),c.jsx(U.div,{className:"absolute bottom-8 left-1/2 -translate-x-1/2",animate:{y:[0,10,0]},transition:{duration:2,repeat:1/0},children:c.jsx(pu,{className:"w-8 h-8 text-white/50"})})]}),c.jsx("section",{className:"py-20 bg-background",children:c.jsxs("div",{className:"max-w-6xl mx-auto px-6",children:[c.jsx(Pn,{children:c.jsxs("div",{className:"max-w-3xl mx-auto text-center mb-16",children:[c.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-foreground mb-6",children:e("impactReport.summary.title")}),c.jsx("p",{className:"text-muted-foreground text-lg leading-relaxed",children:e("impactReport.summary.description")})]})}),c.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-4 gap-6",children:i.map((f,p)=>c.jsx(Ame,{value:f.value,suffix:f.suffix,label:f.label,icon:f.icon,workerQuote:f.workerQuote,index:p},p))})]})}),c.jsx("section",{id:"methodology",className:"py-20 bg-muted",children:c.jsxs("div",{className:"max-w-6xl mx-auto px-6",children:[c.jsxs(Pn,{children:[c.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[c.jsx("div",{className:"w-12 h-1 bg-primary rounded-full"}),c.jsx("span",{className:"text-primary font-medium",children:e("impactReport.methodology.label")})]}),c.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-foreground mb-6",children:e("impactReport.methodology.title")}),c.jsx("p",{className:"text-muted-foreground text-lg max-w-2xl mb-12",children:e("impactReport.methodology.description")})]}),c.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-4 gap-6 mb-12",children:s.map((f,p)=>c.jsx(Pn,{delay:p*.1,children:c.jsxs("div",{className:"bg-background rounded-xl p-6 border border-border",children:[c.jsx("div",{className:"w-10 h-10 rounded-lg bg-primary/10 flex items-center justify-center mb-4",children:c.jsx(f.icon,{className:"w-5 h-5 text-primary"})}),c.jsx("div",{className:"text-3xl font-bold text-foreground mb-1",children:f.value}),c.jsx("p",{className:"text-muted-foreground text-sm",children:f.label})]})},p))}),c.jsx(Pn,{delay:.4,children:c.jsxs("div",{className:"bg-background rounded-2xl p-8 border border-border",children:[c.jsx("p",{className:"text-center text-sm text-muted-foreground mb-6 font-medium",children:e("impactReport.methodology.partners")}),c.jsxs("div",{className:"flex flex-wrap items-center justify-center gap-8 md:gap-12",children:[c.jsx("img",{src:kme,alt:"International Labour Organization - Global Centre on Digital Wages for Decent Work",className:"h-12 md:h-16 w-auto object-contain"}),c.jsx("div",{className:"w-px h-12 bg-border hidden md:block"}),c.jsx("img",{src:Sme,alt:"60 Decibels",className:"h-10 md:h-12 w-auto object-contain"}),c.jsx("div",{className:"w-px h-12 bg-border hidden md:block"}),c.jsx("img",{src:jme,alt:"Bill & Melinda Gates Foundation",className:"h-8 md:h-10 w-auto object-contain"})]})]})})]})}),c.jsx("section",{id:"demographics",className:"py-20 bg-background",children:c.jsxs("div",{className:"max-w-6xl mx-auto px-6",children:[c.jsxs(Pn,{children:[c.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[c.jsx("div",{className:"w-12 h-1 bg-primary rounded-full"}),c.jsx("span",{className:"text-primary font-medium",children:e("impactReport.demographics.label")})]}),c.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-foreground mb-12",children:e("impactReport.demographics.title")})]}),c.jsxs("div",{className:"grid lg:grid-cols-2 gap-12 items-center",children:[c.jsx(Pn,{children:c.jsxs("div",{className:"bg-beyond-blue rounded-2xl p-8 text-white",children:[c.jsx("div",{className:"text-6xl font-bold text-accent mb-2",children:"75%"}),c.jsx("p",{className:"text-white/80 text-lg mb-8",children:e("impactReport.demographics.monthlyUsage")}),c.jsxs("div",{className:"grid grid-cols-3 gap-4 pt-6 border-t border-white/10",children:[c.jsxs("div",{children:[c.jsx("div",{className:"text-3xl font-bold text-white",children:"270"}),c.jsx("p",{className:"text-white/60 text-sm",children:e("impactReport.demographics.respondents")})]}),c.jsxs("div",{children:[c.jsx("div",{className:"text-3xl font-bold text-white",children:"34"}),c.jsx("p",{className:"text-white/60 text-sm",children:e("impactReport.demographics.medianAge")})]}),c.jsxs("div",{children:[c.jsx("div",{className:"text-3xl font-bold text-white",children:"4"}),c.jsx("p",{className:"text-white/60 text-sm",children:e("impactReport.demographics.householdSize")})]})]})]})}),c.jsxs(Pn,{delay:.2,children:[c.jsx("h3",{className:"text-xl font-semibold text-foreground mb-6",children:e("impactReport.demographics.purposeTitle")}),c.jsx("div",{className:"space-y-4",children:a.map((f,p)=>c.jsxs(U.div,{initial:{opacity:0,x:20},whileInView:{opacity:1,x:0},transition:{delay:p*.1},viewport:{once:!0},children:[c.jsxs("div",{className:"flex justify-between items-center mb-2",children:[c.jsx("span",{className:"font-medium text-foreground",children:f.category}),c.jsxs("span",{className:"text-muted-foreground text-sm",children:[f.mentions," ",e("impactReport.demographics.mentions")]})]}),c.jsx("div",{className:"h-3 bg-muted rounded-full overflow-hidden",children:c.jsx(U.div,{className:"h-full bg-gradient-to-r from-primary to-accent rounded-full",initial:{width:0},whileInView:{width:`${f.percentage}%`},transition:{duration:1,delay:p*.1},viewport:{once:!0}})})]},p))})]})]}),c.jsx(Pn,{delay:.3,className:"mt-12",children:c.jsx("div",{className:"bg-primary/10 border border-primary/20 rounded-2xl p-8",children:c.jsxs("div",{className:"flex items-start gap-4",children:[c.jsx("div",{className:"w-12 h-12 rounded-xl bg-primary/20 flex items-center justify-center flex-shrink-0",children:c.jsx(ny,{className:"w-6 h-6 text-primary"})}),c.jsxs("div",{children:[c.jsx("div",{className:"text-4xl font-bold text-primary mb-2",children:"87%"}),c.jsx("p",{className:"text-foreground font-medium mb-2",children:e("impactReport.demographics.relyOnEkko")}),c.jsx("p",{className:"text-muted-foreground",children:e("impactReport.demographics.relyDescription")})]})]})})})]})}),c.jsx("section",{id:"quality",className:"py-20 bg-background",children:c.jsx("div",{className:"max-w-6xl mx-auto px-6",children:c.jsxs("div",{className:"grid lg:grid-cols-2 gap-12 items-center",children:[c.jsxs("div",{children:[c.jsxs(Pn,{children:[c.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[c.jsx("div",{className:"w-12 h-1 bg-primary rounded-full"}),c.jsx("span",{className:"text-primary font-medium",children:e("impactReport.qualityOfLife.label")})]}),c.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-foreground mb-6",children:e("impactReport.qualityOfLife.title")}),c.jsx("p",{className:"text-muted-foreground text-lg mb-8",children:e("impactReport.qualityOfLife.description")})]}),c.jsx(S4e,{data:l})]}),c.jsx("div",{className:"space-y-6",children:[{percentage:34,text:e("impactReport.qualityOfLife.reasons.emergency.text"),quote:e("impactReport.qualityOfLife.reasons.emergency.quote")},{percentage:37,text:e("impactReport.qualityOfLife.reasons.cashFlow.text"),quote:e("impactReport.qualityOfLife.reasons.cashFlow.quote")},{percentage:28,text:e("impactReport.qualityOfLife.reasons.stress.text"),quote:e("impactReport.qualityOfLife.reasons.stress.quote")}].map((f,p)=>c.jsx(j4e,{percentage:f.percentage,text:f.text,quote:f.quote,index:
633p},p))})]})})}),c.jsx("section",{id:"loyalty",className:"py-20 bg-muted",children:c.jsxs("div",{className:"max-w-6xl mx-auto px-6",children:[c.jsx(Pn,{children:c.jsxs("div",{className:"text-center mb-16",children:[c.jsxs("div",{className:"flex items-center justify-center gap-3 mb-4",children:[c.jsx("div",{className:"w-12 h-1 bg-primary rounded-full"}),c.jsx("span",{className:"text-primary font-medium",children:e("impactReport.loyalty.label")}),c.jsx("div",{className:"w-12 h-1 bg-primary rounded-full"})]}),c.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-foreground mb-4",children:e("impactReport.loyalty.title")})]})}),c.jsxs("div",{className:"grid md:grid-cols-2 gap-8",children:[c.jsx(Pn,{children:c.jsxs("div",{className:"bg-background rounded-2xl p-8 border border-border h-full",children:[c.jsx("h3",{className:"text-xl font-semibold text-foreground mb-4",children:e("impactReport.loyalty.jobImportance.title")}),c.jsxs("div",{className:"flex items-end gap-4 mb-6",children:[c.jsx("div",{className:"text-6xl font-bold text-primary",children:"7.9"}),c.jsx("div",{className:"text-muted-foreground pb-2",children:e("impactReport.loyalty.jobImportance.score")})]}),c.jsx("p",{className:"text-muted-foreground",children:e("impactReport.loyalty.jobImportance.description")})]})}),c.jsx(Pn,{delay:.2,children:c.jsxs("div",{className:"bg-background rounded-2xl p-8 border border-border h-full",children:[c.jsx("h3",{className:"text-xl font-semibold text-foreground mb-4",children:e("impactReport.loyalty.relationship.title")}),c.jsxs("div",{className:"flex items-end gap-4 mb-6",children:[c.jsx("div",{className:"text-6xl font-bold text-primary",children:"57%"}),c.jsx("div",{className:"text-muted-foreground pb-2",children:e("impactReport.loyalty.relationship.label")})]}),c.jsx("p",{className:"text-muted-foreground",children:e("impactReport.loyalty.relationship.description")})]})})]}),c.jsx(Pn,{delay:.3,className:"mt-8",children:c.jsxs("div",{className:"bg-primary/10 rounded-2xl p-8 border border-primary/20",children:[c.jsx(nx,{className:"w-10 h-10 text-primary mb-4"}),c.jsxs("p",{className:"text-lg text-foreground italic mb-4",children:['"',e("impactReport.loyalty.quote"),'"']}),c.jsx("p",{className:"text-muted-foreground",children:e("impactReport.loyalty.quoteAuthor")})]})})]})}),c.jsx("section",{id:"voices",className:"py-20 bg-background",children:c.jsxs("div",{className:"max-w-6xl mx-auto px-6",children:[c.jsx(Pn,{children:c.jsxs("div",{className:"text-center mb-12",children:[c.jsxs("div",{className:"flex items-center justify-center gap-3 mb-4",children:[c.jsx("div",{className:"w-12 h-1 bg-primary rounded-full"}),c.jsx("span",{className:"text-primary font-medium",children:e("impactReport.voices.label")}),c.jsx("div",{className:"w-12 h-1 bg-primary rounded-full"})]}),c.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-foreground mb-4",children:e("impactReport.voices.title")}),c.jsx("p",{className:"text-muted-foreground max-w-2xl mx-auto",children:e("impactReport.voices.description")})]})}),c.jsx(Pme,{testimonials:o})]})}),c.jsx("section",{className:"py-20 bg-muted",children:c.jsx("div",{className:"max-w-6xl mx-auto px-6",children:c.jsx(Pn,{children:c.jsxs("div",{className:"grid lg:grid-cols-2 gap-12 items-center",children:[c.jsxs("div",{children:[c.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[c.jsx("div",{className:"w-12 h-1 bg-primary rounded-full"}),c.jsx("span",{className:"text-primary font-medium",children:e("impactReport.trust.label")})]}),c.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-foreground mb-6",children:e("impactReport.trust.title")}),c.jsxs("div",{className:"space-y-6",children:[c.jsxs("div",{className:"flex items-center gap-4",children:[c.jsx("div",{className:"text-4xl font-bold text-primary",children:"93%"}),c.jsx("p",{className:"text-muted-foreground",children:e("impactReport.trust.transparency")})]}),c.jsxs("div",{className:"flex items-center gap-4",children:[c.jsx("div",{className:"text-4xl font-bold text-primary",children:"97%"}),c.jsx("p",{className:"text-muted-foreground",children:e("impactReport.trust.timeliness")})]}),c.jsxs("div",{className:"flex items-center gap-4",children:[c.jsx("div",{className:"text-4xl font-bold text-primary",children:"8%"}),c.jsx("p",{className:"text-muted-foreground",children:e("impactReport.trust.challenges")})]})]})]}),c.jsxs("div",{className:"relative",children:[c.jsxs("div",{className:"aspect-[4/3] rounded-2xl overflow-hidden",children:[c.jsx("img",{src:wme,alt:"Worker testimonial",className:"w-full h-full object-cover object-[center_25%]"}),c.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/60 to-transparent"})]}),c.jsxs("div",{className:"absolute bottom-6 left-6 right-6 text-white",children:[c.jsxs("p",{className:"text-lg italic mb-2",children:['"',e("impactReport.trust.quote"),'"']}),c.jsx("p",{className:"text-white/70 text-sm",children:e("impactReport.trust.quoteAuthor")})]})]})]})})})}),c.jsx("section",{className:"py-20 bg-beyond-blue",children:c.jsx("div",{className:"max-w-4xl mx-auto px-6 text-center",children:c.jsxs(Pn,{children:[c.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-white mb-6",children:e("impactReport.cta.title")}),c.jsx("p",{className:"text-white/70 text-lg mb-8",children:e("impactReport.cta.description")}),c.jsxs(U.a,{href:"/for-business#contact",className:"inline-flex items-center gap-2 px-8 py-4 bg-accent text-accent-foreground rounded-full font-semibold text-lg hover:bg-accent/90 transition-colors",whileHover:{scale:1.05},whileTap:{scale:.95},children:[e("impactReport.cta.button"),c.jsx(Ls,{className:"w-5 h-5"})]})]})})}),c.jsx(pn,{})]})},Pw=6,E4e=()=>{const{t:e,i18n:t}=St(),[n,r]=w.useState("all"),[i,s]=w.useState(1),{data:a=[],isLoading:o}=dn({queryKey:["news-articles"],queryFn:async()=>{const{data:g,error:m}=await ne.from("news_articles").select("id, slug, title, title_vi, description, description_vi, image_url, category, published_at, created_at").eq("published",!0).order("published_at",{ascending:!1,nullsFirst:!1});if(m)throw m;return g}}),l=n==="all"?a:a.filter(g=>g.category===n),u=g=>{r(g),s(1)},d=Math.ceil(l.length/Pw),h=(i-1)*Pw,f=l.slice(h,h+Pw),p=g=>{s(g),window.scrollTo({top:400,behavior:"smooth"})};return c.jsxs("div",{className:"min-h-screen bg-background",children:[c.jsx(hr,{title:"News & Press â Ekko in the Media",description:"Read the latest news, press coverage, and announcements from Ekko as we expand earned wage access and financial wellness across Southeast Asia.",path:"/news"}),c.jsx(fn,{isOverlay:!0}),c.jsxs("section",{className:"bg-primary px-6 pt-32 pb-20 md:px-12 lg:px-16 relative overflow-hidden",children:[c.jsx("svg",{className:"absolute left-0 top-1/2 -translate-y-1/2 w-24 md:w-32 h-auto opacity-50",viewBox:"0 0 100 300",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:c.jsx("path",{d:"M-20 0 Q 80 150, -20 300",stroke:"hsl(75 70% 55%)",strokeWidth:"3",fill:"none"})}),c.jsx("div",{className:"max-w-7xl mx-auto relative z-10",children:c.jsxs("div",{className:"grid lg:grid-cols-12 gap-8",children:[c.jsx("div",{className:"lg:col-span-2",children:c.jsx("span",{className:"text-primary-foreground
633/70 text-sm font-medium tracking-wider",children:e("news.label","BLOG")})}),c.jsxs("div",{className:"lg:col-span-10",children:[c.jsx("h1",{className:"text-3xl md:text-4xl lg:text-5xl xl:text-6xl font-semibold text-accent leading-tight mb-4",children:e("news.title","Latest News")}),c.jsx("p",{className:"text-primary-foreground/80 text-lg max-w-2xl",children:e("news.subtitle","Stay updated with the latest news, partnerships, and insights from Ekko")})]})]})})]}),c.jsx("section",{className:"px-6 py-8 md:px-12 lg:px-16 border-b border-border",children:c.jsx("div",{className:"max-w-7xl mx-auto",children:c.jsx("div",{className:"flex gap-4",children:["all","news","article"].map(g=>c.jsx("button",{onClick:()=>u(g),className:`px-6 py-2 rounded-full font-medium transition-all ${n===g?"bg-primary text-primary-foreground":"bg-secondary text-muted-foreground hover:text-foreground"}`,children:e(`news.filter.${g}`,g==="all"?"All":g==="news"?"News":"Articles")},g))})})}),c.jsx("section",{className:"px-6 py-16 md:px-12 lg:px-16",children:c.jsx("div",{className:"max-w-7xl mx-auto",children:o?c.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-8",children:[1,2,3].map(g=>c.jsxs("div",{className:"bg-card rounded-2xl overflow-hidden border border-border animate-pulse",children:[c.jsx("div",{className:"aspect-video bg-muted"}),c.jsxs("div",{className:"p-6 space-y-3",children:[c.jsx("div",{className:"h-4 bg-muted rounded w-1/3"}),c.jsx("div",{className:"h-5 bg-muted rounded w-full"}),c.jsx("div",{className:"h-4 bg-muted rounded w-2/3"})]})]},g))}):l.length===0?c.jsx("div",{className:"text-center py-12",children:c.jsx("p",{className:"text-muted-foreground",children:e("news.noArticles","No articles found")})}):c.jsxs(c.Fragment,{children:[c.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-8",children:f.map((g,m)=>c.jsx(T4e,{item:g,index:m,lang:t.language},g.id))}),d>1&&c.jsxs("div",{className:"flex items-center justify-center gap-2 mt-12",children:[c.jsx(de,{variant:"outline",size:"icon",onClick:()=>p(i-1),disabled:i===1,className:"rounded-full",children:c.jsx(Jv,{className:"h-4 w-4"})}),c.jsx("div",{className:"flex items-center gap-1",children:Array.from({length:d},(g,m)=>m+1).map(g=>c.jsx(de,{variant:i===g?"default":"ghost",size:"icon",onClick:()=>p(g),className:`rounded-full w-10 h-10 ${i===g?"":"text-muted-foreground hover:text-foreground"}`,children:g},g))}),c.jsx(de,{variant:"outline",size:"icon",onClick:()=>p(i+1),disabled:i===d,className:"rounded-full",children:c.jsx(Fs,{className:"h-4 w-4"})})]})]})})}),c.jsx(pn,{})]})},T4e=({item:e,index:t,lang:n})=>{const{t:r}=St(),i=n==="vi"&&e.title_vi?e.title_vi:e.title,s=n==="vi"&&e.description_vi?e.description_vi:e.description,a=e.published_at||e.created_at,o=a?Py(new Date(a),"MMMM yyyy"):"";return c.jsx(U.div,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{delay:t*.1,duration:.4},children:c.jsxs(ut,{to:`/news/${e.slug||e.id}`,className:"group block bg-card rounded-2xl overflow-hidden border border-border hover:border-primary/50 hover:shadow-lg transition-all duration-300",children:[c.jsx("div",{className:"aspect-video overflow-hidden",children:c.jsx("img",{src:e.image_url||"/placeholder.svg",alt:i,className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-500",loading:"lazy",decoding:"async"})}),c.jsxs("div",{className:"p-6",children:[c.jsxs("div",{className:"flex items-center gap-2 text-muted-foreground text-sm mb-3",children:[c.jsx(fu,{className:"w-4 h-4"}),c.jsx("span",{children:o}),c.jsx("span",{className:"px-2 py-0.5 rounded-full bg-secondary text-xs font-medium",children:r(`news.filter.${e.category}`,e.category)})]}),c.jsx("h3",{className:"font-semibold text-foreground mb-2 line-clamp-2 group-hover:text-primary transition-colors",children:i}),c.jsx("p",{className:"text-muted-foreground text-sm line-clamp-2 mb-4",children:s}),c.jsxs("div",{className:"flex items-center gap-1 text-primary font-medium text-sm",children:[r("news.readMore","Read more"),c.jsx(A4,{className:"w-4 h-4 group-hover:translate-x-0.5 group-hover:-translate-y-0.5 transition-transform"})]})]})]})})},N4e=()=>{const{t:e,i18n:t}=St(),{slug:n}=sE(),{data:r,isLoading:i}=dn({queryKey:["news-article",n],queryFn:async()=>{const{data:d,error:h}=await ne.from("news_articles").select("*").eq("slug",n).eq("published",!0).maybeSingle();if(h)throw h;return d},enabled:!!n}),{data:s=[]}=dn({queryKey:["related-articles",r==null?void 0:r.category,n],queryFn:async()=>{const{data:d,error:h}=await ne.from("news_articles").select("id, slug, title, title_vi, image_url, category, published_at, created_at").eq("published",!0).eq("category",(r==null?void 0:r.category)||"news").neq("slug",n).order("published_at",{ascending:!1}).limit(3);
633if(h)throw h;return d},enabled:!!(r!=null&&r.category)});if(i)return c.jsxs("div",{className:"min-h-screen bg-background",children:[c.jsx(fn,{isOverlay:!0}),c.jsx("div",{className:"bg-primary px-6 pt-32 pb-16 md:px-12 lg:px-16",children:c.jsxs("div",{className:"max-w-4xl mx-auto animate-pulse",children:[c.jsx("div",{className:"h-6 bg-white/20 rounded w-32 mb-6"}),c.jsx("div",{className:"h-12 bg-white/20 rounded w-3/4 mb-4"}),c.jsx("div",{className:"h-8 bg-white/20 rounded w-1/2"})]})}),c.jsx(pn,{})]});if(!r)return c.jsxs("div",{className:"min-h-screen bg-background",children:[c.jsx(fn,{}),c.jsxs("div",{className:"max-w-4xl mx-auto px-6 py-20 text-center",children:[c.jsx("h1",{className:"text-2xl font-bold text-foreground mb-4",children:e("newsDetail.notFound","Article not found")}),c.jsx(ut,{to:"/news",children:c.jsxs(de,{variant:"outline",children:[c.jsx(ss,{className:"w-4 h-4 mr-2"}),e("newsDetail.backToNews","Back to News")]})})]}),c.jsx(pn,{})]});const a=t.language==="vi"&&r.title_vi?r.title_vi:r.title,o=t.language==="vi"&&r.content_vi?r.content_vi:r.content,l=r.published_at||r.created_at,u=l?Py(new Date(l),"MMMM d, yyyy"):"";return c.jsxs("div",{className:"min-h-screen bg-background",children:[c.jsx(hr,{title:`${a} â Ekko News`,description:(r.description||o||"").toString().slice(0,155),path:`/news/${r.slug}`,image:r.image_url||void 0,type:"article",jsonLd:{"@context":"https://schema.org","@type":"Article",headline:a,image:r.image_url||void 0,datePublished:l,author:{"@type":"Organization",name:"Ekko"},publisher:{"@type":"Organization",name:"Ekko",logo:{"@type":"ImageObject",url:"https://ekko.vn/favicon.png"}}}}),c.jsx(fn,{isOverlay:!0}),c.jsxs("section",{className:"bg-primary px-6 pt-32 pb-16 md:px-12 lg:px-16 relative overflow-hidden",children:[c.jsx("svg",{className:"absolute left-0 top-1/2 -translate-y-1/2 w-24 md:w-32 h-auto opacity-50",viewBox:"0 0 100 300",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:c.jsx("path",{d:"M-20 0 Q 80 150, -20 300",stroke:"hsl(75 70% 55%)",strokeWidth:"3",fill:"none"})}),c.jsxs("div",{className:"max-w-4xl mx-auto relative z-10",children:[c.jsxs(ut,{to:"/news",className:"inline-flex items-center gap-2 text-primary-foreground/70 hover:text-accent transition-colors mb-6",children:[c.jsx(ss,{className:"w-4 h-4"}),e("newsDetail.backToNews","Back to News")]}),c.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[c.jsxs("span",{className:"inline-flex items-center gap-1.5 px-3 py-1 rounded-full bg-white/20 text-primary-foreground text-sm",children:[c.jsx(fu,{className:"w-3.5 h-3.5"}),u]}),c.jsxs("span",{className:"inline-flex items-center gap-1.5 px-3 py-1 rounded-full bg-accent text-accent-foreground text-sm font-medium capitalize",children:[c.jsx(DK,{className:"w-3.5 h-3.5"}),r.category]})]}),c.jsx(U.h1,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"text-3xl md:text-4xl lg:text-5xl font-bold text-primary-foreground leading-tight",children:a})]})]}),c.jsx("section",{className:"px-6 py-16 md:px-12 lg:px-16",children:c.jsxs("div",{className:"max-w-4xl mx-auto",children:[r.image_url&&c.jsx(U.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.1},className:"rounded-2xl overflow-hidden mb-10",children:c.jsx("img",{src:r.image_url,alt:a,className:"w-full h-auto object-cover"})}),c.jsx(U.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.2},className:"prose prose-lg max-w-none",children:c.jsx("div",{className:"space-y-6 text-foreground whitespace-pre-line leading-relaxed",children:o.split(` 634 635`).map((d,h)=>{if(d.startsWith("## "))return c.jsx("h2",{className:"text-2xl font-bold text-foreground mt-10 mb-4",children:d.replace("## ","")},h);if(d.startsWith("### "))return c.jsx("h3",{className:"text-xl font-semibold text-foreground mt-8 mb-3",children:d.replace("### ","")},h);if(d.startsWith("- ")){const f=d.split(` 636`).filter(p=>p.startsWith("- "));return c.jsx("ul",{className:"list-disc pl-6 space-y-2",children:f.map((p,g)=>c.jsx("li",{children:p.replace("- ","")},g))},h)}return c.jsx("p",{className:"text-foreground/90",children:d},h)})})})]})}),s.length>0&&c.jsx("section",{className:"bg-secondary px-6 py-16 md:px-12 lg:px-16",children:c.jsxs("div",{className:"max-w-7xl mx-auto",children:[c.jsx("h2",{className:"text-2xl font-bold text-foreground mb-8",children:e("newsDetail.relatedArticles","Related Articles")}),c.jsx("div",{className:"grid md:grid-cols-3 gap-6",children:s.map(d=>{const h=t.language==="vi"&&d.title_vi?d.title_vi:d.title,f=d.published_at||d.created_at,p=f?Py(new Date(f),"MMMM yyyy"):"";return c.jsxs(ut,{to:`/news/${d.slug}`,className:"group block bg-card rounded-2xl overflow-hidden border border-border hover:border-primary/50 hover:shadow-lg transition-all duration-300",children:[c.jsx("div",{className:"aspect-video overflow-hidden",children:c.jsx("img",{src:d.image_url||"/placeholder.svg",alt:h,className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-500"})}),c.jsxs("div",{className:"p-5",children:[c.jsxs("div",{className:"flex items-center gap-2 text-muted-foreground text-sm mb-2",children:[c.jsx(fu,{className:"w-3.5 h-3.5"}),c.jsx("span",{children:p})]}),c.jsx("h3",{className:"font-semibold text-foreground line-clamp-2 group-hover:text-primary transition-colors",children:h})]})]},d.id)})})]})}),c.jsx(pn,{})]})},C4e=()=>{const{i18n:e}=St(),t=[{label:e.language==="vi"?"vay mượn":"debt",delay:0,x:-90,rotation:-15},{label:e.language==="vi"?"bất an":"worry",delay:1.2,x:-35,rotation:-5},{label:"stress",delay:2.4,x:35,rotation:5},{label:e.language==="vi"?"sá»± cá»":"crisis",delay:3.6,x:90,rotation:15}];return c.jsx("div",{className:"relative w-full h-[420px] flex items-center justify-center",children:c.jsxs("div",{className:"relative w-[320px] h-[380px]",children:[t.map((n,r)=>c.jsx(U.div,{className:"absolute top-0 left-1/2",style:{x:n.x},initial:{y:-80,opacity:0}
636,animate:{y:[-20,100,80,160],opacity:[0,1,1,0],x:[n.x,n.x,n.x+(n.x>0?50:-50),n.x+(n.x>0?100:-100)],rotate:[n.rotation,n.rotation,n.rotation+(n.x>0?30:-30),n.rotation+(n.x>0?60:-60)]},transition:{duration:4,delay:n.delay,repeat:1/0,repeatDelay:2,ease:[.4,0,.2,1]},children:c.jsxs("svg",{width:"60",height:"78",viewBox:"0 0 50 65",fill:"none",className:"drop-shadow-lg",children:[c.jsx("path",{d:"M25 0C25 0 0 35 0 45C0 55 11.2 65 25 65C38.8 65 50 55 50 45C50 35 25 0 25 0Z",fill:"hsla(var(--primary-foreground), 0.15)",stroke:"hsl(var(--primary-foreground))",strokeWidth:"2",className:"opacity-70"}),c.jsx("text",{x:"25",y:"44",textAnchor:"middle",fill:"hsl(var(--primary-foreground))",fontSize:"10",fontWeight:"600",className:"opacity-90",children:n.label})]})},r)),c.jsx(U.div,{className:"absolute bottom-4 left-1/2 -translate-x-1/2",initial:{y:50,opacity:0},whileInView:{y:0,opacity:1},viewport:{once:!0},transition:{duration:.8,ease:"easeOut"},children:c.jsxs("svg",{width:"300",height:"220",viewBox:"0 0 280 200",fill:"none",children:[c.jsx(U.path,{d:"M20 120 Q70 40 140 40 Q210 40 260 120",fill:"transparent",stroke:"hsl(var(--primary-foreground))",strokeWidth:"3",strokeLinecap:"round",initial:{pathLength:0},whileInView:{pathLength:1},viewport:{once:!0},transition:{duration:1.2,delay:.3}}),c.jsx(U.path,{d:"M20 120 Q50 100 80 120 Q110 100 140 120 Q170 100 200 120 Q230 100 260 120",fill:"transparent",stroke:"hsl(var(--primary-foreground))",strokeWidth:"3",strokeLinecap:"round",initial:{pathLength:0},whileInView:{pathLength:1},viewport:{once:!0},transition:{duration:1,delay:.6}}),c.jsx(U.path,{d:"M140 120 L140 180 Q140 195 125 195 Q110 195 110 180",fill:"transparent",stroke:"hsl(var(--primary-foreground))",strokeWidth:"3",strokeLinecap:"round",initial:{pathLength:0},whileInView:{pathLength:1},viewport:{once:!0},transition:{duration:.8,delay:.9}}),c.jsx(U.text,{x:"140",y:"95",textAnchor:"middle",fill:"hsl(var(--primary-foreground))",fontSize:"32",fontWeight:"bold",letterSpacing:"2",initial:{opacity:0}
636,whileInView:{opacity:1},viewport:{once:!0},transition:{duration:.6,delay:1.2},children:"ekko"}),c.jsx(U.path,{d:"M115 102 Q140 115 165 102",fill:"transparent",stroke:"hsl(var(--primary-foreground))",strokeWidth:"2.5",strokeLinecap:"round",initial:{pathLength:0},whileInView:{pathLength:1},viewport:{once:!0},transition:{duration:.5,delay:1.4}})]})}),c.jsx(U.div,{className:"absolute top-2 left-1/2 -translate-x-1/2",initial:{scale:0,rotate:0},whileInView:{scale:1,rotate:360},viewport:{once:!0},transition:{duration:.8,delay:.2},children:c.jsx("svg",{width:"28",height:"28",viewBox:"0 0 24 24",fill:"none",children:c.jsx("path",{d:"M12 2L14 10L22 12L14 14L12 22L10 14L2 12L10 10L12 2Z",fill:"hsl(var(--accent))"})})})]})})},A4e="/assets/office-lounge-DtzPVMSn.jpg",P4e="/assets/office-stairway-BpUiICUH.jpg",O4e="/assets/office-terrace-dv5nTNq2.jpg",R4e="/assets/office-brick-room-DWSfkFye.jpg",I4e="/assets/office-workspace-DA4Oj3pV.jpg",M4e="/assets/office-meeting-ekko-Dh0IxE91.jpg",$4e="/assets/team-retreat-OOsLoDWa.jpg",D4e="/assets/team-retreat-group-Dd1GLzHT.jpg",L4e="/assets/christmas-gathering-CvgMJ_6B.jpg",F4e="/assets/christmas-team-B_QJkvIk.jpg",B4e="/assets/conference-speaker-C2gvBkNW.jpg",V4e=()=>{const{t:e,i18n:t}=St(),[n,r]=w.useState("all"),{data:i=[],isLoading:s}=dn({queryKey:["published-jobs"],queryFn:async()=>{const{data:f,error:p}=await ne.from("job_postings").select("id, slug, title, title_vi, department, location, type, description, description_vi, title_ko, title_zh, description_ko, description_zh").eq("published",!0).order("created_at",{ascending:!1});if(p)throw p;return f}}),a=["all",...new Set(i.map(f=>f.department))],o=n==="all"?i:i.filter(f=>f.department===n),l=[{icon:sf,title:oe("Integrity","ChÃnh Trá»±c","ì ì§","æ£ç´"),subtitle:"INTEGRITY",description:oe("Live with our values every day, being honest, ethical and trustworthy in all communications and actions.","Sá»ng vá»i những giá trá» cá»§a chúng ta má»i ngà y, sá»ng trung thá»±c, có Äạo Äức và Äáng tin cáºy trong má»i giao tiếp, hà nh Äá»ng.","ë§¤ì¼ ì°ë¦¬ì ê°ì¹ì ë°ë¼ ì´ìê°ë©°, 모ë ìíµê³¼ íëìì ì ì§íê³ ì¤ë¦¬ì ì´ë©° ì 뢰í ì ìë 모ìµì ë³´ì
ëë¤.","以æä»¬çä»·å¼è§ä¸ºæ¥å¸¸ååï¼å¨æææ²éä¸è¡å¨ä¸ä¿æè¯å®ãæ£ç´ä¸å¼å¾ä¿¡èµã")},{icon:P_,title:oe("Commitment","Cam Kết","íì ","æ¿è¯º"),subtitle:"COMMITMENT",description:oe("Stay disciplined to keep moving toward our goals with focus, persistence and the courage to act.","Luôn ká»· luáºt Äá» tiếp tục tiến vá» phÃa mục tiêu vá»i sá»± táºp trung, kiên Äá»nh và dám nghÄ© dám là m.","ì§ì¤ë ¥, ë기, ê·¸ë¦¬ê³ ì¤ííë ì©ê¸°ë¡ 목í를 í¥í´ 꾸ì¤í ëìê°ë ìì¸ë¥¼ ì ì§í©ëë¤.","ä¿æèªå¾ï¼ä»¥ä¸æ³¨ãåæä¸æ¢äºè¡å¨çåæ°ï¼æç»æç®æ åè¿ã")},{icon:Za,title:oe("Humanity","Vá» Nhân Sinh","ì¸ê° ì¡´ì¤","以人为æ¬"),subtitle:"HUMANITY",description:oe("Treat others with respect, empathy and compassion. Respect individual perspectives and strive to create positive impact.","Äá»i xá» vá»i ngưá»i khác bằng sá»± tôn trá»ng, Äá»ng cảm và lòng trắc ẩn. Tôn trá»ng các quan Äiá»m cá nhân.","íì¸ì ì¡´ì¤ê³¼ ê³µê°, ë°°ë ¤ë¡ ëí©ëë¤. ê°ì¸ì ê´ì ì ì¡´ì¤íë©° ê¸ì ì ì¸ ìí¥ì ë§ë¤ì´ê°ê³ ì ë
¸ë ¥í©ëë¤.","以å°éãåçä¸å
³æå¯¹å¾
ä»äººï¼å°éæ¯ä¸ªäººçè§ç¹ï¼åªååé æ£åå½±åã")},{icon:M_,title:oe("Agility","Linh Hoạt","민첩ì±","ææ·"),subtitle:"AGILITY",description:oe("Learn fast, share fast, change fast. Balance flexibility with sustainability.","Há»c nhanh, chia sẻ nhanh, thay Äá»i nhanh. Cân bằng giữa sá»± linh hoạt và tÃnh bá»n vững.","ë¹ ë¥´ê² ë°°ì°ê³ , ë¹ ë¥´ê² ê³µì íê³ , ë¹ ë¥´ê² ë³íí©ëë¤. ì ì°ì±ê³¼ ì§ì ê°ë¥ì±ì ê· íì ë§ì¶¥ëë¤.","å¿«éå¦ä¹ ãå¿«éå享ãå¿«éæ¹åï¼å¨çµæ´»æ§ä¸å¯æç»æ§ä¹é´åå¾å¹³è¡¡ã")}],u=[oe("Young and open startup culture where your voice is always heard","VÄn hóa khá»i nghiá»p trẻ trung và cá»i má», nÆ¡i tiếng nói cá»§a bạn luôn ÄÆ°á»£c lắng nghe","ì¬ë¬ë¶ì ì견ì íì ê²½ì²íë ì ê³ ê°ë°©ì ì¸ ì¤íí¸ì
문í","å¹´è½»ã弿¾çååæåï¼ä½ ç声é³å§ç»è¢«å¾å¬"),oe("Regular Team building, Happy hours, travel and annual events","Hoạt Äá»ng Team building và Happy hour Äá»nh kỳ, du lá»ch và sá»± kiá»n thưá»ng niên","ì 기 íë¹ë©, Happy Hour, ì¬í ë° ì°ë¡ íì¬","宿å¢å»ºãHappy Hourãæ
è¡ä¸å¹´åº¦æ´»å¨"),oe("Annual health check-ups and VBI health insurance card","Khám sức khá»e Äá»nh kỳ và thẻ bảo hiá»m sức khá»e VBI hà ng nÄm","ì° 1í ê±´ê°ê²ì§ ë° VBI ê±´ê°ë³´í ì¹´ë ì ê³µ","æ¯å¹´å¥åº·ä½æ£å¹¶æä¾ VBI å¥åº·ä¿é©"),oe("Flexible working hours with up to 80% salary advance using Ekko app","Giá» là m viá»c linh hoạt, ÄÆ°á»£c ứng lương trưá»c ngà y nháºn lương hà ng tháng (hạn mức lên tá»i 80%)","ì ì° ê·¼ë¬´ì ë° Ekko ì±ì íµí ìµë 80% ê¸ì¬ ì ì§ê¸","å¼¹æ§å·¥æ¶ï¼å¯éè¿ Ekko App 颿¯æé« 80% å·¥èµ"),oe("Training on products, skills and personal development","Äà o tạo vá» sản phẩm, kỹ nÄng và p
636hát triá»n cá nhân","ì í, ì§ë¬´ ìë, ê°ì¸ ì±ì¥ êµì¡ ì§ì","æä¾äº§åãæè½ä¸ä¸ªäººæé¿å¹è®"),oe("Competitive salary and performance-based bonuses","Mức lương cạnh tranh và tiá»n thưá»ng dá»±a trên hiá»u suất","ê²½ìë ¥ ìë ê¸ì¬ ë° ì±ê³¼ ê¸°ë° ë³´ëì¤","å
·ç«äºåçèªé
¬ä¸ç»©æå¥é")],d=f=>oe(f.title,f.title_vi,f.title_ko,f.title_zh),h=f=>oe(f.description,f.description_vi,f.description_ko,f.description_zh);return c.jsxs("div",{className:"min-h-screen bg-background",children:[c.jsx(hr,{title:"Careers at Ekko â Join Our Mission for Financial Inclusion",description:"Explore open positions at Ekko. Help us empower workers across Vietnam with earned wage access, financial literacy, and HR digital transformation.",path:"/careers"}),c.jsx(fn,{isOverlay:!0}),c.jsxs("section",{className:"relative w-full h-[70vh] min-h-[500px]",children:[c.jsx("video",{autoPlay:!0,muted:!0,loop:!0,playsInline:!0,className:"w-full h-full object-cover",children:c.jsx("source",{src:"/videos/careers-hero.mp4",type:"video/mp4"})}),c.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/80 via-black/40 to-black/20"}),c.jsx("div",{className:"absolute inset-0 flex items-end",children:c.jsx("div",{className:"max-w-7xl mx-auto w-full px-6 md:px-12 lg:px-16 pb-16",children:c.jsx(U.div,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.6},className:"max-w-3xl",children:c.jsx("h1",{className:"text-3xl md:text-4xl lg:text-5xl xl:text-6xl font-bold text-white leading-tight",children:(t.language==="vi","")})})})})]}),c.jsx("section",{className:"px-6 py-20 md:px-12 lg:px-16 bg-primary overflow-hidden",children:c.jsx("div",{className:"max-w-6xl mx-auto",children:c.jsxs("div",{className:"grid lg:grid-cols-2 gap-12 items-center",children:[c.jsxs(U.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},children:[c.jsx("p",{className:"text-primary-foreground/70 text-sm font-medium tracking-wider mb-4",children:oe("Ekko's journey started with a simple question","Hà nh trình cá»§a Ekko bắt Äầu từ má»t câu há»i ÄÆ¡n giản","Ekkoì ì¬ì ì ë¨ìí ì§ë¬¸ íëìì ììëììµëë¤","Ekko çæ
ç¨å§äºä¸ä¸ªç®åçé®é¢")}),c.jsx("h2",{className:"text-2xl md:text-3xl lg:text-4xl font-bold text-primary-foreground mb-6",children:oe("How can workers access their earnings â exactly when they need it most?","Là m sao Äá» ngưá»i lao Äá»ng tiếp cáºn thu nháºp cá»§a mình â khi há» cần nhất?","ê·¼ë¡ìê° ê°ì¥ íìí ìê°ì ì´ë»ê² ìì ì ìëì ì ê·¼í ì ììê¹ì?","工人å¦ä½å¨æéè¦çæ¶å»æ¿å°èªå·±åºå¾çæ¶å
¥ï¼")}),c.jsx("p",{className:"text-primary-foreground/70 text-lg leading-relaxed mb-8",children:oe('With a "people-first" approach, Ekko continuously expands solutions, enhances experiences, and partners with businesses to build sustainable work environments.','Vá»i Äá»nh hưá»ng "lấy con ngưá»i là m trung tâm", Ekko không ngừng hoà n thiá»n và má» rá»ng các giải pháp tà i chÃnh, nâng cao trải nghiá»m ngưá»i lao Äá»ng, Äá»ng thá»i Äá»ng hà nh cùng doanh nghiá»p trong viá»c xây dá»±ng môi trưá»ng là m viá»c bá»n vững và nhân vÄn.',"'ì¬ë ì¤ì¬'ì ì ê·¼ ë°©ìì ë°íì¼ë¡, Ekkoë ê¸ìµ ì루ì
ì ì§ìì ì¼ë¡ ê°ì ·íì¥íê³ ê·¼ë¡ìì ê²½íì í¥ììí¤ë©°, 기ì
ê³¼ í¨ê» ì§ì ê°ë¥íê³ ì¸ê°ì ì¸ ê·¼ë¬´ íê²½ì 구ì¶í©ëë¤.","ç§æâ以人为æ¬âçç念ï¼Ekko æç»å®åå¹¶æ©å±éèè§£å³æ¹æ¡ï¼æååå·¥ä½éªï¼å¹¶ä¸ä¼ä¸æºææé 坿ç»ãæäººæ
å³çå·¥ä½ç¯å¢ã")}),c.jsx("p",{className:"text-primary-foreground font-semibold text-lg",children:oe("We believe that people who share the same vision and values will make the difference.","Chúng tôi tin rằng khi những con ngưá»i cùng chung tầm nhìn và giá trá» Äá»ng hà nh, sá»± khác biá»t sẽ ÄÆ°á»£c tạo ra má»t cách tá»± nhiên.","ê°ì ë¹ì ê³¼ ê°ì¹ë¥¼ ê³µì íë ì¬ëë¤ì´ í¨ê»í ë, ì§ì í ì°¨ì´ê° ìì°ì¤ë½ê² ë§ë¤ì´ì§ë¤ê³ 믿ìµëë¤.","æä»¬ç¸ä¿¡ï¼å¿åéåãä»·å¼è§ä¸è´çä¼ä¼´åè¡ï¼èªç¶ä¼å¸¦æ¥çæ£çä¸åã")})]}),c.jsx(U.div,{initial:{opacity:0,scale:.9},whileInView:{opacity:1,scale:1},viewport:{once:!0},transition:{delay:.2},className:"hidden lg:block",children:c.jsx(C4e,{})})]})})}),c.jsx("section",{className:"px-6 py-20 md:px-12 lg:px-16 bg-secondary/30",children:c.jsxs("div",{className:"max-w-7xl mx-auto",children:[c.jsxs(U.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-12",children:[c.jsx("p",{className:"text-muted-foreground text-sm font-medium tracking-wider mb-2",children:oe("A workspace is more than just a place to work","Không gi
636an là m viá»c không chá» là nÆ¡i là m viá»c","ì
무 ê³µê°ì ë¨ìí ì¼íë ì¥ì ê·¸ ì´ìì
ëë¤","åå
¬ç©ºé´ä¸åªæ¯ä¸ä¸ªå·¥ä½çå°æ¹")}),c.jsx("h2",{className:"text-2xl md:text-3xl font-bold text-foreground mb-4",children:oe("A place that nurtures team spirit, creativity and ideas that create value","NÆ¡i nuôi dưỡng tinh thần Äá»ng Äá»i, sá»± sáng tạo và những ý tưá»ng tạo ra giá trá»","íìí¬ì ì°½ìì±, ê·¸ë¦¬ê³ ê°ì¹ë¥¼ ë§ë¤ì´ë´ë ìì´ëì´ë¥¼ í¤ì°ë ê³µê°","è¿éåè²å¢éç²¾ç¥ãåé åï¼ä»¥åè½åé ä»·å¼çæ³æ³")})]}),c.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-3",children:[c.jsx(U.div,{initial:{opacity:0,scale:.95},whileInView:{opacity:1,scale:1},viewport:{once:!0},className:"col-span-2 rounded-xl overflow-hidden h-48 md:h-56",children:c.jsx("img",{src:A4e,alt:"Ekko Office Lounge",className:"w-full h-full object-cover hover:scale-105 transition-transform duration-500",loading:"lazy",decoding:"async"})}),c.jsx(U.div,{initial:{opacity:0,scale:.95},whileInView:{opacity:1,scale:1},viewport:{once:!0},transition:{delay:.1},className:"rounded-xl overflow-hidden h-48 md:h-56",children:c.jsx("img",{src:P4e,alt:"Office Stairway",className:"w-full h-full object-cover hover:scale-105 transition-transform duration-500",loading:"lazy",decoding:"async"})}),c.jsx(U.div,{initial:{opacity:0,scale:.95},whileInView:{opacity:1,scale:1},viewport:{once:!0},transition:{delay:.15},className:"rounded-xl overflow-hidden h-48 md:h-56",children:c.jsx("img",{src:I4e,alt:"Office Workspace",className:"w-full h-full object-cover hover:scale-105 transition-transform duration-500",loading:"lazy",decoding:"async"})}),c.jsx(U.div,{initial:{opacity:0,scale:.95},whileInView:{opacity:1,scale:1},viewport:{once:!0},transition:{delay:.2},className:"rounded-xl overflow-hidden h-40 md:h-48",children:c.jsx("img",{src:R4e,alt:"Office Brick Room",className:"w-full h-full object-cover hover:scale-105 transition-transform duration-500",loading:"lazy",decoding:"async"})}),c.jsx(U.div,{initial:{opacity:0,scale:.95},whileInView:{opacity:1,scale:1},viewport:{once:!0},transition:{delay:.25},className:"rounded-xl overflow-hidden h-40 md:h-48",children:c.jsx("img",{src:M4e,alt:"Ekko Meeting Room",className:"w-full h-full object-cover hover:scale-105 transition-transform duration-500",loading:"lazy",decoding:"async"})}),c.jsx(U.div,{initial:{opacity:0,scale:.95},whileInView:{opacity:1,scale:1},viewport:{once:!0},transition:{delay:.3},className:"col-span-2 rounded-xl overflow-hidden h-40 md:h-48",children:c.jsx("img",{src:O4e,alt:"Office Terrace",className:"w-full h-full object-cover hover:scale-105 transition-transform duration-500",loading:"lazy",decoding:"async"})})]})]})}),c.jsx("section",{className:"px-6 py-16 md:px-12 lg:px-16 bg-background overflow-hidden",children:c.jsx("div",{className:"max-w-7xl mx-auto",children:c.jsxs("div",{className:"grid lg:grid-cols-2 gap-12 items-center",children:[c.jsxs(U.div,{initial:{opacity:0,x:-20},whileInView:{opacity:1,x:0},viewport:{once:!0},children:[c.jsx("p",{className:"text-accent text-sm font-semibold tracking-wider mb-2",children:oe("Life at Ekko","Cuá»c sá»ng tại Ekko","Ekkoììì ì¶","Ekko ççæ´»")}),c.jsx("h2",{className:"text-2xl md:text-3xl font-bold text-foreground mb-4",children:oe("Work Hard, Play Harder","Là m viá»c chÄm chá», vui chÆ¡i hết mình","ì´ì¬í ì¼íê³ , ë ì¦ê²ê² ì¦ê¸°ì¸ì","åªåå·¥ä½ï¼æ´ç¨åç©")}),c.jsx("p",{className:"text-muted-foreground mb-6",children:oe("From team retreats to year-end celebrations, we believe that a connected team creates extraordinary things.","Từ những chuyến retreat Äến các buá»i tiá»c cuá»i nÄm, chúng tôi tin rằng Äá»i ngÅ© gắn kết sẽ tạo ra những Äiá»u phi thưá»ng.","í 리í¸ë¦¿ë¶í° ì°ë§ íì¬ê¹ì§, ëëíê² ì°ê²°ë íì´ ë¹ë²í 결과를 ë§ë ë¤ê³ 믿ìµëë¤.","ä»å¢éæ
è¡å°å¹´ç»åºå
¸ï¼æä»¬ç¸ä¿¡ç´§å¯ç¸è¿çå¢éè½åé é塿æã")}),c.jsx("div",{className:"grid grid-cols-2 gap-4",children:[{label:oe("Team Retreats","Team Retreat","í 리í¸ë¦¿","å¢éåºè¡"),value:oe("Yearly","Hà ng nÄm","ì° 1í","æ¯å¹´ä¸æ¬¡")},{label:oe("Happy Hours","Happy Hour","í´í¼ ìì","æ¬¢ä¹æ¶å
"),value:oe("Monthly","Hà ng tháng","ì 1í","æ¯æä¸æ¬¡")},{label:oe("Company Events","Sá»± kiá»n công ty","ì¬ë´ íì¬","å
¬å¸æ´»å¨"),value:"10+"},{label:oe("Team Building","Team Building","íë¹ë©","å¢é建设"),value:oe("Quarterly","Hà ng quý","ë¶ê¸°ë³","æ¯å£åº¦")}].map((f,p)=>c.jsxs(U.div,{initial:{opacity:0,y:10},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:p*.1},className:"bg-secondary/50 rounded-xl p-4",children:[c.jsx("p",{className:"text-lg font-bold text-primary",children:f.value}),c.jsx("p",{className:"text-sm text-muted-foreground",children:f.label})]},p))})]}),c.jsx(U.div,{initial:{opacity:0,x:20},whileInView:{opacity:1,x:0},viewport:{once:!0},className:"relative h-[400px] flex items-center justify-center",children:[{src:$4e,rotate:-6,z:5,delay:0},{src:L4e,rotate:4,z:4,delay:.1},{src:B4e,rotate:-3,z:3,delay:.2},{src:F4e,rotate:6,z:2,delay:.3}].map((f,p)=>c.jsx(U.div,{initial:{opacity:0,scale:.8,rotate:f.rotate*2},whileInView:{opacity:1,scale:1,rotate:f.rotate},viewport:{once:!0},transition:{delay:f.delay,duration:.5},whileHover:{scale:1.05,rotate:0,zIndex:10,transition:{duration:.2}},className:"absolute w-56 h-40 md:w-72 md:h-52 rounded-2xl overflow-hidden shadow-2xl cursor-pointer border-4 border-white",style:{zIndex:f.z,top:`${p*15}%`,left:`${10+p*8}%`},children:c.jsx("img",{src:f.src,alt:`Team photo ${p+1}`,className:"w-full h-full object-cover",loading:"lazy",decoding:"async"})},p))})]})})}),c.jsx("section",{className:"px-6 py-20 md:px-12 lg:px-16 bg-primary",children:c.jsxs("div",{className:"max-w-7xl mx-auto",children:[c.jsxs(U.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-12",children:[c.jsx("h2",{className:"text-2xl md:text-3xl font-bold text-primary-foreground mb-4",children:oe("Our Core Values","Giá trá» cá»t lõi cá»§a chúng tôi","ì°ë¦¬ì íµì¬ ê°ì¹","æä»¬çæ ¸å¿ä»·å¼è§")}
636),c.jsx("p",{className:"text-primary-foreground/70",children:oe("ICHA - The foundation of everything we do","ICHA - Ná»n tảng cá»§a má»i Äiá»u chúng tôi là m","ICHA - ì°ë¦¬ê° íë 모ë ì¼ì 기ë°","ICHAï¼æä»¬ä¸åå·¥ä½çåºç³")})]}),c.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-4 gap-6",children:l.map((f,p)=>c.jsxs(U.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:p*.1},className:"bg-white/10 backdrop-blur-sm rounded-2xl p-6 border border-white/10",children:[c.jsx("div",{className:"w-12 h-12 rounded-xl bg-accent flex items-center justify-center mb-4",children:c.jsx(f.icon,{className:"w-6 h-6 text-accent-foreground"})}),c.jsx("h3",{className:"text-xl font-bold text-primary-foreground mb-3",children:f.title}),c.jsx("p",{className:"text-primary-foreground/70 text-sm leading-relaxed",children:f.description})]},f.title))})]})}),c.jsx("section",{className:"px-6 py-20 md:px-12 lg:px-16 bg-background",children:c.jsx("div",{className:"max-w-7xl mx-auto",children:c.jsxs("div",{className:"grid lg:grid-cols-2 gap-12 items-center",children:[c.jsxs(U.div,{initial:{opacity:0,x:-20},whileInView:{opacity:1,x:0},viewport:{once:!0},children:[c.jsx("h2",{className:"text-2xl md:text-3xl font-bold text-foreground mb-6",children:oe("Benefits of working at Ekko","Phúc lợi khi là m viá»c tại Ekko","Ekkoìì ì¼íë©° ë리ë 복리íì","å¨ Ekko å·¥ä½çç¦å©")}),c.jsx("div",{className:"space-y-4",children:u.map((f,p)=>c.jsxs(U.div,{initial:{opacity:0,x:-10},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{delay:p*.05},className:"flex items-start gap-3",children:[c.jsx(ny,{className:"w-5 h-5 text-primary mt-0.5 flex-shrink-0"}),c.jsx("p",{className:"text-muted-foreground",children:f})]},p))})]}),c.jsx(U.div,{initial:{opacity:0,x:20},whileInView:{opacity:1,x:0},viewport:{once:!0},className:"rounded-2xl overflow-hidden",children:c.jsx("img",{src:D4e,alt:"Ekko team retreat",className:"w-full h-full object-cover"})})]})})}),c.jsx("section",{className:"px-6 py-20 md:px-12 lg:px-16 bg-secondary/30",children:c.jsxs("div",{className:"max-w-7xl mx-auto",children:[c.jsxs(U.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-12",children:[c.jsx("h2",{className:"text-2xl md:text-3xl font-bold text-foreground mb-4",children:oe("We're excited to meet you at Ekko!","Rất vui ÄÆ°á»£c gặp bạn tại Ekko!","Ekkoìì ë§ëëµê¸°ë¥¼ 기ëí©ëë¤!","æå¾
å¨ Ekko ä¸ä½ ç¸éï¼")}),c.jsx("p",{className:"text-muted-foreground",children:oe("Explore our open positions and level-up your career","Khám phá các vá» trà Äang tuyá»n dụng và level-up sá»± nghiá»p","ì±ì© ì¤ì¸ í¬ì§ì
ì ì´í´ë³´ê³ 커리ì´ë¥¼ í ë¨ê³ ëì¬ë³´ì¸ì","æ¢ç´¢æä»¬æèä¸çèä½ï¼è®©è䏿´ä¸ä¸å±æ¥¼")})]}),c.jsx("div",{className:"flex flex-wrap justify-center gap-2 mb-8",children:a.map(f=>c.jsx("button",{onClick:()=>r(f),className:`px-4 py-2 rounded-full text-sm font-medium transition-all ${n===f?"bg-primary text-primary-foreground":"bg-background text-muted-foreground hover:text-foreground border border-border"}`,children:f==="all"?oe("All Departments","Tất cả","ì ì²´ ë¶ì","å
¨é¨é¨é¨"):f},f))}),s?c.jsx("div",{className:"text-center py-12",children:c.jsx("p",{className:"text-muted-foreground",children:oe("Loading positions...","Äang tải...","í¬ì§ì
ì ë¶ë¬ì¤ë ì¤...","æ£å¨å è½½èä½...")})}):o.length===0?c.jsxs(U.div,{initial:{opacity:0}
636,animate:{opacity:1},className:"text-center py-12 bg-background rounded-2xl border border-border",children:[c.jsx("p",{className:"text-muted-foreground mb-4",children:oe("No open positions at the moment.","Hiá»n không có vá» trà nà o Äang tuyá»n.","íì¬ ì±ì© ì¤ì¸ í¬ì§ì
ì´ ììµëë¤.","ç®åææ ç©ºç¼ºèä½ã")}),c.jsx("p",{className:"text-sm text-muted-foreground",children:oe("Send your CV to [email protected]","Hãy gá»i CV vá» [email protected]","[email protected]ì¼ë¡ ì´ë ¥ì를 ë³´ë´ì£¼ì¸ì","请å°ç®ååéè³ [email protected]")})]}):c.jsx("div",{className:"grid md:grid-cols-2 gap-4",children:o.map((f,p)=>c.jsx(U.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:p*.1},children:c.jsxs(ut,{to:`/careers/${f.slug||f.id}`,className:"group block bg-background rounded-xl p-6 border border-border hover:border-primary/50 hover:shadow-lg transition-all h-full",children:[c.jsx("h3",{className:"text-lg font-semibold text-foreground group-hover:text-primary transition-colors mb-3",children:d(f)}),c.jsx("p",{className:"text-muted-foreground text-sm line-clamp-2 mb-4",children:h(f)}),c.jsxs("div",{className:"flex flex-wrap items-center gap-3 text-sm text-muted-foreground mb-4",children:[c.jsxs("span",{className:"flex items-center gap-1 bg-secondary px-2 py-1 rounded",children:[c.jsx(Tp,{className:"w-3 h-3"}),f.department]}),f.location.split(",").map((g,m)=>c.jsxs("span",{className:"flex items-center gap-1 bg-secondary px-2 py-1 rounded",children:[c.jsx(R_,{className:"w-3 h-3"}),g.trim()]},m)),c.jsxs("span",{className:"flex items-center gap-1 bg-secondary px-2 py-1 rounded",children:[c.jsx(Ol,{className:"w-3 h-3"}),f.type]})]}),c.jsxs("div",{className:"flex items-center text-primary text-sm font-medium",children:[oe("View Details","Xem chi tiết","ìì¸í 보기","æ¥ç详æ
"),c.jsx(Ls,{className:"w-4 h-4 ml-1 group-hover:translate-x-1 transition-transform"})]})]})},f.id))})]})}),c.jsx("section",{className:"px-6 py-20 md:px-12 lg:px-16 bg-primary",children:c.jsx("div",{className:"max-w-4xl mx-auto text-center",children:c.jsxs(U.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},children:[c.jsx("h2",{className:"text-2xl md:text-3xl font-bold text-primary-foreground mb-4",children:oe("Contact & Apply","Liên há» và ứng tuyá»n","문ì ë° ì§ì","èç³»ä¸ç³è¯·")}),c.jsx("p",{className:"text-primary-foreground/80 mb-8",children:oe("Don't see a role that fits? Send us your CV and we'll reach out when there's an opportunity.","Không tìm thấy vá» trà phù hợp? Hãy gá»i CV cá»§a bạn và chúng tôi sẽ liên há» khi có cÆ¡ há»i.","ë§ë í¬ì§ì
ì ì°¾ì§ ëª»íì
¨ëì? ì´ë ¥ì를 ë³´ë´ì£¼ìë©´, 기íê° ì길 ë ì°ë½ëë¦¬ê² ìµëë¤.","æ²¡ææ¾å°åéçèä½ï¼æ¬¢è¿æéç®åï¼ä¸æ¦æå¹é
æºä¼æä»¬ä¼ä¸»å¨èç³»ä½ ã")}),c.jsxs("div",{className:"flex flex-col sm:flex-row items-center justify-center gap-6 mb-8",children:[c.jsxs("a",{href:"mailto:[email protected]",className:"flex items-center gap-2 text-primary-foreground hover:text-accent transition-colors",children:[c.jsx(mu,{className:"w-5 h-5"}),c.jsx("span",{className:"font-medium",children:"[email protected]"})]}),c.jsxs("a",{href:"tel:0363287402",className:"flex items-center gap-2 text-primary-foreground hover:text-accent transition-colors",children:[c.jsx(Cp,{className:"w-5 h-5"}),c.jsx("span",{className:"font-medium",children:"0363 287 402 (Zalo)"})]})]})]})})}),c.jsx(pn,{})]})},q4e=()=>{const{t:e,i18n:t}=St(),{id:n}=sE(),{data:r,isLoading:i,error:s}=dn({queryKey:["job",n],queryFn:async()=>{const o=/^[0-9a-f-]{36}$/i.test(n||""),{data:l,error:u}=await ne.from("job_postings").select("*").eq(o?"id":"slug",n).eq("published",!0).maybeSingle();if(u)throw u;return l}}),a=o=>{const l=r;return oe(l==null?void 0:l[o],l==null?void 0:l[`${o}_vi`],l==null?void 0:l[`${o}_ko`],l==null?void 0:l[`${o}_zh`])};return i?c.jsxs("div",{className:"min-h-screen bg-background",children:[c.jsx(fn,{}),c.jsx("div",{className:"flex items-center justify-center py-32",children:c.jsx("p",{className:"text-muted-foreground",children:e("careers.loading","Loading...")})}),c.jsx(pn,{})]}):s||!r?c.jsxs("div",{className:"min-h-screen bg-background",children:[c.jsx(fn,{}),c.jsxs("div",{className:"flex flex-col items-center justify-center py-32 px-6",children:[c.jsx("h1",{className:"text-2xl font-bold text-foreground mb-4",children:e("careers.notFound.title","Job Not Found")}),c.jsx("p",{className:"text-muted-foreground mb-6",children:e("careers.notFound.description","This position may no longer be available.")}),c.jsx(ut,{to:"/careers",children:c.jsxs(de,{children:[c.jsx(ss,{className:"w-4 h-4 mr-2"}),e("careers.backToJobs","Back to All Jobs")]})})]}),c.jsx(pn,{})]}):r.slug&&n!==r.slug?c.jsx(oZ,{to:`/careers/${r.slug}`,replace:!0}):c.jsxs("div",{className:"min-h-screen bg-background",children:[c.jsx(hr,{title:`${a("title")} | Careers at Ekko`,description:a("description").slice(0,155),path:`/careers/${r.slug||r.id}`,type:"article",jsonLd:{"@context":"https://schema.org","@type":"JobPosting",title:a("title"),description:a("description"),datePosted:new Date().toISOString().split("T")[0],employmentType:r.type,hiringOrganization:{"@type":"Organization",name:"Ekko",sameAs:"https://ekko.vn"},jobLocation:{"@type":"Place",address:{"@type":"PostalAddress",addressLocality:r.location,addressCountry:"VN"}}}}),c.jsx(fn,{}),c.jsx("section",{className:"px-6 pt-24 pb-16 md:px-12 lg:px-16",children:c.jsxs("div",{className:"max-w-5xl mx-auto",children:[c.jsxs(ut,{to:"/careers",className:"inline-flex items-center gap-2 text-muted-foreground hover:text-foreground mb-8 transition-colors",children:[c.jsx(ss,{className:"w-4 h-4"}),e("careers.backToJobs","Back to All Jobs")]}),c.jsxs("div",{className:"grid lg:grid-cols-3 gap-12",children:[c.jsx("div",{className:"lg:col-span-2",children:c.jsxs(U.div,{initial:{opacity:0,y:20}
636,animate:{opacity:1,y:0},children:[c.jsx("h1",{className:"text-3xl md:text-4xl font-bold text-foreground mb-4",children:a("title")}),c.jsxs("div",{className:"flex flex-wrap items-center gap-4 text-muted-foreground mb-8",children:[c.jsxs("span",{className:"flex items-center gap-1",children:[c.jsx(Tp,{className:"w-4 h-4"}),r.department]}),r.location.split(",").map((o,l)=>c.jsxs("span",{className:"flex items-center gap-1",children:[c.jsx(R_,{className:"w-4 h-4"}),o.trim()]},l)),c.jsxs("span",{className:"flex items-center gap-1",children:[c.jsx(Ol,{className:"w-4 h-4"}),r.type]})]}),c.jsxs("div",{className:"prose prose-slate max-w-none",children:[c.jsx("h2",{className:"text-xl font-semibold text-foreground mb-4",children:e("careers.sections.description","Job Description")}),c.jsx("div",{className:"text-muted-foreground whitespace-pre-wrap mb-8",children:a("description")}),c.jsx("h2",{className:"text-xl font-semibold text-foreground mb-4",children:e("careers.sections.requirements","Requirements")}),c.jsx("div",{className:"text-muted-foreground whitespace-pre-wrap mb-8",children:a("requirements")}),r.benefits&&c.jsxs(c.Fragment,{children:[c.jsx("h2",{className:"text-xl font-semibold text-foreground mb-4",children:e("careers.sections.benefits","Benefits")}),c.jsx("div",{className:"text-muted-foreground whitespace-pre-wrap",children:a("benefits")})]})]})]})}),c.jsx("div",{className:"lg:col-span-1",children:c.jsxs(U.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.1},className:"sticky top-24 bg-card border border-border rounded-xl p-6",children:[c.jsx("h3",{className:"text-lg font-semibold text-foreground mb-4",children:e("careers.apply.title","Apply for this position")}),c.jsx("p",{className:"text-muted-foreground text-sm mb-6",children:e("careers.apply.instructions","To apply, please send your application including:")}),c.jsxs("ul",{className:"text-muted-foreground text-sm space-y-2 mb-6 list-disc list-inside",children:[c.jsx("li",{children:e("careers.apply.requirement.position","Position you're applying for")}),c.jsx("li",{children:e("careers.apply.requirement.coverLetter","Cover letter")}),c.jsx("li",{children:e("careers.apply.requirement.cv","CV/Resume")})]}),c.jsxs("div",{className:"space-y-4",children:[c.jsxs("a",{href:"mailto:[email protected]",className:"flex items-center gap-3 p-3 bg-secondary/50 rounded-lg hover:bg-secondary transition-colors group",children:[c.jsx("div",{className:"w-10 h-10 rounded-full bg-primary/10 flex items-center justify-center",children:c.jsx(mu,{className:"w-5 h-5 text-primary"})}),c.jsxs("div",{children:[c.jsx("p",{className:"text-xs text-muted-foreground",children:e("careers.apply.email","Email")}),c.jsx("p",{className:"font-medium text-foreground group-hover:text-primary transition-colors",children:"[email protected]"})]})]}),c.jsxs("a",{href:"tel:0363287402",className:"flex items-center gap-3 p-3 bg-secondary/50 rounded-lg hover:bg-secondary transition-colors group",children:[c.jsx("div",{className:"w-10 h-10 rounded-full bg-primary/10 flex items-center justify-center",children:c.jsx(Cp,{className:"w-5 h-5 text-primary"})}),c.jsxs("div",{children:[c.jsx("p",{className:"text-xs text-muted-foreground",children:e("careers.apply.phone","Phone")}),c.jsx("p",{className:"font-medium text-foreground group-hover:text-primary transition-colors",children:"0363 287 402"})]})]})]})]})})]})]})}),c.jsx(pn,{})]})};var U4e="Label",EU=w.forwardRef((e,t)=>c.jsx(we.label,{...e,ref:t,onMouseDown:n=>{var i;n.target.closest("button, input, select, textarea")||((i=e.onMouseDown)==null||i.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));EU.displayName=U4e;var TU=EU;const W4e=C_("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),He=w.forwardRef(({className:e,...t},n)=>c.jsx(TU,{ref:n,className:ye(W4e(),e),...t}));He.displayName=TU.displayName;const Wt=w.forwardRef(({className:e,...t},n)=>c.jsx("div",{ref:n,className:ye("rounded-lg border bg-card text-card-foreground shadow-sm",e),...t}));Wt.displayName="Card";const br=w.forwardRef(({className:e,...t},n)=>c.jsx("div",{ref:n,className:ye("flex flex-col space-y-1.5 p-6",e),...t}));
636br.displayName="CardHeader";const wr=w.forwardRef(({className:e,...t},n)=>c.jsx("h3",{ref:n,className:ye("text-2xl font-semibold leading-none tracking-tight",e),...t}));wr.displayName="CardTitle";const Si=w.forwardRef(({className:e,...t},n)=>c.jsx("p",{ref:n,className:ye("text-sm text-muted-foreground",e),...t}));Si.displayName="CardDescription";const gn=w.forwardRef(({className:e,...t},n)=>c.jsx("div",{ref:n,className:ye("p-6 pt-0",e),...t}));gn.displayName="CardContent";const z4e=w.forwardRef(({className:e,...t},n)=>c.jsx("div",{ref:n,className:ye("flex items-center p-6 pt-0",e),...t}));z4e.displayName="CardFooter";const H4e=()=>{const e=Ar(),{toast:t}=ls(),[n,r]=w.useState(""),[i,s]=w.useState(""),[a,o]=w.useState(!1),l=async u=>{u.preventDefault(),o(!0);try{const{data:d,error:h}=await ne.auth.signInWithPassword({email:n,password:i});if(h)throw h;const{data:f,error:p}=await ne.from("user_roles").select("role").eq("user_id",d.user.id);if(p)throw p;const g=(f??[]).map(v=>v.role),m=g.includes("admin"),y=g.includes("staff");if(!m&&!y)throw await ne.auth.signOut(),new Error("You don't have access");t({title:"Welcome back!",description:"You've been logged in successfully."}),e(m?"/admin":"/admin/pages")}catch(d){t({title:"Login Failed",description:d.message||"Invalid credentials",variant:"destructive"})}finally{o(!1)}};return c.jsx("div",{className:"min-h-screen bg-secondary flex items-center justify-center px-6",children:c.jsxs(U.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"w-full max-w-md",children:[c.jsxs("div",{className:"text-center mb-8",children:[c.jsx("img",{src:ho,alt:"Ekko",className:"h-10 mx-auto mb-4"}),c.jsx("h1",{className:"text-2xl font-bold text-foreground",children:"Admin Portal"})]}),c.jsxs(Wt,{children:[c.jsxs(br,{children:[c.jsx(wr,{children:"Sign In"}),c.jsx(Si,{children:"Enter your credentials to access the admin dashboard"})]}),c.jsx(gn,{children:c.jsxs("form",{onSubmit:l,className:"space-y-4",children:[c.jsxs("div",{children:[c.jsx(He,{htmlFor:"email",children:"Email"}),c.jsx(zt,{id:"email",type:"email",value:n,onChange:u=>r(u.target.value),required:!0,placeholder:"[email protected]"})]}),c.jsxs("div",{children:[c.jsx(He,{htmlFor:"password",children:"Password"}),c.jsx(zt,{id:"password",type:"password",value:i,onChange:u=>s(u.target.value),required:!0,placeholder:"â¢â¢â¢â¢â¢â¢â¢â¢"})]}),c.jsx(de,{type:"submit",className:"w-full",disabled:a,children:a?"Signing in...":"Sign In"})]})})]})]})})},K4e=()=>{const e=Ar(),[t,n]=w.useState(!0);w.useEffect(()=>{(async()=>{const{data:{user:f}}=await ne.auth.getUser();if(!f){e("/admin/login");return}const{data:p}=await ne.from("user_roles").select("role").eq("user_id",f.id).eq("role","admin").maybeSingle();if(!p){await ne.auth.signOut(),e("/admin/login");return}n(!1)})()},[e]);const{data:r=0}=dn({queryKey:["news-count"],queryFn:async()=>{const{count:h}=await ne.from("news_articles").select("*",{count:"exact",head:!0});return h||0},enabled:!t}),{data:i=0}=dn({queryKey:["jobs-count"],queryFn:async()=>{const{count:h}=await ne.from("job_postings").select("*",{count:"exact",head:!0});return h||0},enabled:!t}),{data:s=0}=dn({queryKey:["applications-count"],queryFn:async()=>{const{count:h}=await ne.from("job_applications").select("*",{count:"exact",head:!0});return h||0},enabled:!t}),{data:a=0}=dn({queryKey:["inquiries-count"],queryFn:async()=>{const{count:h}=await ne.from("business_inquiries").select("*",{count:"exact",head:!0});return h||0},enabled:!t}),{data:o=0}=dn({queryKey:["protected-pages-count"],queryFn:async()=>{const{count:h}=await ne.from("protected_pages").select("*",{count:"exact",head:!0});return h||0},enabled:!t}),{data:l=0}=dn({queryKey:["staff-count"],queryFn:async()=>{const{count:h}=await ne.from("user_roles").select("*",{count:"exact",head:!0});return h||0},enabled:!t}),u=async()=>{await ne.auth.signOut(),e("/admin/login")};if(t)return c.jsx("div",{className:"min-h-screen bg-secondary flex items-center justify-center",children:c.jsx("p",{className:"text-muted-foreground",children:"Loading..."})});const d=[{title:"News Articles",description:"Manage blog posts and news articles",icon:PK,href:"/admin/news",count:r},{title:"Job Postings",description:"Manage career opportunities",icon:Tp,href:"/admin/jobs",count:i}
636,{title:"Applications",description:"Review job applications",icon:Za,href:"/admin/applications",count:s},{title:"Business Inquiries",description:"View contact form submissions",icon:Lc,href:"/admin/inquiries",count:a},{title:"Protected Pages",description:"Create and manage password-protected pages",icon:O4,href:"/admin/pages",count:o},{title:"Team & Access",description:"Invite staff and manage portal access",icon:D4,href:"/admin/staff",count:l},{title:"Page Visits",description:"Daily traffic for campaign pages (e.g. /CPcampaign)",icon:A_,href:"/admin/visits",count:0}];return c.jsxs("div",{className:"min-h-screen bg-secondary",children:[c.jsx("header",{className:"bg-background border-b border-border px-6 py-4",children:c.jsxs("div",{className:"max-w-7xl mx-auto flex items-center justify-between",children:[c.jsxs("div",{className:"flex items-center gap-4",children:[c.jsx("img",{src:ho,alt:"Ekko",className:"h-8"}),c.jsx("span",{className:"text-lg font-semibold text-foreground",children:"Admin Dashboard"})]}),c.jsxs("div",{className:"flex items-center gap-4",children:[c.jsx(ut,{to:"/",className:"text-muted-foreground hover:text-foreground text-sm",children:"View Site"}),c.jsxs(de,{variant:"outline",size:"sm",onClick:u,children:[c.jsx(O_,{className:"w-4 h-4 mr-2"}),"Logout"]})]})]})}),c.jsx("main",{className:"max-w-7xl mx-auto px-6 py-12",children:c.jsxs(U.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},children:[c.jsxs("div",{className:"mb-8",children:[c.jsx("h1",{className:"text-3xl font-bold text-foreground mb-2",children:"Welcome Back"}),c.jsx("p",{className:"text-muted-foreground",children:"Manage your content and applications"})]}),c.jsx("div",{className:"grid md:grid-cols-3 gap-6",children:d.map((h,f)=>c.jsx(U.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:f*.1},children:c.jsx(ut,{to:h.href,children:c.jsxs(Wt,{className:"hover:border-primary/50 hover:shadow-lg transition-all cursor-pointer group",children:[c.jsx(br,{children:c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsx("div",{className:"w-12 h-12 rounded-lg bg-primary/10 flex items-center justify-center",children:c.jsx(h.icon,{className:"w-6 h-6 text-primary"})}),c.jsx("span",{className:"text-2xl font-bold text-foreground",children:h.count})]})}),c.jsxs(gn,{children:[c.jsxs(wr,{className:"mb-1 group-hover:text-primary transition-colors flex items-center justify-between",children:[h.title,c.jsx(Fs,{className:"w-5 h-5 opacity-0 group-hover:opacity-100 transition-opacity"})]}),c.jsx(Si,{children:h.description}),h.href==="/admin/pages"&&c.jsxs("div",{className:"mt-4 text-sm font-medium text-primary flex items-center gap-1",children:["Open page builder ",c.jsx(Fs,{className:"w-4 h-4"})]})]})]})})},h.title))})]})})]})},wi=w.forwardRef(({className:e,...t},n)=>c.jsx("textarea",{className:ye("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm r
636ing-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:n,...t}));wi.displayName="Textarea";var Nb="Dialog",[NU,CU]=dr(Nb),[G4e,Di]=NU(Nb),AU=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:i,onOpenChange:s,modal:a=!0}=e,o=w.useRef(null),l=w.useRef(null),[u,d]=Xr({prop:r,defaultProp:i??!1,onChange:s,caller:Nb});return c.jsx(G4e,{scope:t,triggerRef:o,contentRef:l,contentId:jr(),titleId:jr(),descriptionId:jr(),open:u,onOpenChange:d,onOpenToggle:w.useCallback(()=>d(h=>!h),[d]),modal:a,children:n})};AU.displayName=Nb;var PU="DialogTrigger",OU=w.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=Di(PU,n),s=qe(t,i.triggerRef);return c.jsx(we.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":yN(i.open),...r,ref:s,onClick:te(e.onClick,i.onOpenToggle)})});OU.displayName=PU;var mN="DialogPortal",[Y4e,RU]=NU(mN,{forceMount:void 0}),IU=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:i}=e,s=Di(mN,t);return c.jsx(Y4e,{scope:t,forceMount:n,children:w.Children.map(r,a=>c.jsx(Jr,{present:n||s.open,children:c.jsx(_p,{asChild:!0,container:i,children:a})}))})};IU.displayName=mN;var Av="DialogOverlay",MU=w.forwardRef((e,t)=>{const n=RU(Av,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,s=Di(Av,e.__scopeDialog);return s.modal?c.jsx(Jr,{present:r||s.open,children:c.jsx(Q4e,{...i,ref:t})}):null});MU.displayName=Av;var X4e=yl("DialogOverlay.RemoveScroll"),Q4e=w.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=Di(Av,n);return c.jsx(mx,{as:X4e,allowPinchZoom:!0,shards:[i.contentRef],children:c.jsx(we.div,{"data-state":yN(i.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),El="DialogContent",$U=w.forwardRef((e,t)=>{const n=RU(El,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,s=Di(El,e.__scopeDialog);return c.jsx(Jr,{present:r||s.open,children:s.modal?c.jsx(Z4e,{...i,ref:t}):c.jsx(J4e,{...i,ref:t})})});$U.displayName=El;var Z4e=w.forwardRef((e,t)=>{const n=Di(El,e.__scopeDialog),r=w.useRef(null),i=qe(t,n.contentRef,r);return w.useEffect(()=>{const s=r.current;if(s)return lE(s)},[]),c.jsx(DU,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:te(e.onCloseAutoFocus,s=>{var a;s.preventDefault(),(a=n.triggerRef.current)==null||a.focus()}),onPointerDownOutside:te(e.onPointerDownOutside,s=>{const a=s.detail.originalEvent,o=a.button===0&&a.ctrlKey===!0;(a.button===2||o)&&s.preventDefault()}),onFocusOutside:te(e.onFocusOutside,s=>s.preventDefault())})}),J4e=w.forwardRef((e,t)=>{const n=Di(El,e.__scopeDialog),r=w.useRef(!1),i=w.useRef(!1);return c.jsx(DU,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{var a,o;(a=e.onCloseAutoFocus)==null||a.call(e,s),s.defaultPrevented||(r.current||(o=n.triggerRef.current)==null||o.focus(),s.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:s=>{var l,u;(l=e.onInteractOutside)==null||l.call(e,s),s.defaultPrevented||(r.current=!0,s.detail.originalEvent.type==="pointerdown"&&(i.current=!0));const a=s.target;((u=n.triggerRef.current)==null?void 0:u.contains(a))&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&i.current&&s.preventDefault()}})}),DU=w.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:s,...a}=e,o=Di(El,n),l=w.useRef(null),u=qe(t,l);return oE(),c.jsxs(c.Fragment,{children:[c.jsx(hx,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:s,children:c.jsx(Zu,{role:"dialog",id:o.contentId,"aria-describedby":o.descriptionId,"aria-labelledby":o.titleId,"data-state":yN(o.open),...a,ref:u,onDismiss:()=>o.onOpenChange(!1)})}),c.jsxs(c.Fragment,{children:[c.jsx(t3e,{titleId:o.titleId}),c.jsx(r3e,{contentRef:l,descriptionId:o.descriptionId})]})]})}),gN="DialogTitle",LU=w.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=Di(gN,n);return c.jsx(we.h2,{id:i.titleId,...r,ref:t})});LU.displayName=gN;var FU="DialogDescription",BU=w.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=Di(FU,n);return c.jsx(we.p,{id:i.descriptionId,...r,ref:t})});BU.displayName=FU;var VU="DialogClose",qU=w.forwardRef((e,t)=>
vendor: 2,097 bytes, lines 636-640
636{const{__scopeDialog:n,...r}=e,i=Di(VU,n);return c.jsx(we.button,{type:"button",...r,ref:t,onClick:te(e.onClick,()=>i.onOpenChange(!1))})});qU.displayName=VU;function yN(e){return e?"open":"closed"}var UU="DialogTitleWarning",[e3e,WU]=j7(UU,{contentName:El,titleName:gN,docsSlug:"dialog"}),t3e=({titleId:e})=>{const t=WU(UU),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users. 637 638If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component. 639 640For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return w.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},n3e="DialogDescriptionWarning",r3e=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${WU(n3e).contentName}}.`;return w.useEffect(()=>{var s;const i=(s=e.current)==null?void 0:s.getAttribute("aria-describedby");t&&i&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},zU=AU,HU=OU,KU=IU,vN=MU,xN=$U,bN=LU,wN=BU,kN=qU;const hp=zU,SN=HU,i3e=KU,GU=w.forwardRef(({className:e,...t},n)=>c.jsx(vN,{ref:n,className:ye("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));GU.displayName=vN.displayName;const Hu=w.forwardRef(({className:e,children:t,...n},r)=>c.jsxs(i3e,{children:[c.jsx(GU,{}),c.jsxs(xN,{ref:r,className:ye("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...n,children:[t,c.jsxs(kN,{className:"absolute right-4 top-4 roun
640ded-sm opacity-70 ring-offset-background transition-opacity data-[state=open]:bg-accent data-[state=open]:text-muted-foreground hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none",children:[c.jsx(rx,{className:"h-4 w-4"}),c.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));Hu.displayName=xN.displayName;const Ku=({className:e,...t})=>c.jsx("div",{className:ye("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});Ku.displayName="DialogHeader";const YU=({className:e,...t})=>c.jsx("div",{className:ye("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});YU.displayName="DialogFooter";const Gu=w.forwardRef(({className:e,...t},n)=>c.jsx(bN,{ref:n,className:ye("text-lg font-semibold leading-none tracking-tight",e),...t}));Gu.displayName=bN.displayName;const s3e=w.forwardRef(({className:e,...t},n)=>c.jsx(wN,{ref:n,className:ye("text-sm text-muted-foreground",e),...t}));s3e.displayName=wN.displayName;function p$(e,[t,n]){return Math.min(n,Math.max(t,e))}function XU(e){const t=w.useRef({value:e,previous:e});return w.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var a3e=[" ","Enter","ArrowUp","ArrowDown"],o3e=[" ","Enter"],Tl="Select",[Cb,Ab,l3e]=jp(Tl),[Sd,x6e]=dr(Tl,[l3e,nd]),Pb=nd(),[c3e,xo]=Sd(Tl),[u3e,d3e]=Sd(Tl),QU=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:i,onOpenChange:s,value:a,defaultValue:o,onValueChange:l,dir:u,name:d,autoComplete:h,disabled:f,required:p,form:g}=e,m=Pb(t),[y,v]=w.useState(null),[x,b]=w.useState(null),[S,k]=w.useState(!1),j=Op(u),[_,E]=Xr({prop:r,defaultProp:i??!1,onChange:s,caller:Tl}),[T,N]=Xr({prop:a,defaultProp:o,onChange:l,caller:Tl}),P=w.useRef(null),C=y?g||!!y.closest("form"):!0,[M,R]=w.useState(new Set),D=Array.from(M).map(L=>L.props.value).join(";");return c.jsx(H_,{...m,children:c.jsxs(c3e,{required:p,scope:t,trigger:y,onTriggerChange:v,valueNode:x,onValueNodeChange:b,valueNodeHasChildren:S,onValueNodeHasChildrenChange:k,contentId:jr(),value:T,onValueChange:N,open:_,onOpenChange:E,dir:j,triggerPointerDownPosRef:P,disabled:f,children:[c.jsx(Cb.Provider,{scope:t,children:c.jsx(u3e,{scope:e.__scopeSelect,onNativeOptionAdd:w.useCallback(L=>{R(B=>new Set(B).add(L))},[]),onNativeOptionRemove:w.useCallback(L=>{R(B=>{const I=new Set(B);return I.delete(L),I})},[]),children:n})}),C?c.jsxs(wW,{"aria-hidden":!0,required:p,tabIndex:-1,name:d,autoComplete:h,value:T,onChange:L=>N(L.target.value),disabled:f,form:g,children:[T===void 0?c.jsx("option",{value:""}):null,Array.from(M)]},D):null]})})};QU.displayName=Tl;var ZU="SelectTrigger",JU=w.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...i}=e,s=Pb(n),a=xo(ZU,n),o=a.disabled||r,l=qe(t,a.onTriggerChange),u=Ab(n),d=w.useRef("touch"),[h,f,p]=SW(m=>{const y=u().filter(b=>!b.disabled),v=y.find(b=>b.value===a.value),x=jW(y,m,v);x!==void 0&&a.onValueChange(x.value)}),g=m=>{o||(a.onOpenChange(!0),p()),m&&(a.triggerPointerDownPosRef.current={x:Math.round(m.pageX),y:Math.round(m.pageY)})};return c.jsx(K_,{asChild:!0,...s,children:c.jsx(we.button,{type:"button",role:"combobox","aria-controls":a.contentId,"aria-expanded":a.open,"aria-required":a.required,"aria-autocomplete":"none",dir:a.dir,"data-state":a.open?"open":"closed",disabled:o,"data-disabled":o?"":void 0,"data-placeholder":kW(a.value)?"":void 0,...i,ref:l,onClick:te(i.onClick,m=>{m.currentTarget.focus(),d.current!=="mouse"&&g(m)}),onPointerDown:te(i.onPointerDown,m=>{d.current=m.pointerType;const y=m.target;y.hasPointerCapture(m.pointerId)&&y.releasePointerCapture(m.pointerId),m.button===0&&m.ctrlKey===!1&&m.pointerType==="mouse"&&(g(m),m.preventDefault())}),onKeyDown:te(i.onKeyDown,m=>{const y=h.current!=="";!(m.ctrlKey||m.altKey||m.metaKey)&&m.key.length===1&&f(m.key),!(y&&m.key===" ")&&a3e.includes(m.key)&&(g(),m.preventDefault())})})})});JU.displayName=ZU;var eW="SelectValue",tW=w.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:i,children:s,placeholder:a="",...o}=e,l=xo(eW,n),{onValueNodeHasChildrenChange:u}=l,d=s!==void 0,h=qe(t,l.onValueNodeChange);return mn(()=>{u(d)},[u,d]),c.jsx(we.span,{...o,ref:h,style:{pointerEvents:"none"},children:kW(l.value)?c.jsx(c.Fragment,{children:a}):s})});tW.displayName=eW;var h3e="SelectIcon",nW=w.forwardRef((e,t)=>
vendor: 15,126 bytes, line 640
640{const{__scopeSelect:n,children:r,...i}=e;return c.jsx(we.span,{"aria-hidden":!0,...i,ref:t,children:r||"â¼"})});nW.displayName=h3e;var f3e="SelectPortal",rW=e=>c.jsx(_p,{asChild:!0,...e});rW.displayName=f3e;var Nl="SelectContent",iW=w.forwardRef((e,t)=>{const n=xo(Nl,e.__scopeSelect),[r,i]=w.useState();if(mn(()=>{i(new DocumentFragment)},[]),!n.open){const s=r;return s?Pl.createPortal(c.jsx(sW,{scope:e.__scopeSelect,children:c.jsx(Cb.Slot,{scope:e.__scopeSelect,children:c.jsx("div",{children:e.children})})}),s):null}return c.jsx(aW,{...e,ref:t})});iW.displayName=Nl;var pi=10,[sW,bo]=Sd(Nl),p3e="SelectContentImpl",m3e=yl("SelectContent.RemoveScroll"),aW=w.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:i,onEscapeKeyDown:s,onPointerDownOutside:a,side:o,sideOffset:l,align:u,alignOffset:d,arrowPadding:h,collisionBoundary:f,collisionPadding:p,sticky:g,hideWhenDetached:m,avoidCollisions:y,...v}=e,x=xo(Nl,n),[b,S]=w.useState(null),[k,j]=w.useState(null),_=qe(t,Y=>S(Y)),[E,T]=w.useState(null),[N,P]=w.useState(null),C=Ab(n),[M,R]=w.useState(!1),D=w.useRef(!1);w.useEffect(()=>{if(b)return lE(b)},[b]),oE();const L=w.useCallback(Y=>{const[ce,...K]=C().map(F=>F.ref.current),[Q]=K.slice(-1),G=document.activeElement;for(const F of Y)if(F===G||(F==null||F.scrollIntoView({block:"nearest"}),F===ce&&k&&(k.scrollTop=0),F===Q&&k&&(k.scrollTop=k.scrollHeight),F==null||F.focus(),document.activeElement!==G))return},[C,k]),B=w.useCallback(()=>L([E,b]),[L,E,b]);w.useEffect(()=>{M&&B()},[M,B]);const{onOpenChange:I,triggerPointerDownPosRef:O}=x;w.useEffect(()=>{if(b){let Y={x:0,y:0};const ce=Q=>{var G,F;Y={x:Math.abs(Math.round(Q.pageX)-(((G=O.current)==null?void 0:G.x)??0)),y:Math.abs(Math.round(Q.pageY)-(((F=O.current)==null?void 0:F.y)??0))}},K=Q=>{Y.x<=10&&Y.y<=10?Q.preventDefault():b.contains(Q.target)||I(!1),document.removeEventListener("pointermove",ce),O.current=null};return O.current!==null&&(document.addEventListener("pointermove",ce),document.addEventListener("pointerup",K,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",ce),document.removeEventListener("pointerup",K,{capture:!0})}}},[b,I,O]),w.useEffect(()=>{const Y=()=>I(!1);return window.addEventListener("blur",Y),window.addEventListener("resize",Y),()=>{window.removeEventListener("blur",Y),window.removeEventListener("resize",Y)}},[I]);const[V,z]=SW(Y=>{const ce=C().filter(G=>!G.disabled),K=ce.find(G=>G.ref.current===document.activeElement),Q=jW(ce,Y,K);Q&&setTimeout(()=>Q.ref.current.focus())}),q=w.useCallback((Y,ce,K)=>{const Q=!D.current&&!K;(x.value!==void 0&&x.value===ce||Q)&&(T(Y),Q&&(D.current=!0))},[x.value]),X=w.useCallback(()=>b==null?void 0:b.focus(),[b]),J=w.useCallback((Y,ce,K)=>{const Q=!D.current&&!K;(x.value!==void 0&&x.value===ce||Q)&&P(Y)},[x.value]),xe=r==="popper"?jj:oW,ke=xe===jj?{side:o,sideOffset:l,align:u,alignOffset:d,arrowPadding:h,collisionBoundary:f,collisionPadding:p,sticky:g,hideWhenDetached:m,avoidCollisions:y}:{};return c.jsx(sW,{scope:n,content:b,viewport:k,onViewportChange:j,itemRefCallback:q,selectedItem:E,onItemLeave:X,itemTextRefCallback:J,focusSelectedItem:B,selectedItemText:N,position:r,isPositioned:M,searchRef:V,children:c.jsx(mx,{as:m3e,allowPinchZoom:!0,children:c.jsx(hx,{asChild:!0,trapped:x.open,onMountAutoFocus:Y=>{Y.preventDefault()},onUnmountAutoFocus:te(i,Y=>{var ce;(ce=x.trigger)==null||ce.focus({preventScroll:!0}),Y.preventDefault()}),children:c.jsx(Zu,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:a,onFocusOutside:Y=>Y.preventDefault(),onDismiss:()=>x.onOpenChange(!1),children:c.jsx(xe,{role:"listbox",id:x.contentId,"data-state":x.open?"open":"closed",dir:x.dir,onContextMenu:Y=>Y.preventDefault(),...v,...ke,onPlaced:()=>R(!0),ref:_,style:{display:"flex",flexDirection:"column",outline:"none",...v.style},onKeyDown:te(v.onKeyDown,Y=>{const ce=Y.ctrlKey||Y.altKey||Y.metaKey;if(Y.key==="Tab"&&Y.preventDefault(),!ce&&Y.key.length===1&&z(Y.key),["ArrowUp","ArrowDown","Home","End"].includes(Y.key)){let Q=C().filter(G=>!G.disabled).map(G=>G.ref.current);if(["ArrowUp","End"].includes(Y.key)&&(Q=Q.slice().reverse()),["ArrowUp","ArrowDown"].includes(Y.key)){const G=Y.target,F=Q.indexOf(G);Q=Q.slice(F+1)}setTimeout(()=>L(Q)),Y.preventDefault()}})})})})})})});aW.displayName=p3e;var g3e="SelectItemAlignedPosition",oW=w.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...i}=e,s=xo(Nl,n),a=bo(Nl,n),[o,l]=w.useState(null),[u,d]=w.useState(null),h=qe(t,_=>d(_)),f=Ab(n),p=w.useRef(!1),g=w.useRef(!0),{viewport:m,selectedItem:y,selectedItemText:v,focusSelectedItem:x}=a,b=w.useCallback(()=>{if(s.trigger&&s.valueNode&&o&&u&&m&&y&&v){const _=s.trigger.getBoundingClientRect(),E=u.getBoundingClientRect(),T=s.valueNode.getBoundingClientRect(),N=v.getBoundingClientRect();if(s.dir!=="rtl"){const G=N.left-E.left,F=T.left-G,ue=_.left-F,ae=_.width+ue,Ae=Math.max(ae,E.width),Ie=window.innerWidth-pi,Ge=p$(F,[pi,Math.max(pi,Ie-Ae)]);o.style.minWidth=ae+"px",o.style.left=Ge+"px"}else{const G=E.right-N.right,F=window.innerWidth-T.right-G,ue=window.innerWidth-_.right-F,ae=_.width+ue,Ae=Math.max(ae,E.width),Ie=window.innerWidth-pi,Ge=p$(F,[pi,Math.max(pi,Ie-Ae)]);o.style.minWidth=ae+"px",o.style.right=Ge+"px"}const P=f(),C=window.innerHeight-pi*2,M=m.scrollHeight,R=window.getComputedStyle(u),D=parseInt(R.borderTopWidth,10),L=parseInt(R.paddingTop,10),B=parseInt(R.borderBottomWidth,10),I=parseInt(R.paddingBottom,10),O=D+L+M+I+B,V=Math.min(y.offsetHeight*5,O),z=window.getComputedStyle(m),q=parseInt(z.paddingTop,10),X=parseInt(z.paddingBottom,10),J=_.top+_.height/2-pi,xe=C-J,ke=y.offsetHeight/2,Y=y.offsetTop+ke,ce=D+L+Y,K=O-ce;if(ce<=J){const G=P.length>0&&y===P[P.length-1].ref.current;o.style.bottom="0px";const F=u.clientHeight-m.offsetTop-m.offsetHeight,ue=Math.max(xe,ke+(G?X:0)+F+B),ae=ce+ue;o.style.height=ae+"px"}else{const G=P.length>0&&y===P[0].ref.current;o.style.top="0px";const ue=Math.max(J,D+m.offsetTop+(G?q:0)+ke)+K;o.style.height=ue+"px",m.scrollTop=ce-J+m.offsetTop}o.style.margin=`${pi}px 0`,o.style.minHeight=V+"px",o.style.maxHeight=C+"px",r==null||r(),requestAnimationFrame(()=>p.current=!0)}},[f,s.trigger,s.valueNode,o,u,m,y,v,s.dir,r]);mn(()=>b(),[b]);const[S,k]=w.useState();mn(()=>{u&&k(window.getComputedStyle(u).zIndex)},[u]);const j=w.useCallback(_=>{_&&g.current===!0&&(b(),x==null||x(),g.current=!1)},[b,x]);return c.jsx(v3e,{scope:n,contentWrapper:o,shouldExpandOnScrollRef:p,onScrollButtonChange:j,children:c.jsx("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:S},children:c.jsx(we.div,{...i,ref:h,style:{boxSizing:"border-box",maxHeight:"100%",...i.style}})})})});oW.displayName=g3e;var y3e="SelectPopperPosition",jj=w.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:i=pi,...s}=e,a=Pb(n);return c.jsx(G_,{...a,...s,ref:t,align:r,collisionPadding:i,style:{boxSizing:"border-box",...s.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});jj.displayName=y3e;var[v3e,jN]=Sd(Nl,{}),_j="SelectViewport",lW=w.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...i}=e,s=bo(_j,n),a=jN(_j,n),o=qe(t,s.onViewportChange),l=w.useRef(0);return c.jsxs(c.Fragment,{children:[c.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),c.jsx(Cb.Slot,{scope:n,children:c.jsx(we.div,{"data-radix-select-viewport":"",role:"presentation",...i,ref:o,style:{position:"relative",flex:1,overflow:"hidden auto",...i.style},onScroll:te(i.onScroll,u=>{const d=u.currentTarget,{contentWrapper:h,shouldExpandOnScrollRef:f}=a;if(f!=null&&f.current&&h){const p=Math.abs(l.current-d.scrollTop);if(p>0){const g=window.innerHeight-pi*2,m=parseFloat(h.style.minHeight),y=parseFloat(h.style.height),v=Math.max(m,y);if(v<g){const x=v+p,b=Math.min(g,x),S=x-b;h.style.height=b+"px",h.style.bottom==="0px"&&(d.scrollTop=S>0?S:0,h.style.justifyContent="flex-end")}}}l.current=d.scrollTop})})})]})});lW.displayName=_j;var cW="SelectGroup",[x3e,b3e]=Sd(cW),w3e=w.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,i=jr();return c.jsx(x3e,{scope:n,id:i,children:c.jsx(we.div,{role:"group","aria-labelledby":i,...r,ref:t})})});w3e.displayName=cW;var uW="SelectLabel",dW=w.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,i=b3e(uW,n);return c.jsx(we.div,{id:i.id,...r,ref:t})});dW.displayName=uW;var Pv="SelectItem",[k3e,hW]=Sd(Pv),fW=w.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:i=!1,textValue:s,...a}=e,o=xo(Pv,n),l=bo(Pv,n),u=o.value===r,[d,h]=w.useState(s??""),[f,p]=w.useState(!1),g=qe(t,x=>{var b;return(b=l.itemRefCallback)==null?void 0:b.call(l,x,r,i)}),m=jr(),y=w.useRef("touch"),v=()=>{i||(o.onValueChange(r),o.onOpenChange(!1))};if(r==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return c.jsx(k3e,{scope:n,value:r,disabled:i,textId:m,isSelected:u,onItemTextChange:w.useCallback(x=>{h(b=>b||((x==null?void 0:x.textContent)??"").trim())},[]),children:c.jsx(Cb.ItemSlot,{scope:n,value:r,disabled:i,textValue:d,children:c.jsx(we.div,{role:"option","aria-labelledby":m,"data-highlighted":f?"":void 0,"aria-selected":u&&f,"data-state":u?"checked":"unchecked","aria-disabled":i||void 0,"data-disabled":i?"":void 0,tabIndex:i?void 0:-1,...a,ref:g,onFocus:te(a.onFocus,()=>p(!0)),onBlur:te(a.onBlur,()=>p(!1)),onClick:te(a.onClick,()=>{y.current!=="mouse"&&v()}),onPointerUp:te(a.onPointerUp,()=>{y.current==="mouse"&&v()}),onPointerDown:te(a.onPointerDown,x=>{y.current=x.pointerType}),onPointerMove:te(a.onPointerMove,x=>{var b;y.current=x.pointerType,i?(b=l.onItemLeave)==null||b.call(l):y.current==="mouse"&&x.currentTarget.focus({preventScroll:!0})}),onPointerLeave:te(a.onPointerLeave,x=>{var b;x.currentTarget===document.activeElement&&((b=l.onItemLeave)==null||b.call(l))}),onKeyDown:te(a.onKeyDown,x=>{var S;((S=l.searchRef)==null?void 0:S.current)!==""&&x.key===" "||(o3e.includes(x.key)&&v(),x.key===" "&&x.preventDefault())})})})})});fW.displayName=Pv;var fh="SelectItemText",pW=w.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:i,...s}=e,a=xo(fh,n),o=bo(fh,n),l=hW(fh,n),u=d3e(fh,n),[d,h]=w.useState(null),f=qe(t,v=>h(v),l.onItemTextChange,v=>{var x;return(x=o.itemTextRefCallback)==null?void 0:x.call(o,v,l.value,l.disabled)}),p=d==null?void 0:d.textContent,g=w.useMemo(()=>c.jsx("option",{value:l.value,disabled:l.disabled,children:p},l.value),[l.disabled,l.value,p]),{onNativeOptionAdd:m,onNativeOptionRemove:y}=u;return mn(()=>(m(g),()=>y(g)),[m,y,g]),c.jsxs(c.Fragment,{children:[c.jsx(we.span,{id:l.textId,...s,ref:f}),l.isSelected&&a.valueNode&&!a.valueNodeHasChildren?Pl.createPortal(s.children,a.valueNode):null]})});pW.displayName=fh;var mW="SelectItemIndicator",gW=w.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return hW(mW,n).isSelected?c.jsx(we.span,{"aria-hidden":!0,...r,ref:t}):null});gW.displayName=mW;var Ej="SelectScrollUpButton",yW=w.forwardRef((e,t)=>{const n=bo(Ej,e.__scopeSelect),r=jN(Ej,e.__scopeSelect),[i,s]=w.useState(!1),a=qe(t,r.onScrollButtonChange);return mn(()=>{if(n.viewport&&n.isPositioned){let o=function(){const u=l.scrollTop>0;s(u)};const l=n.viewport;return o(),l.addEventListener("scroll",o),()=>l.removeEventListener("scroll",o)}},[n.viewport,n.isPositioned]),i?c.jsx(xW,{...e,ref:a,onAutoScroll:()=>{const{viewport:o,selectedItem:l}=n;o&&l&&(o.scrollTop=o.scrollTop-l.offsetHeight)}}):null});yW.displayName=Ej;var Tj="SelectScrollDownButton",vW=w.forwardRef((e,t)=>{const n=bo(Tj,e.__scopeSelect),r=jN(Tj,e.__scopeSelect),[i,s]=w.useState(!1),a=qe(t,r.onScrollButtonChange);return mn(()=>{if(n.viewport&&n.isPositioned){let o=function(){const u=l.scrollHeight-l.clientHeight,d=Math.ceil(l.scrollTop)<u;s(d)};const l=n.viewport;return o(),l.addEventListener("scroll",o),()=>l.removeEventListener("scroll",o)}},[n.viewport,n.isPositioned]),i?c.jsx(xW,{...e,ref:a,onAutoScroll:()=>{const{viewport:o,selectedItem:l}=n;o&&l&&(o.scrollTop=o.scrollTop+l.offsetHeight)}}):null});vW.displayName=Tj;var xW=w.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...i}=e,s=bo("SelectScrollButton",n),a=w.useRef(null),o=Ab(n),l=w.useCallback(()=>{a.current!==null&&(window.clearInterval(a.current),a.current=null)},[]);return w.useEffect(()=>()=>l(),[l]),mn(()=>{var d;const u=o().find(h=>h.ref.current===document.activeElement);(d=u==null?void 0:u.ref.current)==null||d.scrollIntoView({block:"nearest"})},[o]),c.jsx(we.div,{"aria-hidden":!0,...i,ref:t,style:{flexShrink:0,...i.style},onPointerDown:te(i.onPointerDown,()=>{a.current===null&&(a.current=window.setInterval(r,50))}),onPointerMove:te(i.onPointerMove,()=>{var u;(u=s.onItemLeave)==null||u.call(s),a.current===null&&(a.current=window.setInterval(r,50))}),onPointerLeave:te(i.onPointerLeave,()=>{l()})})}),S3e="SelectSeparator",bW=w.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return c.jsx(we.div,{"aria-hidden":!0,...r,ref:t})});bW.displayName=S3e;var Nj="SelectArrow",j3e=w.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,i=Pb(n),s=xo(Nj,n),a=bo(Nj,n);return s.open&&a.position==="popper"?c.jsx(Y_,{...i,...r,ref:t}):null});j3e.displayName=Nj;var _3e="SelectBubbleInput",wW=w.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const i=w.useRef(null),s=qe(r,i),a=XU(t);return w.useEffect(()=>{const o=i.current;if(!o)return;const l=window.HTMLSelectElement.prototype,d=Object.getOwnPropertyDescriptor(l,"value").set;if(a!==t&&d){const h=new Event("change",{bubbles:!0});d.call(o,t),o.dispatchEvent(h)}},[a,t]),c.jsx(we.select,{...n,style:{...l4,...n.style},ref:s,defaultValue:t})});wW.displayName=_3e;function kW(e){return e===""||e===void 0}function SW(e){const t=ur(e),n=w.useRef(""),r=w.useRef(0),i=w.useCallback(a=>{const o=n.current+a;t(o),function l(u){n.current=u,window.clearTimeout(r.current),u!==""&&(r.current=window.setTimeout(()=>l(""),1e3))}(o)},[t]),s=w.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return w.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,i,s]}function jW(e,t,n){const i=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,s=n?e.indexOf(n):-1;let a=E3e(e,Math.max(s,0));i.length===1&&(a=a.filter(u=>u!==n));const l=a.find(u=>u.textValue.toLowerCase().startsWith(i.toLowerCase()));return l!==n?l:void 0}function E3e(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var T3e=QU,_W=JU,N3e=tW,C3e=nW,A3e=rW,EW=iW,P3e=lW,TW=dW,NW=fW,O3e=pW,R3e=gW,CW=yW,AW=vW,PW=bW;const Xp=T3e,Qp=N3e,jd=w.forwardRef(({className:e,children:t,...n},r)=>c.jsxs(_W,{ref:r,className:ye("flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm r
640ing-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...n,children:[t,c.jsx(C3e,{asChild:!0,children:c.jsx(pu,{className:"h-4 w-4 opacity-50"})})]}));jd.displayName=_W.displayName;const OW=w.forwardRef(({className:e,...t},n)=>c.jsx(CW,{ref:n,className:ye("flex cursor-default items-center justify-center py-1",e),...t,children:c.jsx($1,{className:"h-4 w-4"})}));OW.displayName=CW.displayName;const RW=w.forwardRef(({className:e,...t},n)=>c.jsx(AW,{ref:n,className:ye("flex cursor-default items-center justify-center py-1",e),...t,children:c.jsx(pu,{className:"h-4 w-4"})}));RW.displayName=AW.displayName;const _d=w.forwardRef(({className:e,children:t,position:n="popper",...r},i)=>c.jsx(A3e,{children:c.jsxs(EW,{ref:i,className:ye("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",n==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:n,...r,children:[c.jsx(OW,{}),c.jsx(P3e,{className:ye("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),c.jsx(RW,{})]})}));_d.displayName=EW.displayName;const I3e=w.forwardRef(({className:e,...t},n)=>c.jsx(TW,{ref:n,className:ye("py-1.5 pl-8 pr-2 text-sm font-semibold",e),...t}));I3e.displayName=TW.displayName;const Mn=w.forwardRef(({className:e,children:t,...n},r)=>c.jsxs(NW,{ref:r,className:ye("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-accent focus:text-accent-foreground",e),...n,children:[c.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:c.jsx(R3e,{children:c.jsx(Np,{className:"h-4 w-4"})})}),c.jsx(O3e,{children:t})]}));Mn.displayName=NW.displayName;const M3e=w.forwardRef(({className:e,...t},n)=>c.jsx(PW,{ref:n,className:ye("-mx-1 my-1 h-px bg-muted",e),...t}));M3e.displayName=PW.displayName;var Ob="Switch",[$3e,b6e]=dr(Ob),[D3e,L3e]=$3e(Ob),IW=w.forwardRef((e,t)=>{const{__scopeSwitch:n,name:r,checked:i,defaultChecked:s,required:a,disabled:o,value:l="on",onCheckedChange:u,form:d,...h}=e,[f,p]=w.useState(null),g=qe(t,b=>p(b)),m=w.useRef(!1),y=f?d||!!f.closest("form"):!0,[v,x]=Xr({prop:i,defaultProp:s??!1,onChange:u,caller:Ob});return c.jsxs(D3e,{scope:n,checked:v,disabled:o,children:[c.jsx(we.button,{type:"button",role:"switch","aria-checked":v,"aria-required":a,"data-state":LW(v),"data-disabled":o?"":void 0,disabled:o,value:l,...h,ref:g,onClick:te(e.onClick,b=>{x(S=>!S),y&&(m.current=b.isPropagationStopped(),m.current||b.stopPropagation())})}),y&&c.jsx(DW,{control:f,bubbles:!m.current,name:r,value:l,checked:v,required:a,disabled:o,form:d,style:{transform:"translateX(-100%)"}})]})});IW.displayName=Ob;var MW="SwitchThumb",$W=w.forwardRef((e,t)=>{const{__scopeSwitch:n,...r}=e,i=L3e(MW,n);return c.jsx(we.span,{"data-state":LW(i.checked),"data-disabled":i.disabled?"":void 0,...r,ref:t})});$W.displayName=MW;var F3e="SwitchBubbleInput",DW=w.forwardRef(({__scopeSwitch:e,control:t,checked:n,bubbles:r=!0,...i},s)=>{const a=w.useRef(null),o=qe(a,s),l=XU(n),u=o3(t);return w.useEffect(()=>{const d=a.current;if(!d)return;const h=window.HTMLInputElement.prototype,p=Object.getOwnPropertyDescriptor(h,"checked").set;if(l!==n&&p){const g=new Event("click",{bubbles:r});p.call(d,n),d.dispatchEvent(g)}},[l,n,r]),c.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:n,...i,tabIndex:-1,ref:o,style:{...i.style,...u,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});DW.displayName=F3e;function LW(e){return e?"checked":"unchecked"}var FW=IW,B3e=$W;const fp=w.forwardRef(({className:e,...t},n)=>c.jsx(FW,{className:ye("peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50",e),...t,ref:n,children:c.jsx(B3e,{className:ye("pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0")})}
640));fp.displayName=FW.displayName;const ks=(e,t="Operation failed. Please try again.")=>{var r;const n=((r=e==null?void 0:e.message)==null?void 0:r.toLowerCase())??"";return n?n.includes("row-level security")||n.includes("permission denied")||n.includes("not authorized")?"You don't have permission to do that.":n.includes("jwt")||n.includes("auth")?"Your session has expired. Please sign in again.":n.includes("duplicate key")||n.includes("unique constraint")?"This item already exists.":n.includes("foreign key")?"Cannot complete: this item is still in use.":n.includes("not-null")||n.includes("check constraint")||n.includes("invalid input")?"Invalid data provided.":n.includes("network")||n.includes("fetch")?"Network error. Please try again.":t:t},pp=({children:e})=>{const t=Ar(),[n,r]=w.useState(!0);w.useEffect(()=>{(async()=>{const{data:{user:a}}=await ne.auth.getUser();if(!a){t("/admin/login");return}const{data:o}=await ne.from("user_roles").select("role").eq("user_id",a.id).eq("role","admin").maybeSingle();if(!o){await ne.auth.signOut(),t("/admin/login");return}r(!1)})()},[t]);const i=async()=>{await ne.auth.signOut(),t("/admin/login")};return n?c.jsx("div",{className:"min-h-screen bg-secondary flex items-center justify-center",children:c.jsx("p",{className:"text-muted-foreground",children:"Loading..."})}):c.jsxs("div",{className:"min-h-screen bg-secondary",children:[c.jsx("header",{className:"bg-background border-b border-border px-6 py-4",children:c.jsxs("div",{className:"max-w-7xl mx-auto flex items-center justify-between",children:[c.jsxs("div",{className:"flex items-center gap-4",children:[c.jsx(ut,{to:"/admin",children:c.jsx("img",{src:ho,alt:"Ekko",className:"h-8"})}),c.jsx("span",{className:"text-lg font-semibold text-foreground",children:"Admin Dashboard"})]}),c.jsxs("div",{className:"flex items-center gap-4",children:[c.jsx(ut,{to:"/",className:"text-muted-foreground hover:text-foreground text-sm",children:"View Site"}),c.jsxs(de,{variant:"outline",size:"sm",onClick:i,children:[c.jsx(O_,{className:"w-4 h-4 mr-2"}),"Logout"]})]})]})}),c.jsx("main",{className:"max-w-7xl mx-auto px-6 py-12",children:e})]})},Ow={title:"",title_vi:"",description:"",description_vi:"",content:"",content_vi:"",image_url:"",category:"news",published:!1},V3e=()=>{const{toast:e}=ls(),t=id(),[n,r]=w.useState(!1),[i,s]=w.useState(null),[a,o]=w.useState(Ow),{data:l=[],isLoading:u}=dn({queryKey:["admin-news"],queryFn:async()=>{const{data:m,error:y}=await ne.from("news_articles").select("*").order("created_at",{ascending:!1});if(y)throw y;return m}}),d=za({mutationFn:async()=>{const m={title:a.title,title_vi:a.title_vi||null,description:a.description,description_vi:a.description_vi||null,content:a.content,content_vi:a.content_vi||null,image_url:a.image_url||null,category:a.category,published:a.published,published_at:a.published?new Date().toISOString():null};if(i){const{error:y}=await ne.from("news_articles").update(m).eq("id",i);if(y)throw y}else{const{error:y}=await ne.from("news_articles").insert(m);if(y)throw y}},onSuccess:()=>{t.invalidateQueries({queryKey:["admin-news"]}),r(!1),s(null),o(Ow),e({title:i?"Article updated":"Article created"})},onError:m=>{e({title:"Error",description:ks(m),variant:"destructive"})}}),h=za({mutationFn:async m=>{const{error:y}=await ne.from("news_articles").delete().eq("id",m);if(y)throw y},onSuccess:()=>{t.invalidateQueries({queryKey:["admin-news"]}),e({title:"Article deleted"})}}),f=za({mutationFn:async({id:m,published:y})=>{const{error:v}=await ne.from("news_articles").update({published:y,published_at:y?new Date().toISOString():null}).eq("id",m);if(v)throw v},onSuccess:()=>{t.invalidateQueries({queryKey:["admin-news"]})}}),p=m=>{s(m.id),o({title:m.title,title_vi:m.title_vi||"",description:m.description,description_vi:m.description_vi||"",content:m.content,content_vi:m.content_vi||"",image_url:m.image_url||"",category:m.category,published:m.published}),r(!0)},g=()=>{s(null),o(Ow),r(!0)};return c.jsxs(pp,{children:[c.jsxs("div",{className:"flex items-center justify-between mb-8",children:[c.jsxs("div",{children:[c.jsxs(ut,{to:"/admin",className:"inline-flex items-center gap-2 text-muted-foreground hover:text-foreground mb-2",children:[c.jsx(ss,{className:"w-4 h-4"}),"Back to Dashboard"]}),c.jsx("h1",{className:"text-2xl font-bold text-foreground",children:"News Articles"})]}),c.jsxs(hp,{open:n,onOpenChange:r,children:[c.jsx(SN,{asChild:!0,children:c.jsxs(de,{onClick:g,children:[c.jsx(tx,{className:"w-4 h-4 mr-2"}),"Add Article"]})}),c.jsxs(Hu,{className:"max-w-2xl max-h-[90vh] overflow-y-auto",children:[c.jsx(Ku,{children:c.jsx(Gu,{children:i?"Edit Article":"New Art
640icle"})}),c.jsxs("form",{onSubmit:m=>{m.preventDefault(),d.mutate()},className:"space-y-4",children:[c.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[c.jsxs("div",{children:[c.jsx(He,{children:"Title (English) *"}),c.jsx(zt,{required:!0,value:a.title,onChange:m=>o({...a,title:m.target.value})})]}),c.jsxs("div",{children:[c.jsx(He,{children:"Title (Vietnamese)"}),c.jsx(zt,{value:a.title_vi,onChange:m=>o({...a,title_vi:m.target.value})})]})]}),c.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[c.jsxs("div",{children:[c.jsx(He,{children:"Description (English) *"}),c.jsx(wi,{required:!0,rows:2,value:a.description,onChange:m=>o({...a,description:m.target.value})})]}),c.jsxs("div",{children:[c.jsx(He,{children:"Description (Vietnamese)"}),c.jsx(wi,{rows:2,value:a.description_vi,onChange:m=>o({...a,description_vi:m.target.value})})]})]}),c.jsxs("div",{children:[c.jsx(He,{children:"Content (English) *"}),c.jsx(wi,{required:!0,rows:6,value:a.content,onChange:m=>o({...a,content:m.target.value})})]}),c.jsxs("div",{children:[c.jsx(He,{children:"Content (Vietnamese)"}),c.jsx(wi,{rows:6,value:a.content_vi,onChange:m=>o({...a,content_vi:m.target.value})})]}),c.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[c.jsxs("div",{children:[c.jsx(He,{children:"Image URL"}),c.jsx(zt,{type:"url",value:a.image_url,onChange:m=>o({...a,image_url:m.target.value}),placeholder:"https://..."})]}),c.jsxs("div",{children:[c.jsx(He,{children:"Category"}),c.jsxs(Xp,{value:a.category,onValueChange:m=>o({...a,category:m}),children:[c.jsx(jd,{children:c.jsx(Qp,{})}),c.jsxs(_d,{children:[c.jsx(Mn,{value:"news",children:"News"}),c.jsx(Mn,{value:"article",children:"Article"})]})]})]})]}),c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx(fp,{checked:a.published,onCheckedChange:m=>o({...a,published:m})}),c.jsx(He,{children:"Publish immediately"})]}),c.jsxs("div",{className:"flex justify-end gap-2",children:[c.jsx(de,{type:"button",variant:"outline",onClick:()=>r(!1),children:"Cancel"}),c.jsx(de,{type:"submit",disabled:d.isPending,children:d.isPending?"Saving...":"Save"})]})]})]})]})]}),u?c.jsx("p",{className:"text-muted-foreground",children:"Loading..."}):l.length===0?c.jsx(Wt,{children:c.jsxs(gn,{className:"py-12 text-center",children:[c.jsx("p",{className:"text-muted-foreground mb-4",children:"No articles yet"}),c.jsx(de,{onClick:g,children:"Create your first article"})]})}):c.jsx("div",{className:"space-y-4",children:l.map(m=>c.jsx(U.div,{initial:{opacity:0}
640,animate:{opacity:1},children:c.jsx(Wt,{children:c.jsx(gn,{className:"py-4",children:c.jsxs("div",{className:"flex items-center justify-between gap-4",children:[c.jsxs("div",{className:"flex-1 min-w-0",children:[c.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[c.jsx("h3",{className:"font-semibold text-foreground truncate",children:m.title}),c.jsx("span",{className:"px-2 py-0.5 rounded-full bg-secondary text-xs font-medium",children:m.category}),m.published?c.jsx("span",{className:"px-2 py-0.5 rounded-full bg-green-100 text-green-700 text-xs font-medium",children:"Published"}):c.jsx("span",{className:"px-2 py-0.5 rounded-full bg-yellow-100 text-yellow-700 text-xs font-medium",children:"Draft"})]}),c.jsx("p",{className:"text-muted-foreground text-sm truncate",children:m.description})]}),c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx(de,{variant:"ghost",size:"icon",onClick:()=>f.mutate({id:m.id,published:!m.published}),children:m.published?c.jsx(ry,{className:"w-4 h-4"}):c.jsx(iy,{className:"w-4 h-4"})}),c.jsx(de,{variant:"ghost",size:"icon",onClick:()=>p(m),children:c.jsx(I_,{className:"w-4 h-4"})}),c.jsx(de,{variant:"ghost",size:"icon",onClick:()=>{confirm("Delete this article?")&&h.mutate(m.id)},children:c.jsx(Ap,{className:"w-4 h-4 text-destructive"})})]})]})})})},m.id))})]})},Rw={title:"",title_vi:"",department:"",location:"",type:"full-time",description:"",description_vi:"",requirements:"",requirements_vi:"",benefits:"",benefits_vi:"",published:!1},q3e=()=>{const{toast:e}=ls(),t=id(),[n,r]=w.useState(!1),[i,s]=w.useState(null),[a,o]=w.useState(Rw),{data:l=[],isLoading:u}=dn({queryKey:["admin-jobs"],queryFn:async()=>{const{data:m,error:y}=await ne.from("job_postings").select("*").order("created_at",{ascending:!1});if(y)throw y;return m}}),d=za({mutationFn:async()=>{const m={title:a.title,title_vi:a.title_vi||null,department:a.department,location:a.location,type:a.type,description:a.description,description_vi:a.description_vi||null,requirements:a.requirements,requirements_vi:a.requirements_vi||null,benefits:a.benefits||null,benefits_vi:a.benefits_vi||null,published:a.published};if(i){const{error:y}=await ne.from("job_postings").update(m).eq("id",i);if(y)throw y}else{const{error:y}=await ne.from("job_postings").insert(m);if(y)throw y}},onSuccess:()=>{t.invalidateQueries({queryKey:["admin-jobs"]}),r(!1),s(null),o(Rw),e({title:i?"Job updated":"Job created"})},onError:m=>{e({title:"Error",description:ks(m),variant:"destructive"})}}),h=za({mutationFn:async m=>{const{error:y}=await ne.from("job_postings").delete().eq("id",m);if(y)throw y},onSuccess:()=>{t.invalidateQueries({queryKey:["admin-jobs"]}),e({title:"Job deleted"})}}),f=za({mutationFn:async({id:m,published:y})=>{const{error:v}=await ne.from("job_postings").update({published:y}).eq("id",m);if(v)throw v},onSuccess:()=>{t.invalidateQueries({queryKey:["admin-jobs"]})}}),p=m=>{s(m.id),o({title:m.title,title_vi:m.title_vi||"",department:m.department,location:m.location,type:m.type,description:m.description,description_vi:m.description_vi||"",requirements:m.requirements,requirements_vi:m.requirements_vi||"",benefits:m.benefits||"",benefits_vi:m.benefits_vi||"",published:m.published}),r(!0)},g=()=>{s(null),o(Rw),r(!0)};return c.jsxs(pp,{children:[c.jsxs("div",{className:"flex items-center justify-between mb-8",children:[c.jsxs("div",{children:[c.jsxs(ut,{to:"/admin",className:"inline-flex items-center gap-2 text-muted-foreground hover:text-foreground mb-2",children:[c.jsx(ss,{className:"w-4 h-4"}),"Back to Dashboard"]}),c.jsx("h1",{className:"text-2xl font-bold text-foreground",children:"Job Postings"})]}),c.jsxs(hp,{open:n,onOpenChange:r,children:[c.jsx(SN,{asChild:!0,children:c.jsxs(de,{onClick:g,children:[c.jsx(tx,{className:"w-4 h-4 mr-2"}),"Add Job"]})}),c.jsxs(Hu,{className:"max-w-2xl max-h-[90vh] overflow-y-auto",children:[c.jsx(Ku,{children:c.jsx(Gu,{children:i?"Edit Job":"New Job"})}),c.jsxs("form",{onSubmit:m=>{m.preventDefault(),d.mutate()},className:"space-y-4",children:[c.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[c.jsxs("div",{children:[c.jsx(He,{children:"Title (English) *"}),c.jsx(zt,{required:!0,value:a.title,onChange:m=>o({...a,title:m.target.value})})]}),c.jsxs("div",{children:[c.jsx(He,{children:"Title (Vietnamese)"}),c.jsx(zt,{value:a.title_vi,onChange:m=>o({...a,title_vi:m.target.value})})]})]}),c.jsxs("div",{className:"grid grid-cols-3 gap-4",children:[c.jsxs("div",{children:[c.jsx(He,{children:"Department *"}),c.jsx(zt,{required:!0,value:a.department,onChange:m=>o({...a,department:m.target.value}),placeholder:"e.g. Engineering"})]}),c.jsxs("div",{children:[c.jsx(He,{children:"Location *"}),c.jsx(zt,{required:!0,value:a.location,onChange:m=>o({...a,location:m.target.value}),placeholder:"e.g. Hanoi, Vietnam"})]}),c.jsxs("div",{children:[c.jsx(He,{children:"Type"}),c.jsxs(Xp,{value:a.type,onValueChange:m=>o({...a,type:m}),children:[c.jsx(jd,{children:c.jsx(Qp,{})}),c.jsxs(_d,{children:[c.jsx(Mn,{value:"full-time",children:"Full-time"}),c.jsx(Mn,{value:"part-time",children:"Part-time"}),c.jsx(Mn,{value:"contract",children:"Contract"}),c.jsx(Mn,{value:"internship",children:"Internship"})]})]})]})]}),c.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[c.jsxs("div",{children:[c.jsx(He,{children:"Description (English) *"}),c.jsx(wi,{required:!0,rows:4,value:a.description,onChange:m=>o({...a,description:m.target.value})})]}),c.jsxs("div",{children:[c.jsx(He,{children:"Description (Vietnamese)"}),c.jsx(wi,{rows:4,value:a.description_vi,onChange:m=>o({...a,description_vi:m.target.value})})]})]}),c.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[c.jsxs("div",{children:[c.jsx(He,{children:"Requirements (English) *"}),c.jsx(wi,{required:!0,rows:4,value:a.requirements,onChange:m=>o({...a,requirements:m.target.value})})]}),c.jsxs("div",{children:[c.jsx(He,{children:"Requirements (Vietnamese)"}),c.jsx(wi,{rows:4,value:a.requirements_vi,onChange:m=>o({...a,requirements_vi:m.target.value})})]})]}),c.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[c.jsxs("div",{children:[c.jsx(He,{children:"Benefits (English)"}),c.jsx(wi,{rows:3,value:a.benefits,onChange:m=>o({...a,benefits:m.target.value})})]}),c.jsxs("div",{children:[c.jsx(He,{children:"Benefits (Vietnamese)"}),c.jsx(wi,{rows:3,value:a.benefits_vi,onChange:m=>o({...a,benefits_vi:m.target.value})})]})]}),c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx(fp,{checked:a.published,onCheckedChange:m=>o({...a,published:m})}),c.jsx(He,{children:"Publish immediately"})]}),c.jsxs("div",{className:"flex justify-end gap-2",children:[c.jsx(de,{type:"button",variant:"outline",onClick:()=>r(!1),children:"Cancel"}),c.jsx(de,{type:"submit",disabled:d.isPending,children:d.isPending?"Saving...":"Save"})]})]})]})]})]}),u?c.jsx("p",{className:"text-muted-foreground",children:"Loading..."}):l.length===0?c.jsx(Wt,{children:c.jsxs(gn,{className:"py-12 text-center",children:[c.jsx("p",{className:"text-muted-foreground mb-4",children:"No job postings yet"}),c.jsx(de,{onClick:g,children:"Create your first job posting"})]})}):c.jsx("div",{className:"space-y-4",children:l.map(m=>c.jsx(U.div,{initial:{opacity:0}
640,animate:{opacity:1},children:c.jsx(Wt,{children:c.jsx(gn,{className:"py-4",children:c.jsxs("div",{className:"flex items-center justify-between gap-4",children:[c.jsxs("div",{className:"flex-1 min-w-0",children:[c.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[c.jsx("h3",{className:"font-semibold text-foreground truncate",children:m.title}),c.jsx("span",{className:"px-2 py-0.5 rounded-full bg-secondary text-xs font-medium",children:m.department}),m.published?c.jsx("span",{className:"px-2 py-0.5 rounded-full bg-green-100 text-green-700 text-xs font-medium",children:"Published"}):c.jsx("span",{className:"px-2 py-0.5 rounded-full bg-yellow-100 text-yellow-700 text-xs font-medium",children:"Draft"})]}),c.jsxs("p",{className:"text-muted-foreground text-sm",children:[m.location," · ",m.type]})]}),c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx(de,{variant:"ghost",size:"icon",onClick:()=>f.mutate({id:m.id,published:!m.published}),children:m.published?c.jsx(ry,{className:"w-4 h-4"}):c.jsx(iy,{className:"w-4 h-4"})}),c.jsx(de,{variant:"ghost",size:"icon",onClick:()=>p(m),children:c.jsx(I_,{className:"w-4 h-4"})}),c.jsx(de,{variant:"ghost",size:"icon",onClick:()=>{confirm("Delete this job posting?")&&h.mutate(m.id)},children:c.jsx(Ap,{className:"w-4 h-4 text-destructive"})})]})]})})})},m.id))})]})},U3e={pending:"bg-yellow-100 text-yellow-700",reviewed:"bg-blue-100 text-blue-700",interview:"bg-purple-100 text-purple-700",rejected:"bg-red-100 text-red-700",hired:"bg-green-100 text-green-700"},W3e=()=>{const{toast:e}=ls(),t=id(),{data:n=[],isLoading:r}=dn({queryKey:["admin-applications"],queryFn:async()=>{const{data:a,error:o}=await ne.from("job_applications").select("*, job_postings(title)").order("created_at",{ascending:!1});if(o)throw o;return a}}),i=za({mutationFn:async({id:a,status:o})=>{const{error:l}=await ne.from("job_applications").update({status:o}).eq("id",a);if(l)throw l},onSuccess:()=>{t.invalidateQueries({queryKey:["admin-applications"]}),e({title:"Status updated"})}}),s=a=>new Date(a).toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"});return c.jsxs(pp,{children:[c.jsxs("div",{className:"mb-8",children:[c.jsxs(ut,{to:"/admin",className:"inline-flex items-center gap-2 text-muted-foreground hover:text-foreground mb-2",children:[c.jsx(ss,{className:"w-4 h-4"}),"Back to Dashboard"]}),c.jsx("h1",{className:"text-2xl font-bold text-foreground",children:"Job Applications"})]}),r?c.jsx("p",{className:"text-muted-foreground",children:"Loading..."}):n.length===0?c.jsx(Wt,{children:c.jsx(gn,{className:"py-12 text-center",children:c.jsx("p",{className:"text-muted-foreground",children:"No applications yet"})})}):c.jsx("div",{className:"space-y-4",children:n.map(a=>{var o;return c.jsx(U.div,{initial:{opacity:0}
640,animate:{opacity:1},children:c.jsx(Wt,{children:c.jsx(gn,{className:"py-4",children:c.jsxs("div",{className:"flex items-start justify-between gap-4",children:[c.jsxs("div",{className:"flex-1 min-w-0",children:[c.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[c.jsx("h3",{className:"font-semibold text-foreground",children:a.full_name}),c.jsx("span",{className:`px-2 py-0.5 rounded-full text-xs font-medium ${U3e[a.status]}`,children:a.status})]}),c.jsxs("p",{className:"text-sm text-muted-foreground mb-2",children:["Applied for: ",c.jsx("span",{className:"text-foreground",children:((o=a.job_postings)==null?void 0:o.title)||"Unknown"})]}),c.jsxs("div",{className:"flex flex-wrap items-center gap-4 text-sm text-muted-foreground",children:[c.jsxs("span",{className:"flex items-center gap-1",children:[c.jsx(mu,{className:"w-4 h-4"}),a.email]}),a.phone&&c.jsxs("span",{className:"flex items-center gap-1",children:[c.jsx(Cp,{className:"w-4 h-4"}),a.phone]}),c.jsxs("span",{className:"flex items-center gap-1",children:[c.jsx(fu,{className:"w-4 h-4"}),s(a.created_at)]})]})]}),c.jsxs("div",{className:"flex items-center gap-2",children:[a.cover_letter&&c.jsxs(hp,{children:[c.jsx(SN,{asChild:!0,children:c.jsxs(de,{variant:"outline",size:"sm",children:[c.jsx(wK,{className:"w-4 h-4 mr-1"}),"Cover Letter"]})}),c.jsxs(Hu,{children:[c.jsx(Ku,{children:c.jsxs(Gu,{children:["Cover Letter - ",a.full_name]})}),c.jsx("div",{className:"whitespace-pre-wrap text-muted-foreground",children:a.cover_letter})]})]}),c.jsxs(Xp,{value:a.status,onValueChange:l=>i.mutate({id:a.id,status:l}),children:[c.jsx(jd,{className:"w-32",children:c.jsx(Qp,{})}),c.jsxs(_d,{children:[c.jsx(Mn,{value:"pending",children:"Pending"}),c.jsx(Mn,{value:"reviewed",children:"Reviewed"}),c.jsx(Mn,{value:"interview",children:"Interview"}),c.jsx(Mn,{value:"hired",children:"Hired"}),c.jsx(Mn,{value:"rejected",children:"Rejected"})]})]})]})]})})})},a.id)})})]})};var BW="AlertDialog",[z3e,w6e]=dr(BW,[CU]),ta=CU(),VW=e=>{const{__scopeAlertDialog:t,...n}=e,r=ta(t);return c.jsx(zU,{...r,...n,modal:!0})};VW.displayName=BW;var H3e="AlertDialogTrigger",qW=w.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,i=ta(n);return c.jsx(HU,{...i,...r,ref:t})});qW.displayName=H3e;var K3e="AlertDialogPortal",UW=e=>{const{__scopeAlertDialog:t,...n}=e,r=ta(t);return c.jsx(KU,{...r,...n})};UW.displayName=K3e;var G3e="AlertDialogOverlay",WW=w.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,i=ta(n);return c.jsx(vN,{...i,...r,ref:t})});WW.displayName=G3e;var Kc="AlertDialogContent",[Y3e,X3e]=z3e(Kc),Q3e=i4("AlertDialogContent"),zW=w.forwardRef((e,t)=>{const{__scopeAlertDialog:n,children:r,...i}=e,s=ta(n),a=w.useRef(null),o=qe(t,a),l=w.useRef(null);return c.jsx(e3e,{contentName:Kc,titleName:HW,docsSlug:"alert-dialog",children:c.jsx(Y3e,{scope:n,cancelRef:l,children:c.jsxs(xN,{role:"alertdialog",...s,...i,ref:o,onOpenAutoFocus:te(i.onOpenAutoFocus,u=>{var d;u.preventDefault(),(d=l.current)==null||d.focus({preventScroll:!0})}),onPointerDownOutside:u=>u.preventDefault(),onInteractOutside:u=>u.preventDefault(),children:[c.jsx(Q3e,{children:r}),c.jsx(J3e,{contentRef:a})]})})})});zW.displayName=Kc;var HW="AlertDialogTitle",KW=w.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,i=ta(n);return c.jsx(bN,{...i,...r,ref:t})});KW.displayName=HW;var GW="AlertDialogDescription",YW=w.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,i=ta(n);return c.jsx(wN,{...i,...r,ref:t})});YW.displayName=GW;var Z3e="AlertDialogAction",XW=w.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,i=ta(n);return c.jsx(kN,{...i,...r,ref:t})});XW.displayName=Z3e;var QW="AlertDialogCancel",ZW=w.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,{cancelRef:i}=X3e(QW,n),s=ta(n),a=qe(t,i);return c.jsx(kN,{...s,...r,ref:a})});ZW.displayName=QW;var J3e=({contentRef:e})=>{const t=`\`${Kc}\` requires a description for the component to be accessible for screen reader users. 641 642You can add a description to the \`${Kc}\` by passing a \`${GW}\` component as a child, which also benefits sighted users by adding visible context to the dialog. 643 644Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${Kc}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component. 645 646For more information, see https://radix-ui.com/primitives/docs/components/
646alert-dialog`;return w.useEffect(()=>{var r;document.getElementById((r=e.current)==null?void 0:r.getAttribute("aria-describedby"))||console.warn(t)},[t,e]),null},e5e=VW,t5e=qW,n5e=UW,JW=WW,ez=zW,tz=XW,nz=ZW,rz=KW,iz=YW;const r5e=e5e,i5e=t5e,s5e=n5e,sz=w.forwardRef(({className:e,...t},n)=>c.jsx(JW,{className:ye("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:n}));sz.displayName=JW.displayName;const az=w.forwardRef(({className:e,...t},n)=>c.jsxs(s5e,{children:[c.jsx(sz,{}),c.jsx(ez,{ref:n,className:ye("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...t})]}));az.displayName=ez.displayName;const oz=({className:e,...t})=>c.jsx("div",{className:ye("flex flex-col space-y-2 text-center sm:text-left",e),...t});oz.displayName="AlertDialogHeader";const lz=({className:e,...t})=>c.jsx("div",{className:ye("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});lz.displayName="AlertDialogFooter";const cz=w.forwardRef(({className:e,...t},n)=>c.jsx(rz,{ref:n,className:ye("text-lg font-semibold",e),...t}));cz.displayName=rz.displayName;const uz=w.forwardRef(({className:e,...t},n)=>c.jsx(iz,{ref:n,className:ye("text-sm text-muted-foreground",e),...t}));uz.displayName=iz.displayName;const dz=w.forwardRef(({className:e,...t},n)=>c.jsx(tz,{ref:n,className:ye(aE(),e),...t}));dz.displayName=tz.displayName;const hz=w.forwardRef(({className:e,...t},n)=>c.jsx(nz,{ref:n,className:ye(aE({variant:"outline"}),"mt-2 sm:mt-0",e),...t}));hz.displayName=nz.displayName;const a5e=()=>{const e=Ar(),{toast:t}=ls(),n=id(),[r,i]=w.useState(!0);w.useEffect(()=>{(async()=>{const{data:{user:d}}=await ne.auth.getUser();if(!d){e("/admin/login");return}const{data:h}=await ne.from("user_roles").select("role").eq("user_id",d.id).eq("role","admin").maybeSingle();if(!h){await ne.auth.signOut(),e("/admin/login");return}i(!1)})()},[e]);const{data:s=[],isLoading:a}=dn({queryKey:["business-inquiries"],queryFn:async()=>{const{data:u,error:d}=await ne.from("business_inquiries").select("*").order("created_at",{ascending:!1});if(d)throw d;return u},enabled:!r}),o=za({mutationFn:async u=>{const{error:d}=await ne.from("business_inquiries").delete().eq("id",u);if(d)throw d},onSuccess:()=>{n.invalidateQueries({queryKey:["business-inquiries"]}),n.invalidateQueries({queryKey:["inquiries-count"]}),t({title:"Deleted",description:"Inquiry has been deleted."})},onError:()=>{t({title:"Error",description:"Failed to delete inquiry.",variant:"destructive"})}});if(r||a)return c.jsx(pp,{children:c.jsx("div",{className:"flex items-center justify-center py-12",children:c.jsx("p",{className:"text-muted-foreground",children:"Loading..."})})});const l=u=>new Date(u).toLocaleDateString("vi-VN",{year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"});return c.jsxs(pp,{children:[c.jsxs("div",{className:"mb-8",children:[c.jsxs("div",{className:"flex items-center gap-3 mb-2",children:[c.jsx(Lc,{className:"w-8 h-8 text-primary"}),c.jsx("h1",{className:"text-3xl font-bold text-foreground",children:"Business Inquiries"})]}),c.jsx("p",{className:"text-muted-foreground",children:"View contact form submissions from potential clients"})]}),s.length===0?c.jsx(Wt,{children:c.jsxs(gn,{className:"py-12 text-center",children:[c.jsx(Lc,{className:"w-12 h-12 text-muted-foreground mx-auto mb-4"}),c.jsx("p",{className:"text-muted-foreground",children:"No inquiries yet"})]})}):c.jsx("div",{className:"space-y-4",children:s.map((u,d)=>c.jsx(U.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:d*.05},children:c.jsx(Wt,{className:"hover:border-primary/30 transition-colors",children:c.jsx(gn,{className:"p-6",children:c.jsxs("div",{className:"flex items-start justify-between gap-4",children:[c.jsxs("div",{className:"flex-1 grid sm:grid-cols-2 lg:grid-cols-4 gap-4",children:[c.jsxs("div",{className:"flex items-center gap-3",children:[c.jsx("div",{className:"w-10 h-10 rounded-full bg-primary/10 flex items-center justify-center flex-shrink-0",children:c.jsx(L4,{className:"w-5 h-5 text-primary"})}),c.jsxs("div",{children:[c.jsx("p",{className:"text-sm text-muted-foreground",children:"Há» và tên"}),c.jsx("p",{className:"font-medium text-foreground",children:u.full_name})]})]}),c.jsxs("div",{className:"flex items-center gap-3",children:[c.jsx("div",{className:"w-10 h-10 rounded-full bg-accent/50 flex items-center justify-center flex-shrink-0",children:c.jsx(Cp,{className:"w-5 h-5 text-accent-foreground"})}),c.jsxs("div",{children:[c.jsx("p",{className:"text-sm text-muted-foreground",children:"Sá» Äiá»n thoại"}),c.jsx("a",{href:`tel:${u.phone}`,className:"font-medium text-foreground hover:text-primary",children:u.phone})]})]}),c.jsxs("div",{className:"flex items-center gap-3",children:[c.jsx("div",{className:"w-10 h-10 rounded-full bg-secondary flex items-center justify-center flex-shrink-0",children:c.jsx(Tp,{className:"w-5 h-5 text-muted-foreground"})}),c.jsxs("div",{children:[c.jsx("p",{className:"text-sm text-muted-foreground",children:"Chức vụ"}),c.jsx("p",{className:"font-medium text-foreground",children:u.job_title})]})]}),c.jsxs("div",{className:"flex items-center gap-3",children:[c.jsx("div",{className:"w-10 h-10 rounded-full bg-secondary flex items-center justify-center flex-shrink-0",children:c.jsx(Lc,{className:"w-5 h-5 text-muted-foreground"})}),c.jsxs("div",{children:[c.jsx("p",{className:"text-sm text-muted-foreground",children:"Công ty"}),c.jsx("p",{className:"font-medium text-foreground",children:u.company_name})]})]})]}),c.jsxs("div",{className:"flex flex-col items-end gap-2",children:[c.jsxs("div",{className:"flex items-center gap-1 text-xs text-muted-foreground",children:[c.jsx(fu,{className:"w-3 h-3"}),l(u.created_at)]}),c.jsxs(r5e,{children:[c.jsx(i5e,{asChild:!0,children:c.jsx(de,{variant:"ghost",size:"sm",className:"text-destructive hover:text-destructive hover:bg-destructive/10",children:c.jsx(Ap,{className:"w-4 h-4"})})}),c.jsxs(az,{children:[c.jsxs(oz,{children:[c.jsx(cz,{children:"Delete Inquiry?"}),c.jsxs(uz,{children:["This will permanently delete the inquiry from ",u.full_name,". This action cannot be undone."]})]}),c.jsxs(lz,{children:[c.jsx(hz,{children:"Cancel"}),c.jsx(dz,{onClick:()=>o.mutate(u.id),className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:"Delete"})]})]})]})]})]})})})},u.id))})]})},o5e=()=>{const{i18n:e}=St(),t=e.language==="vi";return c.jsxs("div",{className:"min-h-screen bg-background",children:[c.jsx(hr,{title:"Terms of Service â Ekko",description:"Read the terms of service for using Ekko's earned wage access platform and related services.",path:"/chinh-sach-su-dung"}),c.jsx(fn,{}),c.jsx("main",{className:"pt-24 pb-16 px-6 md:px-12 lg:px-16",children:c.jsx("div",{className:"max-w-4xl mx-auto",children:t?c.jsx(l5e,{}):c.jsx(c5e,{})})}),c.jsx(pn,{})]})},Ov="text-2xl font-bold mt-12 mb-6 text-foreground uppercase",zi="text-xl font-bold mt-8 mb-4 text-foreground",Hi="text-lg font-bold mt-6 mb-3 text-foreground",tr="text-muted-foreground leading-relaxed mb-4",fz="list-disc pl-6 space-y-3 text-muted-foreground leading-relaxed mb-6",Rn="list-disc pl-6 space-y-3 text-muted-foreground leading-relaxed mb-6",l5e=()=>c.jsxs(c.Fragment,{children:[c.jsx("h1",{className:"text-3xl md:text-4xl font-bold mb-10 text-foreground",children:"Äiá»u khoản sá» dụng dá»ch vụ"}),c.jsx("h2",{className:Ov,children:"A. ÄIá»U KHOẢN Dá»CH VỤ"}),c.jsx("p",{className:tr,children:'Bằng viá»c bấm nút xác nháºn Äá»ng ý vá»i Äiá»u khoản dá»ch vụ nà y, bạn Äã lá»±a chá»n Ekko Äá» trải nghiá»m má»t hình thức nháºn má»t phần tiá»n lương sá»m hÆ¡n kỳ trả lương ưu viá»t do chúng tôi phát triá»n Äặc biá»t cho Doanh nghiá»p mà bạn Äang cá»ng hiến! Äá» hoà nháºp và o thế giá»i cá»§a Ekko vá»i ná»n tảng ứng dụng Ekko và Webapp Ekko (gá»i chung là Ekko hoặc ứng dụng Ekko), bạn ("Ngưá»i dùng") ÄÆ°á»£c yêu cầu phải Äá»c kỹ, hiá»u, tá»± nguyá»n Äá»ng ý và chấp nháºn sá»± rà ng buá»c vá»i các quy Äá»nh ÄÆ°á»£c mô tả trong Äiá»u khoản và Äiá»u kiá»n nà y, bao gá»m cả ChÃnh sách Bảo máºt chia sẻ thông tin trong quá trình sá» dụng Ekko, áp dụng Äá»i vá»i Ngưá»i Dùng tại ứng dụng Ekko (sau Äây gá»i là "Äiá»u Khoản Dá»ch Vụ và Bảo máºt"). Cụ thá»:'}),c.jsxs("ul",{className:fz,children:[c.jsx("li",{children:"Ngay khi sá» dụng ứng dụng và (bằng viá»c bấm nút xác nháºn) Äá»ng ý sá» dụng dá»ch vụ trên Ekko là bạn Äã Äá»
646ng ý sá» dụng dá»ch vụ cá»§a chúng tôi theo má»i Äiá»u khoản và Äiá»u kiá»n cá»§a dá»ch vụ nà y (bao gá»m cả viá»c phải trả phà sá» dụng dá»ch vụ, nếu phát sinh), và xác nháºn Äá»ng ý tá»± nguyá»n tham gia má»t thá»a thuáºn nháºn trưá»c má»t phần tiá»n lương có rà ng buá»c trách nhiá»m pháp lý giữa Ngưá»i dùng (ngưá»i lao Äá»ng) vá»i Doanh nghiá»p cá»§a bạn và Công ty Cá» phần Ekko Viá»t Nam (Ekko - bên cung cấp dá»ch vụ trong ứng dụng). Ngưá»i dùng Äá»ng ý các thá»a thuáºn cho phép cung cấp và sá» dụng dữ liá»u cá nhân, cÅ©ng như các thá»a thuáºn khác phát sinh hiá»u lá»±c giữa Doanh nghiá»p mà bạn Äang là m viá»c và Ekko liên quan trá»±c tiếp Äến viá»c triá»n khai, áp dụng dá»ch vụ nà y."}),c.jsx("li",{children:"Bằng viá»c Äá»ng ý sá» dụng dá»ch vụ, bạn xác nháºn và Äá»ng ý rằng doanh nghiá»p nÆ¡i bạn Äang là m viá»c ÄÆ°á»£c phép tá»± Äá»ng trÃch má»t phần hoặc toà n bá» tiá»n lương tương ứng vá»i sá» tiá»n bạn Äã tạm ứng trong chu kỳ lương hiá»n tại Äá» hoà n trả cho Ekko tại thá»i Äiá»m trả lương. Ekko cam kết bảo vá» quyá»n lợi cá»§a bạn bằng cách há» trợ giải quyết các giao dá»ch ứng lương không thà nh công hoặc gặp sá»± cá» ngoà i ý muá»n, nhằm Äảm bảo rằng tá»ng sá» tiá»n lương và khoản ứng lương (sau khi trừ phà dá»ch vụ, nếu có) bạn nháºn ÄÆ°á»£c luôn Äầy Äá»§, chÃnh xác và không bỠảnh hưá»ng so vá»i mức lương mà bạn thưá»ng nháºn hằng tháng."}),c.jsx("li",{children:"Trong trưá»ng hợp, vì bất cứ là do gì liên quan tá»i quan há» lao Äá»ng giữa bạn và doanh nghiá»p nÆ¡i bạn là m viá»c, là m phát sinh khoản giảm trừ lương và /hoặc nghÄ©a vụ tà i chÃnh cá»§a bạn Äá»i vá»i doanh nghiá»p nÆ¡i bạn là m viá»c dẫn Äến viá»c tiá»n lương thá»±c nháºn không Äá»§ Äá» hoà n trả sá» tiá»n Äã tạm ứng qua Ekko, bạn sẽ chá»u hoà n toà n trách nhiá»m trá»±c tiếp hoà n trả Äầy Äá»§ khoản tiá»n còn thiếu cho Ekko và miá»
n trừ toà n bá» trách nhiá»m cho Doanh nghiá»p nÆ¡i bạn là m viá»c liên quan Äến nghÄ©a vụ hoà n trả nà y. Bạn xác nháºn rằng trong các trưá»ng hợp Äó, Ekko ÄÆ°á»£c quyá»n, yêu cầu trá»±c tiếp và /hoặc thá»±c hiá»n các hà nh Äá»ng pháp lý cần thiết, Äá» bạn thá»±c hiá»n nghÄ©a vụ hoà n trả."}),c.jsx("li",{children:"Chúng tôi có thá» Äiá»u chá»nh, tạm ngừng hoặc chấm dứt bất kỳ tÃnh nÄng nà o trên ứng dụng Ekko nhằm cải thiá»n trải nghiá»m, bảo Äảm an toà n hoặc tuân thá»§ quy Äá»nh pháp luáºt. Trưá»c khi thá»±c hiá»n thay Äá»i quan trá»ng hoặc chấm dứt má»t tÃnh nÄng, chúng tôi sẽ thông báo cho bạn qua ứng dụng hoặc email ÄÆ°á»£c ÄÄng ký (nếu có) Ãt nhất 15 (mưá»i lÄm) ngà y là m viá»c, trừ trưá»ng hợp khẩn cấp hoặc bất khả kháng."}),c.jsx("li",{children:"Chúng tôi có quyá»n cáºp nháºt Äiá»u khoản và Äiá»u kiá»n áp dụng Äá»i vá»i ngưá»i dùng Äá» phù hợp vá»i sá»± thay Äá»i cá»§a pháp luáºt, Äiá»u chá»nh dá»ch vụ hoặc các yếu tá» khác. Các thay Äá»i nà y sẽ ÄÆ°á»£c thông báo rõ rà ng trên ứng dụng hoặc qua các phương tiá»n liên lạc chÃnh thức Ãt nhất 15 (mưá»i lÄm) ngà y trưá»c khi có hiá»u lá»±c. Ngoà i ra, Thông báo dạng pop-up vá» các thay Äá»i nà y sẽ xuất hiá»n khi Ngưá»i dùng lần Äầu mỠứng dụng ká» từ khi thay Äá»i có hiá»u lá»±c. Ngưá»i dùng cần Äá»c và xác nháºn Äã Äá»ng ý má»t lần duy nhất vá»i các thay Äá»i nà y Äá» tiếp tục sá» dụng các tÃnh nÄng cá»§a ứng dụng."}),c.jsx("li",{children:"Khi thay Äá»i ÄÆ°á»£c áp dụng, viá»c bạn tiếp tục truy cáºp, sá» dụng ứng dụng sau ngà y có hiá»u lá»±c sẽ ÄÆ°á»£c hiá»u là bạn Äá»ng ý vá»i các Äiá»u khoản sá»a Äá»i. Nếu bạn không Äá»ng ý, bá
646º¡n có quyá»n ngừng sá» dụng ứng dụng và o ngà y hiá»u lá»±c và liên há» vá»i chúng tôi Äá» ÄÆ°á»£c há» trợ, nếu cần thiết."}),c.jsx("li",{children:"Chúng tôi cam kết cung cấp thông tin minh bạch vá» má»i thay Äá»i và không thá»±c hiá»n bất kỳ Äiá»u chá»nh nà o là m ảnh hưá»ng nghiêm trá»ng Äến quyá»n lợi cá»§a ngưá»i dùng mà không có sá»± cân nhắc và thông báo trưá»c."}),c.jsx("li",{children:"Bằng viá»c sá» dụng Ekko, Ngưá»i Dùng mặc nhiên thừa nháºn Ngưá»i Dùng thuá»c Äá»i tượng hợp pháp Äá» giao dá»ch trên ứng dụng Ekko theo các quy Äá»nh cá»§a Ekko và quy Äá»nh hiá»n hà nh cá»§a pháp luáºt Viá»t Nam."}),c.jsx("li",{children:"Viá»c lá»±a chá»n Äá»ng ý sá» dụng các dá»ch vụ Äi kèm, và bá» sung thông tin cá nhân cần thiết, Äá»ng nghÄ©a vá»i viá»c Ngưá»i Dùng cho phép Ekko cÅ©ng như các bên cung cấp dá»ch vụ trá»±c tiếp liên quan có thá» truy cáºp hoặc trÃch nợ tá»± Äá»ng tại tà i khoản ngân hà ng ÄÄng ký cá»§a Ngưá»i Dùng, hoặc ÄÆ°á»£c Ngưá»i sá» dụng lao Äá»ng há» trợ hoà n trả trá»±c tiếp cho Ekko Äúng vá»i giá trá» mà Ngưá»i Dùng Äã yêu cầu tại ứng dụng."}),c.jsx("li",{children:"Chúng tôi không Äảm bảo và không chá»u trách nhiá»m pháp lý nà o vá»i các rá»§i ro, mâu thuẫn, thiá»t hại, sá»± cá», tá»n thất nà o phát sinh nằm ngoà i phạm vi cung cấp Dá»ch Vụ cá»§a Ekko và không do lá»i trá»±c tiếp phát sinh thiá»t hại từ dá»ch vụ cá»§a chúng tôi. TÃnh miá»
n trừ trách nhiá»m cÅ©ng ÄÆ°á»£c áp dụng Äá»i vá»i bất kỳ sá»± cá», thiá»t hại, tá»n thất nà o liên quan Äến tÃnh xác thá»±c cá»§a nguá»n tạm ứng, toà n bá» thông tin, tà i liá»u do những Ngưá»i Dùng cung cấp hoặc thá»a thuáºn, ghi nháºn khác cho toà n bá» quá trình giao dá»ch giữa các Ngưá»i Dùng qua ứng dụng Ekko và /hoặc má»t phần, bất kỳ hà nh vi gian dá»i, lừa Äảo, vi phạm pháp luáºt nà o khác cá»§a Ngưá»i Dùng."}),c.jsx("li",{children:"Các bên theo Äây cam kết tuân thá»§ tuyá»t Äá»i các quy Äá»nh pháp luáºt Viá»t Nam và pháp luáºt quá»c tế có liên quan, Äặc biá»t là quy Äá»nh cá»§a Nghá» Äá»nh 13/2023/NÄ-CP. Má»i hà nh vi thiếu tôn trá»ng pháp luáºt cá»§a bất kỳ Ngưá»i Dùng nà o, bất ká» vì lý do gì và Ỡcấp Äá» nà o, sẽ là trách nhiá»m cá»§a Ngưá»i Dùng khi Äã chấp thuáºn Äiá»u Khoản Dá»ch Vụ cá»§a Ekko. NghÄ©a vụ tuân thá»§ pháp luáºt sẽ bao gá»m tất cả các nghÄ©a vụ bắt buá»c, trách nhiá»m tuân thá»§ các quy Äá»nh pháp luáºt và chÃnh sách cá»§a Ekko ÄÆ°á»£c áp dụng và o từng thá»i Äiá»m. Ngưá»i sá» dụng khi sá» dụng dá»ch vụ Äá»ng ý bá»i hoà n cho Doanh nghiá»p và Bên cung cấp ứng dụng má»i thiá»t hại, chi phÃ, và các trách nhiá»m pháp lý khác mà Doanh nghiá»p hoặc Bên cung cấp ứng dụng phải gánh chá»u và liên quan tá»i viá»c ngưá»i dùng sá» dụng Khoản tiá»n lương nháºn sá»m hÆ¡n kỳ nháºn lương trái pháp luáºt."})]}),c.jsx("h2",{className:Ov,children:"B. CHÃNH SÃCH BẢO MẬT THÃNG TIN"}),c.jsx("p",{className:tr,children:"Ekko sẽ thu tháºp má»t phần thông tin cá nhân ngưá»i dùng qua sá»± cho phép cá»§a Doanh nghiá»p và bản thân ngưá»i dùng. Äá»ng thá»i, bằng viá»c chấp thuáºn sá» dụng dá»ch vụ nà y, Ngưá»i Dùng Äã Äá»ng ý cho phép Ngưá»i sá» dụng lao Äá»ng ÄÆ°á»£c quyá»n cung cấp các thông tin ÄÆ°á»£c nêu dưá»i Äây cho nhà cung cấp dá»ch vụ và Nhà cung cấp dá»ch vụ ÄÆ°á»£c phép lưu trữ, sá» dụng các thông tin Äó theo các ná»i dung ÄÆ°á»£c nêu tại bản Äiá»u Khoản Dá»ch Vụ và Bảo máºt nà y. Khi Doanh nghiá»p cung cấp các thông tin cá nhân cho Ekko, Ekko sẽ thông qua ứng dụng, hiá»n thá» thông tin, sá» dụng thông tin ngưá»i dùng tạo ra khi tương tác vá»i ứng dụng. Äá» có thá» sá» dụng dá»ch vụ Ekko cá»§a chúng tôi, bạn phải từ 18 tuá»i trá» lên, và Äá»§ Äiá»u kiá»n theo sá»± phê duyá»t cá»§a Bá» pháºn nhân sá»± tại Doanh nghiá»p nÆ¡i bạn Äang công tác."}),c.jsx("h3",{className:zi,children:"1. Phạm vi thu tháºp thông tin:"}),c.jsx("h4",{className:Hi,children:"a. Thông tin Ngưá»i Dùng cung cấp trá»±c tiếp:"}),c.jsxs("ul",{className:Rn,children:[c.jsx("li",{children:"Thông tin cá nhân cÆ¡ bản: Äá» thiết láºp và xác nháºn tà i khoản hoặc há» sÆ¡ (bao gá»m nhưng không giá»i hạn: tên, ngà y tháng nÄm sinh, giá»i tÃnh Äá»a chá» email, sá» Äiá»n thoại, sá» tà i khoản ngân hà ng, mã nhân viên, nÆ¡i là m viá»c)."}),c.jsx("li",{children:"Thông tin liên quan tá»i thiết bá» Äang sá» dụng hoặc thẻ SIM"}),c.jsx("li",{children:"Các thông tin liên quan tá»i thiết bá» cá»§a bạn như: phiên bản Android, iOS, thông tin thiết bá» trên các nhà mạng..."})]}),c.jsx("h4",{className:Hi,children:"b. Thông tin tá»± Äá»ng:"}),c.jsx("p",{className:tr,children:"Ngoà i thông tin mà Ngưá»i Dùng cung cấp, chúng tôi có thá» thu tháºp thông tin vá» viá»c Ngưá»i Dùng sá» dụng Dá»ch vụ cá»§a chúng tôi thông qua phần má»m trên thiết bá» và các phương tiá»n khác cá»§a bạn. Và dụ:"}),c.jsxs("ul",{className:Rn,children:[c.jsx("li",{children:"Thông tin ÄÄng nháºp: chẳng hạn như thá»i gian và thá»i lượng Ngưá»i Dùng sá» dụng Dá»ch vụ,
646cụm từ truy vấn tìm kiếm Ngưá»i Dùng nháºp thông qua các Dá»ch vụ và bất kỳ thông tin nà o khác ÄÆ°á»£c lưu trữ trong cookie mà chúng tôi Äã Äặt trên thiết bá» cá»§a bạn."}),c.jsx("li",{children:"Thông tin Äá»a Äiá»m: chẳng hạn như tÃn hiá»u GPS cá»§a thiết bá» hoặc thông tin vá» Äiá»m truy cáºp WiFi á» gần và tháp phát sóng di Äá»ng có thá» ÄÆ°á»£c truyá»n Äến chúng tôi khi Ngưá»i Dùng sá» dụng những Dá»ch vụ nhất Äá»nh."})]}),c.jsx("h4",{className:Hi,children:"c. Thông tin từ các nguá»n khác:"}),c.jsx("ul",{className:Rn,children:c.jsx("li",{children:"Chúng tôi có thá» thu tháºp Thông Tin Ngưá»i Dùng từ các nguá»n khác, bao gá»m nhà cung cấp dá»ch vụ, Äá»i tác, các chương trình giá»i thiá»u, Äặc biá»t từ bá» pháºn nhân sá»± cá»§a Doanh nghiá»p mà Ngưá»i dùng Äang công tác và là m viá»c, Äã Äá»ng ý và chấp thuáºn cho Ekko cung cấp ứng dụng và thá»±c hiá»n Dá»ch vụ cho Ngưá»i dùng trên ná»n tảng cá»§a Ekko."})}),c.jsx("h3",{className:zi,children:"2. Mục ÄÃch sá» dụng thông tin:"}),c.jsx("p",{className:tr,children:'Chúng tôi sá» dụng Thông Tin Ngưá»i Dùng Äá» váºn hà nh, cung cấp và cải thiá»n Dá»ch Vụ, cho các mục ÄÃch sá» dụng cá»§a chúng tôi ("Mục ÄÃch") bao gá»m:'}),c.jsxs("ul",{className:Rn,children:[c.jsx("li",{children:"Chúng tôi sẽ giúp Ngưá»i Dùng ÄÄng ký tà i khoản, Äá»nh danh và sá» dụng dá»ch vụ Ngưá»i Dùng theo nhu cầu."}),c.jsx("li",{children:"Äánh giá và phân tÃch thá» trưá»ng, Ngưá»i Dùng, sản phẩm và dá»ch vụ cá»§a chúng tôi Äá» cải tiến, nâng cao chất lượng dá»ch vụ bao gá»m khắc phục các lá»i phần má»m và sá»± cá» váºn hà nh, tiến hà nh phân tÃch dữ liá»u, thá» nghiá»m và nghiên cứu, giám sát và p
646hân tÃch xu hưá»ng sá» dụng và hoạt Äá»ng, ÄÆ°a Äến trải nghiá»m hoà n hảo cho bạn qua từng lần cáºp nháºt."}),c.jsx("li",{children:"Tiếp nháºn, phân tÃch cách Ngưá»i Dùng sá» dụng Dá»ch vụ cá»§a Äá» chúng tôi có thá» phát triá»n thêm các sản phẩm và dá»ch vụ má»i theo mong muá»n và nhu cầu cá»§a bạn."}),c.jsx("li",{children:"Äá» kiá»m tra xem các thông tin mà bạn cung cấp so vá»i thông tin thá»±c tế cá»§a bạn, Äảm bảo không phải ngưá»i khác sá» dụng danh tÃnh cá»§a bạn."}),c.jsx("li",{children:"Äá» liên lạc vá»i bạn vá» tà i khoản cá»§a bạn, há» trợ bạn trong quá trình sá» dụng dá»ch vụ, khảo sát yêu cầu bạn cung cấp thêm thông tin, cÅ©ng như thông báo, cáºp nháºt khi có thay Äá»i Äá»i vá»i các dá»ch vụ cá»§a chúng tôi."}),c.jsx("li",{children:"Vì các mục ÄÃch khác theo sá»± Äá»ng ý cá»§a bạn."})]}),c.jsx("p",{className:tr,children:"Äá»i vá»i các mục ÄÃch sá» dụng Thông Tin Ngưá»i Dùng không ÄÆ°á»£c Äá» cáºp á» trên và /hoặc cần sá»± Äá»ng ý cụ thá» cá»§a Ngưá»i Dùng, chúng tôi có thá» xin chấp thuáºn cá»§a Ngưá»i Dùng vá» viá»c sá» dụng Thông Tin Ngưá»i Dùng cho má»t mục ÄÃch cụ thá» nà o Äó khi chúng tôi liên há» vá»i Ngưá»i Dùng."}),c.jsx("h3",{className:zi,children:"3. Phạm vi chia sẻ thông tin:"}),c.jsx("p",{className:tr,children:"Thông Tin cá»§a Ngưá»i Dùng là má»t phần quan trá»ng trong hoạt Äá»ng cá»§a chúng tôi, và chúng tôi cam kết không bán/tiết lá» Thông Tin cá»§a Ngưá»i Dùng cho ngưá»i khác. Chúng tôi chá» chia sẻ Thông Tin, trong phạm vi cần thiết, như ÄÆ°á»£c nêu dưá»i Äây, theo ChÃnh Sách Bảo Máºt nà y. Các bên ÄÆ°á»£c chia sẻ quyá»n truy cáºp Thông Tin, hoặc khi Ekko chia sẻ Thông tin cá»§a Ngưá»i Dùng phải cam kết tuân thá»§ hết sức nghiêm ngặt các quy Äá»nh cá»§a pháp luáºt và các quy Äá»nh liên quan tại ChÃnh Sách Bảo Máºt."}),c.jsx("h4",{className:Hi,children:"a. Vì lợi Ãch cá»§a bạn:"}),c.jsxs("ul",{className:Rn,children:[c.jsx("li",{children:"Trao Äá»i, cung cấp, chia sẻ Thông Tin vá»i các công ty thà nh viên, công ty liên kết, chi nhánh và các ÄÆ¡n vá» có liên quan khác cá»§a Doanh nghiá»p mà Ngưá»i dùng Äang công tác."}),c.jsx("li",{children:"Trao Äá»i, cung cấp, chia sẻ Thông Tin vá»i các công ty thà nh viên, công ty liên kết vá»i chúng tôi, hoặc ÄÆ¡n vá» nghiên cứu thá» trưá»ng nhằm mục ÄÃch nghiên cứu thá» trưá»ng, dá»ch vụ Äá» cung cấp tá»i bạn má»t sản phẩm phù hợp nhất"}),c.jsx("li",{children:"Các bên khác khi có sá»± Äá»ng ý cá»§a Ngưá»i Dùng hoặc theo hưá»ng dẫn cá»§a bạn. Ngoà i các tiết lá» như ÄÆ°á»£c mô tả trong ChÃnh sách bảo máºt thông tin cá nhân nà y, chúng tôi có thá» chia sẻ thông tin vá» Ngưá»i Dùng vá»i các bên thứ ba khi Ngưá»i Dùng Äá»ng ý hoặc yêu cầu viá»c chia sẻ như váºy."})]}),c.jsx("h4",{className:Hi,children:"b. Vì sá»± kiá»n bất khả kháng:"}),c.jsxs("ul",{className:Rn,children:[c.jsx("li",{children:"Thá»±c hiá»n theo yêu cầu cá»§a các cÆ¡ quan nhà nưá»c có thẩm quyá»n, hoặc theo quy Äá»nh cá»§a pháp luáºt, hoặc theo phán quyết cá»§a Tòa án;"}),c.jsx("li",{children:"Äá» bảo vá» quyá»n, tà i sản hoặc an toà n cá»§a Ekko hoặc các công ty liên kết, Äá»i tác kinh doanh."})]}),c.jsx("h3",{className:zi,children:"4. Cách thức lưu trữ và bảo vá» thông tin"}),c.jsx("p",{className:tr,children:"Bảo máºt thông tin là ưu tiên nghiêm ngặt nhất cá»§a chúng tôi trong viá»c bảo vá» quyá»n lợi tá»i Äa cho Ngưá»i Dùng."}),c.jsxs("ul",{className:Rn,children:[c.jsx("li",{children:"Há» thá»ng cá»§a chúng tôi ÄÆ°á»£c thiết kế có tÃnh Äến khả nÄng bảo Äảm an toà n và riêng tư cho thông tin cá»
646§a Ngưá»i Dùng. Má»i Thông Tin Ngưá»i Dùng Äá»u ÄÆ°á»£c lưu giữ và bảo máºt bá»i há» thá»ng cá»§a Ekko hoặc ÄÆ¡n vá» cung cấp dá»ch vụ cho Ekko theo quy Äá»nh cá»§a pháp luáºt và ChÃnh Sách Bảo Máºt nà y."}),c.jsx("li",{children:"Khi thu tháºp, tiếp nháºn dữ liá»u, Ekko sẽ ná» lá»±c tá»i Äa trong phạm vi cho phép Äá» thá»±c hiá»n lưu giữ và bảo máºt Thông Tin cá»§a Ngưá»i Dùng tại há» thá»ng máy chá»§ và các Thông Tin Ngưá»i Dùng nà y ÄÆ°á»£c bảo Äảm an toà n bằng các há» thá»ng tưá»ng lá»a (firewall), các biá»n pháp kiá»m soát truy cáºp, mã hóa dữ liá»u, bảo máºt lá»p truyá»n tải, truyá»n tải thông tin an toà n qua há» thá»ng TLS 1.2. Ekko có các biá»n pháp thÃch hợp vá» kỹ thuáºt và an ninh Äá» ngÄn chặn tá»i Äa trong phạm vi có thá» viá»c truy cáºp, sá» dụng trái phép Thông Tin cá»§a bạn."}),c.jsx("li",{children:"Các thông tin thanh toán cá»§a Ngưá»i Dùng do các tá» chức tà i chÃnh phát hà nh ÄÆ°á»£c chúng tôi bảo vá» theo tiêu chuẩn quá»c tế vá»i nguyên tắc không lưu giữ các dữ liá»u quan trá»ng cá»§a thẻ thanh toán (sá» thẻ, sá» CVV hoặc mã sá» xác thá»±c khác có giá trá» pháp lý tương ÄÆ°Æ¡ng) trên há» thá»ng cá»§a chúng tôi."}),c.jsx("li",{children:"Ngưá»i Dùng tuyá»t Äá»i không sá» dụng các công cụ, chương trình hay biá»n pháp nà o khác Äá» can thiá»p trái phép và o há» thá»ng hay là m thay Äá»i cấu trúc dữ liá»u cá»§a bất kỳ Dá»ch Vụ nà o, cÅ©ng như bất kỳ hà nh vi nà o khác nhằm phát tán, cá» vÅ© cho các hoạt Äá»ng vá»i mục ÄÃch can thiá»p, phá hoại hay xâm nháºp và o dữ liá»u cá»§a há» thá»ng Ekko, cÅ©ng như các các hà nh vi phạm pháp luáºt Viá»t Nam. Trong trưá»ng hợp chúng tôi phát hiá»n Ngưá»i Dùng có hà nh vi vi phạm, chúng tôi có quyá»n chuyá»n thông tin vá» hà nh vi vi phạm cho các cÆ¡ quan có thẩm quyá»n Äá» xá» lý theo quy Äá»nh pháp luáºt."}),c.jsx("li",{children:"Ngưá»i Dùng có trách nhiá»m bảo vá» thông tin tà i khoản cá»§a mình và không cung cấp bất kỳ thông tin nà o liên quan Äến tà i khoản, máºt khẩu hay các phương thức xác thá»±c (vd: OTP) truy cáºp trên các website, ứng dụng, phần má»m và các công cụ khác (nếu có)."}),c.jsx("li",{children:"Chúng tôi không chá»u trách nhiá»m vá» những vấn Äá» phát sinh khi Ngưá»i Dùng sá» dụng Dá»ch Vụ từ các công cụ, giao diá»n khác không phải là website, ứng dụng, phần má»m chÃnh thức, ÄÆ°á»£c phép sá» dụng trong khuôn khá» cá»§a Dá»ch Vụ."})]}),c.jsx("h3",{className:zi,children:"5. Xóa thông tin tà i khoản:"}),c.jsxs("ul",{className:Rn,children:[c.jsx("li",{children:"Bạn có thá» xóa Tà i khoản Ekko cá»§a mình bất kỳ lúc nà o tuỳ thuá»c và o nhu cầu cá»§a Ngưá»i Dùng. Ứng dụng cho phép Ngưá»i Dùng lá»±a chá»n xoá tà i khoản liên kết vá»i thông tin tại Doanh nghiá»p, yêu cầu nà y sẽ ÄÆ°á»£c bá» pháºn chÄm sóc khách hà ng tiếp nháºn và chuyá»n tá»i quản trá» viên doanh nghiá»p cá»§a bạn kiá»m tra trưá»c khi phê duyá»t viá»c xoá tà i khoản. Thá»i gian tiếp nháºn và phê duyá»t trong khoảng 05 - 07 ngà y. Ekko sẽ không can thiá»p trá»±c tiếp Äến dữ liá»u Ngưá»i dùng vì nó thuá»c quyá»n sá» hữu cá»§a Ngưá»i Dùng và Doanh nghiá»p cá»§a bạn, vì váºy viá»c xoá dữ liá»u cần có sá»± Äá»ng ý và xác nháºn cá»§a Hai bên trưá»c khi Ekko hoà n tất xóa Há» sÆ¡."}),c.jsx("li",{children:"Sau khi xoá Tà i khoản, bạn sẽ không có quyá»n truy cáºp và o Há» sÆ¡ cÅ©. Tất cả các lá»ch sá» sá» dụng ứng dụng cá»§a bạn, và thông tin chứa trong Há» sÆ¡ cá»§a bạn sẽ ÄÆ°á»£c xóa khá»i ứng dụng."}),c.jsx("li",{children:"Chúng tôi ÄÆ°á»£c miá»
n trừ trách nhiá»m trong viá»c xóa thông tin hay ná»i dung từ Há» sÆ¡ cá»§a Ngưá»i Dùng sau khi ÄÆ°á»£c các bên chấp thuáºn. Ngưá»i dùng nháºn thức và Äá»
646ng ý rằng, ngay cả sau khi tà i khoản bá» xóa, má»t sá» ná»i dung liên quan Äến thông tin giao dá»ch và công lương có thá» tiếp tục ÄÆ°á»£c lưu trữ trong khoảng thá»i gian cần thiết Äá» phục vụ các mục ÄÃch như hoà n tất các thá»§ tục liên quan, Äá»i chiếu thông tin hoặc thá»±c hiá»n các yêu cầu theo quy Äá»nh pháp luáºt và /hoặc CÆ¡ quan nhà nưá»c có thẩm quyá»n."})]})]}),c5e=()=>c.jsxs(c.Fragment,{children:[c.jsx("h1",{className:"text-3xl md:text-4xl font-bold mb-10 text-foreground",children:"Terms of Service"}),c.jsx("h2",{className:Ov,children:"A. SERVICE TERMS"}),c.jsx("p",{className:tr,children:'By clicking the confirmation button to agree to these Service Terms, you have chosen Ekko to experience an advanced form of early wage access developed specifically for the Company you are contributing to! To join the world of Ekko through the Ekko mobile application and Ekko Webapp (collectively referred to as Ekko or Ekko application), you ("User") are required to carefully read, understand, voluntarily agree to, and accept the binding regulations described in these Terms and Conditions, including the Privacy Policy on information sharing during the use of Ekko, applicable to Users of the Ekko application (hereinafter referred to as "Service Terms and Privacy Policy"). Specifically:'}),c.jsxs("ul",{className:fz,children:[c.jsx("li",{children:"By using the application and (by clicking the confirmation button) agreeing to use services on Ekko, you agree to use our services under all terms and conditions of this service (including any applicable service fees), and voluntarily confirm participation in a legally binding early wage access agreement between the User (employee), your Company, and Ekko Vietnam Joint Stock Company (Ekko - the service provider within the application). The User agrees to the agreements allowing the provision and use of personal data, as well as other agreements arising between the Company where you work and Ekko directly related to the deployment and application of this service."}),c.jsx("li",{children:"By agreeing to use the service, you confirm and agree that your employer is authorized to automatically deduct part or all of the salary corresponding to the amount you have advanced during the current pay cycle to repay Ekko at the time of salary payment. Ekko is committed to protecting your rights by resolving any unsuccessful or unexpected wage advance transactions, ensuring that the total salary and wage advance amount (after deducting service fees, if any) you receive is always complete, accurate, and unaffected compared to your regular monthly salary."}),c.jsx("li",{children:"In the event that, for any reason related to the employment relationship between you and your employer, salary deductions and/or financial obligations arise causing your net salary to be insufficient to repay the amount advanced through Ekko, you shall be fully and directly responsible for repaying the remaining amount to Ekko and shall release the Company where you work from all liability related to this repayment obligation. You acknowledge that in such cases, Ekko has the right to directly request and/or take necessary legal actions to enforce your repayment obligation."}),c.jsx("li",{children:"We may adjust, suspend, or terminate any feature on the Ekko application to improve the experience, ensure safety, or comply with legal regulations. Before making significant changes or terminating a feature, we will notify you via the application or registered email (if any) at least 15 (fifteen) business days in advance, except in cases of emergency or force majeure."}),c.jsx("li",{children:"We reserve the right to update the Terms and Conditions applicable to users to comply with changes in law, service adjustments, or other factors. These changes will be clearly communicated through the application or official communication channels at least 15 (fifteen) days before taking effect. Additionally, a pop-up notification about these changes will appear when the User first opens the application after the changes take effect. Users must read and confirm their agreement once with these changes to continue using the application's features."}),c.jsx("li",{children:"When changes are applied, your continued access to and use of the application after the effective date will be deemed as your acceptance of the amended terms. If you do not agree, you have the right to stop using the application on the effective date and contact us for assistance, if necessary."}),c.jsx("li",{children:"We are committed to providing transparent information about all changes and will not make any adjustments that seriously affect users' rights without prior consideration and notification."}),c.jsx("li",{children:"By using Ekko, the User implicitly acknowledges that the User is a legal entity eligible to transact on the Ekko application in accordance with Ekko's regulations and the current provisions of Vietnamese law."}),c.jsx("li",{children:"By choosing to agree to use accompanying services and providing the necessary personal information, the User permits Ekko and directly related service providers to access or automatically debit from the User's registered bank account, or to have the employer support direct repayment to Ekko in accordance with the value the User has requested in the application."}),c.jsx("li",{children:"We do not guarantee and shall not bear any legal responsibility for any risks, conflicts, damages, incidents, or losses arising outside the scope of Ekko's Service provision and not directly caused by our services. This liability exemption also applies to any incidents, damages, or losses related to the authenticity of the advance source, all information and documents provided by Users, or other agreements and records throughout the entire transaction process between Users through the Ekko application and/or any part thereof, as well as any fraudulent, deceptive, or other illegal acts by Users."}),c.jsx("li",{children:"All parties hereby commit to absolute compliance with Vietnamese law and relevant international regulations, particularly the provisions of Decree 13/2023/ND-CP. Any act of disrespect for the law by any User, regardless of reason or degree, shall be the responsibility of the User upon acceptance of Ekko's Service Terms. The obligation to comply with the law includes all mandatory obligations, responsibilities for compliance with legal regulations and Ekko's policies applied at each point in t
646ime. By using the service, Users agree to indemnify the Company and the Application Provider for all damages, costs, and other legal liabilities that the Company or Application Provider may incur in connection with the User's unlawful use of early wage access."})]}),c.jsx("h2",{className:Ov,children:"B. PRIVACY POLICY"}),c.jsx("p",{className:tr,children:"Ekko will collect certain personal information from users with consent from both the Company and the users themselves. By accepting the use of this service, the User has agreed to allow the employer to provide the information listed below to the service provider, and the Service Provider is permitted to store and use such information in accordance with the contents set forth in these Service Terms and Privacy Policy. When the Company provides personal information to Ekko, Ekko will, through the application, display information and use information generated by users when interacting with the application. To use our Ekko services, you must be at least 18 years old and meet the eligibility requirements as approved by the HR department at the Company where you are working."}),c.jsx("h3",{className:zi,children:"1. Scope of Information Collection:"}),c.jsx("h4",{className:Hi,children:"a. Information Directly Provided by User:"}),c.jsxs("ul",{className:Rn,children:[c.jsx("li",{children:"Basic personal information: to set up and verify accounts or profiles (including but not limited to: name, date of birth, gender, email address, phone number, bank account number, employee ID, workplace)."}),c.jsx("li",{children:"Information related to the device in use or SIM card"}),c.jsx("li",{children:"Device-related information such as: Android version, iOS version, device information on carriers..."})]}),c.jsx("h4",{className:Hi,children:"b. Automatically Collected Information:"}),c.jsx("p",{className:tr,children:"In addition to the information provided by the User, we may collect information about the User's use of our Services through software on your device and other means. For example:"}),c.jsxs("ul",{className:Rn,children:[c.jsx("li",{children:"Login information: such as the time and duration of the User's use of the Service, search queries entered by the User through the Services, and any other information stored in cookies that we have placed on your device."}),c.jsx("li",{children:"Location information: such as GPS signals from your device or information about nearby WiFi access points and mobile cell towers that may be transmitted to us when the User uses certain Services."})]}),c.jsx("h4",{className:Hi,children:"c. Information from Other Sources:"}),c.jsx("ul",{className:Rn,children:c.jsx("li",{children:"We may collect User Information from other sources, including service providers, partners, referral programs, and especially from the HR department of the Company where the User works and has agreed and consented to Ekko providing the application and performing Services for the User on Ekko's platform."})}),c.jsx("h3",{className:zi,children:"2. Purpose of Information Use:"}),c.jsx("p",{className:tr,children:'We use User Information to operate, provide, and improve the Service, for our purposes of use ("Purposes") including:'}),c.jsxs("ul",{className:Rn,children:[c.jsx("li",{children:"We will help Users register accounts, verify identity, and use services according to their needs."}),c.jsx("li",{children:"Evaluate and analyze the market, Users, our products and services to improve and enhance service quality, including fixing software bugs and operational issues, conducting data analysis, testing and research, monitoring and analyzing usage trends and activities, delivering a perfect experience for you with each update."}),c.jsx("li",{children:"Receive and analyze how Users use the Service so that we can develop new products and services according to your wishes and needs."}),c.jsx("li",{children:"To verify the information you provide against your actual information, ensuring that no one else is using your identity."}),c.jsx("li",{children:"To contact you regarding your account, support you during service usage, survey requests for additional information, as well as notify and update you of changes to our services."}),c.jsx("li",{children:"For other purposes with your consent."})]}),c.jsx("p",{className:tr,children:"For purposes of using User Information not mentioned above and/or requiring specific User consent, we may seek the User's approval for using User Information for a specific purpose when we contact the User."}),c.jsx("h3",{className:zi,children:"3. Scope of Information Sharing:"}),c.jsx("p",{className:tr,children:"User Information is an important part of our operations, and we are committed to not selling/disclosing User Information to others. We only share Information, to the extent necessary, as stated below, in accordance with this Privacy Policy. Parties granted access to Information, or when Ekko shares User Information, must commit to strict compliance with legal regulations and related provisions in the Privacy Policy."}),c.jsx("h4",{className:Hi,children:"a. For Your Benefit:"}),c.jsxs("ul",{className:Rn,children:[c.jsx("li",{children:"Exchange, provide, and share Information with subsidiaries, affiliates, branches, and other related entities of the Company where the User works."}),c.jsx("li",{children:"Exchange, provide, and share Information with our subsidiaries, affiliates, or market research entities for the purpose of market research and services to provide you with the most suitable product."}),c.jsx("li",{children:"Other parties with the User's consent or at your direction. In addition to the disclosures described
646in this Privacy Policy, we may share information about the User with third parties when the User consents to or requests such sharing."})]}),c.jsx("h4",{className:Hi,children:"b. Due to Force Majeure:"}),c.jsxs("ul",{className:Rn,children:[c.jsx("li",{children:"At the request of competent government authorities, or as required by law, or pursuant to court rulings;"}),c.jsx("li",{children:"To protect the rights, property, or safety of Ekko or its affiliates and business partners."})]}),c.jsx("h3",{className:zi,children:"4. Information Storage and Protection"}),c.jsx("p",{className:tr,children:"Information security is our strictest priority in protecting the maximum rights and interests of Users."}),c.jsxs("ul",{className:Rn,children:[c.jsx("li",{children:"Our systems are designed with the capability to ensure the safety and privacy of User information. All User Information is stored and secured by Ekko's systems or Ekko's service providers in accordance with the law and this Privacy Policy."}),c.jsx("li",{children:"When collecting and receiving data, Ekko will make its best efforts within permissible limits to store and secure User Information on server systems, and this User Information is secured by firewall systems, access control measures, data encryption, transport layer security, and safe information transmission through TLS 1.2. Ekko has appropriate technical and security measures to prevent, to the maximum extent possible, unauthorized access to and use of your Information."}),c.jsx("li",{children:"Users' payment information issued by financial institutions is protected by us in accordance with international standards, with the principle of not storing critical payment card data (card numbers, CVV numbers, or other authentication codes of equivalent legal value) on our systems."}),c.jsx("li",{children:"Users must absolutely not use any tools, programs, or other measures to illegally interfere with the system or alter the data structure of any Service, as well as any other behavior intended to spread, encourage activities aimed at interfering with, destroying, or intruding into the data of the Ekko system, as well as any acts violating Vietnamese law. In the event that we discover a User has committed a violation, we have the right to transfer information about the violation to the competent authorities for handling in accordance with the law."}),c.jsx("li",{children:"Users are responsible for protecting their account information and must not provide any information related to their account, password, or authentication methods (e.g., OTP) on any websites, applications, software, and other tools (if any)."}),c.jsx("li",{children:"We are not responsible for any issues arising when Users use the Service from tools or interfaces that are not the official website, application, or software authorized for use within the scope of the Service."})]}),c.jsx("h3",{className:zi,children:"5. Account Information Deletion:"}),c.jsxs("ul",{className:Rn,children:[c.jsx("li",{children:"You may delete your Ekko account at any time depending on the User's needs. The application allows Users to choose to delete their account linked to information at the Company; this request will be received by the customer support team and forwarded to your company administrator for review before approving the account deletion. The processing and approval time is approximately 05 - 07 days. Ekko will not directly intervene with User data as it belongs to the User and your Company; therefore, data deletion requires the consent and confirmation of both parties before Ekko completes the Profile deletion."}),c.jsx("li",{children:"After deleting your Account, you will no longer have access to your previous Profile. All your application usage history and information contained in your Profile will be deleted from the application."}),c.jsx("li",{children:"We are exempt from liability for deleting information or content from the User's Profile after approval by the parties. Users acknowledge and agree that, even after the account is deleted, certain content related to transaction and payroll information may continue to be stored for the necessary period to serve purposes such as completing related procedures, reconciling information, or fulfilling requirements under the law and/or competent government authorities."})]})]}),u5e=()=>c.jsx("div",{className:"min-h-screen bg-background"}
646),d5e=()=>c.jsx("div",{className:"w-full h-screen",children:c.jsx("iframe",{src:"https://ekko-champ-vote.lovable.app/login",className:"w-full h-full border-0",allow:"clipboard-read; clipboard-write",title:"AI Championship Vote"})}),m$=()=>{const[e,t]=w.useState(""),[n,r]=w.useState(typeof window<"u"&&sessionStorage.getItem("sce_auth")==="1"),[i,s]=w.useState(""),a=o=>{o.preventDefault(),e==="abc"?(sessionStorage.setItem("sce_auth","1"),r(!0),s("")):s("Incorrect password")};return n?c.jsx("iframe",{src:"/sce-report.html",title:"SCE Report",className:"w-screen h-screen border-0"}):c.jsx("div",{className:"min-h-screen flex items-center justify-center bg-background px-4",children:c.jsxs("form",{onSubmit:a,className:"w-full max-w-sm bg-card border border-border rounded-xl p-8 shadow-lg",children:[c.jsx("h1",{className:"text-xl font-semibold mb-2 text-foreground",children:"Protected Page"}),c.jsx("p",{className:"text-sm text-muted-foreground mb-6",children:"Enter password to continue."}),c.jsx("input",{type:"password",value:e,onChange:o=>t(o.target.value),placeholder:"Password",autoFocus:!0,className:"w-full px-3 py-2 rounded-md border border-border bg-background text-foreground mb-3 focus:outline-none focus:ring-2 focus:ring-primary"}),i&&c.jsx("p",{className:"text-sm text-destructive mb-3",children:i}),c.jsx("button",{type:"submit",className:"w-full bg-primary text-primary-foreground rounded-md py-2 font-medium hover:opacity-90 transition",children:"Enter"})]})})},g$=()=>{w.useEffect(()=>{ne.from("page_visits").insert({path:"/CPcampaign",user_agent:typeof navigator<"u"?navigator.userAgent.
646slice(0,500):null,referrer:typeof document<"u"&&document.referrer||null}).then(()=>{})},[]);const[e,t]=w.useState(""),[n,r]=w.useState(!1),i=w.useRef(!1),s=w.useMemo(()=>e.replace(/\D/g,""),[e]),a=s.length>=9&&s.length<=11,o=w.useMemo(()=>`Chà o bạn! Mình Äang dùng ứng dụng Ekko ÄỠứng lương linh hoạt, rất tiá»n lợi. 647 648Bạn tải app Ekko và khi ÄÄng ký, và o mục "Giá»i thiá»u bạn bè" á» mà n hình chÃnh, nháºp sá» Äiá»n thoại cá»§a mình: ${s||"[sá» Äiá»n thoại cá»§a bạn]"} và o ô "Nháºp mã giá»i thiá»u". 649 650Tải app tại: https://ekko.vn`,[s]),l=d=>{ne.from("page_visits").insert({path:d,user_agent:typeof navigator<"u"?navigator.userAgent.slice(0,500):null,referrer:typeof document<"u"&&document.referrer||null}).then(()=>{})};w.useEffect(()=>{a&&!i.current&&(i.current=!0,l("/CPcampaign#phone_entered"))},[a]);const u=async()=>{try{await navigator.clipboard.writeText(o),r(!0),l("/CPcampaign#message_copied"),setTimeout(()=>r(!1),2e3)}catch{}};return c.jsxs("div",{className:"min-h-screen text-white",style:{background:"radial-gradient(ellipse at 30% 20%, hsl(230 70% 22%) 0%, hsl(232 75% 12%) 45%, hsl(235 80% 6%) 100%)"},children:[c.jsx(hr,{title:"Chương trình giá»i thiá»u CPV - Ekko",description:"Giá»i thiá»u Äá»ng nghiá»p sá» dụng dá»ch vụ Ekko, nháºn ngay 50k cho má»i lượt giá»i thiá»u thà nh công.",path:"/CPcampaign"}),c.jsx(fn,{isOverlay:!0}),c.jsxs("section",{className:"relative overflow-hidden pt-32 pb-20 md:pt-40 md:pb-28",style:{background:"radial-gradient(ellipse at 30% 40%, hsl(230 70% 28%) 0%, hsl(232 75% 15%) 45%, hsl(235 80% 8%) 100%)"},children:[c.jsx("span",{"aria-hidden":!0,className:"sparkle sparkle-1 absolute top-24 left-[8%] text-3xl text-yellow-400",children:"â¦"}),c.jsx("span",{"aria-hidden":!0,className:"sparkle sparkle-2 absolute top-32 right-[10%] text-2xl text-white/80",children:"â¦"}),c.jsx("span",{"aria-hidden":!0,className:"sparkle sparkle-3 absolute bottom-16 left-[18%] text-xl text-accent/70",children:"â¦"}),c.jsx("span",{"aria-hidden":!0,className:"sparkle sparkle-4 absolute top-1/2 right-[22%] text-2xl text-accent/60",children:"â¦"}),c.jsx("span",{"aria-hidden":!0,className:"sparkle sparkle-5 absolute bottom-24 right-[8%] text-xl text-yellow-300/70",children:"â¦"}),c.jsx("span",{"aria-hidden":!0,className:"sparkle sparkle-6 absolute top-40 left-[42%] text-lg text-white/60",children:"â¦"}),c.jsx("style",{children:` 651 @keyframes sparkleFloat { 652 0%, 100% { transform: translate(0, 0) rotate(0deg); opacity: 0.9; } 653 25% { transform: translate(12px, -18px) rotate(90deg); opacity: 1; } 654 50% { transform: translate(-8px, -30px) rotate(180deg); opacity: 0.6; } 655 75% { transform: translate(-18px, -10px) rotate(270deg); opacity: 1; } 656 } 657 .sparkle { animation: sparkleFloat 12s ease-in-out infinite; will-change: transform, opacity; } 658 .sparkle-1 { animation-duration: 14s; animation-delay: 0s; } 659 .sparkle-2 { animation-duration: 18s; animation-delay: -3s; } 660 .sparkle-3 { animation-duration: 16s; animation-delay: -6s; } 661 .sparkle-4 { animation-duration: 20s; animation-delay: -2s; } 662 .sparkle-5 { animation-duration: 15s; animation-delay: -8s; } 663 .sparkle-6 { animation-duration: 22s; animation-delay: -5s; } 664 `}),c.jsxs("div",{className:"relative max-w-4xl mx-auto px-6 text-center",children:[c.jsxs("h1",{className:"font-black leading-tight tracking-tight mb-6 text-accent text-4xl md:text-6xl lg:text-7xl",children:["Nháºn thưá»ng lên tá»i",c.jsx("br",{}),"2,000,000 VNÄ"]}),c.jsxs("p",{className:"text-lg md:text-2xl text-white/85 max-w-3xl mx-auto leading-relaxed",children:["Giá»i thiá»u Äá»ng nghiá»p sá» dụng dá»ch vụ Ekko,",c.jsx("br",{className:"hidden md:block"}),"nháºn ngay 50k cho má»i lượt giá»i thiá»u thà nh công"]}),c.jsxs("p",{className:"mt-8 text-sm md:text-base text-white/60",children:["Chương trình áp dụng từ ",c.jsx("strong",{className:"text-white",children:"18/08/2026 - 31/08/2026"})," dà nh riêng cho nhân viên CPV/CPVF."]})]})]}),c.jsxs("main",{className:"max-w-3xl mx-auto px-6 pt-20 md:pt-32 pb-24 space-y-6",children:[c.jsxs("section",{className:"rounded-2xl bg-white/[0.03] border border-accent/20 p-6 md:p-8 backdrop-blur-sm shadow-[0_0_40px_-20px_hsl(var(--accent)/0.3)]",children:[c.jsx("h2",{className:"text-xl md:text-2xl font-semibold mb-3 text-accent",children:"1. Äá»i tượng"}),c.jsx("p",{className:"text-white/80",children:"Toà n bá» nhân viên CPV"})]}),c.jsxs("section",{className:"rounded-2xl bg-white/[0.03] border border-accent/20 p-6 md:p-8 backdrop-blur-sm shadow-[0_0_40px_-20px_hsl(var(--accent)/0.3)]",children:[c.jsx("h2",{className:"text-xl md:text-2xl font-semibold mb-3 text-accent",children:"2. Thá» lá»"}),c.jsxs("ul",{className:"list-disc pl-6 space-y-2 text-white/80",children:[c.jsxs("li",{children:["Ngưá»i giá»i thiá»u: sẽ nháºn ÄÆ°á»£c khoản thưá»ng ",c.jsx("strong",{className:"text-white",children:"50,000 VNÄ/lượt giá»i thiá»u"})," thà nh công và o tà i khoản nháºn lương."]}),c.jsxs("li",{children:["Ngưá»i ÄÆ°á»£c giá»i thiá»u: ÄÆ°á»£c ",c.jsx("strong",{className:"text-white",children:"ứng lương miá» n phÃ"})," vá»i giao dá»ch Äầu tiên, tá»i Äa ",c.jsx("strong",{className:"text-white",children:"2,000,000 VNÄ"}),"."]}),c.jsx("li",{children:"Không giá»i hạn sá» lần giá»i thiá»u."})]})]}),c.jsxs("section",{className:"rounded-2xl bg-white/[0.03] border border-accent/20 p-6 md:p-8 backdrop-blur-sm shadow-[0_0_40px_-20px_hsl(var(--accent)/0.3)]",children:[c.jsx("h2",{className:"text-xl md:text-2xl font-semibold mb-4 text-accent",children:"3. Cách thức tham gia"}),c.jsx("h3",{className:"font-semibold mt-2 mb-2 text-white",children:"Bưá»c 1: Ngưá»i giá»i thiá»u hưá»ng dẫn ngưá»i dùng má»i tải app Ekko & ÄÄng ký tà i khoản"}),c.jsxs("ul",{className:"list-disc pl-6 space-y-2 text-white/80",children:[c.jsx("li",{children:"Nháºp sá» Äiá»n thoại Äã ÄÄng ký vá»i phòng nhân sá»±"}),c.jsx("li",{children:"Äiá»n CP tại dòng công ty"}),c.jsx("li",{children:"Äiá»n mã nhân viên"}),c.jsx("li",{children:"Nhấn Äá»ng ý Äiá»u khoản"}),c.jsx("li",{children:"Há» thá»ng sẽ gá»i 1 mã gá»m 6 chữ sá» Äá» xác thá»±c sá» Äiá»n thoại"}),c.jsx("li",{children:"Tạo máºt khẩu và hoà n tất viá»c ÄÄng ký"})]}),c.jsx("h3",{className:"font-semibold mt-6 mb-2 text-white",children:"Bưá»c 2: Nháºp mã giá»i thiá»u"}),c.jsxs("p",{className:"text-white/80",children:["Ngưá»i ÄÆ°á»£c giá»i thiá»u và o chức nÄng ",c.jsx("strong",{className:"text-white",children:'"Giá»i thiá»u bạn bè"'})," á» mà n hình chÃnh, Äiá»n sá» Äiá»n thoại cá»§a Ngưá»i giá»i thiá»u và o ô ",c.jsx("strong",{className:"text-white",children:'"Nháºp mã giá»i thiá»u"'}),", sau Äó nhấn tiếp tục và xác nháºn Äá» hoà n tất ghi nháºn mã giá»i thiá»u."]})]}),c.jsxs("section",{className:"rounded-2xl bg-white/[0.03] border border-accent/20 p-6 md:p-8 backdrop-blur-sm shadow-[0_0_40px_-20px_hsl(var(--accent)/0.3)]",children:[c.jsx("h2",{className:"text-xl md:text-2xl font-semibold mb-3 text-accent",children:"4. Trả thưá»ng"}),c.jsxs("p",{className:"text-white/80",children:["Há» thá»ng Ekko sẽ ghi nháºn kết quả hợp lá» khi ngưá»i ÄÆ°á»£c giá»i thiá»u nháºp chÃnh xác mã giá»i thiá»u (sá» Äiá»n thoại cá»§a ngưá»i giá»i thiá»u) và khoản thưá»ng sẽ chuyá»n khoản trá»±c tiếp và o tà i khoản cho ngưá»i giá»i thiá»u ",c.jsx("strong",{className:"text-white",children:"và o thứ 6 hà ng tuần"}),"."]})]}),c.jsxs("section",{className:"rounded-2xl bg-white/[0.03] border border-accent/40 p-6 md:p-8 backdrop-blur-sm shadow-[0_0_40px_-20px_hsl(var(--accent)/0.5)]",children:[c.jsx("h2",{className:"text-xl md:text-2xl font-semibold mb-2 text-accent",children:"Chia sẻ mã giá»i thiá»u cá»§a bạn"}),c.jsx("p",{className:"text-white/70 mb-4 text-sm md:text-base",children:"Nháºp sá» Äiá»n thoại cá»§a bạn, sau Äó sao chép tin nhắn Äá» gá»i cho Äá»ng nghiá»p."}),c.jsx("label",{htmlFor:"ref-phone",className:"block text-sm text-white/70 mb-2",children:"Sá» Äiá»n thoại cá»§a bạn"}),c.jsx("input",{id:"ref-phone",type:"tel",inputMode:"numeric",placeholder:"Và dụ: 0901234567",value:e,onCh
664ange:d=>t(d.target.value),className:"w-full rounded-lg bg-white/5 border border-white/15 focus:border-accent focus:outline-none focus:ring-2 focus:ring-accent/40 px-4 py-3 text-white placeholder:text-white/40"}),c.jsxs("div",{className:"mt-5",children:[c.jsx("label",{className:"block text-sm text-white/70 mb-2",children:"Tin nhắn giá»i thiá»u"}),c.jsx("textarea",{readOnly:!0,value:o,rows:6,className:"w-full rounded-lg bg-white/5 border border-white/15 px-4 py-3 text-white/90 text-sm leading-relaxed resize-none"})]}),c.jsxs("button",{type:"button",onClick:u,disabled:!a,className:"mt-4 inline-flex items-center gap-2 rounded-lg bg-accent px-5 py-3 font-semibold text-primary disabled:opacity-40 disabled:cursor-not-allowed hover:brightness-110 transition",children:[n?c.jsx(Np,{className:"w-4 h-4"}):c.jsx(jh,{className:"w-4 h-4"}),n?"Äã sao chép!":"Sao chép tin nhắn"]}),!a&&e.length>0&&c.jsx("p",{className:"mt-2 text-sm text-white/50",children:"Vui lòng nháºp sá» Äiá»n thoại hợp lá»."})]}),c.jsx("section",{className:"text-center pt-4",children:c.jsxs("p",{className:"text-white/80",children:["Má»i thông tin cần há» trợ liên há» hotline:"," ",c.jsx("a",{href:"tel:02899999582",className:"text-accent font-semibold underline",children:"02899999582"})]})}),c.jsx("p",{className:"text-sm text-white/50 italic border-t border-accent/20 pt-6 text-center",children:"Lưu ý: Ekko sẽ kê khai thuế TNCN nếu có."})]}),c.jsx(pn,{})]})},y$=()=>{w.useEffect(()=>{ne.from("page_visits").insert({path:"/TinPNCcampaign",user_agent:typeof navigator<"u"?navigator.userAgent.
664slice(0,500):null,referrer:typeof document<"u"&&document.referrer||null}).then(()=>{})},[]);const[e,t]=w.useState(""),[n,r]=w.useState(!1),i=w.useRef(!1),s=w.useMemo(()=>e.replace(/\D/g,""),[e]),a=s.length>=9&&s.length<=11,o=w.useMemo(()=>`Chà o bạn! Mình Äang dùng ứng dụng Ekko ÄỠứng lương linh hoạt, rất tiá»n lợi. 665 666Bạn tải app Ekko và khi ÄÄng ký, và o mục "Giá»i thiá»u bạn bè" á» mà n hình chÃnh, nháºp sá» Äiá»n thoại cá»§a mình: ${s||"[sá» Äiá»n thoại cá»§a bạn]"} và o ô "Nháºp mã giá»i thiá»u". 667 668Tải app tại: https://ekko.vn`,[s]),l=d=>{ne.from("page_visits").insert({path:d,user_agent:typeof navigator<"u"?navigator.userAgent.slice(0,500):null,referrer:typeof document<"u"&&document.referrer||null}).then(()=>{})};w.useEffect(()=>{a&&!i.current&&(i.current=!0,l("/TinPNCcampaign#phone_entered"))},[a]);const u=async()=>{try{await navigator.clipboard.writeText(o),r(!0),l("/TinPNCcampaign#message_copied"),setTimeout(()=>r(!1),2e3)}catch{}};return c.jsxs("div",{className:"min-h-screen text-white",style:{background:"radial-gradient(ellipse at 30% 20%, hsl(230 70% 22%) 0%, hsl(232 75% 12%) 45%, hsl(235 80% 6%) 100%)"},children:[c.jsx(hr,{title:"Chương trình khuyến khÃch nhân viên TINPNC - Ekko",description:"Chương trình dà nh cho nhân viên TINPNC: nháºn 50.000 VNÄ má»i lượt giá»i thiá»u hợp lá» và voucher giảm phà ứng lương.",path:"/tinpnccampaign"}),c.jsx(fn,{isOverlay:!0}),c.jsxs("section",{className:"relative overflow-hidden pt-32 pb-20 md:pt-40 md:pb-28",style:{background:"radial-gradient(ellipse at 30% 40%, hsl(230 70% 28%) 0%, hsl(232 75% 15%) 45%, hsl(235 80% 8%) 100%)"},children:[c.jsx("span",{"aria-hidden":!0,className:"sparkle sparkle-1 absolute top-24 left-[8%] text-3xl text-yellow-400",children:"â¦"}),c.jsx("span",{"aria-hidden":!0,className:"sparkle sparkle-2 absolute top-32 right-[10%] text-2xl text-white/80",children:"â¦"}),c.jsx("span",{"aria-hidden":!0,className:"sparkle sparkle-3 absolute bottom-16 left-[18%] text-xl text-accent/70",children:"â¦"}),c.jsx("span",{"aria-hidden":!0,className:"sparkle sparkle-4 absolute top-1/2 right-[22%] text-2xl text-accent/60",children:"â¦"}),c.jsx("span",{"aria-hidden":!0,className:"sparkle sparkle-5 absolute bottom-24 right-[8%] text-xl text-yellow-300/70",children:"â¦"}),c.jsx("span",{"aria-hidden":!0,className:"sparkle sparkle-6 absolute top-40 left-[42%] text-lg text-white/60",children:"â¦"}),c.jsx("style",{children:` 669 @keyframes sparkleFloat { 670 0%, 100% { transform: translate(0, 0) rotate(0deg); opacity: 0.9; } 671 25% { transform: translate(12px, -18px) rotate(90deg); opacity: 1; } 672 50% { transform: translate(-8px, -30px) rotate(180deg); opacity: 0.6; } 673 75% { transform: translate(-18px, -10px) rotate(270deg); opacity: 1; } 674 } 675 .sparkle { animation: sparkleFloat 12s ease-in-out infinite; will-change: transform, opacity; } 676 .sparkle-1 { animation-duration: 14s; animation-delay: 0s; } 677 .sparkle-2 { animation-duration: 18s; animation-delay: -3s; } 678 .sparkle-3 { animation-duration: 16s; animation-delay: -6s; } 679 .sparkle-4 { animation-duration: 20s; animation-delay: -2s; } 680 .sparkle-5 { animation-duration: 15s; animation-delay: -8s; } 681 .sparkle-6 { animation-duration: 22s; animation-delay: -5s; } 682 `}),c.jsxs("div",{className:"relative max-w-4xl mx-auto px-6 text-center",children:[c.jsx("p",{className:"text-sm md:text-base uppercase tracking-widest text-white/60 mb-4",children:"Chương trình khuyến khÃch nhân viên TINPNC ÄÄng ký và sá» dụng Ekko T10/2026"}),c.jsxs("h1",{className:"font-black leading-tight tracking-tight mb-6 text-accent text-4xl md:text-6xl lg:text-7xl",children:["Nháºn 50.000 VNÄ",c.jsx("br",{}),"má»i lượt giá»i thiá»u"]}),c.jsxs("p",{className:"text-lg md:text-2xl text-white/85 max-w-3xl mx-auto leading-relaxed",children:["Giá»i thiá»u Äá»ng nghiá»p sá» dụng dá»ch vụ Ekko",c.jsx("br",{className:"hidden md:block"}),"nháºn ngay 50.000 VND cho má»i lượt giá»i thiá»u thà nh công."]}),c.jsxs("p",{className:"mt-8 text-sm md:text-base text-white/60",children:["Chương trình áp dụng từ ",c.jsx("strong",{className:"text-white",children:"01/10/2026 - 31/10/2026"})," dà nh riêng cho nhân viên TINPNC."]})]})]}),c.jsxs("main",{className:"max-w-3xl mx-auto px-6 pt-20 md:pt-32 pb-24 space-y-6",children:[c.jsxs("section",{className:"rounded-2xl bg-white/[0.03] border border-accent/20 p-6 md:p-8 backdrop-blur-sm shadow-[0_0_40px_-20px_hsl(var(--accent)/0.3)]",children:[c.jsx("h2",{className:"text-xl md:text-2xl font-semibold mb-3 text-accent",children:"1. Äá»i tượng"}),c.jsx("p",{className:"text-white/80",children:"Toà n bá» ngưá»i dùng là nhân sá»± TINPNC."})]}),c.jsxs("section",{className:"rounded-2xl bg-white/[0.03] border border-accent/20 p-6 md:p-8 backdrop-blur-sm shadow-[0_0_40px_-20px_hsl(var(--accent)/0.3)]",children:[c.jsx("h2",{className:"text-xl md:text-2xl font-semibold mb-4 text-accent",children:"2. Thá» lá»"}),c.jsx("h3",{className:"font-semibold mb-2 text-white",children:"Vá»i ngưá»i giá»i thiá»u"}),c.jsxs("ul",{className:"list-disc pl-6 space-y-2 text-white/80",children:[c.jsx("li",{children:"Sá» Äiá»n thoại ÄÄng nháºp ÄÆ°á»£c coi là mã giá»i thiá»u Äá» giá»i thiá»u Äá»ng nghiá»p tham gia ứng dụng Ekko."}),c.jsxs("li",{children:["Lượt giá»i thiá»u hợp lá»:",c.jsxs("ul",{className:"list-[circle] pl-6 mt-2 space-y-1",children:[c.jsx("li",{children:"Ngưá»i ÄÆ°á»£c giá»i thiá»u ÄÄng nháºp và o ứng dụng Ekko thà nh công."}),c.jsx("li",{children:"Ngưá»i ÄÆ°á»£c giá»i thiá»u nháºp mã giá»i thiá»u hợp lá» là sá» Äiá»n thoại ÄÄng nháºp cá»§a ngưá»i giá»i thiá»u."}),c.jsx("li",{children:"Ngưá»i ÄÆ°á»£c giá»i thiá»u ứng lương thà nh công (không quan trá»ng sá» tiá»n)."})]}),c.jsx("p",{className:"mt-2",children:"Má»i ngưá»i ÄÆ°á»£c giá»i thiá»u Äạt Äá»§ 3 Äiá»u kiá»n trên trong thá»i gian diá» n ra chương trình, ngưá»i giá»i thiá»u sẽ ÄÆ°á»£c ghi nháºn 01 lượt giá»i thiá»u hợp lá»."})]}),c.jsxs("li",{children:["Mức thưá»ng: ",c.jsx("strong",{className:"text-white",children:"50.000 VNÄ cho má»i lượt giá»i thiá»u hợp lá»"}),", không giá»i hạn sá» lượt."]})]}),c.jsx("h3",{className:"font-semibold mt-6 mb-2 text-white",children:"Vá»i ngưá»i dùng ứng lương"}),c.jsxs("ul",{className:"list-disc pl-6 space-y-2 text-white/80",children:[c.jsxs("li",{children:["Äiá»u kiá»n nháºn quà :",c.jsxs("ul",{className:"list-[circle] pl-6 mt-2 space-y-1",children:[c.jsx("li",{children:"Ngưá»i dùng chưa có giao dá»ch ứng lương lần Äầu trưá»c ngà y 1/10."}),c.jsxs("li",{children:["Ngưá»i dùng ứng lương tá»i thiá»u ",c.jsx("strong",{className:"text-white",children:"3.000.000 VNÄ"})," trong khoảng từ ngà y 1/10 Äến ngà y 31/10."]})]})]}),c.jsxs("li",{children:["Phần quà :",c.jsxs("ul",{className:"list-[circle] pl-6 mt-2 space-y-1",children:[c.jsxs("li",{children:["01 voucher giảm ",c.jsx("strong",{className:"text-white",children:"20.000 VNÄ phà ứng lương"}
682)," cho má»i 3.000.000 VNÄ Äã ứng trong tháng 10/2026."]}),c.jsx("li",{children:"Voucher có hiá»u lá»±c từ ngà y 01/11/2026 Äến ngà y 30/11/2026."})]})]})]})]}),c.jsxs("section",{className:"rounded-2xl bg-white/[0.03] border border-accent/20 p-6 md:p-8 backdrop-blur-sm shadow-[0_0_40px_-20px_hsl(var(--accent)/0.3)]",children:[c.jsx("h2",{className:"text-xl md:text-2xl font-semibold mb-4 text-accent",children:"3. Thá»i gian & cách thức trao thưá»ng"}),c.jsx("h3",{className:"font-semibold mb-2 text-white",children:"Thá»i gian chi trả"}),c.jsxs("ul",{className:"list-disc pl-6 space-y-2 text-white/80",children:[c.jsx("li",{children:"Tiá»n thưá»ng dà nh cho ngưá»i giá»i thiá»u: trả thưá»ng hằng ngà y (trừ thứ 7, chá»§ nháºt và ngà y lá»
)."}),c.jsx("li",{children:"Phần quà dà nh cho ngưá»i dùng ứng lương: voucher ÄÆ°á»£c cấp khi kết thúc chương trình."})]}),c.jsx("h3",{className:"font-semibold mt-6 mb-2 text-white",children:"Cách thức trao thưá»ng"}),c.jsxs("ul",{className:"list-disc pl-6 space-y-2 text-white/80",children:[c.jsxs("li",{children:["Tiá»n thưá»ng dà nh cho ngưá»i giá»i thiá»u: sau khi Äạt Äiá»u kiá»n nháºn thưá»ng và phản há»i ",c.jsx("strong",{className:"text-white",children:'"Äá»ng ý"'})," tham gia chương trình qua tin nhắn SMS, tiá»n thưá»ng ÄÆ°á»£c tá»± Äá»ng chuyá»n và o tà i khoản ngân hà ng cá»§a ngưá»i giá»i thiá»u."]}),c.jsx("li",{children:"Phần quà dà nh cho ngưá»i dùng ứng lương: cấp voucher trên há» thá»ng."})]})]}),c.jsxs("section",{className:"rounded-2xl bg-white/[0.03] border border-accent/40 p-6 md:p-8 backdrop-blur-sm shadow-[0_0_40px_-20px_hsl(var(--accent)/0.5)]",children:[c.jsx("h2",{className:"text-xl md:text-2xl font-semibold mb-2 text-accent",children:"Chia sẻ mã giá»i thiá»u cá»§a bạn"}),c.jsx("p",{className:"text-white/70 mb-4 text-sm md:text-base",children:"Nháºp sá» Äiá»n thoại cá»§a bạn, sau Äó sao chép tin nhắn Äá» gá»i cho Äá»ng nghiá»p."}),c.jsx("label",{htmlFor:"ref-phone",className:"block text-sm text-white/70 mb-2",children:"Sá» Äiá»n thoại cá»§a bạn"}),c.jsx("input",{id:"ref-phone",type:"tel",inputMode:"numeric",placeholder:"Và dụ: 0901234567",value:e,onChange:d=>t(d.target.value),className:"w-full rounded-lg bg-white/5 border border-white/15 focus:border-accent focus:outline-none focus:ring-2 focus:ring-accent/40 px-4 py-3 text-white placeholder:text-white/40"}),c.jsxs("div",{className:"mt-5",children:[c.jsx("label",{className:"block text-sm text-white/70 mb-2",children:"Tin nhắn giá»i thiá»u"}),c.jsx("textarea",{readOnly:!0,value:o,rows:6,className:"w-full rounded-lg bg-white/5 border border-white/15 px-4 py-3 text-white/90 text-sm leading-relaxed resize-none"})]}),c.jsxs("button",{type:"button",onClick:u,disabled:!a,className:"mt-4 inline-flex items-center gap-2 rounded-lg bg-accent px-5 py-3 font-semibold text-primary disabled:opacity-40 disabled:cursor-not-allowed hover:brightness-110 transition",children:[n?c.jsx(Np,{className:"w-4 h-4"}):c.jsx(jh,{className:"w-4 h-4"}),n?"Äã sao chép!":"Sao chép tin nhắn"]}),!a&&e.length>0&&c.jsx("p",{className:"mt-2 text-sm text-white/50",children:"Vui lòng nháºp sá» Äiá»n thoại hợp lá»."})]}),c.jsx("section",{className:"text-center pt-4",children:c.jsxs("p",{className:"text-white/80",children:["Má»i thông tin cần há» trợ liên há» hotline:"," ",c.jsx("a",{href:"tel:02899999582",className:"text-accent font-semibold underline",children:"02899999582"})]})}),c.jsx("p",{className:"text-sm text-white/50 italic border-t border-accent/20 pt-6 text-center",children:"Lưu ý: Ekko sẽ kê khai thuế TNCN nếu có."})]}),c.jsx(pn,{})]})},h5e=1,f5e="26a43911-7b92-43d2-b866-e3171d288014",p5e="a5a22b9b-342f-4040-bb73-dbbc83f43ea8",m5e="/__l5e/assets-v1/26a43911-7b92-43d2-b866-e3171d288014/ekko-guardian-partner.png",g5e="a/v1/a5a22b9b-342f-4040-bb73-dbbc83f43ea8/26a43911-7b92-43d2-b866-e3171d288014/ekko-guardian-partner.png",y5e="ekko-guardian-partner.png",v5e=896129,x5e="image/png",b5e="2026-07-30T03:50:44Z",w5e={version:h5e,asset_id:f5e,project_id:p5e,url:m5e,r2_key:g5e,original_filename:y5e,size:v5e,content_type:x5e,created_at:b5e},k5e=["Green Speed","C.P. Group","Biti's","Homefarm","Ecopark","AGS"],nc="text-muted-foreground leading-relaxed mb-5 text-base md:text-lg",v$=()=>c.jsxs("div",{className:"min-h-screen bg-background",children:[c.jsx(hr,{title:"Hợp tác cùng Ekko | Äá»i tác triá»n khai ứng lương linh hoạt",description:"Ekko hợp tác cùng Green Speed, C.P. Group, Biti's, Homefarm, Ecopark và AGS Äá» mang dá»ch vụ ứng lương linh hoạt (EWA) Äến hà ng chục nghìn ngưá»i lao Äá»ng tại Viá»t Nam.",path:"/hoptac"}),c.jsx(fn,{}),c.jsx("main",{className:"pt-24 pb-20 px-6 md:px-12 lg:px-16",children:c.jsxs("div",{className:"max-w-4xl mx-auto",children:[c.jsx("h1",{className:"text-3xl md:text-5xl font-bold mb-6 text-foreground",children:"Hợp tác cùng Ekko"}),c.jsx("p",{className:nc,children:"Ekko Äá»ng hà nh cùng các doanh nghiá»p hà ng Äá
682º§u tại Viá»t Nam Äá» triá»n khai dá»ch vụ ứng lương linh hoạt (Earned Wage Access) cho ngưá»i lao Äá»ng. Thay vì phải chá» Äến kỳ trả lương, nhân viên cá»§a các doanh nghiá»p Äá»i tác có thá» chá»§ Äá»ng nháºn phần lương mình Äã là m ra bất cứ lúc nà o, ngay trên ứng dụng Ekko, chá» trong và i phút."}),c.jsxs("figure",{className:"my-10",children:[c.jsx("img",{src:w5e.url,alt:"Nhân viên cá»a hà ng Äá»i tác nháºn quà từ Ekko trong chương trình triá»n khai ứng lương linh hoạt",className:"w-full rounded-2xl object-cover shadow-lg",loading:"lazy"}),c.jsx("figcaption",{className:"mt-3 text-sm text-muted-foreground",children:"Ekko Äá»ng hà nh cùng ngưá»i lao Äá»ng tại các doanh nghiá»p Äá»i tác trên toà n quá»c."})]}),c.jsx("h2",{className:"text-2xl md:text-3xl font-bold mt-12 mb-6 text-foreground",children:"Những doanh nghiá»p Äang Äá»ng hà nh cùng chúng tôi"}),c.jsx("div",{className:"flex flex-wrap gap-3 mb-8",children:k5e.map(e=>c.jsx("span",{className:"rounded-full border border-border bg-card px-5 py-2 text-sm font-medium text-foreground",children:e},e))}),c.jsx("p",{className:nc,children:"Từ Green Speed vá»i Äá»i ngÅ© nhân sá»± váºn hà nh và vá» sinh công nghiá»p quy mô lá»n, Äến C.P. Group trong lÄ©nh vá»±c nông nghiá»p và thá»±c phẩm, Biti's trong ngà nh sản xuất già y dép, Homefarm vá»i há» thá»ng bán lẻ thá»±c phẩm, Ecopark trong lÄ©nh vá»±c bất Äá»ng sản và dá»ch vụ, cùng AGS trong mảng dá»ch vụ doanh nghiá»p: má»i Äá»i tác có má»t Äặc thù nhân sá»± riêng. Ekko thiết kế quy trình triá»n khai phù hợp vá»i từng mô hình, tÃch hợp vá»i há» thá»ng chấm công và tÃnh lương sẵn có Äá» doanh nghiá»p gần như không phát sinh thêm công viá»c váºn hà nh."}),c.jsx("p",{className:nc,children:"Vá»i các doanh nghiá»p Äá»i tác, dá»ch vụ ÄÆ°á»£c cung cấp hoà n toà n miá»
n phÃ. Ekko chá»u trách nhiá»m vá» nguá»n vá»n, công nghá», há» trợ ngưá»i dùng và Äá»i soát cuá»i kỳ. Doanh nghiá»p chá» cần cung cấp dữ liá»u công lương Äá»nh kỳ và khấu trừ phần Äã ứng và o kỳ trả lương, Äúng như quy trình hiá»n tại."}),c.jsx("p",{className:"mb-5 rounded-xl border border-primary/20 bg-card px-5 py-4 text-base md:text-lg text-foreground font-medium",children:"Ứng lương miá»
n phà lên tá»i 2 triá»u vá»i giao dá»ch Äầu tiên áp dụng cho tất cả nhân viên trong suá»t thá»i gian là m viá»c tại công ty."}),c.jsx("h2",{className:"text-2xl md:text-3xl font-bold mt-12 mb-6 text-foreground",children:"Giá trá» mang lại"}),c.jsx("p",{className:nc,children:"Các doanh nghiá»p Äá»i tác ghi nháºn những thay Äá»i rõ rá»t sau khi triá»n khai: tá»· lá» nghá» viá»c giảm, tuyá»n dụng thuáºn lợi hÆ¡n, ngưá»i lao Äá»ng Äi là m Äá»u Äặn hÆ¡n và giảm Äáng ká» nhu cầu vay nóng bên ngoà i. Ứng lương linh hoạt trá» thà nh má»t phúc lợi thiết thá»±c, giúp doanh nghiá»p thá» hiá»n sá»± quan tâm tá»i Äá»i sá»ng tà i chÃnh cá»§a nhân viên mà không ảnh hưá»ng Äến dòng tiá»n."}),c.jsx("p",{className:nc,children:"Bên cạnh dá»ch vụ ứng lương, Ekko còn phá»i hợp vá»i các Äá»i tác tá» chức chương trình giáo dục tà i chÃnh, khảo sát mức Äá» an toà n tà i chÃnh cá»§a ngưá»i lao Äá»ng và các hoạt Äá»ng chÄm sóc tại nhà máy, cá»a hà ng. Mục tiêu chung là xây dá»±ng má»t lá»±c lượng lao Äá»ng á»n Äá»nh, khá»e mạnh vá» tà i chÃnh và gắn bó lâu dà i vá»i doanh nghiá»p."}),c.jsx("p",{className:nc,children:"Danh sách Äá»i tác cá»§a Ekko tiếp tục má» rá»ng theo từng quý. Nếu doanh nghiá»p cá»§a bạn quan tâm Äến viá»c triá»n khai ứng lương linh hoạt cho ngưá»i lao Äá»ng, hãy liên há» vá»i Äá»i ngÅ© Ekko Äá» cùng trao Äá»i phương án phù hợp."})]})}),c.jsx(pn,{})]}),S5e=1,j5e="967769bc-17cb-40bd-a645-b8d55c8912df",_5e="a5a22b9b-342f-4040-bb73-dbbc83f43ea8",E5e="/__l5e/assets-v1/967769bc-17cb-40bd-a645-b8d55c8912df/nordcham-vision.png",T5e="a/v1/a5a22b9b-342f-4040-bb73-dbbc83f43ea8/967769bc-17cb-40bd-a645-b8d55c8912df/nordcham-vision.png",N5e="nordcham-vision.png",C5e=1097394,A5e="image/png",P5e="2026-09-29T10:37:55Z",O5e={version:S5e,asset_id:j5e,project_id:_5e,url:E5e,r2_key:T5e,original_filename:N5e,size:C5e,content_type:A5e,created_at:P5e},R5e=1,I5e="da0d77ec-4c06-494a-a0be-4014c5765710",M5e="a5a22b9b-342f-4040-bb73-dbbc83f43ea8",$5e="/__l5e/assets-v1/da0d77ec-4c06-494a-a0be-4014c5765710/nordcham-platform.png",D5e="a/v1/a5a22b9b-342f-4040-bb73-dbbc83f43ea8/da0d77ec-4c06-494a-a0be-4014c5765710/nordcham-platform.png",L5e="nordcham-platform.png",F5e=255845,B5e="image/png",V5e="2026-09-29T10:38:00Z",q5e={version:R5e,asset_id:I5e,project_id:M5e,url:$5e,r2_key:D5e,original_filename:L5e,size:F5e,content_type:B5e,created_at:V5e},U5e=1,W5e="e74dfdc2-c087-4096-8cb8-55910ebcca4d",z5e="a5a22b9b-342f-4040-bb73-dbbc83f43ea8",H5e="/__l5e/assets-v1/e74dfdc2-c087-4096-8cb8-55910ebcca4d/nordcham-care-video.png",K5e="a/v1/a5a22b9b-342f-4040-bb73-dbbc83f43ea8/e74dfdc2-c087-4096-8cb8-55910ebcca4d/nordcham-care-video.png",G5e="nordcham-care-video.png",Y5e=2281214,X5e="image/png",Q5e="2026-09-29T10:38:06Z",Z5e={version:U5e,asset_id:W5e,project_id:z5e,url:H5e,r2_key:K5e,original_filename:G5e,size:Y5e,content_type:X5e,created_at:Q5e},J5e=1,eFe="f826e7fd-4789-4a14-98ae-75912d46d06d",tFe="a5a22b9b-342f-4040-bb73-dbbc83f43ea8",nFe="/__l5e/assets-v1/f826e7fd-4789-4a14-98ae-75912d46d06d/nordcham-funding.png",rFe="a/v1/a5a22b9b-342f-4040-bb73-dbbc83f43ea8/f826e7fd-4789-4a14-98ae-75912d46d06d/nordcham-funding.png",iFe="nordcham-funding.png",sFe=895187,aFe="image/png",oFe="2026-09-29T10:38:10Z",lFe={version:J5e,asset_id:eFe,project_id:tFe,url:nFe,r2_key:rFe,original_filename:iFe,size:sFe,content_type:aFe,created_at:oFe},x$=[{n:"01",title:"Our vision",text:"Boosting financial wellness and nurturing prosperous workforces across South-East Asian enterprises, aligned with SDG 3, 8 and 10.",img:O5e.url},{n:"02",title:"The platform",text:"Earned wage access made simple for employers. No IT project, no system changes: Ekko plugs into existing payroll, T&A or CSV timesheets.",img:q5e.url},{n:"03",title:"Impact on the ground",text:"Featured by CARE: helping workers ease short
682-term financial pressure while reducing reliance on informal borrowing and high-risk lending.",img:Z5e.url},{n:"04",title:"Traction and backing",text:"Ekko raised a $4.2 million seed round backed by Impact Square, Fondation Botnar, Sagana and Vietnamese high-net-worth individuals.",img:lFe.url}],b$=()=>{const[e,t]=w.useState(null);return c.jsxs("div",{className:"min-h-screen bg-background",children:[c.jsx(hr,{title:"Nordcham Startup Submission | ekko",description:"Ekko's submission for the Nordcham Startup competition",path:"/nordcham"}),c.jsx(fn,{}),c.jsx("header",{className:"bg-beyond-blue pt-32 pb-20 px-6 md:px-12 lg:px-16",children:c.jsxs("div",{className:"max-w-7xl mx-auto",children:[c.jsx("p",{className:"text-accent font-semibold tracking-widest uppercase text-sm mb-4",children:"Nordcham Startup Awards 2026"}),c.jsx("h1",{className:"text-4xl md:text-6xl font-bold text-primary-foreground leading-tight max-w-4xl",children:"Financial health for every worker in South-East Asia"}),c.jsx("p",{className:"text-primary-foreground/70 text-lg md:text-xl mt-6 max-w-2xl",children:"Ekko's submission in four chapters: vision, product, impact and traction"}),c.jsx("div",{className:"flex flex-wrap gap-3 mt-10",children:x$.map(n=>c.jsxs("a",{href:`#c${n.n}`,className:"rounded-full border border-primary-foreground/20 px-4 py-2 text-sm text-primary-foreground hover:border-accent hover:text-accent transition-colors",children:[n.n," ",n.title]},n.n))})]})}),c.jsx("main",{className:"px-6 md:px-12 lg:px-16 py-20 space-y-24 md:space-y-32 max-w-7xl mx-auto",children:x$.map((n,r)=>c.jsxs(U.section,{id:`c${n.n}`,initial:{opacity:0,y:50},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-100px"},transition:{duration:.8},className:"grid lg:grid-cols-12 gap-8 lg:gap-12 items-center scroll-mt-28",children:[c.jsxs("div",{className:`lg:col-span-4 ${r%2?"lg:order-2":""}`,children:[c.jsx("span",{className:"text-7xl md:text-8xl font-bold text-primary/15 leading-none",children:n.n}),c.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-foreground mt-2 mb-4",children:n.title}),c.jsx("p",{className:"text-muted-foreground text-lg leading-relaxed",children:n.text})]}),c.jsxs("button",{onClick:()=>t(n.img),className:`lg:col-span-8 group relative rounded-2xl overflow-hidden shadow-xl border border-border ${r%2?"lg:-rotate-1":"lg:rotate-1"} hover:rotate-0 transition-transform duration-500`,children:[c.jsx("img",{src:n.img,alt:n.title,loading:r===0?"eager":"lazy",className:"w-full h-auto group-hover:scale-[1.02] transition-transform duration-500"}),c.jsx("span",{className:"absolute bottom-4 right-4 bg-beyond-blue/80 text-primary-foreground text-xs px-3 py-1.5 rounded-full opacity-0 group-hover:opacity-100 transition-opacity",children:"Click to enlarge"})]})]},n.n))}),e&&c.jsxs("div",{className:"fixed inset-0 z-[60] bg-beyond-blue/90 backdrop-blur-sm flex items-center justify-center p-4 md:p-10",onClick:()=>t(null),children:[c.jsx("button",{className:"absolute top-6 right-6 text-primary-foreground","aria-label":"Close",children:c.jsx(rx,{className:"w-8 h-8"})}),c.jsx("img",{src:e,alt:"",className:"max-w-full max-h-full rounded-xl shadow-2xl"})]}),c.jsx(pn,{})]})},w$=e=>{if(!e)return"Unknown";const t=e.toLowerCase();return t.includes("edg/")?"Edge":t.includes("opr/")||t.includes("opera")?"Opera":t.includes("firefox")?"Firefox":t.includes("chrome")&&!t.includes("chromium")?"Chrome":t.includes("safari")?"Safari":"Other"},cFe=e=>{if(!e)return"Unknown";const t=e.toLowerCase();return t.includes("iphone")||t.includes("ipad")?"iOS":t.includes("android")?"Android":t.includes("mac os")?"macOS":t.includes("windows")?"Windows":t.includes("linux")?"Linux":"Other"},k$=(e=16)=>{const t="ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnpqrstuvwxyz23456789!@#$%^&*",n=new Uint32Array(e);crypto.getRandomValues(n);let r="";for(let i=0;i<e;i++)r+=t[n[i]%t.length];return r},S$=()=>{const e="abcdefghijkmnpqrstuvwxyz23456789",t=new Uint32Array(8);crypto.getRandomValues(t);let n="";for(let r=0;r<8;r++)n+=e[t[r]%e.length];return n},uFe=()=>{const e=Ar(),{toast:t}=ls(),[n,r]=w.useState(!0),[i,s]=w.useState([]),[a,o]=w.useState(!1),[l,u]=w.useState(null),[d,h]=w.useState(""),[f,p]=w.useState(""),[g,m]=w.useState(""),[y,v]=w.useState(""),[x,b]=w.useState(!0),[S,k]=w.useState(!0),[j,_]=w.useState(!1),[E,T]=w.useState(!1),[N,P]=w.useState([]),[C,M]=w.useState(null),[R,D]=w.useState({}),[L,B]=w.useState(!1),[I,O]=w.useState(null),[V,z]=w.useState([]),[q,X]=w.useState(!1),[J,xe]=w.useState(null),[ke,Y]=w.useState({}),[ce,K]=w.useState(!0),[Q,G]=w.useState(7);w.useEffect(()=>{(async()=>{const{data:{user:Se}}=await ne.auth.getUser();if(!Se){e("/admin/login");return}const{data:Ze}=await ne.from("user_roles").select("role").eq("user_id",Se.id),Me=Pe=>(Ze??[]).some(qt=>qt.role===Pe);if(!Me("admin")&&!Me("staff")){await ne.auth.signOut(),e("/admin/login");return}await F(),r(!1)})()},[]);const F=async()=>{const{data:W,error:Se}=await ne.from("protected_pages").select("id, slug, title, html, password_hash, created_at, updated_at, created_by, updated_by, expires_at").order("updated_at",{ascending:!1});if(Se){t({title:"Failed to load",description:ks(Se),variant:"destructive"});return}s((W??[]).map(Pe=>({...Pe,requires_password:!!Pe.password_hash})));const{data:Ze}=await ne.from("protected_page_access_log").select("id, slug, page_id, success, user_agent, occurred_at").order("occurred_at",{ascending:!1}).limit(500);P(Ze??[]);const Me=new Set;for(const Pe of W??[])Pe.created_by&&Me.add(Pe.created_by),Pe.updated_by&&Me.add(Pe.updated_by);if(Me.size>0){const{data:Pe}=await ne.rpc("get_user_emails",{_ids:Array.from(Me)});if(Pe){const qt={};for(const Te of Pe)qt[Te.id]=Te.email;Y(Te=>({...Te,...qt}))}}},ue=async W=>{const Se=Array.from(new Set(W.filter(Me=>!!Me&&!ke[Me])));if(Se.length===0)return;const{data:Ze}=await ne.rpc("get_user_emails",{_ids:Se});if(Ze){const Me={};for(const Pe of Ze)Me[Pe.id]=Pe.email;Y(Pe=>({...Pe,...Me}))}},ae=w.useMemo(()=>{var Pe,qt,Te;const W=new Map,Se=new Map,Ze=new Map,Me=new Map;for(const De of N){const Qt=W.get(De.slug)??{views:0,success:0,fails:0,unique:0,daily:[],browsers:[]};
682Qt.views+=1,De.success?Qt.success+=1:Qt.fails+=1,(!Qt.last||De.occurred_at>Qt.last)&&(Qt.last=De.occurred_at),W.set(De.slug,Qt);const Nn=Se.get(De.slug)??new Set;Nn.add(De.user_agent||"unknown"),Se.set(De.slug,Nn);const Qn=De.occurred_at.slice(0,10),Fn=Ze.get(De.slug)??new Map;Fn.set(Qn,(Fn.get(Qn)??0)+1),Ze.set(De.slug,Fn);const ri=w$(De.user_agent),na=Me.get(De.slug)??new Map;na.set(ri,(na.get(ri)??0)+1),Me.set(De.slug,na)}for(const[De,Qt]of W){Qt.unique=((Pe=Se.get(De))==null?void 0:Pe.size)??0;const Nn=[];for(let Qn=6;Qn>=0;Qn--){const Fn=new Date;Fn.setDate(Fn.getDate()-Qn);const ri=Fn.toISOString().slice(0,10);Nn.push({day:ri,count:((qt=Ze.get(De))==null?void 0:qt.get(ri))??0})}Qt.daily=Nn,Qt.browsers=Array.from(((Te=Me.get(De))==null?void 0:Te.entries())??[]).map(([Qn,Fn])=>({name:Qn,count:Fn})).sort((Qn,Fn)=>Fn.count-Qn.count).slice(0,4)}return W},[N]);w.useMemo(()=>{const W=new Set,Se=new Map,Ze=new Map,Me=Array(24).fill(0);let Pe=0;for(const Te of N){W.add(Te.user_agent||"unknown");const De=w$(Te.user_agent);Se.set(De,(Se.get(De)??0)+1);const Qt=cFe(Te.user_agent);Ze.set(Qt,(Ze.get(Qt)??0)+1);const Nn=new Date(Te.occurred_at).getHours();Me[Nn]+=1,Te.success&&(Pe+=1)}const qt=N.length;return{totalViews:qt,unique:W.size,successRate:qt?Math.round(Pe/qt*100):0,browsers:Array.from(Se.entries()).map(([Te,De])=>({name:Te,count:De})).sort((Te,De)=>De.count-Te.count),os:Array.from(Ze.entries()).map(([Te,De])=>({name:Te,count:De})).sort((Te,De)=>De.count-Te.count),hourly:Me}},[N]);const Ae=async W=>{O(W),B(!0),xe(null),X(!0);const{data:Se,error:Ze}=await ne.from("protected_page_versions").select("id, page_id, slug, title, html, changed_by, created_at").eq("page_id",W.id).order("created_at",{ascending:!1});if(X(!1),Ze){t({title:"Couldn't load history",description:ks(Ze),variant:"destructive"});return}const Me=Se??[];z(Me),await ue(Me.map(Pe=>Pe.changed_by))},Ie=async W=>{if(!confirm(`Restore version from ${new Date(W.created_at).toLocaleString()}? The current content will be snapshotted first.`))return;const{error:Se}=await ne.rpc("restore_protected_page_version",{p_version_id:W.id});if(Se){t({title:"Restore failed",description:ks(Se),variant:"destructive"});return}t({title:"Version restored"}),B(!1),await F()},Ge=()=>{u(null),h(S$()),p(""),m(""),v(k$()),b(!0),T(!1),k(!0),K(!0),G(7),o(!0)},jt=async W=>{if(u(W),h(W.slug),p(W.title),m(W.html),v(""),b(!0),T(!1),k(W.requires_password!==!1),W.expires_at){K(!0);const Se=Math.max(1,Math.ceil((new Date(W.expires_at).getTime()-Date.now())/864e5));G(Se)}else K(!1),G(7);if(o(!0),W.requires_password!==!1){const{data:Se}=await ne.rpc("get_protected_page_password",{p_id:W.id});Se&&v(Se)}},_t=async W=>{if(!W)return;if(W.size>5*1024*1024){t({title:"File too large",description:"Max 5 MB.",variant:"destructive"});return}const Se=await W.text();m(Se),f||p(W.name.replace(/\.html?$/i,""))},vn=async()=>{const W=d.trim().toLowerCase().replace(/[^a-z0-9-_]/g,"-").replace(/^-+|-+$/g,"");if(!W){t({title:"Slug required",variant:"destructive"});return}if(!g.trim()){t({title:"HTML required",description:"Upload or paste HTML.",variant:"destructive"});return}if(!l&&S&&y.length<6){t({title:"Weak password",description:"Use at least 6 characters.",variant:"destructive"});return}_(!0);const Se=ce?new Date(Date.now()+Math.max(1,Q)*864e5).toISOString():null,{error:Ze}=await ne.rpc("save_protected_page",{p_id:(l==null?void 0:l.id)??null,p_slug:W,p_title:f,p_html:g,p_password:S&&y||null,p_requires_password:S,p_expires_at:Se});if(_(!1),Ze){t({title:"Save failed",description:ks(Ze),variant:"destructive"});return}t({title:l?"Page updated":"Page created"}),o(!1),await F()},Vt=async W=>{if(!confirm(`Delete /${W.slug}? This cannot be undone.`))return;const{error:Se}=await ne.from("protected_pages").delete().eq("id",W.id);if(Se){t({title:"Delete failed",description:ks(Se),variant:"destructive"});return}t({title:"Deleted"}),await F()},on=(W,Se)=>{navigator.clipboard.writeText(W),t({title:`${Se} copied`})},xn=async W=>{const Se=R[W.id];if((Se==null?void 0:Se.value)!=null){D(Pe=>({...Pe,[W.id]:{...Se,value:null}}));return}D(Pe=>({...Pe,[W.id]:{value:null,loading:!0}}));const{data:Ze,error:Me}=await ne.rpc("get_protected_page_password",{p_id:W.id});if(Me){D(Pe=>({...Pe,[W.id]:{value:null,loading:!1}})),t({title:"Couldn't load password",description:ks(Me),variant:"destructive"});return}if(!Ze){D(Pe=>({...Pe,[W.id]:{value:null,loading:!1}})),t({title:"Password not stored",description:"This page was created before passwords were saved. Edit the page to set a new one.",variant:"destructive"});return}D(Pe=>({...Pe,[W.id]:{value:Ze,loading:!1}}))},ds=async()=>{await ne.auth.signOut(),e("/admin/login")},hs=typeof window<"u"?window.location.origin:"",bn=W=>`${hs}/p/${W}`;return n?c.jsx("div",{className:"min-h-screen bg-secondary flex items-center justify-center",children:c.jsx("p",{className:"text-muted-foreground",children:"Loading..."})}):c.jsxs("div",{className:"min-h-screen bg-secondary",children:[c.jsx("header",{className:"bg-background border-b border-border px-6 py-4",children:c.jsxs("div",{className:"max-w-6xl mx-auto flex items-center justify-between",children:[c.jsxs("div",{className:"flex items-center gap-4",children:[c.jsx(ut,{to:"/admin",children:c.jsx("img",{src:ho,alt:"Ekko",className:"h-8"})}),c.jsx("span",{className:"text-lg font-semibold text-foreground",children:"Protected Pages"})]}),c.jsxs("div",{className:"flex items-center gap-4",children:[c.jsx(ut,{to:"/",className:"text-muted-foreground hover:text-foreground text-sm",children:"View Site"}),c.jsxs(de,{variant:"outline",size:"sm",onClick:ds,children:[c.jsx(O_,{className:"w-4 h-4 mr-2"})," Logout"]})]})]})}),c.jsx("main",{className:"max-w-6xl mx-auto px-6 py-10",children:c.jsxs(U.div,{initial:{opacity:0,y:12}
682,animate:{opacity:1,y:0},children:[c.jsxs("div",{className:"flex items-center justify-between mb-6",children:[c.jsxs("div",{children:[c.jsx("h1",{className:"text-2xl font-bold text-foreground",children:"Sub-pages"}),c.jsx("p",{className:"text-sm text-muted-foreground",children:"Create password-protected pages hosted at /p/<slug>."})]}),c.jsxs(de,{onClick:Ge,children:[c.jsx(tx,{className:"w-4 h-4 mr-2"})," New page"]})]}),c.jsxs(Wt,{children:[c.jsx(br,{children:c.jsxs(wr,{children:["All pages (",i.length,")"]})}),c.jsx(gn,{children:i.length===0?c.jsx("p",{className:"text-sm text-muted-foreground py-8 text-center",children:"No pages yet. Click âNew pageâ to create one."}):c.jsx("div",{className:"divide-y divide-border",children:i.map(W=>{var Se,Ze,Me,Pe,qt;return c.jsxs("div",{className:"py-4 flex flex-wrap items-center gap-3 justify-between",children:[c.jsxs("div",{className:"min-w-0",children:[c.jsxs("div",{className:"font-medium text-foreground truncate flex items-center gap-2",children:[W.title||c.jsx("span",{className:"text-muted-foreground italic",children:"Untitled"}),W.requires_password===!1&&c.jsx("span",{className:"text-[10px] uppercase tracking-wide px-1.5 py-0.5 rounded bg-emerald-100 text-emerald-700",children:"Public"}),(()=>{if(!W.expires_at)return null;const Te=new Date(W.expires_at).getTime()-Date.now();if(Te<=0)return c.jsx("span",{className:"text-[10px] uppercase tracking-wide px-1.5 py-0.5 rounded bg-destructive/10 text-destructive",children:"Expired"});const De=Math.ceil(Te/864e5);return c.jsxs("span",{className:"text-[10px] uppercase tracking-wide px-1.5 py-0.5 rounded bg-amber-100 text-amber-700 inline-flex items-center gap-1",children:[c.jsx(Ol,{className:"w-3 h-3"})," Expires in ",De,"d"]})})()]}),c.jsxs("div",{className:"text-xs text-muted-foreground truncate",title:[W.created_by?`Created by ${ke[W.created_by]??"â¦"}`:null,W.updated_by?`Last edit by ${ke[W.updated_by]??"â¦"}`:null,W.expires_at?`Expires ${new Date(W.expires_at).toLocaleString()}`:null].filter(Boolean).join(" · "),children:[bn(W.slug)," · updated ",new Date(W.updated_at).toLocaleString()]}),(()=>{const Te=ae.get(W.slug);return c.jsxs("div",{className:"text-xs mt-1 flex items-center gap-3 text-muted-foreground",children:[c.jsxs("span",{className:"inline-flex items-center gap-1",children:[c.jsx(YC,{className:"w-3 h-3"}),(Te==null?void 0:Te.views)??0," visits"]}),c.jsxs("span",{className:"inline-flex items-center gap-1 text-emerald-600",children:[c.jsx(ny,{className:"w-3 h-3"}),(Te==null?void 0:Te.success)??0," unlocked"]}),c.jsxs("span",{className:"inline-flex items-center gap-1 text-destructive",children:[c.jsx(XC,{className:"w-3 h-3"}),(Te==null?void 0:Te.fails)??0," failed"]}),(Te==null?void 0:Te.last)&&c.jsxs("span",{children:["last ",new Date(Te.last).toLocaleString()]})]})})()]}),c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsxs(de,{size:"sm",variant:"outline",onClick:()=>on(bn(W.slug),"Link"),children:[c.jsx(jh,{className:"w-4 h-4 mr-1"})," Link"]}),W.requires_password!==!1&&c.jsxs(de,{size:"sm",variant:"outline",onClick:()=>xn(W),disabled:(Se=R[W.id])==null?void 0:Se.loading,children:[(Ze=R[W.id])!=null&&Ze.value?c.jsx(ry,{className:"w-4 h-4 mr-1"}):c.jsx(iy,{className:"w-4 h-4 mr-1"}),(Me=R[W.id])!=null&&Me.loading?"...":(Pe=R[W.id])!=null&&Pe.value?"Hide":"Password"]}),c.jsx(de,{size:"sm",variant:"outline",asChild:!0,children:c.jsxs("a",{href:`/p/${W.slug}`,target:"_blank",rel:"noreferrer",children:[c.jsx(D1,{className:"w-4 h-4 mr-1"})," Open"]})}),c.jsxs(de,{size:"sm",variant:"outline",onClick:()=>jt(W),children:[c.jsx(I_,{className:"w-4 h-4 mr-1"})," Edit"]}),c.jsxs(de,{size:"sm",variant:"outline",onClick:()=>Ae(W),children:[c.jsx(SK,{className:"w-4 h-4 mr-1"})," History"]}),c.jsx(de,{size:"sm",variant:"destructive",onClick:()=>Vt(W),children:c.jsx(Ap,{className:"w-4 h-4"})})]}),((qt=R[W.id])==null?void 0:qt.value)&&c.jsxs("div",{className:"w-full flex items-center gap-2 pl-1",children:[c.jsx("code",{className:"text-xs font-mono bg-muted px-2 py-1 rounded border border-border break-all",children:R[W.id].value}),c.jsx(de,{size:"sm",variant:"ghost",onClick:()=>on(R[W.id].value,"Password"),children:c.jsx(jh,{className:"w-3 h-3"})})]})]},W.id)})})})]}),c.jsxs(Wt,{className:"mt-8",children:[c.jsxs(br,{className:"flex flex-row items-center justify-between",children:[c.jsxs(wr,{className:"flex items-center gap-2",children:[c.jsx(YC,{className:"w-5 h-5 text-primary"}),"Recent activity"]}),c.jsxs(de,{size:"sm",variant:"outline",onClick:F,children:[c.jsx(bg,{className:"w-4 h-4 mr-2"})," Refresh"]})]}),c.jsx(gn,{children:N.length===0?c.jsx("p",{className:"text-sm text-muted-foreground py-6 text-center",children:"No visits yet. Password attempts will appear here."}):c.jsx("ul",{className:"divide-y divide-border max-h-96 overflow-y-auto",children:N.slice(0,100).map(W=>c.jsxs("li",{className:"py-2 text-sm flex items-start justify-between gap-3",children:[c.jsxs("div",{className:"min-w-0",children:[c.jsxs("div",{className:"flex items-center gap-2",children:[W.success?c.jsx(ny,{className:"w-4 h-4 text-emerald-600 flex-shrink-0"}):c.jsx(XC,{className:"w-4 h-4 text-destructive flex-shrink-0"}),c.jsxs("span",{className:"font-medium text-foreground",children:["/p/",W.slug]}),c.jsx("span",{className:"text-muted-foreground",children:W.success?"unlocked":"wrong password"})]}),C===W.id&&W.user_agent&&c.jsx("p",{className:"text-xs text-muted-foreground mt-1 break-all pl-6",children:W.user_agent})]}),c.jsxs("div",{className:"flex items-center gap-2 flex-shrink-0",children:[c.jsx("span",{className:"text-xs text-muted-foreground",children:new Date(W.occurred_at).toLocaleStr
682ing()}),W.user_agent&&c.jsx("button",{type:"button",onClick:()=>M(C===W.id?null:W.id),className:"text-muted-foreground hover:text-foreground","aria-label":"Toggle device info",children:C===W.id?c.jsx($1,{className:"w-4 h-4"}):c.jsx(pu,{className:"w-4 h-4"})})]})]},W.id))})})]})]})}),c.jsx(hp,{open:a,onOpenChange:o,children:c.jsxs(Hu,{className:"max-w-2xl",children:[c.jsx(Ku,{children:c.jsx(Gu,{children:l?"Edit page":"New protected page"})}),c.jsxs("div",{className:"space-y-4",children:[c.jsxs("div",{children:[c.jsx(He,{htmlFor:"slug",children:"URL slug"}),c.jsxs("div",{className:"flex gap-2",children:[c.jsx("div",{className:"flex items-center px-3 rounded-md border border-input bg-muted text-sm text-muted-foreground",children:"/p/"}),c.jsx(zt,{id:"slug",value:d,onChange:W=>h(W.target.value),placeholder:"acme-report"}),c.jsx(de,{type:"button",variant:"outline",onClick:()=>h(S$()),children:c.jsx(bg,{className:"w-4 h-4"})})]}),c.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:"Lowercase letters, numbers, hyphens."})]}),c.jsxs("div",{children:[c.jsx(He,{htmlFor:"title",children:"Title (internal)"}),c.jsx(zt,{id:"title",value:f,onChange:W=>p(W.target.value),placeholder:"e.g. Acme 2-month report"})]}),c.jsxs("div",{children:[c.jsx(He,{children:"HTML content"}),c.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[c.jsxs("label",{className:"inline-flex items-center gap-2 text-sm cursor-pointer px-3 py-2 rounded-md border border-input bg-background hover:bg-muted",children:[c.jsx(FK,{className:"w-4 h-4"}),c.jsx("span",{children:"Upload .html"}),c.jsx("input",{type:"file",accept:".html,text/html",className:"hidden",onChange:W=>{var Se;return _t(((Se=W.target.files)==null?void 0:Se[0])??null)}})]}),g&&c.jsxs("span",{className:"text-xs text-muted-foreground",children:[(g.length/1024).toFixed(1)," KB loaded"]}),g&&c.jsx(de,{type:"button",variant:"ghost",size:"sm",className:"ml-auto",onClick:()=>T(W=>!W),children:E?c.jsxs(c.Fragment,{children:[c.jsx($1,{className:"w-4 h-4 mr-1"})," Hide"]}):c.jsxs(c.Fragment,{children:[c.jsx(pu,{className:"w-4 h-4 mr-1"})," Show source"]})})]}),E||!g?c.jsx("textarea",{value:g,onChange:W=>m(W.target.value),placeholder:"Paste raw HTML or upload a file",className:"w-full min-h-[160px] text-xs font-mono rounded-md border border-input bg-background p-2"}):c.jsxs("div",{className:"text-xs text-muted-foreground border border-dashed border-input rounded-md p-3 bg-muted/40",children:["HTML loaded (",(g.length/1024).toFixed(1),' KB). Click "Show source" to view or edit.']})]}),c.jsxs("div",{className:"flex items-start justify-between gap-4 rounded-md border border-input p-3",children:[c.jsxs("div",{children:[c.jsx(He,{htmlFor:"req-pw",className:"text-sm",children:"Require a password"}),c.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:S?"Visitors must enter a password to view this page.":"Anyone with the link can view this page."})]}),c.jsx(fp,{id:"req-pw",checked:S,onCheckedChange:k})]}),c.jsxs("div",{className:"rounded-md border border-input p-3 space-y-3",children:[c.jsxs("div",{className:"flex items-start justify-between gap-4",children:[c.jsxs("div",{children:[c.jsx(He,{htmlFor:"auto-exp",className:"text-sm",children:"Auto-deactivate"}),c.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:ce?`Link will stop working after ${Q} day${Q===1?"":"s"}.`:"Link stays active until you delete it."})]}),c.jsx(fp,{id:"auto-exp",checked:ce,onCheckedChange:K})]}),ce&&c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx(He,{htmlFor:"exp-days",className:"text-xs text-muted-foreground w-24",children:"Days from now"}),c.jsx(zt,{id:"exp-days",type:"number",min:1,max:365,value:Q,onChange:W=>G(Math.max(1,Math.min(365,parseInt(W.target.value||"1",10)))),className:"w-24"}),c.jsxs("span",{className:"text-xs text-muted-foreground",children:["· deactivates on ",new Date(Date.now()+Math.max(1,Q)*864e5).toLocaleString()]})]})]}),S&&c.jsxs("div",{children:[c.jsxs(He,{htmlFor:"pw",children:["Password ",l&&c.jsx("span",{className:"text-xs text-muted-foreground",children:"(leave blank to keep current)"})]}),c.jsxs("div",{className:"flex gap-2",children:[c.jsx(zt,{id:"pw",type:x?"text":"password",value:y,onChange:W=>v(W.target.value),placeholder:l?"Unchanged":"Password"}),c.jsx(de,{type:"button",variant:"outline",onClick:()=>b(W=>!W),children:x?c.jsx(ry,{className:"w-4 h-4"}):c.jsx(iy,{className:"w-4 h-4"})}),c.jsxs(de,{type:"button",variant:"outline",onClick:()=>{v(k$()),b(!0)},children:[c.jsx(bg,{className:"w-4 h-4 mr-1"})," Generate"]}),y&&c.jsx(de,{type:"button",variant:"outline",onClick:()=>on(y,"Password"),children:c.jsx(jh,{className:"w-4 h-4"})})]}),c.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:"Save this password securely â it can't be recovered later."})]})]}),c.jsxs(YU,{children:[c.jsx(de,{variant:"outline",onClick:()=>o(!1),children:"Cancel"}),c.jsx(de,{onClick:vn,disabled:j,children:j?"Saving...":l?"Save changes":"Create page"})]})]})}),c.jsx(hp,{open:L,onOpenChange:W=>{B(W),W||xe(null)},children:c.jsxs(Hu,{className:"max-w-3xl",children:[c.jsx(Ku,{children:c.jsxs(Gu,{children:["Change history ",I&&c.jsxs("span",{className:"text-muted-foreground font-normal",children:["â /p/",I.slug]})]})}),q?c.jsx("p",{className:"text-sm text-muted-foreground py-6 text-center",children:"Loading historyâ¦"}):V.length===0?c.jsx("p",{className:"text-sm text-muted-foreground py-6 text-center",children:"No previous versions yet. Snapshots are captured automatically when you edit the page."}):c.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[c.jsx("ul",{className:"divide-y divide-border max-h-[420px] overflow-y-auto border border-border rounded-md",children:V.map(W=>c.jsxs("li",{className:`p-3 cursor-pointer hover:bg-muted/50 ${(J==null?void 0:J.id)===W.id?"bg-muted":""}`,onClick:()=>xe(W),children:[c.jsx("div",{className:"text-sm font-medium text-foreground truncate",children:W.title||c.jsx("span",{className:"italic text-muted-foreground",children:"Untitled"})}),c.jsxs("div",{className:"text-xs text-muted-foreground",children:[new Date(W.created_at).toLocaleStr
682ing()," · ",(W.html.length/1024).toFixed(1)," KB"]}),c.jsxs("div",{className:"text-xs text-muted-foreground inline-flex items-center gap-1 mt-0.5",children:[c.jsx(L4,{className:"w-3 h-3"}),W.changed_by?ke[W.changed_by]??"loadingâ¦":"unknown"]})]},W.id))}),c.jsx("div",{className:"border border-border rounded-md p-3 flex flex-col min-h-[420px]",children:J?c.jsxs(c.Fragment,{children:[c.jsxs("div",{className:"flex items-center justify-between mb-2",children:[c.jsx("div",{className:"text-xs text-muted-foreground",children:new Date(J.created_at).toLocaleString()}),c.jsxs(de,{size:"sm",onClick:()=>Ie(J),children:[c.jsx(IK,{className:"w-4 h-4 mr-1"})," Restore this version"]})]}),c.jsx("iframe",{title:"Version preview",srcDoc:J.html,sandbox:"",className:"w-full flex-1 border border-border rounded bg-white"})]}):c.jsx("p",{className:"text-sm text-muted-foreground m-auto",children:"Select a version to preview."})})]})]})})]})},dFe=()=>{const e=Ar(),{toast:t}=ls(),[n,r]=w.useState(!0),[i,s]=w.useState(!1),[a,o]=w.useState([]),[l,u]=w.useState(""),[d,h]=w.useState("staff"),[f,p]=w.useState(!1),[g,m]=w.useState(null),y=`${window.location.origin}/admin/set-password`;w.useEffect(()=>{(async()=>{const{data:{user:j}}=await ne.auth.getUser();if(!j)return e("/admin/login");const{data:_}=await ne.from("user_roles").select("role").eq("user_id",j.id).eq("role","admin").maybeSingle();if(!_)return await ne.auth.signOut(),e("/admin/login");m(j.id),r(!1),v()})()},[]);const v=async()=>{s(!0);const{data:k,error:j}=await ne.functions.invoke("manage-staff",{body:{action:"list"}});if(s(!1),j||k!=null&&k.error){t({title:"Failed to load staff",description:(j==null?void 0:j.message)||(k==null?void 0:k.error),variant:"destructive"});return}o(k.staff??[])},x=async k=>{if(k.preventDefault(),!l.trim())return;p(!0);const{data:j,error:_}=await ne.functions.invoke("manage-staff",{body:{action:"invite",email:l.trim(),role:d,redirectTo:y}});if(p(!1),_||j!=null&&j.error){t({title:"Invite failed",description:(_==null?void 0:_.message)||(j==null?void 0:j.error),variant:"destructive"});return}t({title:"Invitation sent",description:`${l} will receive an email to set their password.`}),u(""),h("staff"),v()},b=async k=>{const{data:j,error:_}=await ne.functions.invoke("manage-staff",{body:{action:"resend",email:k,redirectTo:y}});if(_||j!=null&&j.error){t({title:"Failed to resend",description:(_==null?void 0:_.message)||(j==null?void 0:j.error),variant:"destructive"});return}t({title:"Reset link sent",description:`Emailed ${k}.`})},S=async k=>{if(!confirm(`Remove ${k.email}? This deletes their account permanently.`))return;const{data:j,error:_}=await ne.functions.invoke("manage-staff",{body:{action:"remove",user_id:k.id}});if(_||j!=null&&j.error){t({title:"Remove failed",description:(_==null?void 0:_.message)||(j==null?void 0:j.error),variant:"destructive"});return}t({title:"Removed",description:`${k.email} no longer has access.`}),v()};return n?c.jsx("div",{className:"min-h-screen bg-secondary flex items-center justify-center",children:c.jsx("p",{className:"text-muted-foreground",children:"Loading..."})}):c.jsxs("div",{className:"min-h-screen bg-secondary",children:[c.jsx("header",{className:"bg-background border-b border-border px-6 py-4",children:c.jsxs("div",{className:"max-w-5xl mx-auto flex items-center justify-between",children:[c.jsxs("div",{className:"flex items-center gap-4",children:[c.jsx("img",{src:ho,alt:"Ekko",className:"h-8"}),c.jsx("span",{className:"text-lg font-semibold text-foreground",children:"Staff Management"})]}),c.jsx(de,{variant:"outline",size:"sm",asChild:!0,children:c.jsxs(ut,{to:"/admin",children:[c.jsx(ss,{className:"w-4 h-4 mr-2"}),"Back to Dashboard"]})})]})}),c.jsx("main",{className:"max-w-5xl mx-auto px-6 py-12",children:c.jsxs(U.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},children:[c.jsx("h1",{className:"text-3xl font-bold text-foreground mb-2",children:"Team & access"}),c.jsx("p",{className:"text-muted-foreground mb-8",children:"Invite teammates to the admin portal. They will receive an email to create their own password."}),c.jsxs(Wt,{className:"mb-8",children:[c.jsxs(br,{children:[c.jsxs(wr,{className:"flex items-center gap-2",children:[c.jsx(BK,{className:"w-5 h-5 text-primary"}),"Invite a new member"]}),c.jsx(Si,{children:"They will receive a secure email link to set their own password."})]}),c.jsx(gn,{children:c.jsxs("form",{onSubmit:x,className:"flex flex-col sm:flex-row gap-3 sm:items-end",children:[c.jsxs("div",{className:"flex-1",children:[c.jsx(He,{htmlFor:"staff-email",children:"Work email"}
682),c.jsx(zt,{id:"staff-email",type:"email",value:l,onChange:k=>u(k.target.value),placeholder:"[email protected]",required:!0})]}),c.jsxs("div",{className:"w-full sm:w-48",children:[c.jsx(He,{htmlFor:"staff-role",children:"Role"}),c.jsxs(Xp,{value:d,onValueChange:k=>h(k),children:[c.jsx(jd,{id:"staff-role",children:c.jsx(Qp,{})}),c.jsxs(_d,{children:[c.jsx(Mn,{value:"staff",children:"Staff"}),c.jsx(Mn,{value:"admin",children:"Admin"})]})]})]}),c.jsxs(de,{type:"submit",disabled:f,children:[f?c.jsx(EK,{className:"w-4 h-4 mr-2 animate-spin"}):c.jsx(mu,{className:"w-4 h-4 mr-2"}),"Send invite"]})]})})]}),c.jsxs(Wt,{children:[c.jsxs(br,{className:"flex flex-row items-center justify-between",children:[c.jsxs("div",{children:[c.jsx(wr,{children:"Current team"}),c.jsxs(Si,{children:[a.length," ",a.length===1?"member":"members"," with portal access"]})]}),c.jsxs(de,{variant:"outline",size:"sm",onClick:v,disabled:i,children:[c.jsx(bg,{className:`w-4 h-4 mr-2 ${i?"animate-spin":""}`}),"Refresh"]})]}),c.jsx(gn,{children:i&&a.length===0?c.jsx("p",{className:"text-muted-foreground text-sm",children:"Loading team..."}):a.length===0?c.jsx("p",{className:"text-muted-foreground text-sm",children:"No members yet."}):c.jsx("ul",{className:"divide-y divide-border",children:a.map(k=>{const j=k.id===g,_=k.roles.includes("admin");return c.jsxs("li",{className:"py-4 flex flex-col sm:flex-row sm:items-center sm:justify-between gap-3",children:[c.jsxs("div",{children:[c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx("p",{className:"font-medium text-foreground",children:k.email}),j&&c.jsx("span",{className:"text-xs px-2 py-0.5 rounded-full bg-primary/10 text-primary",children:"You"})]}),c.jsxs("div",{className:"flex flex-wrap items-center gap-2 mt-1 text-xs text-muted-foreground",children:[c.jsxs("span",{className:"inline-flex items-center gap-1",children:[c.jsx(R4,{className:"w-3 h-3"}),_?"Admin":k.roles.join(", ")||"No role"]}),c.jsx("span",{children:"·"}),c.jsx("span",{children:k.confirmed?k.last_sign_in_at?`Last signed in ${new Date(k.last_sign_in_at).toLocaleDateString()}`:"Has set password":"Invitation pending"})]})]}),c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsxs(de,{variant:"outline",size:"sm",onClick:()=>b(k.email),disabled:!k.email,children:[c.jsx(mu,{className:"w-4 h-4 mr-2"}),"Send reset link"]}),c.jsx(de,{variant:"outline",size:"sm",onClick:()=>S(k),disabled:j,className:"text-destructive hover:text-destructive",children:c.jsx(Ap,{className:"w-4 h-4"})})]})]},k.id)})})})]})]})})]})},hFe=()=>{const e=Ar(),{toast:t}=ls(),[n,r]=w.useState(!1),[i,s]=w.useState(!1),[a,o]=w.useState(""),[l,u]=w.useState(""),[d,h]=w.useState(!1);w.useEffect(()=>{(async()=>{const{data:m}=await ne.auth.getSession();s(!!m.session),r(!0)})();const{data:g}=ne.auth.onAuthStateChange((m,y)=>{s(!!y)});return()=>g.subscription.unsubscribe()},[]);const f=async p=>{if(p.preventDefault(),a.length<8){t({title:"Password too short",description:"Use at least 8 characters.",variant:"destructive"});return}if(a!==l){t({title:"Passwords don't match",variant:"destructive"});return}h(!0);const{error:g}=await ne.auth.updateUser({password:a});if(h(!1),g){t({title:"Could not set password",description:ks(g),variant:"destructive"});return}t({title:"Password set",description:"You're signed in."}),e("/admin")};return c.jsx("div",{className:"min-h-screen bg-secondary flex items-center justify-center px-6",children:c.jsxs(U.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"w-full max-w-md",children:[c.jsxs("div",{className:"text-center mb-8",children:[c.jsx("img",{src:ho,alt:"Ekko",className:"h-10 mx-auto mb-4"}),c.jsx("h1",{className:"text-2xl font-bold text-foreground",children:"Set your password"})]}),c.jsxs(Wt,{children:[c.jsxs(br,{children:[c.jsx(wr,{children:"Create a password"}),c.jsx(Si,{children:"Choose a password you'll remember. You'll use it with your work email to sign in."})]}),c.jsx(gn,{children:n?i?c.jsxs("form",{onSubmit:f,className:"space-y-4",children:[c.jsxs("div",{children:[c.jsx(He,{htmlFor:"pw",children:"New password"}),c.jsx(zt,{id:"pw",type:"password",value:a,onChange:p=>o(p.target.value),required:!0,minLength:8,placeholder:"At least 8 characters"})]}),c.jsxs("div",{children:[c.jsx(He,{htmlFor:"pw2",children:"Confirm password"}
682),c.jsx(zt,{id:"pw2",type:"password",value:l,onChange:p=>u(p.target.value),required:!0,minLength:8})]}),c.jsx(de,{type:"submit",className:"w-full",disabled:d,children:d?"Saving...":"Set password & sign in"})]}):c.jsxs("div",{className:"space-y-4",children:[c.jsx("p",{className:"text-sm text-muted-foreground",children:"This link is invalid or has expired. Ask an admin to send a new invite from the Team page."}),c.jsx(de,{variant:"outline",onClick:()=>e("/admin/login"),className:"w-full",children:"Back to sign in"})]}):c.jsx("p",{className:"text-sm text-muted-foreground",children:"Loading..."})})]})]})})},fFe=()=>{const e=Ar(),[t,n]=w.useState(!1),[r,i]=w.useState("/CPcampaign");w.useEffect(()=>{(async()=>{const{data:{user:g}}=await ne.auth.getUser();if(!g){e("/admin/login");return}const{data:m}=await ne.from("user_roles").select("role").eq("user_id",g.id).maybeSingle();if(!m){await ne.auth.signOut(),e("/admin/login");return}n(!0)})()},[e]);const{data:s=[]}=dn({queryKey:["page-visits-paths"],enabled:t,queryFn:async()=>{const{data:g,error:m}=await ne.from("page_visits").select("path").order("occurred_at",{ascending:!1}).limit(5e3);if(m)throw m;const y=new Set;for(const v of g??[])v.path&&y.add(v.path);return Array.from(y).sort()}}),{data:a=[],isLoading:o}=dn({queryKey:["page-visits",r],enabled:t,queryFn:async()=>{const g=new Date;g.setDate(g.getDate()-90);const{data:m,error:y}=await ne.from("page_visits").select("occurred_at").eq("path",r).gte("occurred_at",g.toISOString()).order("occurred_at",{ascending:!1}).limit(1e4);if(y)throw y;return m??[]}}),l=new Map;for(const g of a){const y=new Date(g.occurred_at).toLocaleDateString("en-CA");l.set(y,(l.get(y)??0)+1)}const u=Array.from(l.entries()).sort((g,m)=>g[0]<m[0]?1:-1),d=a.length,h=new Date().toLocaleDateString("en-CA"),f=l.get(h)??0,p=u.slice(0,7).reduce((g,[,m])=>g+m,0);return t?c.jsxs("div",{className:"min-h-screen bg-secondary",children:[c.jsx("header",{className:"bg-background border-b border-border px-6 py-4",children:c.jsx("div",{className:"max-w-5xl mx-auto flex items-center justify-between",children:c.jsxs("div",{className:"flex items-center gap-3",children:[c.jsx(ut,{to:"/admin",children:c.jsxs(de,{variant:"ghost",size:"sm",children:[c.jsx(ss,{className:"w-4 h-4 mr-1"}),"Back"]})}),c.jsx("h1",{className:"text-lg font-semibold",children:"Page Visits"})]})})}),c.jsxs("main",{className:"max-w-5xl mx-auto px-6 py-8 space-y-6",children:[c.jsxs(Wt,{children:[c.jsxs(br,{children:[c.jsx(wr,{children:"Filter"}),c.jsx(Si,{children:"Pick a tracked page or event"})]}),c.jsx(gn,{children:c.jsxs(Xp,{value:r,onValueChange:i,children:[c.jsx(jd,{className:"w-full md:w-[420px]",children:c.jsx(Qp,{placeholder:"Select a page"})}),c.jsxs(_d,{children:[s.length===0&&c.jsx(Mn,{value:"/CPcampaign",children:"/CPcampaign"}),s.map(g=>c.jsx(Mn,{value:g,children:g},g))]})]})})]}),c.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[c.jsx(Wt,{children:c.jsxs(br,{children:[c.jsx(wr,{children:f}),c.jsx(Si,{children:"Today"})]})}),c.jsx(Wt,{children:c.jsxs(br,{children:[c.jsx(wr,{children:p}),c.jsx(Si,{children:"Last 7 days"})]})}),c.jsx(Wt,{children:c.jsxs(br,{children:[c.jsx(wr,{children:d}),c.jsx(Si,{children:"Last 90 days total"})]})})]}),c.jsxs(Wt,{children:[c.jsxs(br,{children:[c.jsx(wr,{children:"Daily visits"}),c.jsx(Si,{children:o?"Loading...":`${u.length} days with activity`})]}),c.jsx(gn,{children:u.length===0?c.jsxs("p",{className:"text-sm text-muted-foreground",children:["No visits recorded yet for ",r,"."]}):c.jsx("div",{className:"divide-y",children:u.map(([g,m])=>c.jsxs("div",{className:"flex items-center justify-between py-2",children:[c.jsx("span",{className:"font-mono text-sm",children:g}),c.jsx("span",{className:"font-semibold",children:m})]},g))})})]})]})]}):c.jsx("div",{className:"min-h-screen flex items-center justify-center text-muted-foreground",children:"Loading..."})},pFe=1,mFe="300768a1-1b82-4a68-a773-3967bd8c6fd7",gFe="a5a22b9b-342f-4040-bb73-dbbc83f43ea8",yFe="/__l5e/assets-v1/300768a1-1b82-4a68-a773-3967bd8c6fd7/ekko-logo-navy.png",vFe="a/v1/a5a22b9b-342f-4040-bb73-dbbc83f43ea8/300768a1-1b82-4a68-a773-3967bd8c6fd7/ekko-logo-navy.png",xFe="ekko-logo-navy.png",bFe=37800,wFe="image/png",kFe="2026-07-08T10:44:03Z",SFe={version:pFe,asset_id:mFe,project_id:gFe,url:yFe,r2_key:vFe,original_filename:xFe,size:bFe,content_type:wFe,created_at:kFe},jFe=1,_Fe="26cb4f6b-191c-4daf-8296-04071aab38e8",EFe="a5a22b9b-342f-4040-bb73-dbbc83f43ea8",TFe="/__l5e/assets-v1/26cb4f6b-191c-4daf-8296-04071aab38e8/ekko-logo-blue.png",NFe="a/v1/a5a22b9b-342f-4040-bb73-dbbc83f43ea8/26cb4f6b-191c-4daf-8296-04071aab38e8/ekko-logo-blue.png",CFe="ekko-logo-blue.png",AFe=38080,PFe="image/png",OFe="2026-07-08T10:44:08Z",RFe={version:jFe,asset_id:_Fe,project_id:EFe,url:TFe,r2_key:NFe,original_filename:CFe,size:AFe,content_type:PFe,created_at:OFe},IFe=1,MFe="66677ccf-1fc6-4b72-9ec4-03e6d83b8941",$Fe="a5a22b9b-342f-4040-bb73-dbbc83f43ea8",DFe="/__l5e/assets-v1/66677ccf-1fc6-4b72-9ec4-03e6d83b8941/ekko-logo-lime.png",LFe="a/v1/a5a22b9b-342f-4040-bb73-dbbc83f43ea8/66677ccf-1fc6-4b72-9ec4-03e6d83b8941/ekko-logo-lime.png",FFe="ekko-logo-lime.png",BFe=38028,VFe="image/png",qFe="2026-07-08T10:44:12Z",UFe={version:IFe,asset_id:MFe,project_id:$Fe,url:DFe,r2_key:LFe,original_filename:FFe,size:BFe,content_type:VFe,created_at:qFe},WFe=1,zFe="5efe91d1-fb63-4615-a038-385b2083620f",HFe="a5a22b9b-342f-4040-bb73-dbbc83f43ea8",KFe="/__l5e/assets-v1/5efe91d1-fb63-4615-a038-385b2083620f/ekko-logo-white.png",GFe="a/v1/a5a22b9b-342f-4040-bb73-dbbc83f43ea8/5efe91d1-fb63-4615-a038-385b2083620f/ekko-logo-white.png",YFe="ekko-logo-white.png",XFe=35710,QFe="image/png",ZFe="2026-07-08T10:44:16Z",JFe={version:WFe,asset_id:zFe,project_id:HFe,url:KFe,r2_key:GFe,original_filename:YFe,size:XFe,content_type:QFe,created_at:ZFe},pz=[SFe.url,RFe.url,UFe.url,JFe.url],j$=pz.length,Jd=216,e6e=()=>{const e=w.useRef(null),t=w.useRef([]),n=w.useRef([]),r=w.useRef(null);return w.useEffect(()=>{const i=e.current;if(!i)return;const s=()=>i.getBoundingClientRect(),a=Jd/2;(()=>{const{width:h,height:f}=s();n.current=Array.from({length:j$},()=>({x:Math.random()*Math.max(1,h-Jd)+a,y:Math.random()*Math.max(1,f-Jd)+a,vx:(Math.random()*2-1)*120,vy:(Math.random()*2-1)*120,r:a}))})();let l=performance.now();const u=h=>{const f=Math.min(.05,(h-l)/1e3);l=h;const{width:p,height:g}=s(),m=n.current;for(const y of m)y.x+=y.vx*f,y.y+=y.vy*f,y.x<y.r?(y.x=y.r,y.vx=Math.abs(y.vx)):y.x>p-y.r&&(y.x=p-y.r,y.vx=-Math.abs(y.vx)),y.y<y.r?(y.y=y.r,y.vy=Math.abs(y.vy)):y.y>g-y.r&&(y.y=g-y.r,y.vy=-Math.abs(y.vy));for(let y=0;y<m.length;y++)for(let v=y+1;v<m.length;v++){const x=m[y],b=m[v],S=b.x-x.x,k=b.y-x.y,j=Math.hypot(S,k),_=x.r+b.r;if(j>0&&j<_){const E=S/j,T=k/j,N=(_-j)/2;x.x-=E*N,x.y-=T*N,b.x+=E*N,b.y+=T*N;const P=b.vx-x.vx,C=b.vy-x.vy,M=P*E+C*T;M<0&&(x.vx+=M*E,x.vy+=M*T,b.vx-=M*E,b.vy-=M*T)}}for(let y=0;y<m.length;y++){const v=t.current[y],x=m[y];v&&(v.style.transform=`translate3d(${x.x-x.r}px, ${x.y-x.r}px, 0)`)}r.current=requestAnimationFrame(u)};r.current=requestAnimationFrame(u);const d=()=>{const{width:h,height:f}=s();for(const p of n.current)p.x=Math.min(Math.max(p.r,p.x),h-p.r),p.y=Math.min(Math.max(p.r,p.y),f-p.r)};return window.addEventListener("resize",d),()=>{r.current&&cancelAnimationFrame(r.current),window.removeEventListener("resize",d)}}
682,[]),c.jsx("div",{ref:e,"aria-hidden":!0,className:"pointer-events-none absolute inset-0 overflow-hidden",children:Array.from({length:j$},(i,s)=>c.jsx("img",{ref:a=>{a&&(t.current[s]=a)},src:pz[s],alt:"",draggable:!1,style:{position:"absolute",left:0,top:0,width:Jd,height:Jd,objectFit:"contain",willChange:"transform",userSelect:"none"}},s))})},t6e=()=>{const{slug:e=""}=sE(),[t,n]=w.useState(""),[r,i]=w.useState(null),[s,a]=w.useState(""),[o,l]=w.useState(null),[u,d]=w.useState(null),[h,f]=w.useState(!1),[p,g]=w.useState(""),[m,y]=w.useState(!1),v=`pp:${e}`;w.useEffect(()=>{let b=!1;return(async()=>{const S=typeof window<"u"?window.localStorage.getItem(v):null,{data:k,error:j}=await ne.rpc("protected_page_info",{p_slug:e});if(b)return;if(j){l(!1);return}const _=Array.isArray(k)?k[0]:k,E=!!(_!=null&&_.page_exists),T=!!(_!=null&&_.requires_password),N=!!(_!=null&&_.expired);if(l(E),d(T),f(N),!(E&&N)){if(E&&!T){const{data:P}=await ne.rpc("get_public_protected_page",{p_slug:e,p_user_agent:typeof navigator<"u"?navigator.userAgent:null}),C=Array.isArray(P)?P[0]:null;C&&(a(C.title||""),i(C.html||""))}else if(E&&T&&S){const{data:P}=await ne.rpc("verify_protected_page",{p_slug:e,p_password:S,p_user_agent:typeof navigator<"u"?navigator.userAgent:null}),C=Array.isArray(P)?P[0]:null;C?(a(C.title||""),i(C.html||"")):window.localStorage.removeItem(v)}}})(),()=>{b=!0}},[e]),w.useEffect(()=>{s&&(document.title=s)},[s]);const x=async b=>{b.preventDefault(),y(!0),g("");const{data:S,error:k}=await ne.rpc("verify_protected_page",{p_slug:e,p_password:t,p_user_agent:typeof navigator<"u"?navigator.userAgent:null});if(y(!1),k){g(k.message);return}const j=Array.isArray(S)?S[0]:null;if(!j){g("Incorrect password");return}try{window.localStorage.setItem(v,t)}catch{}a(j.title||""),i(j.html||"")};return r!==null?c.jsx("iframe",{title:s||e,srcDoc:r,sandbox:"allow-scripts allow-same-origin allow-popups allow-forms",className:"w-screen h-screen border-0"}):c.jsxs("div",{className:"relative min-h-screen flex items-center justify-center bg-background px-4 overflow-hidden",children:[c.jsx(e6e,{}),c.jsxs("form",{onSubmit:x,className:"relative z-10 w-full max-w-sm bg-card/90 backdrop-blur border border-border rounded-xl p-8 shadow-lg",children:[c.jsx("h1",{className:"text-xl font-semibold mb-2 text-foreground",children:"Protected page"}),c.jsx("p",{className:"text-sm text-muted-foreground mb-6",children:o===!1?"This page does not exist.":h?"This link has expired and is no longer available.":"Enter password to continue."}),o!==!1&&!h&&c.jsxs(c.Fragment,{children:[c.jsx("input",{type:"password",value:t,onChange:b=>n(b.target.value),placeholder:"Password",autoFocus:!0,className:"w-full px-3 py-2 rounded-md border border-border bg-background text-foreground mb-3 focus:outline-none focus:ring-2 focus:ring-primary"}),p&&c.jsx("p",{className:"text-sm text-destructive mb-3",children:p}),c.jsx("button",{type:"submit",disabled:m,className:"w-full bg-primary text-primary-foreground rounded-md py-2 font-medium hover:opacity-90 transition disabled:opacity-60",children:m?"Checking...":"Enter"})]})]})]})},_$=()=>{const e=Ys();return w.useEffect(()=>{console.error("404 Error: User attempted to access non-existent route:",e.pathname)},[e.pathname]),c.jsx("div",{className:"flex min-h-screen items-center justify-center bg-muted",children:c.jsxs("div",{className:"text-center",children:[c.jsx("h1",{className:"mb-4 text-4xl font-bold",children:"404"}),c.jsx("p",{className:"mb-4 text-xl text-muted-foreground",children:"Oops! Page not found"}),c.jsx("a",{href:"/",className:"text-primary underline hover:text-primary/90",children:"Return to Home"})]})})},n6e={vn:"vi",vi:"vi",ko:"ko",kr:"ko",en:"en",zh:"zh",cn:"zh"},r6e=()=>{const{i18n:e}=St(),t=Ar(),n=Ys();return w.useEffect(()=>{const r=n.pathname.split("/").filter(Boolean);if(r.length===0)return;const i=r[0].toLowerCase(),s=n6e[i];if(!s)return;e.language!==s&&e.changeLanguage(s);const a="/"+r.slice(1).join("/");t(a+n.search+n.hash,{replace:!0})},[n.pathname,n.search,n.hash,e,t]),null},i6e=()=>{const{pathname:e}=Ys();return w.useEffect(()=>{window.scrollTo({top:0,left:0,behavior:"instant"})},[e]),null},s6e=new rQ,a6e=()=>c.jsx(lQ,{client:s6e,children:c.jsxs(_3,{children:[c.jsx(kG,{}),c.jsx(eY,{}),c.jsxs(gZ,{children:[c.jsx(i6e,{}),c.jsx(r6e,{}),c.jsxs(cZ,{children:[c.jsx(We,{path:"/",element:c.jsx(upe,{})}),c.jsx(We,{path:"/for-business",element:c.jsx(Upe,{})}),c.jsx(We,{path:"/for-workers",element:c.jsx(pme,{})}),c.jsx(We,{path:"/about",element:c.jsx(bme,{})}),c.jsx(We,{path:"/impact-report",element:c.jsx(_4e,{})}),c.jsx(We,{path:"/news",element:c.jsx(E4e,{})}),c.jsx(We,{path:"/news/:slug",element:c.jsx(N4e,{})}),c.jsx(We,{path:"/careers",element:c.jsx(V4e,{})}),c.jsx(We,{path:"/careers/:id",element:c.jsx(q4e,{})}),c.jsx(We,{path:"/chinh-sach-su-dung",element:c.jsx(o5e,{})}),c.jsx(We,{path:"/aiship",element:c.jsx(u5e,{})}),c.jsx(We,{path:"/vote",element:c.jsx(d5e,{})}),c.jsx(We,{path:"/SCE",element:c.jsx(m$,{})}),c.jsx(We,{path:"/sce",element:c.jsx(m$,{})}),c.jsx(We,{path:"/CPcampaign",element:c.jsx(g$,{})}),c.jsx(We,{path:"/cpcampaign",element:c.jsx(g$,{})}),c.jsx(We,{path:"/tinpnccampaign",element:c.jsx(y$,{})}),c.jsx(We,{path:"/TinPNCcampaign",element:c.jsx(y$,{})}),c.jsx(We,{path:"/hoptac",element:c.jsx(v$,{})}),c.jsx(We,{path:"/HopTac",element:c.jsx(v$,{})}),c.jsx(We,{path:"/nordcham",element:c.jsx(b$,{})}),c.jsx(We,{path:"/Nordcham",element:c.jsx(b$,{})}),c.jsx(We,{path:"/admin/login",element:c.jsx(H4e,{})}),c.jsx(We,{path:"/admin",element:c.jsx(K4e,{})}),c.jsx(We,{path:"/admin/news",element:c.jsx(V3e,{})}),c.jsx(We,{path:"/admin/jobs",element:c.jsx(q3e,{})}),c.jsx(We,{path:"/admin/applications",element:c.jsx(W3e,{})}),c.jsx(We,{path:"/admin/inquiries",element:c.jsx(a5e,{})}),c.jsx(We,{path:"/admin/pages",element:c.jsx(uFe,{})}),c.jsx(We,{path:"/admin/staff",element:c.jsx(dFe,{})}),c.jsx(We,{path:"/admin/set-password",element:c.jsx(hFe,{})}),c.jsx(We,{path:"/admin/visits",element:c.jsx(fFe,{})}),c.jsx(We,{path:"/p/:slug",element:c.jsx(t6e,{})}),c.jsx(We,{path:"*",element:c.jsx(_$,{})}),c.jsx(We,{path:"*",element:c.jsx(_$,{})})]})]})]})});YL(document.getElementById("root")).render(c.jsx(n4,{children:c.jsx(a6e,{})}));
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.