vendor: 6,058 bytes, lines 1-17
1var lS=Object.defineProperty;var oS=(n,t,s)=>t in n?lS(n,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):n[t]=s;var le=(n,t,s)=>oS(n,typeof t!="symbol"?t+"":t,s);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))r(l);new MutationObserver(l=>{for(const c of l)if(c.type==="childList")for(const u of c.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&r(u)}).observe(document,{childList:!0,subtree:!0});function s(l){const c={};return l.integrity&&(c.integrity=l.integrity),l.referrerPolicy&&(c.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?c.credentials="include":l.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function r(l){if(l.ep)return;l.ep=!0;const c=s(l);fetch(l.href,c)}})();function oy(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}function cS(n){if(Object.prototype.hasOwnProperty.call(n,"__esModule"))return n;var t=n.default;if(typeof t=="function"){var s=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};s.prototype=t.prototype}else s={};return Object.defineProperty(s,"__esModule",{value:!0}),Object.keys(n).forEach(function(r){var l=Object.getOwnPropertyDescriptor(n,r);Object.defineProperty(s,r,l.get?l:{enumerable:!0,get:function(){return n[r]}})}),s}var nd={exports:{}},fr={};/** 2 * @license React 3 * react-jsx-runtime.production.js 4 * 5 * Copyright (c) Meta Platforms, Inc. and affiliates. 6 * 7 * This source code is licensed under the MIT license found in the 8 * LICENSE file in the root directory of this source tree. 9 */var H0;function uS(){if(H0)return fr;H0=1;var n=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function s(r,l,c){var u=null;if(c!==void 0&&(u=""+c),l.key!==void 0&&(u=""+l.key),"key"in l){c={};for(var h in l)h!=="key"&&(c[h]=l[h])}else c=l;return l=c.ref,{$$typeof:n,type:r,key:u,ref:l!==void 0?l:null,props:c}}return fr.Fragment=t,fr.jsx=s,fr.jsxs=s,fr}var q0;function dS(){return q0||(q0=1,nd.exports=uS()),nd.exports}var f=dS(),id={exports:{}},me={};/** 10 * @license React 11 * react.production.js 12 * 13 * Copyright (c) Meta Platforms, Inc. and affiliates. 14 * 15 * This source code is licensed under the MIT license found in the 16 * LICENSE file in the root directory of this source tree. 17 */var $0;function fS(){if($0)return me;$0=1;var n=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),u=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),b=Symbol.iterator;function x(R){return R===null||typeof R!="object"?null:(R=b&&R[b]||R["@@iterator"],typeof R=="function"?R:null)}var S={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},T=Object.assign,C={};function j(R,F,ue){this.props=R,this.context=F,this.refs=C,this.updater=ue||S}j.prototype.isReactComponent={},j.prototype.setState=function(R,F){if(typeof R!="object"&&typeof R!="function"&&R!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,R,F,"setState")},j.prototype.forceUpdate=function(R){this.updater.enqueueForceUpdate(this,R,"forceUpdate")};function A(){}A.prototype=j.prototype;function M(R,F,ue){this.props=R,this.context=F,this.refs=C,this.updater=ue||S}var D=M.prototype=new A;D.constructor=M,T(D,j.prototype),D.isPureReactComponent=!0;var B=Array.isArray,U={H:null,A:null,T:null,S:null},I=Object.prototype.hasOwnProperty;function Q(R,F,ue,z,Y,ee){return ue=ee.ref,{$$typeof:n,type:R,key:F,ref:ue!==void 0?ue:null,props:ee}}function K(R,F){return Q(R.type,F,void 0,void 0,void 0,R.props)}function $(R){return typeof R=="object"&&R!==null&&R.$$typeof===n}function W(R){var F={"=":"=0",":":"=2"};return"$"+R.replace(/[=:]/g,function(ue){return F[ue]})}var oe=/\/+/g;function we(R,F){return typeof R=="object"&&R!==null&&R.key!=null?W(""+R.key):F.toString(36)}function ce(){}function ye(R){switch(R.status){case"fulfilled":return R.value;case"rejected":throw R.reason;default:switch(typeof R.status=="string"?R.then(ce,ce):(R.status="pending",R.then(function(F){R.status==="pending"&&(R.status="fulfilled",R.value=F)},function(F){R.status==="pending"&&(R.status="rejected",R.reason=F)})),R.status){case"fulfilled":return R.value;case"rejected":throw R.reason}}throw R}function Ce(R,F,ue,z,Y){var ee=typeof R;(ee==="undefined"||ee==="boolean")&&(R=null);var ae=!1;if(R===null)ae=!0;else switch(ee){case"bigint":case"string":case"number":ae=!0;break;case"object":switch(R.$$typeof){case n:case t:ae=!0;break;case v:return ae=R._init,Ce(ae(R._payload),F,ue,z,Y)}}if(ae)return Y=Y(R),ae=z===""?"."+we(R,0):z,B(Y)?(ue="",ae!=null&&(ue=ae.replace(oe,"$&/")+"/"),Ce(Y,F,ue,"",function(Ie){return Ie})):Y!=null&&($(Y)&&(Y=K(Y,ue+(Y.key==null||R&&R.key===Y.key?"":(""+Y.key).replace(oe,"$&/")+"/")+ae)),F.push(Y)),1;ae=0;var He=z===""?".":z+":";if(B(R))for(var Ee=0;Ee<R.length;Ee++)z=R[Ee],ee=He+we(z,Ee),ae+=Ce(z,F,ue,ee,Y);else if(Ee=x(R),typeof Ee=="function")for(R=Ee.call(R),Ee=0;!(z=R.next()).done;)z=z.value,ee=He+we(z,Ee++),ae+=Ce(z,F,ue,ee,Y);else if(ee==="object"){if(typeof R.then=="function")return Ce(ye(R),F,ue,z,Y);throw F=String(R),Error("Objects are not valid as a React child (found: "+(F==="[object Object]"?"object with keys {"+Object.keys(R).join(", ")+"}":F)+"). If you meant to render a collection of children, use an array instead.")}return ae}function Z(R,F,ue){if(R==null)return R;var z=[],Y=0;return Ce(R,z,"","",function(ee){return F.call(ue,ee,Y++)}),z}function J(R){if(R._status===-1){var F=R._result;F=F(),F.then(function(ue){(R._status===0||R._status===-1)&&(R._status=1,R._result=ue)}
vendor: 6,245 bytes, lines 17-25
17,function(ue){(R._status===0||R._status===-1)&&(R._status=2,R._result=ue)}),R._status===-1&&(R._status=0,R._result=F)}if(R._status===1)return R._result.default;throw R._result}var ie=typeof reportError=="function"?reportError:function(R){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var F=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof R=="object"&&R!==null&&typeof R.message=="string"?String(R.message):String(R),error:R});if(!window.dispatchEvent(F))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",R);return}console.error(R)};function je(){}return me.Children={map:Z,forEach:function(R,F,ue){Z(R,function(){F.apply(this,arguments)},ue)},count:function(R){var F=0;return Z(R,function(){F++}),F},toArray:function(R){return Z(R,function(F){return F})||[]},only:function(R){if(!$(R))throw Error("React.Children.only expected to receive a single React element child.");return R}},me.Component=j,me.Fragment=s,me.Profiler=l,me.PureComponent=M,me.StrictMode=r,me.Suspense=m,me.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=U,me.act=function(){throw Error("act(...) is not supported in production builds of React.")},me.cache=function(R){return function(){return R.apply(null,arguments)}},me.cloneElement=function(R,F,ue){if(R==null)throw Error("The argument must be a React element, but you passed "+R+".");var z=T({},R.props),Y=R.key,ee=void 0;if(F!=null)for(ae in F.ref!==void 0&&(ee=void 0),F.key!==void 0&&(Y=""+F.key),F)!I.call(F,ae)||ae==="key"||ae==="__self"||ae==="__source"||ae==="ref"&&F.ref===void 0||(z[ae]=F[ae]);var ae=arguments.length-2;if(ae===1)z.children=ue;else if(1<ae){for(var He=Array(ae),Ee=0;Ee<ae;Ee++)He[Ee]=arguments[Ee+2];z.children=He}return Q(R.type,Y,void 0,void 0,ee,z)},me.createContext=function(R){return R={$$typeof:u,_currentValue:R,_currentValue2:R,_threadCount:0,Provider:null,Consumer:null},R.Provider=R,R.Consumer={$$typeof:c,_context:R},R},me.createElement=function(R,F,ue){var z,Y={},ee=null;if(F!=null)for(z in F.key!==void 0&&(ee=""+F.key),F)I.call(F,z)&&z!=="key"&&z!=="__self"&&z!=="__source"&&(Y[z]=F[z]);var ae=arguments.length-2;if(ae===1)Y.children=ue;else if(1<ae){for(var He=Array(ae),Ee=0;Ee<ae;Ee++)He[Ee]=arguments[Ee+2];Y.children=He}if(R&&R.defaultProps)for(z in ae=R.defaultProps,ae)Y[z]===void 0&&(Y[z]=ae[z]);return Q(R,ee,void 0,void 0,null,Y)},me.createRef=function(){return{current:null}},me.forwardRef=function(R){return{$$typeof:h,render:R}},me.isValidElement=$,me.lazy=function(R){return{$$typeof:v,_payload:{_status:-1,_result:R},_init:J}},me.memo=function(R,F){return{$$typeof:g,type:R,compare:F===void 0?null:F}},me.startTransition=function(R){var F=U.T,ue={};U.T=ue;try{var z=R(),Y=U.S;Y!==null&&Y(ue,z),typeof z=="object"&&z!==null&&typeof z.then=="function"&&z.then(je,ie)}catch(ee){ie(ee)}finally{U.T=F}},me.unstable_useCacheRefresh=function(){return U.H.useCacheRefresh()},me.use=function(R){return U.H.use(R)},me.useActionState=function(R,F,ue){return U.H.useActionState(R,F,ue)},me.useCallback=function(R,F){return U.H.useCallback(R,F)},me.useContext=function(R){return U.H.useContext(R)},me.useDebugValue=function(){},me.useDeferredValue=function(R,F){return U.H.useDeferredValue(R,F)},me.useEffect=function(R,F){return U.H.useEffect(R,F)},me.useId=function(){return U.H.useId()},me.useImperativeHandle=function(R,F,ue){return U.H.useImperativeHandle(R,F,ue)},me.useInsertionEffect=function(R,F){return U.H.useInsertionEffect(R,F)},me.useLayoutEffect=function(R,F){return U.H.useLayoutEffect(R,F)},me.useMemo=function(R,F){return U.H.useMemo(R,F)},me.useOptimistic=function(R,F){return U.H.useOptimistic(R,F)},me.useReducer=function(R,F,ue){return U.H.useReducer(R,F,ue)},me.useRef=function(R){return U.H.useRef(R)},me.useState=function(R){return U.H.useState(R)},me.useSyncExternalStore=function(R,F,ue){return U.H.useSyncExternalStore(R,F,ue)},me.useTransition=function(){return U.H.useTransition()},me.version="19.0.0",me}var G0;function lf(){return G0||(G0=1,id.exports=fS()),id.exports}var _=lf();const of=oy(_);var sd={exports:{}},hr={},ad={exports:{}},rd={};/** 18 * @license React 19 * scheduler.production.js 20 * 21 * Copyright (c) Meta Platforms, Inc. and affiliates. 22 * 23 * This source code is licensed under the MIT license found in the 24 * LICENSE file in the root directory of this source tree. 25 */var Y0;function hS(){return Y0||(Y0=1,function(n){function t(Z,J){var ie=Z.length;Z.push(J);e:for(;0<ie;){var je=ie-1>>>1,R=Z[je];if(0<l(R,J))Z[je]=J,Z[ie]=R,ie=je;else break e}}function s(Z){return Z.length===0?null:Z[0]}function r(Z){if(Z.length===0)return null;var J=Z[0],ie=Z.pop();if(ie!==J){Z[0]=ie;e:for(var je=0,R=Z.length,F=R>>>1;je<F;){var ue=2*(je+1)-1,z=Z[ue],Y=ue+1,ee=Z[Y];if(0>l(z,ie))Y<R&&0>l(ee,z)?(Z[je]=ee,Z[Y]=ie,je=Y):(Z[je]=z,Z[ue]=ie,je=ue);else if(Y<R&&0>l(ee,ie))Z[je]=ee,Z[Y]=ie,je=Y;else break e}}return J}function l(Z,J){var ie=Z.sortIndex-J.sortIndex;return ie!==0?ie:Z.id-J.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var c=performance;n.unstable_now=function(){return c.now()}}else{var u=Date,h=u.now();n.unstable_now=function(){return u.now()-h}}var m=[],g=[],v=1,b=null,x=3,S=!1,T=!1,C=!1,j=typeof setTimeout=="function"?setTimeout:null,A=typeof clearTimeout=="function"?clearTimeout:null,M=typeof setImmediate<"u"?setImmediate:null;function D(Z){for(var J=s(g);J!==null;){if(J.callback===null)r(g);else if(J.startTime<=Z)r(g),J.sortIndex=J.expirationTime,t(m,J);else break;J=s(g)}}function B(Z){if(C=!1,D(Z),!T)if(s(m)!==null)T=!0,ye();else{var J=s(g);J!==null&&Ce(B,J.startTime-Z)}}var U=!1,I=-1,Q=5,K=-1;function $(){return!(n.unstable_now()-K<Q)}function W(){if(U){var Z=n.unstable_now();K=Z;var J=!0;try{e:{T=!1,C&&(C=!1,A(I),I=-1),S=!0;var ie=x;try{t:{for(D(Z),b=s(m);b!==null&&!(b.expirationTime>Z&&$());){var je=b.callback;if(typeof je=="function"){b.callback=null,x=b.priorityLevel;var R=je(b.expirationTime<=Z);if(Z=n.unstable_now(),typeof R=="function"){b.callback=R,D(Z),J=!0;break t}b===s(m)&&r(m),D(Z)}else r(m);b=s(m)}if(b!==null)J=!0;else{var F=s(g);F!==null&&Ce(B,F.startTime-Z),J=!1}}break e}finally{b=null,x=ie,S=!1}J=void 0}}finally{J?oe():U=!1}
vendor: 8,858 bytes, lines 25-43
25}}var oe;if(typeof M=="function")oe=function(){M(W)};else if(typeof MessageChannel<"u"){var we=new MessageChannel,ce=we.port2;we.port1.onmessage=W,oe=function(){ce.postMessage(null)}}else oe=function(){j(W,0)};function ye(){U||(U=!0,oe())}function Ce(Z,J){I=j(function(){Z(n.unstable_now())},J)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(Z){Z.callback=null},n.unstable_continueExecution=function(){T||S||(T=!0,ye())},n.unstable_forceFrameRate=function(Z){0>Z||125<Z?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Q=0<Z?Math.floor(1e3/Z):5},n.unstable_getCurrentPriorityLevel=function(){return x},n.unstable_getFirstCallbackNode=function(){return s(m)},n.unstable_next=function(Z){switch(x){case 1:case 2:case 3:var J=3;break;default:J=x}var ie=x;x=J;try{return Z()}finally{x=ie}},n.unstable_pauseExecution=function(){},n.unstable_requestPaint=function(){},n.unstable_runWithPriority=function(Z,J){switch(Z){case 1:case 2:case 3:case 4:case 5:break;default:Z=3}var ie=x;x=Z;try{return J()}finally{x=ie}},n.unstable_scheduleCallback=function(Z,J,ie){var je=n.unstable_now();switch(typeof ie=="object"&&ie!==null?(ie=ie.delay,ie=typeof ie=="number"&&0<ie?je+ie:je):ie=je,Z){case 1:var R=-1;break;case 2:R=250;break;case 5:R=1073741823;break;case 4:R=1e4;break;default:R=5e3}return R=ie+R,Z={id:v++,callback:J,priorityLevel:Z,startTime:ie,expirationTime:R,sortIndex:-1},ie>je?(Z.sortIndex=ie,t(g,Z),s(m)===null&&Z===s(g)&&(C?(A(I),I=-1):C=!0,Ce(B,ie-je))):(Z.sortIndex=R,t(m,Z),T||S||(T=!0,ye())),Z},n.unstable_shouldYield=$,n.unstable_wrapCallback=function(Z){var J=x;return function(){var ie=x;x=J;try{return Z.apply(this,arguments)}finally{x=ie}}}}(rd)),rd}var X0;function mS(){return X0||(X0=1,ad.exports=hS()),ad.exports}var ld={exports:{}},gt={};/** 26 * @license React 27 * react-dom.production.js 28 * 29 * Copyright (c) Meta Platforms, Inc. and affiliates. 30 * 31 * This source code is licensed under the MIT license found in the 32 * LICENSE file in the root directory of this source tree. 33 */var F0;function pS(){if(F0)return gt;F0=1;var n=lf();function t(m){var g="https://react.dev/errors/"+m;if(1<arguments.length){g+="?args[]="+encodeURIComponent(arguments[1]);for(var v=2;v<arguments.length;v++)g+="&args[]="+encodeURIComponent(arguments[v])}return"Minified React error #"+m+"; visit "+g+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(){}var r={d:{f:s,r:function(){throw Error(t(522))},D:s,C:s,L:s,m:s,X:s,S:s,M:s},p:0,findDOMNode:null},l=Symbol.for("react.portal");function c(m,g,v){var b=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:l,key:b==null?null:""+b,children:m,containerInfo:g,implementation:v}}var u=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function h(m,g){if(m==="font")return"";if(typeof g=="string")return g==="use-credentials"?g:""}return gt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,gt.createPortal=function(m,g){var v=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!g||g.nodeType!==1&&g.nodeType!==9&&g.nodeType!==11)throw Error(t(299));return c(m,g,null,v)},gt.flushSync=function(m){var g=u.T,v=r.p;try{if(u.T=null,r.p=2,m)return m()}finally{u.T=g,r.p=v,r.d.f()}},gt.preconnect=function(m,g){typeof m=="string"&&(g?(g=g.crossOrigin,g=typeof g=="string"?g==="use-credentials"?g:"":void 0):g=null,r.d.C(m,g))},gt.prefetchDNS=function(m){typeof m=="string"&&r.d.D(m)},gt.preinit=function(m,g){if(typeof m=="string"&&g&&typeof g.as=="string"){var v=g.as,b=h(v,g.crossOrigin),x=typeof g.integrity=="string"?g.integrity:void 0,S=typeof g.fetchPriority=="string"?g.fetchPriority:void 0;v==="style"?r.d.S(m,typeof g.precedence=="string"?g.precedence:void 0,{crossOrigin:b,integrity:x,fetchPriority:S}):v==="script"&&r.d.X(m,{crossOrigin:b,integrity:x,fetchPriority:S,nonce:typeof g.nonce=="string"?g.nonce:void 0})}},gt.preinitModule=function(m,g){if(typeof m=="string")if(typeof g=="object"&&g!==null){if(g.as==null||g.as==="script"){var v=h(g.as,g.crossOrigin);r.d.M(m,{crossOrigin:v,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0})}}else g==null&&r.d.M(m)},gt.preload=function(m,g){if(typeof m=="string"&&typeof g=="object"&&g!==null&&typeof g.as=="string"){var v=g.as,b=h(v,g.crossOrigin);r.d.L(m,v,{crossOrigin:b,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0,type:typeof g.type=="string"?g.type:void 0,fetchPriority:typeof g.fetchPriority=="string"?g.fetchPriority:void 0,referrerPolicy:typeof g.referrerPolicy=="string"?g.referrerPolicy:void 0,imageSrcSet:typeof g.imageSrcSet=="string"?g.imageSrcSet:void 0,imageSizes:typeof g.imageSizes=="string"?g.imageSizes:void 0,media:typeof g.media=="string"?g.media:void 0})}},gt.preloadModule=function(m,g){if(typeof m=="string")if(g){var v=h(g.as,g.crossOrigin);r.d.m(m,{as:typeof g.as=="string"&&g.as!=="script"?g.as:void 0,crossOrigin:v,integrity:typeof g.integrity=="string"?g.integrity:void 0})}else r.d.m(m)},gt.requestFormReset=function(m){r.d.r(m)},gt.unstable_batchedUpdates=function(m,g){return m(g)},gt.useFormState=function(m,g,v){return u.H.useFormState(m,g,v)},gt.useFormStatus=function(){return u.H.useHostTransitionStatus()},gt.version="19.0.0",gt}var I0;function gS(){if(I0)return ld.exports;I0=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(t){console.error(t)}}return n(),ld.exports=pS(),ld.exports}/** 34 * @license React 35 * react-dom-client.production.js 36 * 37 * Copyright (c) Meta Platforms, Inc. and affiliates. 38 * 39 * This source code is licensed under the MIT license found in the 40 * LICENSE file in the root directory of this source tree. 41 */var K0;function vS(){if(K0)return hr;K0=1;var n=mS(),t=lf(),s=gS();function r(e){var i="https://react.dev/errors/"+e;if(1<arguments.length){i+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)i+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+e+"; visit "+i+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function l(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}var c=Symbol.for("react.element"),u=Symbol.for("react.transitional.element"),h=Symbol.for("react.portal"),m=Symbol.for("react.fragment"),g=Symbol.for("react.strict_mode"),v=Symbol.for("react.profiler"),b=Symbol.for("react.provider"),x=Symbol.for("react.consumer"),S=Symbol.for("react.context"),T=Symbol.for("react.forward_ref"),C=Symbol.for("react.suspense"),j=Symbol.for("react.suspense_list"),A=Symbol.for("react.memo"),M=Symbol.for("react.lazy"),D=Symbol.for("react.offscreen"),B=Symbol.for("react.memo_cache_sentinel"),U=Symbol.iterator;function I(e){return e===null||typeof e!="object"?null:(e=U&&e[U]||e["@@iterator"],typeof e=="function"?e:null)}var Q=Symbol.for("react.client.reference");function K(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Q?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case m:return"Fragment";case h:return"Portal";case v:return"Profiler";case g:return"StrictMode";case C:return"Suspense";case j:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case S:return(e.displayName||"Context")+".Provider";case x:return(e._context.displayName||"Context")+".Consumer";case T:var i=e.render;return e=e.displayName,e||(e=i.displayName||i.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case A:return i=e.displayName||null,i!==null?i:K(e.type)||"Memo";case M:i=e._payload,e=e._init;try{return K(e(i))}catch{}}return null}var $=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,W=Object.assign,oe,we;function ce(e){if(oe===void 0)try{throw Error()}catch(a){var i=a.stack.trim().match(/\n( *(at )?)/);oe=i&&i[1]||"",we=-1<a.stack.indexOf(` 42 at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return` 43`+oe+e+we}var ye=!1;function Ce(e,i){if(!e||ye)return"";ye=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var o={DetermineComponentFrameRoot:function(){try{if(i){var X=function(){throw Error()};if(Object.defineProperty(X.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(X,[])}catch(H){var V=H}Reflect.construct(e,[],X)}else{try{X.call()}catch(H){V=H}e.call(X.prototype)}}else{try{throw Error()}catch(H){V=H}(X=e())&&typeof X.catch=="function"&&X.catch(function(){})}}
vendor: 19,338 bytes, lines 43-48
43catch(H){if(H&&V&&typeof H.stack=="string")return[H.stack,V.stack]}return[null,null]}};o.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var d=Object.getOwnPropertyDescriptor(o.DetermineComponentFrameRoot,"name");d&&d.configurable&&Object.defineProperty(o.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var p=o.DetermineComponentFrameRoot(),y=p[0],w=p[1];if(y&&w){var E=y.split(` 44`),O=w.split(` 45`);for(d=o=0;o<E.length&&!E[o].includes("DetermineComponentFrameRoot");)o++;for(;d<O.length&&!O[d].includes("DetermineComponentFrameRoot");)d++;if(o===E.length||d===O.length)for(o=E.length-1,d=O.length-1;1<=o&&0<=d&&E[o]!==O[d];)d--;for(;1<=o&&0<=d;o--,d--)if(E[o]!==O[d]){if(o!==1||d!==1)do if(o--,d--,0>d||E[o]!==O[d]){var q=` 46`+E[o].replace(" at new "," at ");return e.displayName&&q.includes("<anonymous>")&&(q=q.replace("<anonymous>",e.displayName)),q}while(1<=o&&0<=d);break}}}finally{ye=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?ce(a):""}function Z(e){switch(e.tag){case 26:case 27:case 5:return ce(e.type);case 16:return ce("Lazy");case 13:return ce("Suspense");case 19:return ce("SuspenseList");case 0:case 15:return e=Ce(e.type,!1),e;case 11:return e=Ce(e.type.render,!1),e;case 1:return e=Ce(e.type,!0),e;default:return""}}function J(e){try{var i="";do i+=Z(e),e=e.return;while(e);return i}catch(a){return` 47Error generating stack: `+a.message+` 48`+a.stack}}function ie(e){var i=e,a=e;if(e.alternate)for(;i.return;)i=i.return;else{e=i;do i=e,(i.flags&4098)!==0&&(a=i.return),e=i.return;while(e)}return i.tag===3?a:null}function je(e){if(e.tag===13){var i=e.memoizedState;if(i===null&&(e=e.alternate,e!==null&&(i=e.memoizedState)),i!==null)return i.dehydrated}return null}function R(e){if(ie(e)!==e)throw Error(r(188))}function F(e){var i=e.alternate;if(!i){if(i=ie(e),i===null)throw Error(r(188));return i!==e?null:e}for(var a=e,o=i;;){var d=a.return;if(d===null)break;var p=d.alternate;if(p===null){if(o=d.return,o!==null){a=o;continue}break}if(d.child===p.child){for(p=d.child;p;){if(p===a)return R(d),e;if(p===o)return R(d),i;p=p.sibling}throw Error(r(188))}if(a.return!==o.return)a=d,o=p;else{for(var y=!1,w=d.child;w;){if(w===a){y=!0,a=d,o=p;break}if(w===o){y=!0,o=d,a=p;break}w=w.sibling}if(!y){for(w=p.child;w;){if(w===a){y=!0,a=p,o=d;break}if(w===o){y=!0,o=p,a=d;break}w=w.sibling}if(!y)throw Error(r(189))}}if(a.alternate!==o)throw Error(r(190))}if(a.tag!==3)throw Error(r(188));return a.stateNode.current===a?e:i}function ue(e){var i=e.tag;if(i===5||i===26||i===27||i===6)return e;for(e=e.child;e!==null;){if(i=ue(e),i!==null)return i;e=e.sibling}return null}var z=Array.isArray,Y=s.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ee={pending:!1,data:null,method:null,action:null},ae=[],He=-1;function Ee(e){return{current:e}}function Ie(e){0>He||(e.current=ae[He],ae[He]=null,He--)}function Pe(e,i){He++,ae[He]=e.current,e.current=i}var ln=Ee(null),pa=Ee(null),Yn=Ee(null),Zr=Ee(null);function Qr(e,i){switch(Pe(Yn,i),Pe(pa,e),Pe(ln,null),e=i.nodeType,e){case 9:case 11:i=(i=i.documentElement)&&(i=i.namespaceURI)?g0(i):0;break;default:if(e=e===8?i.parentNode:i,i=e.tagName,e=e.namespaceURI)e=g0(e),i=v0(e,i);else switch(i){case"svg":i=1;break;case"math":i=2;break;default:i=0}}Ie(ln),Pe(ln,i)}function ss(){Ie(ln),Ie(pa),Ie(Yn)}function Fo(e){e.memoizedState!==null&&Pe(Zr,e);var i=ln.current,a=v0(i,e.type);i!==a&&(Pe(pa,e),Pe(ln,a))}function Wr(e){pa.current===e&&(Ie(ln),Ie(pa)),Zr.current===e&&(Ie(Zr),lr._currentValue=ee)}var Io=Object.prototype.hasOwnProperty,Ko=n.unstable_scheduleCallback,Zo=n.unstable_cancelCallback,zb=n.unstable_shouldYield,Bb=n.unstable_requestPaint,on=n.unstable_now,Hb=n.unstable_getCurrentPriorityLevel,ah=n.unstable_ImmediatePriority,rh=n.unstable_UserBlockingPriority,Jr=n.unstable_NormalPriority,qb=n.unstable_LowPriority,lh=n.unstable_IdlePriority,$b=n.log,Gb=n.unstable_setDisableYieldValue,ga=null,Rt=null;function Yb(e){if(Rt&&typeof Rt.onCommitFiberRoot=="function")try{Rt.onCommitFiberRoot(ga,e,void 0,(e.current.flags&128)===128)}catch{}}function Xn(e){if(typeof $b=="function"&&Gb(e),Rt&&typeof Rt.setStrictMode=="function")try{Rt.setStrictMode(ga,e)}catch{}}var Ct=Math.clz32?Math.clz32:Ib,Xb=Math.log,Fb=Math.LN2;function Ib(e){return e>>>=0,e===0?32:31-(Xb(e)/Fb|0)|0}var el=128,tl=4194304;function ji(e){var i=e&42;if(i!==0)return i;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:return 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&4194176;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function nl(e,i){var a=e.pendingLanes;if(a===0)return 0;var o=0,d=e.suspendedLanes,p=e.pingedLanes,y=e.warmLanes;e=e.finishedLanes!==0;var w=a&134217727;return w!==0?(a=w&~d,a!==0?o=ji(a):(p&=w,p!==0?o=ji(p):e||(y=w&~y,y!==0&&(o=ji(y))))):(w=a&~d,w!==0?o=ji(w):p!==0?o=ji(p):e||(y=a&~y,y!==0&&(o=ji(y)))),o===0?0:i!==0&&i!==o&&(i&d)===0&&(d=o&-o,y=i&-i,d>=y||d===32&&(y&4194176)!==0)?i:o}function va(e,i){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&i)===0}function Kb(e,i){switch(e){case 1:case 2:case 4:case 8:return i+250;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 i+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function oh(){var e=el;return el<<=1,(el&4194176)===0&&(el=128),e}function ch(){var e=tl;return tl<<=1,(tl&62914560)===0&&(tl=4194304),e}function Qo(e){for(var i=[],a=0;31>a;a++)i.push(e);return i}function ya(e,i){e.pendingLanes|=i,i!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Zb(e,i,a,o,d,p){var y=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var w=e.entanglements,E=e.expirationTimes,O=e.hiddenUpdates;for(a=y&~a;0<a;){var q=31-Ct(a),X=1<<q;w[q]=0,E[q]=-1;var V=O[q];if(V!==null)for(O[q]=null,q=0;q<V.length;q++){var H=V[q];H!==null&&(H.lane&=-536870913)}a&=~X}o!==0&&uh(e,o,0),p!==0&&d===0&&e.tag!==0&&(e.suspendedLanes|=p&~(y&~i))}function uh(e,i,a){e.pendingLanes|=i,e.suspendedLanes&=~i;var o=31-Ct(i);e.entangledLanes|=i,e.entanglements[o]=e.entanglements[o]|1073741824|a&4194218}function dh(e,i){var a=e.entangledLanes|=i;for(e=e.entanglements;a;){var o=31-Ct(a),d=1<<o;d&i|e[o]&i&&(e[o]|=i),a&=~d}}function fh(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function hh(){var e=Y.p;return e!==0?e:(e=window.event,e===void 0?32:L0(e.type))}function Qb(e,i){var a=Y.p;try{return Y.p=e,i()}finally{Y.p=a}}var Fn=Math.random().toString(36).slice(2),mt="__reactFiber$"+Fn,Tt="__reactProps$"+Fn,as="__reactContainer$"+Fn,Wo="__reactEvents$"+Fn,Wb="__reactListeners$"+Fn,Jb="__reactHandles$"+Fn,mh="__reactResources$"+Fn,ba="__reactMarker$"+Fn;function Jo(e){delete e[mt],delete e[Tt],delete e[Wo],delete e[Wb],delete e[Jb]}function Ai(e){var i=e[mt];if(i)return i;for(var a=e.parentNode;a;){if(i=a[as]||a[mt]){if(a=i.alternate,i.child!==null||a!==null&&a.child!==null)for(e=x0(e);e!==null;){if(a=e[mt])return a;e=x0(e)}return i}e=a,a=e.parentNode}return null}function rs(e){if(e=e[mt]||e[as]){var i=e.tag;if(i===5||i===6||i===13||i===26||i===27||i===3)return e}return null}function xa(e){var i=e.tag;if(i===5||i===26||i===27||i===6)return e.stateNode;throw Error(r(33))}function ls(e){var i=e[mh];return i||(i=e[mh]={hoistableStyles:new Map,hoistableScripts:new Map}),i}function nt(e){e[ba]=!0}var ph=new Set,gh={};function Ri(e,i){os(e,i),os(e+"Capture",i)}function os(e,i){for(gh[e]=i,e=0;e<i.length;e++)ph.add(i[e])}var Sn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ex=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),vh={},yh={};function tx(e){return Io.call(yh,e)?!0:Io.call(vh,e)?!1:ex.test(e)?yh[e]=!0:(vh[e]=!0,!1)}function il(e,i,a){if(tx(i))if(a===null)e.removeAttribute(i);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(i);return;case"boolean":var o=i.toLowerCase().slice(0,5);if(o!=="data-"&&o!=="aria-"){e.removeAttribute(i);return}}e.setAttribute(i,""+a)}}function sl(e,i,a){if(a===null)e.removeAttribute(i);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(i);return}e.setAttribute(i,""+a)}}function _n(e,i,a,o){if(o===null)e.removeAttribute(a);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(i,a,""+o)}}function Vt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function bh(e){var i=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(i==="checkbox"||i==="radio")}function nx(e){var i=bh(e)?"checked":"value",a=Object.getOwnPropertyDescriptor(e.constructor.prototype,i),o=""+e[i];if(!e.hasOwnProperty(i)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var d=a.get,p=a.set;return Object.defineProperty(e,i,{configurable:!0,get:function(){return d.call(this)},set:function(y){o=""+y,p.call(this,y)}}),Object.defineProperty(e,i,{enumerable:a.enumerable}),{getValue:function(){return o},setValue:function(y){o=""+y},stopTracking:function(){e._valueTracker=null,delete e[i]}}}}function al(e){e._valueTracker||(e._valueTracker=nx(e))}function xh(e){if(!e)return!1;var i=e._valueTracker;if(!i)return!0;var a=i.getValue(),o="";return e&&(o=bh(e)?e.checked?"true":"false":e.value),e=o,e!==a?(i.setValue(e),!0):!1}function rl(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}}var ix=/[\n"\\]/g;function zt(e){return e.replace(ix,function(i){return"\\"+i.charCodeAt(0).toString(16)+" "})}function ec(e,i,a,o,d,p,y,w){e.name="",y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"?e.type=y:e.removeAttribute("type"),i!=null?y==="number"?(i===0&&e.value===""||e.value!=i)&&(e.value=""+Vt(i)):e.value!==""+Vt(i)&&(e.value=""+Vt(i)):y!=="submit"&&y!=="reset"||e.removeAttribute("value"),i!=null?tc(e,y,Vt(i)):a!=null?tc(e,y,Vt(a)):o!=null&&e.removeAttribute("value"),d==null&&p!=null&&(e.defaultChecked=!!p),d!=null&&(e.checked=d&&typeof d!="function"&&typeof d!="symbol"),w!=null&&typeof w!="function"&&typeof w!="symbol"&&typeof w!="boolean"?e.name=""+Vt(w):e.removeAttribute("name")}function wh(e,i,a,o,d,p,y,w){if(p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"&&(e.type=p),i!=null||a!=null){if(!(p!=="submit"&&p!=="reset"||i!=null))return;a=a!=null?""+Vt(a):"",i=i!=null?""+Vt(i):a,w||i===e.value||(e.value=i),e.defaultValue=i}o=o??d,o=typeof o!="function"&&typeof o!="symbol"&&!!o,e.checked=w?e.checked:!!o,e.defaultChecked=!!o,y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"&&(e.name=y)}function tc(e,i,a){i==="number"&&rl(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function cs(e,i,a,o){if(e=e.options,i){i={};for(var d=0;d<a.length;d++)i["$"+a[d]]=!0;for(a=0;a<e.length;a++)d=i.hasOwnProperty("$"+e[a].value),e[a].selected!==d&&(e[a].selected=d),d&&o&&(e[a].defaultSelected=!0)}else{for(a=""+Vt(a),i=null,d=0;d<e.length;d++){if(e[d].value===a){e[d].selected=!0,o&&(e[d].defaultSelected=!0);return}i!==null||e[d].disabled||(i=e[d])}i!==null&&(i.selected=!0)}}function Sh(e,i,a){if(i!=null&&(i=""+Vt(i),i!==e.value&&(e.value=i),a==null)){e.defaultValue!==i&&(e.defaultValue=i);return}e.defaultValue=a!=null?""+Vt(a):""}function _h(e,i,a,o){if(i==null){if(o!=null){if(a!=null)throw Error(r(92));if(z(o)){if(1<o.length)throw Error(r(93));o=o[0]}a=o}a==null&&(a=""),i=a}a=Vt(i),e.defaultValue=a,o=e.textContent,o===a&&o!==""&&o!==null&&(e.value=o)}function us(e,i){if(i){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=i;return}}e.textContent=i}var sx=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Th(e,i,a){var o=i.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?o?e.setProperty(i,""):i==="float"?e.cssFloat="":e[i]="":o?e.setProperty(i,a):typeof a!="number"||a===0||sx.has(i)?i==="float"?e.cssFloat=a:e[i]=(""+a).trim():e[i]=a+"px"}function Eh(e,i,a){if(i!=null&&typeof i!="object")throw Error(r(62));if(e=e.style,a!=null){for(var o in a)!a.hasOwnProperty(o)||i!=null&&i.hasOwnProperty(o)||(o.indexOf("--")===0?e.setProperty(o,""):o==="float"?e.cssFloat="":e[o]="");for(var d in i)o=i[d],i.hasOwnProperty(d)&&a[d]!==o&&Th(e,d,o)}else for(var p in i)i.hasOwnProperty(p)&&Th(e,p,i[p])}function nc(e){if(e.indexOf("-")===-1)return!1;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 ax=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),rx=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function ll(e){return rx.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var ic=null;function sc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ds=null,fs=null;function jh(e){var i=rs(e);if(i&&(e=i.stateNode)){var a=e[Tt]||null;e:switch(e=i.stateNode,i.type){case"input":if(ec(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),i=a.name,a.type==="radio"&&i!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+zt(""+i)+'"][type="radio"]'),i=0;i<a.length;i++){var o=a[i];if(o!==e&&o.form===e.form){var d=o[Tt]||null;if(!d)throw Error(r(90));ec(o,d.value,d.defaultValue,d.defaultValue,d.checked,d.defaultChecked,d.type,d.name)}}for(i=0;i<a.length;i++)o=a[i],o.form===e.form&&xh(o)}break e;case"textarea":Sh(e,a.value,a.defaultValue);break e;case"select":i=a.value,i!=null&&cs(e,!!a.multiple,i,!1)}}}var ac=!1;function Ah(e,i,a){if(ac)return e(i,a);ac=!0;try{var o=e(i);return o}finally{if(ac=!1,(ds!==null||fs!==null)&&(Gl(),ds&&(i=ds,e=fs,fs=ds=null,jh(i),e)))for(i=0;i<e.length;i++)jh(e[i])}}function wa(e,i){var a=e.stateNode;if(a===null)return null;var o=a[Tt]||null;if(o===null)return null;a=o[i];e:switch(i){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(o=!o.disabled)||(e=e.type,o=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!o;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(r(231,i,typeof a));return a}var rc=!1;if(Sn)try{var Sa={};Object.defineProperty(Sa,"passive",{get:function(){rc=!0}}),window.addEventListener("test",Sa,Sa),window.removeEventListener("test",Sa,Sa)}catch{rc=!1}var In=null,lc=null,ol=null;function Rh(){if(ol)return ol;
vendor: 6,580 bytes, line 48
48var e,i=lc,a=i.length,o,d="value"in In?In.value:In.textContent,p=d.length;for(e=0;e<a&&i[e]===d[e];e++);var y=a-e;for(o=1;o<=y&&i[a-o]===d[p-o];o++);return ol=d.slice(e,1<o?1-o:void 0)}function cl(e){var i=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&i===13&&(e=13)):e=i,e===10&&(e=13),32<=e||e===13?e:0}function ul(){return!0}function Ch(){return!1}function Et(e){function i(a,o,d,p,y){this._reactName=a,this._targetInst=d,this.type=o,this.nativeEvent=p,this.target=y,this.currentTarget=null;for(var w in e)e.hasOwnProperty(w)&&(a=e[w],this[w]=a?a(p):p[w]);return this.isDefaultPrevented=(p.defaultPrevented!=null?p.defaultPrevented:p.returnValue===!1)?ul:Ch,this.isPropagationStopped=Ch,this}return W(i.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=ul)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=ul)},persist:function(){},isPersistent:ul}),i}var Ci={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},dl=Et(Ci),_a=W({},Ci,{view:0,detail:0}),lx=Et(_a),oc,cc,Ta,fl=W({},_a,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:dc,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!==Ta&&(Ta&&e.type==="mousemove"?(oc=e.screenX-Ta.screenX,cc=e.screenY-Ta.screenY):cc=oc=0,Ta=e),oc)},movementY:function(e){return"movementY"in e?e.movementY:cc}}),Nh=Et(fl),ox=W({},fl,{dataTransfer:0}),cx=Et(ox),ux=W({},_a,{relatedTarget:0}),uc=Et(ux),dx=W({},Ci,{animationName:0,elapsedTime:0,pseudoElement:0}),fx=Et(dx),hx=W({},Ci,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),mx=Et(hx),px=W({},Ci,{data:0}),Oh=Et(px),gx={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},vx={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"},yx={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function bx(e){var i=this.nativeEvent;return i.getModifierState?i.getModifierState(e):(e=yx[e])?!!i[e]:!1}function dc(){return bx}var xx=W({},_a,{key:function(e){if(e.key){var i=gx[e.key]||e.key;if(i!=="Unidentified")return i}return e.type==="keypress"?(e=cl(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?vx[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:dc,charCode:function(e){return e.type==="keypress"?cl(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?cl(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),wx=Et(xx),Sx=W({},fl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Dh=Et(Sx),_x=W({},_a,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:dc}),Tx=Et(_x),Ex=W({},Ci,{propertyName:0,elapsedTime:0,pseudoElement:0}),jx=Et(Ex),Ax=W({},fl,{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}),Rx=Et(Ax),Cx=W({},Ci,{newState:0,oldState:0}),Nx=Et(Cx),Ox=[9,13,27,32],fc=Sn&&"CompositionEvent"in window,Ea=null;Sn&&"documentMode"in document&&(Ea=document.documentMode);var Dx=Sn&&"TextEvent"in window&&!Ea,Mh=Sn&&(!fc||Ea&&8<Ea&&11>=Ea),kh=" ",Lh=!1;function Ph(e,i){switch(e){case"keyup":return Ox.indexOf(i.keyCode)!==-1;case"keydown":return i.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Uh(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var hs=!1;function Mx(e,i){switch(e){case"compositionend":return Uh(i);case"keypress":return i.which!==32?null:(Lh=!0,kh);case"textInput":return e=i.data,e===kh&&Lh?null:e;default:return null}}function kx(e,i){if(hs)return e==="compositionend"||!fc&&Ph(e,i)?(e=Rh(),ol=lc=In=null,hs=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(i.ctrlKey||i.altKey||i.metaKey)||i.ctrlKey&&i.altKey){if(i.char&&1<i.char.length)return i.char;if(i.which)return String.fromCharCode(i.which)}return null;case"compositionend":return Mh&&i.locale!=="ko"?null:i.data;default:return null}}var Lx={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 Vh(e){var i=e&&e.nodeName&&e.nodeName.toLowerCase();return i==="input"?!!Lx[e.type]:i==="textarea"}function zh(e,i,a,o){ds?fs?fs.push(o):fs=[o]:ds=o,i=Kl(i,"onChange"),0<i.length&&(a=new dl("onChange","change",null,a,o),e.push({event:a,listeners:i}))}var ja=null,Aa=null;function Px(e){d0(e,0)}function hl(e){var i=xa(e);if(xh(i))return e}function Bh(e,i){if(e==="change")return i}var Hh=!1;if(Sn){var hc;if(Sn){var mc="oninput"in document;if(!mc){var qh=document.createElement("div");qh.setAttribute("oninput","return;"),mc=typeof qh.oninput=="function"}hc=mc}else hc=!1;Hh=hc&&(!document.documentMode||9<document.documentMode)}function $h(){ja&&(ja.detachEvent("onpropertychange",Gh),Aa=ja=null)}function Gh(e){if(e.propertyName==="value"&&hl(Aa)){var i=[];zh(i,Aa,e,sc(e)),Ah(Px,i)}}function Ux(e,i,a){e==="focusin"?($h(),ja=i,Aa=a,ja.attachEvent("onpropertychange",Gh)):e==="focusout"&&$h()}function Vx(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return hl(Aa)}function zx(e,i){if(e==="click")return hl(i)}function Bx(e,i){if(e==="input"||e==="change")return hl(i)}function Hx(e,i){return e===i&&(e!==0||1/e===1/i)||e!==e&&i!==i}var Nt=typeof Object.is=="function"?Object.is:Hx;function Ra(e,i){if(Nt(e,i))return!0;
vendor: 5,305 bytes, line 48
48if(typeof e!="object"||e===null||typeof i!="object"||i===null)return!1;var a=Object.keys(e),o=Object.keys(i);if(a.length!==o.length)return!1;for(o=0;o<a.length;o++){var d=a[o];if(!Io.call(i,d)||!Nt(e[d],i[d]))return!1}return!0}function Yh(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Xh(e,i){var a=Yh(e);e=0;for(var o;a;){if(a.nodeType===3){if(o=e+a.textContent.length,e<=i&&o>=i)return{node:a,offset:i-e};e=o}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=Yh(a)}}function Fh(e,i){return e&&i?e===i?!0:e&&e.nodeType===3?!1:i&&i.nodeType===3?Fh(e,i.parentNode):"contains"in e?e.contains(i):e.compareDocumentPosition?!!(e.compareDocumentPosition(i)&16):!1:!1}function Ih(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var i=rl(e.document);i instanceof e.HTMLIFrameElement;){try{var a=typeof i.contentWindow.location.href=="string"}catch{a=!1}if(a)e=i.contentWindow;else break;i=rl(e.document)}return i}function pc(e){var i=e&&e.nodeName&&e.nodeName.toLowerCase();return i&&(i==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||i==="textarea"||e.contentEditable==="true")}function qx(e,i){var a=Ih(i);i=e.focusedElem;var o=e.selectionRange;if(a!==i&&i&&i.ownerDocument&&Fh(i.ownerDocument.documentElement,i)){if(o!==null&&pc(i)){if(e=o.start,a=o.end,a===void 0&&(a=e),"selectionStart"in i)i.selectionStart=e,i.selectionEnd=Math.min(a,i.value.length);else if(a=(e=i.ownerDocument||document)&&e.defaultView||window,a.getSelection){a=a.getSelection();var d=i.textContent.length,p=Math.min(o.start,d);o=o.end===void 0?p:Math.min(o.end,d),!a.extend&&p>o&&(d=o,o=p,p=d),d=Xh(i,p);var y=Xh(i,o);d&&y&&(a.rangeCount!==1||a.anchorNode!==d.node||a.anchorOffset!==d.offset||a.focusNode!==y.node||a.focusOffset!==y.offset)&&(e=e.createRange(),e.setStart(d.node,d.offset),a.removeAllRanges(),p>o?(a.addRange(e),a.extend(y.node,y.offset)):(e.setEnd(y.node,y.offset),a.addRange(e)))}}for(e=[],a=i;a=a.parentNode;)a.nodeType===1&&e.push({element:a,left:a.scrollLeft,top:a.scrollTop});for(typeof i.focus=="function"&&i.focus(),i=0;i<e.length;i++)a=e[i],a.element.scrollLeft=a.left,a.element.scrollTop=a.top}}var $x=Sn&&"documentMode"in document&&11>=document.documentMode,ms=null,gc=null,Ca=null,vc=!1;function Kh(e,i,a){var o=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;vc||ms==null||ms!==rl(o)||(o=ms,"selectionStart"in o&&pc(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),Ca&&Ra(Ca,o)||(Ca=o,o=Kl(gc,"onSelect"),0<o.length&&(i=new dl("onSelect","select",null,i,a),e.push({event:i,listeners:o}),i.target=ms)))}function Ni(e,i){var a={};return a[e.toLowerCase()]=i.toLowerCase(),a["Webkit"+e]="webkit"+i,a["Moz"+e]="moz"+i,a}var ps={animationend:Ni("Animation","AnimationEnd"),animationiteration:Ni("Animation","AnimationIteration"),animationstart:Ni("Animation","AnimationStart"),transitionrun:Ni("Transition","TransitionRun"),transitionstart:Ni("Transition","TransitionStart"),transitioncancel:Ni("Transition","TransitionCancel"),transitionend:Ni("Transition","TransitionEnd")},yc={},Zh={};Sn&&(Zh=document.createElement("div").style,"AnimationEvent"in window||(delete ps.animationend.animation,delete ps.animationiteration.animation,delete ps.animationstart.animation),"TransitionEvent"in window||delete ps.transitionend.transition);function Oi(e){if(yc[e])return yc[e];if(!ps[e])return e;var i=ps[e],a;for(a in i)if(i.hasOwnProperty(a)&&a in Zh)return yc[e]=i[a];return e}var Qh=Oi("animationend"),Wh=Oi("animationiteration"),Jh=Oi("animationstart"),Gx=Oi("transitionrun"),Yx=Oi("transitionstart"),Xx=Oi("transitioncancel"),em=Oi("transitionend"),tm=new Map,nm="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll scrollEnd toggle touchMove waiting wheel".split(" ");function Jt(e,i){tm.set(e,i),Ri(i,[e])}var Bt=[],gs=0,bc=0;function ml(){for(var e=gs,i=bc=gs=0;i<e;){var a=Bt[i];Bt[i++]=null;var o=Bt[i];Bt[i++]=null;var d=Bt[i];Bt[i++]=null;var p=Bt[i];if(Bt[i++]=null,o!==null&&d!==null){var y=o.pending;y===null?d.next=d:(d.next=y.next,y.next=d),o.pending=d}p!==0&&im(a,d,p)}}function pl(e,i,a,o){Bt[gs++]=e,Bt[gs++]=i,Bt[gs++]=a,Bt[gs++]=o,bc|=o,e.lanes|=o,e=e.alternate,e!==null&&(e.lanes|=o)}function xc(e,i,a,o){return pl(e,i,a,o),gl(e)}function Kn(e,i){return pl(e,null,null,i),gl(e)}function im(e,i,a){e.lanes|=a;var o=e.alternate;o!==null&&(o.lanes|=a);for(var d=!1,p=e.return;p!==null;)p.childLanes|=a,o=p.alternate,o!==null&&(o.childLanes|=a),p.tag===22&&(e=p.stateNode,e===null||e._visibility&1||(d=!0)),e=p,p=
vendor: 15,345 bytes, line 48
48p.return;d&&i!==null&&e.tag===3&&(p=e.stateNode,d=31-Ct(a),p=p.hiddenUpdates,e=p[d],e===null?p[d]=[i]:e.push(i),i.lane=a|536870912)}function gl(e){if(50<er)throw er=0,ju=null,Error(r(185));for(var i=e.return;i!==null;)e=i,i=e.return;return e.tag===3?e.stateNode:null}var vs={},sm=new WeakMap;function Ht(e,i){if(typeof e=="object"&&e!==null){var a=sm.get(e);return a!==void 0?a:(i={value:e,source:i,stack:J(i)},sm.set(e,i),i)}return{value:e,source:i,stack:J(i)}}var ys=[],bs=0,vl=null,yl=0,qt=[],$t=0,Di=null,Tn=1,En="";function Mi(e,i){ys[bs++]=yl,ys[bs++]=vl,vl=e,yl=i}function am(e,i,a){qt[$t++]=Tn,qt[$t++]=En,qt[$t++]=Di,Di=e;var o=Tn;e=En;var d=32-Ct(o)-1;o&=~(1<<d),a+=1;var p=32-Ct(i)+d;if(30<p){var y=d-d%5;p=(o&(1<<y)-1).toString(32),o>>=y,d-=y,Tn=1<<32-Ct(i)+d|a<<d|o,En=p+e}else Tn=1<<p|a<<d|o,En=e}function wc(e){e.return!==null&&(Mi(e,1),am(e,1,0))}function Sc(e){for(;e===vl;)vl=ys[--bs],ys[bs]=null,yl=ys[--bs],ys[bs]=null;for(;e===Di;)Di=qt[--$t],qt[$t]=null,En=qt[--$t],qt[$t]=null,Tn=qt[--$t],qt[$t]=null}var xt=null,ut=null,Ae=!1,en=null,cn=!1,_c=Error(r(519));function ki(e){var i=Error(r(418,""));throw Da(Ht(i,e)),_c}function rm(e){var i=e.stateNode,a=e.type,o=e.memoizedProps;switch(i[mt]=e,i[Tt]=o,a){case"dialog":Se("cancel",i),Se("close",i);break;case"iframe":case"object":case"embed":Se("load",i);break;case"video":case"audio":for(a=0;a<nr.length;a++)Se(nr[a],i);break;case"source":Se("error",i);break;case"img":case"image":case"link":Se("error",i),Se("load",i);break;case"details":Se("toggle",i);break;case"input":Se("invalid",i),wh(i,o.value,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name,!0),al(i);break;case"select":Se("invalid",i);break;case"textarea":Se("invalid",i),_h(i,o.value,o.defaultValue,o.children),al(i)}a=o.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||i.textContent===""+a||o.suppressHydrationWarning===!0||p0(i.textContent,a)?(o.popover!=null&&(Se("beforetoggle",i),Se("toggle",i)),o.onScroll!=null&&Se("scroll",i),o.onScrollEnd!=null&&Se("scrollend",i),o.onClick!=null&&(i.onclick=Zl),i=!0):i=!1,i||ki(e)}function lm(e){for(xt=e.return;xt;)switch(xt.tag){case 3:case 27:cn=!0;return;case 5:case 13:cn=!1;return;default:xt=xt.return}}function Na(e){if(e!==xt)return!1;if(!Ae)return lm(e),Ae=!0,!1;var i=!1,a;if((a=e.tag!==3&&e.tag!==27)&&((a=e.tag===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||$u(e.type,e.memoizedProps)),a=!a),a&&(i=!0),i&&ut&&ki(e),lm(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));e:{for(e=e.nextSibling,i=0;e;){if(e.nodeType===8)if(a=e.data,a==="/$"){if(i===0){ut=nn(e.nextSibling);break e}i--}else a!=="$"&&a!=="$!"&&a!=="$?"||i++;e=e.nextSibling}ut=null}}else ut=xt?nn(e.stateNode.nextSibling):null;return!0}function Oa(){ut=xt=null,Ae=!1}function Da(e){en===null?en=[e]:en.push(e)}var Ma=Error(r(460)),om=Error(r(474)),Tc={then:function(){}};function cm(e){return e=e.status,e==="fulfilled"||e==="rejected"}function bl(){}function um(e,i,a){switch(a=e[a],a===void 0?e.push(i):a!==i&&(i.then(bl,bl),i=a),i.status){case"fulfilled":return i.value;case"rejected":throw e=i.reason,e===Ma?Error(r(483)):e;default:if(typeof i.status=="string")i.then(bl,bl);else{if(e=Me,e!==null&&100<e.shellSuspendCounter)throw Error(r(482));e=i,e.status="pending",e.then(function(o){if(i.status==="pending"){var d=i;d.status="fulfilled",d.value=o}},function(o){if(i.status==="pending"){var d=i;d.status="rejected",d.reason=o}})}switch(i.status){case"fulfilled":return i.value;case"rejected":throw e=i.reason,e===Ma?Error(r(483)):e}throw ka=i,Ma}}var ka=null;function dm(){if(ka===null)throw Error(r(459));var e=ka;return ka=null,e}var xs=null,La=0;function xl(e){var i=La;return La+=1,xs===null&&(xs=[]),um(xs,e,i)}function Pa(e,i){i=i.props.ref,e.ref=i!==void 0?i:null}function wl(e,i){throw i.$$typeof===c?Error(r(525)):(e=Object.prototype.toString.call(i),Error(r(31,e==="[object Object]"?"object with keys {"+Object.keys(i).join(", ")+"}":e)))}function fm(e){var i=e._init;return i(e._payload)}function hm(e){function i(k,N){if(e){var L=k.deletions;L===null?(k.deletions=[N],k.flags|=16):L.push(N)}}function a(k,N){if(!e)return null;for(;N!==null;)i(k,N),N=N.sibling;return null}function o(k){for(var N=new Map;k!==null;)k.key!==null?N.set(k.key,k):N.set(k.index,k),k=k.sibling;return N}function d(k,N){return k=li(k,N),k.index=0,k.sibling=null,k}function p(k,N,L){return k.index=L,e?(L=k.alternate,L!==null?(L=L.index,L<N?(k.flags|=33554434,N):L):(k.flags|=33554434,N)):(k.flags|=1048576,N)}function y(k){return e&&k.alternate===null&&(k.flags|=33554434),k}function w(k,N,L,G){return N===null||N.tag!==6?(N=yu(L,k.mode,G),N.return=k,N):(N=d(N,L),N.return=k,N)}function E(k,N,L,G){var te=L.type;return te===m?q(k,N,L.props.children,G,L.key):N!==null&&(N.elementType===te||typeof te=="object"&&te!==null&&te.$$typeof===M&&fm(te)===N.type)?(N=d(N,L.props),Pa(N,L),N.return=k,N):(N=zl(L.type,L.key,L.props,null,k.mode,G),Pa(N,L),N.return=k,N)}function O(k,N,L,G){return N===null||N.tag!==4||N.stateNode.containerInfo!==L.containerInfo||N.stateNode.implementation!==L.implementation?(N=bu(L,k.mode,G),N.return=k,N):(N=d(N,L.children||[]),N.return=k,N)}function q(k,N,L,G,te){return N===null||N.tag!==7?(N=Gi(L,k.mode,G,te),N.return=k,N):(N=d(N,L),N.return=k,N)}function X(k,N,L){if(typeof N=="string"&&N!==""||typeof N=="number"||typeof N=="bigint")return N=yu(""+N,k.mode,L),N.return=k,N;if(typeof N=="object"&&N!==null){switch(N.$$typeof){case u:return L=zl(N.type,N.key,N.props,null,k.mode,L),Pa(L,N),L.return=k,L;case h:return N=bu(N,k.mode,L),N.return=k,N;case M:var G=N._init;return N=G(N._payload),X(k,N,L)}if(z(N)||I(N))return N=Gi(N,k.mode,L,null),N.return=k,N;if(typeof N.then=="function")return X(k,xl(N),L);if(N.$$typeof===S)return X(k,Pl(k,N),L);wl(k,N)}return null}function V(k,N,L,G){var te=N!==null?N.key:null;if(typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint")return te!==null?null:w(k,N,""+L,G);if(typeof L=="object"&&L!==null){switch(L.$$typeof){case u:return L.key===te?E(k,N,L,G):null;case h:return L.key===te?O(k,N,L,G):null;case M:return te=L._init,L=te(L._payload),V(k,N,L,G)}if(z(L)||I(L))return te!==null?null:q(k,N,L,G,null);if(typeof L.then=="function")return V(k,N,xl(L),G);if(L.$$typeof===S)return V(k,N,Pl(k,L),G);wl(k,L)}return null}function H(k,N,L,G,te){if(typeof G=="string"&&G!==""||typeof G=="number"||typeof G=="bigint")return k=k.get(L)||null,w(N,k,""+G,te);if(typeof G=="object"&&G!==null){switch(G.$$typeof){case u:return k=k.get(G.key===null?L:G.key)||null,E(N,k,G,te);case h:return k=k.get(G.key===null?L:G.key)||null,O(N,k,G,te);case M:var ve=G._init;return G=ve(G._payload),H(k,N,L,G,te)}if(z(G)||I(G))return k=k.get(L)||null,q(N,k,G,te,null);if(typeof G.then=="function")return H(k,N,L,xl(G),te);if(G.$$typeof===S)return H(k,N,L,Pl(N,G),te);wl(N,G)}return null}function se(k,N,L,G){for(var te=null,ve=null,re=N,de=N=0,at=null;re!==null&&de<L.length;de++){re.index>de?(at=re,re=null):at=re.sibling;var Re=V(k,re,L[de],G);if(Re===null){re===null&&(re=at);break}e&&re&&Re.alternate===null&&i(k,re),N=p(Re,N,de),ve===null?te=Re:ve.sibling=Re,ve=Re,re=at}if(de===L.length)return a(k,re),Ae&&Mi(k,de),te;if(re===null){for(;de<L.length;de++)re=X(k,L[de],G),re!==null&&(N=p(re,N,de),ve===null?te=re:ve.sibling=re,ve=re);return Ae&&Mi(k,de),te}for(re=o(re);de<L.length;de++)at=H(re,k,de,L[de],G),at!==null&&(e&&at.alternate!==null&&re.delete(at.key===null?de:at.key),N=p(at,N,de),ve===null?te=at:ve.sibling=at,ve=at);return e&&re.forEach(function(mi){return i(k,mi)}),Ae&&Mi(k,de),te}function he(k,N,L,G){if(L==null)throw Error(r(151));for(var te=null,ve=null,re=N,de=N=0,at=null,Re=L.next();re!==null&&!Re.done;de++,Re=L.next()){re.index>de?(at=re,re=null):at=re.sibling;var mi=V(k,re,Re.value,G);if(mi===null){re===null&&(re=at);break}e&&re&&mi.alternate===null&&i(k,re),N=p(mi,N,de),ve===null?te=mi:ve.sibling=mi,ve=mi,re=at}if(Re.done)return a(k,re),Ae&&Mi(k,de),te;if(re===null){for(;!Re.done;de++,Re=L.next())Re=X(k,Re.value,G),Re!==null&&(N=p(Re,N,de),ve===null?te=Re:ve.sibling=Re,ve=Re);return Ae&&Mi(k,de),te}for(re=o(re);!Re.done;de++,Re=L.next())Re=H(re,k,de,Re.value,G),Re!==null&&(e&&Re.alternate!==null&&re.delete(Re.key===null?de:Re.key),N=p(Re,N,de),ve===null?te=Re:ve.sibling=Re,ve=Re);return e&&re.forEach(function(rS){return i(k,rS)}),Ae&&Mi(k,de),te}function Ge(k,N,L,G){if(typeof L=="object"&&L!==null&&L.type===m&&L.key===null&&(L=L.props.children),typeof L=="object"&&L!==null){switch(L.$$typeof){case u:e:{for(var te=L.key;N!==null;){if(N.key===te){if(te=L.type,te===m){if(N.tag===7){a(k,N.sibling),G=d(N,L.props.children),G.return=k,k=G;break e}}else if(N.elementType===te||typeof te=="object"&&te!==null&&te.$$typeof===M&&fm(te)===N.type){a(k,N.sibling),G=d(N,L.props),Pa(G,L),G.return=k,k=G;break e}a(k,N);break}else i(k,N);N=N.sibling}L.type===m?(G=Gi(L.props.children,k.mode,G,L.key),G.return=k,k=G):(G=zl(L.type,L.key,L.props,null,k.mode,G),Pa(G,L),G.return=k,k=G)}return y(k);case h:e:{for(te=L.key;N!==null;){if(N.key===te)if(N.tag===4&&N.stateNode.containerInfo===L.containerInfo&&N.stateNode.implementation===L.implementation){a(k,N.sibling),G=d(N,L.children||[]),G.return=k,k=G;break e}else{a(k,N);break}else i(k,N);N=N.sibling}G=bu(L,k.mode,G),G.return=k,k=G}return y(k);case M:return te=L._init,L=te(L._payload),Ge(k,N,L,G)}if(z(L))return se(k,N,L,G);if(I(L)){if(te=I(L),typeof te!="function")throw Error(r(150));return L=te.call(L),he(k,N,L,G)}if(typeof L.then=="function")return Ge(k,N,xl(L),G);if(L.$$typeof===S)return Ge(k,N,Pl(k,L),G);wl(k,L)}return typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint"?(L=""+L,N!==null&&N.tag===6?(a(k,N.sibling),G=d(N,L),G.return=k,k=G):(a(k,N),G=yu(L,k.mode,G),G.return=k,k=G),y(k)):a(k,N)}return function(k,N,L,G){try{La=0;var te=Ge(k,N,L,G);return xs=null,te}catch(re){if(re===Ma)throw re;var ve=Ft(29,re,null,k.mode);return ve.lanes=G,ve.return=k,ve}finally{}}}var Li=hm(!0),mm=hm(!1),ws=Ee(null),Sl=Ee(0);function pm(e,i){e=Pn,Pe(Sl,e),Pe(ws,i),Pn=e|i.baseLanes}function Ec(){Pe(Sl,Pn),Pe(ws,ws.current)}function jc(){Pn=Sl.current,Ie(ws),Ie(Sl)}var Gt=Ee(null),un=null;function Zn(e){var i=e.alternate;Pe(et,et.current&1),Pe(Gt,e),un===null&&(i===null||ws.current!==null||i.memoizedState!==null)&&(un=e)}function gm(e){if(e.tag===22){if(Pe(et,et.current),Pe(Gt,e),un===null){var i=e.alternate;i!==null&&i.memoizedState!==null&&(un=e)}}else Qn()}function Qn(){Pe(et,et.current),Pe(Gt,Gt.current)}function jn(e){Ie(Gt),un===e&&(un=null),Ie(et)}var et=Ee(0);function _l(e){for(var i=e;i!==null;){if(i.tag===13){var a=i.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||a.data==="$?"||a.data==="$!"))return i}else if(i.tag===19&&i.memoizedProps.revealOrder!==void 0){if((i.flags&128)!==0)return i}else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===e)break;for(;i.sibling===null;){if(i.return===null||i.return===e)return null;i=i.return}i.sibling.return=i.return,i=i.sibling}return null}var Fx=typeof AbortController<"u"?AbortController:function(){var e=[],i=this.signal={aborted:!1,addEventListener:function(a,o){e.push(o)}};this.abort=function(){i.aborted=!0,e.forEach(function(a){return a()})}},Ix=n.unstable_scheduleCallback,Kx=n.unstable_NormalPriority,tt={$$typeof:S,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Ac(){return{controller:new Fx,data:new Map,refCount:0}}function Ua(e){e.refCount--,e.refCount===0&&Ix(Kx,function(){e.controller.abort()})}var Va=null,Rc=0,Ss=0,_s=null;function Zx(e,i){if(Va===null){var a=Va=[];Rc=0,Ss=ku(),_s={status:"pending",value:void 0,then:function(o){a.push(o)}}}return Rc++,i.then(vm,vm),i}function vm(){if(--Rc===0&&Va!==null){_s!==null&&(_s.status="fulfilled");var e=Va;Va=null,Ss=0,_s=null;for(var i=0;i<e.length;i++)(0,e[i])()}}function Qx(e,i){var a=[],o={status:"pending",value:null,reason:null,then:function(d){a.push(d)}};return e.then(function(){o.status="fulfilled",o.value=i;for(var d=0;d<a.length;d++)(0,a[d])(i)},function(d){for(o.status="rejected",o.reason=d,d=0;d<a.length;d++)(0,a[d])(void 0)}),o}var ym=$.S;$.S=function(e,i){typeof i=="object"&&i!==null&&typeof i.then=="function"&&Zx(e,i),ym!==null&&ym(e,i)};var Pi=Ee(null);function Cc(){var e=Pi.current;return e!==null?e:Me.pooledCache}function Tl(e,i){i===null?Pe(Pi,Pi.current):Pe(Pi,i.pool)}function bm(){var e=Cc();return e===null?null:{parent:tt._currentValue,pool:e}}var Wn=0,ge=null,Ne=null,Ke=null,El=!1,Ts=!1,Ui=!1,jl=0,za=0,Es=null,Wx=0;function Xe(){throw Error(r(321))}function Nc(e,i){if(i===null)return!1;for(var a=0;a<i.length&&a<e.length;a++)if(!Nt(e[a],i[a]))return!1;return!0}function Oc(e,i,a,o,d,p){return Wn=p,ge=i,i.memoizedState=null,i.updateQueue=null,i.lanes=0,$.H=e===null||e.memoizedState===null?Vi:Jn,Ui=!1,p=a(o,d),Ui=!1,Ts&&(p=wm(i,a,o,d)),xm(e),p}function xm(e){$.H=dn;var i=Ne!==null&&Ne.next!==null;if(Wn=0,Ke=Ne=ge=null,El=!1,za=0,Es=null,i)throw Error(r(300));e===null||it||(e=e.dependencies,e!==null&&Ll(e)&&(it=!0))}function wm(e,i,a,o){ge=e;var d=0;do{if(Ts&&(Es=null),za=0,Ts=!1,25<=d)throw Error(r(301));if(d+=1,Ke=Ne=null,e.updateQueue!=null){var p=e.updateQueue;p.lastEffect=null,p.events=null,p.stores=null,p.memoCache!=null&&(p.memoCache.index=0)}$.H=zi,p=i(a,o)}while(Ts);return p}function Jx(){var e=$.H,i=e.useState()[0];return i=typeof i.then=="function"?Ba(i):i,e=e.useState()[0],(Ne!==null?Ne.memoizedState:null)!==e&&(ge.flags|=1024),i}function Dc(){var e=jl!==0;return jl=0,e}function Mc(e,i,a){i.updateQueue=e.updateQueue,i.flags&=-2053,e.lanes&=~a}function kc(e){if(El){for(e=e.memoizedState;e!==null;){var i=e.queue;i!==null&&(i.pending=null),e=e.next}El=!1}Wn=0,Ke=Ne=ge=null,Ts=!1,za=jl=0,Es=null}function jt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ke===null?ge.memoizedState=Ke=e:Ke=Ke.next=e,Ke}function Ze(){if(Ne===null){var e=ge.alternate;e=e!==null?e.memoizedState:null}else e=Ne.next;var i=Ke===null?ge.memoizedState:Ke.next;if(i!==null)Ke=i,Ne=e;else{if(e===null)throw ge.alternate===null?Error(r(467)):Error(r(310));Ne=e,e={memoizedState:Ne.memoizedState,baseState:Ne.baseState,baseQueue:Ne.baseQueue,queue:Ne.queue,next:null},Ke===null?ge.memoizedState=Ke=e:Ke=Ke.next=e}return Ke}var Al;Al=function(){return{lastEffect:null,events:null,stores:null,memoCache:null}};function Ba(e){var i=za;return za+=1,Es===null&&(Es=[]),e=um(Es,e,i),i=ge,(Ke===null?i.memoizedState:Ke.next)===null&&(i=i.alternate,$.H=i===null||i.memoizedState===null?Vi:Jn),e}function Rl(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Ba(e);if(e.$$typeof===S)return pt(e)}throw Error(r(438,String(e)))}function Lc(e){var i=null,a=ge.updateQueue;if(a!==null&&(i=a.memoCache),i==null){var o=ge.alternate;o!==null&&(o=o.updateQueue,o!==null&&(o=o.memoCache,o!=null&&(i={data:o.data.map(function(d){return d.slice()}),index:0})))}if(i==null&&(i={data:[],index:0}),a===null&&(a=Al(),ge.updateQueue=a),a.memoCache=i,a=i.data[i.index],a===void 0)for(a=i.data[i.index]=Array(e),o=0;o<e;o++)a[o]=B;return i.index++,a}function An(e,i){return typeof i=="function"?i(e):i}function Cl(e){var i=Ze();return Pc(i,Ne,e)}function Pc(e,i,a){var o=e.queue;if(o===null)throw Error(r(311));o.lastRenderedReducer=a;var d=e.baseQueue,p=o.pending;if(p!==null){if(d!==null){var y=d.next;d.next=p.next,p.next=y}
vendor: 5,062 bytes, line 48
48i.baseQueue=d=p,o.pending=null}if(p=e.baseState,d===null)e.memoizedState=p;else{i=d.next;var w=y=null,E=null,O=i,q=!1;do{var X=O.lane&-536870913;if(X!==O.lane?(_e&X)===X:(Wn&X)===X){var V=O.revertLane;if(V===0)E!==null&&(E=E.next={lane:0,revertLane:0,action:O.action,hasEagerState:O.hasEagerState,eagerState:O.eagerState,next:null}),X===Ss&&(q=!0);else if((Wn&V)===V){O=O.next,V===Ss&&(q=!0);continue}else X={lane:0,revertLane:O.revertLane,action:O.action,hasEagerState:O.hasEagerState,eagerState:O.eagerState,next:null},E===null?(w=E=X,y=p):E=E.next=X,ge.lanes|=V,oi|=V;X=O.action,Ui&&a(p,X),p=O.hasEagerState?O.eagerState:a(p,X)}else V={lane:X,revertLane:O.revertLane,action:O.action,hasEagerState:O.hasEagerState,eagerState:O.eagerState,next:null},E===null?(w=E=V,y=p):E=E.next=V,ge.lanes|=X,oi|=X;O=O.next}while(O!==null&&O!==i);if(E===null?y=p:E.next=w,!Nt(p,e.memoizedState)&&(it=!0,q&&(a=_s,a!==null)))throw a;e.memoizedState=p,e.baseState=y,e.baseQueue=E,o.lastRenderedState=p}return d===null&&(o.lanes=0),[e.memoizedState,o.dispatch]}function Uc(e){var i=Ze(),a=i.queue;if(a===null)throw Error(r(311));a.lastRenderedReducer=e;var o=a.dispatch,d=a.pending,p=i.memoizedState;if(d!==null){a.pending=null;var y=d=d.next;do p=e(p,y.action),y=y.next;while(y!==d);Nt(p,i.memoizedState)||(it=!0),i.memoizedState=p,i.baseQueue===null&&(i.baseState=p),a.lastRenderedState=p}return[p,o]}function Sm(e,i,a){var o=ge,d=Ze(),p=Ae;if(p){if(a===void 0)throw Error(r(407));a=a()}else a=i();var y=!Nt((Ne||d).memoizedState,a);if(y&&(d.memoizedState=a,it=!0),d=d.queue,Bc(Em.bind(null,o,d,e),[e]),d.getSnapshot!==i||y||Ke!==null&&Ke.memoizedState.tag&1){if(o.flags|=2048,js(9,Tm.bind(null,o,d,a,i),{destroy:void 0},null),Me===null)throw Error(r(349));p||(Wn&60)!==0||_m(o,i,a)}return a}function _m(e,i,a){e.flags|=16384,e={getSnapshot:i,value:a},i=ge.updateQueue,i===null?(i=Al(),ge.updateQueue=i,i.stores=[e]):(a=i.stores,a===null?i.stores=[e]:a.push(e))}function Tm(e,i,a,o){i.value=a,i.getSnapshot=o,jm(i)&&Am(e)}function Em(e,i,a){return a(function(){jm(i)&&Am(e)})}function jm(e){var i=e.getSnapshot;e=e.value;try{var a=i();return!Nt(e,a)}catch{return!0}}function Am(e){var i=Kn(e,2);i!==null&&wt(i,e,2)}function Vc(e){var i=jt();if(typeof e=="function"){var a=e;if(e=a(),Ui){Xn(!0);try{a()}finally{Xn(!1)}}}return i.memoizedState=i.baseState=e,i.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:An,lastRenderedState:e},i}function Rm(e,i,a,o){return e.baseState=a,Pc(e,Ne,typeof o=="function"?o:An)}function ew(e,i,a,o,d){if(Dl(e))throw Error(r(485));if(e=i.action,e!==null){var p={payload:d,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(y){p.listeners.push(y)}};$.T!==null?a(!0):p.isTransition=!1,o(p),a=i.pending,a===null?(p.next=i.pending=p,Cm(i,p)):(p.next=a.next,i.pending=a.next=p)}}function Cm(e,i){var a=i.action,o=i.payload,d=e.state;if(i.isTransition){var p=$.T,y={};$.T=y;try{var w=a(d,o),E=$.S;E!==null&&E(y,w),Nm(e,i,w)}catch(O){zc(e,i,O)}finally{$.T=p}}else try{p=a(d,o),Nm(e,i,p)}catch(O){zc(e,i,O)}}function Nm(e,i,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(o){Om(e,i,o)},function(o){return zc(e,i,o)}):Om(e,i,a)}function Om(e,i,a){i.status="fulfilled",i.value=a,Dm(i),e.state=a,i=e.pending,i!==null&&(a=i.next,a===i?e.pending=null:(a=a.next,i.next=a,Cm(e,a)))}function zc(e,i,a){var o=e.pending;if(e.pending=null,o!==null){o=o.next;do i.status="rejected",i.reason=a,Dm(i),i=i.next;while(i!==o)}e.action=null}function Dm(e){e=e.listeners;for(var i=0;i<e.length;i++)(0,e[i])()}function Mm(e,i){return i}function km(e,i){if(Ae){var a=Me.formState;if(a!==null){e:{var o=ge;if(Ae){if(ut){t:{for(var d=ut,p=cn;d.nodeType!==8;){if(!p){d=null;break t}if(d=nn(d.nextSibling),d===null){d=null;break t}}p=d.data,d=p==="F!"||p==="F"?d:null}if(d){ut=nn(d.nextSibling),o=d.data==="F!";break e}}ki(o)}o=!1}o&&(i=a[0])}}return a=jt(),a.memoizedState=a.baseState=i,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Mm,lastRenderedState:i},a.queue=o,a=Wm.bind(null,ge,o),o.dispatch=a,o=Vc(!1),p=Yc.bind(null,ge,!1,o.queue),o=jt(),d={state:i,dispatch:null,action:e,pending:null},o.queue=d,a=ew.bind(null,ge,d,p,a),d.dispatch=a,o.memoizedState=e,[i,a,!1]}function Lm(e){var i=Ze();return Pm(i,Ne,e)}function Pm(e,i,a){i=Pc(e,i,Mm)[0],e=Cl(An)[0],i=typeof i=="object"&&i!==null&&typeof i.then=="function"?Ba(i):i;var o=Ze(),d=o.queue,p=d.dispatch;return a!==o.memoizedState&&(ge.flags|=2048,js(9,tw.bind(null,d,a),{destroy:void 0},null)),[i,p,e]}function tw(e,i){e.action=i}function Um(e){var i=Ze(),a=Ne;if(a!==null)return Pm(i,a,e);Ze(),i=i.memoizedState,a=Ze();var o=a.queue.dispatch;return a.memoizedState=e,[i,o,!1]}function js(e,i,a,o){return e={tag:e,create:i,inst:a,deps:o,next:null},i=ge.updateQueue,i===null&&(i=Al(),ge.updateQueue=i),a=i.lastEffect,a===null?i.lastEffect=e.next=e:(o=a.next,a.next=e,e.next=o,i.lastEffect=e),e}function Vm(){return Ze().memoizedState}function Nl(e,i,a,o){var d=jt();ge.flags|=e,d.memoizedState=js(1|i,a,{destroy:void 0}
vendor: 24,415 bytes, line 48
48,o===void 0?null:o)}function Ol(e,i,a,o){var d=Ze();o=o===void 0?null:o;var p=d.memoizedState.inst;Ne!==null&&o!==null&&Nc(o,Ne.memoizedState.deps)?d.memoizedState=js(i,a,p,o):(ge.flags|=e,d.memoizedState=js(1|i,a,p,o))}function zm(e,i){Nl(8390656,8,e,i)}function Bc(e,i){Ol(2048,8,e,i)}function Bm(e,i){return Ol(4,2,e,i)}function Hm(e,i){return Ol(4,4,e,i)}function qm(e,i){if(typeof i=="function"){e=e();var a=i(e);return function(){typeof a=="function"?a():i(null)}}if(i!=null)return e=e(),i.current=e,function(){i.current=null}}function $m(e,i,a){a=a!=null?a.concat([e]):null,Ol(4,4,qm.bind(null,i,e),a)}function Hc(){}function Gm(e,i){var a=Ze();i=i===void 0?null:i;var o=a.memoizedState;return i!==null&&Nc(i,o[1])?o[0]:(a.memoizedState=[e,i],e)}function Ym(e,i){var a=Ze();i=i===void 0?null:i;var o=a.memoizedState;if(i!==null&&Nc(i,o[1]))return o[0];if(o=e(),Ui){Xn(!0);try{e()}finally{Xn(!1)}}return a.memoizedState=[o,i],o}function qc(e,i,a){return a===void 0||(Wn&1073741824)!==0?e.memoizedState=i:(e.memoizedState=a,e=Fp(),ge.lanes|=e,oi|=e,a)}function Xm(e,i,a,o){return Nt(a,i)?a:ws.current!==null?(e=qc(e,a,o),Nt(e,i)||(it=!0),e):(Wn&42)===0?(it=!0,e.memoizedState=a):(e=Fp(),ge.lanes|=e,oi|=e,i)}function Fm(e,i,a,o,d){var p=Y.p;Y.p=p!==0&&8>p?p:8;var y=$.T,w={};$.T=w,Yc(e,!1,i,a);try{var E=d(),O=$.S;if(O!==null&&O(w,E),E!==null&&typeof E=="object"&&typeof E.then=="function"){var q=Qx(E,o);Ha(e,i,q,kt(e))}else Ha(e,i,o,kt(e))}catch(X){Ha(e,i,{then:function(){},status:"rejected",reason:X},kt())}finally{Y.p=p,$.T=y}}function nw(){}function $c(e,i,a,o){if(e.tag!==5)throw Error(r(476));var d=Im(e).queue;Fm(e,d,i,ee,a===null?nw:function(){return Km(e),a(o)})}function Im(e){var i=e.memoizedState;if(i!==null)return i;i={memoizedState:ee,baseState:ee,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:An,lastRenderedState:ee},next:null};var a={};return i.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:An,lastRenderedState:a},next:null},e.memoizedState=i,e=e.alternate,e!==null&&(e.memoizedState=i),i}function Km(e){var i=Im(e).next.queue;Ha(e,i,{},kt())}function Gc(){return pt(lr)}function Zm(){return Ze().memoizedState}function Qm(){return Ze().memoizedState}function iw(e){for(var i=e.return;i!==null;){switch(i.tag){case 24:case 3:var a=kt();e=ni(a);var o=ii(i,e,a);o!==null&&(wt(o,i,a),Ga(o,i,a)),i={cache:Ac()},e.payload=i;return}i=i.return}}function sw(e,i,a){var o=kt();a={lane:o,revertLane:0,action:a,hasEagerState:!1,eagerState:null,next:null},Dl(e)?Jm(i,a):(a=xc(e,i,a,o),a!==null&&(wt(a,e,o),ep(a,i,o)))}function Wm(e,i,a){var o=kt();Ha(e,i,a,o)}function Ha(e,i,a,o){var d={lane:o,revertLane:0,action:a,hasEagerState:!1,eagerState:null,next:null};if(Dl(e))Jm(i,d);else{var p=e.alternate;if(e.lanes===0&&(p===null||p.lanes===0)&&(p=i.lastRenderedReducer,p!==null))try{var y=i.lastRenderedState,w=p(y,a);if(d.hasEagerState=!0,d.eagerState=w,Nt(w,y))return pl(e,i,d,0),Me===null&&ml(),!1}catch{}finally{}if(a=xc(e,i,d,o),a!==null)return wt(a,e,o),ep(a,i,o),!0}return!1}function Yc(e,i,a,o){if(o={lane:2,revertLane:ku(),action:o,hasEagerState:!1,eagerState:null,next:null},Dl(e)){if(i)throw Error(r(479))}else i=xc(e,a,o,2),i!==null&&wt(i,e,2)}function Dl(e){var i=e.alternate;return e===ge||i!==null&&i===ge}function Jm(e,i){Ts=El=!0;var a=e.pending;a===null?i.next=i:(i.next=a.next,a.next=i),e.pending=i}function ep(e,i,a){if((a&4194176)!==0){var o=i.lanes;o&=e.pendingLanes,a|=o,i.lanes=a,dh(e,a)}}var dn={readContext:pt,use:Rl,useCallback:Xe,useContext:Xe,useEffect:Xe,useImperativeHandle:Xe,useLayoutEffect:Xe,useInsertionEffect:Xe,useMemo:Xe,useReducer:Xe,useRef:Xe,useState:Xe,useDebugValue:Xe,useDeferredValue:Xe,useTransition:Xe,useSyncExternalStore:Xe,useId:Xe};dn.useCacheRefresh=Xe,dn.useMemoCache=Xe,dn.useHostTransitionStatus=Xe,dn.useFormState=Xe,dn.useActionState=Xe,dn.useOptimistic=Xe;var Vi={readContext:pt,use:Rl,useCallback:function(e,i){return jt().memoizedState=[e,i===void 0?null:i],e},useContext:pt,useEffect:zm,useImperativeHandle:function(e,i,a){a=a!=null?a.concat([e]):null,Nl(4194308,4,qm.bind(null,i,e),a)},useLayoutEffect:function(e,i){return Nl(4194308,4,e,i)},useInsertionEffect:function(e,i){Nl(4,2,e,i)},useMemo:function(e,i){var a=jt();i=i===void 0?null:i;var o=e();if(Ui){Xn(!0);try{e()}finally{Xn(!1)}}return a.memoizedState=[o,i],o},useReducer:function(e,i,a){var o=jt();if(a!==void 0){var d=a(i);if(Ui){Xn(!0);try{a(i)}finally{Xn(!1)}}}else d=i;return o.memoizedState=o.baseState=d,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:d},o.queue=e,e=e.dispatch=sw.bind(null,ge,e),[o.memoizedState,e]},useRef:function(e){var i=jt();return e={current:e},i.memoizedState=e},useState:function(e){e=Vc(e);var i=e.queue,a=Wm.bind(null,ge,i);return i.dispatch=a,[e.memoizedState,a]},useDebugValue:Hc,useDeferredValue:function(e,i){var a=jt();return qc(a,e,i)},useTransition:function(){var e=Vc(!1);return e=Fm.bind(null,ge,e.queue,!0,!1),jt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,i,a){var o=ge,d=jt();if(Ae){if(a===void 0)throw Error(r(407));a=a()}else{if(a=i(),Me===null)throw Error(r(349));(_e&60)!==0||_m(o,i,a)}d.memoizedState=a;var p={value:a,getSnapshot:i};return d.queue=p,zm(Em.bind(null,o,p,e),[e]),o.flags|=2048,js(9,Tm.bind(null,o,p,a,i),{destroy:void 0},null),a},useId:function(){var e=jt(),i=Me.identifierPrefix;if(Ae){var a=En,o=Tn;a=(o&~(1<<32-Ct(o)-1)).toString(32)+a,i=":"+i+"R"+a,a=jl++,0<a&&(i+="H"+a.toString(32)),i+=":"}else a=Wx++,i=":"+i+"r"+a.toString(32)+":";return e.memoizedState=i},useCacheRefresh:function(){return jt().memoizedState=iw.bind(null,ge)}};Vi.useMemoCache=Lc,Vi.useHostTransitionStatus=Gc,Vi.useFormState=km,Vi.useActionState=km,Vi.useOptimistic=function(e){var i=jt();i.memoizedState=i.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return i.queue=a,i=Yc.bind(null,ge,!0,a),a.dispatch=i,[e,i]};var Jn={readContext:pt,use:Rl,useCallback:Gm,useContext:pt,useEffect:Bc,useImperativeHandle:$m,useInsertionEffect:Bm,useLayoutEffect:Hm,useMemo:Ym,useReducer:Cl,useRef:Vm,useState:function(){return Cl(An)},useDebugValue:Hc,useDeferredValue:function(e,i){var a=Ze();return Xm(a,Ne.memoizedState,e,i)},useTransition:function(){var e=Cl(An)[0],i=Ze().memoizedState;return[typeof e=="boolean"?e:Ba(e),i]},useSyncExternalStore:Sm,useId:Zm};Jn.useCacheRefresh=Qm,Jn.useMemoCache=Lc,Jn.useHostTransitionStatus=Gc,Jn.useFormState=Lm,Jn.useActionState=Lm,Jn.useOptimistic=function(e,i){var a=Ze();return Rm(a,Ne,e,i)};var zi={readContext:pt,use:Rl,useCallback:Gm,useContext:pt,useEffect:Bc,useImperativeHandle:$m,useInsertionEffect:Bm,useLayoutEffect:Hm,useMemo:Ym,useReducer:Uc,useRef:Vm,useState:function(){return Uc(An)},useDebugValue:Hc,useDeferredValue:function(e,i){var a=Ze();return Ne===null?qc(a,e,i):Xm(a,Ne.memoizedState,e,i)},useTransition:function(){var e=Uc(An)[0],i=Ze().memoizedState;return[typeof e=="boolean"?e:Ba(e),i]},useSyncExternalStore:Sm,useId:Zm};zi.useCacheRefresh=Qm,zi.useMemoCache=Lc,zi.useHostTransitionStatus=Gc,zi.useFormState=Um,zi.useActionState=Um,zi.useOptimistic=function(e,i){var a=Ze();return Ne!==null?Rm(a,Ne,e,i):(a.baseState=e,[e,a.queue.dispatch])};function Xc(e,i,a,o){i=e.memoizedState,a=a(o,i),a=a==null?i:W({},i,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var Fc={isMounted:function(e){return(e=e._reactInternals)?ie(e)===e:!1},enqueueSetState:function(e,i,a){e=e._reactInternals;var o=kt(),d=ni(o);d.payload=i,a!=null&&(d.callback=a),i=ii(e,d,o),i!==null&&(wt(i,e,o),Ga(i,e,o))},enqueueReplaceState:function(e,i,a){e=e._reactInternals;var o=kt(),d=ni(o);d.tag=1,d.payload=i,a!=null&&(d.callback=a),i=ii(e,d,o),i!==null&&(wt(i,e,o),Ga(i,e,o))},enqueueForceUpdate:function(e,i){e=e._reactInternals;var a=kt(),o=ni(a);o.tag=2,i!=null&&(o.callback=i),i=ii(e,o,a),i!==null&&(wt(i,e,a),Ga(i,e,a))}};function tp(e,i,a,o,d,p,y){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(o,p,y):i.prototype&&i.prototype.isPureReactComponent?!Ra(a,o)||!Ra(d,p):!0}function np(e,i,a,o){e=i.state,typeof i.componentWillReceiveProps=="function"&&i.componentWillReceiveProps(a,o),typeof i.UNSAFE_componentWillReceiveProps=="function"&&i.UNSAFE_componentWillReceiveProps(a,o),i.state!==e&&Fc.enqueueReplaceState(i,i.state,null)}function Bi(e,i){var a=i;if("ref"in i){a={};for(var o in i)o!=="ref"&&(a[o]=i[o])}if(e=e.defaultProps){a===i&&(a=W({},a));for(var d in e)a[d]===void 0&&(a[d]=e[d])}return a}var Ml=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var i=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(i))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)};function ip(e){Ml(e)}function sp(e){console.error(e)}function ap(e){Ml(e)}function kl(e,i){try{var a=e.onUncaughtError;a(i.value,{componentStack:i.stack})}catch(o){setTimeout(function(){throw o})}}function rp(e,i,a){try{var o=e.onCaughtError;o(a.value,{componentStack:a.stack,errorBoundary:i.tag===1?i.stateNode:null})}catch(d){setTimeout(function(){throw d})}}function Ic(e,i,a){return a=ni(a),a.tag=3,a.payload={element:null},a.callback=function(){kl(e,i)},a}function lp(e){return e=ni(e),e.tag=3,e}function op(e,i,a,o){var d=a.type.getDerivedStateFromError;if(typeof d=="function"){var p=o.value;e.payload=function(){return d(p)},e.callback=function(){rp(i,a,o)}}var y=a.stateNode;y!==null&&typeof y.componentDidCatch=="function"&&(e.callback=function(){rp(i,a,o),typeof d!="function"&&(ci===null?ci=new Set([this]):ci.add(this));var w=o.stack;this.componentDidCatch(o.value,{componentStack:w!==null?w:""})})}function aw(e,i,a,o,d){if(a.flags|=32768,o!==null&&typeof o=="object"&&typeof o.then=="function"){if(i=a.alternate,i!==null&&$a(i,a,d,!0),a=Gt.current,a!==null){switch(a.tag){case 13:return un===null?Cu():a.alternate===null&&$e===0&&($e=3),a.flags&=-257,a.flags|=65536,a.lanes=d,o===Tc?a.flags|=16384:(i=a.updateQueue,i===null?a.updateQueue=new Set([o]):i.add(o),Ou(e,o,d)),!1;case 22:return a.flags|=65536,o===Tc?a.flags|=16384:(i=a.updateQueue,i===null?(i={transitions:null,markerInstances:null,retryQueue:new Set([o])},a.updateQueue=i):(a=i.retryQueue,a===null?i.retryQueue=new Set([o]):a.add(o)),Ou(e,o,d)),!1}throw Error(r(435,a.tag))}return Ou(e,o,d),Cu(),!1}if(Ae)return i=Gt.current,i!==null?((i.flags&65536)===0&&(i.flags|=256),i.flags|=65536,i.lanes=d,o!==_c&&(e=Error(r(422),{cause:o}),Da(Ht(e,a)))):(o!==_c&&(i=Error(r(423),{cause:o}),Da(Ht(i,a))),e=e.current.alternate,e.flags|=65536,d&=-d,e.lanes|=d,o=Ht(o,a),d=Ic(e.stateNode,o,d),cu(e,d),$e!==4&&($e=2)),!1;var p=Error(r(520),{cause:o});if(p=Ht(p,a),Wa===null?Wa=[p]:Wa.push(p),$e!==4&&($e=2),i===null)return!0;o=Ht(o,a),a=i;do{switch(a.tag){case 3:return a.flags|=65536,e=d&-d,a.lanes|=e,e=Ic(a.stateNode,o,e),cu(a,e),!1;case 1:if(i=a.type,p=a.stateNode,(a.flags&128)===0&&(typeof i.getDerivedStateFromError=="function"||p!==null&&typeof p.componentDidCatch=="function"&&(ci===null||!ci.has(p))))return a.flags|=65536,d&=-d,a.lanes|=d,d=lp(d),op(d,e,a,o),cu(a,d),!1}a=a.return}while(a!==null);return!1}var cp=Error(r(461)),it=!1;function dt(e,i,a,o){i.child=e===null?mm(i,null,a,o):Li(i,e.child,a,o)}function up(e,i,a,o,d){a=a.render;var p=i.ref;if("ref"in o){var y={};for(var w in o)w!=="ref"&&(y[w]=o[w])}else y=o;return qi(i),o=Oc(e,i,a,y,p,d),w=Dc(),e!==null&&!it?(Mc(e,i,d),Rn(e,i,d)):(Ae&&w&&wc(i),i.flags|=1,dt(e,i,o,d),i.child)}function dp(e,i,a,o,d){if(e===null){var p=a.type;return typeof p=="function"&&!vu(p)&&p.defaultProps===void 0&&a.compare===null?(i.tag=15,i.type=p,fp(e,i,p,o,d)):(e=zl(a.type,null,o,i,i.mode,d),e.ref=i.ref,e.return=i,i.child=e)}if(p=e.child,!iu(e,d)){var y=p.memoizedProps;if(a=a.compare,a=a!==null?a:Ra,a(y,o)&&e.ref===i.ref)return Rn(e,i,d)}return i.flags|=1,e=li(p,o),e.ref=i.ref,e.return=i,i.child=e}function fp(e,i,a,o,d){if(e!==null){var p=e.memoizedProps;if(Ra(p,o)&&e.ref===i.ref)if(it=!1,i.pendingProps=o=p,iu(e,d))(e.flags&131072)!==0&&(it=!0);else return i.lanes=e.lanes,Rn(e,i,d)}return Kc(e,i,a,o,d)}function hp(e,i,a){var o=i.pendingProps,d=o.children,p=(i.stateNode._pendingVisibility&2)!==0,y=e!==null?e.memoizedState:null;if(qa(e,i),o.mode==="hidden"||p){if((i.flags&128)!==0){if(o=y!==null?y.baseLanes|a:a,e!==null){for(d=i.child=e.child,p=0;d!==null;)p=p|d.lanes|d.childLanes,d=d.sibling;i.childLanes=p&~o}else i.childLanes=0,i.child=null;return mp(e,i,o,a)}if((a&536870912)!==0)i.memoizedState={baseLanes:0,cachePool:null},e!==null&&Tl(i,y!==null?y.cachePool:null),y!==null?pm(i,y):Ec(),gm(i);else return i.lanes=i.childLanes=536870912,mp(e,i,y!==null?y.baseLanes|a:a,a)}else y!==null?(Tl(i,y.cachePool),pm(i,y),Qn(),i.memoizedState=null):(e!==null&&Tl(i,null),Ec(),Qn());return dt(e,i,d,a),i.child}function mp(e,i,a,o){var d=Cc();return d=d===null?null:{parent:tt._currentValue,pool:d},i.memoizedState={baseLanes:a,cachePool:d},e!==null&&Tl(i,null),Ec(),gm(i),e!==null&&$a(e,i,o,!0),null}function qa(e,i){var a=i.ref;if(a===null)e!==null&&e.ref!==null&&(i.flags|=2097664);else{if(typeof a!="function"&&typeof a!="object")throw Error(r(284));(e===null||e.ref!==a)&&(i.flags|=2097664)}}function Kc(e,i,a,o,d){return qi(i),a=Oc(e,i,a,o,void 0,d),o=Dc(),e!==null&&!it?(Mc(e,i,d),Rn(e,i,d)):(Ae&&o&&wc(i),i.flags|=1,dt(e,i,a,d),i.child)}function pp(e,i,a,o,d,p){return qi(i),i.updateQueue=null,a=wm(i,o,a,d),xm(e),o=Dc(),e!==null&&!it?(Mc(e,i,p),Rn(e,i,p)):(Ae&&o&&wc(i),i.flags|=1,dt(e,i,a,p),i.child)}function gp(e,i,a,o,d){if(qi(i),i.stateNode===null){var p=vs,y=a.contextType;typeof y=="object"&&y!==null&&(p=pt(y)),p=new a(o,p),i.memoizedState=p.state!==null&&p.state!==void 0?p.state:null,p.updater=Fc,i.stateNode=p,p._reactInternals=i,p=i.stateNode,p.props=o,p.state=i.memoizedState,p.refs={},lu(i),y=a.contextType,p.context=typeof y=="object"&&y!==null?pt(y):vs,p.state=i.memoizedState,y=a.getDerivedStateFromProps,typeof y=="function"&&(Xc(i,a,y,o),p.state=i.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof p.getSnapshotBeforeUpdate=="function"||typeof p.UNSAFE_componentWillMount!="function"&&typeof p.componentWillMount!="function"||(y=p.state,typeof p.componentWillMount=="function"&&p.componentWillMount(),typeof p.UNSAFE_componentWillMount=="function"&&p.UNSAFE_componentWillMount(),y!==p.state&&Fc.enqueueReplaceState(p,p.state,null),Xa(i,o,p,d),Ya(),p.state=i.memoizedState),typeof p.componentDidMount=="function"&&(i.flags|=4194308),o=!0}else if(e===null){p=i.stateNode;var w=i.memoizedProps,E=Bi(a,w);p.props=E;var O=p.context,q=a.contextType;y=vs,typeof q=="object"&&q!==null&&(y=pt(q));var X=a.getDerivedStateFromProps;q=typeof X=="function"||typeof p.getSnapshotBeforeUpdate=="function",w=i.pendingProps!==w,q||typeof p.UNSAFE_componentWillReceiveProps!="function"&&typeof p.componentWillReceiveProps!="function"||(w||O!==y)&&np(i,p,o,y),ti=!1;var V=i.memoizedState;p.state=V,Xa(i,o,p,d),Ya(),O=i.memoizedState,w||V!==O||ti?(typeof X=="function"&&(Xc(i,a,X,o),O=i.memoizedState),(E=ti||tp(i,a,E,o,V,O,y))?(q||typeof p.UNSAFE_componentWillMount!="function"&&typeof p.componentWillMount!="function"||(typeof p.componentWillMount=="function"&&p.componentWillMount(),typeof p.UNSAFE_componentWillMount=="function"&&p.UNSAFE_componentWillMount()),typeof p.componentDidMount=="function"&&(i.flags|=4194308)):(typeof p.componentDidMount=="function"&&(i.flags|=4194308),i.memoizedProps=o,i.memoizedState=O),p.props=o,p.state=O,p.context=y,o=E):(typeof p.componentDidMount=="function"&&(i.flags|=4194308),o=!1)}else{p=i.stateNode,ou(e,i),y=i.memoizedProps,q=Bi(a,y),p.props=q,X=i.pendingProps,V=p.context,O=a.contextType,E=vs,typeof O=="object"&&O!==null&&(E=pt(O)),w=a.getDerivedStateFromProps,(O=typeof w=="function"||typeof p.getSnapshotBeforeUpdate=="function")||typeof p.UNSAFE_componentWillReceiveProps!="function"&&typeof p.componentWillReceiveProps!="function"||(y!==X||V!==E)&&np(i,p,o,E),ti=!1,V=i.memoizedState,p.state=V,Xa(i,o,p,d),Ya();var H=i.memoizedState;y!==X||V!==H||ti||e!==null&&e.dependencies!==null&&Ll(e.dependencies)?(typeof w=="function"&&(Xc(i,a,w,o),H=i.memoizedState),(q=ti||tp(i,a,q,o,V,H,E)||e!==null&&e.dependencies!==null&&Ll(e.dependencies))?(O||typeof p.UNSAFE_componentWillUpdate!="function"&&typeof p.componentWillUpdate!="function"||(typeof p.componentWillUpdate=="function"&&p.componentWillUpdate(o,H,E),typeof p.UNSAFE_componentWillUpdate=="function"&&p.UNSAFE_componentWillUpdate(o,H,E)),typeof p.componentDidUpdate=="function"&&(i.flags|=4),typeof p.getSnapshotBeforeUpdate=="function"&&(i.flags|=1024)):(typeof p.componentDidUpdate!="function"||y===e.memoizedProps&&V===e.memoizedState||(i.flags|=4),typeof p.getSnapshotBeforeUpdate!="function"||y===e.memoizedProps&&V===e.memoizedState||(i.flags|=1024),i.memoizedProps=o,i.memoizedState=H),p.props=o,p.state=H,p.context=E,o=q):(typeof p.componentDidUpdate!="function"||y===e.memoizedProps&&V===e.memoizedState||(i.flags|=4),typeof p.getSnapshotBeforeUpdate!="function"||y===e.memoizedProps&&V===e.memoizedState||(i.flags|=1024),o=!1)}return p=o,qa(e,i),o=(i.flags&128)!==0,p||o?(p=i.stateNode,a=o&&typeof a.getDerivedStateFromError!="function"?null:p.render(),i.flags|=1,e!==null&&o?(i.child=Li(i,e.child,null,d),i.child=Li(i,null,a,d)):dt(e,i,a,d),i.memoizedState=p.state,e=i.child):e=Rn(e,i,d),e}function vp(e,i,a,o){return Oa(),i.flags|=256,dt(e,i,a,o),i.child}var Zc={dehydrated:null,treeContext:null,retryLane:0};function Qc(e){return{baseLanes:e,cachePool:bm()}}function Wc(e,i,a){return e=e!==null?e.childLanes&~a:0,i&&(e|=It),e}function yp(e,i,a){var o=i.pendingProps,d=!1,p=(i.flags&128)!==0,y;if((y=p)||(y=e!==null&&e.memoizedState===null?!1:(et.current&2)!==0),y&&(d=!0,i.flags&=-129),y=(i.flags&32)!==0,i.flags&=-33,e===null){if(Ae){if(d?Zn(i):Qn(),Ae){var w=ut,E;if(E=w){e:{for(E=w,w=cn;E.nodeType!==8;){if(!w){w=null;break e}if(E=nn(E.nextSibling),E===null){w=null;break e}}w=E}w!==null?(i.memoizedState={dehydrated:w,treeContext:Di!==null?{id:Tn,overflow:En}:null,retryLane:536870912},E=Ft(18,null,null,0),E.stateNode=w,E.return=i,i.child=E,xt=i,ut=null,E=!0):E=!1}E||ki(i)}if(w=i.memoizedState,w!==null&&(w=w.dehydrated,w!==null))return w.data==="$!"?i.lanes=16:i.lanes=536870912,null;jn(i)}return w=o.children,o=o.fallback,d?(Qn(),d=i.mode,w=eu({mode:"hidden",children:w},d),o=Gi(o,d,a,null),w.return=i,o.return=i,w.sibling=o,i.child=w,d=i.child,d.memoizedState=Qc(a),d.childLanes=Wc(e,y,a),i.memoizedState=Zc,o):(Zn(i),Jc(i,w))}if(E=e.memoizedState,E!==null&&(w=E.dehydrated,w!==null)){if(p)i.flags&256?(Zn(i),i.flags&=-257,i=tu(e,i,a)):i.memoizedState!==null?(Qn(),i.child=e.child,i.flags|=128,i=null):(Qn(),d=o.fallback,w=i.mode,o=eu({mode:"visible",children:o.children},w),d=Gi(d,w,a,null),d.flags|=2,o.return=i,d.return=i,o.sibling=d,i.child=o,Li(i,e.child,null,a),o=i.child,o.memoizedState=Qc(a),o.childLanes=Wc(e,y,a),i.memoizedState=Zc,i=d);else if(Zn(i),w.data==="$!"){if(y=w.nextSibling&&w.nextSibling.dataset,y)var O=y.dgst;y=O,o=Error(r(419)),o.stack="",o.digest=y,Da({value:o,source:null,stack:null}),i=tu(e,i,a)}else if(it||$a(e,i,a,!1),y=(a&e.childLanes)!==0,it||y){if(y=Me,y!==null){if(o=a&-a,(o&42)!==0)o=1;else switch(o){case 2:o=1;break;case 8:o=4;break;case 32:o=16;break;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:o=64;break;case 268435456:o=134217728;break;default:o=0}if(o=(o&(y.suspendedLanes|a))!==0?0:o,o!==0&&o!==E.retryLane)throw E.retryLane=o,Kn(e,o),wt(y,e,o),cp}w.data==="$?"||Cu(),i=tu(e,i,a)}else w.data==="$?"?(i.flags|=128,i.child=e.child,i=xw.bind(null,e),w._reactRetry=i,i=null):(e=E.treeContext,ut=nn(w.nextSibling),xt=i,Ae=!0,en=null,cn=!1,e!==null&&(qt[$t++]=Tn,qt[$t++]=En,qt[$t++]=Di,Tn=e.id,En=e.overflow,Di=i),i=Jc(i,o.children),i.flags|=4096);return i}return d?(Qn(),d=o.fallback,w=i.mode,E=e.child,O=E.sibling,o=li(E,{mode:"hidden",children:o.children}),o.subtreeFlags=E.subtreeFlags&31457280,O!==null?d=li(O,d):(d=Gi(d,w,a,null),d.flags|=2),d.return=i,o.return=i,o.sibling=d,i.child=o,o=d,d=i.child,w=e.child.memoizedState,w===null?w=Qc(a):(E=w.cachePool,E!==null?(O=tt._currentValue,E=E.parent!==O?{parent:O,pool:O}:E):E=bm(),w={baseLanes:w.baseLanes|a,cachePool:E}),d.memoizedState=w,d.childLanes=Wc(e,y,a),i.memoizedState=Zc,o):(Zn(i),a=e.child,e=a.sibling,a=li(a,{mode:"visible",children:o.children}),a.return=i,a.sibling=null,e!==null&&(y=i.deletions,y===null?(i.deletions=[e],i.flags|=16):y.push(e)),i.child=a,i.memoizedState=null,a)}function Jc(e,i){return i=eu({mode:"visible",children:i},e.mode),i.return=e,e.child=i}function eu(e,i){return Gp(e,i,0,null)}function tu(e,i,a){return Li(i,e.child,null,a),e=Jc(i,i.pendingProps.children),e.flags|=2,i.memoizedState=null,e}function bp(e,i,a){e.lanes|=i;var o=e.alternate;o!==null&&(o.lanes|=i),au(e.return,i,a)}function nu(e,i,a,o,d){var p=e.memoizedState;p===null?e.memoizedState={isBackwards:i,rendering:null,renderingStartTime:0,last:o,tail:a,tailMode:d}:(p.isBackwards=i,p.rendering=null,p.renderingStartTime=0,p.last=o,p.tail=a,p.tailMode=d)}function xp(e,i,a){var o=i.pendingProps,d=o.revealOrder,p=o.tail;if(dt(e,i,o.children,a),o=et.current,(o&2)!==0)o=o&1|2,i.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=i.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&bp(e,a,i);else if(e.tag===19)bp(e,a,i);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===i)break e;for(;e.sibling===null;){if(e.return===null||e.return===i)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}o&=1}switch(Pe(et,o),d){case"forwards":for(a=i.child,d=null;a!==null;)e=a.alternate,e!==null&&_l(e)===null&&(d=a),a=a.sibling;a=d,a===null?(d=i.child,i.child=null):(d=a.sibling,a.sibling=null),nu(i,!1,d,a,p);break;case"backwards":for(a=null,d=i.child,i.child=null;d!==null;){if(e=d.alternate,e!==null&&_l(e)===null){i.child=d;break}e=d.sibling,d.sibling=a,a=d,d=e}nu(i,!0,a,null,p);break;case"together":nu(i,!1,null,null,void 0);break;default:i.memoizedState=null}return i.child}function Rn(e,i,a){if(e!==null&&(i.dependencies=e.dependencies),oi|=i.lanes,(a&i.childLanes)===0)if(e!==null){if($a(e,i,a,!1),(a&i.childLanes)===0)return null}else return null;if(e!==null&&i.child!==e.child)throw Error(r(153));if(i.child!==null){for(e=i.child,a=li(e,e.pendingProps),i.child=a,a.return=i;e.sibling!==null;)e=e.sibling,a=a.sibling=li(e,e.pendingProps),a.return=i;a.sibling=null}return i.child}function iu(e,i){return(e.lanes&i)!==0?!0:(e=e.dependencies,!!(e!==null&&Ll(e)))}function rw(e,i,a){switch(i.tag){case 3:Qr(i,i.stateNode.containerInfo),ei(i,tt,e.memoizedState.cache),Oa();break;case 27:case 5:Fo(i);break;case 4:Qr(i,i.stateNode.containerInfo);break;case 10:ei(i,i.type,i.memoizedProps.value);break;case 13:var o=i.memoizedState;if(o!==null)return o.dehydrated!==null?(Zn(i),i.flags|=128,null):(a&i.child.childLanes)!==0?yp(e,i,a):(Zn(i),e=Rn(e,i,a),e!==null?e.sibling:null);Zn(i);break;case 19:var d=(e.flags&128)!==0;if(o=(a&i.childLanes)!==0,o||($a(e,i,a,!1),o=(a&i.childLanes)!==0),d){if(o)return xp(e,i,a);i.flags|=128}if(d=i.memoizedState,d!==null&&(d.rendering=null,d.tail=null,d.lastEffect=null),Pe(et,et.current),o)break;return null;case 22:case 23:return i.lanes=0,hp(e,i,a);case 24:ei(i,tt,e.memoizedState.cache)}return Rn(e,i,a)}function wp(e,i,a){if(e!==null)if(e.memoizedProps!==i.pendingProps)it=!0;else{if(!iu(e,a)&&(i.flags&128)===0)return it=!1,rw(e,i,a);it=(e.flags&131072)!==0}else it=!1,Ae&&(i.flags&1048576)!==0&&am(i,yl,i.index);switch(i.lanes=0,i.tag){case 16:e:{e=i.pendingProps;var o=i.elementType,d=o._init;if(o=d(o._payload),i.type=o,typeof o=="function")vu(o)?(e=Bi(o,e),i.tag=1,i=gp(null,i,o,e,a)):(i.tag=0,i=Kc(null,i,o,e,a));else{if(o!=null){if(d=o.$$typeof,d===T){i.tag=11,i=up(null,i,o,e,a);break e}else if(d===A){i.tag=14,i=dp(null,i,o,e,a);break e}}throw i=K(o)||o,Error(r(306,i,""))}}return i;case 0:return Kc(e,i,i.type,i.pendingProps,a);case 1:return o=i.type,d=Bi(o,i.pendingProps),gp(e,i,o,d,a);case 3:e:{if(Qr(i,i.stateNode.containerInfo),e===null)throw Error(r(387));var p=i.pendingProps;
vendor: 4,354 bytes, line 48
48d=i.memoizedState,o=d.element,ou(e,i),Xa(i,p,null,a);var y=i.memoizedState;if(p=y.cache,ei(i,tt,p),p!==d.cache&&ru(i,[tt],a,!0),Ya(),p=y.element,d.isDehydrated)if(d={element:p,isDehydrated:!1,cache:y.cache},i.updateQueue.baseState=d,i.memoizedState=d,i.flags&256){i=vp(e,i,p,a);break e}else if(p!==o){o=Ht(Error(r(424)),i),Da(o),i=vp(e,i,p,a);break e}else for(ut=nn(i.stateNode.containerInfo.firstChild),xt=i,Ae=!0,en=null,cn=!0,a=mm(i,null,p,a),i.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling;else{if(Oa(),p===o){i=Rn(e,i,a);break e}dt(e,i,p,a)}i=i.child}return i;case 26:return qa(e,i),e===null?(a=T0(i.type,null,i.pendingProps,null))?i.memoizedState=a:Ae||(a=i.type,e=i.pendingProps,o=Ql(Yn.current).createElement(a),o[mt]=i,o[Tt]=e,ft(o,a,e),nt(o),i.stateNode=o):i.memoizedState=T0(i.type,e.memoizedProps,i.pendingProps,e.memoizedState),null;case 27:return Fo(i),e===null&&Ae&&(o=i.stateNode=w0(i.type,i.pendingProps,Yn.current),xt=i,cn=!0,ut=nn(o.firstChild)),o=i.pendingProps.children,e!==null||Ae?dt(e,i,o,a):i.child=Li(i,null,o,a),qa(e,i),i.child;case 5:return e===null&&Ae&&((d=o=ut)&&(o=Pw(o,i.type,i.pendingProps,cn),o!==null?(i.stateNode=o,xt=i,ut=nn(o.firstChild),cn=!1,d=!0):d=!1),d||ki(i)),Fo(i),d=i.type,p=i.pendingProps,y=e!==null?e.memoizedProps:null,o=p.children,$u(d,p)?o=null:y!==null&&$u(d,y)&&(i.flags|=32),i.memoizedState!==null&&(d=Oc(e,i,Jx,null,null,a),lr._currentValue=d),qa(e,i),dt(e,i,o,a),i.child;case 6:return e===null&&Ae&&((e=a=ut)&&(a=Uw(a,i.pendingProps,cn),a!==null?(i.stateNode=a,xt=i,ut=null,e=!0):e=!1),e||ki(i)),null;case 13:return yp(e,i,a);case 4:return Qr(i,i.stateNode.containerInfo),o=i.pendingProps,e===null?i.child=Li(i,null,o,a):dt(e,i,o,a),i.child;case 11:return up(e,i,i.type,i.pendingProps,a);case 7:return dt(e,i,i.pendingProps,a),i.child;case 8:return dt(e,i,i.pendingProps.children,a),i.child;case 12:return dt(e,i,i.pendingProps.children,a),i.child;case 10:return o=i.pendingProps,ei(i,i.type,o.value),dt(e,i,o.children,a),i.child;case 9:return d=i.type._context,o=i.pendingProps.children,qi(i),d=pt(d),o=o(d),i.flags|=1,dt(e,i,o,a),i.child;case 14:return dp(e,i,i.type,i.pendingProps,a);case 15:return fp(e,i,i.type,i.pendingProps,a);case 19:return xp(e,i,a);case 22:return hp(e,i,a);case 24:return qi(i),o=pt(tt),e===null?(d=Cc(),d===null&&(d=Me,p=Ac(),d.pooledCache=p,p.refCount++,p!==null&&(d.pooledCacheLanes|=a),d=p),i.memoizedState={parent:o,cache:d},lu(i),ei(i,tt,d)):((e.lanes&a)!==0&&(ou(e,i),Xa(i,null,null,a),Ya()),d=e.memoizedState,p=i.memoizedState,d.parent!==o?(d={parent:o,cache:o},i.memoizedState=d,i.lanes===0&&(i.memoizedState=i.updateQueue.baseState=d),ei(i,tt,o)):(o=p.cache,ei(i,tt,o),o!==d.cache&&ru(i,[tt],a,!0))),dt(e,i,i.pendingProps.children,a),i.child;case 29:throw i.pendingProps}throw Error(r(156,i.tag))}var su=Ee(null),Hi=null,Cn=null;function ei(e,i,a){Pe(su,i._currentValue),i._currentValue=a}function Nn(e){e._currentValue=su.current,Ie(su)}function au(e,i,a){for(;e!==null;){var o=e.alternate;if((e.childLanes&i)!==i?(e.childLanes|=i,o!==null&&(o.childLanes|=i)):o!==null&&(o.childLanes&i)!==i&&(o.childLanes|=i),e===a)break;e=e.return}}function ru(e,i,a,o){var d=e.child;for(d!==null&&(d.return=e);d!==null;){var p=d.dependencies;if(p!==null){var y=d.child;p=p.firstContext;e:for(;p!==null;){var w=p;p=d;for(var E=0;E<i.length;E++)if(w.context===i[E]){p.lanes|=a,w=p.alternate,w!==null&&(w.lanes|=a),au(p.return,a,e),o||(y=null);break e}p=w.next}}else if(d.tag===18){if(y=d.return,y===null)throw Error(r(341));y.lanes|=a,p=y.alternate,p!==null&&(p.lanes|=a),au(y,a,e),y=null}else y=d.child;if(y!==null)y.return=d;else for(y=d;y!==null;){if(y===e){y=null;break}if(d=y.sibling,d!==null){d.return=y.return,y=d;break}y=y.return}d=y}}function $a(e,i,a,o){e=null;for(var d=i,p=!1;d!==null;){if(!p){if((d.flags&524288)!==0)p=!0;else if((d.flags&262144)!==0)break}if(d.tag===10){var y=d.alternate;if(y===null)throw Error(r(387));if(y=y.memoizedProps,y!==null){var w=d.type;Nt(d.pendingProps.value,y.value)||(e!==null?e.push(w):e=[w])}}else if(d===Zr.current){if(y=d.alternate,y===null)throw Error(r(387));y.memoizedState.memoizedState!==d.memoizedState.memoizedState&&(e!==null?e.push(lr):e=[lr])}d=d.return}e!==null&&ru(i,e,a,o),i.flags|=262144}function Ll(e){for(e=e.firstContext;e!==null;){if(!Nt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}
vendor: 5,775 bytes, line 48
48function qi(e){Hi=e,Cn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function pt(e){return Sp(Hi,e)}function Pl(e,i){return Hi===null&&qi(e),Sp(e,i)}function Sp(e,i){var a=i._currentValue;if(i={context:i,memoizedValue:a,next:null},Cn===null){if(e===null)throw Error(r(308));Cn=i,e.dependencies={lanes:0,firstContext:i},e.flags|=524288}else Cn=Cn.next=i;return a}var ti=!1;function lu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function ou(e,i){e=e.updateQueue,i.updateQueue===e&&(i.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function ni(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function ii(e,i,a){var o=e.updateQueue;if(o===null)return null;if(o=o.shared,(Ve&2)!==0){var d=o.pending;return d===null?i.next=i:(i.next=d.next,d.next=i),o.pending=i,i=gl(e),im(e,null,a),i}return pl(e,o,i,a),gl(e)}function Ga(e,i,a){if(i=i.updateQueue,i!==null&&(i=i.shared,(a&4194176)!==0)){var o=i.lanes;o&=e.pendingLanes,a|=o,i.lanes=a,dh(e,a)}}function cu(e,i){var a=e.updateQueue,o=e.alternate;if(o!==null&&(o=o.updateQueue,a===o)){var d=null,p=null;if(a=a.firstBaseUpdate,a!==null){do{var y={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};p===null?d=p=y:p=p.next=y,a=a.next}while(a!==null);p===null?d=p=i:p=p.next=i}else d=p=i;a={baseState:o.baseState,firstBaseUpdate:d,lastBaseUpdate:p,shared:o.shared,callbacks:o.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=i:e.next=i,a.lastBaseUpdate=i}var uu=!1;function Ya(){if(uu){var e=_s;if(e!==null)throw e}}function Xa(e,i,a,o){uu=!1;var d=e.updateQueue;ti=!1;var p=d.firstBaseUpdate,y=d.lastBaseUpdate,w=d.shared.pending;if(w!==null){d.shared.pending=null;var E=w,O=E.next;E.next=null,y===null?p=O:y.next=O,y=E;var q=e.alternate;q!==null&&(q=q.updateQueue,w=q.lastBaseUpdate,w!==y&&(w===null?q.firstBaseUpdate=O:w.next=O,q.lastBaseUpdate=E))}if(p!==null){var X=d.baseState;y=0,q=O=E=null,w=p;do{var V=w.lane&-536870913,H=V!==w.lane;if(H?(_e&V)===V:(o&V)===V){V!==0&&V===Ss&&(uu=!0),q!==null&&(q=q.next={lane:0,tag:w.tag,payload:w.payload,callback:null,next:null});e:{var se=e,he=w;V=i;var Ge=a;switch(he.tag){case 1:if(se=he.payload,typeof se=="function"){X=se.call(Ge,X,V);break e}X=se;break e;case 3:se.flags=se.flags&-65537|128;case 0:if(se=he.payload,V=typeof se=="function"?se.call(Ge,X,V):se,V==null)break e;X=W({},X,V);break e;case 2:ti=!0}}V=w.callback,V!==null&&(e.flags|=64,H&&(e.flags|=8192),H=d.callbacks,H===null?d.callbacks=[V]:H.push(V))}else H={lane:V,tag:w.tag,payload:w.payload,callback:w.callback,next:null},q===null?(O=q=H,E=X):q=q.next=H,y|=V;if(w=w.next,w===null){if(w=d.shared.pending,w===null)break;H=w,w=H.next,H.next=null,d.lastBaseUpdate=H,d.shared.pending=null}}while(!0);q===null&&(E=X),d.baseState=E,d.firstBaseUpdate=O,d.lastBaseUpdate=q,p===null&&(d.shared.lanes=0),oi|=y,e.lanes=y,e.memoizedState=X}}function _p(e,i){if(typeof e!="function")throw Error(r(191,e));e.call(i)}function Tp(e,i){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)_p(a[e],i)}function Fa(e,i){try{var a=i.updateQueue,o=a!==null?a.lastEffect:null;if(o!==null){var d=o.next;a=d;do{if((a.tag&e)===e){o=void 0;var p=a.create,y=a.inst;o=p(),y.destroy=o}a=a.next}while(a!==d)}}catch(w){De(i,i.return,w)}}function si(e,i,a){try{var o=i.updateQueue,d=o!==null?o.lastEffect:null;if(d!==null){var p=d.next;o=p;do{if((o.tag&e)===e){var y=o.inst,w=y.destroy;if(w!==void 0){y.destroy=void 0,d=i;var E=a;try{w()}catch(O){De(d,E,O)}}}o=o.next}while(o!==p)}}catch(O){De(i,i.return,O)}}function Ep(e){var i=e.updateQueue;if(i!==null){var a=e.stateNode;try{Tp(i,a)}catch(o){De(e,e.return,o)}}}function jp(e,i,a){a.props=Bi(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(o){De(e,i,o)}}function $i(e,i){try{var a=e.ref;if(a!==null){var o=e.stateNode;switch(e.tag){case 26:case 27:case 5:var d=o;break;default:d=o}typeof a=="function"?e.refCleanup=a(d):a.current=d}}catch(p){De(e,i,p)}}function Ot(e,i){var a=e.ref,o=e.refCleanup;if(a!==null)if(typeof o=="function")try{o()}catch(d){De(e,i,d)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(d){De(e,i,d)}else a.current=null}function Ap(e){var i=e.type,a=e.memoizedProps,o=e.stateNode;try{e:switch(i){case"button":case"input":case"select":case"textarea":a.autoFocus&&o.focus();break e;case"img":a.src?o.src=a.src:a.srcSet&&(o.srcset=a.srcSet)}}catch(d){De(e,e.return,d)}}function Rp(e,i,a){try{var o=e.stateNode;Ow(o,e.type,a,i),o[Tt]=i}catch(d){De(e,e.return,d)}}function Cp(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27||e.tag===4}function du(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Cp(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==27&&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 fu(e,i,a){var o=e.tag;if(o===5||o===6)e=e.stateNode,i?a.nodeType===8?a.parentNode.insertBefore(e,i):a.insertBefore(e,i):(a.nodeType===8?(i=a.parentNode,i.insertBefore(e,a)):(i=a,i.appendChild(e)),a=a._reactRootContainer,a!=null||i.onclick!==null||(i.onclick=Zl));else if(o!==4&&o!==27&&(e=e.child,e!==null))for(fu(e,i,a),e=e.sibling;e!==null;)fu(e,i,a),e=e.sibling}function Ul(e,i,a){var o=e.tag;if(o===5||o===6)e=e.stateNode,i?a.insertBefore(e,i):a.appendChild(e);else if(o!==4&&o!==27&&(e=e.child,e!==null))for(Ul(e,i,a),e=e.sibling;e!==null;)Ul(e,i,a),e=e.sibling}var On=!1,qe=!1,hu=!1,Np=typeof WeakSet=="function"?WeakSet:Set,st=null,Op=!1;
vendor: 15,668 bytes, line 48
48function lw(e,i){if(e=e.containerInfo,Hu=io,e=Ih(e),pc(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var o=a.getSelection&&a.getSelection();if(o&&o.rangeCount!==0){a=o.anchorNode;var d=o.anchorOffset,p=o.focusNode;o=o.focusOffset;try{a.nodeType,p.nodeType}catch{a=null;break e}var y=0,w=-1,E=-1,O=0,q=0,X=e,V=null;t:for(;;){for(var H;X!==a||d!==0&&X.nodeType!==3||(w=y+d),X!==p||o!==0&&X.nodeType!==3||(E=y+o),X.nodeType===3&&(y+=X.nodeValue.length),(H=X.firstChild)!==null;)V=X,X=H;for(;;){if(X===e)break t;if(V===a&&++O===d&&(w=y),V===p&&++q===o&&(E=y),(H=X.nextSibling)!==null)break;X=V,V=X.parentNode}X=H}a=w===-1||E===-1?null:{start:w,end:E}}else a=null}a=a||{start:0,end:0}}else a=null;for(qu={focusedElem:e,selectionRange:a},io=!1,st=i;st!==null;)if(i=st,e=i.child,(i.subtreeFlags&1028)!==0&&e!==null)e.return=i,st=e;else for(;st!==null;){switch(i=st,p=i.alternate,e=i.flags,i.tag){case 0:break;case 11:case 15:break;case 1:if((e&1024)!==0&&p!==null){e=void 0,a=i,d=p.memoizedProps,p=p.memoizedState,o=a.stateNode;try{var se=Bi(a.type,d,a.elementType===a.type);e=o.getSnapshotBeforeUpdate(se,p),o.__reactInternalSnapshotBeforeUpdate=e}catch(he){De(a,a.return,he)}}break;case 3:if((e&1024)!==0){if(e=i.stateNode.containerInfo,a=e.nodeType,a===9)Xu(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Xu(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(r(163))}if(e=i.sibling,e!==null){e.return=i.return,st=e;break}st=i.return}return se=Op,Op=!1,se}function Dp(e,i,a){var o=a.flags;switch(a.tag){case 0:case 11:case 15:Mn(e,a),o&4&&Fa(5,a);break;case 1:if(Mn(e,a),o&4)if(e=a.stateNode,i===null)try{e.componentDidMount()}catch(w){De(a,a.return,w)}else{var d=Bi(a.type,i.memoizedProps);i=i.memoizedState;try{e.componentDidUpdate(d,i,e.__reactInternalSnapshotBeforeUpdate)}catch(w){De(a,a.return,w)}}o&64&&Ep(a),o&512&&$i(a,a.return);break;case 3:if(Mn(e,a),o&64&&(o=a.updateQueue,o!==null)){if(e=null,a.child!==null)switch(a.child.tag){case 27:case 5:e=a.child.stateNode;break;case 1:e=a.child.stateNode}try{Tp(o,e)}catch(w){De(a,a.return,w)}}break;case 26:Mn(e,a),o&512&&$i(a,a.return);break;case 27:case 5:Mn(e,a),i===null&&o&4&&Ap(a),o&512&&$i(a,a.return);break;case 12:Mn(e,a);break;case 13:Mn(e,a),o&4&&Lp(e,a);break;case 22:if(d=a.memoizedState!==null||On,!d){i=i!==null&&i.memoizedState!==null||qe;var p=On,y=qe;On=d,(qe=i)&&!y?ai(e,a,(a.subtreeFlags&8772)!==0):Mn(e,a),On=p,qe=y}o&512&&(a.memoizedProps.mode==="manual"?$i(a,a.return):Ot(a,a.return));break;default:Mn(e,a)}}function Mp(e){var i=e.alternate;i!==null&&(e.alternate=null,Mp(i)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(i=e.stateNode,i!==null&&Jo(i)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Qe=null,Dt=!1;function Dn(e,i,a){for(a=a.child;a!==null;)kp(e,i,a),a=a.sibling}function kp(e,i,a){if(Rt&&typeof Rt.onCommitFiberUnmount=="function")try{Rt.onCommitFiberUnmount(ga,a)}catch{}switch(a.tag){case 26:qe||Ot(a,i),Dn(e,i,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:qe||Ot(a,i);var o=Qe,d=Dt;for(Qe=a.stateNode,Dn(e,i,a),a=a.stateNode,i=a.attributes;i.length;)a.removeAttributeNode(i[0]);Jo(a),Qe=o,Dt=d;break;case 5:qe||Ot(a,i);case 6:d=Qe;var p=Dt;if(Qe=null,Dn(e,i,a),Qe=d,Dt=p,Qe!==null)if(Dt)try{e=Qe,o=a.stateNode,e.nodeType===8?e.parentNode.removeChild(o):e.removeChild(o)}catch(y){De(a,i,y)}else try{Qe.removeChild(a.stateNode)}catch(y){De(a,i,y)}break;case 18:Qe!==null&&(Dt?(i=Qe,a=a.stateNode,i.nodeType===8?Yu(i.parentNode,a):i.nodeType===1&&Yu(i,a),dr(i)):Yu(Qe,a.stateNode));break;case 4:o=Qe,d=Dt,Qe=a.stateNode.containerInfo,Dt=!0,Dn(e,i,a),Qe=o,Dt=d;break;case 0:case 11:case 14:case 15:qe||si(2,a,i),qe||si(4,a,i),Dn(e,i,a);break;case 1:qe||(Ot(a,i),o=a.stateNode,typeof o.componentWillUnmount=="function"&&jp(a,i,o)),Dn(e,i,a);break;case 21:Dn(e,i,a);break;case 22:qe||Ot(a,i),qe=(o=qe)||a.memoizedState!==null,Dn(e,i,a),qe=o;break;default:Dn(e,i,a)}}function Lp(e,i){if(i.memoizedState===null&&(e=i.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{dr(e)}catch(a){De(i,i.return,a)}}function ow(e){switch(e.tag){case 13:case 19:var i=e.stateNode;return i===null&&(i=e.stateNode=new Np),i;case 22:return e=e.stateNode,i=e._retryCache,i===null&&(i=e._retryCache=new Np),i;default:throw Error(r(435,e.tag))}}function mu(e,i){var a=ow(e);i.forEach(function(o){var d=ww.bind(null,e,o);a.has(o)||(a.add(o),o.then(d,d))})}function Yt(e,i){var a=i.deletions;if(a!==null)for(var o=0;o<a.length;o++){var d=a[o],p=e,y=i,w=y;e:for(;w!==null;){switch(w.tag){case 27:case 5:Qe=w.stateNode,Dt=!1;break e;case 3:Qe=w.stateNode.containerInfo,Dt=!0;break e;case 4:Qe=w.stateNode.containerInfo,Dt=!0;break e}w=w.return}if(Qe===null)throw Error(r(160));kp(p,y,d),Qe=null,Dt=!1,p=d.alternate,p!==null&&(p.return=null),d.return=null}if(i.subtreeFlags&13878)for(i=i.child;i!==null;)Pp(i,e),i=i.sibling}var tn=null;function Pp(e,i){var a=e.alternate,o=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Yt(i,e),Xt(e),o&4&&(si(3,e,e.return),Fa(3,e),si(5,e,e.return));break;case 1:Yt(i,e),Xt(e),o&512&&(qe||a===null||Ot(a,a.return)),o&64&&On&&(e=e.updateQueue,e!==null&&(o=e.callbacks,o!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?o:a.concat(o))));break;case 26:var d=tn;if(Yt(i,e),Xt(e),o&512&&(qe||a===null||Ot(a,a.return)),o&4){var p=a!==null?a.memoizedState:null;if(o=e.memoizedState,a===null)if(o===null)if(e.stateNode===null){e:{o=e.type,a=e.memoizedProps,d=d.ownerDocument||d;t:switch(o){case"title":p=d.getElementsByTagName("title")[0],(!p||p[ba]||p[mt]||p.namespaceURI==="http://www.w3.org/2000/svg"||p.hasAttribute("itemprop"))&&(p=d.createElement(o),d.head.insertBefore(p,d.querySelector("head > title"))),ft(p,o,a),p[mt]=e,nt(p),o=p;break e;case"link":var y=A0("link","href",d).get(o+(a.href||""));if(y){for(var w=0;w<y.length;w++)if(p=y[w],p.getAttribute("href")===(a.href==null?null:a.href)&&p.getAttribute("rel")===(a.rel==null?null:a.rel)&&p.getAttribute("title")===(a.title==null?null:a.title)&&p.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){y.splice(w,1);break t}}p=d.createElement(o),ft(p,o,a),d.head.appendChild(p);break;case"meta":if(y=A0("meta","content",d).get(o+(a.content||""))){for(w=0;w<y.length;w++)if(p=y[w],p.getAttribute("content")===(a.content==null?null:""+a.content)&&p.getAttribute("name")===(a.name==null?null:a.name)&&p.getAttribute("property")===(a.property==null?null:a.property)&&p.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&p.getAttribute("charset")===(a.charSet==null?null:a.charSet)){y.splice(w,1);break t}}p=d.createElement(o),ft(p,o,a),d.head.appendChild(p);break;default:throw Error(r(468,o))}p[mt]=e,nt(p),o=p}e.stateNode=o}else R0(d,e.type,e.stateNode);else e.stateNode=j0(d,o,e.memoizedProps);else p!==o?(p===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):p.count--,o===null?R0(d,e.type,e.stateNode):j0(d,o,e.memoizedProps)):o===null&&e.stateNode!==null&&Rp(e,e.memoizedProps,a.memoizedProps)}break;case 27:if(o&4&&e.alternate===null){d=e.stateNode,p=e.memoizedProps;try{for(var E=d.firstChild;E;){var O=E.nextSibling,q=E.nodeName;E[ba]||q==="HEAD"||q==="BODY"||q==="SCRIPT"||q==="STYLE"||q==="LINK"&&E.rel.toLowerCase()==="stylesheet"||d.removeChild(E),E=O}for(var X=e.type,V=d.attributes;V.length;)d.removeAttributeNode(V[0]);ft(d,X,p),d[mt]=e,d[Tt]=p}catch(se){De(e,e.return,se)}}case 5:if(Yt(i,e),Xt(e),o&512&&(qe||a===null||Ot(a,a.return)),e.flags&32){d=e.stateNode;try{us(d,"")}catch(se){De(e,e.return,se)}}o&4&&e.stateNode!=null&&(d=e.memoizedProps,Rp(e,d,a!==null?a.memoizedProps:d)),o&1024&&(hu=!0);break;case 6:if(Yt(i,e),Xt(e),o&4){if(e.stateNode===null)throw Error(r(162));o=e.memoizedProps,a=e.stateNode;try{a.nodeValue=o}catch(se){De(e,e.return,se)}}break;case 3:if(eo=null,d=tn,tn=Wl(i.containerInfo),Yt(i,e),tn=d,Xt(e),o&4&&a!==null&&a.memoizedState.isDehydrated)try{dr(i.containerInfo)}catch(se){De(e,e.return,se)}hu&&(hu=!1,Up(e));break;case 4:o=tn,tn=Wl(e.stateNode.containerInfo),Yt(i,e),Xt(e),tn=o;break;case 12:Yt(i,e),Xt(e);break;case 13:Yt(i,e),Xt(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(_u=on()),o&4&&(o=e.updateQueue,o!==null&&(e.updateQueue=null,mu(e,o)));break;case 22:if(o&512&&(qe||a===null||Ot(a,a.return)),E=e.memoizedState!==null,O=a!==null&&a.memoizedState!==null,q=On,X=qe,On=q||E,qe=X||O,Yt(i,e),qe=X,On=q,Xt(e),i=e.stateNode,i._current=e,i._visibility&=-3,i._visibility|=i._pendingVisibility&2,o&8192&&(i._visibility=E?i._visibility&-2:i._visibility|1,E&&(i=On||qe,a===null||O||i||As(e)),e.memoizedProps===null||e.memoizedProps.mode!=="manual"))e:for(a=null,i=e;;){if(i.tag===5||i.tag===26||i.tag===27){if(a===null){O=a=i;try{if(d=O.stateNode,E)p=d.style,typeof p.setProperty=="function"?p.setProperty("display","none","important"):p.display="none";else{y=O.stateNode,w=O.memoizedProps.style;var H=w!=null&&w.hasOwnProperty("display")?w.display:null;y.style.display=H==null||typeof H=="boolean"?"":(""+H).trim()}}catch(se){De(O,O.return,se)}}}else if(i.tag===6){if(a===null){O=i;try{O.stateNode.nodeValue=E?"":O.memoizedProps}catch(se){De(O,O.return,se)}}}else if((i.tag!==22&&i.tag!==23||i.memoizedState===null||i===e)&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===e)break e;for(;i.sibling===null;){if(i.return===null||i.return===e)break e;a===i&&(a=null),i=i.return}a===i&&(a=null),i.sibling.return=i.return,i=i.sibling}o&4&&(o=e.updateQueue,o!==null&&(a=o.retryQueue,a!==null&&(o.retryQueue=null,mu(e,a))));break;case 19:Yt(i,e),Xt(e),o&4&&(o=e.updateQueue,o!==null&&(e.updateQueue=null,mu(e,o)));break;case 21:break;default:Yt(i,e),Xt(e)}}function Xt(e){var i=e.flags;if(i&2){try{if(e.tag!==27){e:{for(var a=e.return;a!==null;){if(Cp(a)){var o=a;break e}a=a.return}throw Error(r(160))}switch(o.tag){case 27:var d=o.stateNode,p=du(e);Ul(e,p,d);break;case 5:var y=o.stateNode;o.flags&32&&(us(y,""),o.flags&=-33);var w=du(e);Ul(e,w,y);break;case 3:case 4:var E=o.stateNode.containerInfo,O=du(e);fu(e,O,E);break;default:throw Error(r(161))}}}catch(q){De(e,e.return,q)}e.flags&=-3}i&4096&&(e.flags&=-4097)}function Up(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var i=e;Up(i),i.tag===5&&i.flags&1024&&i.stateNode.reset(),e=e.sibling}}function Mn(e,i){if(i.subtreeFlags&8772)for(i=i.child;i!==null;)Dp(e,i.alternate,i),i=i.sibling}function As(e){for(e=e.child;e!==null;){var i=e;switch(i.tag){case 0:case 11:case 14:case 15:si(4,i,i.return),As(i);break;case 1:Ot(i,i.return);var a=i.stateNode;typeof a.componentWillUnmount=="function"&&jp(i,i.return,a),As(i);break;case 26:case 27:case 5:Ot(i,i.return),As(i);break;case 22:Ot(i,i.return),i.memoizedState===null&&As(i);break;default:As(i)}e=e.sibling}}function ai(e,i,a){for(a=a&&(i.subtreeFlags&8772)!==0,i=i.child;i!==null;){var o=i.alternate,d=e,p=i,y=p.flags;switch(p.tag){case 0:case 11:case 15:ai(d,p,a),Fa(4,p);break;case 1:if(ai(d,p,a),o=p,d=o.stateNode,typeof d.componentDidMount=="function")try{d.componentDidMount()}catch(O){De(o,o.return,O)}if(o=p,d=o.updateQueue,d!==null){var w=o.stateNode;try{var E=d.shared.hiddenCallbacks;if(E!==null)for(d.shared.hiddenCallbacks=null,d=0;d<E.length;d++)_p(E[d],w)}catch(O){De(o,o.return,O)}}a&&y&64&&Ep(p),$i(p,p.return);break;case 26:case 27:case 5:ai(d,p,a),a&&o===null&&y&4&&Ap(p),$i(p,p.return);break;case 12:ai(d,p,a);break;case 13:ai(d,p,a),a&&y&4&&Lp(d,p);break;case 22:p.memoizedState===null&&ai(d,p,a),$i(p,p.return);break;default:ai(d,p,a)}i=i.sibling}}function pu(e,i){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(e=i.memoizedState.cachePool.pool),e!==a&&(e!=null&&e.refCount++,a!=null&&Ua(a))}function gu(e,i){e=null,i.alternate!==null&&(e=i.alternate.memoizedState.cache),i=i.memoizedState.cache,i!==e&&(i.refCount++,e!=null&&Ua(e))}function ri(e,i,a,o){if(i.subtreeFlags&10256)for(i=i.child;i!==null;)Vp(e,i,a,o),i=i.sibling}function Vp(e,i,a,o){var d=i.flags;switch(i.tag){case 0:case 11:case 15:ri(e,i,a,o),d&2048&&Fa(9,i);break;case 3:ri(e,i,a,o),d&2048&&(e=null,i.alternate!==null&&(e=i.alternate.memoizedState.cache),i=i.memoizedState.cache,i!==e&&(i.refCount++,e!=null&&Ua(e)));break;case 12:if(d&2048){ri(e,i,a,o),e=i.stateNode;try{var p=i.memoizedProps,y=p.id,w=p.onPostCommit;typeof w=="function"&&w(y,i.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(E){De(i,i.return,E)}}else ri(e,i,a,o);break;case 23:break;case 22:p=i.stateNode,i.memoizedState!==null?p._visibility&4?ri(e,i,a,o):Ia(e,i):p._visibility&4?ri(e,i,a,o):(p._visibility|=4,Rs(e,i,a,o,(i.subtreeFlags&10256)!==0)),d&2048&&pu(i.alternate,i);break;case 24:ri(e,i,a,o),d&2048&&gu(i.alternate,i);break;default:ri(e,i,a,o)}}function Rs(e,i,a,o,d){for(d=d&&(i.subtreeFlags&10256)!==0,i=i.child;i!==null;){var p=e,y=i,w=a,E=o,O=y.flags;switch(y.tag){case 0:case 11:case 15:Rs(p,y,w,E,d),Fa(8,y);break;case 23:break;case 22:var q=y.stateNode;y.memoizedState!==null?q._visibility&4?Rs(p,y,w,E,d):Ia(p,y):(q._visibility|=4,Rs(p,y,w,E,d)),d&&O&2048&&pu(y.alternate,y);break;case 24:Rs(p,y,w,E,d),d&&O&2048&&gu(y.alternate,y);break;default:Rs(p,y,w,E,d)}i=i.sibling}}function Ia(e,i){if(i.subtreeFlags&10256)for(i=i.child;i!==null;){var a=e,o=i,d=o.flags;switch(o.tag){case 22:Ia(a,o),d&2048&&pu(o.alternate,o);break;case 24:Ia(a,o),d&2048&&gu(o.alternate,o);break;default:Ia(a,o)}i=i.sibling}}var Ka=8192;function Cs(e){if(e.subtreeFlags&Ka)for(e=e.child;e!==null;)zp(e),e=e.sibling}function zp(e){switch(e.tag){case 26:Cs(e),e.flags&Ka&&e.memoizedState!==null&&Zw(tn,e.memoizedState,e.memoizedProps);break;case 5:Cs(e);break;case 3:case 4:var i=tn;tn=Wl(e.stateNode.containerInfo),Cs(e),tn=i;break;case 22:e.memoizedState===null&&(i=e.alternate,i!==null&&i.memoizedState!==null?(i=Ka,Ka=16777216,Cs(e),Ka=i):Cs(e));break;default:Cs(e)}}function Bp(e){var i=e.alternate;if(i!==null&&(e=i.child,e!==null)){i.child=null;do i=e.sibling,e.sibling=null,e=i;while(e!==null)}}function Za(e){var i=e.deletions;if((e.flags&16)!==0){if(i!==null)for(var a=0;a<i.length;a++){var o=i[a];st=o,qp(o,e)}Bp(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Hp(e),e=e.sibling}function Hp(e){switch(e.tag){case 0:case 11:case 15:Za(e),e.flags&2048&&si(9,e,e.return);break;case 3:Za(e);break;case 12:Za(e);break;case 22:var i=e.stateNode;e.memoizedState!==null&&i._visibility&4&&(e.return===null||e.return.tag!==13)?(i._visibility&=-5,Vl(e)):Za(e);break;default:Za(e)}}function Vl(e){var i=e.deletions;if((e.flags&16)!==0){if(i!==null)for(var a=0;a<i.length;a++){var o=i[a];st=o,qp(o,e)}Bp(e)}for(e=e.child;e!==null;){switch(i=e,i.tag){case 0:case 11:case 15:si(8,i,i.return),Vl(i);break;case 22:a=i.stateNode,a._visibility&4&&(a._visibility&=-5,Vl(i));break;default:Vl(i)}e=e.sibling}}function qp(e,i){for(;st!==null;){var a=st;switch(a.tag){case 0:case 11:case 15:si(8,a,i);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var o=a.memoizedState.cachePool.pool;o!=null&&o.refCount++}break;case 24:Ua(a.memoizedState.cache)}if(o=a.child,o!==null)o.return=a,st=o;else e:for(a=e;st!==null;){o=st;var d=o.sibling,p=o.return;if(Mp(o),o===a){st=null;break e}if(d!==null){d.return=p,st=d;break e}st=p}}}function cw(e,i,a,o){this.tag=e,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.t
48ype=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=i,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=o,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ft(e,i,a,o){return new cw(e,i,a,o)}function vu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function li(e,i){var a=e.alternate;return a===null?(a=Ft(e.tag,i,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=i,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&31457280,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,i=e.dependencies,a.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function $p(e,i){e.flags&=31457282;var a=e.alternate;return a===null?(e.childLanes=0,e.lanes=i,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,i=a.dependencies,e.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext}),e}function zl(e,i,a,o,d,p){var y=0;if(o=e,typeof e=="function")vu(e)&&(y=1);else if(typeof e=="string")y=Iw(e,a,ln.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case m:return Gi(a.children,d,p,i);case g:y=8,d|=24;break;case v:return e=Ft(12,a,i,d|2),e.elementType=v,e.lanes=p,e;case C:return e=Ft(13,a,i,d),e.elementType=C,e.lanes=p,e;case j:return e=Ft(19,a,i,d),e.elementType=j,e.lanes=p,e;case D:return Gp(a,d,p,i);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case b:case S:y=10;break e;case x:y=9;break e;case T:y=11;break e;case A:y=14;break e;case M:y=16,o=null;break e}y=29,a=Error(r(130,e===null?"null":typeof e,"")),o=null}return i=Ft(y,a,i,d),i.elementType=e,i.type=o,i.lanes=p,i}function Gi(e,i,a,o){return e=Ft(7,e,o,i),e.lanes=a,e}function Gp(e,i,a,o){e=Ft(22,e,o,i),e.elementType=D,e.lanes=a;var d={_visibility:1,_pendingVisibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null,_current:null,detach:function(){var p=d._current;if(p===null)throw Error(r(456));if((d._pendingVisibility&2)===0){var y=Kn(p,2);y!==null&&(d._pendingVisibility|=2,wt(y,p,2))}},attach:function(){var p=d._current;if(p===null)throw Error(r(456));if((d._pendingVisibility&2)!==0){var y=Kn(p,2);y!==null&&(d._pendingVisibility&=-3,wt(y,p,2))}}};return e.stateNode=d,e}function yu(e,i,a){return e=Ft(6,e,null,i),e.lanes=a,e}function bu(e,i,a){return i=Ft(4,e.children!==null?e.children:[],e.key,i),i.lanes=a,i.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},i}function kn(e){e.flags|=4}function Yp(e,i){if(i.type!=="stylesheet"||(i.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!C0(i)){if(i=Gt.current,i!==null&&((_e&4194176)===_e?un!==null:(_e&62914560)!==_e&&(_e&536870912)===0||i!==un))throw ka=Tc,om;e.flags|=8192}}function Bl(e,i){i!==null&&(e.flags|=4),e.flags&16384&&(i=e.tag!==22?ch():
vendor: 12,401 bytes, line 48
48536870912,e.lanes|=i,Os|=i)}function Qa(e,i){if(!Ae)switch(e.tailMode){case"hidden":i=e.tail;for(var a=null;i!==null;)i.alternate!==null&&(a=i),i=i.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var o=null;a!==null;)a.alternate!==null&&(o=a),a=a.sibling;o===null?i||e.tail===null?e.tail=null:e.tail.sibling=null:o.sibling=null}}function Ue(e){var i=e.alternate!==null&&e.alternate.child===e.child,a=0,o=0;if(i)for(var d=e.child;d!==null;)a|=d.lanes|d.childLanes,o|=d.subtreeFlags&31457280,o|=d.flags&31457280,d.return=e,d=d.sibling;else for(d=e.child;d!==null;)a|=d.lanes|d.childLanes,o|=d.subtreeFlags,o|=d.flags,d.return=e,d=d.sibling;return e.subtreeFlags|=o,e.childLanes=a,i}function uw(e,i,a){var o=i.pendingProps;switch(Sc(i),i.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ue(i),null;case 1:return Ue(i),null;case 3:return a=i.stateNode,o=null,e!==null&&(o=e.memoizedState.cache),i.memoizedState.cache!==o&&(i.flags|=2048),Nn(tt),ss(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(Na(i)?kn(i):e===null||e.memoizedState.isDehydrated&&(i.flags&256)===0||(i.flags|=1024,en!==null&&(Au(en),en=null))),Ue(i),null;case 26:return a=i.memoizedState,e===null?(kn(i),a!==null?(Ue(i),Yp(i,a)):(Ue(i),i.flags&=-16777217)):a?a!==e.memoizedState?(kn(i),Ue(i),Yp(i,a)):(Ue(i),i.flags&=-16777217):(e.memoizedProps!==o&&kn(i),Ue(i),i.flags&=-16777217),null;case 27:Wr(i),a=Yn.current;var d=i.type;if(e!==null&&i.stateNode!=null)e.memoizedProps!==o&&kn(i);else{if(!o){if(i.stateNode===null)throw Error(r(166));return Ue(i),null}e=ln.current,Na(i)?rm(i):(e=w0(d,o,a),i.stateNode=e,kn(i))}return Ue(i),null;case 5:if(Wr(i),a=i.type,e!==null&&i.stateNode!=null)e.memoizedProps!==o&&kn(i);else{if(!o){if(i.stateNode===null)throw Error(r(166));return Ue(i),null}if(e=ln.current,Na(i))rm(i);else{switch(d=Ql(Yn.current),e){case 1:e=d.createElementNS("http://www.w3.org/2000/svg",a);break;case 2:e=d.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;default:switch(a){case"svg":e=d.createElementNS("http://www.w3.org/2000/svg",a);break;case"math":e=d.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;case"script":e=d.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild);break;case"select":e=typeof o.is=="string"?d.createElement("select",{is:o.is}):d.createElement("select"),o.multiple?e.multiple=!0:o.size&&(e.size=o.size);break;default:e=typeof o.is=="string"?d.createElement(a,{is:o.is}):d.createElement(a)}}e[mt]=i,e[Tt]=o;e:for(d=i.child;d!==null;){if(d.tag===5||d.tag===6)e.appendChild(d.stateNode);else if(d.tag!==4&&d.tag!==27&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===i)break e;for(;d.sibling===null;){if(d.return===null||d.return===i)break e;d=d.return}d.sibling.return=d.return,d=d.sibling}i.stateNode=e;e:switch(ft(e,a,o),a){case"button":case"input":case"select":case"textarea":e=!!o.autoFocus;break e;case"img":e=!0;break e;default:e=!1}e&&kn(i)}}return Ue(i),i.flags&=-16777217,null;case 6:if(e&&i.stateNode!=null)e.memoizedProps!==o&&kn(i);else{if(typeof o!="string"&&i.stateNode===null)throw Error(r(166));if(e=Yn.current,Na(i)){if(e=i.stateNode,a=i.memoizedProps,o=null,d=xt,d!==null)switch(d.tag){case 27:case 5:o=d.memoizedProps}e[mt]=i,e=!!(e.nodeValue===a||o!==null&&o.suppressHydrationWarning===!0||p0(e.nodeValue,a)),e||ki(i)}else e=Ql(e).createTextNode(o),e[mt]=i,i.stateNode=e}return Ue(i),null;case 13:if(o=i.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(d=Na(i),o!==null&&o.dehydrated!==null){if(e===null){if(!d)throw Error(r(318));if(d=i.memoizedState,d=d!==null?d.dehydrated:null,!d)throw Error(r(317));d[mt]=i}else Oa(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;Ue(i),d=!1}else en!==null&&(Au(en),en=null),d=!0;if(!d)return i.flags&256?(jn(i),i):(jn(i),null)}if(jn(i),(i.flags&128)!==0)return i.lanes=a,i;if(a=o!==null,e=e!==null&&e.memoizedState!==null,a){o=i.child,d=null,o.alternate!==null&&o.alternate.memoizedState!==null&&o.alternate.memoizedState.cachePool!==null&&(d=o.alternate.memoizedState.cachePool.pool);var p=null;o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(p=o.memoizedState.cachePool.pool),p!==d&&(o.flags|=2048)}return a!==e&&a&&(i.child.flags|=8192),Bl(i,i.updateQueue),Ue(i),null;case 4:return ss(),e===null&&Vu(i.stateNode.containerInfo),Ue(i),null;case 10:return Nn(i.type),Ue(i),null;case 19:if(Ie(et),d=i.memoizedState,d===null)return Ue(i),null;if(o=(i.flags&128)!==0,p=d.rendering,p===null)if(o)Qa(d,!1);else{if($e!==0||e!==null&&(e.flags&128)!==0)for(e=i.child;e!==null;){if(p=_l(e),p!==null){for(i.flags|=128,Qa(d,!1),e=p.updateQueue,i.updateQueue=e,Bl(i,e),i.subtreeFlags=0,e=a,a=i.child;a!==null;)$p(a,e),a=a.sibling;return Pe(et,et.current&1|2),i.child}e=e.sibling}d.tail!==null&&on()>Hl&&(i.flags|=128,o=!0,Qa(d,!1),i.lanes=4194304)}else{if(!o)if(e=_l(p),e!==null){if(i.flags|=128,o=!0,e=e.updateQueue,i.updateQueue=e,Bl(i,e),Qa(d,!0),d.tail===null&&d.tailMode==="hidden"&&!p.alternate&&!Ae)return Ue(i),null}else 2*on()-d.renderingStartTime>Hl&&a!==536870912&&(i.flags|=128,o=!0,Qa(d,!1),i.lanes=4194304);d.isBackwards?(p.sibling=i.child,i.child=p):(e=d.last,e!==null?e.sibling=p:i.child=p,d.last=p)}return d.tail!==null?(i=d.tail,d.rendering=i,d.tail=i.sibling,d.renderingStartTime=on(),i.sibling=null,e=et.current,Pe(et,o?e&1|2:e&1),i):(Ue(i),null);case 22:case 23:return jn(i),jc(),o=i.memoizedState!==null,e!==null?e.memoizedState!==null!==o&&(i.flags|=8192):o&&(i.flags|=8192),o?(a&536870912)!==0&&(i.flags&128)===0&&(Ue(i),i.subtreeFlags&6&&(i.flags|=8192)):Ue(i),a=i.updateQueue,a!==null&&Bl(i,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),o=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(o=i.memoizedState.cachePool.pool),o!==a&&(i.flags|=2048),e!==null&&Ie(Pi),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),i.memoizedState.cache!==a&&(i.flags|=2048),Nn(tt),Ue(i),null;case 25:return null}throw Error(r(156,i.tag))}function dw(e,i){switch(Sc(i),i.tag){case 1:return e=i.flags,e&65536?(i.flags=e&-65537|128,i):null;case 3:return Nn(tt),ss(),e=i.flags,(e&65536)!==0&&(e&128)===0?(i.flags=e&-65537|128,i):null;case 26:case 27:case 5:return Wr(i),null;case 13:if(jn(i),e=i.memoizedState,e!==null&&e.dehydrated!==null){if(i.alternate===null)throw Error(r(340));Oa()}return e=i.flags,e&65536?(i.flags=e&-65537|128,i):null;case 19:return Ie(et),null;case 4:return ss(),null;case 10:return Nn(i.type),null;case 22:case 23:return jn(i),jc(),e!==null&&Ie(Pi),e=i.flags,e&65536?(i.flags=e&-65537|128,i):null;case 24:return Nn(tt),null;case 25:return null;default:return null}}function Xp(e,i){switch(Sc(i),i.tag){case 3:Nn(tt),ss();break;case 26:case 27:case 5:Wr(i);break;case 4:ss();break;case 13:jn(i);break;case 19:Ie(et);break;case 10:Nn(i.type);break;case 22:case 23:jn(i),jc(),e!==null&&Ie(Pi);break;case 24:Nn(tt)}}var fw={getCacheForType:function(e){var i=pt(tt),a=i.data.get(e);return a===void 0&&(a=e(),i.data.set(e,a)),a}},hw=typeof WeakMap=="function"?WeakMap:Map,Ve=0,Me=null,be=null,_e=0,ke=0,Mt=null,Ln=!1,Ns=!1,xu=!1,Pn=0,$e=0,oi=0,Yi=0,wu=0,It=0,Os=0,Wa=null,fn=null,Su=!1,_u=0,Hl=1/0,ql=null,ci=null,$l=!1,Xi=null,Ja=0,Tu=0,Eu=null,er=0,ju=null;function kt(){if((Ve&2)!==0&&_e!==0)return _e&-_e;if($.T!==null){var e=Ss;return e!==0?e:ku()}return hh()}function Fp(){It===0&&(It=(_e&536870912)===0||Ae?oh():536870912);var e=Gt.current;return e!==null&&(e.flags|=32),It}function wt(e,i,a){(e===Me&&ke===2||e.cancelPendingCommit!==null)&&(Ds(e,0),Un(e,_e,It,!1)),ya(e,a),((Ve&2)===0||e!==Me)&&(e===Me&&((Ve&2)===0&&(Yi|=a),$e===4&&Un(e,_e,It,!1)),hn(e))}function Ip(e,i,a){if((Ve&6)!==0)throw Error(r(327));var o=!a&&(i&60)===0&&(i&e.expiredLanes)===0||va(e,i),d=o?gw(e,i):Nu(e,i,!0),p=o;do{if(d===0){Ns&&!o&&Un(e,i,0,!1);break}else if(d===6)Un(e,i,0,!Ln);else{if(a=e.current.alternate,p&&!mw(a)){d=Nu(e,i,!1),p=!1;continue}if(d===2){if(p=i,e.errorRecoveryDisabledLanes&p)var y=0;else y=e.pendingLanes&-536870913,y=y!==0?y:y&536870912?536870912:0;if(y!==0){i=y;e:{var w=e;d=Wa;var E=w.current.memoizedState.isDehydrated;if(E&&(Ds(w,y).flags|=256),y=Nu(w,y,!1),y!==2){if(xu&&!E){w.errorRecoveryDisabledLanes|=p,Yi|=p,d=4;break e}p=fn,fn=d,p!==null&&Au(p)}d=y}if(p=!1,d!==2)continue}}if(d===1){Ds(e,0),Un(e,i,0,!0);break}e:{switch(o=e,d){case 0:case 1:throw Error(r(345));case 4:if((i&4194176)===i){Un(o,i,It,!Ln);break e}break;case 2:fn=null;break;case 3:case 5:break;default:throw Error(r(329))}if(o.finishedWork=a,o.finishedLanes=i,(i&62914560)===i&&(p=_u+300-on(),10<p)){if(Un(o,i,It,!Ln),nl(o,0)!==0)break e;o.timeoutHandle=y0(Kp.bind(null,o,a,fn,ql,Su,i,It,Yi,Os,Ln,2,-0,0),p);break e}Kp(o,a,fn,ql,Su,i,It,Yi,Os,Ln,0,-0,0)}}break}while(!0);hn(e)}function Au(e){fn===null?fn=e:fn.push.apply(fn,e)}function Kp(e,i,a,o,d,p,y,w,E,O,q,X,V){var H=i.subtreeFlags;if((H&8192||(H&16785408)===16785408)&&(rr={stylesheets:null,count:0,unsuspend:Kw},zp(i),i=Qw(),i!==null)){e.cancelPendingCommit=i(n0.bind(null,e,a,o,d,y,w,E,1,X,V)),Un(e,p,y,!O);return}n0(e,a,o,d,y,w,E,q,X,V)}function mw(e){for(var i=e;;){var a=i.tag;if((a===0||a===11||a===15)&&i.flags&16384&&(a=i.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var o=0;o<a.length;o++){var d=a[o],p=d.getSnapshot;d=d.value;try{if(!Nt(p(),d))return!1}catch{return!1}}if(a=i.child,i.subtreeFlags&16384&&a!==null)a.return=i,i=a;else{if(i===e)break;for(;i.sibling===null;){if(i.return===null||i.return===e)return!0;i=i.return}i.sibling.return=i.return,i=i.sibling}}return!0}function Un(e,i,a,o){i&=~wu,i&=~Yi,e.suspendedLanes|=i,e.pingedLanes&=~i,o&&(e.warmLanes|=i),o=e.expirationTimes;for(var d=i;0<d;){var p=31-Ct(d),y=1<<p;o[p]=-1,d&=~y}a!==0&&uh(e,a,i)}function Gl(){return(Ve&6)===0?(tr(0),!1):!0}function Ru(){if(be!==null){if(ke===0)var e=be.return;else e=be,Cn=Hi=null,kc(e),xs=null,La=0,e=be;for(;e!==null;)Xp(e.alternate,e),e=e.return;be=null}}function Ds(e,i){e.finishedWork=null,e.finishedLanes=0;var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,Mw(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),Ru(),Me=e,be=a=li(e.current,null),_e=i,ke=0,Mt=null,Ln=!1,Ns=va(e,i),xu=!1,Os=It=wu=Yi=oi=$e=0,fn=Wa=null,Su=!1,(i&8)!==0&&(i|=i&32);var o=e.entangledLanes;if(o!==0)for(e=e.entanglements,o&=i;0<o;){var d=31-Ct(o),p=1<<d;i|=e[d],o&=~p}return Pn=i,ml(),a}function Zp(e,i){ge=null,$.H=dn,i===Ma?(i=dm(),ke=3):i===om?(i=dm(),ke=4):ke=i===cp?8:i!==null&&typeof i=="object"&&typeof i.then=="function"?6:1,Mt=i,be===null&&($e=1,kl(e,Ht(i,e.current)))}function Qp(){var e=$.H;return $.H=dn,e===null?dn:e}function Wp(){var e=$.A;return $.A=fw,e}function Cu(){$e=4,Ln||(_e&4194176)!==_e&&Gt.current!==null||(Ns=!0),(oi&134217727)===0&&(Yi&134217727)===0||Me===null||Un(Me,_e,It,!1)}function Nu(e,i,a){var o=Ve;Ve|=2;var d=Qp(),p=Wp();(Me!==e||_e!==i)&&(ql=null,Ds(e,i)),i=!1;var y=$e;e:do try{if(ke!==0&&be!==null){var w=be,E=Mt;switch(ke){case 8:Ru(),y=6;break e;case 3:case 2:case 6:Gt.current===null&&(i=!0);var O=ke;if(ke=0,Mt=null,Ms(e,w,E,O),a&&Ns){y=0;break e}break;default:O=ke,ke=0,Mt=null,Ms(e,w,E,O)}}pw(),y=$e;break}catch(q){Zp(e,q)}while(!0);return i&&e.shellSuspendCounter++,Cn=Hi=null,Ve=o,$.H=d,$.A=p,be===null&&(Me=null,_e=0,ml()),y}function pw(){for(;be!==null;)Jp(be)}function gw(e,i){var a=Ve;Ve|=2;var o=Qp(),d=Wp();Me!==e||_e!==i?(ql=null,Hl=on()+500,Ds(e,i)):Ns=va(e,i);e:do try{if(ke!==0&&be!==null){i=be;var p=Mt;t:switch(ke){case 1:ke=0,Mt=null,Ms(e,i,p,1);break;case 2:if(cm(p)){ke=0,Mt=null,e0(i);break}i=function(){ke===2&&Me===e&&(ke=7),hn(e)},p.then(i,i);break e;case 3:ke=7;break e;case 4:ke=5;break e;case 7:cm(p)?(ke=0,Mt=null,e0(i)):(ke=0,Mt=null,Ms(e,i,p,7));break;case 5:var y=null;switch(be.tag){case 26:y=be.memoizedState;case 5:case 27:var w=be;if(!y||C0(y)){ke=0,Mt=null;var E=w.sibling;if(E!==null)be=E;else{var O=w.return;O!==null?(be=O,Yl(O)):be=null}break t}}ke=0,Mt=null,Ms(e,i,p,5);break;case 6:ke=0,Mt=null,Ms(e,i,p,6);break;case 8:Ru(),$e=6;break e;default:throw Error(r(462))}}vw();break}catch(q){Zp(e,q)}while(!0);return Cn=Hi=null,$.H=o,$.A=d,Ve=a,be!==null?0:(Me=null,_e=0,ml(),$e)}function vw(){for(;be!==null&&!zb();)Jp(be)}function Jp(e){var i=wp(e.alternate,e,Pn);e.memoizedProps=e.pendingProps,i===null?Yl(e):be=i}function e0(e){var i=e,a=i.alternate;
48switch(i.tag){case 15:case 0:i=pp(a,i,i.pendingProps,i.type,void 0,_e);break;case 11:i=pp(a,i,i.pendingProps,i.type.render,i.ref,_e);break;case 5:kc(i);default:Xp(a,i),i=be=$p(i,Pn),i=wp(a,i,Pn)}e.memoizedProps=e.pendingProps,i===null?Yl(e):be=i}function Ms(e,i,a,o){Cn=Hi=null,kc(i),xs=null,La=0;var d=i.return;try{if(aw(e,d,i,a,_e)){$e=1,kl(e,Ht(a,e.current)),be=null;return}}catch(p){if(d!==null)throw be=d,p;$e=1,kl(e,Ht(a,e.current)),be=null;return}i.flags&32768?(Ae||o===1?e=!0:Ns||(_e&536870912)!==0?e=!1:(Ln=e=!0,(o===2||o===3||o===6)&&(o=Gt.current,o!==null&&o.tag===13&&(o.flags|=16384))),t0(i,e)):Yl(i)}function Yl(e){var i=e;do{if((i.flags&32768)!==0){t0(i,Ln);return}e=i.return;var a=uw(i.alternate,i,Pn);if(a!==null){be=a;return}if(i=i.sibling,i!==null){be=i;return}be=i=e}while(i!==null);$e===0&&($e=5)}function t0(e,i){do{var a=dw(e.alternate,e);if(a!==null){a.flags&=32767,be=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!i&&(e=e.sibling,e!==null)){be=e;return}be=e=a}while(e!==null);$e=6,be=null}function n0(e,i,a,o,d,p,y,w,E,O){var q=$.T,X=Y.p;try{Y.p=2,$.T=null,yw(e,i,a,o,X,d,p,y,w,E,O)}finally{$.T=q,Y.p=X}}function yw(e,i,a,o,d,p,y,w){do ks();while(Xi!==null);if((Ve&6)!==0)throw Error(r(327));var E=e.finishedWork;if(o=e.finishedLanes,E===null)return null;if(e.finishedWork=null,e.finishedLanes=0,E===e.current)throw Error(r(177));e.callbackNode=null,e.callbackPriority=0,e.cancelPendingCommit=null;var O=E.lanes|E.childLanes;if(O|=bc,Zb(e,o,O,p,y,w),e===Me&&(be=Me=null,_e=0),(E.subtreeFlags&10256)===0&&(E.flags&10256)===0||$l||($l=!0,Tu=O,Eu=a,Sw(Jr,function(){return ks(),null})),a=(E.flags&15990)!==0,(E.subtreeFlags&15990)!==0||a?(a=$.T,$.T=null,p=Y.p,Y.p=2,y=Ve,Ve|=4,lw(e,E),Pp(E,e),qx(qu,e.containerInfo),io=!!Hu,qu=Hu=null,e.current=E,Dp(e,E.alternate,E),Bb(),Ve=y,Y.p=p,$.T=a):e.current=E,$l?($l=!1,Xi=e,Ja=o):i0(e,O),O=e.pendingLanes,O===0&&(ci=null),Yb(E.stateNode),hn(e),i!==null)for(d=e.onRecoverableError,E=0;E<i.length;E++)O=i[E],d(O.value,{componentStack:O.stack});return(Ja&3)!==0&&ks(),O=e.pendingLanes,(o&4194218)!==0&&(O&42)!==0?e===ju?er++:(er=0,ju=e):er=0,tr(0),null}function i0(e,i){(e.pooledCacheLanes&=i)===0&&(i=e.pooledCache,i!=null&&(e.pooledCache=null,Ua(i)))}function ks(){if(Xi!==null){var e=Xi,i=Tu;Tu=0;var a=fh(Ja),o=$.T,d=Y.p;try{if(Y.p=32>a?32:a,$.T=null,Xi===null)var p=!1;else{a=Eu,Eu=null;var y=Xi,w=Ja;if(Xi=null,Ja=0,(Ve&6)!==0)throw Error(r(331));var E=Ve;if(Ve|=4,Hp(y.current),Vp(y,y.current,w,a),Ve=E,tr(0,!1),Rt&&typeof Rt.onPostCommitFiberRoot=="function")try{Rt.onPostCommitFiberRoot(ga,y)}catch{}p=!0}return p}finally{Y.p=d,$.T=o,i0(e,i)}}return!1}function s0(e,i,a){i=Ht(a,i),i=Ic(e.stateNode,i,2),e=ii(e,i,2),e!==null&&(ya(e,2),hn(e))}function De(e,i,a){if(e.tag===3)s0(e,e,a);else for(;i!==null;){if(i.tag===3){s0(i,e,a);break}else if(i.tag===1){var o=i.stateNode;if(typeof i.type.getDerivedStateFromError=="function"||typeof o.componentDidCatch=="function"&&(ci===null||!ci.has(o))){e=Ht(a,e),a=lp(2),o=ii(i,a,2),o!==null&&(op(a,o,i,e),ya(o,2),hn(o));break}}i=i.return}}function Ou(e,i,a){var o=e.pingCache;if(o===null){o=e.pingCache=new hw;var d=new Set;o.set(i,d)}else d=o.get(i),d===void 0&&(d=new Set,o.set(i,d));d.has(a)||(xu=!0,d.add(a),e=bw.bind(null,e,i,a),i.then(e,e))}function bw(e,i,a){var o=e.pingCache;o!==null&&o.delete(i),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,Me===e&&(_e&a)===a&&($e===4||$e===3&&(_e&62914560)===_e&&300>on()-_u?(Ve&2)===0&&Ds(e,0):wu|=a,Os===_e&&(Os=0)),hn(e)}function a0(e,i){i===0&&(i=ch()),e=Kn(e,i),e!==null&&(ya(e,i),hn(e))}function xw(e){var i=e.memoizedState,a=0;i!==null&&(a=i.retryLane),a0(e,a)}function ww(e,i){var a=0;switch(e.tag){case 13:var o=e.stateNode,d=e.memoizedState;d!==null&&(a=d.retryLane);break;case 19:o=e.stateNode;break;case 22:o=e.stateNode._retryCache;break;default:throw Error(r(314))}o!==null&&o.delete(i),a0(e,a)}function Sw(e,i){return Ko(e,i)}var Xl=null,Ls=null,Du=!1,Fl=!1,Mu=!1,Fi=0;function hn(e){e!==Ls&&e.next===null&&(Ls===null?Xl=Ls=e:Ls=Ls.next=e),Fl=!0,Du||(Du=!0,Tw(_w))}function tr(e,i){if(!Mu&&Fl){Mu=!0;do for(var a=!1,o=Xl;o!==null;){if(e!==0){var d=o.pendingLanes;if(d===0)var p=0;else{var y=o.suspendedLanes,w=o.pingedLanes;p=(1<<31-Ct(42|e)+1)-1,p&=d&~(y&~w),p=p&201326677?p&201326677|1:p?p|2:0}p!==0&&(a=!0,o0(o,p))}else p=_e,p=nl(o,o===Me?p:0),(p&3)===0||va(o,p)||(a=!0,o0(o,p));o=o.next}while(a);Mu=!1}}function _w(){Fl=Du=!1;var e=0;Fi!==0&&(Dw()&&(e=Fi),Fi=0);for(var i=on(),a=null,o=Xl;o!==null;){var d=o.next,p=r0(o,i);p===0?(o.next=null,a===null?Xl=d:a.next=d,d===null&&(Ls=a)):(a=o,(e!==0||(p&3)!==0)&&(Fl=!0)),o=d}tr(e)}function r0(e,i){for(var a=e.suspendedLanes,o=e.pingedLanes,d=e.expirationTimes,p=e.pendingLanes&-62914561;0<p;){var y=31-Ct(p),w=1<<y,E=d[y];E===-1?((w&a)===0||(w&o)!==0)&&(d[y]=Kb(w,i)):E<=i&&(e.expiredLanes|=w),p&=~w}if(i=Me,a=_e,a=nl(e,e===i?a:0),o=e.callbackNode,a===0||e===i&&ke===2||e.cancelPendingCommit!==null)return o!==null&&o!==null&&Zo(o),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||va(e,a)){if(i=a&-a,i===e.callbackPriority)return i;switch(o!==null&&Zo(o),fh(a)){case 2:case 8:a=rh;break;case 32:a=Jr;break;case 268435456:a=lh;break;default:a=Jr}return o=l0.bind(null,e),a=Ko(a,o),e.callbackPriority=i,e.callbackNode=a,i}return o!==null&&o!==null&&Zo(o),e.callbackPriority=2,e.callbackNode=null,2}function l0(e,i){var a=e.callbackNode;if(ks()&&e.callbackNode!==a)return null;var o=_e;return o=nl(e,e===Me?o:0),o===0?null:(Ip(e,o,i),r0(e,on()),e.callbackNode!=null&&e.callbackNode===a?l0.bind(null,e):null)}function o0(e,i){if(ks())return null;Ip(e,i,!0)}function Tw(e){kw(function(){(Ve&6)!==0?Ko(ah,e):e()})}function ku(){return Fi===0&&(Fi=oh()),Fi}function c0(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:ll(""+e)}function u0(e,i){var a=i.ownerDocument.createElement("input");
vendor: 5,318 bytes, line 48
48return a.name=i.name,a.value=i.value,e.id&&a.setAttribute("form",e.id),i.parentNode.insertBefore(a,i),e=new FormData(e),a.parentNode.removeChild(a),e}function Ew(e,i,a,o,d){if(i==="submit"&&a&&a.stateNode===d){var p=c0((d[Tt]||null).action),y=o.submitter;y&&(i=(i=y[Tt]||null)?c0(i.formAction):y.getAttribute("formAction"),i!==null&&(p=i,y=null));var w=new dl("action","action",null,o,d);e.push({event:w,listeners:[{instance:null,listener:function(){if(o.defaultPrevented){if(Fi!==0){var E=y?u0(d,y):new FormData(d);$c(a,{pending:!0,data:E,method:d.method,action:p},null,E)}}else typeof p=="function"&&(w.preventDefault(),E=y?u0(d,y):new FormData(d),$c(a,{pending:!0,data:E,method:d.method,action:p},p,E))},currentTarget:d}]})}}for(var Lu=0;Lu<nm.length;Lu++){var Pu=nm[Lu],jw=Pu.toLowerCase(),Aw=Pu[0].toUpperCase()+Pu.slice(1);Jt(jw,"on"+Aw)}Jt(Qh,"onAnimationEnd"),Jt(Wh,"onAnimationIteration"),Jt(Jh,"onAnimationStart"),Jt("dblclick","onDoubleClick"),Jt("focusin","onFocus"),Jt("focusout","onBlur"),Jt(Gx,"onTransitionRun"),Jt(Yx,"onTransitionStart"),Jt(Xx,"onTransitionCancel"),Jt(em,"onTransitionEnd"),os("onMouseEnter",["mouseout","mouseover"]),os("onMouseLeave",["mouseout","mouseover"]),os("onPointerEnter",["pointerout","pointerover"]),os("onPointerLeave",["pointerout","pointerover"]),Ri("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ri("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ri("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ri("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ri("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ri("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var nr="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(" "),Rw=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(nr));function d0(e,i){i=(i&4)!==0;for(var a=0;a<e.length;a++){var o=e[a],d=o.event;o=o.listeners;e:{var p=void 0;if(i)for(var y=o.length-1;0<=y;y--){var w=o[y],E=w.instance,O=w.currentTarget;if(w=w.listener,E!==p&&d.isPropagationStopped())break e;p=w,d.currentTarget=O;try{p(d)}catch(q){Ml(q)}d.currentTarget=null,p=E}else for(y=0;y<o.length;y++){if(w=o[y],E=w.instance,O=w.currentTarget,w=w.listener,E!==p&&d.isPropagationStopped())break e;p=w,d.currentTarget=O;try{p(d)}catch(q){Ml(q)}d.currentTarget=null,p=E}}}}function Se(e,i){var a=i[Wo];a===void 0&&(a=i[Wo]=new Set);var o=e+"__bubble";a.has(o)||(f0(i,e,2,!1),a.add(o))}function Uu(e,i,a){var o=0;i&&(o|=4),f0(a,e,o,i)}var Il="_reactListening"+Math.random().toString(36).slice(2);function Vu(e){if(!e[Il]){e[Il]=!0,ph.forEach(function(a){a!=="selectionchange"&&(Rw.has(a)||Uu(a,!1,e),Uu(a,!0,e))});var i=e.nodeType===9?e:e.ownerDocument;i===null||i[Il]||(i[Il]=!0,Uu("selectionchange",!1,i))}}function f0(e,i,a,o){switch(L0(i)){case 2:var d=eS;break;case 8:d=tS;break;default:d=Qu}a=d.bind(null,i,a,e),d=void 0,!rc||i!=="touchstart"&&i!=="touchmove"&&i!=="wheel"||(d=!0),o?d!==void 0?e.addEventListener(i,a,{capture:!0,passive:d}):e.addEventListener(i,a,!0):d!==void 0?e.addEventListener(i,a,{passive:d}):e.addEventListener(i,a,!1)}function zu(e,i,a,o,d){var p=o;if((i&1)===0&&(i&2)===0&&o!==null)e:for(;;){if(o===null)return;var y=o.tag;if(y===3||y===4){var w=o.stateNode.containerInfo;if(w===d||w.nodeType===8&&w.parentNode===d)break;if(y===4)for(y=o.return;y!==null;){var E=y.tag;if((E===3||E===4)&&(E=y.stateNode.containerInfo,E===d||E.nodeType===8&&E.parentNode===d))return;y=y.return}for(;w!==null;){if(y=Ai(w),y===null)return;if(E=y.tag,E===5||E===6||E===26||E===27){o=p=y;continue e}w=w.parentNode}}o=o.return}Ah(function(){var O=p,q=sc(a),X=[];e:{var V=tm.get(e);if(V!==void 0){var H=dl,se=e;switch(e){case"keypress":if(cl(a)===0)break e;case"keydown":case"keyup":H=wx;break;case"focusin":se="focus",H=uc;break;case"focusout":se="blur",H=uc;break;case"beforeblur":case"afterblur":H=uc;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":H=Nh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":H=cx;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":H=Tx;break;case Qh:case Wh:case Jh:H=fx;break;case em:H=jx;break;case"scroll":case"scrollend":H=lx;break;case"wheel":H=Rx;break;case"copy":case"cut":case"paste":H=mx;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":H=Dh;break;case"toggle":case"beforetoggle":H=Nx}var he=(i&4)!==0,Ge=!he&&(e==="scroll"||e==="scrollend"),k=he?V!==null?V+"Capture":null:V;he=[];for(var N=O,L;N!==null;){var G=N;if(L=G.stateNode,G=G.tag,G!==5&&G!==26&&G!==27||L===null||k===null||(G=wa(N,k),G!=null&&he.push(ir(N,G,L))),Ge)break;N=N.return}0<he.length&&(V=new H(V,se,null,a,q),X.push({event:V,listeners:he}))}}
vendor: 6,215 bytes, lines 48-49
48if((i&7)===0){e:{if(V=e==="mouseover"||e==="pointerover",H=e==="mouseout"||e==="pointerout",V&&a!==ic&&(se=a.relatedTarget||a.fromElement)&&(Ai(se)||se[as]))break e;if((H||V)&&(V=q.window===q?q:(V=q.ownerDocument)?V.defaultView||V.parentWindow:window,H?(se=a.relatedTarget||a.toElement,H=O,se=se?Ai(se):null,se!==null&&(Ge=ie(se),he=se.tag,se!==Ge||he!==5&&he!==27&&he!==6)&&(se=null)):(H=null,se=O),H!==se)){if(he=Nh,G="onMouseLeave",k="onMouseEnter",N="mouse",(e==="pointerout"||e==="pointerover")&&(he=Dh,G="onPointerLeave",k="onPointerEnter",N="pointer"),Ge=H==null?V:xa(H),L=se==null?V:xa(se),V=new he(G,N+"leave",H,a,q),V.target=Ge,V.relatedTarget=L,G=null,Ai(q)===O&&(he=new he(k,N+"enter",se,a,q),he.target=L,he.relatedTarget=Ge,G=he),Ge=G,H&&se)t:{for(he=H,k=se,N=0,L=he;L;L=Ps(L))N++;for(L=0,G=k;G;G=Ps(G))L++;for(;0<N-L;)he=Ps(he),N--;for(;0<L-N;)k=Ps(k),L--;for(;N--;){if(he===k||k!==null&&he===k.alternate)break t;he=Ps(he),k=Ps(k)}he=null}else he=null;H!==null&&h0(X,V,H,he,!1),se!==null&&Ge!==null&&h0(X,Ge,se,he,!0)}}e:{if(V=O?xa(O):window,H=V.nodeName&&V.nodeName.toLowerCase(),H==="select"||H==="input"&&V.type==="file")var te=Bh;else if(Vh(V))if(Hh)te=Bx;else{te=Vx;var ve=Ux}else H=V.nodeName,!H||H.toLowerCase()!=="input"||V.type!=="checkbox"&&V.type!=="radio"?O&&nc(O.elementType)&&(te=Bh):te=zx;if(te&&(te=te(e,O))){zh(X,te,a,q);break e}ve&&ve(e,V,O),e==="focusout"&&O&&V.type==="number"&&O.memoizedProps.value!=null&&tc(V,"number",V.value)}switch(ve=O?xa(O):window,e){case"focusin":(Vh(ve)||ve.contentEditable==="true")&&(ms=ve,gc=O,Ca=null);break;case"focusout":Ca=gc=ms=null;break;case"mousedown":vc=!0;break;case"contextmenu":case"mouseup":case"dragend":vc=!1,Kh(X,a,q);break;case"selectionchange":if($x)break;case"keydown":case"keyup":Kh(X,a,q)}var re;if(fc)e:{switch(e){case"compositionstart":var de="onCompositionStart";break e;case"compositionend":de="onCompositionEnd";break e;case"compositionupdate":de="onCompositionUpdate";break e}de=void 0}else hs?Ph(e,a)&&(de="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(de="onCompositionStart");de&&(Mh&&a.locale!=="ko"&&(hs||de!=="onCompositionStart"?de==="onCompositionEnd"&&hs&&(re=Rh()):(In=q,lc="value"in In?In.value:In.textContent,hs=!0)),ve=Kl(O,de),0<ve.length&&(de=new Oh(de,e,null,a,q),X.push({event:de,listeners:ve}),re?de.data=re:(re=Uh(a),re!==null&&(de.data=re)))),(re=Dx?Mx(e,a):kx(e,a))&&(de=Kl(O,"onBeforeInput"),0<de.length&&(ve=new Oh("onBeforeInput","beforeinput",null,a,q),X.push({event:ve,listeners:de}),ve.data=re)),Ew(X,e,O,a,q)}d0(X,i)})}function ir(e,i,a){return{instance:e,listener:i,currentTarget:a}}function Kl(e,i){for(var a=i+"Capture",o=[];e!==null;){var d=e,p=d.stateNode;d=d.tag,d!==5&&d!==26&&d!==27||p===null||(d=wa(e,a),d!=null&&o.unshift(ir(e,d,p)),d=wa(e,i),d!=null&&o.push(ir(e,d,p))),e=e.return}return o}function Ps(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function h0(e,i,a,o,d){for(var p=i._reactName,y=[];a!==null&&a!==o;){var w=a,E=w.alternate,O=w.stateNode;if(w=w.tag,E!==null&&E===o)break;w!==5&&w!==26&&w!==27||O===null||(E=O,d?(O=wa(a,p),O!=null&&y.unshift(ir(a,O,E))):d||(O=wa(a,p),O!=null&&y.push(ir(a,O,E)))),a=a.return}y.length!==0&&e.push({event:i,listeners:y})}var Cw=/\r\n?/g,Nw=/\u0000|\uFFFD/g;function m0(e){return(typeof e=="string"?e:""+e).replace(Cw,` 49`).replace(Nw,"")}function p0(e,i){return i=m0(i),m0(e)===i}function Zl(){}function Oe(e,i,a,o,d,p){switch(a){case"children":typeof o=="string"?i==="body"||i==="textarea"&&o===""||us(e,o):(typeof o=="number"||typeof o=="bigint")&&i!=="body"&&us(e,""+o);break;case"className":sl(e,"class",o);break;case"tabIndex":sl(e,"tabindex",o);break;case"dir":case"role":case"viewBox":case"width":case"height":sl(e,a,o);break;case"style":Eh(e,o,p);break;case"data":if(i!=="object"){sl(e,"data",o);break}case"src":case"href":if(o===""&&(i!=="a"||a!=="href")){e.removeAttribute(a);break}if(o==null||typeof o=="function"||typeof o=="symbol"||typeof o=="boolean"){e.removeAttribute(a);break}o=ll(""+o),e.setAttribute(a,o);break;case"action":case"formAction":if(typeof o=="function"){e.setAttribute(a,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof p=="function"&&(a==="formAction"?(i!=="input"&&Oe(e,i,"name",d.name,d,null),Oe(e,i,"formEncType",d.formEncType,d,null),Oe(e,i,"formMethod",d.formMethod,d,null),Oe(e,i,"formTarget",d.formTarget,d,null)):(Oe(e,i,"encType",d.encType,d,null),Oe(e,i,"method",d.method,d,null),Oe(e,i,"target",d.target,d,null)));if(o==null||typeof o=="symbol"||typeof o=="boolean"){e.removeAttribute(a);break}o=ll(""+o),e.setAttribute(a,o);break;case"onClick":o!=null&&(e.onclick=Zl);break;case"onScroll":o!=null&&Se("scroll",e);break;case"onScrollEnd":o!=null&&Se("scrollend",e);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(r(61));if(a=o.__html,a!=null){if(d.children!=null)throw Error(r(60));e.innerHTML=a}}break;case"multiple":e.multiple=o&&typeof o!="function"&&typeof o!="symbol";break;case"muted":e.muted=o&&typeof o!="function"&&typeof o!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(o==null||typeof o=="function"||typeof o=="boolean"||typeof o=="symbol"){e.removeAttribute("xlink:href");break}a=ll(""+o),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":o!=null&&typeof o!="function"&&typeof o!="symbol"?e.setAttribute(a,""+o):e.removeAttribute(a);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInl
49ine":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":o&&typeof o!="function"&&typeof o!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":o===!0?e.setAttribute(a,""):o!==!1&&o!=null&&typeof o!="function"&&typeof o!="symbol"?e.setAttribute(a,o):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":o!=null&&typeof o!="function"&&typeof o!="symbol"&&!isNaN(o)&&1<=o?e.setAttribute(a,o):e.removeAttribute(a);break;case"rowSpan":case"start":o==null||typeof o=="function"||typeof o=="symbol"||isNaN(o)?e.removeAttribute(a):e.setAttribute(a,o);break;case"popover":Se("beforetoggle",e),Se("toggle",e),il(e,"popover",o);break;case"xlinkActuate":_n(e,"http://www.w3.org/1999/xlink","xlink:actuate",o);break;case"xlinkArcrole":_n(e,"http://www.w3.org/1999/xlink","xlink:arcrole",o);break;case"xlinkRole":_n(e,"http://www.w3.org/1999/xlink","xlink:role",o);break;case"xlinkShow":_n(e,"http://www.w3.org/1999/xlink","xlink:show",o);break;case"xlinkTitle":_n(e,"http://www.w3.org/1999/xlink","xlink:title",o);break;case"xlinkType":_n(e,"http://www.w3.org/1999/xlink","xlink:type",o);break;case"xmlBase":_n(e,"http://www.w3.org/XML/1998/namespace","xml:base",o);break;case"xmlLang":_n(e,"http://www.w3.org/XML/1998/namespace","xml:lang",o);break;case"xmlSpace":_n(e,"http://www.w3.org/XML/1998/namespace","xml:space",o);break;case"is":il(e,"is",o);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=ax.get(a)||a,il(e,a,o))}}function Bu(e,i,a,o,d,p){switch(a){case"style":Eh(e,o,p);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(r(61));if(a=o.__html,a!=null){if(d.children!=null)throw Error(r(60));e.innerHTML=a}}break;case"children":typeof o=="string"?us(e,o):(typeof o=="number"||typeof o=="bigint")&&us(e,""+o);break;case"onScroll":o!=null&&Se("scroll",e);break;case"onScrollEnd":o!=null&&Se("scrollend",e);break;case"onClick":o!=null&&(e.onclick=Zl);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!gh.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(d=a.endsWith("Capture"),i=a.slice(2,d?a.length-7:void 0),p=e[Tt]||null,p=p!=null?p[a]:null,typeof p=="function"&&e.removeEventListener(i,p,d),typeof o=="function")){typeof p!="function"&&p!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(i,o,d);break e}a in e?e[a]=o:o===!0?e.setAttribute(a,""):il(e,a,o)}}}function ft(e,i,a){switch(i){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Se("error",e),Se("load",e);var o=!1,d=!1,p;for(p in a)if(a.hasOwnProperty(p)){var y=a[p];if(y!=null)switch(p){case"src":o=!0;break;case"srcSet":d=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,i));default:Oe(e,i,p,y,a,null)}}d&&Oe(e,i,"srcSet",a.srcSet,a,null),o&&Oe(e,i,"src",a.src,a,null);return;case"input":Se("invalid",e);var w=p=y=d=null,E=null,O=null;for(o in a)if(a.hasOwnProperty(o)){var q=a[o];if(q!=null)switch(o){case"name":d=q;break;case"type":y=q;break;case"checked":E=q;break;case"defaultChecked":O=q;break;case"value":p=q;break;case"defaultValue":w=q;break;case"children":case"dangerouslySetInnerHTML":if(q!=null)throw Error(r(137,i));break;default:Oe(e,i,o,q,a,null)}}wh(e,p,w,E,O,y,d,!1),al(e);return;case"select":Se("invalid",e),o=y=p=null;for(d in a)if(a.hasOwnProperty(d)&&(w=a[d],w!=null))switch(d){case"value":p=w;break;case"defaultValue":y=w;break;case"multiple":o=w;default:Oe(e,i,d,w,a,null)}i=p,a=y,e.multiple=!!o,i!=null?cs(e,!!o,i,!1):a!=null&&cs(e,!!o,a,!0);return;case"textarea":Se("invalid",e),p=d=o=null;for(y in a)if(a.hasOwnProperty(y)&&(w=a[y],w!=null))switch(y){case"value":o=w;break;case"defaultValue":d=w;break;case"children":p=w;break;case"dangerouslySetInnerHTML":if(w!=null)throw Error(r(91));break;default:Oe(e,i,y,w,a,null)}_h(e,o,d,p),al(e);return;case"option":for(E in a)if(a.hasOwnProperty(E)&&(o=a[E],o!=null))switch(E){case"selected":e.selected=o&&typeof o!="function"&&typeof o!="symbol";break;default:Oe(e,i,E,o,a,null)}return;case"dialog":Se("cancel",e),Se("close",e);break;case"iframe":case"object":Se("load",e);break;case"video":case"audio":for(o=0;o<nr.length;o++)Se(nr[o],e);break;case"image":Se("error",e),Se("load",e);break;case"details":Se("toggle",e);break;case"embed":case"source":case"link":Se("error",e),Se("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(O in a)if(a.hasOwnProperty(O)&&(o=a[O],o!=null))switch(O){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,i));default:Oe(e,i,O,o,a,null)}return;default:if(nc(i)){for(q in a)a.hasOwnProperty(q)&&(o=a[q],o!==void 0&&Bu(e,i,q,o,a,void 0));return}}for(w in a)a.hasOwnProperty(w)&&(o=a[w],o!=null&&Oe(e,i,w,o,a,null))}function Ow(e,i,a,o){switch(i){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var d=null,p=null,y=null,w=null,E=null,O=null,q=null;for(H in a){var X=a[H];if(a.hasOwnProperty(H)&&X!=null)switch(H){case"checked":break;case"value":break;case"defaultValue":E=X;default:o.hasOwnProperty(H)||Oe(e,i,H,null,o,X)}}for(var V in o){var H=o[V];if(X=a[V],o.hasOwnProperty(V)&&(H!=null||X!=null))switch(V){case"type":p=H;break;case"name":d=H;break;case"checked":O=H;break;case"defaultChecked":q=H;break;case"value":y=H;break;case"defaultValue":w=H;break;case"children":case"dangerouslySetInnerHTML":if(H!=null)throw Error(r(137,i));break;default:H!==X&&Oe(e,i,V,H,o,X)}}ec(e,y,w,E,O,q,p,d);return;case"select":H=y=w=V=null;for(p in a)if(E=a[p],a.hasOwnProperty(p)&&E!=null)switch(p){case"value":break;case"multiple":H=E;default:o.hasOwnProperty(p)||Oe(e,i,p,null,o,E)}for(d in o)if(p=o[d],E=a[d],o.hasOwnProperty(d)&&(p!=null||E!=null))switch(d){case"value":V=p;break;case"defaultValue":w=p;break;case"multiple":y=p;default:p!==E&&Oe(e,i,d,p,o,E)}i=w,a=y,o=H,V!=null?cs(e,!!a,V,!1):!!o!=!!a&&(i!=null?cs(e,!!a,i,!0):cs(e,!!a,a?[]:"",!1));return;case"textarea":H=V=null;for(w in a)if(d=a[w],a.hasOwnProperty(w)&&d!=null&&!o.hasOwnProperty(w))switch(w){case"value":break;case"children":break;default:Oe(e,i,w,null,o,d)}for(y in o)if(d=o[y],p=a[y],o.hasOwnProperty(y)&&(d!=null||p!=null))switch(y){case"value":V=d;break;case"defaultValue":H=d;break;case"children":break;case"dangerouslySetInnerHTML":if(d!=null)throw Error(r(91));break;default:d!==p&&Oe(e,i,y,d,o,p)}Sh(e,V,H);return;case"option":for(var se in a)if(V=a[se],a.hasOwnProperty(se)&&V!=null&&!o.hasOwnProperty(se))switch(se){case"selected":e.selected=!1;break;default:Oe(e,i,se,null,o,V)}
vendor: 22,697 bytes, line 49
49for(E in o)if(V=o[E],H=a[E],o.hasOwnProperty(E)&&V!==H&&(V!=null||H!=null))switch(E){case"selected":e.selected=V&&typeof V!="function"&&typeof V!="symbol";break;default:Oe(e,i,E,V,o,H)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var he in a)V=a[he],a.hasOwnProperty(he)&&V!=null&&!o.hasOwnProperty(he)&&Oe(e,i,he,null,o,V);for(O in o)if(V=o[O],H=a[O],o.hasOwnProperty(O)&&V!==H&&(V!=null||H!=null))switch(O){case"children":case"dangerouslySetInnerHTML":if(V!=null)throw Error(r(137,i));break;default:Oe(e,i,O,V,o,H)}return;default:if(nc(i)){for(var Ge in a)V=a[Ge],a.hasOwnProperty(Ge)&&V!==void 0&&!o.hasOwnProperty(Ge)&&Bu(e,i,Ge,void 0,o,V);for(q in o)V=o[q],H=a[q],!o.hasOwnProperty(q)||V===H||V===void 0&&H===void 0||Bu(e,i,q,V,o,H);return}}for(var k in a)V=a[k],a.hasOwnProperty(k)&&V!=null&&!o.hasOwnProperty(k)&&Oe(e,i,k,null,o,V);for(X in o)V=o[X],H=a[X],!o.hasOwnProperty(X)||V===H||V==null&&H==null||Oe(e,i,X,V,o,H)}var Hu=null,qu=null;function Ql(e){return e.nodeType===9?e:e.ownerDocument}function g0(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function v0(e,i){if(e===0)switch(i){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&i==="foreignObject"?0:e}function $u(e,i){return e==="textarea"||e==="noscript"||typeof i.children=="string"||typeof i.children=="number"||typeof i.children=="bigint"||typeof i.dangerouslySetInnerHTML=="object"&&i.dangerouslySetInnerHTML!==null&&i.dangerouslySetInnerHTML.__html!=null}var Gu=null;function Dw(){var e=window.event;return e&&e.type==="popstate"?e===Gu?!1:(Gu=e,!0):(Gu=null,!1)}var y0=typeof setTimeout=="function"?setTimeout:void 0,Mw=typeof clearTimeout=="function"?clearTimeout:void 0,b0=typeof Promise=="function"?Promise:void 0,kw=typeof queueMicrotask=="function"?queueMicrotask:typeof b0<"u"?function(e){return b0.resolve(null).then(e).catch(Lw)}:y0;function Lw(e){setTimeout(function(){throw e})}function Yu(e,i){var a=i,o=0;do{var d=a.nextSibling;if(e.removeChild(a),d&&d.nodeType===8)if(a=d.data,a==="/$"){if(o===0){e.removeChild(d),dr(i);return}o--}else a!=="$"&&a!=="$?"&&a!=="$!"||o++;a=d}while(a);dr(i)}function Xu(e){var i=e.firstChild;for(i&&i.nodeType===10&&(i=i.nextSibling);i;){var a=i;switch(i=i.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":Xu(a),Jo(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function Pw(e,i,a,o){for(;e.nodeType===1;){var d=a;if(e.nodeName.toLowerCase()!==i.toLowerCase()){if(!o&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(o){if(!e[ba])switch(i){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(p=e.getAttribute("rel"),p==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(p!==d.rel||e.getAttribute("href")!==(d.href==null?null:d.href)||e.getAttribute("crossorigin")!==(d.crossOrigin==null?null:d.crossOrigin)||e.getAttribute("title")!==(d.title==null?null:d.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(p=e.getAttribute("src"),(p!==(d.src==null?null:d.src)||e.getAttribute("type")!==(d.type==null?null:d.type)||e.getAttribute("crossorigin")!==(d.crossOrigin==null?null:d.crossOrigin))&&p&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(i==="input"&&e.type==="hidden"){var p=d.name==null?null:""+d.name;if(d.type==="hidden"&&e.getAttribute("name")===p)return e}else return e;if(e=nn(e.nextSibling),e===null)break}return null}function Uw(e,i,a){if(i==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=nn(e.nextSibling),e===null))return null;return e}function nn(e){for(;e!=null;e=e.nextSibling){var i=e.nodeType;if(i===1||i===3)break;if(i===8){if(i=e.data,i==="$"||i==="$!"||i==="$?"||i==="F!"||i==="F")break;if(i==="/$")return null}}return e}function x0(e){e=e.previousSibling;for(var i=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"){if(i===0)return e;i--}else a==="/$"&&i++}e=e.previousSibling}return null}function w0(e,i,a){switch(i=Ql(a),e){case"html":if(e=i.documentElement,!e)throw Error(r(452));return e;case"head":if(e=i.head,!e)throw Error(r(453));return e;case"body":if(e=i.body,!e)throw Error(r(454));return e;default:throw Error(r(451))}}var Kt=new Map,S0=new Set;function Wl(e){return typeof e.getRootNode=="function"?e.getRootNode():e.ownerDocument}var Vn=Y.d;Y.d={f:Vw,r:zw,D:Bw,C:Hw,L:qw,m:$w,X:Yw,S:Gw,M:Xw};function Vw(){var e=Vn.f(),i=Gl();return e||i}function zw(e){var i=rs(e);i!==null&&i.tag===5&&i.type==="form"?Km(i):Vn.r(e)}var Us=typeof document>"u"?null:document;function _0(e,i,a){var o=Us;if(o&&typeof i=="string"&&i){var d=zt(i);d='link[rel="'+e+'"][href="'+d+'"]',typeof a=="string"&&(d+='[crossorigin="'+a+'"]'),S0.has(d)||(S0.add(d),e={rel:e,crossOrigin:a,href:i},o.querySelector(d)===null&&(i=o.createElement("link"),ft(i,"link",e),nt(i),o.head.appendChild(i)))}}function Bw(e){Vn.D(e),_0("dns-prefetch",e,null)}function Hw(e,i){Vn.C(e,i),_0("preconnect",e,i)}function qw(e,i,a){Vn.L(e,i,a);var o=Us;if(o&&e&&i){var d='link[rel="preload"][as="'+zt(i)+'"]';i==="image"&&a&&a.imageSrcSet?(d+='[imagesrcset="'+zt(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(d+='[imagesizes="'+zt(a.imageSizes)+'"]')):d+='[href="'+zt(e)+'"]';var p=d;switch(i){case"style":p=Vs(e);break;case"script":p=zs(e)}Kt.has(p)||(e=W({rel:"preload",href:i==="image"&&a&&a.imageSrcSet?void 0:e,as:i},a),Kt.set(p,e),o.querySelector(d)!==null||i==="style"&&o.querySelector(sr(p))||i==="script"&&o.querySelector(ar(p))||(i=o.createElement("link"),ft(i,"link",e),nt(i),o.head.appendChild(i)))}}function $w(e,i){Vn.m(e,i);var a=Us;if(a&&e){var o=i&&typeof i.as=="string"?i.as:"script",d='link[rel="modulepreload"][as="'+zt(o)+'"][href="'+zt(e)+'"]',p=d;switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":p=zs(e)}if(!Kt.has(p)&&(e=W({rel:"modulepreload",href:e},i),Kt.set(p,e),a.querySelector(d)===null)){switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(ar(p)))return}o=a.createElement("link"),ft(o,"link",e),nt(o),a.head.appendChild(o)}}}function Gw(e,i,a){Vn.S(e,i,a);var o=Us;if(o&&e){var d=ls(o).hoistableStyles,p=Vs(e);i=i||"default";var y=d.get(p);if(!y){var w={loading:0,preload:null};if(y=o.querySelector(sr(p)))w.loading=5;else{e=W({rel:"stylesheet",href:e,"data-precedence":i},a),(a=Kt.get(p))&&Fu(e,a);var E=y=o.createElement("link");nt(E),ft(E,"link",e),E._p=new Promise(function(O,q){E.onload=O,E.onerror=q}),E.addEventListener("load",function(){w.loading|=1}),E.addEventListener("error",function(){w.loading|=2}),w.loading|=4,Jl(y,i,o)}y={type:"stylesheet",instance:y,count:1,state:w},d.set(p,y)}}}function Yw(e,i){Vn.X(e,i);var a=Us;if(a&&e){var o=ls(a).hoistableScripts,d=zs(e),p=o.get(d);p||(p=a.querySelector(ar(d)),p||(e=W({src:e,async:!0},i),(i=Kt.get(d))&&Iu(e,i),p=a.createElement("script"),nt(p),ft(p,"link",e),a.head.appendChild(p)),p={type:"script",instance:p,count:1,state:null},o.set(d,p))}}function Xw(e,i){Vn.M(e,i);var a=Us;if(a&&e){var o=ls(a).hoistableScripts,d=zs(e),p=o.get(d);p||(p=a.querySelector(ar(d)),p||(e=W({src:e,async:!0,type:"module"},i),(i=Kt.get(d))&&Iu(e,i),p=a.createElement("script"),nt(p),ft(p,"link",e),a.head.appendChild(p)),p={type:"script",instance:p,count:1,state:null},o.set(d,p))}}function T0(e,i,a,o){var d=(d=Yn.current)?Wl(d):null;if(!d)throw Error(r(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(i=Vs(a.href),a=ls(d).hoistableStyles,o=a.get(i),o||(o={type:"style",instance:null,count:0,state:null},a.set(i,o)),o):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=Vs(a.href);var p=ls(d).hoistableStyles,y=p.get(e);if(y||(d=d.ownerDocument||d,y={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},p.set(e,y),(p=d.querySelector(sr(e)))&&!p._p&&(y.instance=p,y.state.loading=5),Kt.has(e)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},Kt.set(e,a),p||Fw(d,e,a,y.state))),i&&o===null)throw Error(r(528,""));return y}if(i&&o!==null)throw Error(r(529,""));return null;case"script":return i=a.async,a=a.src,typeof a=="string"&&i&&typeof i!="function"&&typeof i!="symbol"?(i=zs(a),a=ls(d).hoistableScripts,o=a.get(i),o||(o={type:"script",instance:null,count:0,state:null},a.set(i,o)),o):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,e))}}function Vs(e){return'href="'+zt(e)+'"'}function sr(e){return'link[rel="stylesheet"]['+e+"]"}function E0(e){return W({},e,{"data-precedence":e.precedence,precedence:null})}function Fw(e,i,a,o){e.querySelector('link[rel="preload"][as="style"]['+i+"]")?o.loading=1:(i=e.createElement("link"),o.preload=i,i.addEventListener("load",function(){return o.loading|=1}),i.addEventListener("error",function(){return o.loading|=2}),ft(i,"link",a),nt(i),e.head.appendChild(i))}function zs(e){return'[src="'+zt(e)+'"]'}function ar(e){return"script[async]"+e}function j0(e,i,a){if(i.count++,i.instance===null)switch(i.type){case"style":var o=e.querySelector('style[data-href~="'+zt(a.href)+'"]');if(o)return i.instance=o,nt(o),o;var d=W({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return o=(e.ownerDocument||e).createElement("style"),nt(o),ft(o,"style",d),Jl(o,a.precedence,e),i.instance=o;case"stylesheet":d=Vs(a.href);var p=e.querySelector(sr(d));if(p)return i.state.loading|=4,i.instance=p,nt(p),p;o=E0(a),(d=Kt.get(d))&&Fu(o,d),p=(e.ownerDocument||e).createElement("link"),nt(p);var y=p;return y._p=new Promise(function(w,E){y.onload=w,y.onerror=E}),ft(p,"link",o),i.state.loading|=4,Jl(p,a.precedence,e),i.instance=p;case"script":return p=zs(a.src),(d=e.querySelector(ar(p)))?(i.instance=d,nt(d),d):(o=a,(d=Kt.get(p))&&(o=W({},a),Iu(o,d)),e=e.ownerDocument||e,d=e.createElement("script"),nt(d),ft(d,"link",o),e.head.appendChild(d),i.instance=d);case"void":return null;default:throw Error(r(443,i.type))}else i.type==="stylesheet"&&(i.state.loading&4)===0&&(o=i.instance,i.state.loading|=4,Jl(o,a.precedence,e));return i.instance}function Jl(e,i,a){for(var o=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),d=o.length?o[o.length-1]:null,p=d,y=0;y<o.length;y++){var w=o[y];if(w.dataset.precedence===i)p=w;else if(p!==d)break}p?p.parentNode.insertBefore(e,p.nextSibling):(i=a.nodeType===9?a.head:a,i.insertBefore(e,i.firstChild))}function Fu(e,i){e.crossOrigin==null&&(e.crossOrigin=i.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=i.referrerPolicy),e.title==null&&(e.title=i.title)}function Iu(e,i){e.crossOrigin==null&&(e.crossOrigin=i.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=i.referrerPolicy),e.integrity==null&&(e.integrity=i.integrity)}var eo=null;function A0(e,i,a){if(eo===null){var o=new Map,d=eo=new Map;d.set(a,o)}else d=eo,o=d.get(a),o||(o=new Map,d.set(a,o));if(o.has(e))return o;for(o.set(e,null),a=a.getElementsByTagName(e),d=0;d<a.length;d++){var p=a[d];if(!(p[ba]||p[mt]||e==="link"&&p.getAttribute("rel")==="stylesheet")&&p.namespaceURI!=="http://www.w3.org/2000/svg"){var y=p.getAttribute(i)||"";y=e+y;var w=o.get(y);w?w.push(p):o.set(y,[p])}}return o}function R0(e,i,a){e=e.ownerDocument||e,e.head.insertBefore(a,i==="title"?e.querySelector("head > title"):null)}function Iw(e,i,a){if(a===1||i.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof i.precedence!="string"||typeof i.href!="string"||i.href==="")break;return!0;case"link":if(typeof i.rel!="string"||typeof i.href!="string"||i.href===""||i.onLoad||i.onError)break;switch(i.rel){case"stylesheet":return e=i.disabled,typeof i.precedence=="string"&&e==null;default:return!0}case"script":if(i.async&&typeof i.async!="function"&&typeof i.async!="symbol"&&!i.onLoad&&!i.onError&&i.src&&typeof i.src=="string")return!0}return!1}function C0(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}var rr=null;function Kw(){}function Zw(e,i,a){if(rr===null)throw Error(r(475));var o=rr;if(i.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(i.state.loading&4)===0){if(i.instance===null){var d=Vs(a.href),p=e.querySelector(sr(d));if(p){e=p._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(o.count++,o=to.bind(o),e.then(o,o)),i.state.loading|=4,i.instance=p,nt(p);return}p=e.ownerDocument||e,a=E0(a),(d=Kt.get(d))&&Fu(a,d),p=p.createElement("link"),nt(p);var y=p;y._p=new Promise(function(w,E){y.onload=w,y.onerror=E}),ft(p,"link",a),i.instance=p}o.stylesheets===null&&(o.stylesheets=new Map),o.stylesheets.set(i,e),(e=i.state.preload)&&(i.state.loading&3)===0&&(o.count++,i=to.bind(o),e.addEventListener("load",i),e.addEventListener("error",i))}}function Qw(){if(rr===null)throw Error(r(475));var e=rr;return e.stylesheets&&e.count===0&&Ku(e,e.stylesheets),0<e.count?function(i){var a=setTimeout(function(){if(e.stylesheets&&Ku(e,e.stylesheets),e.unsuspend){var o=e.unsuspend;e.unsuspend=null,o()}},6e4);return e.unsuspend=i,function(){e.unsuspend=null,clearTimeout(a)}}:null}function to(){if(this.count--,this.count===0){if(this.stylesheets)Ku(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var no=null;function Ku(e,i){e.stylesheets=null,e.unsuspend!==null&&(e.count++,no=new Map,i.forEach(Ww,e),no=null,to.call(e))}function Ww(e,i){if(!(i.state.loading&4)){var a=no.get(e);if(a)var o=a.get(null);else{a=new Map,no.set(e,a);for(var d=e.querySelectorAll("link[data-precedence],style[data-precedence]"),p=0;p<d.length;p++){var y=d[p];(y.nodeName==="LINK"||y.getAttribute("media")!=="not all")&&(a.set(y.dataset.precedence,y),o=y)}o&&a.set(null,o)}d=i.instance,y=d.getAttribute("data-precedence"),p=a.get(y)||o,p===o&&a.set(null,d),a.set(y,d),this.count++,o=to.bind(this),d.addEventListener("load",o),d.addEventListener("error",o),p?p.parentNode.insertBefore(d,p.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(d,e.firstChild)),i.state.loading|=4}}var lr={$$typeof:S,Provider:null,Consumer:null,_currentValue:ee,_currentValue2:ee,_threadCount:0};function Jw(e,i,a,o,d,p,y,w){this.tag=1,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Qo(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.finishedLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Qo(0),this.hiddenUpdates=Qo(null),this.identifierPrefix=o,this.onUncaughtError=d,this.onCaughtError=p,this.onRecoverableError=y,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=w,this.incompleteTransitions=new Map}function N0(e,i,a,o,d,p,y,w,E,O,q,X){return e=new Jw(e,i,a,y,w,E,O,X),i=1,p===!0&&(i|=24),p=Ft(3,null,null,i),e.current=p,p.stateNode=e,i=Ac(),i.refCount++,e.pooledCache=i,i.refCount++,p.memoizedState={element:o,isDehydrated:a,cache:i},lu(p),e}function O0(e){return e?(e=vs,e):vs}function D0(e,i,a,o,d,p){d=O0(d),o.context===null?o.context=d:o.pendingContext=d,o=ni(i),o.payload={element:a},p=p===void 0?null:p,p!==null&&(o.callback=p),a=ii(e,o,i),a!==null&&(wt(a,e,i),Ga(a,e,i))}function M0(e,i){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<i?a:i}}function Zu(e,i){M0(e,i),(e=e.alternate)&&M0(e,i)}function k0(e){if(e.tag===13){var i=Kn(e,67108864);i!==null&&wt(i,e,67108864),Zu(e,67108864)}}var io=!0;function eS(e,i,a,o){var d=$.T;$.T=null;var p=Y.p;try{Y.p=2,Qu(e,i,a,o)}finally{Y.p=p,$.T=d}}function tS(e,i,a,o){var d=$.T;$.T=null;var p=Y.p;try{Y.p=8,Qu(e,i,a,o)}finally{Y.p=p,$.T=d}}function Qu(e,i,a,o){if(io){var d=Wu(o);if(d===null)zu(e,i,o,so,a),P0(e,o);else if(iS(d,e,i,a,o))o.stopPropagation();else if(P0(e,o),i&4&&-1<nS.indexOf(e)){for(;d!==null;){var p=rs(d);if(p!==null)switch(p.tag){case 3:if(p=p.stateNode,p.current.memoizedState.isDehydrated){var y=ji(p.pendingLanes);if(y!==0){var w=p;for(w.pendingLanes|=2,w.entangledLanes|=2;y;){var E=1<<31-Ct(y);w.entanglements[1]|=E,y&=~E}hn(p),(Ve&6)===0&&(Hl=on()+500,tr(0))}}break;case 13:w=Kn(p,2),w!==null&&wt(w,p,2),Gl(),Zu(p,2)}if(p=Wu(o),p===null&&zu(e,i,o,so,a),p===d)break;d=p}d!==null&&o.stopPropagation()}else zu(e,i,o,null,a)}}function Wu(e){return e=sc(e),Ju(e)}var so=null;function Ju(e){if(so=null,e=Ai(e),e!==null){var i=ie(e);if(i===null)e=null;else{var a=i.tag;if(a===13){if(e=je(i),e!==null)return e;e=null}else if(a===3){if(i.stateNode.current.memoizedState.isDehydrated)return i.tag===3?i.stateNode.containerInfo:null;e=null}else i!==e&&(e=null)}}return so=e,null}function L0(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Hb()){case ah:return 2;case rh:return 8;case Jr:case qb:return 32;case lh:return 268435456;default:return 32}default:return 32}}var ed=!1,ui=null,di=null,fi=null,or=new Map,cr=new Map,hi=[],nS="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function P0(e,i){switch(e){case"focusin":case"focusout":ui=null;break;case"dragenter":case"dragleave":di=null;break;case"mouseover":case"mouseout":fi=null;break;case"pointerover":case"pointerout":or.delete(i.pointerId);break;case"gotpointercapture":case"lostpointercapture":cr.delete(i.pointerId)}}function ur(e,i,a,o,d,p){return e===null||e.nativeEvent!==p?(e={blockedOn:i,domEventName:a,eventSystemFlags:o,nativeEvent:p,targetContainers:[d]},i!==null&&(i=rs(i),i!==null&&k0(i)),e):(e.eventSystemFlags|=o,i=e.targetContainers,d!==null&&i.indexOf(d)===-1&&i.push(d),e)}function iS(e,i,a,o,d){switch(i){case"focusin":return ui=ur(ui,e,i,a,o,d),!0;case"dragenter":return di=ur(di,e,i,a,o,d),!0;case"mouseover":return fi=ur(fi,e,i,a,o,d),!0;case"pointerover":var p=d.pointerId;return or.set(p,ur(or.get(p)||null,e,i,a,o,d)),!0;case"gotpointercapture":return p=d.pointerId,cr.set(p,ur(cr.get(p)||null,e,i,a,o,d)),!0}return!1}function U0(e){var i=Ai(e.target);if(i!==null){var a=ie(i);if(a!==null){if(i=a.tag,i===13){if(i=je(a),i!==null){e.blockedOn=i,Qb(e.priority,function(){if(a.tag===13){var o=kt(),d=Kn(a,o);d!==null&&wt(d,a,o),Zu(a,o)}});return}}else if(i===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function ao(e){if(e.blockedOn!==null)return!1;for(var i=e.targetContainers;0<i.length;){var a=Wu(e.nativeEvent);if(a===null){a=e.nativeEvent;var o=new a.constructor(a.type,a);ic=o,a.target.dispatchEvent(o),ic=null}else return i=rs(a),i!==null&&k0(i),e.blockedOn=a,!1;i.shift()}return!0}function V0(e,i,a){ao(e)&&a.delete(i)}function sS(){ed=!1,ui!==null&&ao(ui)&&(ui=null),di!==null&&ao(di)&&(di=null),fi!==null&&ao(fi)&&(fi=null),or.forEach(V0),cr.forEach(V0)}function ro(e,i){e.blockedOn===i&&(e.blockedOn=null,ed||(ed=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,sS)))}var lo=null;function z0(e){lo!==e&&(lo=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){lo===e&&(lo=null);for(var i=0;i<e.length;i+=3){var a=e[i],o=e[i+1],d=e[i+2];if(typeof o!="function"){if(Ju(o||a)===null)continue;break}var p=rs(a);p!==null&&(e.splice(i,3),i-=3,$c(p,{pending:!0,data:d,method:a.method,action:o},o,d))}}))}function dr(e){function i(E){return ro(E,e)}ui!==null&&ro(ui,e),di!==null&&ro(di,e),fi!==null&&ro(fi,e),or.forEach(i),cr.forEach(i);for(var a=0;a<hi.length;a++){var o=hi[a];o.blockedOn===e&&(o.blockedOn=null)}for(;0<hi.length&&(a=hi[0],a.blockedOn===null);)U0(a),a.blockedOn===null&&hi.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(o=0;o<a.length;o+=3){var d=a[o],p=a[o+1],y=d[Tt]||null;if(typeof p=="function")y||z0(a);else if(y){var w=null;if(p&&p.hasAttribute("formAction")){if(d=p,y=p[Tt]||null)w=y.formAction;else if(Ju(d)!==null)continue}else w=y.action;typeof w=="function"?a[o+1]=w:(a.splice(o,3),o-=3),z0(a)}}}function td(e){this._internalRoot=e}oo.prototype.render=td.prototype.render=function(e){var i=this._internalRoot;if(i===null)throw Error(r(409));var a=i.current,o=kt();D0(a,o,e,i,null,null)},oo.prototype.unmount=td.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var i=e.containerInfo;e.tag===0&&ks(),D0(e.current,2,null,e,null,null),Gl(),i[as]=null}};function oo(e){this._internalRoot=e}oo.prototype.unstable_scheduleHydration=function(e){if(e){var i=hh();e={blockedOn:null,target:e,priority:i};for(var a=0;a<hi.length&&i!==0&&i<hi[a].priority;a++);hi.splice(a,0,e),a===0&&U0(e)}};var B0=t.version;if(B0!=="19.0.0")throw Error(r(527,B0,"19.0.0"));Y.findDOMNode=function(e){var i=e._reactInternals;if(i===void 0)throw typeof e.render=="function"?Error(r(188)):(e=Object.keys(e).join(","),Error(r(268,e)));return e=F(i),e=e!==null?ue(e):null,e=e===null?null:e.stateNode,e};var aS={bundleType:0,version:"19.0.0",rendererPackageName:"react-dom",currentDispatcherRef:$,findFiberByHostInstance:Ai,reconcilerVersion:"19.0.0"};
49if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var co=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!co.isDisabled&&co.supportsFiber)try{ga=co.inject(aS),Rt=co}catch{}}return hr.createRoot=function(e,i){if(!l(e))throw Error(r(299));var a=!1,o="",d=ip,p=sp,y=ap,w=null;return i!=null&&(i.unstable_strictMode===!0&&(a=!0),i.identifierPrefix!==void 0&&(o=i.identifierPrefix),i.onUncaughtError!==void 0&&(d=i.onUncaughtError),i.onCaughtError!==void 0&&(p=i.onCaughtError),i.onRecoverableError!==void 0&&(y=i.onRecoverableError),i.unstable_transitionCallbacks!==void 0&&(w=i.unstable_transitionCallbacks)),i=N0(e,1,!1,null,null,a,o,d,p,y,w,null),e[as]=i.current,Vu(e.nodeType===8?e.parentNode:e),new td(i)},hr.hydrateRoot=function(e,i,a){if(!l(e))throw Error(r(299));var o=!1,d="",p=ip,y=sp,w=ap,E=null,O=null;return a!=null&&(a.unstable_strictMode===!0&&(o=!0),a.identifierPrefix!==void 0&&(d=a.identifierPrefix),a.onUncaughtError!==void 0&&(p=a.onUncaughtError),a.onCaughtError!==void 0&&(y=a.onCaughtError),a.onRecoverableError!==void 0&&(w=a.onRecoverableError),a.unstable_transitionCallbacks!==void 0&&(E=a.unstable_transitionCallbacks),a.formState!==void 0&&(O=a.formState)),i=N0(e,1,!0,i,a??null,o,d,p,y,w,E,O),i.context=O0(null),a=i.current,o=kt(),d=ni(o),d.callback=null,ii(a,d,o),i.current.lanes=o,ya(i,o),hn(i),e[as]=i.current,Vu(e),new oo(i)},hr.version="19.0.0",hr}var Z0;function yS(){if(Z0)return sd.exports;Z0=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(t){console.error(t)}}return n(),sd.exports=vS(),sd.exports}var bS=yS(),mr={},Q0;function xS(){if(Q0)return mr;Q0=1,Object.defineProperty(mr,"__esModule",{value:!0}),mr.parse=u,mr.serialize=g;const n=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,t=/^[\u0021-\u003A\u003C-\u007E]*$/,s=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,r=/^[\u0020-\u003A\u003D-\u007E]*$/,l=Object.prototype.toString,c=(()=>{const x=function(){};return x.prototype=Object.create(null),x})();function u(x,S){const T=new c,C=x.length;if(C<2)return T;const j=(S==null?void 0:S.decode)||v;let A=0;do{const M=x.indexOf("=",A);if(M===-1)break;const D=x.indexOf(";",A),B=D===-1?C:D;if(M>B){A=x.lastIndexOf(";",M-1)+1;continue}const U=h(x,A,M),I=m(x,M,U),Q=x.slice(U,I);if(T[Q]===void 0){let K=h(x,M+1,B),$=m(x,B,K);const W=j(x.slice(K,$));T[Q]=W}A=B+1}while(A<C);return T}function h(x,S,T){do{const C=x.charCodeAt(S);if(C!==32&&C!==9)return S}while(++S<T);return T}function m(x,S,T){for(;S>T;){const C=x.charCodeAt(--S);if(C!==32&&C!==9)return S+1}return T}function g(x,S,T){const C=(T==null?void 0:T.encode)||encodeURIComponent;if(!n.test(x))throw new TypeError(`argument name is invalid: ${x}`);const j=C(S);if(!t.test(j))throw new TypeError(`argument val is invalid: ${S}`);let A=x+"="+j;if(!T)return A;if(T.maxAge!==void 0){if(!Number.isInteger(T.maxAge))throw new TypeError(`option maxAge is invalid: ${T.maxAge}`);A+="; Max-Age="+T.maxAge}if(T.domain){if(!s.test(T.domain))throw new TypeError(`option domain is invalid: ${T.domain}`);A+="; Domain="+T.domain}if(T.path){if(!r.test(T.path))throw new TypeError(`option path is invalid: ${T.path}`);A+="; Path="+T.path}if(T.expires){if(!b(T.expires)||!Number.isFinite(T.expires.valueOf()))throw new TypeError(`option expires is invali
49d: ${T.expires}`);A+="; Expires="+T.expires.toUTCString()}if(T.httpOnly&&(A+="; HttpOnly"),T.secure&&(A+="; Secure"),T.partitioned&&(A+="; Partitioned"),T.priority)switch(typeof T.priority=="string"?T.priority.toLowerCase():void 0){case"low":A+="; Priority=Low";break;case"medium":A+="; Priority=Medium";break;case"high":A+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${T.priority}`)}if(T.sameSite)switch(typeof T.sameSite=="string"?T.sameSite.toLowerCase():T.sameSite){case!0:case"strict":A+="; SameSite=Strict";break;case"lax":A+="; SameSite=Lax";break;case"none":A+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${T.sameSite}`)}return A}function v(x){if(x.indexOf("%")===-1)return x;try{return decodeURIComponent(x)}catch{return x}}function b(x){return l.call(x)==="[object Date]"}return mr}xS();var W0="popstate";function wS(n={}){function t(r,l){let{pathname:c,search:u,hash:h}=r.location;return Nd("",{pathname:c,search:u,hash:h},l.state&&l.state.usr||null,l.state&&l.state.key||"default")}function s(r,l){return typeof l=="string"?l:Dr(l)}return _S(t,s,null,n)}function Be(n,t){if(n===!1||n===null||typeof n>"u")throw new Error(t)}function yn(n,t){if(!n){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function SS(){return Math.random().toString(36).substring(2,10)}function J0(n,t){return{usr:n.state,key:n.key,idx:t}}function Nd(n,t,s=null,r){return{pathname:typeof n=="string"?n:n.pathname,search:"",hash:"",...typeof t=="string"?oa(t):t,state:s,key:t&&t.key||r||SS()}}function Dr({pathname:n="/",search:t="",hash:s=""}){return t&&t!=="?"&&(n+=t.charAt(0)==="?"?t:"?"+t),s&&s!=="#"&&(n+=s.charAt(0)==="#"?s:"#"+s),n}function oa(n){let t={};if(n){let s=n.indexOf("#");s>=0&&(t.hash=n.substring(s),n=n.substring(0,s));let r=n.indexOf("?");r>=0&&(t.search=n.substring(r),n=n.substring(0,r)),n&&(t.pathname=n)}return t}function _S(n,t,s,r={}){let{window:l=document.defaultView,v5Compat:c=!1}=r,u=l.history,h="POP",m=null,g=v();g==null&&(g=0,u.replaceState({...u.state,idx:g},""));function v(){return(u.state||{idx:null}).idx}function b(){h="POP";let j=v(),A=j==null?null:j-g;g=j,m&&m({action:h,location:C.location,delta:A})}function x(j,A){h="PUSH";let M=Nd(C.location,j,A);g=v()+1;let D=J0(M,g),B=C.createHref(M);try{u.pushState(D,"",B)}catch(U){if(U instanceof DOMException&&U.name==="DataCloneError")throw U;l.location.assign(B)}c&&m&&m({action:h,location:C.location,delta:1})}function S(j,A){h="REPLACE";let M=Nd(C.location,j,A);g=v();let D=J0(M,g),B=C.createHref(M);u.replaceState(D,"",B),c&&m&&m({action:h,location:C.location,delta:0})}function T(j){let A=l.location.origin!=="null"?l.location.origin:l.location.href,M=typeof j=="string"?j:Dr(j);return M=M.replace(/ $/,"%20"),Be(A,`No window.location.(origin|href) available to create URL for href: ${M}`),new URL(M,A)}let C={get action(){return h},get location(){return n(l,u)},listen(j){if(m)throw new Error("A history only accepts one active listener");return l.addEventListener(W0,b),m=j,()=>{l.removeEventListener(W0,b),m=null}},createHref(j){return t(l,j)},createURL:T,encodeLocation(j){let A=T(j);return{pathname:A.pathname,search:A.search,hash:A.hash}},push:x,replace:S,go(j){return u.go(j)}};return C}function cy(n,t,s="/"){return TS(n,t,s,!1)}function TS(n,t,s,r){let l=typeof t=="string"?oa(t):t,c=$n(l.pathname||"/",s);if(c==null)return null;let u=uy(n);ES(u);let h=null;for(let m=0;h==null&&m<u.length;++m){let g=PS(c);h=kS(u[m],g,r)}return h}function uy(n,t=[],s=[],r=""){let l=(c,u,h)=>{let m={relativePath:h===void 0?c.path||"":h,caseSensitive:c.caseSensitive===!0,childrenIndex:u,route:c};m.relativePath.startsWith("/")&&(Be(m.relativePath.startsWith(r),`Absolute route path "${m.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),m.relativePath=m.relativePath.slice(r.length));let g=Bn([r,m.relativePath]),v=s.concat(m);c.children&&c.children.length>0&&(Be(c.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${g}".`),uy(c.children,t,v,g)),!(c.path==null&&!c.index)&&t.push({path:g,score:DS(g,c.index),routesMeta:v})};
vendor: 1,237 bytes, line 49
49return n.forEach((c,u)=>{var h;if(c.path===""||!((h=c.path)!=null&&h.includes("?")))l(c,u);else for(let m of dy(c.path))l(c,u,m)}),t}function dy(n){let t=n.split("/");if(t.length===0)return[];let[s,...r]=t,l=s.endsWith("?"),c=s.replace(/\?$/,"");if(r.length===0)return l?[c,""]:[c];let u=dy(r.join("/")),h=[];return h.push(...u.map(m=>m===""?c:[c,m].join("/"))),l&&h.push(...u),h.map(m=>n.startsWith("/")&&m===""?"/":m)}function ES(n){n.sort((t,s)=>t.score!==s.score?s.score-t.score:MS(t.routesMeta.map(r=>r.childrenIndex),s.routesMeta.map(r=>r.childrenIndex)))}var jS=/^:[\w-]+$/,AS=3,RS=2,CS=1,NS=10,OS=-2,eg=n=>n==="*";function DS(n,t){let s=n.split("/"),r=s.length;return s.some(eg)&&(r+=OS),t&&(r+=RS),s.filter(l=>!eg(l)).reduce((l,c)=>l+(jS.test(c)?AS:c===""?CS:NS),r)}function MS(n,t){return n.length===t.length&&n.slice(0,-1).every((r,l)=>r===t[l])?n[n.length-1]-t[t.length-1]:0}function kS(n,t,s=!1){let{routesMeta:r}=n,l={},c="/",u=[];for(let h=0;h<r.length;++h){let m=r[h],g=h===r.length-1,v=c==="/"?t:t.slice(c.length)||"/",b=Co({path:m.relativePath,caseSensitive:m.caseSensitive,end:g},v),x=m.route;if(!b&&g&&s&&!r[r.length-1].route.index&&(b=Co({path:m.relativePath,caseSensitive:m.caseSensitive,end:!1},v)),!b)return null;
49Object.assign(l,b.params),u.push({params:l,pathname:Bn([c,b.pathname]),pathnameBase:BS(Bn([c,b.pathnameBase])),route:x}),b.pathnameBase!=="/"&&(c=Bn([c,b.pathnameBase]))}return u}function Co(n,t){typeof n=="string"&&(n={path:n,caseSensitive:!1,end:!0});let[s,r]=LS(n.path,n.caseSensitive,n.end),l=t.match(s);if(!l)return null;let c=l[0],u=c.replace(/(.)\/+$/,"$1"),h=l.slice(1);return{params:r.reduce((g,{paramName:v,isOptional:b},x)=>{if(v==="*"){let T=h[x]||"";u=c.slice(0,c.length-T.length).replace(/(.)\/+$/,"$1")}const S=h[x];return b&&!S?g[v]=void 0:g[v]=(S||"").replace(/%2F/g,"/"),g},{}),pathname:c,pathnameBase:u,pattern:n}}function LS(n,t=!1,s=!0){yn(n==="*"||!n.endsWith("*")||n.endsWith("/*"),`Route path "${n}" will be treated as if it were "${n.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${n.replace(/\*$/,"/*")}".`);let r=[],l="^"+n.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(u,h,m)=>(r.push({paramName:h,isOptional:m!=null}),m?"/?([^\\/]+)?":"/([^\\/]+)"));return n.endsWith("*")?(r.push({paramName:"*"}),l+=n==="*"||n==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):s?l+="\\/*$":n!==""&&n!=="/"&&(l+="(?:(?=\\/|$))"),[new RegExp(l,t?void 0:"i"),r]}function PS(n){try{return n.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return yn(!1,`The URL path "${n}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),n}}function $n(n,t){if(t==="/")return n;if(!n.toLowerCase().startsWith(t.toLowerCase()))return null;let s=t.endsWith("/")?t.length-1:t.length,r=n.charAt(s);return r&&r!=="/"?null:n.slice(s)||"/"}function US(n,t="/"){let{pathname:s,search:r="",hash:l=""}=typeof n=="string"?oa(n):n;return{pathname:s?s.startsWith("/")?s:VS(s,t):t,search:HS(r),hash:qS(l)}}function VS(n,t){let s=t.replace(/\/+$/,"").split("/");return n.split("/").forEach(l=>{l===".."?s.length>1&&s.pop():l!=="."&&s.push(l)}),s.length>1?s.join("/"):"/"}function od(n,t,s,r){return`Cannot include a '${n}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${s}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function zS(n){return n.filter((t,s)=>s===0||t.route.path&&t.route.path.length>0)}function fy(n){let t=zS(n);return t.map((s,r)=>r===t.length-1?s.pathname:s.pathnameBase)}function hy(n,t,s,r=!1){let l;typeof n=="string"?l=oa(n):(l={...n},Be(!l.pathname||!l.pathname.includes("?"),od("?","pathname","search",l)),Be(!l.pathname||!l.pathname.includes("#"),od("#","pathname","hash",l)),Be(!l.search||!l.search.includes("#"),od("#","search","hash",l)));let c=n===""||l.pathname==="",u=c?"/":l.pathname,h;if(u==null)h=s;else{let b=t.length-1;if(!r&&u.startsWith("..")){let x=u.split("/");for(;x[0]==="..";)x.shift(),b-=1;l.pathname=x.join("/")}h=b>=0?t[b]:"/"}let m=US(l,h),g=u&&u!=="/"&&u.endsWith("/"),v=(c||u===".")&&s.endsWith("/");return!m.pathname.endsWith("/")&&(g||v)&&(m.pathname+="/"),m}var Bn=n=>n.join("/").replace(/\/\/+/g,"/"),BS=n=>n.replace(/\/+$/,"").replace(/^\/*/,"/"),HS=n=>!n||n==="?"?"":n.startsWith("?")?n:"?"+n,qS=n=>!n||n==="#"?"":n.startsWith("#")?n:"#"+n;function $S(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.internal=="boolean"&&"data"in n}var my=["POST","PUT","PATCH","DELETE"];new Set(my);var GS=["GET",...my];new Set(GS);var ca=_.createContext(null);ca.displayName="DataRouter";var Uo=_.createContext(null);Uo.displayName="DataRouterState";var py=_.createContext({isTransitioning:!1});py.displayName="ViewTransition";var YS=_.createContext(new Map);YS.displayName="Fetchers";var XS=_.createContext(null);XS.displayName="Await";var xn=_.createContext(null);xn.displayName="Navigation";var qr=_.createContext(null);qr.displayName="Location";var wn=_.createContext({outlet:null,matches:[],isDataRoute:!1});wn.displayName="Route";var cf=_.createContext(null);cf.displayName="RouteError";function FS(n,{relative:t}={}){Be($r(),"useHref() may be used only in the context of a <Router> component.");let{basename:s,navigator:r}=_.useContext(xn),{hash:l,pathname:c,search:u}=Gr(n,{relative:t}),h=c;return s!=="/"&&(h=c==="/"?s:Bn([s,c])),r.createHref({pathname:h,search:u,hash:l})}function $r(){return _.useContext(qr)!=null}function Ut(){return Be($r(),"useLocation() may be used only in the context of a <Router> component."),_.useContext(qr).location}var gy="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function vy(n){_.useContext(xn).static||_.useLayoutEffect(n)}function Vo(){let{isDataRoute:n}=_.useContext(wn);return n?l2():IS()}function IS(){Be($r(),"useNavigate() may be used only in the context of a <Router> component.");let n=_.useContext(ca),{basename:t,navigator:s}=_.useContext(xn),{matches:r}=_.useContext(wn),{pathname:l}=Ut(),c=JSON.stringify(fy(r)),u=_.useRef(!1);return vy(()=>{u.current=!0}),_.useCallback((m,g={})=>
49{if(yn(u.current,gy),!u.current)return;if(typeof m=="number"){s.go(m);return}let v=hy(m,JSON.parse(c),l,g.relative==="path");n==null&&t!=="/"&&(v.pathname=v.pathname==="/"?t:Bn([t,v.pathname])),(g.replace?s.replace:s.push)(v,g.state,g)},[t,s,c,l,n])}_.createContext(null);function KS(){let{matches:n}=_.useContext(wn),t=n[n.length-1];return t?t.params:{}}function Gr(n,{relative:t}={}){let{matches:s}=_.useContext(wn),{pathname:r}=Ut(),l=JSON.stringify(fy(s));return _.useMemo(()=>hy(n,JSON.parse(l),r,t==="path"),[n,l,r,t])}function ZS(n,t){return yy(n,t)}function yy(n,t,s,r){var M;Be($r(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:l,static:c}=_.useContext(xn),{matches:u}=_.useContext(wn),h=u[u.length-1],m=h?h.params:{},g=h?h.pathname:"/",v=h?h.pathnameBase:"/",b=h&&h.route;{let D=b&&b.path||"";by(g,!b||D.endsWith("*")||D.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${g}" (under <Route path="${D}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render. 50 51Please change the parent <Route path="${D}"> to <Route path="${D==="/"?"*":`${D}/*`}">.`)}let x=Ut(),S;if(t){let D=typeof t=="string"?oa(t):t;Be(v==="/"||((M=D.pathname)==null?void 0:M.startsWith(v)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${v}" but pathname "${D.pathname}" was given in the \`location\` prop.`),S=D}else S=x;let T=S.pathname||"/",C=T;if(v!=="/"){let D=v.replace(/^\//,"").split("/");C="/"+T.replace(/^\//,"").split("/").slice(D.length).join("/")}let j=!c&&s&&s.matches&&s.matches.length>0?s.matches:cy(n,{pathname:C});yn(b||j!=null,`No routes matched location "${S.pathname}${S.search}${S.hash}" `),yn(j==null||j[j.length-1].route.element!==void 0||j[j.length-1].route.Component!==void 0||j[j.length-1].route.lazy!==void 0,`Matched leaf route at location "${S.pathname}${S.search}${S.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let A=t2(j&&j.map(D=>Object.assign({},D,{params:Object.assign({},m,D.params),pathname:Bn([v,l.encodeLocation?l.encodeLocation(D.pathname).pathname:D.pathname]),pathnameBase:D.pathnameBase==="/"?v:Bn([v,l.encodeLocation?l.encodeLocation(D.pathnameBase).pathname:D.pathnameBase])})),u,s,r);return t&&A?_.createElement(qr.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...S},navigationType:"POP"}},A):A}function QS(){let n=r2(),t=$S(n)?`${n.status} ${n.statusText}`:n instanceof Error?n.message:JSON.stringify(n),s=n instanceof Error?n.stack:null,r="rgba(200,200,200, 0.5)",l={padding:"0.5rem",backgroundColor:r},c={padding:"2px 4px",backgroundColor:r},u=null;return console.error("Error handled by React Router default ErrorBoundary:",n),u=_.createElement(_.Fragment,null,_.createElement("p",null,"ð¿ Hey developer ð"),_.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",_.createElement("code",{style:c},"ErrorBoundary")," or"," ",_.createElement("code",{style:c},"errorElement")," prop on your route.")),_.createElement(_.Fragment,null,_.createElement("h2",null,"Unexpected Application Error!"),_.createElement("h3",{style:{fontStyle:"italic"}},t),s?_.createElement("pre",{style:l},s):null,u)}var WS=_.createElement(QS,null),JS=class extends _.Component{constructor(n){super(n),this.state={location:n.location,revalidation:n.revalidation,error:n.error}}static getDerivedStateFromError(n){return{error:n}}static getDerivedStateFromProps(n,t){return t.location!==n.location||t.revalidation!=="idle"&&n.revalidation==="idle"?{error:n.error,location:n.location,revalidation:n.revalidation}:{error:n.error!==void 0?n.error:t.error,location:t.location,revalidation:n.revalidation||t.revalidation}}componentDidCatch(n,t){console.error("React Router caught the following error during render",n,t)}render(){return this.state.error!==void 0?_.createElement(wn.Provider,{value:this.props.routeContext},_.createElement(cf.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function e2({routeContext:n,match:t,children:s}){let r=_.useContext(ca);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),_.createElement(wn.Provider,{value:n},s)}function t2(n,t=[],s=null,r=null){if(n==null){if(!s)return null;if(s.errors)n=s.matches;else if(t.length===0&&!s.initialized&&s.matches.length>0)n=s.matches;else return null}
51let l=n,c=s==null?void 0:s.errors;if(c!=null){let m=l.findIndex(g=>g.route.id&&(c==null?void 0:c[g.route.id])!==void 0);Be(m>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(c).join(",")}`),l=l.slice(0,Math.min(l.length,m+1))}let u=!1,h=-1;if(s)for(let m=0;m<l.length;m++){let g=l[m];if((g.route.HydrateFallback||g.route.hydrateFallbackElement)&&(h=m),g.route.id){let{loaderData:v,errors:b}=s,x=g.route.loader&&!v.hasOwnProperty(g.route.id)&&(!b||b[g.route.id]===void 0);if(g.route.lazy||x){u=!0,h>=0?l=l.slice(0,h+1):l=[l[0]];break}}}return l.reduceRight((m,g,v)=>{let b,x=!1,S=null,T=null;s&&(b=c&&g.route.id?c[g.route.id]:void 0,S=g.route.errorElement||WS,u&&(h<0&&v===0?(by("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),x=!0,T=null):h===v&&(x=!0,T=g.route.hydrateFallbackElement||null)));let C=t.concat(l.slice(0,v+1)),j=()=>{let A;return b?A=S:x?A=T:g.route.Component?A=_.createElement(g.route.Component,null):g.route.element?A=g.route.element:A=m,_.createElement(e2,{match:g,routeContext:{outlet:m,matches:C,isDataRoute:s!=null},children:A})};return s&&(g.route.ErrorBoundary||g.route.errorElement||v===0)?_.createElement(JS,{location:s.location,revalidation:s.revalidation,component:S,error:b,children:j(),routeContext:{outlet:null,matches:C,isDataRoute:!0}}):j()},null)}function uf(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function n2(n){let t=_.useContext(ca);return Be(t,uf(n)),t}function i2(n){let t=_.useContext(Uo);return Be(t,uf(n)),t}function s2(n){let t=_.useContext(wn);return Be(t,uf(n)),t}function df(n){let t=s2(n),s=t.matches[t.matches.length-1];return Be(s.route.id,`${n} can only be used on routes that contain a unique "id"`),s.route.id}function a2(){return df("useRouteId")}function r2(){var r;let n=_.useContext(cf),t=i2("useRouteError"),s=df("useRouteError");return n!==void 0?n:(r=t.errors)==null?void 0:r[s]}function l2(){let{router:n}=n2("useNavigate"),t=df("useNavigate"),s=_.useRef(!1);return vy(()=>{s.current=!0}),_.useCallback(async(l,c={})=>{yn(s.current,gy),s.current&&(typeof l=="number"?n.navigate(l):await n.navigate(l,{fromRouteId:t,...c}))},[n,t])}var tg={};function by(n,t,s){!t&&!tg[n]&&(tg[n]=!0,yn(!1,s))}_.memo(o2);function o2({routes:n,future:t,state:s}){return yy(n,void 0,s,t)}function Lt(n){Be(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function c2({basename:n="/",children:t=null,location:s,navigationType:r="POP",navigator:l,static:c=!1}){Be(!$r(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let u=n.replace(/^\/*/,"/"),h=_.useMemo(()=>({basename:u,navigator:l,static:c,future:{}}),[u,l,c]);typeof s=="string"&&(s=oa(s));let{pathname:m="/",search:g="",hash:v="",state:b=null,key:x="default"}=s,S=_.useMemo(()=>{let T=$n(m,u);return T==null?null:{location:{pathname:T,search:g,hash:v,state:b,key:x},navigationType:r}},[u,m,g,v,b,x,r]);return yn(S!=null,`<Router basename="${u}"> is not able to match the URL "${m}${g}${v}" because it does not start with the basename, so the <Router> won't render anything.`),S==null?null:_.createElement(xn.Provider,{value:h},_.createElement(qr.Provider,{children:t,value:S}))}function u2({children:n,location:t}){return ZS(Od(n),t)}function Od(n,t=[]){let s=[];return _.Children.forEach(n,(r,l)=>{if(!_.isValidElement(r))return;let c=[...t,l];if(r.type===_.Fragment){s.push.apply(s,Od(r.props.children,c));return}Be(r.type===Lt,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Be(!r.props.index||!r.props.children,"An index route cannot have child routes.");let u={id:r.props.id||c.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,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,
51shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(u.children=Od(r.props.children,c)),s.push(u)}),s}var So="get",_o="application/x-www-form-urlencoded";function zo(n){return n!=null&&typeof n.tagName=="string"}function d2(n){return zo(n)&&n.tagName.toLowerCase()==="button"}function f2(n){return zo(n)&&n.tagName.toLowerCase()==="form"}function h2(n){return zo(n)&&n.tagName.toLowerCase()==="input"}function m2(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}function p2(n,t){return n.button===0&&(!t||t==="_self")&&!m2(n)}var uo=null;function g2(){if(uo===null)try{new FormData(document.createElement("form"),0),uo=!1}catch{uo=!0}return uo}var v2=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function cd(n){return n!=null&&!v2.has(n)?(yn(!1,`"${n}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${_o}"`),null):n}function y2(n,t){let s,r,l,c,u;if(f2(n)){let h=n.getAttribute("action");r=h?$n(h,t):null,s=n.getAttribute("method")||So,l=cd(n.getAttribute("enctype"))||_o,c=new FormData(n)}else if(d2(n)||h2(n)&&(n.type==="submit"||n.type==="image")){let h=n.form;if(h==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let m=n.getAttribute("formaction")||h.getAttribute("action");if(r=m?$n(m,t):null,s=n.getAttribute("formmethod")||h.getAttribute("method")||So,l=cd(n.getAttribute("formenctype"))||cd(h.getAttribute("enctype"))||_o,c=new FormData(h,n),!g2()){let{name:g,type:v,value:b}=n;if(v==="image"){let x=g?`${g}.`:"";c.append(`${x}x`,"0"),c.append(`${x}y`,"0")}else g&&c.append(g,b)}}else{if(zo(n))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');s=So,r=null,l=_o,u=n}return c&&l==="text/plain"&&(u=c,c=void 0),{action:r,method:s.toLowerCase(),encType:l,formData:c,body:u}}function ff(n,t){if(n===!1||n===null||typeof n>"u")throw new Error(t)}async function b2(n,t){if(n.id in t)return t[n.id];try{let s=await import(n.module);return t[n.id]=s,s}catch(s){return console.error(`Error loading route module \`${n.module}\`, reloading page...`),console.error(s),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function x2(n){return n==null?!1:n.href==null?n.rel==="preload"&&typeof n.imageSrcSet=="string"&&typeof n.imageSizes=="string":typeof n.rel=="string"&&typeof n.href=="string"}async function w2(n,t,s){let r=await Promise.all(n.map(async l=>{let c=t.routes[l.route.id];if(c){let u=await b2(c,s);return u.links?u.links():[]}return[]}));return E2(r.flat(1).filter(x2).filter(l=>l.rel==="stylesheet"||l.rel==="preload").map(l=>l.rel==="stylesheet"?{...l,rel:"prefetch",as:"style"}:{...l,rel:"prefetch"}))}function ng(n,t,s,r,l,c){let u=(m,g)=>s[g]?m.route.id!==s[g].route.id:!0,h=(m,g)=>{var v;return s[g].pathname!==m.pathname||((v=s[g].route.path)==null?void 0:v.endsWith("*"))&&s[g].params["*"]!==m.params["*"]};return c==="assets"?t.filter((m,g)=>u(m,g)||h(m,g)):c==="data"?t.filter((m,g)=>{var b;let v=r.routes[m.route.id];if(!v||!v.hasLoader)return!1;if(u(m,g)||h(m,g))return!0;if(m.route.shouldRevalidate){let x=m.route.shouldRevalidate({currentUrl:new URL(l.pathname+l.search+l.hash,window.origin),currentParams:((b=s[0])==null?void 0:b.params)||{},nextUrl:new URL(n,window.origin),nextParams:m.params,defaultShouldRevalidate:!0});if(typeof x=="boolean")return x}return!0}):[]}function S2(n,t,{includeHydrateFallback:s}={}){return _2(n.map(r=>{let l=t.routes[r.route.id];if(!l)return[];let c=[l.module];return l.clientActionModule&&(c=c.concat(l.clientActionModule)),l.clientLoaderModule&&(c=c.concat(l.clientLoaderModule)),s&&l.hydrateFallbackModule&&(c=c.concat(l.hydrateFallbackModule)),l.imports&&(c=c.concat(l.imports)),c}).flat(1))}function _2(n){return[...new Set(n)]}function T2(n){let t={},s=Object.keys(n).sort();for(let r of s)t[r]=n[r];return t}function E2(n,t){let s=new Set;return new Set(t),n.reduce((r,l)=>{let c=JSON.stringify(T2(l));return s.has(c)||(s.add(c),r.push({key:c,link:l})),r},[])}
51var j2=new Set([100,101,204,205]);function A2(n,t){let s=typeof n=="string"?new URL(n,typeof window>"u"?"server://singlefetch/":window.location.origin):n;return s.pathname==="/"?s.pathname="_root.data":t&&$n(s.pathname,t)==="/"?s.pathname=`${t.replace(/\/$/,"")}/_root.data`:s.pathname=`${s.pathname.replace(/\/$/,"")}.data`,s}function xy(){let n=_.useContext(ca);return ff(n,"You must render this element inside a <DataRouterContext.Provider> element"),n}function R2(){let n=_.useContext(Uo);return ff(n,"You must render this element inside a <DataRouterStateContext.Provider> element"),n}var hf=_.createContext(void 0);hf.displayName="FrameworkContext";function wy(){let n=_.useContext(hf);return ff(n,"You must render this element inside a <HydratedRouter> element"),n}function C2(n,t){let s=_.useContext(hf),[r,l]=_.useState(!1),[c,u]=_.useState(!1),{onFocus:h,onBlur:m,onMouseEnter:g,onMouseLeave:v,onTouchStart:b}=t,x=_.useRef(null);_.useEffect(()=>{if(n==="render"&&u(!0),n==="viewport"){let C=A=>{A.forEach(M=>{u(M.isIntersecting)})},j=new IntersectionObserver(C,{threshold:.5});return x.current&&j.observe(x.current),()=>{j.disconnect()}}},[n]),_.useEffect(()=>{if(r){let C=setTimeout(()=>{u(!0)},100);return()=>{clearTimeout(C)}}},[r]);let S=()=>{l(!0)},T=()=>{l(!1),u(!1)};return s?n!=="intent"?[c,x,{}]:[c,x,{onFocus:pr(h,S),onBlur:pr(m,T),onMouseEnter:pr(g,S),onMouseLeave:pr(v,T),onTouchStart:pr(b,S)}]:[!1,x,{}]}function pr(n,t){return s=>{n&&n(s),s.defaultPrevented||t(s)}}function N2({page:n,...t}){let{router:s}=xy(),r=_.useMemo(()=>cy(s.routes,n,s.basename),[s.routes,n,s.basename]);return r?_.createElement(D2,{page:n,matches:r,...t}):null}function O2(n){let{manifest:t,routeModules:s}=wy(),[r,l]=_.useState([]);return _.useEffect(()=>{let c=!1;return w2(n,t,s).then(u=>{c||l(u)}),()=>{c=!0}},[n,t,s]),r}function D2({page:n,matches:t,...s}){let r=Ut(),{manifest:l,routeModules:c}=wy(),{basename:u}=xy(),{loaderData:h,matches:m}=R2(),g=_.useMemo(()=>ng(n,t,m,l,r,"data"),[n,t,m,l,r]),v=_.useMemo(()=>ng(n,t,m,l,r,"assets"),[n,t,m,l,r]),b=_.useMemo(()=>{if(n===r.pathname+r.search+r.hash)return[];let T=new Set,C=!1;if(t.forEach(A=>{var D;let M=l.routes[A.route.id];!M||!M.hasLoader||(!g.some(B=>B.route.id===A.route.id)&&A.route.id in h&&((D=c[A.route.id])!=null&&D.shouldRevalidate)||M.hasClientLoader?C=!0:T.add(A.route.id))}),T.size===0)return[];let j=A2(n,u);return C&&T.size>0&&j.searchParams.set("_routes",t.filter(A=>T.has(A.route.id)).map(A=>A.route.id).join(",")),[j.pathname+j.search]},[u,h,r,l,g,t,n,c]),x=_.useMemo(()=>S2(v,l),[v,l]),S=O2(v);return _.createElement(_.Fragment,null,b.map(T=>_.createElement("link",{key:T,rel:"prefetch",as:"fetch",href:T,...s})),x.map(T=>_.createElement("link",{key:T,rel:"modulepreload",href:T,...s})),S.map(({key:T,link:C})=>_.createElement("link",{key:T,...C})))}function M2(...n){return t=>{n.forEach(s=>{typeof s=="function"?s(t):s!=null&&(s.current=t)})}}var Sy=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Sy&&(window.__reactRouterVersion="7.5.3")}catch{}function k2({basename:n,children:t,window:s}){let r=_.useRef();r.current==null&&(r.current=wS({window:s,v5Compat:!0}));let l=r.current,[c,u]=_.useState({action:l.action,location:l.location}),h=_.useCallback(m=>{_.startTransition(()=>u(m))},[u]);return _.useLayoutEffect(()=>l.listen(h),[l,h]),_.createElement(c2,{basename:n,children:t,location:c.location,navigationType:c.action,navigator:l})}var _y=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,yt=_.forwardRef(function({onClick:t,discover:s="render",prefetch:r="none",relative:l,reloadDocument:c,replace:u,state:h,target:m,to:g,preventScrollReset:v,viewTransition:b,...x},S){let{basename:T}=_.useContext(xn),C=typeof g=="string"&&_y.test(g),j,A=!1;if(typeof g=="string"&&C&&(j=g,Sy))try{let $=new URL(window.location.href),W=g.startsWith("//")?new URL($.protocol+g):new URL(g),oe=$n(W.pathname,T);W.origin===$.origin&&oe!=null?g=oe+W.search+W.hash:A=!0}catch{yn(!1,`<Link to="${g}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let M=FS(g,{relative:l}),[D,B,U]=C2(r,x),I=V2(g,{replace:u,state:h,target:m,preventScrollReset:v,relative:l,viewTransition:b});function Q($){t&&t($),$.defaultPrevented||I($)}let K=_.createElement("a",{...x,...U,href:j||M,onClick:A||c?t:Q,ref:M2(S,B),target:m,"data-discover":!C&&s==="render"?"true":void 0});return D&&!C?_.createElement(_.Fragment,null,K,_.createElement(N2,{page:M})):K});yt.displayName="Link";var L2=_.forwardRef(function({"aria-current":t="page",caseSensitive:s=!1,className:r="",end:l=!1,style:c,to:u,viewTransition:h,children:m,...g},v){let b=Gr(u,{relative:g.relative}),x=Ut(),S=_.useContext(Uo),{navigator:T,basename:C}=_.useContext(xn),j=S!=null&&$2(b)&&h===!0,A=T.encodeLocation?T.encodeLocation(b).pathname:b.pathname,M=x.pathname,D=S&&S.navigation&&S.navigation.location?S.navigation.location.pathname:null;s||(M=M.toLowerCase(),D=D?D.toLowerCase():null,A=A.toLowerCase()),D&&C&&(D=$n(D,C)||D);const B=A!=="/"&&A.endsWith("/")?A.length-1:A.length;let U=M===A||!l&&M.startsWith(A)&&M.charAt(B)==="/",I=D!=null&&(D===A||!l&&D.startsWith(A)&&D.charAt(A.length)==="/"),Q={isActive:U,isPending:I,isTransitioning:j},K=U?t:void 0,$;typeof r=="function"?$=r(Q):$=[r,U?"active":null,I?"pending":null,j?"transitioning":null].filter(
51Boolean).join(" ");let W=typeof c=="function"?c(Q):c;return _.createElement(yt,{...g,"aria-current":K,className:$,ref:v,style:W,to:u,viewTransition:h},typeof m=="function"?m(Q):m)});L2.displayName="NavLink";var P2=_.forwardRef(({discover:n="render",fetcherKey:t,navigate:s,reloadDocument:r,replace:l,state:c,method:u=So,action:h,onSubmit:m,relative:g,preventScrollReset:v,viewTransition:b,...x},S)=>{let T=H2(),C=q2(h,{relative:g}),j=u.toLowerCase()==="get"?"get":"post",A=typeof h=="string"&&_y.test(h),M=D=>{if(m&&m(D),D.defaultPrevented)return;D.preventDefault();let B=D.nativeEvent.submitter,U=(B==null?void 0:B.getAttribute("formmethod"))||u;T(B||D.currentTarget,{fetcherKey:t,method:U,navigate:s,replace:l,state:c,relative:g,preventScrollReset:v,viewTransition:b})};return _.createElement("form",{ref:S,method:j,action:C,onSubmit:r?m:M,...x,"data-discover":!A&&n==="render"?"true":void 0})});P2.displayName="Form";function U2(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Ty(n){let t=_.useContext(ca);return Be(t,U2(n)),t}function V2(n,{target:t,replace:s,state:r,preventScrollReset:l,relative:c,viewTransition:u}={}){let h=Vo(),m=Ut(),g=Gr(n,{relative:c}
51);return _.useCallback(v=>{if(p2(v,t)){v.preventDefault();let b=s!==void 0?s:Dr(m)===Dr(g);h(n,{replace:b,state:r,preventScrollReset:l,relative:c,viewTransition:u})}},[m,h,g,s,r,t,n,l,c,u])}var z2=0,B2=()=>`__${String(++z2)}__`;function H2(){let{router:n}=Ty("useSubmit"),{basename:t}=_.useContext(xn),s=a2();return _.useCallback(async(r,l={})=>{let{action:c,method:u,encType:h,formData:m,body:g}=y2(r,t);if(l.navigate===!1){let v=l.fetcherKey||B2();await n.fetch(v,s,l.action||c,{preventScrollReset:l.preventScrollReset,formData:m,body:g,formMethod:l.method||u,formEncType:l.encType||h,flushSync:l.flushSync})}else await n.navigate(l.action||c,{preventScrollReset:l.preventScrollReset,formData:m,body:g,formMethod:l.method||u,formEncType:l.encType||h,replace:l.replace,state:l.state,fromRouteId:s,flushSync:l.flushSync,viewTransition:l.viewTransition})},[n,t,s])}function q2(n,{relative:t}={}){let{basename:s}=_.useContext(xn),r=_.useContext(wn);Be(r,"useFormAction must be used inside a RouteContext");let[l]=r.matches.slice(-1),c={...Gr(n||".",{relative:t})},u=Ut();if(n==null){c.search=u.search;let h=new URLSearchParams(c.search),m=h.getAll("index");if(m.some(v=>v==="")){h.delete("index"),m.filter(b=>b).forEach(b=>h.append("index",b));let v=h.toString();c.search=v?`?${v}`:""}}return(!n||n===".")&&l.route.index&&(c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index"),s!=="/"&&(c.pathname=c.pathname==="/"?s:Bn([s,c.pathname])),Dr(c)}function $2(n,t={}){let s=_.useContext(py);Be(s!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=Ty("useViewTransitionState"),l=Gr(n,{relative:t.relative});if(!s.isTransitioning)return!1;let c=$n(s.currentLocation.pathname,r)||s.currentLocation.pathname,u=$n(s.nextLocation.pathname,r)||s.nextLocation.pathname;return Co(l.pathname,u)!=null||Co(l.pathname,c)!=null}new TextEncoder;[...j2];const mf=_.createContext({});function Gn(n){const t=_.useRef(null);return t.current===null&&(t.current=n()),t.current}const Bo=_.createContext(null),ua=_.createContext({transformPagePoint:n=>n,isStatic:!1,reducedMotion:"never"});class G2 extends _.Component{getSnapshotBeforeUpdate(t){const s=this.props.childRef.current;if(s&&t.isPresent&&!this.props.isPresent){const r=s.offsetParent,l=r instanceof HTMLElement&&r.offsetWidth||0,c=this.props.sizeRef.current;c.height=s.offsetHeight||0,c.width=s.offsetWidth||0,c.top=s.offsetTop,c.left=s.offsetLeft,c.right=l-c.width-c.left}return null}componentDidUpdate(){}render(){return this.props.children}}function Y2({children:n,isPresent:t,anchorX:s}){const r=_.useId(),l=_.useRef(null),c=_.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:u}=_.useContext(ua);return _.useInsertionEffect(()=>{const{width:h,height:m,top:g,left:v,right:b}=c.current;if(t||!l.current||!h||!m)return;const x=s==="left"?`left: ${v}`:`right: ${b}`;l.current.dataset.motionPopId=r;const S=document.createElement("style");return u&&(S.nonce=u),document.head.appendChild(S),S.sheet&&S.sheet.insertRule(` 52 [data-motion-pop-id="${r}"] { 53 position: absolute !important; 54 width: ${h}px !important; 55 height: ${m}px !important; 56 ${x}px !important; 57 top: ${g}px !important; 58 } 59 `),()=>{document.head.removeChild(S)}},[t]),f.jsx(G2,{isPresent:t,childRef:l,sizeRef:c,children:_.cloneElement(n,{ref:l})})}const X2=({children:n,initial:t,isPresent:s,onExitComplete:r,custom:l,presenceAffectsLayout:c,mode:u,anchorX:h})=>{const m=Gn(F2),g=_.useId(),v=_.useCallback(x=>{m.set(x,!0);for(const S of m.values())if(!S)return;r&&r()},[m,r]),b=_.useMemo(()=>({id:g,initial:t,isPresent:s,custom:l,onExitComplete:v,register:x=>(m.set(x,!1),()=>m.delete(x))}),c?[Math.random(),v]:[s,v]);return _.useMemo(()=>{m.forEach((x,S)=>m.set(S,!1))},[s]),_.useEffect(()=>{!s&&!m.size&&r&&r()},[s]),u==="popLayout"&&(n=f.jsx(Y2,{isPresent:s,anchorX:h,children:n})),f.jsx(Bo.Provider,{value:b,children:n})};function F2(){return new Map}function Ey(n=!0){const t=_.useContext(Bo);if(t===null)return[!0,null];const{isPresent:s,onExitComplete:r,register:l}=t,c=_.useId();_.useEffect(()=>{if(n)return l(c)},[n]);const u=_.useCallback(()=>n&&r&&r(c),[c,r,n]);return!s&&r?[!1,u]:[!0]}const fo=n=>n.key||"";function ig(n){const t=[];
vendor: 6,086 bytes, line 59
59return _.Children.forEach(n,s=>{_.isValidElement(s)&&t.push(s)}),t}const pf=typeof window<"u",da=pf?_.useLayoutEffect:_.useEffect,rn=({children:n,custom:t,initial:s=!0,onExitComplete:r,presenceAffectsLayout:l=!0,mode:c="sync",propagate:u=!1,anchorX:h="left"})=>{const[m,g]=Ey(u),v=_.useMemo(()=>ig(n),[n]),b=u&&!m?[]:v.map(fo),x=_.useRef(!0),S=_.useRef(v),T=Gn(()=>new Map),[C,j]=_.useState(v),[A,M]=_.useState(v);da(()=>{x.current=!1,S.current=v;for(let U=0;U<A.length;U++){const I=fo(A[U]);b.includes(I)?T.delete(I):T.get(I)!==!0&&T.set(I,!1)}},[A,b.length,b.join("-")]);const D=[];if(v!==C){let U=[...v];for(let I=0;I<A.length;I++){const Q=A[I],K=fo(Q);b.includes(K)||(U.splice(I,0,Q),D.push(Q))}return c==="wait"&&D.length&&(U=D),M(ig(U)),j(v),null}const{forceRender:B}=_.useContext(mf);return f.jsx(f.Fragment,{children:A.map(U=>{const I=fo(U),Q=u&&!m?!1:v===A||b.includes(I),K=()=>{if(T.has(I))T.set(I,!0);else return;let $=!0;T.forEach(W=>{W||($=!1)}),$&&(B==null||B(),M(S.current),u&&(g==null||g()),r&&r())};return f.jsx(X2,{isPresent:Q,initial:!x.current||s?void 0:!1,custom:t,presenceAffectsLayout:l,mode:c,onExitComplete:Q?void 0:K,anchorX:h,children:U},I)})})},bt=n=>n;let I2=bt,jy=bt;function gf(n){let t;return()=>(t===void 0&&(t=n()),t)}const ts=(n,t,s)=>{const r=t-n;return r===0?1:(s-n)/r},Hn=n=>n*1e3,qn=n=>n/1e3,K2={useManualTiming:!1},ho=["read","resolveKeyframes","update","preRender","render","postRender"];function Z2(n,t){let s=new Set,r=new Set,l=!1,c=!1;const u=new WeakSet;let h={delta:0,timestamp:0,isProcessing:!1};function m(v){u.has(v)&&(g.schedule(v),n()),v(h)}const g={schedule:(v,b=!1,x=!1)=>{const T=x&&l?s:r;return b&&u.add(v),T.has(v)||T.add(v),v},cancel:v=>{r.delete(v),u.delete(v)},process:v=>{if(h=v,l){c=!0;return}l=!0,[s,r]=[r,s],s.forEach(m),s.clear(),l=!1,c&&(c=!1,g.process(v))}};return g}const Q2=40;function Ay(n,t){let s=!1,r=!0;const l={delta:0,timestamp:0,isProcessing:!1},c=()=>s=!0,u=ho.reduce((A,M)=>(A[M]=Z2(c),A),{}),{read:h,resolveKeyframes:m,update:g,preRender:v,render:b,postRender:x}=u,S=()=>{const A=performance.now();s=!1,l.delta=r?1e3/60:Math.max(Math.min(A-l.timestamp,Q2),1),l.timestamp=A,l.isProcessing=!0,h.process(l),m.process(l),g.process(l),v.process(l),b.process(l),x.process(l),l.isProcessing=!1,s&&t&&(r=!1,n(S))},T=()=>{s=!0,r=!0,l.isProcessing||n(S)};return{schedule:ho.reduce((A,M)=>{const D=u[M];return A[M]=(B,U=!1,I=!1)=>(s||T(),D.schedule(B,U,I)),A},{}),cancel:A=>{for(let M=0;M<ho.length;M++)u[ho[M]].cancel(A)},state:l,steps:u}}const{schedule:Te,cancel:Wt,state:ot,steps:ud}=Ay(typeof requestAnimationFrame<"u"?requestAnimationFrame:bt,!0),Ry=_.createContext({strict:!1}),sg={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"]},sa={};for(const n in sg)sa[n]={isEnabled:t=>sg[n].some(s=>!!t[s])};function W2(n){for(const t in n)sa[t]={...sa[t],...n[t]}}const J2=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 No(n){return n.startsWith("while")||n.startsWith("drag")&&n!=="draggable"||n.startsWith("layout")||n.startsWith("onTap")||n.startsWith("onPan")||n.startsWith("onLayout")||J2.has(n)}let Cy=n=>!No(n);function e_(n){n&&(Cy=t=>t.startsWith("on")?!No(t):n(t))}try{e_(require("@emotion/is-prop-valid").default)}catch{}function t_(n,t,s){const r={};for(const l in n)l==="values"&&typeof n.values=="object"||(Cy(l)||s===!0&&No(l)||!t&&!No(l)||n.draggable&&l.startsWith("onDrag"))&&(r[l]=n[l]);return r}function n_(n){if(typeof Proxy>"u")return n;const t=new Map,s=(...r)=>n(...r);return new Proxy(s,{get:(r,l)=>l==="create"?n:(t.has(l)||t.set(l,n(l)),t.get(l))})}const Ho=_.createContext({});function qo(n){return n!==null&&typeof n=="object"&&typeof n.start=="function"}function Mr(n){return typeof n=="string"||Array.isArray(n)}const vf=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],yf=["initial",...vf];function $o(n){return qo(n.animate)||yf.some(t=>Mr(n[t]))}function Ny(n){return!!($o(n)||n.variants)}function i_(n,t){if($o(n)){const{initial:s,animate:r}=n;return{initial:s===!1||Mr(s)?s:void 0,animate:Mr(r)?r:void 0}}return n.inherit!==!1?t:{}}function s_(n){const{initial:t,animate:s}=i_(n,_.useContext(Ho));return _.useMemo(()=>({initial:t,animate:s}),[ag(t),ag(s)])}function ag(n){return Array.isArray(n)?n.join(" "):n}const a_=Symbol.for("motionComponentSymbol");function Zs(n){return n&&typeof n=="object"&&Object.prototype.hasOwnProperty.call(n,"current")}function r_(n,t,s){return _.useCallback(r=>{r&&n.onMount&&n.onMount(r),t&&(r?t.mount(r):t.unmount()),s&&(typeof s=="function"?s(r):Zs(s)&&(s.current=r))},[t])}const bf=n=>n.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),l_="framerAppearId",Oy="data-"+bf(l_),{schedule:xf}=Ay(queueMicrotask,!1),Dy=_.createContext({});function o_(n,t,s,r,l){var c,u;const{visualElement:h}=_.useContext(Ho),m=_.useContext(Ry),g=_.useContext(Bo),v=_.useContext(ua).reducedMotion,b=_.useRef(null);r=r||m.renderer,!b.current&&r&&(b.current=r(n,{visualState:t,parent:h,props:s,presenceContext:g,blockInitialAnimation:g?g.initial===!1:!1,reducedMotionConfig:v}));const x=b.current,S=_.useContext(Dy);x&&!x.projection&&l&&(x.type==="html"||x.type==="svg")&&c_(b.current,s,l,S);const T=_.useRef(!1);_.useInsertionEffect(()=>{x&&T.current&&x.update(s,g)});const C=s[Oy],j=_.useRef(!!C&&!(!((c=window.MotionHandoffIsComplete)===null||c===void 0)&&c.call(window,C))&&
vendor: 9,934 bytes, line 59
59((u=window.MotionHasOptimisedAnimation)===null||u===void 0?void 0:u.call(window,C)));return da(()=>{x&&(T.current=!0,window.MotionIsMounted=!0,x.updateFeatures(),xf.render(x.render),j.current&&x.animationState&&x.animationState.animateChanges())}),_.useEffect(()=>{x&&(!j.current&&x.animationState&&x.animationState.animateChanges(),j.current&&(queueMicrotask(()=>{var A;(A=window.MotionHandoffMarkAsComplete)===null||A===void 0||A.call(window,C)}),j.current=!1))}),x}function c_(n,t,s,r){const{layoutId:l,layout:c,drag:u,dragConstraints:h,layoutScroll:m,layoutRoot:g}=t;n.projection=new s(n.latestValues,t["data-framer-portal-id"]?void 0:My(n.parent)),n.projection.setOptions({layoutId:l,layout:c,alwaysMeasureLayout:!!u||h&&Zs(h),visualElement:n,animationType:typeof c=="string"?c:"both",initialPromotionConfig:r,layoutScroll:m,layoutRoot:g})}function My(n){if(n)return n.options.allowProjection!==!1?n.projection:My(n.parent)}function u_({preloadedFeatures:n,createVisualElement:t,useRender:s,useVisualState:r,Component:l}){var c,u;n&&W2(n);function h(g,v){let b;const x={..._.useContext(ua),...g,layoutId:d_(g)},{isStatic:S}=x,T=s_(g),C=r(g,S);if(!S&&pf){f_();const j=h_(x);b=j.MeasureLayout,T.visualElement=o_(l,C,x,t,j.ProjectionNode)}return f.jsxs(Ho.Provider,{value:T,children:[b&&T.visualElement?f.jsx(b,{visualElement:T.visualElement,...x}):null,s(l,g,r_(C,T.visualElement,v),C,S,T.visualElement)]})}h.displayName=`motion.${typeof l=="string"?l:`create(${(u=(c=l.displayName)!==null&&c!==void 0?c:l.name)!==null&&u!==void 0?u:""})`}`;const m=_.forwardRef(h);return m[a_]=l,m}function d_({layoutId:n}){const t=_.useContext(mf).id;return t&&n!==void 0?t+"-"+n:n}function f_(n,t){_.useContext(Ry).strict}function h_(n){const{drag:t,layout:s}=sa;if(!t&&!s)return{};const r={...t,...s};return{MeasureLayout:t!=null&&t.isEnabled(n)||s!=null&&s.isEnabled(n)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const ky=n=>t=>typeof t=="string"&&t.startsWith(n),wf=ky("--"),m_=ky("var(--"),Sf=n=>m_(n)?p_.test(n.split("/*")[0].trim()):!1,p_=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,kr={};function g_(n){for(const t in n)kr[t]=n[t],wf(t)&&(kr[t].isCSSVariable=!0)}const fa=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],ns=new Set(fa);function Ly(n,{layout:t,layoutId:s}){return ns.has(n)||n.startsWith("origin")||(t||s!==void 0)&&(!!kr[n]||n==="opacity")}const Je=n=>!!(n&&n.getVelocity),Py=(n,t)=>t&&typeof n=="number"?t.transform(n):n,bn=(n,t,s)=>s>t?t:s<n?n:s,ha={test:n=>typeof n=="number",parse:parseFloat,transform:n=>n},Lr={...ha,transform:n=>bn(0,1,n)},mo={...ha,default:1},Yr=n=>({test:t=>typeof t=="string"&&t.endsWith(n)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${n}`}),gi=Yr("deg"),gn=Yr("%"),fe=Yr("px"),v_=Yr("vh"),y_=Yr("vw"),rg={...gn,parse:n=>gn.parse(n)/100,transform:n=>gn.transform(n*100)},b_={borderWidth:fe,borderTopWidth:fe,borderRightWidth:fe,borderBottomWidth:fe,borderLeftWidth:fe,borderRadius:fe,radius:fe,borderTopLeftRadius:fe,borderTopRightRadius:fe,borderBottomRightRadius:fe,borderBottomLeftRadius:fe,width:fe,maxWidth:fe,height:fe,maxHeight:fe,top:fe,right:fe,bottom:fe,left:fe,padding:fe,paddingTop:fe,paddingRight:fe,paddingBottom:fe,paddingLeft:fe,margin:fe,marginTop:fe,marginRight:fe,marginBottom:fe,marginLeft:fe,backgroundPositionX:fe,backgroundPositionY:fe},x_={rotate:gi,rotateX:gi,rotateY:gi,rotateZ:gi,scale:mo,scaleX:mo,scaleY:mo,scaleZ:mo,skew:gi,skewX:gi,skewY:gi,distance:fe,translateX:fe,translateY:fe,translateZ:fe,x:fe,y:fe,z:fe,perspective:fe,transformPerspective:fe,opacity:Lr,originX:rg,originY:rg,originZ:fe},lg={...ha,transform:Math.round},_f={...b_,...x_,zIndex:lg,size:fe,fillOpacity:Lr,strokeOpacity:Lr,numOctaves:lg},w_={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},S_=fa.length;function __(n,t,s){let r="",l=!0;for(let c=0;c<S_;c++){const u=fa[c],h=n[u];if(h===void 0)continue;let m=!0;if(typeof h=="number"?m=h===(u.startsWith("scale")?1:0):m=parseFloat(h)===0,!m||s){const g=Py(h,_f[u]);if(!m){l=!1;const v=w_[u]||u;r+=`${v}(${g}) `}s&&(t[u]=g)}}return r=r.trim(),s?r=s(t,l?"":r):l&&(r="none"),r}function Tf(n,t,s){const{style:r,vars:l,transformOrigin:c}=n;let u=!1,h=!1;for(const m in t){const g=t[m];if(ns.has(m)){u=!0;continue}else if(wf(m)){l[m]=g;continue}else{const v=Py(g,_f[m]);m.startsWith("origin")?(h=!0,c[m]=v):r[m]=v}}if(t.transform||(u||s?r.transform=__(t,n.transform,s):r.transform&&(r.transform="none")),h){const{originX:m="50%",originY:g="50%",originZ:v=0}=c;r.transformOrigin=`${m} ${g} ${v}`}}const Ef=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Uy(n,t,s){for(const r in t)!Je(t[r])&&!Ly(r,s)&&(n[r]=t[r])}function T_({transformTemplate:n},t){return _.useMemo(()=>{const s=Ef();return Tf(s,t,n),Object.assign({},s.vars,s.style)},[t])}function E_(n,t){const s=n.style||{},r={};return Uy(r,s,n),Object.assign(r,T_(n,t)),r}function j_(n,t){const s={},r=E_(n,t);return n.drag&&n.dragListener!==!1&&(s.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=n.drag===!0?"none":`pan-${n.drag==="x"?"y":"x"}`),n.tabIndex===void 0&&(n.onTap||n.onTapStart||n.whileTap)&&(s.tabIndex=0),s.style=r,s}const A_=["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 jf(n){return typeof n!="string"||n.includes("-")?!1:!!(A_.indexOf(n)>-1||/[A-Z]/u.test(n))}const R_={offset:"stroke-dashoffset",array:"stroke-dasharray"},C_={offset:"strokeDashoffset",array:"strokeDasharray"};function N_(n,t,s=1,r=0,l=!0){n.pathLength=1;const c=l?R_:C_;n[c.offset]=fe.transform(-r);const u=fe.transform(t),h=fe.transform(s);n[c.array]=`${u} ${h}`}function og(n,t,s){return typeof n=="string"?n:fe.transform(t+s*n)}function O_(n,t,s){const r=og(t,n.x,n.width),l=og(s,n.y,n.height);return`${r} ${l}`}function Af(n,{attrX:t,attrY:s,attrScale:r,originX:l,originY:c,pathLength:u,pathSpacing:h=1,pathOffset:m=0,...g},v,b){if(Tf(n,g,b),v){n.style.viewBox&&(n.attrs.viewBox=n.style.viewBox);return}n.attrs=n.style,n.style={};const{attrs:x,style:S,dimensions:T}=n;x.transform&&(T&&(S.transform=x.transform),delete x.transform),T&&(l!==void 0||c!==void 0||S.transform)&&(S.transformOrigin=O_(T,l!==void 0?l:.5,c!==void 0?c:.5)),t!==void 0&&(x.x=t),s!==void 0&&(x.y=s),r!==void 0&&(x.scale=r),u!==void 0&&N_(x,u,h,m,!1)}const Vy=()=>({...Ef(),attrs:{}}),Rf=n=>typeof n=="string"&&n.toLowerCase()==="svg";function D_(n,t,s,r){const l=_.useMemo(()=>{const c=Vy();return Af(c,t,Rf(r),n.transformTemplate),{...c.attrs,style:{...c.style}}},[t]);if(n.style){const c={};Uy(c,n.style,n),l.style={...c,...l.style}}return l}function M_(n=!1){return(s,r,l,{latestValues:c},u)=>{const m=(jf(s)?D_:j_)(r,c,u,s),g=t_(r,typeof s=="string",n),v=s!==_.Fragment?{...g,...m,ref:l}:{},{children:b}=r,x=_.useMemo(()=>Je(b)?b.get():b,[b]);return _.createElement(s,{...v,children:x})}}function cg(n){const t=[{},{}];return n==null||n.values.forEach((s,r)=>{t[0][r]=s.get(),t[1][r]=s.getVelocity()}),t}function Cf(n,t,s,r){if(typeof t=="function"){const[l,c]=cg(r);t=t(s!==void 0?s:n.custom,l,c)}if(typeof t=="string"&&(t=n.variants&&n.variants[t]),typeof t=="function"){const[l,c]=cg(r);t=t(s!==void 0?s:n.custom,l,c)}return t}const Dd=n=>Array.isArray(n),k_=n=>!!(n&&typeof n=="object"&&n.mix&&n.toValue),L_=n=>Dd(n)?n[n.length-1]||0:n;function To(n){const t=Je(n)?n.get():n;return k_(t)?t.toValue():t}function P_({scrapeMotionValuesFromProps:n,createRenderState:t,onUpdate:s},r,l,c){const u={latestValues:U_(r,l,c,n),renderState:t()};return s&&(u.onMount=h=>s({props:r,current:h,...u}),u.onUpdate=h=>s(h)),u}const zy=n=>(t,s)=>{const r=_.useContext(Ho),l=_.useContext(Bo),c=()=>P_(n,t,r,l);return s?c():Gn(c)};function U_(n,t,s,r){const l={},c=r(n,{});for(const x in c)l[x]=To(c[x]);let{initial:u,animate:h}=n;const m=$o(n),g=Ny(n);t&&g&&!m&&n.inherit!==!1&&(u===void 0&&(u=t.initial),h===void 0&&(h=t.animate));let v=s?s.initial===!1:!1;v=v||u===!1;const b=v?h:u;if(b&&typeof b!="boolean"&&!qo(b)){const x=Array.isArray(b)?b:[b];for(let S=0;S<x.length;S++){const T=Cf(n,x[S]);if(T){const{transitionEnd:C,transition:j,...A}=T;for(const M in A){let D=A[M];if(Array.isArray(D)){const B=v?D.length-1:0;D=D[B]}D!==null&&(l[M]=D)}for(const M in C)l[M]=C[M]}}}return l}function Nf(n,t,s){var r;const{style:l}=n,c={};for(const u in l)(Je(l[u])||t.style&&Je(t.style[u])||Ly(u,n)||((r=s==null?void 0:s.getValue(u))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(c[u]=l[u]);return c}const V_={useVisualState:zy({scrapeMotionValuesFromProps:Nf,createRenderState:Ef})};function By(n,t){try{t.dimensions=typeof n.getBBox=="function"?n.getBBox():n.getBoundingClientRect()}catch{t.dimensions={x:0,y:0,width:0,height:0}}}function Hy(n,{style:t,vars:s},r,l){Object.assign(n.style,t,l&&l.getProjectionStyles(r));for(const c in s)n.style.setProperty(c,s[c])}const qy=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function $y(n,t,s,r){Hy(n,t,void 0,r);for(const l in t.attrs)n.setAttribute(qy.has(l)?l:bf(l),t.attrs[l])}function Gy(n,t,s){const r=Nf(n,t,s);for(const l in n)if(Je(n[l])||Je(t[l])){const c=fa.indexOf(l)!==-1?"attr"+l.charAt(0).toUpperCase()+l.substring(1):l;r[c]=n[l]}return r}const ug=["x","y","width","height","cx","cy","r"],z_={useVisualState:zy({scrapeMotionValuesFromProps:Gy,createRenderState:Vy,onUpdate:({props:n,prevProps:t,current:s,renderState:r,latestValues:l})=>
vendor: 14,650 bytes, line 59
59{if(!s)return;let c=!!n.drag;if(!c){for(const h in l)if(ns.has(h)){c=!0;break}}if(!c)return;let u=!t;if(t)for(let h=0;h<ug.length;h++){const m=ug[h];n[m]!==t[m]&&(u=!0)}u&&Te.read(()=>{By(s,r),Te.render(()=>{Af(r,l,Rf(s.tagName),n.transformTemplate),$y(s,r)})})}})};function B_(n,t){return function(r,{forwardMotionProps:l}={forwardMotionProps:!1}){const u={...jf(r)?z_:V_,preloadedFeatures:n,useRender:M_(l),createVisualElement:t,Component:r};return u_(u)}}function Pr(n,t,s){const r=n.getProps();return Cf(r,t,s!==void 0?s:r.custom,n)}const Yy=gf(()=>window.ScrollTimeline!==void 0);class H_{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,s){for(let r=0;r<this.animations.length;r++)this.animations[r][t]=s}attachTimeline(t,s){const r=this.animations.map(l=>{if(Yy()&&l.attachTimeline)return l.attachTimeline(t);if(typeof s=="function")return s(l)});return()=>{r.forEach((l,c)=>{l&&l(),this.animations[c].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let s=0;s<this.animations.length;s++)t=Math.max(t,this.animations[s].duration);return t}runAll(t){this.animations.forEach(s=>s[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class q_ extends H_{then(t,s){return Promise.all(this.animations).then(t).catch(s)}}function Of(n,t){return n?n[t]||n.default||n:void 0}const Md=2e4;function Xy(n){let t=0;const s=50;let r=n.next(t);for(;!r.done&&t<Md;)t+=s,r=n.next(t);return t>=Md?1/0:t}function Df(n){return typeof n=="function"}function dg(n,t){n.timeline=t,n.onfinish=null}const Mf=n=>Array.isArray(n)&&typeof n[0]=="number",$_={linearEasing:void 0};function G_(n,t){const s=gf(n);return()=>{var r;return(r=$_[t])!==null&&r!==void 0?r:s()}}const Oo=G_(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Fy=(n,t,s=10)=>{let r="";const l=Math.max(Math.round(t/s),2);for(let c=0;c<l;c++)r+=n(ts(0,l-1,c))+", ";return`linear(${r.substring(0,r.length-2)})`};function Iy(n){return!!(typeof n=="function"&&Oo()||!n||typeof n=="string"&&(n in kd||Oo())||Mf(n)||Array.isArray(n)&&n.every(Iy))}const xr=([n,t,s,r])=>`cubic-bezier(${n}, ${t}, ${s}, ${r})`,kd={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:xr([0,.65,.55,1]),circOut:xr([.55,0,1,.45]),backIn:xr([.31,.01,.66,-.59]),backOut:xr([.33,1.53,.69,.99])};function Ky(n,t){if(n)return typeof n=="function"&&Oo()?Fy(n,t):Mf(n)?xr(n):Array.isArray(n)?n.map(s=>Ky(s,t)||kd.easeOut):kd[n]}const sn={x:!1,y:!1};function Zy(){return sn.x||sn.y}function kf(n,t,s){var r;if(n instanceof EventTarget)return[n];if(typeof n=="string"){let l=document;const c=(r=void 0)!==null&&r!==void 0?r:l.querySelectorAll(n);return c?Array.from(c):[]}return Array.from(n)}function Qy(n,t){const s=kf(n),r=new AbortController,l={passive:!0,...t,signal:r.signal};return[s,l,()=>r.abort()]}function fg(n){return!(n.pointerType==="touch"||Zy())}function Y_(n,t,s={}){const[r,l,c]=Qy(n,s),u=h=>{if(!fg(h))return;const{target:m}=h,g=t(m,h);if(typeof g!="function"||!m)return;const v=b=>{fg(b)&&(g(b),m.removeEventListener("pointerleave",v))};m.addEventListener("pointerleave",v,l)};return r.forEach(h=>{h.addEventListener("pointerenter",u,l)}),c}function _r(n,t){const s=`${t}PointerCapture`;if(n.target instanceof Element&&s in n.target&&n.pointerId!==void 0)try{n.target[s](n.pointerId)}catch{}}const Wy=(n,t)=>t?n===t?!0:Wy(n,t.parentElement):!1,Lf=n=>n.pointerType==="mouse"?typeof n.button!="number"||n.button<=0:n.isPrimary!==!1,X_=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function F_(n){return X_.has(n.tagName)||n.tabIndex!==-1}const wr=new WeakSet;function hg(n){return t=>{t.key==="Enter"&&n(t)}}function dd(n,t){n.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const I_=(n,t)=>{const s=n.currentTarget;if(!s)return;const r=hg(()=>{if(wr.has(s))return;dd(s,"down");const l=hg(()=>{dd(s,"up")}),c=()=>dd(s,"cancel");s.addEventListener("keyup",l,t),s.addEventListener("blur",c,t)});s.addEventListener("keydown",r,t),s.addEventListener("blur",()=>s.removeEventListener("keydown",r),t)};function mg(n){return Lf(n)&&!Zy()}function K_(n,t,s={}){const[r,l,c]=Qy(n,s),u=h=>{const m=h.currentTarget;if(!m||!mg(h)||wr.has(m))return;wr.add(m),_r(h,"set");const g=t(m,h),v=(S,T)=>{m.removeEventListener("pointerup",b),m.removeEventListener("pointercancel",x),_r(S,"release"),!(!mg(S)||!wr.has(m))&&(wr.delete(m),typeof g=="function"&&g(S,{success:T}))},b=S=>{(S.isTrusted?Z_(S,m instanceof Element?m.getBoundingClientRect():{left:0,top:0,right:window.innerWidth,bottom:window.innerHeight}):!1)?v(S,!1):v(S,!(m instanceof Element)||Wy(m,S.target))},x=S=>{v(S,!1)};m.addEventListener("pointerup",b,l),m.addEventListener("pointercancel",x,l),m.addEventListener("lostpointercapture",x,l)};return r.forEach(h=>{h=s.useGlobalTarget?window:h;let m=!1;h instanceof HTMLElement&&(m=!0,!F_(h)&&h.getAttribute("tabindex")===null&&(h.tabIndex=0)),h.addEventListener("pointerdown",u,l),m&&h.addEventListener("focus",g=>I_(g,l),l)}),c}function Z_(n,t){return n.clientX<t.left||n.clientX>t.right||n.clientY<t.top||n.clientY>t.bottom}function Q_(n){return n==="x"||n==="y"?sn[n]?null:(sn[n]=!0,()=>{sn[n]=!1}):sn.x||sn.y?null:(sn.x=sn.y=!0,()=>{sn.x=sn.y=!1})}const Jy=new Set(["width","height","top","left","right","bottom",...fa]);let Eo;function W_(){Eo=void 0}const vn={now:()=>(Eo===void 0&&vn.set(ot.isProcessing||K2.useManualTiming?ot.timestamp:performance.now()),Eo),set:n=>{Eo=n,queueMicrotask(W_)}};function Pf(n,t){n.indexOf(t)===-1&&n.push(t)}function Uf(n,t){const s=n.indexOf(t);s>-1&&n.splice(s,1)}class Vf{constructor(){this.subscriptions=[]}add(t){return Pf(this.subscriptions,t),()=>Uf(this.subscriptions,t)}notify(t,s,r){const l=this.subscriptions.length;if(l)if(l===1)this.subscriptions[0](t,s,r);else for(let c=0;c<l;c++){const u=this.subscriptions[c];u&&u(t,s,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function zf(n,t){return t?n*(1e3/t):0}const pg=30,J_=n=>!isNaN(parseFloat(n)),Tr={current:void 0};class eT{constructor(t,s={}){this.version="12.4.11",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,l=!0)=>{const c=vn.now();this.updatedAt!==c&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),l&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=s.owner}setCurrent(t){this.current=t,this.updatedAt=vn.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=J_(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,s){this.events[t]||(this.events[t]=new Vf);const r=this.events[t].add(s);return t==="change"?()=>{r(),Te.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,s){this.passiveEffect=t,this.stopPassiveEffect=s}set(t,s=!0){!s||!this.passiveEffect?this.updateAndNotify(t,s):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,s,r){this.set(s),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,s=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,s&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return Tr.current&&Tr.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const t=vn.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>pg)return 0;const s=Math.min(this.updatedAt-this.prevUpdatedAt,pg);return zf(parseFloat(this.current)-parseFloat(this.prevFrameValue),s)}start(t){return this.stop(),new Promise(s=>{this.hasAnimated=!0,this.animation=t(s),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function pn(n,t){return new eT(n,t)}function tT(n,t,s){n.hasValue(t)?n.getValue(t).set(s):n.addValue(t,pn(s))}function Bf(n,t){const s=Pr(n,t);let{transitionEnd:r={},transition:l={},...c}=s||{};c={...c,...r};for(const u in c){const h=L_(c[u]);tT(n,u,h)}}function nT(n){return!!(Je(n)&&n.add)}function Ld(n,t){const s=n.getValue("willChange");if(nT(s))return s.add(t)}function e1(n){return n.props[Oy]}const t1=(n,t,s)=>(((1-3*s+3*t)*n+(3*s-6*t))*n+3*t)*n,iT=1e-7,sT=12;function aT(n,t,s,r,l){let c,u,h=0;do u=t+(s-t)/2,c=t1(u,r,l)-n,c>0?s=u:t=u;while(Math.abs(c)>iT&&++h<sT);return u}function Xr(n,t,s,r){if(n===t&&s===r)return bt;const l=c=>aT(c,0,1,n,s);return c=>c===0||c===1?c:t1(l(c),t,r)}const n1=n=>t=>t<=.5?n(2*t)/2:(2-n(2*(1-t)))/2,i1=n=>t=>1-n(1-t),s1=Xr(.33,1.53,.69,.99),Hf=i1(s1),a1=n1(Hf),r1=n=>(n*=2)<1?.5*Hf(n):.5*(2-Math.pow(2,-10*(n-1))),qf=n=>1-Math.sin(Math.acos(n)),l1=i1(qf),o1=n1(qf),c1=n=>/^0[^.\s]+$/u.test(n);function rT(n){return typeof n=="number"?n===0:n!==null?n==="none"||n==="0"||c1(n):!0}const Er=n=>Math.round(n*1e5)/1e5,$f=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function lT(n){return n==null}const oT=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Gf=(n,t)=>s=>!!(typeof s=="string"&&oT.test(s)&&s.startsWith(n)||t&&!lT(s)&&Object.prototype.hasOwnProperty.call(s,t)),u1=(n,t,s)=>r=>{if(typeof r!="string")return r;const[l,c,u,h]=r.match($f);return{[n]:parseFloat(l),[t]:parseFloat(c),[s]:parseFloat(u),alpha:h!==void 0?parseFloat(h):1}},cT=n=>bn(0,255,n),fd={...ha,transform:n=>Math.round(cT(n))},Ji={test:Gf("rgb","red"),parse:u1("red","green","blue"),transform:({red:n,green:t,blue:s,alpha:r=1})=>"rgba("+fd.transform(n)+", "+fd.transform(t)+", "+fd.transform(s)+", "+Er(Lr.transform(r))+")"};function uT(n){let t="",s="",r="",l="";return n.length>5?(t=n.substring(1,3),s=n.substring(3,5),r=n.substring(5,7),l=n.substring(7,9)):(t=n.substring(1,2),s=n.substring(2,3),r=n.substring(3,4),l=n.substring(4,5),t+=t,s+=s,r+=r,l+=l),{red:parseInt(t,16),green:parseInt(s,16),blue:parseInt(r,16),alpha:l?parseInt(l,16)/255:1}}const Pd={test:Gf("#"),parse:uT,transform:Ji.transform},Qs={test:Gf("hsl","hue"),parse:u1("hue","saturation","lightness"),transform:({hue:n,saturation:t,lightness:s,alpha:r=1})=>"hsla("+Math.round(n)+", "+gn.transform(Er(t))+", "+gn.transform(Er(s))+", "+Er(Lr.transform(r))+")"},vt={test:n=>Ji.test(n)||Pd.test(n)||Qs.test(n),parse:n=>Ji.test(n)?Ji.parse(n):Qs.test(n)?Qs.parse(n):Pd.parse(n),transform:n=>typeof n=="string"?n:n.hasOwnProperty("red")?Ji.transform(n):Qs.transform(n)},dT=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function fT(n){var t,s;return isNaN(n)&&typeof n=="string"&&(((t=n.match($f))===null||t===void 0?void 0:t.length)||0)+(((s=n.match(dT))===null||s===void 0?void 0:s.length)||0)>0}const d1="number",f1="color",hT="var",mT="var(",gg="${}",pT=/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 Ur(n){const t=n.toString(),s=[],r={color:[],number:[],var:[]},l=[];let c=0;const h=t.replace(pT,m=>(vt.test(m)?(r.color.push(c),l.push(f1),s.push(vt.parse(m))):m.startsWith(mT)?(r.var.push(c),l.push(hT),s.push(m)):(r.number.push(c),l.push(d1),s.push(parseFloat(m))),++c,gg)).split(gg);return{values:s,split:h,indexes:r,types:l}}function h1(n){return Ur(n).values}function m1(n){const{split:t,types:s}=Ur(n),r=t.length;return l=>{let c="";for(let u=0;u<r;u++)if(c+=t[u],l[u]!==void 0){const h=s[u];h===d1?c+=Er(l[u]):h===f1?c+=vt.transform(l[u]):c+=l[u]}return c}}const gT=n=>typeof n=="number"?0:n;function vT(n){const t=h1(n);return m1(n)(t.map(gT))}const Si={test:fT,parse:h1,createTransformer:m1,getAnimatableNone:vT},yT=new Set(["brightness","contrast","saturate","opacity"]);function bT(n){const[t,s]=n.slice(0,-1).split("(");if(t==="drop-shadow")return n;const[r]=s.match($f)||[];if(!r)return n;const l=s.replace(r,"");let c=yT.has(t)?1:0;return r!==s&&(c*=100),t+"("+c+l+")"}const xT=/\b([a-z-]*)\(.*?\)/gu,Ud={...Si,getAnimatableNone:n=>{const t=n.match(xT);return t?t.map(bT).join(" "):n}},wT={..._f,color:vt,backgroundColor:vt,outlineColor:vt,fill:vt,stroke:vt,borderColor:vt,borderTopColor:vt,borderRightColor:vt,borderBottomColor:vt,borderLeftColor:vt,filter:Ud,WebkitFilter:Ud},Yf=n=>wT[n];function p1(n,t){let s=Yf(n);return s!==Ud&&(s=Si),s.getAnimatableNone?s.getAnimatableNone(t):void 0}const ST=new Set(["auto","none","0"]);function _T(n,t,s){let r=0,l;for(;r<n.length&&!l;){const c=n[r];typeof c=="string"&&!ST.has(c)&&Ur(c).values.length&&(l=n[r]),r++}if(l&&s)for(const c of t)n[c]=p1(s,l)}const vg=n=>n===ha||n===fe,yg=(n,t)=>parseFloat(n.split(", ")[t]),bg=(n,t)=>(s,{transform:r})=>{if(r==="none"||!r)return 0;const l=r.match(/^matrix3d\((.+)\)$/u);if(l)return yg(l[1],t);{const c=r.match(/^matrix\((.+)\)$/u);return c?yg(c[1],n):0}},TT=new Set(["x","y","z"]),ET=fa.filter(n=>!TT.has(n));function jT(n){const t=[];return ET.forEach(s=>{const r=n.getValue(s);r!==void 0&&(t.push([s,r.get()]),r.set(s.startsWith("scale")?1:0))}),t}const aa={width:({x:n},{paddingLeft:t="0",paddingRight:s="0"})=>n.max-n.min-parseFloat(t)-parseFloat(s),height:({y:n},{paddingTop:t="0",paddingBottom:s="0"})=>n.max-n.min-parseFloat(t)-parseFloat(s),top:(n,{top:t})=>parseFloat(t),left:(n,{left:t})=>parseFloat(t),bottom:({y:n},{top:t})=>parseFloat(t)+(n.max-n.min),right:({x:n},{left:t})=>parseFloat(t)+(n.max-n.min),x:bg(4,13),y:bg(5,14)};aa.translateX=aa.x;aa.translateY=aa.y;const es=new Set;let Vd=!1,zd=!1;function g1(){if(zd){const n=Array.from(es).filter(r=>r.needsMeasurement),t=new Set(n.map(r=>r.element)),s=new Map;t.forEach(r=>{const l=jT(r);l.length&&(s.set(r,l),r.render())}
vendor: 13,559 bytes, line 59
59),n.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const l=s.get(r);l&&l.forEach(([c,u])=>{var h;(h=r.getValue(c))===null||h===void 0||h.set(u)})}),n.forEach(r=>r.measureEndState()),n.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}zd=!1,Vd=!1,es.forEach(n=>n.complete()),es.clear()}function v1(){es.forEach(n=>{n.readKeyframes(),n.needsMeasurement&&(zd=!0)})}function AT(){v1(),g1()}class Xf{constructor(t,s,r,l,c,u=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=s,this.name=r,this.motionValue=l,this.element=c,this.isAsync=u}scheduleResolve(){this.isScheduled=!0,this.isAsync?(es.add(this),Vd||(Vd=!0,Te.read(v1),Te.resolveKeyframes(g1))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:s,element:r,motionValue:l}=this;for(let c=0;c<t.length;c++)if(t[c]===null)if(c===0){const u=l==null?void 0:l.get(),h=t[t.length-1];if(u!==void 0)t[0]=u;else if(r&&s){const m=r.readValue(s,h);m!=null&&(t[0]=m)}t[0]===void 0&&(t[0]=h),l&&u===void 0&&l.set(t[0])}else t[c]=t[c-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),es.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,es.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const y1=n=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(n),RT=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function CT(n){const t=RT.exec(n);if(!t)return[,];const[,s,r,l]=t;return[`--${s??r}`,l]}function b1(n,t,s=1){const[r,l]=CT(n);if(!r)return;const c=window.getComputedStyle(t).getPropertyValue(r);if(c){const u=c.trim();return y1(u)?parseFloat(u):u}return Sf(l)?b1(l,t,s+1):l}const x1=n=>t=>t.test(n),NT={test:n=>n==="auto",parse:n=>n},w1=[ha,fe,gn,gi,y_,v_,NT],xg=n=>w1.find(x1(n));class S1 extends Xf{constructor(t,s,r,l,c){super(t,s,r,l,c,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:s,name:r}=this;if(!s||!s.current)return;super.readKeyframes();for(let m=0;m<t.length;m++){let g=t[m];if(typeof g=="string"&&(g=g.trim(),Sf(g))){const v=b1(g,s.current);v!==void 0&&(t[m]=v),m===t.length-1&&(this.finalKeyframe=g)}}if(this.resolveNoneKeyframes(),!Jy.has(r)||t.length!==2)return;const[l,c]=t,u=xg(l),h=xg(c);if(u!==h)if(vg(u)&&vg(h))for(let m=0;m<t.length;m++){const g=t[m];typeof g=="string"&&(t[m]=parseFloat(g))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:s}=this,r=[];for(let l=0;l<t.length;l++)rT(t[l])&&r.push(l);r.length&&_T(t,r,s)}measureInitialState(){const{element:t,unresolvedKeyframes:s,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=aa[r](t.measureViewportBox(),window.getComputedStyle(t.current)),s[0]=this.measuredOrigin;const l=s[s.length-1];l!==void 0&&t.getValue(r,l).jump(l,!1)}measureEndState(){var t;const{element:s,name:r,unresolvedKeyframes:l}=this;if(!s||!s.current)return;const c=s.getValue(r);c&&c.jump(this.measuredOrigin,!1);const u=l.length-1,h=l[u];l[u]=aa[r](s.measureViewportBox(),window.getComputedStyle(s.current)),h!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=h),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([m,g])=>{s.getValue(m).set(g)}),this.resolveNoneKeyframes()}}const wg=(n,t)=>t==="zIndex"?!1:!!(typeof n=="number"||Array.isArray(n)||typeof n=="string"&&(Si.test(n)||n==="0")&&!n.startsWith("url("));function OT(n){const t=n[0];if(n.length===1)return!0;for(let s=0;s<n.length;s++)if(n[s]!==t)return!0}function DT(n,t,s,r){const l=n[0];if(l===null)return!1;if(t==="display"||t==="visibility")return!0;const c=n[n.length-1],u=wg(l,t),h=wg(c,t);return!u||!h?!1:OT(n)||(s==="spring"||Df(s))&&r}const MT=n=>n!==null;function Go(n,{repeat:t,repeatType:s="loop"},r){const l=n.filter(MT),c=t&&s!=="loop"&&t%2===1?0:l.length-1;return!c||r===void 0?l[c]:r}const kT=40;class _1{constructor({autoplay:t=!0,delay:s=0,type:r="keyframes",repeat:l=0,repeatDelay:c=0,repeatType:u="loop",...h}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=vn.now(),this.options={autoplay:t,delay:s,type:r,repeat:l,repeatDelay:c,repeatType:u,...h},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>kT?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&AT(),this._resolved}onKeyframesResolved(t,s){this.resolvedAt=vn.now(),this.hasAttemptedResolve=!0;const{name:r,type:l,velocity:c,delay:u,onComplete:h,onUpdate:m,isGenerator:g}=this.options;if(!g&&!DT(t,r,l,c))if(u)this.options.duration=0;else{m&&m(Go(t,this.options,s)),h&&h(),this.resolveFinishedPromise();return}const v=this.initPlayback(t,s);v!==!1&&(this._resolved={keyframes:t,finalKeyframe:s,...v},this.onPostResolved())}onPostResolved(){}then(t,s){return this.currentFinishedPromise.then(t,s)}flatten(){this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear")}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}const ze=(n,t,s)=>n+(t-n)*s;function hd(n,t,s){return s<0&&(s+=1),s>1&&(s-=1),s<1/6?n+(t-n)*6*s:s<1/2?t:s<2/3?n+(t-n)*(2/3-s)*6:n}function LT({hue:n,saturation:t,lightness:s,alpha:r}){n/=360,t/=100,s/=100;let l=0,c=0,u=0;if(!t)l=c=u=s;else{const h=s<.5?s*(1+t):s+t-s*t,m=2*s-h;l=hd(m,h,n+1/3),c=hd(m,h,n),u=hd(m,h,n-1/3)}return{red:Math.round(l*255),green:Math.round(c*255),blue:Math.round(u*255),alpha:r}}function Do(n,t){return s=>s>0?t:n}const md=(n,t,s)=>{const r=n*n,l=s*(t*t-r)+r;return l<0?0:Math.sqrt(l)},PT=[Pd,Ji,Qs],UT=n=>PT.find(t=>t.test(n));function Sg(n){const t=UT(n);if(!t)return!1;let s=t.parse(n);return t===Qs&&(s=LT(s)),s}const _g=(n,t)=>{const s=Sg(n),r=Sg(t);if(!s||!r)return Do(n,t);const l={...s};return c=>(l.red=md(s.red,r.red,c),l.green=md(s.green,r.green,c),l.blue=md(s.blue,r.blue,c),l.alpha=ze(s.alpha,r.alpha,c),Ji.transform(l))},VT=(n,t)=>s=>t(n(s)),Fr=(...n)=>n.reduce(VT),Bd=new Set(["none","hidden"]);function zT(n,t){return Bd.has(n)?s=>s<=0?n:t:s=>s>=1?t:n}function BT(n,t){return s=>ze(n,t,s)}function Ff(n){return typeof n=="number"?BT:typeof n=="string"?Sf(n)?Do:vt.test(n)?_g:$T:Array.isArray(n)?T1:typeof n=="object"?vt.test(n)?_g:HT:Do}function T1(n,t){const s=[...n],r=s.length,l=n.map((c,u)=>Ff(c)(c,t[u]));return c=>{for(let u=0;u<r;u++)s[u]=l[u](c);return s}}function HT(n,t){const s={...n,...t},r={};for(const l in s)n[l]!==void 0&&t[l]!==void 0&&(r[l]=Ff(n[l])(n[l],t[l]));return l=>{for(const c in r)s[c]=r[c](l);return s}}function qT(n,t){var s;const r=[],l={color:0,var:0,number:0};for(let c=0;c<t.values.length;c++){const u=t.types[c],h=n.indexes[u][l[u]],m=(s=n.values[h])!==null&&s!==void 0?s:0;r[c]=m,l[u]++}return r}const $T=(n,t)=>{const s=Si.createTransformer(t),r=Ur(n),l=Ur(t);return r.indexes.var.length===l.indexes.var.length&&r.indexes.color.length===l.indexes.color.length&&r.indexes.number.length>=l.indexes.number.length?Bd.has(n)&&!l.values.length||Bd.has(t)&&!r.values.length?zT(n,t):Fr(T1(qT(r,l),l.values),s):Do(n,t)};function E1(n,t,s){return typeof n=="number"&&typeof t=="number"&&typeof s=="number"?ze(n,t,s):Ff(n)(n,t)}const GT=5;function j1(n,t,s){const r=Math.max(t-GT,0);return zf(s-n(r),t-r)}const Ye={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},Tg=.001;function YT({duration:n=Ye.duration,bounce:t=Ye.bounce,velocity:s=Ye.velocity,mass:r=Ye.mass}){let l,c,u=1-t;u=bn(Ye.minDamping,Ye.maxDamping,u),n=bn(Ye.minDuration,Ye.maxDuration,qn(n)),u<1?(l=g=>{const v=g*u,b=v*n,x=v-s,S=Hd(g,u),T=Math.exp(-b);return Tg-x/S*T},c=g=>{const b=g*u*n,x=b*s+s,S=Math.pow(u,2)*Math.pow(g,2)*n,T=Math.exp(-b),C=Hd(Math.pow(g,2),u);return(-l(g)+Tg>0?-1:1)*((x-S)*T)/C}):(l=g=>{const v=Math.exp(-g*n),b=(g-s)*n+1;return-.001+v*b},c=g=>{const v=Math.exp(-g*n),b=(s-g)*(n*n);return v*b});const h=5/n,m=FT(l,c,h);if(n=Hn(n),isNaN(m))return{stiffness:Ye.stiffness,damping:Ye.damping,duration:n};{const g=Math.pow(m,2)*r;return{stiffness:g,damping:u*2*Math.sqrt(r*g),duration:n}}}const XT=12;function FT(n,t,s){let r=s;for(let l=1;l<XT;l++)r=r-n(r)/t(r);return r}function Hd(n,t){return n*Math.sqrt(1-t*t)}const IT=["duration","bounce"],KT=["stiffness","damping","mass"];function Eg(n,t){return t.some(s=>n[s]!==void 0)}function ZT(n){let t={velocity:Ye.velocity,stiffness:Ye.stiffness,damping:Ye.damping,mass:Ye.mass,isResolvedFromDuration:!1,...n};if(!Eg(n,KT)&&Eg(n,IT))if(n.visualDuration){const s=n.visualDuration,r=2*Math.PI/(s*1.2),l=r*r,c=2*bn(.05,1,1-(n.bounce||0))*Math.sqrt(l);t={...t,mass:Ye.mass,stiffness:l,damping:c}}else{const s=YT(n);t={...t,...s,mass:Ye.mass},t.isResolvedFromDuration=!0}return t}function A1(n=Ye.visualDuration,t=Ye.bounce){const s=typeof n!="object"?{visualDuration:n,keyframes:[0,1],bounce:t}:n;let{restSpeed:r,restDelta:l}=s;const c=s.keyframes[0],u=s.keyframes[s.keyframes.length-1],h={done:!1,value:c},{stiffness:m,damping:g,mass:v,duration:b,velocity:x,isResolvedFromDuration:S}=ZT({...s,velocity:-qn(s.velocity||0)}),T=x||0,C=g/(2*Math.sqrt(m*v)),j=u-c,A=qn(Math.sqrt(m/v)),M=Math.abs(j)<5;r||(r=M?Ye.restSpeed.granular:Ye.restSpeed.default),l||(l=M?Ye.restDelta.granular:Ye.restDelta.default);let D;if(C<1){const U=Hd(A,C);D=I=>{const Q=Math.exp(-C*A*I);return u-Q*((T+C*A*j)/U*Math.sin(U*I)+j*Math.cos(U*I))}}else if(C===1)D=U=>u-Math.exp(-A*U)*(j+(T+A*j)*U);else{const U=A*Math.sqrt(C*C-1);D=I=>{const Q=Math.exp(-C*A*I),K=Math.min(U*I,300);return u-Q*((T+C*A*j)*Math.sinh(K)+U*j*Math.cosh(K))/U}}const B={calculatedDuration:S&&b||null,next:U=>{const I=D(U);if(S)h.done=U>=b;else{let Q=0;C<1&&(Q=U===0?Hn(T):j1(D,U,I));const K=Math.abs(Q)<=r,$=Math.abs(u-I)<=l;h.done=K&&$}return h.value=h.done?u:I,h},toString:()=>{const U=Math.min(Xy(B),Md),I=Fy(Q=>B.next(U*Q).value,U,30);return U+"ms "+I}};return B}function jg({keyframes:n,velocity:t=0,power:s=.8,timeConstant:r=325,bounceDamping:l=10,bounceStiffness:c=500,modifyTarget:u,min:h,max:m,restDelta:g=.5,restSpeed:v}){const b=n[0],x={done:!1,value:b},S=K=>h!==void 0&&K<h||m!==void 0&&K>m,T=K=>h===void 0?m:m===void 0||Math.abs(h-K)<Math.abs(m-K)?h:m;let C=s*t;const j=b+C,A=u===void 0?j:u(j);A!==j&&(C=A-b);const M=K=>-C*Math.exp(-K/r),D=K=>A+M(K),B=K=>{const $=M(K),W=D(K);x.done=Math.abs($)<=g,x.value=x.done?A:W};let U,I;const Q=K=>{S(x.value)&&(U=K,I=A1({keyframes:[x.value,T(x.value)],velocity:j1(D,K,x.value),damping:l,stiffness:c,restDelta:g,restSpeed:v}))};return Q(0),{calculatedDuration:null,next:K=>{let $=!1;return!I&&U===void 0&&($=!0,B(K),Q(K)),U!==void 0&&K>=U?I.next(K-U):(!$&&B(K),x)}}}const QT=Xr(.42,0,1,1),WT=Xr(0,0,.58,1),R1=Xr(.42,0,.58,1),JT=n=>Array.isArray(n)&&typeof n[0]!="number",eE={linear:bt,easeIn:QT,easeInOut:R1,easeOut:WT,circIn:qf,circInOut:o1,circOut:l1,backIn:Hf,backInOut:a1,backOut:s1,anticipate:r1},Ag=n=>{if(Mf(n)){jy(n.length===4);const[t,s,r,l]=n;return Xr(t,s,r,l)}else if(typeof n=="string")return eE[n];return n};function tE(n,t,s){const r=[],l=s||E1,c=n.length-1;for(let u=0;u<c;u++){let h=l(n[u],n[u+1]);if(t){const m=Array.isArray(t)?t[u]||bt:t;h=Fr(m,h)}r.push(h)}return r}function If(n,t,{clamp:s=!0,ease:r,mixer:l}={}){const c=n.length;if(jy(c===t.length),c===1)return()=>t[0];if(c===2&&t[0]===t[1])return()=>t[1];const u=n[0]===n[1];n[0]>n[c-1]&&(n=[...n].reverse(),t=[...t].reverse());const h=tE(t,r,l),m=h.length,g=v=>{if(u&&v<n[0])return t[0];let b=0;if(m>1)for(;b<n.length-2&&!(v<n[b+1]);b++);const x=ts(n[b],n[b+1],v);return h[b](x)};return s?v=>g(bn(n[0],n[c-1],v)):g}function nE(n,t){const s=n[n.length-1];for(let r=1;r<=t;r++){const l=ts(0,t,r);n.push(ze(s,1,l))}}function C1(n){const t=[0];return nE(t,n.length-1),t}function iE(n,t){return n.map(s=>s*t)}function sE(n,t){return n.map(()=>t||R1).splice(0,n.length-1)}function Mo({duration:n=300,keyframes:t,times:s,ease:r="easeInOut"}){const l=JT(r)?r.map(Ag):Ag(r),c={done:!1,value:t[0]},u=iE(s&&s.length===t.length?s:C1(t),n),h=If(u,t,{ease:Array.isArray(l)?l:sE(t,l)});return{calculatedDuration:n,next:m=>(c.value=h(m),c.done=m>=n,c)}}const aE=n=>{const t=({timestamp:s})=>n(s);return{start:()=>Te.update(t,!0),stop:()=>Wt(t),now:()=>ot.isProcessing?ot.timestamp:vn.now()}},rE={decay:jg,inertia:jg,tween:Mo,keyframes:Mo,spring:A1},lE=n=>n/100;class Yo extends _1{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:m}=this.options;m&&m()};const{name:s,motionValue:r,element:l,keyframes:c}=this.options,u=(l==null?void 0:l.KeyframeResolver)||Xf,h=(m,g)=>this.onKeyframesResolved(m,g);this.resolver=new u(c,h,s,r,l),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:s="keyframes",repeat:r=0,repeatDelay:l=0,repeatType:c,velocity:u=0}=this.options,h=Df(s)?s:rE[s]||Mo;let m,g;h!==Mo&&typeof t[0]!="number"&&(m=Fr(lE,E1(t[0],t[1])),t=[0,100]);const v=h({...this.options,keyframes:t});c==="mirror"&&(g=h({...this.options,keyframes:[...t].reverse(),velocity:-u})),v.calculatedDuration===null&&(v.calculatedDuration=Xy(v));const{calculatedDuration:b}
vendor: 5,150 bytes, line 59
59=v,x=b+l,S=x*(r+1)-l;return{generator:v,mirroredGenerator:g,mapPercentToKeyframes:m,calculatedDuration:b,resolvedDuration:x,totalDuration:S}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,s=!1){const{resolved:r}=this;if(!r){const{keyframes:K}=this.options;return{done:!0,value:K[K.length-1]}}const{finalKeyframe:l,generator:c,mirroredGenerator:u,mapPercentToKeyframes:h,keyframes:m,calculatedDuration:g,totalDuration:v,resolvedDuration:b}=r;if(this.startTime===null)return c.next(0);const{delay:x,repeat:S,repeatType:T,repeatDelay:C,onUpdate:j}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-v/this.speed,this.startTime)),s?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const A=this.currentTime-x*(this.speed>=0?1:-1),M=this.speed>=0?A<0:A>v;this.currentTime=Math.max(A,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=v);let D=this.currentTime,B=c;if(S){const K=Math.min(this.currentTime,v)/b;let $=Math.floor(K),W=K%1;!W&&K>=1&&(W=1),W===1&&$--,$=Math.min($,S+1),!!($%2)&&(T==="reverse"?(W=1-W,C&&(W-=C/b)):T==="mirror"&&(B=u)),D=bn(0,1,W)*b}const U=M?{done:!1,value:m[0]}:B.next(D);h&&(U.value=h(U.value));let{done:I}=U;!M&&g!==null&&(I=this.speed>=0?this.currentTime>=v:this.currentTime<=0);const Q=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&I);return Q&&l!==void 0&&(U.value=Go(m,this.options,l)),j&&j(U.value),Q&&this.finish(),U}get duration(){const{resolved:t}=this;return t?qn(t.calculatedDuration):0}get time(){return qn(this.currentTime)}set time(t){t=Hn(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const s=this.playbackSpeed!==t;this.playbackSpeed=t,s&&(this.time=qn(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=aE,onPlay:s,startTime:r}=this.options;this.driver||(this.driver=t(c=>this.tick(c))),s&&s();const l=this.driver.now();this.holdTime!==null?this.startTime=l-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=l):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}function oE(n){return new Yo(n)}const cE=new Set(["opacity","clipPath","filter","transform"]);function uE(n,t,s,{delay:r=0,duration:l=300,repeat:c=0,repeatType:u="loop",ease:h="easeInOut",times:m}={}){const g={[t]:s};m&&(g.offset=m);const v=Ky(h,l);return Array.isArray(v)&&(g.easing=v),n.animate(g,{delay:r,duration:l,easing:Array.isArray(v)?"linear":v,fill:"both",iterations:c+1,direction:u==="reverse"?"alternate":"normal"})}const dE=gf(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),ko=10,fE=2e4;function hE(n){return Df(n.type)||n.type==="spring"||!Iy(n.ease)}function mE(n,t){const s=new Yo({...t,keyframes:n,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:n[0]};const l=[];let c=0;for(;!r.done&&c<fE;)r=s.sample(c),l.push(r.value),c+=ko;return{times:void 0,keyframes:l,duration:c-ko,ease:"linear"}}const N1={anticipate:r1,backInOut:a1,circInOut:o1};function pE(n){return n in N1}class Rg extends _1{constructor(t){super(t);const{name:s,motionValue:r,element:l,keyframes:c}=this.options;this.resolver=new S1(c,(u,h)=>this.onKeyframesResolved(u,h),s,r,l),this.resolver.scheduleResolve()}initPlayback(t,s){let{duration:r=300,times:l,ease:c,type:u,motionValue:h,name:m,startTime:g}=this.options;if(!h.owner||!h.owner.current)return!1;if(typeof c=="string"&&Oo()&&pE(c)&&(c=N1[c]),hE(this.options)){const{onComplete:b,onUpdate:x,motionValue:S,element:T,...C}=this.options,j=mE(t,C);t=j.keyframes,t.length===1&&(t[1]=t[0]),r=j.duration,l=j.times,c=j.ease,u="keyframes"}const v=uE(h.owner.current,m,t,{...this.options,duration:r,times:l,ease:c});return v.startTime=g??this.calcStartTime(),this.pendingTimeline?(dg(v,this.pendingTimeline),this.pendingTimeline=void 0):v.onfinish=()=>{const{onComplete:b}=this.options;h.set(Go(t,this.options,s)),b&&b(),this.cancel(),this.resolveFinishedProm
vendor: 15,852 bytes, line 59
59ise()},{animation:v,duration:r,times:l,type:u,ease:c,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:s}=t;return qn(s)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:s}=t;return qn(s.currentTime||0)}set time(t){const{resolved:s}=this;if(!s)return;const{animation:r}=s;r.currentTime=Hn(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:s}=t;return s.playbackRate}set speed(t){const{resolved:s}=this;if(!s)return;const{animation:r}=s;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:s}=t;return s.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:s}=t;return s.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:s}=this;if(!s)return bt;const{animation:r}=s;dg(r,t)}return bt}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:s}=t;s.playState==="finished"&&this.updateFinishedPromise(),s.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:s}=t;s.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:s,keyframes:r,duration:l,type:c,ease:u,times:h}=t;if(s.playState==="idle"||s.playState==="finished")return;if(this.time){const{motionValue:g,onUpdate:v,onComplete:b,element:x,...S}=this.options,T=new Yo({...S,keyframes:r,duration:l,type:c,ease:u,times:h,isGenerator:!0}),C=Hn(this.time);g.setWithVelocity(T.sample(C-ko).value,T.sample(C).value,ko)}const{onStop:m}=this.options;m&&m(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:s,name:r,repeatDelay:l,repeatType:c,damping:u,type:h}=t;if(!s||!s.owner||!(s.owner.current instanceof HTMLElement))return!1;const{onUpdate:m,transformTemplate:g}=s.owner.getProps();return dE()&&r&&cE.has(r)&&!m&&!g&&!l&&c!=="mirror"&&u!==0&&h!=="inertia"}}const gE={type:"spring",stiffness:500,damping:25,restSpeed:10},vE=n=>({type:"spring",stiffness:550,damping:n===0?2*Math.sqrt(550):30,restSpeed:10}),yE={type:"keyframes",duration:.8},bE={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},xE=(n,{keyframes:t})=>t.length>2?yE:ns.has(n)?n.startsWith("scale")?vE(t[1]):gE:bE;function wE({when:n,delay:t,delayChildren:s,staggerChildren:r,staggerDirection:l,repeat:c,repeatType:u,repeatDelay:h,from:m,elapsed:g,...v}){return!!Object.keys(v).length}const Kf=(n,t,s,r={},l,c)=>u=>{const h=Of(r,n)||{},m=h.delay||r.delay||0;let{elapsed:g=0}=r;g=g-Hn(m);let v={keyframes:Array.isArray(s)?s:[null,s],ease:"easeOut",velocity:t.getVelocity(),...h,delay:-g,onUpdate:x=>{t.set(x),h.onUpdate&&h.onUpdate(x)},onComplete:()=>{u(),h.onComplete&&h.onComplete()},name:n,motionValue:t,element:c?void 0:l};wE(h)||(v={...v,...xE(n,v)}),v.duration&&(v.duration=Hn(v.duration)),v.repeatDelay&&(v.repeatDelay=Hn(v.repeatDelay)),v.from!==void 0&&(v.keyframes[0]=v.from);let b=!1;if((v.type===!1||v.duration===0&&!v.repeatDelay)&&(v.duration=0,v.delay===0&&(b=!0)),v.allowFlatten=!h.type&&!h.ease,b&&!c&&t.get()!==void 0){const x=Go(v.keyframes,h);if(x!==void 0)return Te.update(()=>{v.onUpdate(x),v.onComplete()}),new q_([])}return!c&&Rg.supports(v)?new Rg(v):new Yo(v)};function SE({protectedKeys:n,needsAnimating:t},s){const r=n.hasOwnProperty(s)&&t[s]!==!0;return t[s]=!1,r}function O1(n,t,{delay:s=0,transitionOverride:r,type:l}={}){var c;let{transition:u=n.getDefaultTransition(),transitionEnd:h,...m}=t;r&&(u=r);const g=[],v=l&&n.animationState&&n.animationState.getState()[l];for(const b in m){const x=n.getValue(b,(c=n.latestValues[b])!==null&&c!==void 0?c:null),S=m[b];if(S===void 0||v&&SE(v,b))continue;const T={delay:s,...Of(u||{},b)};let C=!1;if(window.MotionHandoffAnimation){const A=e1(n);if(A){const M=window.MotionHandoffAnimation(A,b,Te);M!==null&&(T.startTime=M,C=!0)}}Ld(n,b),x.start(Kf(b,x,S,n.shouldReduceMotion&&Jy.has(b)?{type:!1}:T,n,C));const j=x.animation;j&&g.push(j)}return h&&Promise.all(g).then(()=>{Te.update(()=>{h&&Bf(n,h)})}),g}function qd(n,t,s={}){var r;const l=Pr(n,t,s.type==="exit"?(r=n.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:c=n.getDefaultTransition()||{}}=l||{};s.transitionOverride&&(c=s.transitionOverride);const u=l?()=>Promise.all(O1(n,l,s)):()=>Promise.resolve(),h=n.variantChildren&&n.variantChildren.size?(g=0)=>{const{delayChildren:v=0,staggerChildren:b,staggerDirection:x}=c;return _E(n,t,v+g,b,x,s)}:()=>Promise.resolve(),{when:m}=c;if(m){const[g,v]=m==="beforeChildren"?[u,h]:[h,u];return g().then(()=>v())}else return Promise.all([u(),h(s.delay)])}function _E(n,t,s=0,r=0,l=1,c){const u=[],h=(n.variantChildren.size-1)*r,m=l===1?(g=0)=>g*r:(g=0)=>h-g*r;return Array.from(n.variantChildren).sort(TE).forEach((g,v)=>{g.notify("AnimationStart",t),u.push(qd(g,t,{...c,delay:s+m(v)}).then(()=>g.notify("AnimationComplete",t)))}),Promise.all(u)}function TE(n,t){return n.sortNodePosition(t)}function D1(n,t,s={}){n.notify("AnimationStart",t);let r;if(Array.isArray(t)){const l=t.map(c=>qd(n,c,s));r=Promise.all(l)}else if(typeof t=="string")r=qd(n,t,s);else{const l=typeof t=="function"?Pr(n,t,s.custom):t;r=Promise.all(O1(n,l,s))}return r.then(()=>{n.notify("AnimationComplete",t)})}function M1(n,t){if(!Array.isArray(t))return!1;const s=t.length;if(s!==n.length)return!1;for(let r=0;r<s;r++)if(t[r]!==n[r])return!1;return!0}const EE=yf.length;function k1(n){if(!n)return;if(!n.isControllingVariants){const s=n.parent?k1(n.parent)||{}:{};return n.props.initial!==void 0&&(s.initial=n.props.initial),s}const t={};for(let s=0;s<EE;s++){const r=yf[s],l=n.props[r];(Mr(l)||l===!1)&&(t[r]=l)}return t}const jE=[...vf].reverse(),AE=vf.length;function RE(n){return t=>Promise.all(t.map(({animation:s,options:r})=>D1(n,s,r)))}function CE(n){let t=RE(n),s=Cg(),r=!0;const l=m=>(g,v)=>{var b;const x=Pr(n,v,m==="exit"?(b=n.presenceContext)===null||b===void 0?void 0:b.custom:void 0);if(x){const{transition:S,transitionEnd:T,...C}=x;g={...g,...C,...T}}return g};function c(m){t=m(n)}function u(m){const{props:g}=n,v=k1(n.parent)||{},b=[],x=new Set;let S={},T=1/0;for(let j=0;j<AE;j++){const A=jE[j],M=s[A],D=g[A]!==void 0?g[A]:v[A],B=Mr(D),U=A===m?M.isActive:null;U===!1&&(T=j);let I=D===v[A]&&D!==g[A]&&B;if(I&&r&&n.manuallyAnimateOnMount&&(I=!1),M.protectedKeys={...S},!M.isActive&&U===null||!D&&!M.prevProp||qo(D)||typeof D=="boolean")continue;const Q=NE(M.prevProp,D);let K=Q||A===m&&M.isActive&&!I&&B||j>T&&B,$=!1;const W=Array.isArray(D)?D:[D];let oe=W.reduce(l(A),{});U===!1&&(oe={});const{prevResolvedValues:we={}}=M,ce={...we,...oe},ye=J=>{K=!0,x.has(J)&&($=!0,x.delete(J)),M.needsAnimating[J]=!0;const ie=n.getValue(J);ie&&(ie.liveStyle=!1)};for(const J in ce){const ie=oe[J],je=we[J];if(S.hasOwnProperty(J))continue;let R=!1;Dd(ie)&&Dd(je)?R=!M1(ie,je):R=ie!==je,R?ie!=null?ye(J):x.add(J):ie!==void 0&&x.has(J)?ye(J):M.protectedKeys[J]=!0}M.prevProp=D,M.prevResolvedValues=oe,M.isActive&&(S={...S,...oe}),r&&n.blockInitialAnimation&&(K=!1),K&&(!(I&&Q)||$)&&b.push(...W.map(J=>({animation:J,options:{type:A}})))}if(x.size){const j={};if(typeof g.initial!="boolean"){const A=Pr(n,Array.isArray(g.initial)?g.initial[0]:g.initial);A&&A.transition&&(j.transition=A.transition)}x.forEach(A=>{const M=n.getBaseTarget(A),D=n.getValue(A);D&&(D.liveStyle=!0),j[A]=M??null}),b.push({animation:j})}let C=!!b.length;return r&&(g.initial===!1||g.initial===g.animate)&&!n.manuallyAnimateOnMount&&(C=!1),r=!1,C?t(b):Promise.resolve()}function h(m,g){var v;if(s[m].isActive===g)return Promise.resolve();(v=n.variantChildren)===null||v===void 0||v.forEach(x=>{var S;return(S=x.animationState)===null||S===void 0?void 0:S.setActive(m,g)}),s[m].isActive=g;const b=u(m);for(const x in s)s[x].protectedKeys={};return b}return{animateChanges:u,setActive:h,setAnimateFunction:c,getState:()=>s,reset:()=>{s=Cg(),r=!0}}}function NE(n,t){return typeof t=="string"?t!==n:Array.isArray(t)?!M1(t,n):!1}function Ii(n=!1){return{isActive:n,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Cg(){return{animate:Ii(!0),whileInView:Ii(),whileHover:Ii(),whileTap:Ii(),whileDrag:Ii(),whileFocus:Ii(),exit:Ii()}}class Ti{constructor(t){this.isMounted=!1,this.node=t}update(){}}class OE extends Ti{constructor(t){super(t),t.animationState||(t.animationState=CE(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();qo(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:s}=this.node.prevProps||{};t!==s&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}}let DE=0;class ME extends Ti{constructor(){super(...arguments),this.id=DE++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:s}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const l=this.node.animationState.setActive("exit",!t);s&&!t&&l.then(()=>{s(this.id)})}mount(){const{register:t,onExitComplete:s}=this.node.presenceContext||{};s&&s(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const kE={animation:{Feature:OE},exit:{Feature:ME}};function Vr(n,t,s,r={passive:!0}){return n.addEventListener(t,s,r),()=>n.removeEventListener(t,s)}function Ir(n){return{point:{x:n.pageX,y:n.pageY}}}const LE=n=>t=>Lf(t)&&n(t,Ir(t));function Ws(n,t,s,r){return Vr(n,t,LE(s),r)}function L1({top:n,left:t,right:s,bottom:r}){return{x:{min:t,max:s},y:{min:n,max:r}}}function PE({x:n,y:t}){return{top:t.min,right:n.max,bottom:t.max,left:n.min}}function UE(n,t){if(!t)return n;const s=t({x:n.left,y:n.top}),r=t({x:n.right,y:n.bottom});return{top:s.y,left:s.x,bottom:r.y,right:r.x}}const P1=1e-4,VE=1-P1,zE=1+P1,U1=.01,BE=0-U1,HE=0+U1;function _t(n){return n.max-n.min}function qE(n,t,s){return Math.abs(n-t)<=s}function Ng(n,t,s,r=.5){n.origin=r,n.originPoint=ze(t.min,t.max,n.origin),n.scale=_t(s)/_t(t),n.translate=ze(s.min,s.max,n.origin)-n.originPoint,(n.scale>=VE&&n.scale<=zE||isNaN(n.scale))&&(n.scale=1),(n.translate>=BE&&n.translate<=HE||isNaN(n.translate))&&(n.translate=0)}function jr(n,t,s,r){Ng(n.x,t.x,s.x,r?r.originX:void 0),Ng(n.y,t.y,s.y,r?r.originY:void 0)}function Og(n,t,s){n.min=s.min+t.min,n.max=n.min+_t(t)}function $E(n,t,s){Og(n.x,t.x,s.x),Og(n.y,t.y,s.y)}function Dg(n,t,s){n.min=t.min-s.min,n.max=n.min+_t(t)}function Ar(n,t,s){Dg(n.x,t.x,s.x),Dg(n.y,t.y,s.y)}const Mg=()=>({translate:0,scale:1,origin:0,originPoint:0}),Js=()=>({x:Mg(),y:Mg()}),kg=()=>({min:0,max:0}),Fe=()=>({x:kg(),y:kg()});function Qt(n){return[n("x"),n("y")]}function pd(n){return n===void 0||n===1}function $d({scale:n,scaleX:t,scaleY:s}){return!pd(n)||!pd(t)||!pd(s)}function Zi(n){return $d(n)||V1(n)||n.z||n.rotate||n.rotateX||n.rotateY||n.skewX||n.skewY}function V1(n){return Lg(n.x)||Lg(n.y)}function Lg(n){return n&&n!=="0%"}function Lo(n,t,s){const r=n-s,l=t*r;return s+l}function Pg(n,t,s,r,l){return l!==void 0&&(n=Lo(n,l,r)),Lo(n,s,r)+t}function Gd(n,t=0,s=1,r,l){n.min=Pg(n.min,t,s,r,l),n.max=Pg(n.max,t,s,r,l)}function z1(n,{x:t,y:s}){Gd(n.x,t.translate,t.scale,t.originPoint),Gd(n.y,s.translate,s.scale,s.originPoint)}const Ug=.999999999999,Vg=1.0000000000001;function GE(n,t,s,r=!1){const l=s.length;if(!l)return;t.x=t.y=1;let c,u;for(let h=0;h<l;h++){c=s[h],u=c.projectionDelta;const{visualElement:m}=c.options;m&&m.props.style&&m.props.style.display==="contents"||(r&&c.options.layoutScroll&&c.scroll&&c!==c.root&&ta(n,{x:-c.scroll.offset.x,y:-c.scroll.offset.y}),u&&(t.x*=u.x.scale,t.y*=u.y.scale,z1(n,u)),r&&Zi(c.latestValues)&&ta(n,c.latestValues))}t.x<Vg&&t.x>Ug&&(t.x=1),t.y<Vg&&t.y>Ug&&(t.y=1)}function ea(n,t){n.min=n.min+t,n.max=n.max+t}function zg(n,t,s,r,l=.5){const c=ze(n.min,n.max,l);Gd(n,t,s,c,r)}function ta(n,t){zg(n.x,t.x,t.scaleX,t.scale,t.originX),zg(n.y,t.y,t.scaleY,t.scale,t.originY)}function B1(n,t){return L1(UE(n.getBoundingClientRect(),t))}function YE(n,t,s){const r=B1(n,s),{scroll:l}=t;return l&&(ea(r.x,l.offset.x),ea(r.y,l.offset.y)),r}const Bg=(n,t)=>Math.abs(n-t);function XE(n,t){const s=Bg(n.x,t.x),r=Bg(n.y,t.y);return Math.sqrt(s**2+r**2)}class H1{constructor(t,s,{transformPagePoint:r,dragSnapToOrigin:l=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const v=vd(this.lastMoveEventInfo,this.history),b=this.startEvent!==null,x=XE(v.offset,{x:0,y:0})>=3;if(!b&&!x)return;const{point:S}=v,{timestamp:T}=ot;this.history.push({...S,timestamp:T});const{onStart:C,onMove:j}=this.handlers;b||(C&&C(this.lastMoveEvent,v),this.startEvent=this.lastMoveEvent),j&&j(this.lastMoveEvent,v)},this.handlePointerMove=(v,b)=>{if(this.index=qg(v.currentTarget),v.target instanceof Element&&v.target.hasPointerCapture&&v.pointerId!==void 0)try{if(!v.target.hasPointerCapture(v.pointerId))return}catch{}this.lastMoveEvent=v,this.lastMoveEventInfo=gd(b,this.transformPagePoint),Te.update(this.updatePoint,!0)},this.handlePointerUp=(v,b)=>{_r(v,"release"),this.end();const{onEnd:x,onSessionEnd:S,resumeAnimation:T}=this.handlers;if(this.dragSnapToOrigin&&T&&T(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const C=vd(v.type==="pointercancel"||v.type==="lostpointercapture"?this.lastMoveEventInfo:gd(b,this.transformPagePoint),this.history);this.startEvent&&x&&x(v,C),S&&S(v,C)},!Lf(t))return;this.dragSnapToOrigin=l,this.handlers=s,this.transformPagePoint=r;const c=Ir(t),u=gd(c,this.transformPagePoint),{point:h}=u,{timestamp:m}=ot;this.history=[{...h,timestamp:m}];const{onSessionStart:g}=s;g&&g(t,vd(u,this.history)),_r(t,"set"),this.removeListeners=Fr(Ws(t.currentTarget,"pointermove",this.handlePointerMove),Ws(t.currentTarget,"pointerup",this.handlePointerUp),Ws(t.currentTarget,"pointercancel",this.handlePointerUp),Ws(t.currentTarget,"lostpointercapture",(v,b)=>{qg(v.currentTarget)!==this.index?_r(v,"set"):this.handlePointerUp(v,b)}))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Wt(this.updatePoint)}}function gd(n,t){return t?{point:t(n.point)}:n}function Hg(n,t){return{x:n.x-t.x,y:n.y-t.y}}function vd({point:n},t){return{point:n,delta:Hg(n,q1(t)),offset:Hg(n,FE(t)),velocity:IE(t,.1)}}function FE(n){return n[0]}function q1(n){return n[n.length-1]}function IE(n,t){if(n.length<2)return{x:0,y:0};let s=n.length-1,r=null;const l=q1(n);for(;s>=0&&(r=n[s],!(l.timestamp-r.timestamp>Hn(t)));)s--;if(!r)return{x:0,y:0};const c=qn(l.timestamp-r.timestamp);if(c===0)return{x:0,y:0};const u={x:(l.x-r.x)/c,y:(l.y-r.y)/c};return u.x===1/0&&(u.x=0),u.y===1/0&&(u.y=0),u}function qg(n){return n.parentNode?Array.from(n.parentNode.children).indexOf(n):-1}function KE(n,{min:t,max:s},r){return t!==void 0&&n<t?n=r?ze(t,n,r.min):Math.max(n,t):s!==void 0&&n>s&&(n=r?ze(s,n,r.max):Math.min(n,s)),n}function $g(n,t,s){return{min:t!==void 0?n.min+t:void 0,max:s!==void 0?n.max+s-(n.max-n.min):void 0}}function ZE(n,{top:t,left:s,bottom:r,right:l}){return{x:$g(n.x,s,l),y:$g(n.y,t,r)}}function Gg(n,t){let s=t.min-n.min,r=t.max-n.max;return t.max-t.min<n.max-n.min&&([s,r]=[r,s]),{min:s,max:r}}function QE(n,t){return{x:Gg(n.x,t.x),y:Gg(n.y,t.y)}}function WE(n,t){let s=.5;const r=_t(n),l=_t(t);return l>r?s=ts(t.min,t.max-r,n.min):r>l&&(s=ts(n.min,n.max-l,t.min)),bn(0,1,s)}function JE(n,t){const s={};return t.min!==void 0&&(s.min=t.min-n.min),t.max!==void 0&&(s.max=t.max-n.min),s}const Yd=.35;function ej(n=Yd){return n===!1?n=0:n===!0&&(n=Yd),{x:Yg(n,"left","right"),y:Yg(n,"top","bottom")}}function Yg(n,t,s){return{min:Xg(n,t),max:Xg(n,s)}}function Xg(n,t){return typeof n=="number"?n:n[t]||0}const tj=new WeakMap;
vendor: 13,493 bytes, line 59
59class nj{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=Fe(),this.visualElement=t}start(t,{snapToCursor:s=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const l=v=>{const{dragSnapToOrigin:b}=this.getProps();b?this.pauseAnimation():this.stopAnimation(),s&&this.snapToCursor(Ir(v).point)},c=(v,b)=>{const{drag:x,dragPropagation:S,onDragStart:T}=this.getProps();if(x&&!S&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Q_(x),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Qt(j=>{let A=this.getAxisMotionValue(j).get()||0;if(gn.test(A)){const{projection:M}=this.visualElement;if(M&&M.layout){const D=M.layout.layoutBox[j];D&&(A=_t(D)*(parseFloat(A)/100))}}this.originPoint[j]=A}),T&&Te.postRender(()=>T(v,b)),Ld(this.visualElement,"transform");const{animationState:C}=this.visualElement;C&&C.setActive("whileDrag",!0)},u=(v,b)=>{const{dragPropagation:x,dragDirectionLock:S,onDirectionLock:T,onDrag:C}=this.getProps();if(!x&&!this.openDragLock)return;const{offset:j}=b;if(S&&this.currentDirection===null){this.currentDirection=ij(j),this.currentDirection!==null&&T&&T(this.currentDirection);return}this.updateAxis("x",b.point,j),this.updateAxis("y",b.point,j),this.visualElement.render(),C&&C(v,b)},h=(v,b)=>this.stop(v,b),m=()=>Qt(v=>{var b;return this.getAnimationState(v)==="paused"&&((b=this.getAxisMotionValue(v).animation)===null||b===void 0?void 0:b.play())}),{dragSnapToOrigin:g}=this.getProps();this.panSession=new H1(t,{onSessionStart:l,onStart:c,onMove:u,onSessionEnd:h,resumeAnimation:m},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:g})}stop(t,s){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:l}=s;this.startAnimation(l);const{onDragEnd:c}=this.getProps();c&&Te.postRender(()=>c(t,s))}cancel(){this.isDragging=!1;const{projection:t,animationState:s}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),s&&s.setActive("whileDrag",!1)}updateAxis(t,s,r){const{drag:l}=this.getProps();if(!r||!po(t,l,this.currentDirection))return;const c=this.getAxisMotionValue(t);let u=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(u=KE(u,this.constraints[t],this.elastic[t])),c.set(u)}resolveConstraints(){var t;const{dragConstraints:s,dragElastic:r}=this.getProps(),l=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,c=this.constraints;s&&Zs(s)?this.constraints||(this.constraints=this.resolveRefConstraints()):s&&l?this.constraints=ZE(l.layoutBox,s):this.constraints=!1,this.elastic=ej(r),c!==this.constraints&&l&&this.constraints&&!this.hasMutatedConstraints&&Qt(u=>{this.constraints!==!1&&this.getAxisMotionValue(u)&&(this.constraints[u]=JE(l.layoutBox[u],this.constraints[u]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:s}=this.getProps();if(!t||!Zs(t))return!1;const r=t.current,{projection:l}=this.visualElement;if(!l||!l.layout)return!1;const c=YE(r,l.root,this.visualElement.getTransformPagePoint());let u=QE(l.layout.layoutBox,c);if(s){const h=s(PE(u));this.hasMutatedConstraints=!!h,h&&(u=L1(h))}return u}startAnimation(t){const{drag:s,dragMomentum:r,dragElastic:l,dragTransition:c,dragSnapToOrigin:u,onDragTransitionEnd:h}=this.getProps(),m=this.constraints||{},g=Qt(v=>{if(!po(v,s,this.currentDirection))return;let b=m&&m[v]||{};u&&(b={min:0,max:0});const x=l?200:1e6,S=l?40:1e7,T={type:"inertia",velocity:r?t[v]:0,bounceStiffness:x,bounceDamping:S,timeConstant:750,restDelta:1,restSpeed:10,...c,...b};return this.startAxisValueAnimation(v,T)});return Promise.all(g).then(h)}startAxisValueAnimation(t,s){const r=this.getAxisMotionValue(t);return Ld(this.visualElement,t),r.start(Kf(t,r,0,s,this.visualElement,!1))}stopAnimation(){Qt(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Qt(t=>{var s;return(s=this.getAxisMotionValue(t).animation)===null||s===void 0?void 0:s.pause()})}getAnimationState(t){var s;return(s=this.getAxisMotionValue(t).animation)===null||s===void 0?void 0:s.state}getAxisMotionValue(t){const s=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),l=r[s];return l||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){Qt(s=>{const{drag:r}=this.getProps();if(!po(s,r,this.currentDirection))return;const{projection:l}=this.visualElement,c=this.getAxisMotionValue(s);if(l&&l.layout){const{min:u,max:h}=l.layout.layoutBox[s];c.set(t[s]-ze(u,h,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:s}=this.getProps(),{projection:r}=this.visualElement;if(!Zs(s)||!r||!this.constraints)return;this.stopAnimation();const l={x:0,y:0};Qt(u=>{const h=this.getAxisMotionValue(u);if(h&&this.constraints!==!1){const m=h.get();l[u]=WE({min:m,max:m},this.constraints[u])}});const{transformTemplate:c}=this.visualElement.getProps();this.visualElement.current.style.transform=c?c({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Qt(u=>{if(!po(u,t,null))return;const h=this.getAxisMotionValue(u),{min:m,max:g}=this.constraints[u];h.set(ze(m,g,l[u]))})}addListeners(){if(!this.visualElement.current)return;tj.set(this.visualElement,this);const t=this.visualElement.current,s=Ws(t,"pointerdown",m=>{const{drag:g,dragListener:v=!0}=this.getProps();g&&v&&this.start(m)}),r=()=>{const{dragConstraints:m}=this.getProps();Zs(m)&&m.current&&(this.constraints=this.resolveRefConstraints())},{projection:l}=this.visualElement,c=l.addEventListener("measure",r);l&&!l.layout&&(l.root&&l.root.updateScroll(),l.updateLayout()),Te.read(r);const u=Vr(window,"resize",()=>this.scalePositionWithinConstraints()),h=l.addEventListener("didUpdate",({delta:m,hasLayoutChanged:g})=>{this.isDragging&&g&&(Qt(v=>{const b=this.getAxisMotionValue(v);b&&(this.originPoint[v]+=m[v].translate,b.set(b.get()+m[v].translate))}),this.visualElement.render())});return()=>{u(),s(),c(),h&&h()}}getProps(){const t=this.visualElement.getProps(),{drag:s=!1,dragDirectionLock:r=!1,dragPropagation:l=!1,dragConstraints:c=!1,dragElastic:u=Yd,dragMomentum:h=!0}=t;return{...t,drag:s,dragDirectionLock:r,dragPropagation:l,dragConstraints:c,dragElastic:u,dragMomentum:h}}}function po(n,t,s){return(t===!0||t===n)&&(s===null||s===n)}function ij(n,t=10){let s=null;return Math.abs(n.y)>t?s="y":Math.abs(n.x)>t&&(s="x"),s}class sj extends Ti{constructor(t){super(t),this.removeGroupControls=bt,this.removeListeners=bt,this.controls=new nj(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||bt}unmount(){this.removeGroupControls(),this.removeListeners()}}const Fg=n=>(t,s)=>{n&&Te.postRender(()=>n(t,s))};class aj extends Ti{constructor(){super(...arguments),this.removePointerDownListener=bt}onPointerDown(t){this.session=new H1(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint()})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:s,onPan:r,onPanEnd:l}=this.node.getProps();return{onSessionStart:Fg(t),onStart:Fg(s),onMove:r,onEnd:(c,u)=>{delete this.session,l&&Te.postRender(()=>l(c,u))}}}mount(){this.removePointerDownListener=Ws(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const jo={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Ig(n,t){return t.max===t.min?0:n/(t.max-t.min)*100}const gr={correct:(n,t)=>{if(!t.target)return n;if(typeof n=="string")if(fe.test(n))n=parseFloat(n);else return n;const s=Ig(n,t.target.x),r=Ig(n,t.target.y);return`${s}% ${r}%`}},rj={correct:(n,{treeScale:t,projectionDelta:s})=>{const r=n,l=Si.parse(n);if(l.length>5)return r;const c=Si.createTransformer(n),u=typeof l[0]!="number"?1:0,h=s.x.scale*t.x,m=s.y.scale*t.y;l[0+u]/=h,l[1+u]/=m;const g=ze(h,m,.5);return typeof l[2+u]=="number"&&(l[2+u]/=g),typeof l[3+u]=="number"&&(l[3+u]/=g),c(l)}};class lj extends _.Component{componentDidMount(){const{visualElement:t,layoutGroup:s,switchLayoutGroup:r,layoutId:l}=this.props,{projection:c}=t;g_(oj),c&&(s.group&&s.group.add(c),r&&r.register&&l&&r.register(c),c.root.didUpdate(),c.addEventListener("animationComplete",()=>{this.safeToRemove()}),c.setOptions({...c.options,onExitComplete:()=>this.safeToRemove()})),jo.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:s,visualElement:r,drag:l,isPresent:c}=this.props,u=r.projection;return u&&(u.isPresent=c,l||t.layoutDependency!==s||s===void 0||t.isPresent!==c?u.willUpdate():this.safeToRemove(),t.isPresent!==c&&(c?u.promote():u.relegate()||Te.postRender(()=>{const h=u.getStack();(!h||!h.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),xf.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:s,switchLayoutGroup:r}=this.props,{projection:l}=t;l&&(l.scheduleCheckAfterUnmount(),s&&s.group&&s.group.remove(l),r&&r.deregister&&r.deregister(l))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function $1(n){const[t,s]=Ey(),r=_.useContext(mf);return f.jsx(lj,{...n,layoutGroup:r,switchLayoutGroup:_.useContext(Dy),isPresent:t,safeToRemove:s})}const oj={borderRadius:{...gr,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:gr,borderTopRightRadius:gr,borderBottomLeftRadius:gr,borderBottomRightRadius:gr,boxShadow:rj};function cj(n,t,s){const r=Je(n)?n:pn(n);return r.start(Kf("",r,t,s)),r.animation}function uj(n){return n instanceof SVGElement&&n.tagName!=="svg"}const dj=(n,t)=>n.depth-t.depth;class fj{constructor(){this.children=[],this.isDirty=!1}add(t){Pf(this.children,t),this.isDirty=!0}remove(t){Uf(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(dj),this.isDirty=!1,this.children.forEach(t)}}function hj(n,t){const s=vn.now(),r=({timestamp:l})=>{const c=l-s;c>=t&&(Wt(r),n(c-t))};return Te.read(r,!0),()=>Wt(r)}const G1=["TopLeft","TopRight","BottomLeft","BottomRight"],mj=G1.length,Kg=n=>typeof n=="string"?parseFloat(n):n,Zg=n=>typeof n=="number"||fe.test(n);function pj(n,t,s,r,l,c){l?(n.opacity=ze(0,s.opacity!==void 0?s.opacity:1,gj(r)),n.opacityExit=ze(t.opacity!==void 0?t.opacity:1,0,vj(r))):c&&(n.opacity=ze(t.opacity!==void 0?t.opacity:1,s.opacity!==void 0?s.opacity:1,r));for(let u=0;u<mj;u++){const h=`border${G1[u]}Radius`;let m=Qg(t,h),g=Qg(s,h);if(m===void 0&&g===void 0)continue;m||(m=0),g||(g=0),m===0||g===0||Zg(m)===Zg(g)?(n[h]=Math.max(ze(Kg(m),Kg(g),r),0),(gn.test(g)||gn.test(m))&&(n[h]+="%")):n[h]=g}(t.rotate||s.rotate)&&(n.rotate=ze(t.rotate||0,s.rotate||0,r))}function Qg(n,t){return n[t]!==void 0?n[t]:n.borderRadius}const gj=Y1(0,.5,l1),vj=Y1(.5,.95,bt);function Y1(n,t,s){return r=>r<n?0:r>t?1:s(ts(n,t,r))}function Wg(n,t){n.min=t.min,n.max=t.max}function Zt(n,t){Wg(n.x,t.x),Wg(n.y,t.y)}function Jg(n,t){n.translate=t.translate,n.scale=t.scale,n.originPoint=t.originPoint,n.origin=t.origin}function ev(n,t,s,r,l){return n-=t,n=Lo(n,1/s,r),l!==void 0&&(n=Lo(n,1/l,r)),n}function yj(n,t=0,s=1,r=.5,l,c=n,u=n){if(gn.test(t)&&(t=parseFloat(t),t=ze(u.min,u.max,t/100)-u.min),typeof t!="number")return;let h=ze(c.min,c.max,r);n===c&&(h-=t),n.min=ev(n.min,t,s,h,l),n.max=ev(n.max,t,s,h,l)}function tv(n,t,[s,r,l],c,u){yj(n,t[s],t[r],t[l],t.scale,c,u)}const bj=["x","scaleX","originX"],xj=["y","scaleY","originY"];function nv(n,t,s,r){tv(n.x,t,bj,s?s.x:void 0,r?r.x:void 0),tv(n.y,t,xj,s?s.y:void 0,r?r.y:void 0)}function iv(n){return n.translate===0&&n.scale===1}function X1(n){return iv(n.x)&&iv(n.y)}function sv(n,t){return n.min===t.min&&n.max===t.max}function wj(n,t){return sv(n.x,t.x)&&sv(n.y,t.y)}function av(n,t){return Math.round(n.min)===Math.round(t.min)&&Math.round(n.max)===Math.round(t.max)}function F1(n,t){return av(n.x,t.x)&&av(n.y,t.y)}function rv(n){return _t(n.x)/_t(n.y)}function lv(n,t){return n.translate===t.translate&&n.scale===t.scale&&n.originPoint===t.originPoint}class Sj{constructor(){this.members=[]}add(t){Pf(this.members,t),t.scheduleRender()}remove(t){if(Uf(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const s=this.members[this.members.length-1];s&&this.promote(s)}}relegate(t){const s=this.members.findIndex(l=>t===l);if(s===0)return!1;let r;for(let l=s;l>=0;l--){const c=this.members[l];if(c.isPresent!==!1){r=c;break}}return r?(this.promote(r),!0):!1}promote(t,s){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,s&&(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:l}=t.options;l===!1&&r.hide()}}
vendor: 4,945 bytes, line 59
59exitAnimationComplete(){this.members.forEach(t=>{const{options:s,resumingFrom:r}=t;s.onExitComplete&&s.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function _j(n,t,s){let r="";const l=n.x.translate/t.x,c=n.y.translate/t.y,u=(s==null?void 0:s.z)||0;if((l||c||u)&&(r=`translate3d(${l}px, ${c}px, ${u}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),s){const{transformPerspective:g,rotate:v,rotateX:b,rotateY:x,skewX:S,skewY:T}=s;g&&(r=`perspective(${g}px) ${r}`),v&&(r+=`rotate(${v}deg) `),b&&(r+=`rotateX(${b}deg) `),x&&(r+=`rotateY(${x}deg) `),S&&(r+=`skewX(${S}deg) `),T&&(r+=`skewY(${T}deg) `)}const h=n.x.scale*t.x,m=n.y.scale*t.y;return(h!==1||m!==1)&&(r+=`scale(${h}, ${m})`),r||"none"}const yd=["","X","Y","Z"],Tj={visibility:"hidden"},ov=1e3;let Ej=0;function bd(n,t,s,r){const{latestValues:l}=t;l[n]&&(s[n]=l[n],t.setStaticValue(n,0),r&&(r[n]=0))}function I1(n){if(n.hasCheckedOptimisedAppear=!0,n.root===n)return;const{visualElement:t}=n.options;if(!t)return;const s=e1(t);if(window.MotionHasOptimisedAnimation(s,"transform")){const{layout:l,layoutId:c}=n.options;window.MotionCancelOptimisedAnimation(s,"transform",Te,!(l||c))}const{parent:r}=n;r&&!r.hasCheckedOptimisedAppear&&I1(r)}function K1({attachResizeListener:n,defaultParent:t,measureScroll:s,checkIsScrollRoot:r,resetTransform:l}){return class{constructor(u={},h=t==null?void 0:t()){this.id=Ej++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(Rj),this.nodes.forEach(Mj),this.nodes.forEach(kj),this.nodes.forEach(Cj)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=u,this.root=h?h.root||h:this,this.path=h?[...h.path,h]:[],this.parent=h,this.depth=h?h.depth+1:0;for(let m=0;m<this.path.length;m++)this.path[m].shouldResetTransform=!0;this.root===this&&(this.nodes=new fj)}addEventListener(u,h){return this.eventHandlers.has(u)||this.eventHandlers.set(u,new Vf),this.eventHandlers.get(u).add(h)}notifyListeners(u,...h){const m=this.eventHandlers.get(u);m&&m.notify(...h)}hasListeners(u){return this.eventHandlers.has(u)}mount(u,h=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=uj(u),this.instance=u;const{layoutId:m,layout:g,visualElement:v}=this.options;if(v&&!v.current&&v.mount(u),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),h&&(g||m)&&(this.isLayoutDirty=!0),n){let b;const x=()=>this.root.updateBlockedByResize=!1;n(u,()=>{this.root.updateBlockedByResize=!0,b&&b(),b=hj(x,250),jo.hasAnimatedSinceResize&&(jo.hasAnimatedSinceResize=!1,this.nodes.forEach(uv))})}m&&this.root.registerSharedNode(m,this),this.options.animate!==!1&&v&&(m||g)&&this.addEventListener("didUpdate",({delta:b,hasLayoutChanged:x,hasRelativeLayoutChanged:S,layout:T})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const C=this.options.transition||v.getDefaultTransition()||zj,{onLayoutAnimationStart:j,onLayoutAnimationComplete:A}=v.getProps(),M=!this.targetLayout||!F1(this.targetLayout,T),D=!x&&S;if(this.options.layoutRoot||this.resumeFrom||D||x&&(M||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(b,D);const B={...Of(C,"layout"),onPlay:j,onComplete:A};(v.shouldReduceMotion||this.options.layoutRoot)&&(B.delay=0,B.type=!1),this.startAnimation(B)}else x||uv(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=T})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const u=this.getStack();u&&u.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Wt(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.forEac
vendor: 17,163 bytes, line 59
59h(Lj),this.animationId++)}getTransformTemplate(){const{visualElement:u}=this.options;return u&&u.getProps().transformTemplate}willUpdate(u=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&I1(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let v=0;v<this.path.length;v++){const b=this.path[v];b.shouldResetTransform=!0,b.updateScroll("snapshot"),b.options.layoutRoot&&b.willUpdate(!1)}const{layoutId:h,layout:m}=this.options;if(h===void 0&&!m)return;const g=this.getTransformTemplate();this.prevTransformTemplateValue=g?g(this.latestValues,""):void 0,this.updateSnapshot(),u&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(cv);return}this.isUpdating||this.nodes.forEach(Oj),this.isUpdating=!1,this.nodes.forEach(Dj),this.nodes.forEach(jj),this.nodes.forEach(Aj),this.clearAllSnapshots();const h=vn.now();ot.delta=bn(0,1e3/60,h-ot.timestamp),ot.timestamp=h,ot.isProcessing=!0,ud.update.process(ot),ud.preRender.process(ot),ud.render.process(ot),ot.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,xf.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Nj),this.sharedNodes.forEach(Pj)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Te.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Te.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!_t(this.snapshot.measuredBox.x)&&!_t(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 m=0;m<this.path.length;m++)this.path[m].updateScroll();const u=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Fe(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:h}=this.options;h&&h.notify("LayoutMeasure",this.layout.layoutBox,u?u.layoutBox:void 0)}updateScroll(u="measure"){let h=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===u&&(h=!1),h){const m=r(this.instance);this.scroll={animationId:this.root.animationId,phase:u,isRoot:m,offset:s(this.instance),wasRoot:this.scroll?this.scroll.isRoot:m}}}resetTransform(){if(!l)return;const u=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,h=this.projectionDelta&&!X1(this.projectionDelta),m=this.getTransformTemplate(),g=m?m(this.latestValues,""):void 0,v=g!==this.prevTransformTemplateValue;u&&(h||Zi(this.latestValues)||v)&&(l(this.instance,g),this.shouldResetTransform=!1,this.scheduleRender())}measure(u=!0){const h=this.measurePageBox();let m=this.removeElementScroll(h);return u&&(m=this.removeTransform(m)),Bj(m),{animationId:this.root.animationId,measuredBox:h,layoutBox:m,latestValues:{},source:this.id}}measurePageBox(){var u;const{visualElement:h}=this.options;if(!h)return Fe();const m=h.measureViewportBox();if(!(((u=this.scroll)===null||u===void 0?void 0:u.wasRoot)||this.path.some(Hj))){const{scroll:v}=this.root;v&&(ea(m.x,v.offset.x),ea(m.y,v.offset.y))}return m}removeElementScroll(u){var h;const m=Fe();if(Zt(m,u),!((h=this.scroll)===null||h===void 0)&&h.wasRoot)return m;for(let g=0;g<this.path.length;g++){const v=this.path[g],{scroll:b,options:x}=v;v!==this.root&&b&&x.layoutScroll&&(b.wasRoot&&Zt(m,u),ea(m.x,b.offset.x),ea(m.y,b.offset.y))}return m}applyTransform(u,h=!1){const m=Fe();Zt(m,u);for(let g=0;g<this.path.length;g++){const v=this.path[g];!h&&v.options.layoutScroll&&v.scroll&&v!==v.root&&ta(m,{x:-v.scroll.offset.x,y:-v.scroll.offset.y}),Zi(v.latestValues)&&ta(m,v.latestValues)}return Zi(this.latestValues)&&ta(m,this.latestValues),m}removeTransform(u){const h=Fe();Zt(h,u);for(let m=0;m<this.path.length;m++){const g=this.path[m];if(!g.instance||!Zi(g.latestValues))continue;$d(g.latestValues)&&g.updateSnapshot();const v=Fe(),b=g.measurePageBox();Zt(v,b),nv(h,g.latestValues,g.snapshot?g.snapshot.layoutBox:void 0,v)}return Zi(this.latestValues)&&nv(h,this.latestValues),h}setTargetDelta(u){this.targetDelta=u,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(u){this.options={...this.options,...u,crossfade:u.crossfade!==void 0?u.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!==ot.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(u=!1){var h;const m=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=m.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=m.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=m.isSharedProjectionDirty);const g=!!this.resumingFrom||this!==m;if(!(u||g&&this.isSharedProjectionDirty||this.isProjectionDirty||!((h=this.parent)===null||h===void 0)&&h.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:b,layoutId:x}=this.options;if(!(!this.layout||!(b||x))){if(this.resolvedRelativeTargetAt=ot.timestamp,!this.targetDelta&&!this.relativeTarget){const S=this.getClosestProjectingParent();S&&S.layout&&this.animationProgress!==1?(this.relativeParent=S,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Fe(),this.relativeTargetOrigin=Fe(),Ar(this.relativeTargetOrigin,this.layout.layoutBox,S.layout.layoutBox),Zt(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Fe(),this.targetWithTransforms=Fe()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),$E(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Zt(this.target,this.layout.layoutBox),z1(this.target,this.targetDelta)):Zt(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const S=this.getClosestProjectingParent();S&&!!S.resumingFrom==!!this.resumingFrom&&!S.options.layoutScroll&&S.target&&this.animationProgress!==1?(this.relativeParent=S,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Fe(),this.relativeTargetOrigin=Fe(),Ar(this.relativeTargetOrigin,this.target,S.target),Zt(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||$d(this.parent.latestValues)||V1(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var u;const h=this.getLead(),m=!!this.resumingFrom||this!==h;let g=!0;if((this.isProjectionDirty||!((u=this.parent)===null||u===void 0)&&u.isProjectionDirty)&&(g=!1),m&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(g=!1),this.resolvedRelativeTargetAt===ot.timestamp&&(g=!1),g)return;const{layout:v,layoutId:b}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(v||b))return;Zt(this.layoutCorrected,this.layout.layoutBox);const x=this.treeScale.x,S=this.treeScale.y;GE(this.layoutCorrected,this.treeScale,this.path,m),h.layout&&!h.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(h.target=h.layout.layoutBox,h.targetWithTransforms=Fe());const{target:T}=h;if(!T){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Jg(this.prevProjectionDelta.x,this.projectionDelta.x),Jg(this.prevProjectionDelta.y,this.projectionDelta.y)),jr(this.projectionDelta,this.layoutCorrected,T,this.latestValues),(this.treeScale.x!==x||this.treeScale.y!==S||!lv(this.projectionDelta.x,this.prevProjectionDelta.x)||!lv(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",T))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(u=!0){var h;if((h=this.options.visualElement)===null||h===void 0||h.scheduleRender(),u){const m=this.getStack();m&&m.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Js(),this.projectionDelta=Js(),this.projectionDeltaWithTransform=Js()}setAnimationOrigin(u,h=!1){const m=this.snapshot,g=m?m.latestValues:{},v={...this.latestValues},b=Js();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!h;const x=Fe(),S=m?m.source:void 0,T=this.layout?this.layout.source:void 0,C=S!==T,j=this.getStack(),A=!j||j.members.length<=1,M=!!(C&&!A&&this.options.crossfade===!0&&!this.path.some(Vj));this.animationProgress=0;let D;this.mixTargetDelta=B=>{const U=B/1e3;dv(b.x,u.x,U),dv(b.y,u.y,U),this.setTargetDelta(b),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Ar(x,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Uj(this.relativeTarget,this.relativeTargetOrigin,x,U),D&&wj(this.relativeTarget,D)&&(this.isProjectionDirty=!1),D||(D=Fe()),Zt(D,this.relativeTarget)),C&&(this.animationValues=v,pj(v,g,this.latestValues,U,M,A)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=U},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(u){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Wt(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Te.update(()=>{jo.hasAnimatedSinceResize=!0,this.currentAnimation=cj(0,ov,{...u,onUpdate:h=>{this.mixTargetDelta(h),u.onUpdate&&u.onUpdate(h)},onStop:()=>{},onComplete:()=>{u.onComplete&&u.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 u=this.getStack();u&&u.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(ov),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const u=this.getLead();let{targetWithTransforms:h,target:m,layout:g,latestValues:v}=u;if(!(!h||!m||!g)){if(this!==u&&this.layout&&g&&Z1(this.options.animationType,this.layout.layoutBox,g.layoutBox)){m=this.target||Fe();const b=_t(this.layout.layoutBox.x);m.x.min=u.target.x.min,m.x.max=m.x.min+b;const x=_t(this.layout.layoutBox.y);m.y.min=u.target.y.min,m.y.max=m.y.min+x}Zt(h,m),ta(h,v),jr(this.projectionDeltaWithTransform,this.layoutCorrected,h,v)}}registerSharedNode(u,h){this.sharedNodes.has(u)||this.sharedNodes.set(u,new Sj),this.sharedNodes.get(u).add(h);const g=h.options.initialPromotionConfig;h.promote({transition:g?g.transition:void 0,preserveFollowOpacity:g&&g.shouldPreserveFollowOpacity?g.shouldPreserveFollowOpacity(h):void 0})}isLead(){const u=this.getStack();return u?u.lead===this:!0}getLead(){var u;const{layoutId:h}=this.options;return h?((u=this.getStack())===null||u===void 0?void 0:u.lead)||this:this}getPrevLead(){var u;const{layoutId:h}=this.options;return h?(u=this.getStack())===null||u===void 0?void 0:u.prevLead:void 0}getStack(){const{layoutId:u}=this.options;if(u)return this.root.sharedNodes.get(u)}promote({needsReset:u,transition:h,preserveFollowOpacity:m}={}){const g=this.getStack();g&&g.promote(this,m),u&&(this.projectionDelta=void 0,this.needsReset=!0),h&&this.setOptions({transition:h})}relegate(){const u=this.getStack();return u?u.relegate(this):!1}resetSkewAndRotation(){const{visualElement:u}=this.options;if(!u)return;let h=!1;const{latestValues:m}=u;if((m.z||m.rotate||m.rotateX||m.rotateY||m.rotateZ||m.skewX||m.skewY)&&(h=!0),!h)return;const g={};m.z&&bd("z",u,g,this.animationValues);for(let v=0;v<yd.length;v++)bd(`rotate${yd[v]}`,u,g,this.animationValues),bd(`skew${yd[v]}`,u,g,this.animationValues);u.render();for(const v in g)u.setStaticValue(v,g[v]),this.animationValues&&(this.animationValues[v]=g[v]);u.scheduleRender()}getProjectionStyles(u){var h,m;if(!this.instance||this.isSVG)return;if(!this.isVisible)return Tj;const g={visibility:""},v=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,g.opacity="",g.pointerEvents=To(u==null?void 0:u.pointerEvents)||"",g.transform=v?v(this.latestValues,""):"none",g;const b=this.getLead();if(!this.projectionDelta||!this.layout||!b.target){const C={};return this.options.layoutId&&(C.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,C.pointerEvents=To(u==null?void 0:u.pointerEvents)||""),this.hasProjected&&!Zi(this.latestValues)&&(C.transform=v?v({},""):"none",this.hasProjected=!1),C}const x=b.animationValues||b.latestValues;this.applyTransformsToTarget(),g.transform=_j(this.projectionDeltaWithTransform,this.treeScale,x),v&&(g.transform=v(x,g.transform));const{x:S,y:T}=this.projectionDelta;g.transformOrigin=`${S.origin*100}% ${T.origin*100}% 0`,b.animationValues?g.opacity=b===this?(m=(h=x.opacity)!==null&&h!==void 0?h:this.latestValues.opacity)!==null&&m!==void 0?m:1:this.preserveOpacity?this.latestValues.opacity:x.opacityExit:g.opacity=b===this?x.opacity!==void 0?x.opacity:"":x.opacityExit!==void 0?x.opacityExit:0;for(const C in kr){if(x[C]===void 0)continue;const{correct:j,applyTo:A,isCSSVariable:M}=kr[C],D=g.transform==="none"?x[C]:j(x[C],b);if(A){const B=A.length;for(let U=0;U<B;U++)g[A[U]]=D}else M?this.options.visualElement.renderState.vars[C]=D:g[C]=D}return this.options.layoutId&&(g.pointerEvents=b===this?To(u==null?void 0:u.pointerEvents)||"":"none"),g}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(u=>{var h;return(h=u.currentAnimation)===null||h===void 0?void 0:h.stop()}),this.root.nodes.forEach(cv),this.root.sharedNodes.clear()}}}function jj(n){n.updateLayout()}function Aj(n){var t;const s=((t=n.resumeFrom)===null||t===void 0?void 0:t.snapshot)||n.snapshot;if(n.isLead()&&n.layout&&s&&n.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:l}=n.layout,{animationType:c}=n.options,u=s.source!==n.layout.source;c==="size"?Qt(b=>{const x=u?s.measuredBox[b]:s.layoutBox[b],S=_t(x);x.min=r[b].min,x.max=x.min+S}):Z1(c,s.layoutBox,r)&&Qt(b=>{const x=u?s.measuredBox[b]:s.layoutBox[b],S=_t(r[b]);x.max=x.min+S,n.relativeTarget&&!n.currentAnimation&&(n.isProjectionDirty=!0,n.relativeTarget[b].max=n.relativeTarget[b].min+S)});const h=Js();jr(h,r,s.layoutBox);const m=Js();u?jr(m,n.applyTransform(l,!0),s.measuredBox):jr(m,r,s.layoutBox);const g=!X1(h);let v=!1;if(!n.resumeFrom){const b=n.getClosestProjectingParent();if(b&&!b.resumeFrom){const{snapshot:x,layout:S}=b;if(x&&S){const T=Fe();Ar(T,s.layoutBox,x.layoutBox);const C=Fe();Ar(C,r,S.layoutBox),F1(T,C)||(v=!0),b.options.layoutRoot&&(n.relativeTarget=C,n.relativeTargetOrigin=T,n.relativeParent=b)}}}n.notifyListeners("didUpdate",{layout:r,snapshot:s,delta:m,layoutDelta:h,hasLayoutChanged:g,hasRelativeLayoutChanged:v})}else if(n.isLead()){const{onExitComplete:r}=n.options;r&&r()}n.options.transition=void 0}function Rj(n){n.parent&&(n.isProjecting()||(n.isProjectionDirty=n.parent.isProjectionDirty),n.isSharedProjectionDirty||(n.isSharedProjectionDirty=!!(n.isProjectionDirty||n.parent.isProjectionDirty||n.parent.isSharedProjectionDirty)),n.isTransformDirty||(n.isTransformDirty=n.parent.isTransformDirty))}function Cj(n){n.isProjectionDirty=n.isSharedProjectionDirty=n.isTransformDirty=!1}function Nj(n){n.clearSnapshot()}function cv(n){n.clearMeasurements()}function Oj(n){n.isLayoutDirty=!1}function Dj(n){const{visualElement:t}=n.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),n.resetTransform()}function uv(n){n.finishAnimation(),n.targetDelta=n.relativeTarget=n.target=void 0,n.isProjectionDirty=!0}function Mj(n){n.resolveTargetDelta()}function kj(n){n.calcProjection()}
vendor: 9,486 bytes, line 59
59function Lj(n){n.resetSkewAndRotation()}function Pj(n){n.removeLeadSnapshot()}function dv(n,t,s){n.translate=ze(t.translate,0,s),n.scale=ze(t.scale,1,s),n.origin=t.origin,n.originPoint=t.originPoint}function fv(n,t,s,r){n.min=ze(t.min,s.min,r),n.max=ze(t.max,s.max,r)}function Uj(n,t,s,r){fv(n.x,t.x,s.x,r),fv(n.y,t.y,s.y,r)}function Vj(n){return n.animationValues&&n.animationValues.opacityExit!==void 0}const zj={duration:.45,ease:[.4,0,.1,1]},hv=n=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(n),mv=hv("applewebkit/")&&!hv("chrome/")?Math.round:bt;function pv(n){n.min=mv(n.min),n.max=mv(n.max)}function Bj(n){pv(n.x),pv(n.y)}function Z1(n,t,s){return n==="position"||n==="preserve-aspect"&&!qE(rv(t),rv(s),.2)}function Hj(n){var t;return n!==n.root&&((t=n.scroll)===null||t===void 0?void 0:t.wasRoot)}const qj=K1({attachResizeListener:(n,t)=>Vr(n,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),xd={current:void 0},Q1=K1({measureScroll:n=>({x:n.scrollLeft,y:n.scrollTop}),defaultParent:()=>{if(!xd.current){const n=new qj({});n.mount(window),n.setOptions({layoutScroll:!0}),xd.current=n}return xd.current},resetTransform:(n,t)=>{n.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:n=>window.getComputedStyle(n).position==="fixed"}),$j={pan:{Feature:aj},drag:{Feature:sj,ProjectionNode:Q1,MeasureLayout:$1}};function gv(n,t,s){const{props:r}=n;n.animationState&&r.whileHover&&n.animationState.setActive("whileHover",s==="Start");const l="onHover"+s,c=r[l];c&&Te.postRender(()=>c(t,Ir(t)))}class Gj extends Ti{mount(){const{current:t}=this.node;t&&(this.unmount=Y_(t,(s,r)=>(gv(this.node,r,"Start"),l=>gv(this.node,l,"End"))))}unmount(){}}class Yj extends Ti{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=Fr(Vr(this.node.current,"focus",()=>this.onFocus()),Vr(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function vv(n,t,s){const{props:r}=n;if(n.current instanceof HTMLButtonElement&&n.current.disabled)return;n.animationState&&r.whileTap&&n.animationState.setActive("whileTap",s==="Start");const l="onTap"+(s==="End"?"":s),c=r[l];c&&Te.postRender(()=>c(t,Ir(t)))}class Xj extends Ti{mount(){const{current:t}=this.node;t&&(this.unmount=K_(t,(s,r)=>(vv(this.node,r,"Start"),(l,{success:c})=>vv(this.node,l,c?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Xd=new WeakMap,wd=new WeakMap,Fj=n=>{const t=Xd.get(n.target);t&&t(n)},Ij=n=>{n.forEach(Fj)};function Kj({root:n,...t}){const s=n||document;wd.has(s)||wd.set(s,{});const r=wd.get(s),l=JSON.stringify(t);return r[l]||(r[l]=new IntersectionObserver(Ij,{root:n,...t})),r[l]}function Zj(n,t,s){const r=Kj(t);return Xd.set(n,s),r.observe(n),()=>{Xd.delete(n),r.unobserve(n)}}const Qj={some:0,all:1};class Wj extends Ti{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:s,margin:r,amount:l="some",once:c}=t,u={root:s?s.current:void 0,rootMargin:r,threshold:typeof l=="number"?l:Qj[l]},h=m=>{const{isIntersecting:g}=m;if(this.isInView===g||(this.isInView=g,c&&!g&&this.hasEnteredView))return;g&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",g);const{onViewportEnter:v,onViewportLeave:b}=this.node.getProps(),x=g?v:b;x&&x(m)};return Zj(this.node.current,u,h)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:s}=this.node;["amount","margin","root"].some(Jj(t,s))&&this.startObserver()}unmount(){}}function Jj({viewport:n={}},{viewport:t={}}={}){return s=>n[s]!==t[s]}const eA={inView:{Feature:Wj},tap:{Feature:Xj},focus:{Feature:Yj},hover:{Feature:Gj}},tA={layout:{ProjectionNode:Q1,MeasureLayout:$1}},Fd={current:null},W1={current:!1};function nA(){if(W1.current=!0,!!pf)if(window.matchMedia){const n=window.matchMedia("(prefers-reduced-motion)"),t=()=>Fd.current=n.matches;n.addListener(t),t()}else Fd.current=!1}const iA=[...w1,vt,Si],sA=n=>iA.find(x1(n)),aA=new WeakMap;function rA(n,t,s){for(const r in t){const l=t[r],c=s[r];if(Je(l))n.addValue(r,l);else if(Je(c))n.addValue(r,pn(l,{owner:n}));else if(c!==l)if(n.hasValue(r)){const u=n.getValue(r);u.liveStyle===!0?u.jump(l):u.hasAnimated||u.set(l)}else{const u=n.getStaticValue(r);n.addValue(r,pn(u!==void 0?u:l,{owner:n}))}}for(const r in s)t[r]===void 0&&n.removeValue(r);return t}const yv=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class lA{scrapeMotionValuesFromProps(t,s,r){return{}}constructor({parent:t,props:s,presenceContext:r,reducedMotionConfig:l,blockInitialAnimation:c,visualState:u},h={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Xf,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 S=vn.now();this.renderScheduledAt<S&&(this.renderScheduledAt=S,Te.render(this.render,!1,!0))};const{latestValues:m,renderState:g,onUpdate:v}=u;this.onUpdate=v,this.latestValues=m,this.baseTarget={...m},this.initialValues=s.initial?{...m}:{},this.renderState=g,this.parent=t,this.props=s,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=l,this.options=h,this.blockInitialAnimation=!!c,this.isControllingVariants=$o(s),this.isVariantNode=Ny(s),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:b,...x}=this.scrapeMotionValuesFromProps(s,{},this);for(const S in x){const T=x[S];m[S]!==void 0&&Je(T)&&T.set(m[S],!1)}}mount(t){this.current=t,aA.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((s,r)=>this.bindToMotionValue(r,s)),W1.current||nA(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Fd.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),Wt(this.notifyUpdate),Wt(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const s=this.features[t];s&&(s.unmount(),s.isMounted=!1)}this.current=null}bindToMotionValue(t,s){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=ns.has(t);r&&this.onBindTransform&&this.onBindTransform();const l=s.on("change",h=>{this.latestValues[t]=h,this.props.onUpdate&&Te.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),c=s.on("renderRequest",this.scheduleRender);let u;window.MotionCheckAppearSync&&(u=window.MotionCheckAppearSync(this,t,s)),this.valueSubscriptions.set(t,()=>{l(),c(),u&&u(),s.owner&&s.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 sa){const s=sa[t];if(!s)continue;const{isEnabled:r,Feature:l}=s;if(!this.features[t]&&l&&r(this.props)&&(this.features[t]=new l(this)),this.features[t]){const c=this.features[t];c.isMounted?c.update():(c.mount(),c.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Fe()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,s){this.latestValues[t]=s}update(t,s){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=s;for(let r=0;r<yv.length;r++){const l=yv[r];this.propEventSubscriptions[l]&&(this.propEventSubscriptions[l](),delete this.propEventSubscriptions[l]);const c="on"+l,u=t[c];u&&(this.propEventSubscriptions[l]=this.on(l,u))}this.prevMotionValues=rA(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}
59addVariantChild(t){const s=this.getClosestVariantNode();if(s)return s.variantChildren&&s.variantChildren.add(t),()=>s.variantChildren.delete(t)}addValue(t,s){const r=this.values.get(t);s!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,s),this.values.set(t,s),this.latestValues[t]=s.get())}removeValue(t){this.values.delete(t);const s=this.valueSubscriptions.get(t);s&&(s(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,s){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&s!==void 0&&(r=pn(s===null?void 0:s,{owner:this}),this.addValue(t,r)),r}readValue(t,s){var r;let l=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return l!=null&&(typeof l=="string"&&(y1(l)||c1(l))?l=parseFloat(l):!sA(l)&&Si.test(s)&&(l=p1(t,s)),this.setBaseTarget(t,Je(l)?l.get():l)),Je(l)?l.get():l}setBaseTarget(t,s){this.baseTarget[t]=s}getBaseTarget(t){var s;const{initial:r}=this.props;let l;if(typeof r=="string"||typeof r=="object"){const u=Cf(this.props,r,(s=this.presenceContext)===null||s===void 0?void 0:s.custom);u&&(l=u[t])}if(r&&l!==void 0)return l;const c=this.getBaseTargetFromProps(this.props,t);return c!==void 0&&!Je(c)?c:this.initialValues[t]!==void 0&&l===void 0?void 0:this.baseTarget[t]}on(t,s){return this.events[t]||(this.events[t]=new Vf),this.events[t].add(s)}notify(t,...s){this.events[t]&&this.events[t].notify(...s)}}class J1 extends lA{constructor(){super(...arguments),this.KeyframeResolver=S1}sortInstanceNodePosition(t,s){return t.compareDocumentPosition(s)&2?1:-1}getBaseTargetFromProps(t,s){return t.style?t.style[s]:void 0}removeValueFromRenderState(t,{vars:s,style:r}){delete s[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Je(t)&&(this.childSubscription=t.on("change",s=>{this.current&&(this.current.textContent=`${s}`)}))}}function oA(n){return window.getComputedStyle(n)}class cA extends J1{constructor(){super(...arguments),this.type="html",this.renderInstance=Hy}readValueFromInstance(t,s){if(ns.has(s)){const r=Yf(s);return r&&r.default||0}else{const r=oA(t),l=(wf(s)?r.getPropertyValue(s):r[s])||0;return typeof l=="string"?l.trim():l}}measureInstanceViewportBox(t,{transformPagePoint:s}){return B1(t,s)}build(t,s,r){Tf(t,s,r.transformTemplate)}scrapeMotionValuesFromProps(t,s,r){return Nf(t,s,r)}}class uA extends J1{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Fe,this.updateDimensions=()=>{this.current&&!this.renderState.dimensions&&By(this.current,this.renderState)}}getBaseTargetFromProps(t,s){return t[s]}readValueFromInstance(t,s){if(ns.has(s)){const r=Yf(s);return r&&r.default||0}return s=qy.has(s)?s:bf(s),t.getAttribute(s)}scrapeMotionValuesFromProps(t,s,r){return Gy(t,s,r)}onBindTransform(){this.current&&!this.renderState.dimensions&&Te.postRender(this.updateDimensions)}build(t,s,r){Af(t,s,this.isSVGTag,r.transformTemplate)}renderInstance(t,s,r,l){$y(t,s,r,l)}mount(t){this.isSVGTag=Rf(t.tagName),super.mount(t)}}const dA=(n,t)=>jf(n)?new uA(t):new cA(t,{allowProjection:n!==_.Fragment}),fA=B_({...kE,...eA,...$j,...tA},dA),P=n_(fA);function eb(n,t){let s;const r=()=>{const{currentTime:l}=t,u=(l===null?0:l.value)/100;s!==u&&n(u),s=u};return Te.update(r,!0),()=>Wt(r)}const Ao=new WeakMap;let vi;function hA(n,t){if(t){const{inlineSize:s,blockSize:r}=t[0];return{width:s,height:r}}else return n instanceof SVGElement&&"getBBox"in n?n.getBBox():{width:n.offsetWidth,height:n.offsetHeight}}function mA({target:n,contentRect:t,borderBoxSize:s}){var r;(r=Ao.get(n))===null||r===void 0||r.forEach(l=>{l({target:n,contentSize:t,get size(){return hA(n,s)}})})}function pA(n){n.forEach(mA)}function gA(){typeof ResizeObserver>"u"||(vi=new ResizeObserver(pA))}function vA(n,t){vi||gA();const s=kf(n);
59return s.forEach(r=>{let l=Ao.get(r);l||(l=new Set,Ao.set(r,l)),l.add(t),vi==null||vi.observe(r)}),()=>{s.forEach(r=>{const l=Ao.get(r);l==null||l.delete(t),l!=null&&l.size||vi==null||vi.unobserve(r)})}}const Ro=new Set;let Rr;function yA(){Rr=()=>{const n={width:window.innerWidth,height:window.innerHeight},t={target:window,size:n,contentSize:n};Ro.forEach(s=>s(t))},window.addEventListener("resize",Rr)}function bA(n){return Ro.add(n),Rr||yA(),()=>{Ro.delete(n),!Ro.size&&Rr&&(Rr=void 0)}}function xA(n,t){return typeof n=="function"?bA(n):vA(n,t)}const wA=50,bv=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),SA=()=>({time:0,x:bv(),y:bv()}),_A={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function xv(n,t,s,r){const l=s[t],{length:c,position:u}=_A[t],h=l.current,m=s.time;l.current=n[`scroll${u}`],l.scrollLength=n[`scroll${c}`]-n[`client${c}`],l.offset.length=0,l.offset[0]=0,l.offset[1]=l.scrollLength,l.progress=ts(0,l.scrollLength,l.current);const g=r-m;l.velocity=g>wA?0:zf(l.current-h,g)}function TA(n,t,s){xv(n,"x",t,s),xv(n,"y",t,s),t.time=s}function EA(n,t){const s={x:0,y:0};let r=n;for(;r&&r!==t;)if(r instanceof HTMLElement)s.x+=r.offsetLeft,s.y+=r.offsetTop,r=r.offsetParent;else if(r.tagName==="svg"){const l=r.getBoundingClientRect();r=r.parentElement;const c=r.getBoundingClientRect();s.x+=l.left-c.left,s.y+=l.top-c.top}else if(r instanceof SVGGraphicsElement){const{x:l,y:c}=r.getBBox();s.x+=l,s.y+=c;let u=null,h=r.parentNode;for(;!u;)h.tagName==="svg"&&(u=h),h=r.parentNode;r=u}else break;return s}const Id={start:0,center:.5,end:1};function wv(n,t,s=0){let r=0;if(n in Id&&(n=Id[n]),typeof n=="string"){const l=parseFloat(n);n.endsWith("px")?r=l:n.endsWith("%")?n=l/100:n.endsWith("vw")?r=l/100*document.documentElement.clientWidth:n.endsWith("vh")?r=l/100*document.documentElement.clientHeight:n=l}return typeof n=="number"&&(r=t*n),s+r}const jA=[0,0];function AA(n,t,s,r){let l=Array.isArray(n)?n:jA,c=0,u=0;return typeof n=="number"?l=[n,n]:typeof n=="string"&&(n=n.trim(),n.includes(" ")?l=n.split(" "):l=[n,Id[n]?n:"0"]),c=wv(l[0],s,r),u=wv(l[1],t),c-u}const RA={All:[[0,0],[1,1]]},CA={x:0,y:0};function NA(n){return"getBBox"in n&&n.tagName!=="svg"?n.getBBox():{width:n.clientWidth,height:n.clientHeight}}function OA(n,t,s){const{offset:r=RA.All}=s,{target:l=n,axis:c="y"}=s,u=c==="y"?"height":"width",h=l!==n?EA(l,n):CA,m=l===n?{width:n.scrollWidth,height:n.scrollHeight}:NA(l),g={width:n.clientWidth,height:n.clientHeight};t[c].offset.length=0;let v=!t[c].interpolate;const b=r.length;for(let x=0;x<b;x++){const S=AA(r[x],g[u],m[u],h[c]);!v&&S!==t[c].interpolatorOffsets[x]&&(v=!0),t[c].offset[x]=S}v&&(t[c].interpolate=If(t[c].offset,C1(r),{clamp:!1}),t[c].interpolatorOffsets=[...t[c].offset]),t[c].progress=bn(0,1,t[c].interpolate(t[c].current))}function DA(n,t=n,s){if(s.x.targetOffset=0,s.y.targetOffset=0,t!==n){let r=t;for(;r&&r!==n;)s.x.targetOffset+=r.offsetLeft,s.y.targetOffset+=r.offsetTop,r=r.offsetParent}s.x.targetLength=t===n?t.scrollWidth:t.clientWidth,s.y.targetLength=t===n?t.scrollHeight:t.clientHeight,s.x.containerLength=n.clientWidth,s.y.containerLength=n.clientHeight}function MA(n,t,s,r={}){return{measure:()=>DA(n,r.target,s),update:l=>{TA(n,s,l),(r.offset||r.target)&&OA(n,s,r)},notify:()=>t(s)}}const vr=new WeakMap,Sv=new WeakMap,Sd=new WeakMap,_v=n=>n===document.documentElement?window:n;function Zf(n,{container:t=document.documentElement,...s}={}){let r=Sd.get(t);r||(r=new Set,Sd.set(t,r));const l=SA(),c=MA(t,n,l,s);if(r.add(c),!vr.has(t)){const h=()=>{for(const x of r)x.measure()},m=()=>{for(const x of r)x.update(ot.timestamp)},g=()=>{for(const x of r)x.notify()},v=()=>{Te.read(h,!1,!0),Te.read(m,!1,!0),Te.update(g,!1,!0)};vr.set(t,v);const b=_v(t);window.addEventListener("resize",v,{passive:!0}),t!==document.documentElement&&Sv.set(t,xA(t,v)),b.addEventListener("scroll",v,{passive:!0})}const u=vr.get(t);return Te.read(u,!1,!0),()=>{var h;Wt(u);const m=Sd.get(t);if(!m||(m.delete(c),m.size))return;const g=vr.get(t);vr.delete(t),g&&(_v(t).removeEventListener("scroll",g),(h=Sv.get(t))===null||h===void 0||h(),window.removeEventListener("resize",g))}}function kA({source:n,container:t,axis:s="y"}
59){n&&(t=n);const r={value:0},l=Zf(c=>{r.value=c[s].progress*100},{container:t,axis:s});return{currentTime:r,cancel:l}}const _d=new Map;function tb({source:n,container:t=document.documentElement,axis:s="y"}={}){n&&(t=n),_d.has(t)||_d.set(t,{});const r=_d.get(t);return r[s]||(r[s]=Yy()?new ScrollTimeline({source:t,axis:s}):kA({source:t,axis:s})),r[s]}function LA(n){return n.length===2}function nb(n){return n&&(n.target||n.offset)}function PA(n,t){return LA(n)||nb(t)?Zf(s=>{n(s[t.axis].progress,s)},t):eb(n,tb(t))}function UA(n,t){if(n.flatten(),nb(t))return n.pause(),Zf(s=>{n.time=n.duration*s[t.axis].progress},t);{const s=tb(t);return n.attachTimeline?n.attachTimeline(s,r=>(r.pause(),eb(l=>{r.time=r.duration*l},s))):bt}}function VA(n,{axis:t="y",...s}={}){const r={axis:t,...s};return typeof n=="function"?PA(n,r):UA(n,r)}function Tv(n,t){I2(!!(!t||t.current))}const zA=()=>({scrollX:pn(0),scrollY:pn(0),scrollXProgress:pn(0),scrollYProgress:pn(0)});function _i({container:n,target:t,layoutEffect:s=!0,...r}={}){const l=Gn(zA);return(s?da:_.useEffect)(()=>(Tv("target",t),Tv("container",n),VA((u,{x:h,y:m})=>{l.scrollX.set(h.current),l.scrollXProgress.set(h.progress),l.scrollY.set(m.current),l.scrollYProgress.set(m.progress)},{...r,container:(n==null?void 0:n.current)||void 0,target:(t==null?void 0:t.current)||void 0})),[n,t,JSON.stringify(r.offset)]),l}function zr(n){const t=Gn(()=>pn(n)),{isStatic:s}=_.useContext(ua);if(s){const[,r]=_.useState(n);_.useEffect(()=>t.on("change",r),[])}return t}function Qf(n,t){const s=zr(t()),r=()=>s.set(t());return r(),da(()=>{const l=()=>Te.preRender(r,!1,!0),c=n.map(u=>u.on("change",l));return()=>{c.forEach(u=>u()),Wt(r)}}),s}function BA(n,...t){const s=n.length;function r(){let l="";for(let c=0;c<s;c++){l+=n[c];const u=t[c];u&&(l+=Je(u)?u.get():u)}return l}return Qf(t.filter(Je),r)}function na(n,t={}){const{isStatic:s}=_.useContext(ua),r=_.useRef(null),l=Gn(()=>Je(n)?n.get():n),c=Gn(()=>typeof l=="string"?l.replace(/[\d.-]/g,""):void 0),u=zr(l),h=_.useRef(l),m=_.useRef(bt),g=()=>{v(),r.current=oE({keyframes:[jv(u.get()),jv(h.current)],velocity:u.getVelocity(),type:"spring",restDelta:.001,restSpeed:.01,...t,onUpdate:m.current})},v=()=>{r.current&&r.current.stop()};return _.useInsertionEffect(()=>u.attach((b,x)=>s?x(b):(h.current=b,m.current=S=>x(Ev(S,c)),Te.postRender(g),u.get()),v),[JSON.stringify(t)]),da(()=>{if(Je(n))return n.on("change",b=>u.set(Ev(b,c)))},[u,c]),u}function Ev(n,t){return t?n+t:n}function jv(n){return typeof n=="number"?n:parseFloat(n)}function HA(n){const t=_.useRef(0),{isStatic:s}=_.useContext(ua);_.useEffect(()=>{if(s)return;const r=({timestamp:l,delta:c})=>{t.current||(t.current=l),n(l-t.current,c)};return Te.update(r,!0),()=>Wt(r)},[n])}const qA=n=>n&&typeof n=="object"&&n.mix,$A=n=>qA(n)?n.mix:void 0;function GA(...n){const t=!Array.isArray(n[0]),s=t?0:-1,r=n[0+s],l=n[1+s],c=n[2+s],u=n[3+s],h=If(l,c,{mixer:$A(c[0]),...u});return t?h(r):h}function YA(n){Tr.current=[],n();const t=Qf(Tr.current,n);return Tr.current=void 0,t}function We(n,t,s,r){if(typeof n=="function")return YA(n);const l=typeof t=="function"?t:GA(t,s,r);return Array.isArray(n)?Av(n,l):Av([n],([c])=>l(c))}function Av(n,t){const s=Gn(()=>[]);return Qf(n,()=>{s.length=0;const r=n.length;for(let l=0;l<r;l++)s[l]=n[l].get();return t(s)})}function XA(n){n.values.forEach(t=>t.stop())}function Kd(n,t){[...t].reverse().forEach(r=>{const l=n.getVariant(r);l&&Bf(n,l),n.variantChildren&&n.variantChildren.forEach(c=>{Kd(c,t)})})}function FA(n,t){if(Array.isArray(t))return Kd(n,t);if(typeof t=="string")return Kd(n,[t]);Bf(n,t)}function IA(){const n=new Set,t={subscribe(s){return n.add(s),()=>void n.delete(s)},start(s,r){const l=[];return n.forEach(c=>{l.push(D1(c,s,{transitionOverride:r}))}),Promise.all(l)},set(s){return n.forEach(r=>{FA(r,s)})},stop(){n.forEach(s=>{XA(s)})},mount(){return()=>{t.stop()}}};return t}function KA(){const n=Gn(IA);return da(n.mount,[]),n}const Wf=KA,ZA={some:0,all:1};function QA(n,t,{root:s,margin:r,amount:l="some"}={}){const c=kf(n),u=new WeakMap,h=g=>{g.forEach(v=>{const b=u.get(v.target);if(v.isIntersecting!==!!b)if(v.isIntersecting){const x=t(v.target,v);typeof x=="function"?u.set(v.target,x):m.unobserve(v.target)}else typeof b=="function"&&(b(v),u.delete(v.target))})},m=new IntersectionObserver(h,{root:s,rootMargin:r,threshold:typeof l=="number"?l:ZA[l]});
59return c.forEach(g=>m.observe(g)),()=>m.disconnect()}function St(n,{root:t,margin:s,amount:r,once:l=!1,initial:c=!1}={}){const[u,h]=_.useState(c);return _.useEffect(()=>{if(!n.current||l&&u)return;const m=()=>(h(!0),l?void 0:()=>h(!1)),g={root:t&&t.current||void 0,margin:s,amount:r};return QA(n.current,m,g)},[t,n,s,l,r]),u}const ib="/assets/logo-Chp69Ke1.svg",Zd=n=>({initial:"initial",animate:"enter",exit:"exit",variants:n});function ct({children:n}){const[t,s]=_.useState({width:0,height:0});_.useEffect(()=>{const l=()=>{const c=window.screen.height;s({width:window.innerWidth,height:c})};return l(),window.addEventListener("resize",l),()=>window.removeEventListener("resize",l)},[]),Ut();const r={initial:{opacity:1},enter:{opacity:0,top:-100,transition:{delay:.3,duration:.75,ease:[.76,0,.24,1]},transitionEnd:{top:"47.5%"}},exit:{opacity:1,top:"40%",transition:{duration:.75,delay:.3,ease:[.76,0,.24,1]}}};return f.jsxs("div",{className:"curve-transition",children:[f.jsx(P.div,{className:"temp-bg",style:{opacity:t.width>0?0:1}}),f.jsx(P.h1,{className:"curve-title",...Zd(r),children:f.jsx("img",{src:ib})}),t.width>0&&f.jsx(WA,{...t}),n]})}const WA=({width:n,height:t})=>{const s=n<=768,r=s?100:300,l=300,c=s?400:600,u=` 60 M0 ${r} 61 Q${n/2} 0 ${n} ${r} 62 L${n} ${t+l} 63 Q${n/2} ${t+c} 0 ${t+l} 64 L0 ${r} 65 `,h=` 66 M0 ${r} 67 Q${n/2} 0 ${n} ${r} 68 L${n} ${t} 69 Q${n/2} ${t} 0 ${t} 70 L0 ${r} 71 `,m={initial:{d:u},enter:{d:h,transition:{duration:.75,delay:.3,ease:[.76,0,.24,1]}},exit:{d:u,transition:{duration:.75,ease:[.76,0,.24,1]}}},g={initial:{top:"-300px"},enter:{top:`-${t}px`,transition:{duration:.75,delay:.3,ease:[.76,0,.24,1]},transitionEnd:{top:`${t}px`}},exit:{top:"-300px",transition:{duration:.75,ease:[.76,0,.24,1]}}};return f.jsx(P.svg,{...Zd(g),children:f.jsx(P.path,{...Zd(m)})})},sb="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='32'%20height='32'%20fill='%23000000'%20viewBox='0%200%20256%20256'%3e%3cpath%20d='M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z'%3e%3c/path%3e%3c/svg%3e",JA="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='currentColor'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%20class='lucide%20lucide-arrow-right-icon%20lucide-arrow-right'%3e%3cpath%20d='M5%2012h14'/%3e%3cpath%20d='m12%205%207%207-7%207'/%3e%3c/svg%3e";function ab({text:n="Make a Connection",type:t="",to:s="/contact",animate:r={y:0,opacity:1,transition:{delay:1.9,duration:1.3,ease:[.76,0,.24,1]}}}){const[l,c]=_.useState(!1);return f.jsx(P.div,{className:"hero-right-button",initial:{y:50,opacity:0},animate:r,children:f.jsxs(yt,{to:s,className:"button-link",onMouseEnter:()=>c(!0),onMouseLeave:()=>c(!1),children:[f.jsx(P.button,{className:"quote-button",animate:{width:l?"70%":"100%"},transition:{duration:1.2,ease:[.25,1,.5,1]},children:n}),f.jsx(P.div,{className:"button-circle",animate:{scale:l?1:0},transition:{duration:.675,ease:[.25,1,.5,1]},children:f.jsx(P.img,{src:JA,initial:{x:"-120%"},animate:{x:l?"0%":"-120%"},transition:{duration:1.2,delay:.2,ease:[.25,1,.5,1]}})})]})})}function eR(){const n=[{main:"Inspiration",descriptors:["Visionary","Concepts"]},{main:"Design",descriptors:["Custom | ","Professional"]},{main:"Engineering",descriptors:["Precision","Excellence"]},{main:"Fabrication",descriptors:["In-house","Crafted"]},{main:"Construction",descriptors:["Seamless","Mastery"]},{main:"Finishing",descriptors:["Luxury","Detailing"]},{main:"Experience",descriptors:["Elevated | ","Tailored"]},{main:"Legacy",descriptors:["Enduring | ","Trusted"]}],t=_.useRef(null),{scrollY:s}=_i(),r=We(s,[0,window.innerHeight],window.innerWidth<=768?["0%","0%"]:["0%","-20%"]),l=We(s,[0,window.innerHeight],window.innerWidth<=768?["0%","0%"]:["0%","-100vh"]),c=We(s,[0,window.innerHeight],window.innerWidth<=768?["0%","0%"]:["0%","-100vh"]),u=We(s,[0,window.innerHeight],window.innerWidth<=768?["0%","0%"]:["0%","-100vh"]),h=We(s,[0,window.innerHeight*.1],[1,0]),m=We(s,[0,window.innerHeight-50,window.innerHeight],[.5,.5,1]),g=BA`rgba(0, 0, 0, ${m})`,[v,b]=_.useState(!1);return f.jsx(f.Fragment,{children:f.jsxs("section",{className:"landing-section",ref:t,children:[f.jsx(P.img,{src:"/images/Products/product2.webp",initial:{scale:1.05,y:20},animate:{scale:1,y:0,transition:{delay:.24,duration:1.3,ease:[.76,0,.24,1]}},style:{y:r}}),f.jsx(P.div,{className:"hero-overlay",style:{backgroundColor:window.innerWidth<=768?"none":g}}),f.jsxs("div",{className:"hero-content-wrapper",children:[f.jsxs("div",{className:"hero-text-overlay",children:[f.jsxs(P.div,{className:"hero-left",style:{y:l},children:[f.jsxs(P.h1,{className:"hero-title",initial:{y:800},animate:{y:0,transition:{delay:.4,duration:1.4,ease:[.25,1,.5,1]}},children:["Luxury in ",f.jsx("span",{className:"pretty-font",children:"Motion"}),".",f.jsx("br",{}),"Where Water ",f.jsx("span",{className:"pretty-font",children:"Inspires"}),"."]}),f.jsx(P.p,{initial:{y:50,opacity:0}
71,animate:{y:0,opacity:1,transition:{delay:1.1,duration:1.3,ease:[.76,0,.24,1]}},children:"EST. 1989"})]}),f.jsxs(P.div,{className:"hero-right",style:{y:c},children:[f.jsx(P.div,{className:"hero-right-line",initial:{scaleX:0},animate:{scaleX:1,transition:{delay:1.4,duration:1.2,ease:[.76,0,.24,1]}},style:{originX:0}}),n.map((x,S)=>f.jsxs(P.div,{className:"dropdown-item",initial:{x:80,opacity:0},animate:{x:0,opacity:.9,transition:{delay:1.4+S*.08,duration:1.3,ease:[.76,0,.24,1]}},children:[f.jsx("p",{className:"dropdown-main-word",children:x.main}),f.jsx("div",{className:"dropdown-descriptors",children:x.descriptors.join(" ")})]},S)),f.jsx(ab,{text:"Make a Connection"})]})]}),f.jsxs(P.div,{className:"line-wrapper",style:{y:u},children:[f.jsx(P.div,{className:"line-anim",initial:{scaleX:0},animate:{scaleX:1,transition:{delay:.9,duration:1.2,ease:[.76,0,.24,1]}},style:{originX:0}}),f.jsx(P.div,{className:"circle-anim",initial:{opacity:0,y:-10},animate:{opacity:1,y:0,transition:{delay:1.1,duration:1.3,ease:[.76,0,.24,1]}}})]}),f.jsxs(P.div,{className:"scroll-arrow-landing",initial:{opacity:0,y:-20},animate:{opacity:1,y:0,transition:{delay:1.5,duration:1.3,ease:[.76,0,.24,1]}},style:{scale:h},children:[f.jsx("p",{children:"SCROLL"}),f.jsx("img",{src:sb,alt:"Scroll Down",className:"down-arrow-icon"})]})]})]})})}function ne({text:n,isInView:t,extraClass:s="",offset:r=0,ease:l=[.25,1,.5,1],exit:c=!1}){if(typeof n!="string")return null;const u=n.split(" "),h={y:"-110%",transition:{duration:1.2,ease:[.76,0,.24,1]}};return f.jsx(f.Fragment,{children:u.map((m,g)=>f.jsx("span",{className:"text-mask",children:f.jsxs(P.span,{className:`text-word ${s}`,initial:{y:"100%"},animate:t?{y:0}:{y:"100%"},transition:{delay:g*.01+r,duration:1.2,ease:l},...c?{exit:h}:{},children:[m,g<u.length-1?"Â ":""]})},g))})}function Br({img:n,text:t,centered:s=!1,hidden:r=!1}){const l=_.useRef(null),c=St(l,{once:!0,amount:.5}),{scrollYProgress:u}=_i({target:l,offset:["start end","end start"]}),h=We(u,[0,1],typeof window<"u"&&window.innerWidth<=768?["-10%","10%"]:["-20%","20%"]),m=t;return f.jsxs("section",{className:"quote-section",ref:l,children:[f.jsx(P.div,{className:"quote-bg-image",style:{y:h},children:f.jsx("img",{src:n,alt:"Quote background"})}),f.jsx("div",{className:"quote-overlay",style:{display:r?"none":"block"}}),f.jsx("div",{className:"quote-container",style:{textAlign:s?"center":"left"},children:Array.isArray(m)?m.map((g,v)=>f.jsx("div",{children:f.jsx(ne,{text:g,isInView:c,offset:.1+v*.05})},v)):f.jsx(ne,{text:m,isInView:c,offset:.1})})]})}const Rv="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='currentColor'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%20class='lucide%20lucide-pencil-icon%20lucide-pencil'%3e%3cpath%20d='M21.174%206.812a1%201%200%200%200-3.986-3.987L3.842%2016.174a2%202%200%200%200-.5.83l-1.321%204.352a.5.5%200%200%200%20.623.622l4.353-1.32a2%202%200%200%200%20.83-.497z'/%3e%3cpath%20d='m15%205%204%204'/%3e%3c/svg%3e",Cv="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='currentColor'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%20class='lucide%20lucide-drill-icon%20lucide-drill'%3e%3cpath%20d='M10%2018a1%201%200%200%201%201%201v2a1%201%200%200%201-1%201H5a3%203%200%200%201-3-3%201%201%200%200%201%201-1z'/%3e%3cpath%20d='M13%2010H4a2%202%200%200%201-2-2V4a2%202%200%200%201%202-2h9a1%201%200%200%201%201%201v6a1%201%200%200%201-1%201l-.81%203.242a1%201%200%200%201-.97.758H8'/%3e%3cpath%20d='M14%204h3a1%201%200%200%201%201%201v2a1%201%200%200%201-1%201h-3'/%3e%3cpath%20d='M18%206h4'/%3e%3cpath%20d='m5%2010-2%208'/%3e%3cpath%20d='m7%2018%202-8'/%3e%3c/svg%3e",Nv="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='currentColor'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%20class='lucide%20lucide-wrench-icon%20lucide-wrench'%3e%3cpath%20d='M14.7%206.3a1%201%200%200%200%200%201.4l1.6%201.6a1%201%200%200%200%201.4%200l3.77-3.77a6%206%200%200%201-7.94%207.94l-6.91%206.91a2.12%202.12%200%200%201-3-3l6.91-6.91a6%206%200%200%201%207.94-7.94l-3.76%203.76z'/%3e%3c/svg%3e",Ov="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='32'%20height='32'%20fill='%23000000'%2
710viewBox='0%200%20256%20256'%3e%3cpath%20d='M228.12,17.14a8,8,0,0,0-7.88-.2L102,80H32A16,16,0,0,0,16,96V200a16,16,0,0,0,16,16h88a16,16,0,0,0,16-16V168a7.81,7.81,0,0,0-.34-2.3L113.54,92,216,37.33V160H200v-8a8,8,0,0,0-16,0v8a16,16,0,0,0,16,16h16a16,16,0,0,0,16-16V24A8,8,0,0,0,228.12,17.14ZM98.05,96l19.2,64H64V96ZM48,96v64H32V96ZM32,200h0V176h88v24Z'%3e%3c/path%3e%3c/svg%3e";function tR(){const n=_.useRef(null),t=St(n,{once:!0,amount:1}),s=_.useRef(null),{scrollYProgress:r}=_i({target:s,offset:["start end","end start"]}),l=We(r,[0,1],window.innerWidth<=768?["-10%","10%"]:["-35%","30%"]),c=We(r,[0,1],["0%","-80%"]),u=We(r,[0,1],["-30%","-50%"]);return f.jsxs("section",{className:"design-section",ref:s,children:[f.jsxs("div",{className:"design-header",ref:n,children:[f.jsx("svg",{viewBox:"0 -50 700 1200",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"design-svg",children:f.jsx(P.path,{d:"M1 44.0001C481 -66.4999 820.5 44 504.5 340.5C521.833 341.167 543.5 346 491.5 352.5C485.5 333 510 297 497.5 333",stroke:"white",strokeWidth:"2.5",initial:{pathLength:0},animate:t?{pathLength:1,transition:{duration:1.2,delay:.3,ease:[.25,1,.5,1]}}:{}})}),f.jsx("h1",{className:"design-title",children:f.jsx(ne,{text:"ENVISIONED, DESIGNED, REFINED",isInView:t,offset:.08})}),f.jsxs("div",{className:"header-div",children:[f.jsx("p",{className:"design-subtitle",children:f.jsx(ne,{text:"Transforming ideas into timeless aquatic masterpieces â built for beauty, strength, and enduring luxury.",isInView:t,offset:.3})}),f.jsx("h1",{className:"underlined-word",children:f.jsx(ne,{text:"delivered.",extraClass:"underlined-span",isInView:t,offset:.24})})]})]}),f.jsx("div",{className:"design-image-container",children:f.jsx("div",{className:"design-image-wrapper",children:f.jsx(P.img,{className:"design-img",src:"/images/Design/design.webp",style:{y:l}})})}),f.jsxs("div",{className:"card-overlay-container",children:[f.jsxs(P.div,{className:"overlay-card",style:{to
71p:"37%",left:"20%",position:"absolute",y:u},children:[f.jsx("div",{className:"card-img",children:f.jsx("img",{src:Cv,style:{filter:"invert(100%)"}})}),f.jsx("p",{children:"Manufacturing"}),f.jsx("p",{className:"card-text",children:"From raw material to refined retreat, we manage every step â delivering precision-engineered results that embody excellence, efficiency, utilizing cutting-edge manufacturing expertise."})]}),f.jsxs(P.div,{className:"overlay-card",style:{top:"53%",left:"3%",position:"absolute",y:c},children:[f.jsx("div",{className:"card-img",children:f.jsx("img",{src:Rv})}),f.jsx("p",{children:"Design "}),f.jsx("p",{className:"card-text",children:"A licensed engineering firm â Where your vision is sculpted with precision and artistry, transforming ideas into signature, enduring design."})]}),f.jsxs(P.div,{className:"overlay-card",style:{bottom:"3%",right:"20%",position:"absolute",y:c},children:[f.jsx("div",{className:"card-img",children:f.jsx("img",{src:Ov})}),f.jsx("p",{children:"Building"}),f.jsx("p",{className:"card-text",children:"A trusted partner to visionariesâtransforming architectural aquatic concepts into timeless destinations through artisan precision, luxurious finishes, and flawless execution that inspires, captivates, and endures."})]}),f.jsxs(P.div,{className:"overlay-card",style:{bottom:"18%",right:"3%",position:"absolute",y:u},children:[f.jsx("div",{className:"card-img",children:f.jsx("img",{src:Nv})}),f.jsx("p",{children:"Servicing"}),f.jsx("p",{className:"card-text",children:"Elegant pools deserve elegant care â we combine cutting-edge automation, elevated service, and exclusive supply to protect the beauty and function of your aquatic retreat."})]})]}),f.jsxs("div",{className:"card-grid-container",children:[f.jsxs("div",{className:"card-grid-item",children:[f.jsx("div",{className:"card-img",children:f.jsx("img",{src:Rv,alt:"penicl"})}),f.jsx("p",{children:"Design"}),f.jsx("p",{className:"card-text",children:"A licensed engineering firm â Where your vision is sculpted with precision and artistry, transforming ideas into signature, enduring design."})]}),f.jsxs("div",{className:"card-grid-item",children:[f.jsx("div",{className:"card-img",children:f.jsx("img",{src:Cv,alt:"drill"})}),f.jsx("p",{children:"Manufacturing"}),f.jsx("p",{className:"card-text",children:"From raw material to refined retreat, we manage every step â delivering precision-engineered results that embody excellence, efficiency, utilizing cutting-edge manufacturing expertise."})]}),f.jsxs("div",{className:"card-grid-item",children:[f.jsx("div",{className:"card-img",children:f.jsx("img",{src:Ov,alt:"crane"})}),f.jsx("p",{children:"Building"}),f.jsx("p",{className:"card-text",children:"A trusted partner to visionariesâtransforming architectural aquatic concepts into timeless destinations through artisan precision, luxurious finishes, and flawless execution that inspires, captivates, and endures."})]}),f.jsxs("div",{className:"card-grid-item",children:[f.jsx("div",{className:"card-img",children:f.jsx("img",{src:Nv,alt:"wrench"})}),f.jsx("p",{children:"Servicing"}),f.jsx("p",{className:"card-text",children:"Elegant pools deserve elegant care â we combine cutting-edge automation, elevated service, and exclusive supply to protect the beauty and function of your aquatic retreat."})]})]})]})}const nR="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='currentColor'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%20class='lucide%20lucide-pencil-ruler-icon%20lucide-pencil-ruler'%3e%3cpath%20d='M13%207%208.7%202.7a2.41%202.41%200%200%200-3.4%200L2.7%205.3a2.41%202.41%200%200%200%200%203.4L7%2013'/%3e%3cpath%20d='m8%206%202-2'/%3e%3cpath%20d='m18%2016%202-2'/%3e%3cpath%20d='m17%2011%204.3%204.3c.94.94.94%202.46%200%203.4l-2.6%202.6c-.94.94-2.46.94-3.4%200L11%2017'/%3e%3cpath%20d='M21.174%206.812a1%201%200%200%200-3.986-3.987L3.842%2016.174a2%202%200%200%200-.5.83l-1.321%204.352a.5.5%200%200%200%20.623.622l4.353-1.32a2%202%200%200%200%20.83-.497z'/%3e%3cpath%20d='m15%205%204%204'/%3e%3c/svg%3e",iR="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='currentColor'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%20class='lucide%20lucide-package-check-icon%20lucide-package-check'%3e%3cpath%20d='m16%2016%202%202%204-4'/%3e%3cpath%20d='M21%2010V8a2%202%200%200%200-1-1.73l-7-4a2%202%200%200%200-2%200l-7%204A2%202%200%200%200%203%208v8a2%202%200%200%200%201%201.73l7%204a2%202%200%200%200%202%200l2-1.14'/%3e%3cpath%20d='m7.5%204.27%209%205.15'/%3e%3cpolyline%20points='3.29%207%2012%2012%2020.71%207'/%3e%3cline%20x1='12'%20x2='12'%20y1='22'%20y2='12'/%3e%3c/svg%3e";function sR(){const n=_.useRef(null),t=_.useRef(null),s=St(n,{once:!0,amount:.5}
71),r=St(t,{once:!0,amount:.5}),l=_.useRef(null),{scrollYProgress:c}=_i({target:l,offset:["start end","end start"]}),u=We(c,[0,1],["30%","-60%"]);return We(c,[0,1],["400%","-720%"]),We(c,[0,1],["95%","-900%"]),f.jsxs("section",{className:"engineering-section",ref:l,children:[f.jsxs(P.div,{className:"engineering-header-container",ref:n,children:[f.jsxs(P.div,{className:"line",children:[f.jsx(P.span,{className:"shape",initial:{opacity:0},animate:{opacity:s?1:0,transition:{duration:.75,delay:.5}},children:"SPA"}),f.jsx(ne,{text:"CUSTOM",isInView:s})]}),f.jsx(P.div,{className:"line",children:f.jsx(ne,{text:"MANUFACTURING.",isInView:s,offset:.15})}),f.jsx(P.div,{className:"line pretty left",children:f.jsx(ne,{text:"BUILT-",isInView:s,offset:.25})}),f.jsx(P.div,{className:"line left",children:f.jsx(ne,{text:"IN-HOUSE.",isInView:s,offset:.35})})]}),f.jsx(P.img,{src:"/images/Engineering/autocad4.webp",className:"eng-img",style:{y:u},animate:{opacity:window.innerWidth<=768?s?1:0:1},initial:{opacity:window.innerWidth<=768?0:1},transition:{duration:1,delay:.3,ease:"easeOut"}}),f.jsxs("div",{className:"eng-subtitle-container",ref:t,children:[f.jsx("div",{className:"placeholder eng-subtitle"}),f.jsxs("div",{className:"eng-subtitle",children:[f.jsxs("div",{className:"eng-subtitle-wrapper",children:[f.jsxs(P.div,{className:"circle-icon",initial:{scale:0},animate:{scale:r?1:0},children:[" ",f.jsx("img",{src:nR})]}),f.jsx("p",{children:f.jsx(ne,{text:"From concept to completion, we meticulously self-perform every detailâcrafting automated, quality-assured components designed to elevate the most refined and luxurious aquatic environments worldwide.",isInView:r,offset:.3})})]}),f.jsx("div",{className:"divider"}),f.jsxs("div",{className:"eng-subtitle-wrapper",children:[f.jsx(P.div,{className:"circle-icon",initial:{scale:0},animate:{scale:r?1:0},children:f.jsx("img",{src:iR})}),f.jsx("p",{children:f.jsx(ne,{text:"From vision to reality, we self-perform every phaseâensuring seamless collaboration, accelerated timelines, and exceptional results in crafting custom aquatic destinations of unmatched quality and precision.",isInView:r,offset:.3})})]})]})]})]})}function aR(){const n=_.useRef(null),t=_.useRef(null),s=_.useRef(null),r=St(n,{once:!0,amount:.3}),l=St(t,{once:!0,amount:.3}),c=St(s,{once:!0,amount:.3}),u=[{name:"Marriott",logo:"/images/Brands/marriott.svg"},{name:"Westbank",logo:"/images/Brands/westbank.svg"},{name:"Tridel",logo:"/images/Brands/tridel.svg"},{name:"Ritz Carlton",logo:"/images/Brands/ritz.svg"},{name:"Four Seasons",logo:"/images/Brands/fourseasons.svg"},{name:"hariri",logo:"/images/Brands/hariri.svg"},{name:"big",logo:"/images/Brands/big.svg"},{name:"gulf",logo:"/images/Brands/gulf.svg"},{name:"cf",logo:"/images/Brands/cf.svg"},{name:"ibi",logo:"/images/Brands/ibi.svg"},{name:"fitz",logo:"/images/Brands/fitz.svg"},{name:"kingsett",logo:"/images/Brands/kingsett.svg"},{name:"mattamy",logo:"/images/Brands/mattamy.svg"},{name:"minto",logo:"/images/Brands/minto.svg"},{name:"ed",logo:"/images/Brands/ed.svg"},{name:"dialog",logo:"/images/Brands/dialog.svg"},{name:"bpd",logo:"/images/Brands/bpd.svg"},{name:"granite",logo:"/images/Brands/granite.svg"},{name:"boulevard",logo:"/images/Brands/boulevard.svg"},{name:"amica",logo:"/images/Brands/amica.svg"},{name:"first",logo:"/images/Brands/first.svg"}];return f.jsx("section",{className:"install-section",children:f.jsxs("div",{className:"install-container",children:[f.jsxs("div",{className:"install-content",ref:n,children:[f.jsxs("div",{className:"install-image",children:[f.jsx(P.img,{src:"/images/Install/install2.webp",alt:"Luxury pool installation",initial:"initial",animate:r?"animate":"initial",variants:{initial:{clipPath:"inset(100% 0% 0% 0%)"},animate:{clipPath:"inset(0% 0% 0% 0%)",transition:{duration:1.2,ease:[.76,0,.24,1],delay:.1}}}}),f.jsxs(P.div,{className:"install-stat",initial:{opacity:0,y:20},animate:r?{opacity:1,y:0,transition:{delay:.6,duration:.8,ease:[.25,1,.5,1]}}:{},children:[f.jsx("span",{className:"stat-number",children:f.jsx(ne,{text:"+100",isInView:r,offset:.7})}),f.jsx("span",{className:"stat-text",children:f.jsx(ne,{text:"Pool Awards",isInView:r,offset:.75})})]})]}),f.jsxs("div",{className:"install-text",children:[f.jsx(P.div,{className:"install-badge",initial:{y:20,opacity:0}
71,animate:r?{y:0,opacity:1,transition:{delay:.2,duration:1.2,ease:[.76,0,.24,1]}}:{},children:f.jsx(ne,{text:"OUR EXPERT",isInView:r,offset:.1})}),f.jsxs("h1",{className:"install-title",children:[f.jsx(ne,{text:"STRUCTURAL",isInView:r,offset:.15}),f.jsx("br",{}),f.jsx("em",{children:f.jsx(ne,{text:"EXCELLENCE.",isInView:r,offset:.2})})]}),f.jsx("p",{className:"install-description",children:f.jsx(ne,{text:"Our expert teams handle full installation with speed and precision. Each pool includes advanced waterproofing systems, tested for leak-free performance from day one â delivering reliable, long-lasting results you can trust each and every time.",isInView:r,offset:.3})}),f.jsx(ab,{text:"See Products",to:"/products",animate:r?{y:0,opacity:1,transition:{delay:.2,duration:1.3,ease:[.76,0,.24,1]}}:{}})]})]}),f.jsxs("div",{className:"install-bottom",ref:t,children:[f.jsx("div",{className:"install-bottom-left",children:f.jsx("p",{className:"install-bottom-text",children:f.jsx(ne,{text:"We don't just prevent issues â we anticipate them. Through regular inspections, diagnostics, and performance tuning, our maintenance programs are designed to catch minor problems before they become major challenges.",isInView:l,offset:.1})})}),f.jsx("div",{className:"install-bottom-image",children:f.jsx(P.img,{src:"/images/Install/install1.webp",alt:"Interior pool design",initial:"initial",animate:l?"animate":"initial",variants:{initial:{clipPath:"inset(100% 0% 0% 0%)"},animate:{clipPath:"inset(0% 0% 0% 0%)",transition:{duration:1.2,ease:[.76,0,.24,1]}}}})})]}),f.jsxs("div",{className:"brand-strip",ref:s,children:[f.jsx("h3",{className:"brand-title",children:f.jsx(ne,{text:"Chosen by Visionaries",isInView:c,offset:.1})}),f.jsx("div",{className:"brand-logos",children:u.map((h,m)=>f.jsx(P.div,{className:"brand-logo",initial:{opacity:0,y:20},animate:c?{opacity:.8,y:0,transition:{delay:m*.04+.3,duration:.6,ease:[.25,1,.5,1]}}:{},children:f.jsx("img",{src:h.logo,alt:h.name})},m))})]})]})})}function rR(){const n=_.useRef(null),t=_.useRef(null),s=St(n,{once:!0,amount:.3}),r=St(t,{once:!0,amount:.2}),[l,c]=_.useState(null),u=[{title:"Preventive Maintenance",description:"Tailored annual or seasonal preventive care programs ensuring peak operation, longevity, and uninterrupted enjoyment of your aquatic investment.",hasImage:!0,imageSrc:"/images/Services/maint.webp"},{title:"Water Quality Management",description:"Advanced monitoring, testing, and balancing create immaculate water quality for unparalleled clarity, safety, resulting in a pristine aquatic experience.",hasImage:!0,imageSrc:"/images/Services/water.webp"},{title:"Mechanical System Servicing",description:"Luxury-level mechanical careâwhere pumps, filters, and automation operate in perfect harmony for uninterrupted aquatic experiences.",hasImage:!0,imageSrc:"/images/Services/oper.webp"},{title:"Training & Documentation",description:"Specialized training and precision-crafted manuals empower your team to operate and maintain aquatic systems with absolute confidence.",hasImage:!0,imageSrc:"/images/Services/training.webp"}];return f.jsx("section",{className:"operations-section",children:f.jsxs("div",{className:"operations-container",children:[f.jsx("div",{className:"operations-hero",ref:n,children:f.jsxs("div",{className:"operations-hero-content",children:[f.jsx("h1",{className:"operations-title",children:f.jsx(ne,{text:"OPERATIONS",isInView:s,offset:.1})}),f.jsx("div",{className:"operations-hero-center",children:f.jsxs("div",{className:"operations-image-stack",children:[f.jsx(P.div,{className:"operations-image-main",initial:{clipPath:"inset(100% 0% 0% 0%)"},animate:s?{clipPath:"inset(0% 0% 0% 0%)",transition:{duration:1.2,ease:[.76,0,.24,1],delay:.3}}:{},children:f.jsx("img",{src:"/images/Services/opp2.webp",alt:"Pool operations"})}),f.jsx(P.div,{className:"operations-image-overlay",initial:{clipPath:"inset(100% 0% 0% 0%)"},animate:s?{clipPath:"inset(0% 0% 0% 0%)",transition:{duration:1.2,ease:[.76,0,.24,1],delay:.5}}:{},children:f.jsx("img",{src:"/images/Services/opp1.webp",alt:"Pool detail"})})]})})]})}),f.jsx("div",{className:"operations-services",ref:t,children:u.map((h,m)=>f.jsxs(P.div,{className:"service-item",initial:{opacity:0,y:30},animate:r?{opacity:1,y:0,transition:{delay:m*.1+.2,duration:.8,ease:[.25,1,.5,1]}}:{},onHoverStart:()=>c(m),onHoverEnd:()=>c(null),children:[f.jsxs(P.div,{className:"service-content",animate:{scale:l===m?1.02:1},transition:{duration:.9,ease:[.25,1,.5,1]},children:[f.jsxs("div",{className:"service-text",children:[f.jsx("h3",{className:"service-title",children:f.jsx(ne,{text:h.title,isInView:r,offset:m*.1+.3})}),f.jsx("p",{className:"service-description",children:f.jsx(ne,{text:h.description,isInView:r,offset:m*.1+.35})})]}),h.hasImage&&f.jsx(P.div,{className:"service-image",initial:{clipPath:"inset(100% 0% 0% 0%)"},animate:{clipPath:l===m?"inset(0% 0% 0% 0%)":"inset(100% 0% 0% 0%)"},transition:{duration:.6,ease:[.25,1,.5,1]},children:f.jsx("img",{src:h.imageSrc,alt:h.title})}),f.jsx(P.div,{className:"service-arrow",animate:{x:l===m?10:0,y:l===m?-10:0,opacity:l===m?1:.6},transition:{duration:.3},children:f.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:f.jsx("path",{d:"M7 17L17 7M17 7H7M17 7V17",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})]}),f.jsx("div",{className:"service-border"})]},m))})]})})}function lR(){const n="Canada's premier aquatic experts, reshaping luxury, one custom-built project at a time. Where passion meets precision, and every ripple begins with a vision.",t=["Designing, Building, & Operating","Aquatic Destinations since 1989."];return f.jsx(f.Fragment,{children:f.jsx(ct,{children:f.jsxs("main",{className:"home-container",children:[f.jsxs("div",{className:"home-sticky",children:[f.jsx(eR,{}),f.jsx(Br,{img:"/images/Products/product4.webp",text:n})]}),f.jsx(tR,{}),f.jsx(sR,{}),f.jsx(aR,{}),f.jsx(rR,{}),f.jsx(Br,{img:"/images/Home/bottom2.webp",text:t,centered:!0})]})})})}const oR="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='32'%20height='32'%20fill='%23000000'%2
710viewBox='0%200%20256%20256'%3e%3cpath%20d='M128,24h0A104,104,0,1,0,232,128,104.12,104.12,0,0,0,128,24Zm88,104a87.61,87.61,0,0,1-3.33,24H174.16a157.44,157.44,0,0,0,0-48h38.51A87.61,87.61,0,0,1,216,128ZM102,168H154a115.11,115.11,0,0,1-26,45A115.27,115.27,0,0,1,102,168Zm-3.9-16a140.84,140.84,0,0,1,0-48h59.88a140.84,140.84,0,0,1,0,48ZM40,128a87.61,87.61,0,0,1,3.33-24H81.84a157.44,157.44,0,0,0,0,48H43.33A87.61,87.61,0,0,1,40,128ZM154,88H102a115.11,115.11,0,0,1,26-45A115.27,115.27,0,0,1,154,88Zm52.33,0H170.71a135.28,135.28,0,0,0-22.3-45.6A88.29,88.29,0,0,1,206.37,88ZM107.59,42.4A135.28,135.28,0,0,0,85.29,88H49.63A88.29,88.29,0,0,1,107.59,42.4ZM49.63,168H85.29a135.28,135.28,0,0,0,22.3,45.6A88.29,88.29,0,0,1,49.63,168Zm98.78,45.6a135.28,135.28,0,0,0,22.3-45.6h35.66A88.29,88.29,0,0,1,148.41,213.6Z'%3e%3c/path%3e%3c/svg%3e";function cR({end:n,duration:t=2,run:s=!1}){const[r,l]=_.useState(0);_.useEffect(()=>{const u=()=>{l(Math.floor(window.innerWidth*.36))};return u(),window.addEventListener("resize",u),()=>window.removeEventListener("resize",u)},[]);const c=String(n).split("").map(Number);return f.jsx("div",{style:{display:"flex",justifyContent:"center",fontSize:`${r}px`,lineHeight:1,fontWeight:800,color:"black"},children:c.map((u,h)=>f.jsx(uR,{digit:u,duration:t,digitHeight:r,run:s},h))})}function uR({digit:n,duration:t,digitHeight:s,run:r}){const l=Wf();_.useEffect(()=>{r&&l.start({y:-s*n,transition:{duration:t,ease:[.76,0,.24,1]}})},[r,n,t,l,s]);const c=Array.from({length:10},(u,h)=>h);return f.jsx("div",{style:{height:s,width:s*.6,overflow:"hidden",position:"relative",textAlign:"center"},children:f.jsx(P.div,{animate:l,initial:{y:0},style:{display:"flex",flexDirection:"column",alignItems:"center",fontSize:"inherit",lineHeight:`${s}px`},children:c.map(u=>f.jsx("div",{style:{height:s,width:"100%"},children:u},u))})})}function dR(){const n=_.useRef(null),t=St(n,{once:!0,amount:.2}),s=_.useRef(null),r=St(s,{once:!0,amount:.4}),l=_.useRef(null),c=St(l,{once:!0,amount:.6}),u=_.useRef(null),h=St(u,{once:!0,amount:.5}),m=[{id:1,left:"20%",top:"35%"},{id:2,left:"19%",top:"74%"},{id:3,left:"62%",top:"86%"},{id:4,left:"25%",top:"55%"},{id:5,left:"35%",top:"45%"},{id:6,left:"65%",top:"65%"},{id:7,left:"45%",top:"65%"},{id:8,left:"35%",top:"62%"},{id:28,left:"42%",top:"75%"},{id:9,left:"30%",top:"38%"},{id:10,left:"60%",top:"84%"},{id:11,left:"57%",top:"85%"},{id:12,left:"40%",top:"58%"},{id:25,left:"65%",top:"80%"},{id:26,left:"35%",top:"75%"},{id:13,left:"28%",top:"48%"},{id:14,left:"52%",top:"70%"},{id:15,left:"42%",top:"52%"},{id:16,left:"58%",top:"55%"},{id:17,left:"30%",top:"62%"},{id:18,left:"62%",top:"70%"},{id:19,left:"50%",top:"75%"},{id:20,left:"60%",top:"90%"},{id:21,left:"58%",top:"82%"},{id:22,left:"25%",top:"75%"},{id:23,left:"22%",top:"70%"},{id:24,left:"74%",top:"75%"},{id:27,left:"30%",top:"75%"}],g=_.useRef(null),v=St(g,{once:!0,amount:.3}),b={hidden:{opacity:0,y:20,scale:.8},visible:D=>({opacity:1,y:0,scale:1,transition:{duration:.8,delay:D*.1,ease:[.25,1,.5,1]}})},x=_.useRef(null),{scrollYProgress:S}=_i({target:x,offset:["start end","end start"]}),T=window.innerWidth<=768,C=We(S,[0,1],T?["-5%","5%"]:["-30%","30%"]),{scrollYProgress:j}=_i({target:g,offset:["start end","end start"]}),A=We(j,[0,1],T?["0%","10%"]:["-25%","10%"]),M=(D=0)=>({initial:{clipPath:"inset(100% 0% 0% 0%)"},animate:{clipPath:"inset(0% 0% 0% 0%)",transition:{duration:1.2,delay:D,ease:[.76,0,.24,1]}},exit:{clipPath:"inset(100% 0% 0% 0%)",transition:{duration:1.2,delay:D,ease:[.76,0,.24,1]}}});return f.jsx(ct,{children:f.jsxs("main",{className:"about-wrapper",children:[f.jsxs("section",{className:"about-hero",ref:n,children:[f.jsx("h1",{className:"about-title",children:f.jsx(ne,{text:"SPA",isInView:t,offset:.6})}),f.jsxs("div",{className:"about-subtext",children:[f.jsx("p",{children:f.jsx(ne,{text:"Designing, Building, & Operating",isInView:t,offset:.8})}),f.jsx("p",{children:f.jsx(ne,{text:"Aquatic Destinations since 1989.",isInView:t,offset:.8})})]})]}),f.jsx("section",{className:"about-mission",children:f.jsx("h2",{children:f.jsx(ne,{text:"Canadaâs leading aquatic service provider, delivering innovation and luxury craftsmanship for over 35 years.",isInView:t,offset:.8})})}),f.jsxs("section",{className:"about-details",children:[f.jsxs("div",{className:"about-image",children:[f.jsx(P.img,{src:"/images/About/headshot.webp",alt:"Person in suit",initial:"initial",animate:t?"animate":"",variants:M(0)}),f.jsx("div",{className:"about-second-mission",children:f.jsx("p",{children:f.jsx(ne,{text:"Born from craftsmanship, built on prestigeâSPA Inc. delivers full-service custom aquatic environments for those who demand elegance, precision, and performance.",isInView:t,offset:.8})})})]}),f.jsxs("div",{className:"about-description",children:[f.jsx("p",{children:f.jsx(ne,{text:"Roland Guy, a Wilfrid Laurier University post-graduate and licensed tradesman, founded SPA Inc. at the young age of 18.",isInView:t,offset:.8})}),f.jsx("p",{children:f.jsx(ne,{text:"Today, from a 25,000 sq. ft. facility, his team delivers award-winning, full-service aquatic solutions âengineered, manufactured, installed, and serviced in-house.",isInView:t,offset:.8})}),f.jsx("p",{children:f.jsx(ne,{text:"Nationally trusted. Technically elite. Built with precision, passion, and purpose.",isInView:t,offset:.8})})]})]}),f.jsxs("section",{className:"about-second",ref:s,children:[f.jsxs("div",{className:"about-second-left",children:[f.jsx("h2",{className:"about-second-title",children:f.jsxs("h2",{className:"about-second-title",children:[f.jsx(ne,{text:"WE ARE CREATORS OF",isInView:r,offset:.5}),f.jsx("br",{}),f.jsx(ne,{text:"EXCEPTIONAL AQUATIC",isInView:r,offset:.6}),f.jsx("br",{}),f.jsx(ne,{text:"ENVIRONMENTS,",isInView:r,offset:.7}),f.jsx("br",{}),f.jsx(ne,{text:"WHERE PRECISION",isInView:r,offset:.8}),f.jsx("br",{}),f.jsx(ne,{text:"MEETS ARTISTRY.",isInView:r,offset:.8})]})}),f.jsxs("div",{className:"about-sub-info",children:[f.jsx(P.img,{src:oR,alt:"Globe icon",initial:{opacity:0}
71,animate:r?{opacity:1,transition:{duration:1.5,ease:[.76,0,.24,1],delay:.5}}:""}),f.jsxs("p",{className:"sub-caption",children:[f.jsx(ne,{text:"Burlington, Ontario-based.",isInView:r,offset:.8}),f.jsx("br",{}),f.jsx(ne,{text:"Providing expert services throughout Canada.",isInView:r,offset:.8})]})]})]}),f.jsx("div",{className:"about-second-image",children:f.jsx(P.img,{src:"/images/About/girl.webp",alt:"Woman sitting by pool",initial:"initial",animate:r?"animate":"",variants:M(0)})}),f.jsxs("div",{className:"about-second-right",children:[f.jsx("p",{children:f.jsx(ne,{text:"Our full-time team of elite professionals deliver full-service aquatic excellence, blending artistry and precision.",isInView:r,offset:.5})}),f.jsx("p",{children:f.jsx(ne,{text:"Vertically integrated with licensed engineers, industry leading collaborators, and advanced manufacturing in a 25,000 sq. ft. facility, we craft flawless mechanical, controls, waterproofing, and finishing installations.",isInView:r,offset:.65})}),f.jsx("p",{children:f.jsx(ne,{text:"Our year-round repairs and operations ensure seamless performance. Supported by strong purchasing power and ample inventory, our distribution network offers unrivaled reliability and sophistication â ensuring every project and aquatic facility remains masterpieces of luxury and innovation.",isInView:r,offset:.8})})]})]}),f.jsx("section",{className:"about-map",ref:u,children:f.jsxs("div",{className:"about-map-container",children:[f.jsx(P.img,{src:"/images/About/map.webp",className:"about-map-image"}),f.jsx("div",{className:"map-markers",children:m.map((D,B)=>f.jsx(P.div,{className:"map-marker",style:{left:D.left,top:D.top},variants:b,initial:"hidden",animate:h?"visible":"hidden",custom:B,children:f.jsx("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:f.jsx("path",{d:"M18 6L6 18M6 6L18 18",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"})})},D.id))})]})}),f.jsxs("section",{className:"about-third",children:[f.jsxs("h1",{className:"about-third-title",ref:l,children:[f.jsx(P.img,{src:"/images/About/complete.webp",className:"about-third-image",initial:"initial",animate:c?"animate":"",variants:M(.55)}),f.jsx(cR,{end:3674,duration:2,run:c})]}),f.jsx("div",{className:"about-third-subtext",children:f.jsxs("h3",{children:[f.jsx("span",{className:"about-third-large",children:f.jsx(ne,{text:"PROJECTS COMPLETED.",isInView:c,offset:1})}),f.jsx("br",{}),f.jsx(ne,{text:"From vision to completionâSPA Inc. delivers turnkey aquatic custom solutions with precision, scale, and the power of 150+ dedicated on staff experts.",isInView:c,offset:1.1})]})})]}),f.jsx("section",{className:"awards-section",ref:g,children:f.jsxs("div",{className:"awards-container",children:[f.jsxs(P.h2,{className:"awards-title",children:[f.jsx(ne,{text:"Winners of",isInView:v}),f.jsx("br",{}),f.jsx(ne,{text:"100+ Awards",isInView:v})]}),f.jsxs("div",{className:"awards-grid",children:[f.jsx(P.div,{className:"award-image-container award-large",initial:"initial",animate:v?"animate":"",variants:M(0),children:f.jsx(P.img,{src:"/images/Products/product1.webp",alt:"Award winning pool design",style:{y:A}})}),f.jsx(P.div,{className:"award-image-container award-medium",initial:"initial",animate:v?"animate":"",variants:M(.1),children:f.jsx(P.img,{src:"/images/About/award2.webp",alt:"Modern pool installation",style:{y:A}})}),f.jsx(P.div,{className:"award-image-container award-small",initial:"initial",animate:v?"animate":"",variants:M(.2),children:f.jsx(P.img,{src:"/images/About/award3.webp",alt:"Luxury spa design",style:{y:A}})}),f.jsx(P.div,{className:"award-image-container award-medium-2",initial:"initial",animate:v?"animate":"",variants:M(.3),children:f.jsx(P.img,{alt:"Commercial pool project",style:{y:A},src:"/images/About/award4.webp"})}),f.jsx(P.div,{className:"award-image-container award-bottom-1",initial:"initial",animate:v?"animate":"",variants:M(.4),children:f.jsx(P.img,{src:"/images/About/award5.webp",alt:"Indoor pool excellence",style:{y:A}})}),f.jsx(P.div,{className:"award-image-container award-bottom-2",initial:"initial",animate:v?"animate":"",variants:M(.5),children:f.jsx(P.img,{src:"/images/About/award6.webp",alt:"Water feature design",style:{y:A}})})]})]})}),f.jsxs("section",{className:"about-fourth",ref:x,children:[f.jsxs("div",{className:"about-fourth-img-container",children:[f.jsx(P.img,{src:"/images/About/office.webp",alt:"office image",className:"fourth-about-image",style:{y:C}}),f.jsxs("div",{className:"fourth-overlay",children:[f.jsx("p",{children:"SPA HQ"}),f.jsx("h1",{children:"WHERE THE MAGIC HAPPENS"}),f.jsx("p",{children:"Welcome to Our New Space"})]})]}),f.jsxs("div",{className:"about-fourth-links",children:[f.jsx(yt,{to:"/careers",className:"about-link",children:"JOIN US"}),f.jsxs("div",{className:"about-location",children:[f.jsx("h4",{children:"LOCATION"}),f.jsxs("p",{children:["4179 Palladium Way",f.jsx("br",{}),"Burlington, Ontario, ",f.jsx("br",{}),"L7M-0V9",f.jsx("br",{}),"CA"]})]}),f.jsx("a",{href:"https://maps.app.goo.gl/TE3etbApTawrJgPu7",className:"about-link",target:"_blank",rel:"noopener noreferrer",children:"DIRECTIONS"})]})]})]})})}function Dv({children:n}){const t=_.useRef(null),s=zr(0),r=zr(0),l=na(s,{stiffness:380,damping:20,mass:1.5}),c=na(r,{stiffness:380,damping:20,mass:1.5});function u(v,b){const{left:x,top:S,width:T,height:C}=t.current.getBoundingClientRect(),j=v-x-T/2,A=b-S-C/2,M=5,D=Math.sqrt(j*j+A*A);let B=j,U=A;if(D>M){const I=Math.atan2(A,j);B=Math.cos(I)*M,U=Math.sin(I)*M}s.set(B),r.set(U)}function h(v){u(v.clientX,v.clientY)}function m(v){if(v.touches.length>0){const b=v.touches[0];u(b.clientX,b.clientY)}}function g(){s.set(0),r.set(0)}return f.jsx(P.div,{ref:t,style:{x:l,y:c},onMouseMove:h,onMouseLeave:g,onTouchMove:m,onTouchEnd:g,onTouchCancel:g,children:n})}const fR={hidden:{opacity:0,y:-50},visible:{opacity:1,y:0},exit:{opacity:0,y:50}};function rb({visible:n,type:t,onClose:s,children:r}){return f.jsx(rn,{children:n&&f.jsx(P.div,{className:"modal-backdrop",initial:{opacity:0}
71,animate:{opacity:1},exit:{opacity:0},style:{position:"fixed",top:0,left:0,width:"100vw",height:"100vh",backgroundColor:"rgba(0,0,0,0.5)",display:"flex",justifyContent:"center",alignItems:"center",zIndex:9999},onClick:s,children:f.jsx(P.div,{className:"modal-content",variants:fR,initial:"hidden",animate:"visible",exit:"exit",onClick:l=>l.stopPropagation(),style:{background:"white",padding:"2rem 3rem",borderRadius:"12px",textAlign:"center",maxWidth:"400px",width:"90%"},children:t==="success"?f.jsxs(f.Fragment,{children:[f.jsx("h2",{children:"Weâve got your vision"}),f.jsx("p",{children:"our team will be in touch with you shortly, to begin crafting your custom aquatic experience."}),f.jsx("button",{onClick:s,children:"Close"})]}):t==="error"?f.jsxs(f.Fragment,{children:[f.jsx("h2",{children:"Oops! Something went wrong."}),f.jsx("p",{children:"Please try again later."}),f.jsx("button",{onClick:s,children:"Close"})]}):r})})})}const hR="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2036.41%2036.41'%3e%3cdefs%3e%3cstyle%3e.cls-1{fill:%233d2c3f;}%3c/style%3e%3c/defs%3e%3cg%20id='Layer_2'%20data-name='Layer%202'%3e%3cg%20id='Layer_1-2'%20data-name='Layer%201'%3e%3cpath%20class='cls-1'%20d='M18.21,0a18.21,18.21,0,1,0,18.2,18.21A18.22,18.22,0,0,0,18.21,0Zm0,.71A17.5,17.5,0,1,1,.71,18.21,17.53,17.53,0,0,1,18.21.71Zm0,9a.34.34,0,0,0-.36.35V25.51l-4.68-4.67a.35.35,0,0,0-.49.49L18,26.62a.33.33,0,0,0,.25.1.32.32,0,0,0,.25-.1l5.28-5.28a.33.33,0,0,0,0-.5.34.34,0,0,0-.49,0l-4.68,4.68V10a.34.34,0,0,0-.36-.35Z'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e";function mR(){const[n,t]=_.useState({name:"",company:"",email:"",message:"",interests:[]}),[s,r]=_.useState([]),[l,c]=_.useState({visible:!1,type:""}),[u,h]=_.useState(""),m=["Commercial","Residential","Consultation","Manufacturing","Install/Reno","Operations","Service","Distribution","Jobs/HR","Other"],g=j=>{const{name:A,value:M}=j.target;t(D=>({...D,[A]:M}))},v=j=>{r(A=>{const M=A.includes(j)?A.filter(D=>D!==j):[...A,j];return t(D=>({...D,interests:M})),M})},b=async j=>{if(j.preventDefault(),n.interests.length===0){alert("Please select at least one area of interest.");return}const A={name:n.name,email:n.email,message:n.message,company:n.company,interests:n.interests};try{if((await fetch("/api/contactEmail",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(A)})).ok)c({visible:!0,type:"success"}),t({name:"",company:"",email:"",message:"",interests:[]}),r([]);else throw new Error("Failed to send")}catch{c({visible:!0,type:"error"})}},x={initial:{y:100,opacity:0},animate:j=>({y:0,opacity:.4,transition:{duration:1.2,delay:j*.05+.4,ease:[.76,0,.24,1]}})},S={initial:{y:100,opacity:0},animate:j=>({y:0,opacity:1,transition:{duration:1.2,delay:j*.01+.4,ease:[.76,0,.24,1]}})},T=(j,A,M,D)=>{const B=n[A].trim().length>0;return f.jsxs("div",{className:"input-wrapper",onMouseEnter:()=>h(A),onMouseLeave:()=>h(""),children:[f.jsx(P.input,{type:j,name:A,placeholder:M,className:"contact-header",value:n[A],onChange:g,required:!0,initial:"initial",animate:{y:0,opacity:B?1:.4,transition:{duration:1.2,delay:D*.05+.4,ease:[.76,0,.24,1]}},custom:D,autoComplete:"off"}),f.jsx(P.div,{className:"underline",initial:{width:0},animate:{width:u===A?"100%":"0%"},transition:{duration:.4,ease:[.76,0,.24,1]}})]})},C=(j,A,M)=>{const D=n[j].trim().length>0;return f.jsxs("div",{className:"input-wrapper",onMouseEnter:()=>h(j),onMouseLeave:()=>h(""),children:[f.jsx(P.textarea,{name:j,placeholder:A,className:"contact-header contact-textarea",value:n[j],onChange:g,required:!0,initial:"initial",animate:{y:0,opacity:D?1:.4,transition:{duration:1.2,delay:M*.05+.4,ease:[.76,0,.24,1]}},custom:M}),f.jsx(P.div,{className:"underline",initial:{width:0},animate:{width:u===j?"100%":"0%"},transition:{duration:.4,ease:[.76,0,.24,1]}})]})};return f.jsxs(ct,{children:[f.jsx("main",{className:"contact-container",children:f.jsxs("section",{className:"contact-section",children:[f.jsxs("form",{onSubmit:b,className:"contact-wrapper",children:[f.jsx(P.h1,{className:"contact-header",initial:"initial",animate:"animate",variants:x,custom:0,children:"I'm Interested In..."}),f.jsx("div",{className:"items-wrapper",children:m.map((j,A)=>{const M=s.includes(j);return f.jsx("div",{children:f.jsxs(P.button,{type:"button",className:"contact-item",name:j,onClick:()=>v(j),initial:"initial",animate:"animate",variants:S,custom:A,children:[f.jsx(P.div,{className:"fill-overlay",initial:{height:0},animate:{height:M?"100%":0},transition:{duration:.5,ease:[.76,0,.24,1]}}),f.jsx("span",{className:`button-text ${M?"selected":""}`,children:f.jsx("div",{children:f.jsx("p",{className:"p-button",children:j})})})]})},A)})}),f.jsxs(P.div,{className:"contact-info-wrapper",initial:"initial",animate:"animate",variants:x,custom:.8,children:[f.jsxs("div",{className:"input-wrapper",children:[T("text","name","Your Name",.4),T("email","email","Your Email",.6),T("text","company","Your Company",.8),C("message","Your Message",1)]}),f.jsxs("div",{className:"contact-info-column",children:[f.jsx("h3",{children:"Contact Info"}),f.jsxs("ul",{children:[f.jsxs("li",{children:[f.jsx("strong",{children:"Email:"})," [email protected]"]}),f.jsxs("li",{children:[f.jsx("strong",{children:"Email:"}),"[email protected]"]}),f.jsxs("li",{children:[f.jsx("strong",{children:"Phone:"})," +1 (905) 569-7899"]})]}),f.jsx("div",{className:"arrow-contact",children:f.jsx("img",{src:hR,style:{filter:"brightness(0)"}})})]})]}),f.jsxs(P.div,{className:"button-area",initial:"initial",animate:"animate",variants:S,custom:1.2,children:[f.jsx("div",{className:"behind-line"}),f.jsx(Dv,{children:f.jsx(P.button,{className:"submit-button",type:"submit",whileTap:{scale:.95},children:f.jsx(Dv,{children:f.jsx("p",{className:"p-button",children:"SUBMIT"})})})})]})]}),f.jsx(rb,{visible:l.visible,type:l.type,onClose:()=>c({visible:!1,type:""})})]})}),f.jsx(Br,{img:"/images/Home/bottom3.webp",text:""})]})}var pR="1.2.3";function lb(n,t,s){return Math.max(n,Math.min(t,s))}function gR(n,t,s){return(1-s)*n+s*t}function vR(n,t,s,r){return gR(n,t,1-Math.exp(-s*r))}function yR(n,t){return(n%t+t)%t}var bR=class{constructor(){le(this,"isRunning",!1);le(this,"value",0);le(this,"from",0);le(this,"to",0);le(this,"currentTime",0);le(this,"lerp");le(this,"duration");le(this,"easing");le(this,"onUpdate")}advance(n){var s;if(!this.isRunning)return;let t=!1;if(this.duration&&this.easing){this.currentTime+=n;const r=lb(0,this.currentTime/this.duration,1);t=r>=1;const l=t?1:this.easing(r);this.value=this.from+(this.to-this.from)*l}else this.lerp?(this.value=vR(this.value,this.to,this.lerp*60,n),Math.round(this.value)===this.to&&(this.value=this.to,t=!0)):(this.value=this.to,t=!0);t&&this.stop(),(s=this.onUpdate)==null||s.call(this,this.value,t)}stop(){this.isRunning=!1}fromTo(n,t,{lerp:s,duration:r,easing:l,onStart:c,onUpdate:u}){this.from=this.value=n,this.to=t,this.lerp=s,this.duration=r,this.easing=l,this.currentTime=0,this.isRunning=!0,c==null||c(),this.onUpdate=u}};function xR(n,t){let s;return function(...r){let l=this;clearTimeout(s),s=setTimeout(()=>{s=void 0,n.apply(l,r)},t)}}var wR=class{constructor(n,t,{autoResize:s=!0,debounce:r=250}={}){le(this,"width",0);le(this,"height",0);le(this,"scrollHeight",0);le(this,"scrollWidth",0);le(this,"debouncedResize");le(this,"wrapperResizeObserver");le(this,"contentResizeObserver");le(this,"resize",()=>{this.onWrapperResize(),this.onContentResize()});le(this,"onWrapperResize",()=>{this.wrapper instanceof Window?(this.width=window.innerWidth,this.height=window.innerHeight):(this.width=this.wrapper.clientWidth,this.height=this.wrapper.clientHeight)});le(this,"onContentResize",()=>{this.wrapper instanceof Window?(this.scrollHeight=this.content.scrollHeight,this.scrollWidth=this.content.scrollWidth):(this.scrollHeight=this.wrapper.scrollHeight,this.scrollWidth=this.wrapper.scrollWidth)});
71this.wrapper=n,this.content=t,s&&(this.debouncedResize=xR(this.resize,r),this.wrapper instanceof Window?window.addEventListener("resize",this.debouncedResize,!1):(this.wrapperResizeObserver=new ResizeObserver(this.debouncedResize),this.wrapperResizeObserver.observe(this.wrapper)),this.contentResizeObserver=new ResizeObserver(this.debouncedResize),this.contentResizeObserver.observe(this.content)),this.resize()}destroy(){var n,t;(n=this.wrapperResizeObserver)==null||n.disconnect(),(t=this.contentResizeObserver)==null||t.disconnect(),this.wrapper===window&&this.debouncedResize&&window.removeEventListener("resize",this.debouncedResize,!1)}get limit(){return{x:this.scrollWidth-this.width,y:this.scrollHeight-this.height}}},ob=class{constructor(){le(this,"events",{})}emit(n,...t){var r;let s=this.events[n]||[];for(let l=0,c=s.length;l<c;l++)(r=s[l])==null||r.call(s,...t)}on(n,t){var s;return(s=this.events[n])!=null&&s.push(t)||(this.events[n]=[t]),()=>{var r;this.events[n]=(r=this.events[n])==null?void 0:r.filter(l=>t!==l)}}off(n,t){var s;this.events[n]=(s=this.events[n])==null?void 0:s.filter(r=>t!==r)}destroy(){this.events={}}},Mv=100/6,pi={passive:!1},SR=class{constructor(n,t={wheelMultiplier:1,touchMultiplier:1}){le(this,"touchStart",{x:0,y:0});le(this,"lastDelta",{x:0,y:0});le(this,"window",{width:0,height:0});le(this,"emitter",new ob);le(this,"onTouchStart",n=>{const{clientX:t,clientY:s}=n.targetTouches?n.targetTouches[0]:n;this.touchStart.x=t,this.touchStart.y=s,this.lastDelta={x:0,y:0},this.emitter.emit("scroll",{deltaX:0,deltaY:0,event:n})});le(this,"onTouchMove",n=>{const{clientX:t,clientY:s}=n.targetTouches?n.targetTouches[0]:n,r=-(t-this.touchStart.x)*this.options.touchMultiplier,l=-(s-this.touchStart.y)*this.options.touchMultiplier;this.touchStart.x=t,this.touchStart.y=s,this.lastDelta={x:r,y:l},this.emitter.emit("scroll",{deltaX:r,deltaY:l,event:n})});le(this,"onTouchEnd",n=>{this.emitter.emit("scroll",{deltaX:this.lastDelta.x,deltaY:this.lastDelta.y,event:n})});le(this,"onWheel",n=>{let{deltaX:t,deltaY:s,deltaMode:r}=n;const l=r===1?Mv:r===2?this.window.width:1,c=r===1?Mv:r===2?this.window.height:1;t*=l,s*=c,t*=this.options.wheelMultiplier,s*=this.options.wheelMultiplier,this.emitter.emit("scroll",{deltaX:t,deltaY:s,event:n})});le(this,"onWindowResize",()=>{this.window={width:window.innerWidth,height:window.innerHeight}});this.element=n,this.options=t,window.addEventListener("resize",this.onWindowResize,!1),this.onWindowResize(),this.element.addEventListener("wheel",this.onWheel,pi),this.element.addEventListener("touchstart",this.onTouchStart,pi),this.element.addEventListener("touchmove",this.onTouchMove,pi),this.element.addEventListener("touchend",this.onTouchEnd,pi)}on(n,t){return this.emitter.on(n,t)}destroy(){this.emitter.destroy(),window.removeEventListener("resize",this.onWindowResize,!1),this.element.removeEventListener("wheel",this.onWheel,pi),this.element.removeEventListener("touchstart",this.onTouchStart,pi),this.element.removeEventListener("touchmove",this.onTouchMove,pi),this.element.removeEventListener("touchend",this.onTouchEnd,pi)}},_R=class{constructor({wrapper:n=window,content:t=document.documentElement,eventsTarget:s=n,smoothWheel:r=!0,syncTouch:l=!1,syncTouchLerp:c=.075,touchInertiaMultiplier:u=35,duration:h,easing:m=I=>Math.min(1,1.001-Math.pow(2,-10*I)),lerp:g=.1,infinite:v=!1,orientation:b="vertical",gestureOrientation:x="vertical",touchMultiplier:S=1,wheelMultiplier:T=1,autoResize:C=!0,prevent:j,virtualScroll:A,overscroll:M=!0,autoRaf:D=!1,anchors:B=!1,__experimental__naiveDimensions:U=!1}={}){le(this,"_isScrolling",!1);le(this,"_isStopped",!1);le(this,"_isLocked",!1);le(this,"_preventNextNativeScrollEvent",!1);le(this,"_resetVelocityTimeout",null);le(this,"__rafID",null);le(this,"isTouching");le(this,"time",0);le(this,"userData",{});le(this,"lastVelocity",0);le(this,"velocity",0);le(this,"direction",0);le(this,"options");le(this,"targetScroll");le(this,"animatedScroll");le(this,"animate",new bR);le(this,"emitter",new ob);le(this,"dimensions");le(this,"virtualScroll");le(this,"onScrollEnd",n=>{n instanceof CustomEvent||(this.isScrolling==="smooth"||this.isScrolling===!1)&&n.stopPropagation()});le(this,"dispatchScrollendEvent",()=>{this.options.wrapper.dispatchEvent(new CustomEvent("scrollend",{bubbles:this.options.wrapper===window,detail:{lenisScrollEnd:!0}}))});le(this,"onClick",n=>{const s=n.composedPath().find(r=>{var l,c,u;return r instanceof HTMLAnchorElement&&(((l=r.getAttribute("href"))==null?void 0:l.startsWith("#"))||((c=r.getAttribute("href"))==null?void 0:c.startsWith("/#"))||((u=r.getAttribute("href"))==null?void 0:u.startsWith("./#")))});if(s){const r=s.getAttribute("href");if(r){const l=typeof this.options.anchors=="object"&&this.options.anchors?this.options.anchors:void 0;this.scrollTo(`#${r.split("#")[1]}`,l)}}});le(this,"onPointerDown",n=>{n.button===1&&this.reset()});le(this,"onVirtualScroll",n=>{if(typeof this.options.virtualScroll=="function"&&this.options.virtualScroll(n)===!1)return;const{deltaX:t,deltaY:s,event:r}=n;if(this.emitter.emit("virtual-scroll",{deltaX:t,deltaY:s,event:r}),r.ctrlKey||r.lenisStopPropagation)return;const l=r.type.includes("touch"),c=r.type.includes("wheel");this.isTouching=r.type==="touchstart"||r.type==="touchmove";
71const u=t===0&&s===0;if(this.options.syncTouch&&l&&r.type==="touchstart"&&u&&!this.isStopped&&!this.isLocked){this.reset();return}const m=this.options.gestureOrientation==="vertical"&&s===0||this.options.gestureOrientation==="horizontal"&&t===0;if(u||m)return;let g=r.composedPath();g=g.slice(0,g.indexOf(this.rootElement));const v=this.options.prevent;if(g.find(j=>{var A,M,D;return j instanceof HTMLElement&&(typeof v=="function"&&(v==null?void 0:v(j))||((A=j.hasAttribute)==null?void 0:A.call(j,"data-lenis-prevent"))||l&&((M=j.hasAttribute)==null?void 0:M.call(j,"data-lenis-prevent-touch"))||c&&((D=j.hasAttribute)==null?void 0:D.call(j,"data-lenis-prevent-wheel")))}))return;if(this.isStopped||this.isLocked){r.preventDefault();return}if(!(this.options.syncTouch&&l||this.options.smoothWheel&&c)){this.isScrolling="native",this.animate.stop(),r.lenisStopPropagation=!0;return}let x=s;this.options.gestureOrientation==="both"?x=Math.abs(s)>Math.abs(t)?s:t:this.options.gestureOrientation==="horizontal"&&(x=t),(!this.options.overscroll||this.options.infinite||this.options.wrapper!==window&&(this.animatedScroll>0&&this.animatedScroll<this.limit||this.animatedScroll===0&&s>0||this.animatedScroll===this.limit&&s<0))&&(r.lenisStopPropagation=!0),r.preventDefault();const S=l&&this.options.syncTouch,C=l&&r.type==="touchend"&&Math.abs(x)>5;C&&(x=this.velocity*this.options.touchInertiaMultiplier),this.scrollTo(this.targetScroll+x,{programmatic:!1,...S?{lerp:C?this.options.syncTouchLerp:1}:{lerp:this.options.lerp,duration:this.options.duration,easing:this.options.easing}})});le(this,"onNativeScroll",()=>{if(this._resetVelocityTimeout!==null&&(clearTimeout(this._resetVelocityTimeout),this._resetVelocityTimeout=null),this._preventNextNativeScrollEvent){this._preventNextNativeScrollEvent=!1;return}if(this.isScrolling===!1||this.isScrolling==="native"){const n=this.animatedScroll;this.animatedScroll=this.targetScroll=this.actualScroll,this.lastVelocity=this.velocity,this.velocity=this.animatedScroll-n,this.direction=Math.sign(this.animatedScroll-n),this.isStopped||(this.isScrolling="native"),this.emit(),this.velocity!==0&&(this._resetVelocityTimeout=setTimeout(()=>{this.lastVelocity=this.velocity,this.velocity=0,this.isScrolling=!1,this.emit()},400))}});le(this,"raf",n=>{const t=n-(this.time||n);this.time=n,this.animate.advance(t*.001),this.options.autoRaf&&(this.__rafID=requestAnimationFrame(this.raf))});window.lenisVersion=pR,(!n||n===document.documentElement)&&(n=window),this.options={wrapper:n,content:t,eventsTarget:s,smoothWheel:r,syncTouch:l,syncTouchLerp:c,touchInertiaMultiplier:u,duration:h,easing:m,lerp:g,infinite:v,gestureOrientation:x,orientation:b,touchMultiplier:S,wheelMultiplier:T,autoResize:C,prevent:j,virtualScroll:A,overscroll:M,autoRaf:D,anchors:B,__experimental__naiveDimensions:U},this.dimensions=new wR(n,t,{autoResize:C}),this.updateClassName(),this.targetScroll=this.animatedScroll=this.actualScroll,this.options.wrapper.addEventListener("scroll",this.onNativeScroll,!1),this.options.wrapper.addEventListener("scrollend",this.onScrollEnd,{capture:!0}),this.options.anchors&&this.options.wrapper===window&&this.options.wrapper.addEventListener("click",this.onClick,!1),this.options.wrapper.addEventListener("pointerdown",this.onPointerDown,!1),this.virtualScroll=new SR(s,{touchMultiplier:S,wheelMultiplier:T}),this.virtualScroll.on("scroll",this.onVirtualScroll),this.options.autoRaf&&(this.__rafID=requestAnimationFrame(this.raf))}destroy(){this.emitter.destroy(),this.options.wrapper.removeEventListener("scroll",this.onNativeScroll,!1),this.options.wrapper.removeEventListener("scrollend",this.onScrollEnd,{capture:!0}),this.options.wrapper.removeEventListener("pointerdown",this.onPointerDown,!1),this.options.anchors&&this.options.wrapper===window&&this.options.wrapper.removeEventListener("click",this.onClick,!1),this.virtualScroll.destroy(),this.dimensions.destroy(),this.cleanUpClassName(),this.__rafID&&cancelAnimationFrame(this.__rafID)}on(n,t){return this.emitter.on(n,t)}off(n,t){return this.emitter.off(n,t)}setScroll(n){this.isHorizontal?this.options.wrapper.scrollTo({left:n,behavior:"instant"}):this.options.wrapper.scrollTo({top:n,behavior:"instant"})}resize(){this.dimensions.resize(),this.animatedScroll=this.targetScroll=this.actualScroll,this.emit
71()}emit(){this.emitter.emit("scroll",this)}reset(){this.isLocked=!1,this.isScrolling=!1,this.animatedScroll=this.targetScroll=this.actualScroll,this.lastVelocity=this.velocity=0,this.animate.stop()}start(){this.isStopped&&(this.reset(),this.isStopped=!1)}stop(){this.isStopped||(this.reset(),this.isStopped=!0)}scrollTo(n,{offset:t=0,immediate:s=!1,lock:r=!1,duration:l=this.options.duration,easing:c=this.options.easing,lerp:u=this.options.lerp,onStart:h,onComplete:m,force:g=!1,programmatic:v=!0,userData:b}={}){if(!((this.isStopped||this.isLocked)&&!g)){if(typeof n=="string"&&["top","left","start"].includes(n))n=0;else if(typeof n=="string"&&["bottom","right","end"].includes(n))n=this.limit;else{let x;if(typeof n=="string"?x=document.querySelector(n):n instanceof HTMLElement&&(n!=null&&n.nodeType)&&(x=n),x){if(this.options.wrapper!==window){const T=this.rootElement.getBoundingClientRect();t-=this.isHorizontal?T.left:T.top}const S=x.getBoundingClientRect();n=(this.isHorizontal?S.left:S.top)+this.animatedScroll}}if(typeof n=="number"){if(n+=t,n=Math.round(n),this.options.infinite?v&&(this.targetScroll=this.animatedScroll=this.scroll):n=lb(0,n,this.limit),n===this.targetScroll){h==null||h(this),m==null||m(this);return}if(this.userData=b??{},s){this.animatedScroll=this.targetScroll=n,this.setScroll(this.scroll),this.reset(),this.preventNextNativeScrollEvent(),this.emit(),m==null||m(this),this.userData={},requestAnimationFrame(()=>{this.dispatchScrollendEvent()});return}v||(this.targetScroll=n),this.animate.fromTo(this.animatedScroll,n,{duration:l,easing:c,lerp:u,onStart:()=>{r&&(this.isLocked=!0),this.isScrolling="smooth",h==null||h(this)},onUpdate:(x,S)=>{this.isScrolling="smooth",this.lastVelocity=this.velocity,this.velocity=x-this.animatedScroll,this.direction=Math.sign(this.velocity),this.animatedScroll=x,this.setScroll(this.scroll),v&&(this.targetScroll=x),S||this.emit(),S&&(this.reset(),this.emit(),m==null||m(this),this.userData={},requestAnimationFrame(()=>{this.dispatchScrollendEvent()}),this.preventNextNativeScrollEvent())}})}}}preventNextNativeScrollEvent(){this._preventNextNativeScrollEvent=!0,requestAnimationFrame(()=>{this._preventNextNativeScrollEvent=!1})}get rootElement(){return this.options.wrapper===window?document.documentElement:this.options.wrapper}get limit(){return this.options.__experimental__naiveDimensions?this.isHorizontal?this.rootElement.scrollWidth-this.rootElement.clientWidth:this.rootElement.scrollHeight-this.rootElement.clientHeight:this.dimensions.limit[this.isHorizontal?"x":"y"]}get isHorizontal(){return this.options.orientation==="horizontal"}get actualScroll(){const n=this.options.wrapper;return this.isHorizontal?n.scrollX??n.scrollLeft:n.scrollY??n.scrollTop}get scroll(){return this.options.infinite?yR(this.animatedScroll,this.limit):this.animatedScroll}get progress(){return this.limit===0?1:this.scroll/this.limit}get isScrolling(){return this._isScrolling}set isScrolling(n){this._isScrolling!==n&&(this._isScrolling=n,this.updateClassName())}get isStopped(){return this._isStopped}set isStopped(n){this._isStopped!==n&&(this._isStopped=n,this.updateClassName())}get isLocked(){return this._isLocked}set isLocked(n){this._isLocked!==n&&(this._isLocked=n,this.updateClassName())}get isSmooth(){return this.isScrolling==="smooth"}get className(){let n="lenis";return this.isStopped&&(n+=" lenis-stopped"),this.isLocked&&(n+=" lenis-locked"),this.isScrolling&&(n+=" lenis-scrolling"),this.isScrolling==="smooth"&&(n+=" lenis-smooth"),n}updateClassName(){this.cleanUpClassName(),this.rootElement.className=`${this.rootElement.className} ${this.className}`.trim()}cleanUpClassName(){this.rootElement.className=this.rootElement.className.replace(/lenis(-\w+)?/g,"").trim()}};const cb=_.createContext(null);function TR({children:n}){const[t,s]=_.useState(null),r=_.useRef(null);return _.useEffect(()=>{const l=new _R({smooth:!0});r.current=l,s(l);function c(u){l.raf(u),requestAnimationFrame(c)}return requestAnimationFrame(c),()=>{l.destroy()}},[]),f.jsx(cb.Provider,{value:t,children:n})}function ub(){return _.useContext(cb)}const ER=[{src:"/images/Products/product16.webp",title:"Outdoor Pool",description:"Luxury pools, factory-forged and code-secureâengineered to thrive outdoors with timeless sophistication.",category:"Pools & Spas",installationType:"Pre-Fabricated"},{src:"/images/Products/product4.webp",title:"Indoor Pool",description:"Tailored indoor sanctuaries engineered for wellness, air quality, and enduring luxury year-round.",category:"Pools & Spas",installationType:"On-Site Construction"},{src:"/images/Products/product10.webp",title:"Splash Pad",description:"Imaginative splash experiencesâcrafted for safety, engineered for durability, and designed for luxury",category:"Aquatic Play",installationType:"On-Site Installation"},{src:"/images/Products/product11.webp",title:"Hot Spa",description:"Wellness-focused spas combining heat therapy, luxury design, and performance-engineered systems.",category:"Wellness",installationType:"Modular or On-Site"},{src:"/images/Products/product15.webp",title:"Cold Spa",description:"Cooling immersion experiences designed to restore, refresh, and elevate luxury wellness spaces.",category:"Wellness",installationType:"Modular or On-Site"},{src:"/images/Products/product13.webp",title:"Plunge Spa",description:"Luxury plunge pools designed for invigorating immersion, wellness rituals, and elevated aquatic environments.",category:"Wellness",installationType:"Modular or On-Site"},{src:"/images/Products/product8.webp",title:"Water Feature",description:"Landmark water features designed for distinguished spaces, embodying achievement, elegance, and serene aquatic beauty.",category:"Water Features",installationType:"Custom Built"},{src:"/images/Products/product9.webp",title:"Sauna Room",description:"Innovative saunas blending advanced heat therapy with elegant relaxation for wellness-centric, luxury spaces.",category:"Wellness",installationType:"Modular or On-Site"},{src:"/images/Products/product3.webp",title:"Steam Room",description:"Innovative steam technology creating healthful, calming environments with perfect humidity for spa-inspired indulgence.",category:"Wellness",installationType:"Custom or Modular Build"}],db={products:ER},jR="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='32'%20height='32'%20fill='%23000000'%2
710viewBox='0%200%20256%20256'%3e%3cpath%20d='M200,64V168a8,8,0,0,1-16,0V83.31L69.66,197.66a8,8,0,0,1-11.32-11.32L172.69,72H88a8,8,0,0,1,0-16H192A8,8,0,0,1,200,64Z'%3e%3c/path%3e%3c/svg%3e";function AR(){const{scrollYProgress:n}=_i(),t=_.useRef(null),s=_.useRef(null),[r,l]=_.useState(0),[c,u]=_.useState(0);_.useEffect(()=>{const oe=()=>{t.current&&s.current&&requestAnimationFrame(()=>{var Ce,Z;const ce=((Ce=t.current)==null?void 0:Ce.offsetWidth)||0,ye=((Z=s.current)==null?void 0:Z.offsetWidth)||0;console.log("Scroll Width:",ce),console.log("Gallery Width:",ye),ce>0&&ye>0&&(l(ce),u(ye))})};let we;return s.current&&(we=new ResizeObserver(()=>{oe()}),we.observe(s.current)),oe(),setTimeout(oe,0),setTimeout(oe,100),window.addEventListener("resize",oe),window.addEventListener("orientationchange",()=>{setTimeout(oe,200)}),()=>{we&&we.disconnect(),window.removeEventListener("resize",oe),window.removeEventListener("orientationchange",oe)}},[]);const h=c*.1,m=r-c+h,g=We(n,[0,1],[0,-m]),v=na(g,{stiffness:1e3,damping:100,mass:.1}),b=We(n,[0,1],[-200,0]),x=na(b,{stiffness:1e3,damping:100,mass:.1}),[S,T]=_.useState(null),[C,j]=_.useState(!1),A=We(n,[0,.1],[1,0]),M=na(A,{stiffness:1e3,damping:100,mass:.1});_.useEffect(()=>{const oe=document.querySelector("footer");return oe&&(oe.style.opacity="0",oe.style.pointerEvents="none"),()=>{oe&&(oe.style.opacity="1",oe.style.pointerEvents="auto")}},[]);const D=_.useRef(!1),B=_.useRef(0),U=.5,I=ub(),Q=_.useRef(!1);_.useEffect(()=>{Q.current="ontouchstart"in window||navigator.maxTouchPoints>0},[]);const K=oe=>{var we,ce;D.current=!0,B.current=oe.clientX||((ce=(we=oe.touches)==null?void 0:we[0])==null?void 0:ce.clientX)||0,window.addEventListener("pointermove",$),window.addEventListener("pointerup",W),window.addEventListener("touchmove",$,{passive:!1}),window.addEventListener("touchend",W)},$=oe=>{var Z,J;if(!D.current)return;const we=oe.clientX||((J=(Z=oe.touches)==null?void 0:Z[0])==null?void 0:J.clientX)||0,ce=we-B.current;B.current=we;const ye=Q.current?2:1,Ce=window.scrollY;I?I.scrollTo(Ce-ce*U*.8*ye,{immediate:!0}):window.scrollBy(0,-ce*U),oe.preventDefault()};console.log("touch check:: ",Q.current);const W=()=>{D.current=!1,window.removeEventListener("pointermove",$),window.removeEventListener("pointerup",W),window.removeEventListener("touchmove",$),window.removeEventListener("touchend",W)};return f.jsx(ct,{children:f.jsxs("main",{className:"gallery-root",children:[f.jsx(rn,{mode:"wait",onExitComplete:()=>{window.scrollTo(0,0),j(!0)},children:!S&&f.jsxs(P.div,{className:"gallery-container",ref:s,children:[f.jsxs(P.div,{className:"product-arrow",initial:{opacity:0,y:-20},animate:{opacity:1,y:0,transition:{delay:1,duration:1.1,ease:[.76,0,.24,1]}},exit:{opacity:0,transition:{duration:.5,ease:[.76,0,.24,1]}},style:{scale:M},children:[f.jsx("p",{children:"SCROLL"}),f.jsx("img",{src:sb,alt:"Scroll Down",className:"product-down-arrow-icon"})]}),f.jsx(P.div,{className:"scroll-container",style:{x:v},ref:t,onPointerDown:K,onTouchStart:K,children:db.products.map((oe,we)=>f.jsx(RR,{index:we,imgX:x,setImage:({src:ce,title:ye,text:Ce,category:Z,installationType:J})=>T({src:ce,title:ye,text:Ce,category:Z,installationType:J}),...oe},we))})]})}),f.jsx(rn,{mode:"wait",onExitComplete:()=>{window.scrollTo(0,0),T(null)},children:C&&f.jsx(CR,{src:S.src,title:S.title,text:S.text,category:S.category,installationType:S.installationType,closeImagePage:()=>j(!1)})})]})})}const RR=({index:n,imgX:t,setImage:s,title:r,description:l,category:c,installationType:u,src:h})=>{const m=_.useRef({x:0,y:0}),g=_.useRef(!1),v=5,b=B=>{var U,I,Q,K;m.current={x:B.clientX||((I=(U=B.touches)==null?void 0:U[0])==null?void 0:I.clientX)||0,y:B.clientY||((K=(Q=B.touches)==null?void 0:Q[0])==null?void 0:K.clientY)||0},g.current=!1},x=B=>{var $,W,oe,we;if(!m.current)return;const U=B.clientX||((W=($=B.touches)==null?void 0:$[0])==null?void 0:W.clientX)||0,I=B.clientY||((we=(oe=B.touches)==null?void 0:oe[0])==null?void 0:we.clientY)||0,Q=Math.abs(U-m.current.x),K=Math.abs(I-m.current.y);(Q>v||K>v)&&(g.current=!0)},S=B=>{if(g.current){B.preventDefault(),B.stopPropagation();return}s({src:h,title:r,text:l,category:c,installationType:u})},T={initial:{y:"100%"},animate:{y:0,transition:{duration:1.2,ease:[.76,0,.24,1],delay:.4+n*.2}},exit:{y:"100%",transition:{duration:.6,ease:[.76,0,.24,1]}}},C={initial:{clipPath:"inset(100% 0% 0% 0%)"},animate:{clipPath:"inset(0% 0% 0% 0%)",transition:{duration:1.2,ease:[.76,0,.24,1],delay:.1*n+.2}},exit:{clipPath:"inset(100% 0% 0% 0%)",transition:{duration:1.2,ease:[.76,0,.24,1]}}},j=db.products.length,A=n<j/2?100:0,M=-200+(j-n)*(200/(j-1))*.5+A,D=We(t,B=>B+M);return f.jsxs("div",{className:"gallery-image-wrapper",children:[f.jsx("span",{className:"image-text-mask",children:f.jsx(P.div,{className:"image-info",initial:"initial",animate:"animate",exit:"exit",variants:T,children:f.jsx("div",{className:"info-value",children:r.toUpperCase()})})}),f.jsx(P.div,{className:"gallery-image-container",onClick:S,onPointerDown:b,onPointerMove:x,onTouchStart:b,onTouchMove:x,children:f.jsx(P.img,{src:h,alt:"productImage",style:{x:D},initial:"initial",animate:"animate",exit:"exit",variants:C,draggable:!1,onDragStart:B=>B.preventDefault()})})]})},CR=({src:n,text:t,title:s,closeImagePage:r,category:l,installationType:c})=>{const u={initial:{clipPath:"inset(100% 0% 0% 0%)"},animate:{clipPath:"inset(0% 0% 0% 0%)",transition:{duration:1.2,ease:[.76,0,.24,1]}},exit:{clipPath:"inset(0% 0% 100% 0%)",transition:{duration:1.2,ease:[.76,0,.24,1],delay:.2}}};return f.jsxs(P.div,{className:"gallery-image-page",children:[f.jsx(P.div,{className:"image-left",initial:"initial",animate:"animate",exit:"exit",variants:u,children:f.jsx(P.img,{src:n,alt:s,style:{width:"100%",height:"100%",objectFit:"cover"}})}),f.jsx(P.div,{className:"image-text",children:f.jsxs("div",{className:"image-text-content",children:[f.jsx("h1",{className:"product-title-large",children:f.jsx(ne,{text:s.toUpperCase(),isInView:!0,ease:[.76,0,.24,1],exit:!0})}),f.jsx("p",{className:"product-description",children:f.jsx(ne,{text:t,isInView:!0,ease:[.76,0,.24,1],exit:!0})}),f.jsx(P.div,{className:"product-details-border",initial:{opacity:0}
71,animate:{opacity:1,transition:{duration:.6,ease:[.76,0,.24,1]}},exit:{opacity:0}}),f.jsxs("div",{className:"product-details-grid",children:[f.jsxs("div",{className:"detail-item",children:[f.jsx("div",{className:"detail-label-container",children:f.jsx("div",{className:"detail-label",children:f.jsx(ne,{text:"Category",isInView:!0,ease:[.76,0,.24,1],offset:.25,exit:!0})})}),f.jsx("div",{className:"detail-value-container",children:f.jsx("div",{className:"detail-value",children:f.jsx(ne,{text:l,isInView:!0,ease:[.76,0,.24,1],offset:.25,exit:!0})})})]}),f.jsxs("div",{className:"detail-item",children:[f.jsx("div",{className:"detail-label-container",children:f.jsx("div",{className:"detail-label",children:f.jsx(ne,{text:"Installation",isInView:!0,ease:[.76,0,.24,1],offset:.25,exit:!0})})}),f.jsx("div",{className:"detail-value-container",children:f.jsx("div",{className:"detail-value",children:f.jsx(ne,{text:c,isInView:!0,offset:.25,ease:[.76,0,.24,1],exit:!0})})})]}),f.jsxs("div",{className:"detail-item",children:[f.jsx("div",{className:"detail-label-container",children:f.jsx("div",{className:"detail-label",children:f.jsx(ne,{text:"Customization",isInView:!0,ease:[.76,0,.24,1],offset:.35,exit:!0})})}),f.jsx("div",{className:"detail-value-container",children:f.jsx("div",{className:"detail-value",children:f.jsx(ne,{text:"High",isInView:!0,ease:[.76,0,.24,1],offset:.35,exit:!0})})})]}),f.jsxs("div",{className:"detail-item",children:[f.jsx("div",{className:"detail-label-container",children:f.jsx("div",{className:"detail-label",children:f.jsx(ne,{text:"Maintenance",isInView:!0,offset:.35,ease:[.76,0,.24,1],exit:!0})})}),f.jsx("div",{className:"detail-value-container",children:f.jsx("div",{className:"detail-value",children:f.jsx(ne,{text:"Serviceable",isInView:!0,ease:[.76,0,.24,1],offset:.35,exit:!0})})})]})]})]})}),f.jsxs("div",{className:"image-close-container",children:[f.jsx("span",{className:"image-close-mask",children:f.jsx("span",{className:"back-arrow",children:f.jsx(P.img,{src:jR,initial:{x:-50,y:50},animate:{x:0,y:0,rotate:180,transition:{duration:.9,ease:[.76,0,.24,1],delay:.6}},exit:{x:-50,y:50,transition:{duration:.9,ease:[.76,0,.24,1]}}})})}),f.jsx("span",{className:"image-close-mask",children:f.jsx(P.button,{className:"close-button",onClick:()=>r(),initial:{x:"-100%"},animate:{x:0,transition:{duration:.9,ease:[.76,0,.24,1],delay:.6}},exit:{y:window.innerWidth<800?"-100%":"100%",transition:{duration:.9,delay:window.innerWidth<800?.1:.3,ease:[.76,0,.24,1]}},children:"BACK"})})]})]})};function NR(){return f.jsxs(ct,{children:[f.jsxs(P.main,{className:"services-wrapper",initial:{opacity:0,y:200},animate:{opacity:1,y:0,transition:{duration:1.3,delay:.3,ease:[.25,1,.5,1]}},children:[f.jsx(Bs,{title:"CONSULTATION",description:"Our expert team guides you through every phase, from concept to construction. We provide tailored engineering insight to bring your vision to life.",field:"Engineering",specs:"Consultation, Design",img:"/images/Services/consult.webp"}),f.jsx(Bs,{title:"MANUFACTURING",description:"Innovative design meets handcrafted excellenceâmanufacturing premium components tailored for elite aquatic systems and enduring performance.",field:"Manufacturing",specs:"Production, Assembly",img:"/images/Services/manu.webp"}),f.jsx(Bs,{title:"INSTALLATION & RENOVATION",description:"Flawless installations. Transformative renovations. Expertly executed with care, precision, and refined detailâresulting in stunning, enduring aquatic environments.",field:"Installation",specs:"Renovations, Upgrades",img:"/images/Services/reno.webp"}),f.jsx(Bs,{title:"OPERATIONS",description:"We maintain complex aquatic facilities year-round with 365 days of qualified staffing, precision care, and luxury white-glove service, ensuring seamless reliable performance.",field:"Servicing",specs:"Operations, Management",img:"/images/Services/ph.webp"}),f.jsx(Bs,{title:"SERVICE",description:"Elite reliable service solutions provided by our certified expertsâpreserving your poolâs beauty, functionality and longevity.",field:"Servicing",specs:"Repairs, Maintenance",img:"/images/Services/repair.webp"}),f.jsx(Bs,{title:"DISTRIBUTION",description:"From warehouse to waterâs edge, we ensure timely, pristine, installation-ready deliveryâbacked by expedited shipping, white-glove care, and eco-conscious distribution.",field:"Servicing",specs:"Logistics, Delivery",img:"/images/Services/dist.webp"})]}),f.jsx(Br,{img:"/images/Services/wide.webp",hidden:!0})]})}const Bs=({title:n,description:t,field:s,specs:r,img:l})=>{const c=_.useRef(null),u=St(c,{once:!0,amount:.3}),{scrollYProgress:h}=_i({target:c,offset:["start end","end start"]}),m=We(h,[0,1],["-20%","20%"]),g={initial:{clipPath:"inset(0% 0% 100% 0%)"},animate:{clipPath:"inset(0% 0% 0% 0%)",transition:{duration:1.2,ease:[.76,0,.24,1]}},exit:{clipPath:"inset(100% 0% 0% 0%)",transition:{duration:1.2,ease:[.76,0,.24,1]}}};return f.jsxs(P.section,{className:"service-section",ref:c,children:[f.jsxs("div",{className:"service-left",children:[f.jsxs("div",{className:"service-left-header",children:[f.jsx("p",{className:"service-type",children:f.jsx(ne,{text:"type",isInView:u,offset:.1})}),f.jsx("h2",{children:f.jsx(ne,{text:n,isInView:u,offset:.1})})]}),f.jsxs("div",{className:"service-bottom-container",children:[f.jsx("p",{children:f.jsx(ne,{text:t,isInView:u,offset:.15})}),f.jsxs("div",{className:"service-bottom",children:[f.jsxs("div",{className:"service-mini-sec",children:[f.jsx("p",{children:f.jsx(ne,{text:"FEILD",isInView:u,offset:.15})}),f.jsx("h3",{children:f.jsx(ne,{text:s,isInView:u,offset:.5})})]}),f.jsxs("div",{className:"service-mini-sec",children:[f.jsx("div",{}),f.jsx("p",{children:f.jsx(ne,{text:"SPECS",isInView:u,offset:.15})}),f.jsx("h3",{children:f.jsx(ne,{text:r,isInView:u,offset:.2})})]})]})]}),f.jsx(P.div,{className:"right-border",initial:{scaleY:0},animate:u?{scaleY:1}:{scaleY:0},transition:{duration:1.2,ease:[.76,0,.24,1]}})]}),f.jsx("div",{className:"service-right",children:f.jsx(P.div,{className:"service-right-img-container",initial:"initial",animate:u?"animate":"initial",variants:g,children:f.jsx(P.img,{src:l,alt:"Service",style:{y:m}})})}),f.jsx(P.div,{className:"bottom-border",initial:{scaleX:0},animate:u?{scaleX:1}:{scaleX:0},transition:{duration:1.2,delay:.67,ease:[.25,1,.5,1]}})]})},OR="modulepreload",DR=function(n){return"/"+n},kv={},ra=function(t,s,r){let l=Promise.resolve();if(s&&s.length>0){let u=function(g){return Promise.all(g.map(v=>Promise.resolve(v).then(b=>({status:"fulfilled",value:b}),b=>({status:"rejected",reason:b}
71))))};document.getElementsByTagName("link");const h=document.querySelector("meta[property=csp-nonce]"),m=(h==null?void 0:h.nonce)||(h==null?void 0:h.getAttribute("nonce"));l=u(s.map(g=>{if(g=DR(g),g in kv)return;kv[g]=!0;const v=g.endsWith(".css"),b=v?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${g}"]${b}`))return;const x=document.createElement("link");if(x.rel=v?"stylesheet":OR,v||(x.as="script"),x.crossOrigin="",x.href=g,m&&x.setAttribute("nonce",m),document.head.appendChild(x),v)return new Promise((S,T)=>{x.addEventListener("load",S),x.addEventListener("error",()=>T(new Error(`Unable to preload CSS for ${g}`)))})}))}function c(u){const h=new Event("vite:preloadError",{cancelable:!0});if(h.payload=u,window.dispatchEvent(h),!h.defaultPrevented)throw u}return l.then(u=>{for(const h of u||[])h.status==="rejected"&&c(h.reason);return t().catch(c)})},MR=n=>{let t;return n?t=n:typeof fetch>"u"?t=(...s)=>ra(async()=>{const{default:r}=await Promise.resolve().then(()=>ma);return{default:r}},[]).then(({default:r})=>r(...s)):t=fetch,(...s)=>t(...s)};class Jf extends Error{constructor(t,s="FunctionsError",r){super(t),this.name=s,this.context=r}}class kR extends Jf{constructor(t){super("Failed to send a request to the Edge Function","FunctionsFetchError",t)}}class LR extends Jf{constructor(t){super("Relay Error invoking the Edge Function","FunctionsRelayError",t)}}class PR extends Jf{constructor(t){super("Edge Function returned a non-2xx status code","FunctionsHttpError",t)}}var Qd;(function(n){n.Any="any",n.ApNortheast1="ap-northeast-1",n.ApNortheast2="ap-northeast-2",n.ApSouth1="ap-south-1",n.ApSoutheast1="ap-southeast-1",n.ApSoutheast2="ap-southeast-2",n.CaCentral1="ca-central-1",n.EuCentral1="eu-central-1",n.EuWest1="eu-west-1",n.EuWest2="eu-west-2",n.EuWest3="eu-west-3",n.SaEast1="sa-east-1",n.UsEast1="us-east-1",n.UsWest1="us-west-1",n.UsWest2="us-west-2"})(Qd||(Qd={}));var UR=function(n,t,s,r){function l(c){return c instanceof s?c:new s(function(u){u(c)})}return new(s||(s=Promise))(function(c,u){function h(v){try{g(r.next(v))}catch(b){u(b)}}function m(v){try{g(r.throw(v))}catch(b){u(b)}}function g(v){v.done?c(v.value):l(v.value).then(h,m)}g((r=r.apply(n,t||[])).next())})};class VR{constructor(t,{headers:s={},customFetch:r,region:l=Qd.Any}={}){this.url=t,this.headers=s,this.region=l,this.fetch=MR(r)}setAuth(t){this.headers.Authorization=`Bearer ${t}`}invoke(t,s={}){var r;return UR(this,void 0,void 0,function*(){try{const{headers:l,method:c,body:u}=s;let h={},{region:m}=s;m||(m=this.region),m&&m!=="any"&&(h["x-region"]=m);let g;u&&(l&&!Object.prototype.hasOwnProperty.call(l,"Content-Type")||!l)&&(typeof Blob<"u"&&u instanceof Blob||u instanceof ArrayBuffer?(h["Content-Type"]="application/octet-stream",g=u):typeof u=="string"?(h["Content-Type"]="text/plain",g=u):typeof FormData<"u"&&u instanceof FormData?g=u:(h["Content-Type"]="application/json",g=JSON.stringify(u)));const v=yield this.fetch(`${this.url}/${t}`,{method:c||"POST",headers:Object.assign(Object.assign(Object.assign({},h),this.headers),l),body:g}).catch(T=>{throw new kR(T)}),b=v.headers.get("x-relay-error");if(b&&b==="true")throw new LR(v);if(!v.ok)throw new PR(v);let x=((r=v.headers.get("Content-Type"))!==null&&r!==void 0?r:"text/plain").split(";")[0].trim(),S;return x==="application/json"?S=yield v.json():x==="application/octet-stream"?S=yield v.blob():x==="text/event-stream"?S=v:x==="multipart/form-data"?S=yield v.formData():S=yield v.text(),{data:S,error:null}}catch(l){return{data:null,error:l}}})}}var rt={},Hs={},qs={},$s={},Gs={},Ys={},zR=function(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")},la=zR();const BR=la.fetch,fb=la.fetch.bind(la),hb=la.Headers,HR=la.Request,qR=la.Response,ma=Object.freeze(Object.defineProperty({__proto__:null,Headers:hb,Request:HR,Response:qR,default:fb,fetch:BR},Symbol.toStringTag,{value:"Module"})),$R=cS(ma);var go={},Lv;function mb(){if(Lv)return go;Lv=1,Object.defineProperty(go,"__esModule",{value:!0});
71class n extends Error{constructor(s){super(s.message),this.name="PostgrestError",this.details=s.details,this.hint=s.hint,this.code=s.code}}return go.default=n,go}var Pv;function pb(){if(Pv)return Ys;Pv=1;var n=Ys&&Ys.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(Ys,"__esModule",{value:!0});const t=n($R),s=n(mb());class r{constructor(c){this.shouldThrowOnError=!1,this.method=c.method,this.url=c.url,this.headers=c.headers,this.schema=c.schema,this.body=c.body,this.shouldThrowOnError=c.shouldThrowOnError,this.signal=c.signal,this.isMaybeSingle=c.isMaybeSingle,c.fetch?this.fetch=c.fetch:typeof fetch>"u"?this.fetch=t.default:this.fetch=fetch}throwOnError(){return this.shouldThrowOnError=!0,this}setHeader(c,u){return this.headers=Object.assign({},this.headers),this.headers[c]=u,this}then(c,u){this.schema===void 0||(["GET","HEAD"].includes(this.method)?this.headers["Accept-Profile"]=this.schema:this.headers["Content-Profile"]=this.schema),this.method!=="GET"&&this.method!=="HEAD"&&(this.headers["Content-Type"]="application/json");const h=this.fetch;let m=h(this.url.toString(),{method:this.method,headers:this.headers,body:JSON.stringify(this.body),signal:this.signal}).then(async g=>{var v,b,x;let S=null,T=null,C=null,j=g.status,A=g.statusText;if(g.ok){if(this.method!=="HEAD"){const U=await g.text();U===""||(this.headers.Accept==="text/csv"||this.headers.Accept&&this.headers.Accept.includes("application/vnd.pgrst.plan+text")?T=U:T=JSON.parse(U))}const D=(v=this.headers.Prefer)===null||v===void 0?void 0:v.match(/count=(exact|planned|estimated)/),B=(b=g.headers.get("content-range"))===null||b===void 0?void 0:b.split("/");D&&B&&B.length>1&&(C=parseInt(B[1])),this.isMaybeSingle&&this.method==="GET"&&Array.isArray(T)&&(T.length>1?(S={code:"PGRST116",details:`Results contain ${T.length} rows, application/vnd.pgrst.object+json requires 1 row`,hint:null,message:"JSON object requested, multiple (or no) rows returned"},T=null,C=null,j=406,A="Not Acceptable"):T.length===1?T=T[0]:T=null)}else{const D=await g.text();try{S=JSON.parse(D),Array.isArray(S)&&g.status===404&&(T=[],S=null,j=200,A="OK")}catch{g.status===404&&D===""?(j=204,A="No Content"):S={message:D}}if(S&&this.isMaybeSingle&&(!((x=S==null?void 0:S.details)===null||x===void 0)&&x.includes("0 rows"))&&(S=null,j=200,A="OK"),S&&this.shouldThrowOnError)throw new s.default(S)}return{error:S,data:T,count:C,status:j,statusText:A}});return this.shouldThrowOnError||(m=m.catch(g=>{var v,b,x;return{error:{message:`${(v=g==null?void 0:g.name)!==null&&v!==void 0?v:"FetchError"}: ${g==null?void 0:g.message}`,details:`${(b=g==null?void 0:g.stack)!==null&&b!==void 0?b:""}`,hint:"",code:`${(x=g==null?void 0:g.code)!==null&&x!==void 0?x:""}`},data:null,count:null,status:0,statusText:""}})),m.then(c,u)}returns(){return this}overrideTypes(){return this}}return Ys.default=r,Ys}var Uv;function gb(){if(Uv)return Gs;Uv=1;var n=Gs&&Gs.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Gs,"__esModule",{value:!0});const t=n(pb());class s extends t.default{select(l){let c=!1;const u=(l??"*").split("").map(h=>/\s/.test(h)&&!c?"":(h==='"'&&(c=!c),h)).join("");return this.url.searchParams.set("select",u),this.headers.Prefer&&(this.headers.Prefer+=","),this.headers.Prefer+="return=representation",this}order(l,{ascending:c=!0,nullsFirst:u,foreignTable:h,referencedTable:m=h}={}){const g=m?`${m}.order`:"order",v=this.url.searchParams.get(g);return this.url.searchParams.set(g,`${v?`${v},`:""}${l}.${c?"asc":"desc"}${u===void 0?"":u?".nullsfirst":".nullslast"}`),this}limit(l,{foreignTable:c,referencedTable:u=c}={}){const h=typeof u>"u"?"limit":`${u}.limit`;return this.url.searchParams.set(h,`${l}`),this}range(l,c,{foreignTable:u,referencedTable:h=u}={}){const m=typeof h>"u"?"offset":`${h}.offset`,g=typeof h>"u"?"limit":`${h}.limit`;return this.url.searchParams.set(m,`${l}`),this.url.searchParams.set(g,`${c-l+1}`),this}abortSignal(l){return this.signal=l,this}single(){return this.headers.Accept="application/vnd.pgrst.object+json",this}maybeSingle(){return this.method==="GET"?this.headers.Accept="application/json":this.headers.Accept="application/vnd.pgrst.object+json",this.isMaybeSingle=!0,this}csv(){return this.headers.Accept="text/csv",this}geojson(){return this.headers.Accept="application/geo+json",this}
71explain({analyze:l=!1,verbose:c=!1,settings:u=!1,buffers:h=!1,wal:m=!1,format:g="text"}={}){var v;const b=[l?"analyze":null,c?"verbose":null,u?"settings":null,h?"buffers":null,m?"wal":null].filter(Boolean).join("|"),x=(v=this.headers.Accept)!==null&&v!==void 0?v:"application/json";return this.headers.Accept=`application/vnd.pgrst.plan+${g}; for="${x}"; options=${b};`,g==="json"?this:this}rollback(){var l;return((l=this.headers.Prefer)!==null&&l!==void 0?l:"").trim().length>0?this.headers.Prefer+=",tx=rollback":this.headers.Prefer="tx=rollback",this}returns(){return this}}return Gs.default=s,Gs}var Vv;function eh(){if(Vv)return $s;Vv=1;var n=$s&&$s.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty($s,"__esModule",{value:!0});const t=n(gb());class s extends t.default{eq(l,c){return this.url.searchParams.append(l,`eq.${c}`),this}neq(l,c){return this.url.searchParams.append(l,`neq.${c}`),this}gt(l,c){return this.url.searchParams.append(l,`gt.${c}`),this}gte(l,c){return this.url.searchParams.append(l,`gte.${c}`),this}lt(l,c){return this.url.searchParams.append(l,`lt.${c}`),this}lte(l,c){return this.url.searchParams.append(l,`lte.${c}`),this}like(l,c){return this.url.searchParams.append(l,`like.${c}`),this}likeAllOf(l,c){return this.url.searchParams.append(l,`like(all).{${c.join(",")}}`),this}likeAnyOf(l,c){return this.url.searchParams.append(l,`like(any).{${c.join(",")}}`),this}ilike(l,c){return this.url.searchParams.append(l,`ilike.${c}`),this}ilikeAllOf(l,c){return this.url.searchParams.append(l,`ilike(all).{${c.join(",")}}`),this}ilikeAnyOf(l,c){return this.url.searchParams.append(l,`ilike(any).{${c.join(",")}}`),this}is(l,c){return this.url.searchParams.append(l,`is.${c}`),this}in(l,c){const u=Array.from(new Set(c)).map(h=>typeof h=="string"&&new RegExp("[,()]").test(h)?`"${h}"`:`${h}`).join(",");return this.url.searchParams.append(l,`in.(${u})`),this}contains(l,c){return typeof c=="string"?this.url.searchParams.append(l,`cs.${c}`):Array.isArray(c)?this.url.searchParams.append(l,`cs.{${c.join(",")}}`):this.url.searchParams.append(l,`cs.${JSON.stringify(c)}`),this}containedBy(l,c){return typeof c=="string"?this.url.searchParams.append(l,`cd.${c}`):Array.isArray(c)?this.url.searchParams.append(l,`cd.{${c.join(",")}}`):this.url.searchParams.append(l,`cd.${JSON.stringify(c)}`),this}rangeGt(l,c){return this.url.searchParams.append(l,`sr.${c}`),this}rangeGte(l,c){return this.url.searchParams.append(l,`nxl.${c}`),this}rangeLt(l,c){return this.url.searchParams.append(l,`sl.${c}`),this}rangeLte(l,c){return this.url.searchParams.append(l,`nxr.${c}`),this}rangeAdjacent(l,c){return this.url.searchParams.append(l,`adj.${c}`),this}overlaps(l,c){return typeof c=="string"?this.url.searchParams.append(l,`ov.${c}`):this.url.searchParams.append(l,`ov.{${c.join(",")}}`),this}textSearch(l,c,{config:u,type:h}={}){let m="";h==="plain"?m="pl":h==="phrase"?m="ph":h==="websearch"&&(m="w");const g=u===void 0?"":`(${u})`;return this.url.searchParams.append(l,`${m}fts${g}.${c}`),this}match(l){return Object.entries(l).forEach(([c,u])=>{this.url.searchParams.append(c,`eq.${u}`)}),this}not(l,c,u){return this.url.searchParams.append(l,`not.${c}.${u}`),this}or(l,{foreignTable:c,referencedTable:u=c}={}){const h=u?`${u}.or`:"or";return this.url.searchParams.append(h,`(${l})`),this}filter(l,c,u){return this.url.searchParams.append(l,`${c}.${u}`),this}}return $s.default=s,$s}var zv;function vb(){if(zv)return qs;zv=1;var n=qs&&qs.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(qs,"__esModule",{value:!0});const t=n(eh());class s{constructor(l,{headers:c={},schema:u,fetch:h}){this.url=l,this.headers=c,this.schema=u,this.fetch=h}select(l,{head:c=!1,count:u}={}){const h=c?"HEAD":"GET";let m=!1;const g=(l??"*").split("").map(v=>/\s/.test(v)&&!m?"":(v==='"'&&(m=!m),v)).join("");return this.url.searchParams.set("select",g),u&&(this.headers.Prefer=`count=${u}`),new t.default({method:h,url:this.url,headers:this.headers,schema:this.schema,fetch:this.fetch,allowEmpty:!1})}insert(l,{count:c,defaultToNull:u=!0}={}){const h="POST",m=[];if(this.headers.Prefer&&m.push(this.headers.Prefer),c&&m.push(`count=${c}`),u||m.push("missing=default"),this.headers.Prefer=m.join(","),Array.isArray(l)){const g=l.reduce((v,b)=>v.concat(Object.keys(b)),[]);if(g.length>0){const v=[...new Set(g)].map(b=>`"${b}"`);this.url.searchParams.set("columns",v.join(","))}}return new t.default({method:h,url:this.url,headers:this.headers,schema:this.schema,body:l,fetch:this.fetch,allowEmpty:!1})}upsert(l,{onConflict:c,ignoreDuplicates:u=!1,count:h,defaultToNull:m=!0}={}){const g="POST",v=[`resolution=${u?"ignore":"merge"}-duplicates`];if(c!==void 0&&this.url.searchParams.set("on_conflict",c),this.headers.Prefer&&v.push(this.headers.Prefer),h&&v.push(`count=${h}`),m||v.push("missing=default"),this.headers.Prefer=v.join(","),Array.isArray(l)){const b=l.reduce((x,S)=>x.concat(Object.keys(S)),[]);if(b.length>0){const x=[...new Set(b)].map(S=>`"${S}"`);this.url.searchParams.set("columns",x.join(","))}}return new t.default({method:g,url:this.url,headers:this.headers,schema:this.schema,body:l,fetch:this.fetch,allowEmpty:!1})}update(l,{count:c}={}){const u="PATCH",h=[];return this.headers.Prefer&&h.push(this.headers.Prefer),c&&h.push(`count=${c}`),this.headers.Prefer=h.join(","),new t.default({method:u,url:this.url,headers:this.headers,schema:this.schema,body:l,fetch:this.fetch,allowEmpty:!1})}delete({count:l}={}){const c="DELETE",u=[];return l&&u.push(`count=${l}`),this.headers.Prefer&&u.unshift(this.headers.Prefer),this.headers.Prefer=u.join(","),new t.default({method:c,url:this.url,headers:this.headers,schema:this.schema,fetch:this.fetch,allowEmpty:!1})}}return qs.default=s,qs}var yr={},br={},Bv;
71function GR(){return Bv||(Bv=1,Object.defineProperty(br,"__esModule",{value:!0}),br.version=void 0,br.version="0.0.0-automated"),br}var Hv;function YR(){if(Hv)return yr;Hv=1,Object.defineProperty(yr,"__esModule",{value:!0}),yr.DEFAULT_HEADERS=void 0;const n=GR();return yr.DEFAULT_HEADERS={"X-Client-Info":`postgrest-js/${n.version}`},yr}var qv;function XR(){if(qv)return Hs;qv=1;var n=Hs&&Hs.__importDefault||function(c){return c&&c.__esModule?c:{default:c}};Object.defineProperty(Hs,"__esModule",{value:!0});const t=n(vb()),s=n(eh()),r=YR();class l{constructor(u,{headers:h={},schema:m,fetch:g}={}){this.url=u,this.headers=Object.assign(Object.assign({},r.DEFAULT_HEADERS),h),this.schemaName=m,this.fetch=g}from(u){const h=new URL(`${this.url}/${u}`);return new t.default(h,{headers:Object.assign({},this.headers),schema:this.schemaName,fetch:this.fetch})}schema(u){return new l(this.url,{headers:this.headers,schema:u,fetch:this.fetch})}rpc(u,h={},{head:m=!1,get:g=!1,count:v}={}){let b;const x=new URL(`${this.url}/rpc/${u}`);let S;m||g?(b=m?"HEAD":"GET",Object.entries(h).filter(([C,j])=>j!==void 0).map(([C,j])=>[C,Array.isArray(j)?`{${j.join(",")}}`:`${j}`]).forEach(([C,j])=>{x.searchParams.append(C,j)})):(b="POST",S=h);const T=Object.assign({},this.headers);return v&&(T.Prefer=`count=${v}`),new s.default({method:b,url:x,headers:T,schema:this.schemaName,body:S,fetch:this.fetch,allowEmpty:!1})}}return Hs.default=l,Hs}var $v;function FR(){if($v)return rt;$v=1;var n=rt&&rt.__importDefault||function(h){return h&&h.__esModule?h:{default:h}};Object.defineProperty(rt,"__esModule",{value:!0}),rt.PostgrestError=rt.PostgrestBuilder=rt.PostgrestTransformBuilder=rt.PostgrestFilterBuilder=rt.PostgrestQueryBuilder=rt.PostgrestClient=void 0;const t=n(XR());rt.PostgrestClient=t.default;const s=n(vb());rt.PostgrestQueryBuilder=s.default;const r=n(eh());rt.PostgrestFilterBuilder=r.default;const l=n(gb());rt.PostgrestTransformBuilder=l.default;const c=n(pb());rt.PostgrestBuilder=c.default;const u=n(mb());return rt.PostgrestError=u.default,rt.default={PostgrestClient:t.default,PostgrestQueryBuilder:s.default,PostgrestFilterBuilder:r.default,PostgrestTransformBuilder:l.default,PostgrestBuilder:c.default,PostgrestError:u.default},rt}var IR=FR();const KR=oy(IR),{PostgrestClient:ZR,PostgrestQueryBuilder:d3,PostgrestFilterBuilder:f3,PostgrestTransformBuilder:h3,PostgrestBuilder:m3,PostgrestError:p3}=KR,QR="2.11.2",WR={"X-Client-Info":`realtime-js/${QR}`},JR="1.0.0",yb=1e4,eC=1e3;var ia;(function(n){n[n.connecting=0]="connecting",n[n.open=1]="open",n[n.closing=2]="closing",n[n.closed=3]="closed"})(ia||(ia={}));var Pt;(function(n){n.closed="closed",n.errored="errored",n.joined="joined",n.joining="joining",n.leaving="leaving"})(Pt||(Pt={}));var an;(function(n){n.close="phx_close",n.error="phx_error",n.join="phx_join",n.reply="phx_reply",n.leave="phx_leave",n.access_token="access_token"})(an||(an={}));var Wd;(function(n){n.websocket="websocket"})(Wd||(Wd={}));var Wi;(function(n){n.Connecting="connecting",n.Open="open",n.Closing="closing",n.Closed="closed"})(Wi||(Wi={}));class tC{constructor(){this.HEADER_LENGTH=1}decode(t,s){return t.constructor===ArrayBuffer?s(this._binaryDecode(t)):s(typeof t=="string"?JSON.parse(t):{})}_binaryDecode(t){const s=new DataView(t),r=new TextDecoder;return this._decodeBroadcast(t,s,r)}_decodeBroadcast(t,s,r){const l=s.getUint8(1),c=s.getUint8(2);let u=this.HEADER_LENGTH+2;const h=r.decode(t.slice(u,u+l));u=u+l;const m=r.decode(t.slice(u,u+c));u=u+c;const g=JSON.parse(r.decode(t.slice(u,t.byteLength)));return{ref:null,topic:h,event:m,payload:g}}}class bb{constructor(t,s){this.callback=t,this.timerCalc=s,this.timer=void 0,this.tries=0,this.callback=t,this.timerCalc=s}reset(){this.tries=0,clearTimeout(this.timer)}scheduleTimeout(){clearTimeout(this.timer),this.timer=setTimeout(()=>{this.tries=this.tries+1,this.callback()},this.timerCalc(this.tries+1))}}var Le;(function(n){n.abstime="abstime",n.bool="bool",n.date="date",n.daterange="daterange",n.float4="float4",n.float8="float8",n.int2="int2",n.int4="int4",n.int4range="int4range",n.int8="int8",n.int8range="int8range",n.json="json",n.jsonb="jsonb",n.money="money",n.numeric="numeric",n.oid="oid",n.reltime="reltime",n.text="text",n.time="time",n.timestamp="timestamp",n.timestamptz="timestamptz",n.timetz="timetz",n.tsrange="tsrange",n.tstzrange="tstzrange"})(Le||(Le={}));const Gv=(n,t,s={})=>{var r;const l=(r=s.skipTypes)!==null&&r!==void 0?r:[];return Object.keys(t).reduce((c,u)=>(c[u]=nC(u,n,t,l),c),{})},nC=(n,t,s,r)=>{const l=t.find(h=>h.name===n),c=l==null?void 0:l.type,u=s[n];return c&&!r.includes(c)?xb(c,u):Jd(u)},xb=(n,t)=>{if(n.charAt(0)==="_"){const s=n.slice(1,n.length);return rC(t,s)}switch(n){case Le.bool:return iC(t);case Le.float4:case Le.float8:case Le.int2:case Le.int4:case Le.int8:case Le.numeric:case Le.oid:return sC(t);case Le.json:case Le.jsonb:return aC(t);case Le.timestamp:return lC(t);case Le.abstime:case Le.date:case Le.daterange:case Le.int4range:case Le.int8range:case Le.money:case Le.reltime:case Le.text:case Le.time:case Le.timestamptz:case Le.timetz:case Le.tsrange:case Le.tstzrange:return Jd(t);default:return Jd(t)}},Jd=n=>n,iC=n=>{switch(n){case"t":return!0;case"f":return!1;default:return n}},sC=n=>{if(typeof n=="string"){const t=parseFloat(n);if(!Number.isNaN(t))return t}return n},aC=n=>{if(typeof n=="string")try{return JSON.parse(n)}catch(t){return console.log(`JSON parse error: ${t}`),n}return n},rC=(n,t)=>
vendor: 10,208 bytes, line 71
71{if(typeof n!="string")return n;const s=n.length-1,r=n[s];if(n[0]==="{"&&r==="}"){let c;const u=n.slice(1,s);try{c=JSON.parse("["+u+"]")}catch{c=u?u.split(","):[]}return c.map(h=>xb(t,h))}return n},lC=n=>typeof n=="string"?n.replace(" ","T"):n,wb=n=>{let t=n;return t=t.replace(/^ws/i,"http"),t=t.replace(/(\/socket\/websocket|\/socket|\/websocket)\/?$/i,""),t.replace(/\/+$/,"")};class Td{constructor(t,s,r={},l=yb){this.channel=t,this.event=s,this.payload=r,this.timeout=l,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,s){var r;return this._hasReceived(t)&&s((r=this.receivedResp)===null||r===void 0?void 0:r.response),this.recHooks.push({status:t,callback:s}),this}startTimeout(){if(this.timeoutTimer)return;this.ref=this.channel.socket._makeRef(),this.refEvent=this.channel._replyEventName(this.ref);const t=s=>{this._cancelRefEvent(),this._cancelTimeout(),this.receivedResp=s,this._matchReceive(s)};this.channel._on(this.refEvent,{},t),this.timeoutTimer=setTimeout(()=>{this.trigger("timeout",{})},this.timeout)}trigger(t,s){this.refEvent&&this.channel._trigger(this.refEvent,{status:t,response:s})}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:s}){this.recHooks.filter(r=>r.status===t).forEach(r=>r.callback(s))}_hasReceived(t){return this.receivedResp&&this.receivedResp.status===t}}var Yv;(function(n){n.SYNC="sync",n.JOIN="join",n.LEAVE="leave"})(Yv||(Yv={}));class Cr{constructor(t,s){this.channel=t,this.state={},this.pendingDiffs=[],this.joinRef=null,this.caller={onJoin:()=>{},onLeave:()=>{},onSync:()=>{}};const r=(s==null?void 0:s.events)||{state:"presence_state",diff:"presence_diff"};this.channel._on(r.state,{},l=>{const{onJoin:c,onLeave:u,onSync:h}=this.caller;this.joinRef=this.channel._joinRef(),this.state=Cr.syncState(this.state,l,c,u),this.pendingDiffs.forEach(m=>{this.state=Cr.syncDiff(this.state,m,c,u)}),this.pendingDiffs=[],h()}),this.channel._on(r.diff,{},l=>{const{onJoin:c,onLeave:u,onSync:h}=this.caller;this.inPendingSyncState()?this.pendingDiffs.push(l):(this.state=Cr.syncDiff(this.state,l,c,u),h())}),this.onJoin((l,c,u)=>{this.channel._trigger("presence",{event:"join",key:l,currentPresences:c,newPresences:u})}),this.onLeave((l,c,u)=>{this.channel._trigger("presence",{event:"leave",key:l,currentPresences:c,leftPresences:u})}),this.onSync(()=>{this.channel._trigger("presence",{event:"sync"})})}static syncState(t,s,r,l){const c=this.cloneDeep(t),u=this.transformState(s),h={},m={};return this.map(c,(g,v)=>{u[g]||(m[g]=v)}),this.map(u,(g,v)=>{const b=c[g];if(b){const x=v.map(j=>j.presence_ref),S=b.map(j=>j.presence_ref),T=v.filter(j=>S.indexOf(j.presence_ref)<0),C=b.filter(j=>x.indexOf(j.presence_ref)<0);T.length>0&&(h[g]=T),C.length>0&&(m[g]=C)}else h[g]=v}),this.syncDiff(c,{joins:h,leaves:m},r,l)}static syncDiff(t,s,r,l){const{joins:c,leaves:u}={joins:this.transformState(s.joins),leaves:this.transformState(s.leaves)};return r||(r=()=>{}),l||(l=()=>{}),this.map(c,(h,m)=>{var g;const v=(g=t[h])!==null&&g!==void 0?g:[];if(t[h]=this.cloneDeep(m),v.length>0){const b=t[h].map(S=>S.presence_ref),x=v.filter(S=>b.indexOf(S.presence_ref)<0);t[h].unshift(...x)}r(h,v,m)}),this.map(u,(h,m)=>{let g=t[h];if(!g)return;const v=m.map(b=>b.presence_ref);g=g.filter(b=>v.indexOf(b.presence_ref)<0),t[h]=g,l(h,g,m),g.length===0&&delete t[h]}),t}static map(t,s){return Object.getOwnPropertyNames(t).map(r=>s(r,t[r]))}static transformState(t){return t=this.cloneDeep(t),Object.getOwnPropertyNames(t).reduce((s,r)=>{const l=t[r];return"metas"in l?s[r]=l.metas.map(c=>(c.presence_ref=c.phx_ref,delete c.phx_ref,delete c.phx_ref_prev,c)):s[r]=l,s},{})}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 Xv;(function(n){n.ALL="*",n.INSERT="INSERT",n.UPDATE="UPDATE",n.DELETE="DELETE"})(Xv||(Xv={}));var Fv;(function(n){n.BROADCAST="broadcast",n.PRESENCE="presence",n.POSTGRES_CHANGES="postgres_changes",n.SYSTEM="system"})(Fv||(Fv={}));var zn;(function(n){n.SUBSCRIBED="SUBSCRIBED",n.TIMED_OUT="TIMED_OUT",n.CLOSED="CLOSED",n.CHANNEL_ERROR="CHANNEL_ERROR"})(zn||(zn={}));class th{constructor(t,s={config:{}},r){this.topic=t,this.params=s,this.socket=r,this.bindings={},this.state=Pt.closed,this.joinedOnce=!1,this.pushBuffer=[],this.subTopic=t.replace(/^realtime:/i,""),this.params.config=Object.assign({broadcast:{ack:!1,self:!1},presence:{key:""},private:!1},s.config),this.timeout=this.socket.timeout,this.joinPush=new Td(this,an.join,this.params,this.timeout),this.rejoinTimer=new bb(()=>this._rejoinUntilConnected(),this.socket.reconnectAfterMs),this.joinPush.receive("ok",()=>{this.state=Pt.joined,this.rejoinTimer.reset(),this.pushBuffer.forEach(l=>l.send()),this.pushBuffer=[]}),this._onClose(()=>{this.rejoinTimer.reset(),this.socket.log("channel",`close ${this.topic} ${this._joinRef()}`),this.state=Pt.closed,this.socket._remove(this)}),this._onError(l=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,l),this.state=Pt.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("timeout",()=>{this._isJoining()&&(this.socket.log("channel",`timeout ${this.topic}`,this.joinPush.timeout),this.state=Pt.errored,this.rejoinTimer.scheduleTimeout())}),this._on(an.reply,{},(l,c)=>{this._trigger(this._replyEventName(c),l)}),this.presence=new Cr(this),this.broadcastEndpointURL=wb(this.socket.endPoint)+"/api/broadcast",this.private=this.params.config.private||!1}subscribe(t,s=this.timeout){var r,l;if(this.socket.isConnected()||this.socket.connect(),this.joinedOnce)throw"tried to subscribe multiple times. 'subscribe' can only be called a single time per channel instance";{const{config:{broadcast:c,presence:u,private:h}}=this.params;this._onError(v=>t==null?void 0:t(zn.CHANNEL_ERROR,v)),this._onClose(()=>t==null?void 0:t(zn.CLOSED));const m={},g={broadcast:c,presence:u,postgres_changes:(l=(r=this.bindings.postgres_changes)===null||r===void 0?void 0:r.map(v=>v.filter))!==null&&l!==void 0?l:[],private:h};this.socket.accessTokenValue&&(m.access_token=this.socket.accessTokenValue),this.updateJoinPayload(Object.assign({config:g},m)),this.joinedOnce=!0,this._rejoin(s),this.joinPush.receive("ok",async({postgres_changes:v})=>{var b;if(this.socket.setAuth(),v===void 0){t==null||t(zn.SUBSCRIBED);return}else{const x=this.bindings.postgres_changes,S=(b=x==null?void 0:x.length)!==null&&b!==void 0?b:0,T=[];for(let C=0;C<S;C++){const j=x[C],{filter:{event:A,schema:M,table:D,filter:B}}=j,U=v&&v[C];if(U&&U.event===A&&U.schema===M&&U.table===D&&U.filter===B)T.push(Object.assign(Object.assign({},j),{id:U.id}));else{this.unsubscribe(),t==null||t(zn.CHANNEL_ERROR,new Error("mismatch between server and client bindings for postgres changes"));return}}this.bindings.postgres_changes=T,t&&t(zn.SUBSCRIBED);return}}).receive("error",v=>{t==null||t(zn.CHANNEL_ERROR,new Error(JSON.stringify(Object.values(v).join(", ")||"error")))}).receive("timeout",()=>{t==null||t(zn.TIMED_OUT)})}return this}presenceState(){return this.presence.state}async track(t,s={}){return await this.send({type:"presence",event:"track",payload:t},s.timeout||this.timeout)}async untrack(t={}){return await this.send({type:"presence",event:"untrack"},t)}on(t,s,r){return this._on(t,s,r)}async send(t,s={}){var r,l;if(!this._canPush()&&t.type==="broadcast"){const{event:c,payload:u}=t,m={method:"POST",headers:{Authorization:this.socket.accessTokenValue?`Bearer ${this.socket.accessTokenValue}`:"",apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"},body:JSON.stringify({messages:[{topic:this.subTopic,event:c,payload:u,private:this.private}]})};try{const g=await this._fetchWithTimeout(this.broadcastEndpointURL,m,(r=s.timeout)!==null&&r!==void 0?r:this.timeout);return await((l=g.body)===null||l===void 0?void 0:l.cancel()),g.ok?"ok":"error"}catch(g){return g.name==="AbortError"?"timed out":"error"}}else return new Promise(c=>{var u,h,m;const g=this._push(t.type,t,s.timeout||this.timeout);t.type==="broadcast"&&!(!((m=(h=(u=this.params)===null||u===void 0?void 0:u.config)===null||h===void 0?void 0:h.broadcast)===null||m===void 0)&&m.ack)&&c("ok"),g.receive("ok",()=>c("ok")),g.receive("error",()=>c("error")),g.receive("timeout",()=>c("timed out"))})}updateJoinPayload(t){this.joinPush.updatePayload(t)}unsubscribe(t=this.timeout){this.state=Pt.leaving;const s=()=>{this.socket.log("channel",`leave ${this.topic}`),this._trigger(an.close,"leave",this._joinRef())};return this.rejoinTimer.reset(),this.joinPush.destroy(),new Promise(r=>{const l=new Td(this,an.leave,{},t);l.receive("ok",()=>{s(),r("ok")}).receive("timeout",()=>{s(),r("timed out")}).receive("error",()=>{r("error")}),l.send(),this._canPush()||l.trigger("ok",{})})}async _fetchWithTimeout(t,s,r){const l=new AbortController,c=setTimeout(()=>l.abort(),r),u=await this.socket.fetch(t,Object.assign(Object.assign({},s),{signal:l.signal}));return clearTimeout(c),u}_push(t,s,r=this.timeout){if(!this.joinedOnce)throw`tried to push '${t}' to '${this.topic}' before joining. Use channel.subscribe() before pushing events`;let l=new Td(this,t,s,r);return this._canPush()?l.send():(l.startTimeout(),this.pushBuffer.push(l)),l}_onMessage(t,s,r){return s}_isMember(t){return this.topic===t}_joinRef(){return this.joinPush.ref}_trigger(t,s,r){var l,c;const u=t.toLocaleLowerCase(),{close:h,error:m,leave:g,join:v}=an;if(r&&[h,m,g,v].indexOf(u)>=0&&r!==this._joinRef())return;let x=this._onMessage(u,s,r);
71if(s&&!x)throw"channel onMessage callbacks must return the payload, modified or unmodified";["insert","update","delete"].includes(u)?(l=this.bindings.postgres_changes)===null||l===void 0||l.filter(S=>{var T,C,j;return((T=S.filter)===null||T===void 0?void 0:T.event)==="*"||((j=(C=S.filter)===null||C===void 0?void 0:C.event)===null||j===void 0?void 0:j.toLocaleLowerCase())===u}).map(S=>S.callback(x,r)):(c=this.bindings[u])===null||c===void 0||c.filter(S=>{var T,C,j,A,M,D;if(["broadcast","presence","postgres_changes"].includes(u))if("id"in S){const B=S.id,U=(T=S.filter)===null||T===void 0?void 0:T.event;return B&&((C=s.ids)===null||C===void 0?void 0:C.includes(B))&&(U==="*"||(U==null?void 0:U.toLocaleLowerCase())===((j=s.data)===null||j===void 0?void 0:j.type.toLocaleLowerCase()))}else{const B=(M=(A=S==null?void 0:S.filter)===null||A===void 0?void 0:A.event)===null||M===void 0?void 0:M.toLocaleLowerCase();return B==="*"||B===((D=s==null?void 0:s.event)===null||D===void 0?void 0:D.toLocaleLowerCase())}else return S.type.toLocaleLowerCase()===u}).map(S=>{if(typeof x=="object"&&"ids"in x){const T=x.data,{schema:C,table:j,commit_timestamp:A,type:M,errors:D}=T;x=Object.assign(Object.assign({},{schema:C,table:j,commit_timestamp:A,eventType:M,new:{},old:{},errors:D}),this._getPayloadRecords(T))}S.callback(x,r)})}_isClosed(){return this.state===Pt.closed}_isJoined(){return this.state===Pt.joined}_isJoining(){return this.state===Pt.joining}_isLeaving(){return this.state===Pt.leaving}_replyEventName(t){return`chan_reply_${t}`}_on(t,s,r){const l=t.toLocaleLowerCase(),c={type:l,filter:s,callback:r};return this.bindings[l]?this.bindings[l].push(c):this.bindings[l]=[c],this}_off(t,s){const r=t.toLocaleLowerCase();return this.bindings[r]=this.bindings[r].filter(l=>{var c;return!(((c=l.type)===null||c===void 0?void 0:c.toLocaleLowerCase())===r&&th.isEqual(l.filter,s))}),this}static isEqual(t,s){if(Object.keys(t).length!==Object.keys(s).length)return!1;for(const r in t)if(t[r]!==s[r])return!1;return!0}_rejoinUntilConnected(){this.rejoinTimer.scheduleTimeout(),this.socket.isConnected()&&this._rejoin()}_onClose(t){this._on(an.close,{},t)}_onError(t){this._on(an.error,{},s=>t(s))}_canPush(){return this.socket.isConnected()&&this._isJoined()}_rejoin(t=this.timeout){this._isLeaving()||(this.socket._leaveOpenTopic(this.topic),this.state=Pt.joining,this.joinPush.resend(t))}_getPayloadRecords(t){const s={new:{},old:{}};return(t.type==="INSERT"||t.type==="UPDATE")&&(s.new=Gv(t.columns,t.record)),(t.type==="UPDATE"||t.type==="DELETE")&&(s.old=Gv(t.columns,t.old_record)),s}}const oC=()=>{},cC=typeof WebSocket<"u",uC=` 72 addEventListener("message", (e) => { 73 if (e.data.event === "start") { 74 setInterval(() => postMessage({ event: "keepAlive" }), e.data.interval); 75 } 76 });`;class dC{constructor(t,s){var r;this.accessTokenValue=null,this.apiKey=null,this.channels=[],this.endPoint="",this.httpEndpoint="",this.headers=WR,this.params={},this.timeout=yb,this.heartbeatIntervalMs=3e4,this.heartbeatTimer=void 0,this.pendingHeartbeatRef=null,this.ref=0,this.logger=oC,this.conn=null,this.sendBuffer=[],this.serializer=new tC,this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.accessToken=null,this._resolveFetch=c=>{let u;return c?u=c:typeof fetch>"u"?u=(...h)=>ra(async()=>{const{default:m}=await Promise.resolve().then(()=>ma);return{default:m}},void 0).then(({default:m})=>m(...h)):u=fetch,(...h)=>u(...h)},this.endPoint=`${t}/${Wd.websocket}`,this.httpEndpoint=wb(t),s!=null&&s.transport?this.transport=s.transport:this.transport=null,s!=null&&s.params&&(this.params=s.params),s!=null&&s.headers&&(this.headers=Object.assign(Object.assign({},this.headers),s.headers)),s!=null&&s.timeout&&(this.timeout=s.timeout),s!=null&&s.logger&&(this.logger=s.logger),s!=null&&s.heartbeatIntervalMs&&(this.heartbeatIntervalMs=s.heartbeatIntervalMs);const l=(r=s==null?void 0:s.params)===null||r===void 0?void 0:r.apikey;if(l&&(this.accessTokenValue=l,this.apiKey=l),this.reconnectAfterMs=s!=null&&s.reconnectAfterMs?s.reconnectAfterMs:c=>[1e3,2e3,5e3,1e4][c-1]||1e4,this.encode=s!=null&&s.encode?s.encode:(c,u)=>u(JSON.stringify(c)),this.decode=s!=null&&s.decode?s.decode:this.serializer.decode.bind(this.serializer),this.reconnectTimer=new bb(async()=>{this.disconnect(),this.connect()},this.reconnectAfterMs),this.fetch=this._resolveFetch(s==null?void 0:s.fetch),s!=null&&s.worker){if(typeof window<"u"&&!window.Worker)throw new Error("Web Worker is not supported");this.worker=(s==null?void 0:s.worker)||!1,this.workerUrl=s==null?void 0:s.workerUrl}this.accessToken=(s==null?void 0:s.accessToken)||null}connect(){if(!this.conn){if(this.transport){this.conn=new this.transport(this.endpointURL(),void 0,{headers:this.headers});return}if(cC){this.conn=new WebSocket(this.endpointURL()),this.setupConnection();return}this.conn=new fC(this.endpointURL(),void 0,{close:()=>{this.conn=null}}),ra(async()=>{const{default:t}=await import("./browser-DSyUJu5-.js").then(s=>s.b);return{default:t}},[]).then(({default:t})=>{this.conn=new t(this.endpointURL(),void 0,{headers:this.headers}),this.setupConnection()})}}endpointURL(){return this._appendParams(this.endPoint,Object.assign({},this.params,{vsn:JR}))}
76disconnect(t,s){this.conn&&(this.conn.onclose=function(){},t?this.conn.close(t,s??""):this.conn.close(),this.conn=null,this.heartbeatTimer&&clearInterval(this.heartbeatTimer),this.reconnectTimer.reset())}getChannels(){return this.channels}async removeChannel(t){const s=await t.unsubscribe();return this.channels.length===0&&this.disconnect(),s}async removeAllChannels(){const t=await Promise.all(this.channels.map(s=>s.unsubscribe()));return this.disconnect(),t}log(t,s,r){this.logger(t,s,r)}connectionState(){switch(this.conn&&this.conn.readyState){case ia.connecting:return Wi.Connecting;case ia.open:return Wi.Open;case ia.closing:return Wi.Closing;default:return Wi.Closed}}isConnected(){return this.connectionState()===Wi.Open}channel(t,s={config:{}}){const r=new th(`realtime:${t}`,s,this);return this.channels.push(r),r}push(t){const{topic:s,event:r,payload:l,ref:c}=t,u=()=>{this.encode(t,h=>{var m;(m=this.conn)===null||m===void 0||m.send(h)})};this.log("push",`${s} ${r} (${c})`,l),this.isConnected()?u():this.sendBuffer.push(u)}async setAuth(t=null){let s=t||this.accessToken&&await this.accessToken()||this.accessTokenValue;if(s){let r=null;try{r=JSON.parse(atob(s.split(".")[1]))}catch{}if(r&&r.exp&&!(Math.floor(Date.now()/1e3)-r.exp<0))return this.log("auth",`InvalidJWTToken: Invalid value for JWT claim "exp" with value ${r.exp}`),Promise.reject(`InvalidJWTToken: Invalid value for JWT claim "exp" with value ${r.exp}`);this.accessTokenValue=s,this.channels.forEach(l=>{s&&l.updateJoinPayload({access_token:s}),l.joinedOnce&&l._isJoined()&&l._push(an.access_token,{access_token:s})})}}async sendHeartbeat(){var t;if(this.isConnected()){if(this.pendingHeartbeatRef){this.pendingHeartbeatRef=null,this.log("transport","heartbeat timeout. Attempting to re-establish connection"),(t=this.conn)===null||t===void 0||t.close(eC,"hearbeat timeout");return}this.pendingHeartbeatRef=this._makeRef(),this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.pendingHeartbeatRef}),this.setAuth()}}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 s=this.channels.find(r=>r.topic===t&&(r._isJoined()||r._isJoining()));s&&(this.log("transport",`leaving duplicate topic "${t}"`),s.unsubscribe())}_remove(t){this.channels=this.channels.filter(s=>s._joinRef()!==t._joinRef())}setupConnection(){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))}_onConnMessage(t){this.decode(t.data,s=>{let{topic:r,event:l,payload:c,ref:u}=s;u&&u===this.pendingHeartbeatRef&&(this.pendingHeartbeatRef=null),this.log("receive",`${c.status||""} ${r} ${l} ${u&&"("+u+")"||""}`,c),this.channels.filter(h=>h._isMember(r)).forEach(h=>h._trigger(l,c,u)),this.stateChangeCallbacks.message.forEach(h=>h(s))})}async _onConnOpen(){if(this.log("transport",`connected to ${this.endpointURL()}`),this.flushSendBuffer(),this.reconnectTimer.reset(),!this.worker)this.heartbeatTimer&&clearInterval(this.heartbeatTimer),this.heartbeatTimer=setInterval(()=>this.sendHeartbeat(),this.heartbeatIntervalMs);else{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=s=>{this.log("worker","worker error",s.message),this.workerRef.terminate()},this.workerRef.onmessage=s=>{s.data.event==="keepAlive"&&this.sendHeartbeat()},this.workerRef.postMessage({event:"start",interval:this.heartbeatIntervalMs})}this.stateChangeCallbacks.open.forEach(t=>t())}_onConnClose(t){this.log("transport","close",t),this._triggerChanError(),this.heartbeatTimer&&clearInterval(this.heartbeatTimer),this.reconnectTimer.scheduleTimeout(),this.stateChangeCallbacks.close.forEach(s=>s(t))}_onConnError(t){this.log("transport",t.message),this._triggerChanError(),this.stateChangeCallbacks.error.forEach(s=>s(t))}
76_triggerChanError(){this.channels.forEach(t=>t._trigger(an.error))}_appendParams(t,s){if(Object.keys(s).length===0)return t;const r=t.match(/\?/)?"&":"?",l=new URLSearchParams(s);return`${t}${r}${l}`}_workerObjectUrl(t){let s;if(t)s=t;else{const r=new Blob([uC],{type:"application/javascript"});s=URL.createObjectURL(r)}return s}}class fC{constructor(t,s,r){this.binaryType="arraybuffer",this.onclose=()=>{},this.onerror=()=>{},this.onmessage=()=>{},this.onopen=()=>{},this.readyState=ia.connecting,this.send=()=>{},this.url=null,this.url=t,this.close=r.close}}class nh extends Error{constructor(t){super(t),this.__isStorageError=!0,this.name="StorageError"}}function lt(n){return typeof n=="object"&&n!==null&&"__isStorageError"in n}class hC extends nh{constructor(t,s){super(t),this.name="StorageApiError",this.status=s}toJSON(){return{name:this.name,message:this.message,status:this.status}}}class ef extends nh{constructor(t,s){super(t),this.name="StorageUnknownError",this.originalError=s}}var mC=function(n,t,s,r){function l(c){return c instanceof s?c:new s(function(u){u(c)})}return new(s||(s=Promise))(function(c,u){function h(v){try{g(r.next(v))}catch(b){u(b)}}function m(v){try{g(r.throw(v))}catch(b){u(b)}}function g(v){v.done?c(v.value):l(v.value).then(h,m)}g((r=r.apply(n,t||[])).next())})};const Sb=n=>{let t;return n?t=n:typeof fetch>"u"?t=(...s)=>ra(async()=>{const{default:r}=await Promise.resolve().then(()=>ma);return{default:r}},void 0).then(({default:r})=>r(...s)):t=fetch,(...s)=>t(...s)},pC=()=>mC(void 0,void 0,void 0,function*(){return typeof Response>"u"?(yield ra(()=>Promise.resolve().then(()=>ma),void 0)).Response:Response}),tf=n=>{if(Array.isArray(n))return n.map(s=>tf(s));if(typeof n=="function"||n!==Object(n))return n;const t={};return Object.entries(n).forEach(([s,r])=>{const l=s.replace(/([-_][a-z])/gi,c=>c.toUpperCase().replace(/[-_]/g,""));t[l]=tf(r)}),t};var is=function(n,t,s,r){function l(c){return c instanceof s?c:new s(function(u){u(c)})}return new(s||(s=Promise))(function(c,u){function h(v){try{g(r.next(v))}catch(b){u(b)}}function m(v){try{g(r.throw(v))}catch(b){u(b)}}function g(v){v.done?c(v.value):l(v.value).then(h,m)}g((r=r.apply(n,t||[])).next())})};const Ed=n=>n.msg||n.message||n.error_description||n.error||JSON.stringify(n),gC=(n,t,s)=>is(void 0,void 0,void 0,function*(){const r=yield pC();n instanceof r&&!(s!=null&&s.noResolveJson)?n.json().then(l=>{t(new hC(Ed(l),n.status||500))}).catch(l=>{t(new ef(Ed(l),l))}):t(new ef(Ed(n),n))}),vC=(n,t,s,r)=>{const l={method:n,headers:(t==null?void 0:t.headers)||{}};return n==="GET"?l:(l.headers=Object.assign({"Content-Type":"application/json"},t==null?void 0:t.headers),r&&(l.body=JSON.stringify(r)),Object.assign(Object.assign({},l),s))};function Kr(n,t,s,r,l,c){return is(this,void 0,void 0,function*(){return new Promise((u,h)=>{n(s,vC(t,r,l,c)).then(m=>{if(!m.ok)throw m;return r!=null&&r.noResolveJson?m:m.json()}).then(m=>u(m)).catch(m=>gC(m,h,r))})})}function Po(n,t,s,r){return is(this,void 0,void 0,function*(){return Kr(n,"GET",t,s,r)})}function xi(n,t,s,r,l){return is(this,void 0,void 0,function*(){return Kr(n,"POST",t,r,l,s)})}function yC(n,t,s,r,l){return is(this,void 0,void 0,function*(){return Kr(n,"PUT",t,r,l,s)})}function bC(n,t,s,r){return is(this,void 0,void 0,function*(){return Kr(n,"HEAD",t,Object.assign(Object.assign({},s),{noResolveJson:!0}),r)})}function _b(n,t,s,r,l){return is(this,void 0,void 0,function*(){return Kr(n,"DELETE",t,r,l,s)})}var At=function(n,t,s,r){function l(c){return c instanceof s?c:new s(function(u){u(c)})}return new(s||(s=Promise))(function(c,u){function h(v){try{g(r.next(v))}catch(b){u(b)}}function m(v){try{g(r.throw(v))}catch(b){u(b)}}function g(v){v.done?c(v.value):l(v.value).then(h,m)}g((r=r.apply(n,t||[])).next())})};const xC={limit:100,offset:0,sortBy:{column:"name",order:"asc"}},Iv={cacheControl:"3600",contentType:"text/plain;charset=UTF-8",upsert:!1};class wC{constructor(t,s={},r,l){this.url=t,this.headers=s,this.bucketId=r,this.fetch=Sb(l)}uploadOrUpdate(t,s,r,l){return At(this,void 0,void 0,function*(){try{let c;const u=Object.assign(Object.assign({},Iv),l);let h=Object.assign(Object.assign({},this.headers),t==="POST"&&{"x-upsert":String(u.upsert)});const m=u.metadata;typeof Blob<"u"&&r instanceof Blob?(c=new FormData,c.append("cacheControl",u.cacheControl),m&&c.append("metadata",this.encodeMetadata(m)),c.append("",r)):typeof FormData<"u"&&r instanceof FormData?(c=r,c.append("cacheControl",u.cacheControl),m&&c.append("metadata",this.encodeMetadata(m))):(c=r,h["cache-control"]=`max-age=${u.cacheControl}`,h["content-type"]=u.contentType,m&&(h["x-metadata"]=this.toBase64(this.encodeMetadata(m)))),l!=null&&l.headers&&(h=Object.assign(Object.assign({},h),l.headers));const g=this._removeEmptyFolders(s),v=this._getFinalPath(g),b=yield this.fetch(`${this.url}/object/${v}`,Object.assign({method:t,body:c,headers:h},u!=null&&u.duplex?{duplex:u.duplex}:{})),x=yield b.json();return b.ok?{data:{path:g,id:x.Id,fullPath:x.Key},error:null}:{data:null,error:x}}catch(c){if(lt(c))return{data:null,error:c};throw c}})}upload(t,s,r){return At(this,void 0,void 0,function*(){return this.uploadOrUpdate("POST",t,s,r)})}uploadToSignedUrl(t,s,r,l){return At(this,void 0,void 0,function*(){const c=this._removeEmptyFolders(t),u=this._getFinalPath(c),h=new URL(this.url+`/object/upload/sign/${u}`);h.searchParams.set("token",s);try{let m;const g=Object.assign({upsert:Iv.upsert},l),v=Object.assign(Object.assign({},this.headers),{"x-upsert":String(g.upsert)});typeof Blob<"u"&&r instanceof Blob?(m=new FormData,m.append("cacheControl",g.cacheControl),m.append("",r)):typeof FormData<"u"&&r instanceof FormData?(m=r,m.append("cacheControl",g.cacheControl)):(m=r,v["cache-control"]=`max-age=${g.cac
76heControl}`,v["content-type"]=g.contentType);const b=yield this.fetch(h.toString(),{method:"PUT",body:m,headers:v}),x=yield b.json();return b.ok?{data:{path:c,fullPath:x.Key},error:null}:{data:null,error:x}}catch(m){if(lt(m))return{data:null,error:m};throw m}})}createSignedUploadUrl(t,s){return At(this,void 0,void 0,function*(){try{let r=this._getFinalPath(t);const l=Object.assign({},this.headers);s!=null&&s.upsert&&(l["x-upsert"]="true");const c=yield xi(this.fetch,`${this.url}/object/upload/sign/${r}`,{},{headers:l}),u=new URL(this.url+c.url),h=u.searchParams.get("token");if(!h)throw new nh("No token returned by API");return{data:{signedUrl:u.toString(),path:t,token:h},error:null}}catch(r){if(lt(r))return{data:null,error:r};throw r}})}update(t,s,r){return At(this,void 0,void 0,function*(){return this.uploadOrUpdate("PUT",t,s,r)})}move(t,s,r){return At(this,void 0,void 0,function*(){try{return{data:yield xi(this.fetch,`${this.url}/object/move`,{bucketId:this.bucketId,sourceKey:t,destinationKey:s,destinationBucket:r==null?void 0:r.destinationBucket},{headers:this.headers}),error:null}}catch(l){if(lt(l))return{data:null,error:l};throw l}})}copy(t,s,r){return At(this,void 0,void 0,function*(){try{return{data:{path:(yield xi(this.fetch,`${this.url}/object/copy`,{bucketId:this.bucketId,sourceKey:t,destinationKey:s,destinationBucket:r==null?void 0:r.destinationBucket},{headers:this.headers})).Key},error:null}}catch(l){if(lt(l))return{data:null,error:l};throw l}})}createSignedUrl(t,s,r){return At(this,void 0,void 0,function*(){try{let l=this._getFinalPath(t),c=yield xi(this.fetch,`${this.url}/object/sign/${l}`,Object.assign({expiresIn:s},r!=null&&r.transform?{transform:r.transform}:{}),{headers:this.headers});const u=r!=null&&r.download?`&download=${r.download===!0?"":r.download}`:"";return c={signedUrl:encodeURI(`${this.url}${c.signedURL}${u}`)},{data:c,error:null}}catch(l){if(lt(l))return{data:null,error:l};throw l}})}createSignedUrls(t,s,r){return At(this,void 0,void 0,function*(){try{const l=yield xi(this.fetch,`${this.url}/object/sign/${this.bucketId}`,{expiresIn:s,paths:t},{headers:this.headers}),c=r!=null&&r.download?`&download=${r.download===!0?"":r.download}`:"";return{data:l.map(u=>Object.assign(Object.assign({},u),{signedUrl:u.signedURL?encodeURI(`${this.url}${u.signedURL}${c}`):null})),error:null}}catch(l){if(lt(l))return{data:null,error:l};throw l}})}download(t,s){return At(this,void 0,void 0,function*(){const l=typeof(s==null?void 0:s.transform)<"u"?"render/image/authenticated":"object",c=this.transformOptsToQueryString((s==null?void 0:s.transform)||{}),u=c?`?${c}`:"";try{const h=this._getFinalPath(t);return{data:yield(yield Po(this.fetch,`${this.url}/${l}/${h}${u}`,{headers:this.headers,noResolveJson:!0})).blob(),error:null}}catch(h){if(lt(h))return{data:null,error:h};throw h}})}info(t){return At(this,void 0,void 0,function*(){const s=this._getFinalPath(t);try{const r=yield Po(this.fetch,`${this.url}/object/info/${s}`,{headers:this.headers});return{data:tf(r),error:null}}catch(r){if(lt(r))return{data:null,error:r};throw r}})}exists(t){return At(this,void 0,void 0,function*(){const s=this._getFinalPath(t);try{return yield bC(this.fetch,`${this.url}/object/${s}`,{headers:this.headers}),{data:!0,error:null}}catch(r){if(lt(r)&&r instanceof ef){const l=r.originalError;if([400,404].includes(l==null?void 0:l.status))return{data:!1,error:r}}throw r}})}getPublicUrl(t,s){const r=this._getFinalPath(t),l=[],c=s!=null&&s.download?`download=${s.download===!0?"":s.download}`:"";c!==""&&l.push(c);const h=typeof(s==null?void 0:s.transform)<"u"?"render/image":"object",m=this.transformOptsToQueryString((s==null?void 0:s.transform)||{});m!==""&&l.push(m);let g=l.join("&");return g!==""&&(g=`?${g}`),{data:{publicUrl:encodeURI(`${this.url}/${h}/public/${r}${g}`)}}}remove(t){return At(this,void 0,void 0,function*(){try{return{data:yield _b(this.fetch,`${this.url}/object/${this.bucketId}`,{prefixes:t},{headers:this.headers}),error:null}}catch(s){if(lt(s))return{data:null,error:s};throw s}})}list(t,s,r){return At(this,void 0,void 0,function*(){try{const l=Object.assign(Object.assign(Object.assign({},xC),s),{prefix:t||""});return{data:yield xi(this.fetch,`${this.url}/object/list/${this.bucketId}`,l,{headers:this.headers},r),error:null}}catch(l){if(lt(l))return{data:null,error:l};throw l}})}encodeMetadata(t){return JSON.stringify(t)}toBase64(t){return typeof Buffer<"u"?Buffer.from(t).toString("base64"):btoa(t)}_getFinalPath(t){return`${this.bucketId}/${t}`}_removeEmptyFolders(t){return t.replace(/^\/|\/$/g,"").replace(/\/+/g,"/")}transformOptsToQueryString(t){const s=[];return t.width&&s.push(`width=${t.width}`),t.height&&s.push(`height=${t.height}`),t.resize&&s.push(`resize=${t.resize}`),t.format&&s.push(`format=${t.format}`),t.quality&&s.push(`quality=${t.quality}`),s.join("&")}}const SC="2.7.1",_C={"X-Client-Info":`storage-js/${SC}`};var Xs=function(n,t,s,r){function l(c){return c instanceof s?c:new s(function(u){u(c)})}
76return new(s||(s=Promise))(function(c,u){function h(v){try{g(r.next(v))}catch(b){u(b)}}function m(v){try{g(r.throw(v))}catch(b){u(b)}}function g(v){v.done?c(v.value):l(v.value).then(h,m)}g((r=r.apply(n,t||[])).next())})};class TC{constructor(t,s={},r){this.url=t,this.headers=Object.assign(Object.assign({},_C),s),this.fetch=Sb(r)}listBuckets(){return Xs(this,void 0,void 0,function*(){try{return{data:yield Po(this.fetch,`${this.url}/bucket`,{headers:this.headers}),error:null}}catch(t){if(lt(t))return{data:null,error:t};throw t}})}getBucket(t){return Xs(this,void 0,void 0,function*(){try{return{data:yield Po(this.fetch,`${this.url}/bucket/${t}`,{headers:this.headers}),error:null}}catch(s){if(lt(s))return{data:null,error:s};throw s}})}createBucket(t,s={public:!1}){return Xs(this,void 0,void 0,function*(){try{return{data:yield xi(this.fetch,`${this.url}/bucket`,{id:t,name:t,public:s.public,file_size_limit:s.fileSizeLimit,allowed_mime_types:s.allowedMimeTypes},{headers:this.headers}),error:null}}catch(r){if(lt(r))return{data:null,error:r};throw r}})}updateBucket(t,s){return Xs(this,void 0,void 0,function*(){try{return{data:yield yC(this.fetch,`${this.url}/bucket/${t}`,{id:t,name:t,public:s.public,file_size_limit:s.fileSizeLimit,allowed_mime_types:s.allowedMimeTypes},{headers:this.headers}),error:null}}catch(r){if(lt(r))return{data:null,error:r};throw r}})}emptyBucket(t){return Xs(this,void 0,void 0,function*(){try{return{data:yield xi(this.fetch,`${this.url}/bucket/${t}/empty`,{},{headers:this.headers}),error:null}}catch(s){if(lt(s))return{data:null,error:s};throw s}})}deleteBucket(t){return Xs(this,void 0,void 0,function*(){try{return{data:yield _b(this.fetch,`${this.url}/bucket/${t}`,{},{headers:this.headers}),error:null}}catch(s){if(lt(s))return{data:null,error:s};throw s}})}}class EC extends TC{constructor(t,s={},r){super(t,s,r)}from(t){return new wC(this.url,this.headers,t,this.fetch)}}const jC="2.49.4";let Sr="";typeof Deno<"u"?Sr="deno":typeof document<"u"?Sr="web":typeof navigator<"u"&&navigator.product==="ReactNative"?Sr="react-native":Sr="node";const AC={"X-Client-Info":`supabase-js-${Sr}/${jC}`},RC={headers:AC},CC={schema:"public"},NC={autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,flowType:"implicit"},OC={};var DC=function(n,t,s,r){function l(c){return c instanceof s?c:new s(function(u){u(c)})}return new(s||(s=Promise))(function(c,u){function h(v){try{g(r.next(v))}catch(b){u(b)}}function m(v){try{g(r.throw(v))}catch(b){u(b)}}function g(v){v.done?c(v.value):l(v.value).then(h,m)}g((r=r.apply(n,t||[])).next())})};const MC=n=>{let t;return n?t=n:typeof fetch>"u"?t=fb:t=fetch,(...s)=>t(...s)},kC=()=>typeof Headers>"u"?hb:Headers,LC=(n,t,s)=>{const r=MC(s),l=kC();return(c,u)=>DC(void 0,void 0,void 0,function*(){var h;const m=(h=yield t())!==null&&h!==void 0?h:n;let g=new l(u==null?void 0:u.headers);return g.has("apikey")||g.set("apikey",n),g.has("Authorization")||g.set("Authorization",`Bearer ${m}`),r(c,Object.assign(Object.assign({},u),{headers:g}))})};var PC=function(n,t,s,r){function l(c){return c instanceof s?c:new s(function(u){u(c)})}return new(s||(s=Promise))(function(c,u){function h(v){try{g(r.next(v))}catch(b){u(b)}}function m(v){try{g(r.throw(v))}catch(b){u(b)}}function g(v){v.done?c(v.value):l(v.value).then(h,m)}g((r=r.apply(n,t||[])).next())})};function UC(n){return n.replace(/\/$/,"")}function VC(n,t){const{db:s,auth:r,realtime:l,global:c}=n,{db:u,auth:h,realtime:m,global:g}=t,v={db:Object.assign(Object.assign({},u),s),auth:Object.assign(Object.assign({},h),r),realtime:Object.assign(Object.assign({},m),l),global:Object.assign(Object.assign({},g),c),accessToken:()=>PC(this,void 0,void 0,function*(){return""})};return n.accessToken?v.accessToken=n.accessToken:delete v.accessToken,v}const Tb="2.69.1",Ks=30*1e3,nf=3,jd=nf*Ks,zC="http://localhost:9999",BC="supabase.auth.token",HC={"X-Client-Info":`gotrue-js/${Tb}`},sf="X-Supabase-Api-Version",Eb={"2024-01-01":{timestamp:Date.parse("2024-01-01T00:00:00.0Z"),name:"2024-01-01"}},qC=/^([a-z0-9_-]{4})*($|[a-z0-9_-]{3}$|[a-z0-9_-]{2}$)$/i,$C=6e5;
76class ih extends Error{constructor(t,s,r){super(t),this.__isAuthError=!0,this.name="AuthError",this.status=s,this.code=r}}function pe(n){return typeof n=="object"&&n!==null&&"__isAuthError"in n}class GC extends ih{constructor(t,s,r){super(t,s,r),this.name="AuthApiError",this.status=s,this.code=r}}function YC(n){return pe(n)&&n.name==="AuthApiError"}class jb extends ih{constructor(t,s){super(t),this.name="AuthUnknownError",this.originalError=s}}class Ei extends ih{constructor(t,s,r,l){super(t,r,l),this.name=s,this.status=r}}class yi extends Ei{constructor(){super("Auth session missing!","AuthSessionMissingError",400,void 0)}}function XC(n){return pe(n)&&n.name==="AuthSessionMissingError"}class Ad extends Ei{constructor(){super("Auth session or user missing","AuthInvalidTokenResponseError",500,void 0)}}class vo extends Ei{constructor(t){super(t,"AuthInvalidCredentialsError",400,void 0)}}class yo extends Ei{constructor(t,s=null){super(t,"AuthImplicitGrantRedirectError",500,void 0),this.details=null,this.details=s}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}function FC(n){return pe(n)&&n.name==="AuthImplicitGrantRedirectError"}class Kv extends Ei{constructor(t,s=null){super(t,"AuthPKCEGrantCodeExchangeError",500,void 0),this.details=null,this.details=s}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}class af extends Ei{constructor(t,s){super(t,"AuthRetryableFetchError",s,void 0)}}function Rd(n){return pe(n)&&n.name==="AuthRetryableFetchError"}class Zv extends Ei{constructor(t,s,r){super(t,"AuthWeakPasswordError",s,"weak_password"),this.reasons=r}}class Nr extends Ei{constructor(t){super(t,"AuthInvalidJwtError",400,"invalid_jwt")}}const Qv="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split(""),Wv=` 77\r=`.split(""),IC=(()=>{const n=new Array(128);for(let t=0;t<n.length;t+=1)n[t]=-1;for(let t=0;t<Wv.length;t+=1)n[Wv[t].charCodeAt(0)]=-2;for(let t=0;t<Qv.length;t+=1)n[Qv[t].charCodeAt(0)]=t;return n})();function Ab(n,t,s){const r=IC[n];if(r>-1)for(t.queue=t.queue<<6|r,t.queuedBits+=6;t.queuedBits>=8;)s(t.queue>>t.queuedBits-8&255),t.queuedBits-=8;else{if(r===-2)return;throw new Error(`Invalid Base64-URL character "${String.fromCharCode(n)}"`)}}function Jv(n){const t=[],s=u=>{t.push(String.fromCodePoint(u))},r={utf8seq:0,codepoint:0},l={queue:0,queuedBits:0},c=u=>{QC(u,r,s)};for(let u=0;u<n.length;u+=1)Ab(n.charCodeAt(u),l,c);return t.join("")}function KC(n,t){if(n<=127){t(n);return}else if(n<=2047){t(192|n>>6),t(128|n&63);return}else if(n<=65535){t(224|n>>12),t(128|n>>6&63),t(128|n&63);return}else if(n<=1114111){t(240|n>>18),t(128|n>>12&63),t(128|n>>6&63),t(128|n&63);return}throw new Error(`Unrecognized Unicode codepoint: ${n.toString(16)}`)}function ZC(n,t){for(let s=0;s<n.length;s+=1){let r=n.charCodeAt(s);if(r>55295&&r<=56319){const l=(r-55296)*1024&65535;r=(n.charCodeAt(s+1)-56320&65535|l)+65536,s+=1}KC(r,t)}}function QC(n,t,s){if(t.utf8seq===0){if(n<=127){s(n);return}for(let r=1;r<6;r+=1)if((n>>7-r&1)===0){t.utf8seq=r;break}if(t.utf8seq===2)t.codepoint=n&31;else if(t.utf8seq===3)t.codepoint=n&15;else if(t.utf8seq===4)t.codepoint=n&7;else throw new Error("Invalid UTF-8 sequence");t.utf8seq-=1}else if(t.utf8seq>0){if(n<=127)throw new Error("Invalid UTF-8 sequence");t.codepoint=t.codepoint<<6|n&63,t.utf8seq-=1,t.utf8seq===0&&s(t.codepoint)}}function WC(n){const t=[],s={queue:0,queuedBits:0},r=l=>{t.push(l)};for(let l=0;l<n.length;l+=1)Ab(n.charCodeAt(l),s,r);return new Uint8Array(t)}function JC(n){const t=[];return ZC(n,s=>t.push(s)),new Uint8Array(t)}function eN(n){return Math.round(Date.now()/1e3)+n}function tN(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(n){const t=Math.random()*16|0;return(n=="x"?t:t&3|8).toString(16)})}const mn=()=>typeof window<"u"&&typeof document<"u",Ki={tested:!1,writable:!1},Or=()=>{if(!mn())return!1;try{if(typeof globalThis.localStorage!="object")return!1}catch{return!1}if(Ki.tested)return Ki.writable;const n=`lswt-${Math.random()}${Math.random()}`;try{globalThis.localStorage.setItem(n,n),globalThis.localStorage.removeItem(n),Ki.tested=!0,Ki.writable=!0}catch{Ki.tested=!0,Ki.writable=!1}return Ki.writable};function nN(n){const t={},s=new URL(n);if(s.hash&&s.hash[0]==="#")try{new URLSearchParams(s.hash.substring(1)).forEac
77h((l,c)=>{t[c]=l})}catch{}return s.searchParams.forEach((r,l)=>{t[l]=r}),t}const Rb=n=>{let t;return n?t=n:typeof fetch>"u"?t=(...s)=>ra(async()=>{const{default:r}=await Promise.resolve().then(()=>ma);return{default:r}},void 0).then(({default:r})=>r(...s)):t=fetch,(...s)=>t(...s)},iN=n=>typeof n=="object"&&n!==null&&"status"in n&&"ok"in n&&"json"in n&&typeof n.json=="function",Cb=async(n,t,s)=>{await n.setItem(t,JSON.stringify(s))},bo=async(n,t)=>{const s=await n.getItem(t);if(!s)return null;try{return JSON.parse(s)}catch{return s}},xo=async(n,t)=>{await n.removeItem(t)};class Xo{constructor(){this.promise=new Xo.promiseConstructor((t,s)=>{this.resolve=t,this.reject=s})}}Xo.promiseConstructor=Promise;function Cd(n){const t=n.split(".");if(t.length!==3)throw new Nr("Invalid JWT structure");for(let r=0;r<t.length;r++)if(!qC.test(t[r]))throw new Nr("JWT not in base64url format");return{header:JSON.parse(Jv(t[0])),payload:JSON.parse(Jv(t[1])),signature:WC(t[2]),raw:{header:t[0],payload:t[1]}}}async function sN(n){return await new Promise(t=>{setTimeout(()=>t(null),n)})}function aN(n,t){return new Promise((r,l)=>{(async()=>{for(let c=0;c<1/0;c++)try{const u=await n(c);if(!t(c,null,u)){r(u);return}}catch(u){if(!t(c,u)){l(u);return}}})()})}function rN(n){return("0"+n.toString(16)).substr(-2)}function lN(){const t=new Uint32Array(56);if(typeof crypto>"u"){const s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",r=s.length;let l="";for(let c=0;c<56;c++)l+=s.charAt(Math.floor(Math.random()*r));return l}return crypto.getRandomValues(t),Array.from(t,rN).join("")}async function oN(n){const s=new TextEncoder().encode(n),r=await crypto.subtle.digest("SHA-256",s),l=new Uint8Array(r);return Array.from(l).map(c=>String.fromCharCode(c)).join("")}async function cN(n){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."),n;const s=await oN(n);return btoa(s).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}async function Fs(n,t,s=!1){const r=lN();let l=r;s&&(l+="/PASSWORD_RECOVERY"),await Cb(n,`${t}-code-verifier`,l);const c=await cN(r);return[c,r===c?"plain":"s256"]}const uN=/^2[0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|1[0-9]|2[0-9]|3[0-1])$/i;function dN(n){const t=n.headers.get(sf);if(!t||!t.match(uN))return null;try{return new Date(`${t}T00:00:00.0Z`)}catch{return null}}function fN(n){if(!n)throw new Error("Missing exp claim");const t=Math.floor(Date.now()/1e3);if(n<=t)throw new Error("JWT has expired")}function hN(n){switch(n){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")}}var mN=function(n,t){var s={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&t.indexOf(r)<0&&(s[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,r=Object.getOwnPropertySymbols(n);l<r.length;l++)t.indexOf(r[l])<0&&Object.prototype.propertyIsEnumerable.call(n,r[l])&&(s[r[l]]=n[r[l]]);return s};const Qi=n=>n.msg||n.message||n.error_description||n.error||JSON.stringify(n),pN=[502,503,504];async function ey(n){var t;if(!iN(n))throw new af(Qi(n),0);if(pN.includes(n.status))throw new af(Qi(n),n.status);let s;try{s=await n.json()}catch(c){throw new jb(Qi(c),c)}let r;const l=dN(n);if(l&&l.getTime()>=Eb["2024-01-01"].timestamp&&typeof s=="object"&&s&&typeof s.code=="string"?r=s.code:typeof s=="object"&&s&&typeof s.error_code=="string"&&(r=s.error_code),r){if(r==="weak_password")throw new Zv(Qi(s),n.status,((t=s.weak_password)===null||t===void 0?void 0:t.reasons)||[]);if(r==="session_not_found")throw new yi}else if(typeof s=="object"&&s&&typeof s.weak_password=="object"&&s.weak_password&&Array.isArray(s.weak_password.reasons)&&s.weak_password.reasons.length&&s.weak_password.reasons.reduce((c,u)=>c&&typeof u=="string",!0))throw new Zv(Qi(s),n.status,s.weak_password.reasons);throw new GC(Qi(s),n.status||500,r)}const gN=(n,t,s,r)=>{const l={method:n,headers:(t==null?void 0:t.headers)||{}};return n==="GET"?l:(l.headers=Object.assign({"Content-Type":"application/json;charset=UTF-8"},t==null?void 0:t.headers),l.body=JSON.stringify(r),Object.assign(Object.assign({},l),s))};async function xe(n,t,s,r){var l;const c=Object.assign({},r==null?void 0:r.headers);c[sf]||(c[sf]=Eb["2024-01-01"].name),r!=null&&r.jwt&&(c.Authorization=`Bearer ${r.jwt}`);const u=(l=r==null?void 0:r.query)!==null&&l!==void 0?l:{};r!=null&&r.redirectTo&&(u.redirect_to=r.redirectTo);const h=Object.keys(u).length?"?"+new URLSearchParams(u).toString():"",m=await vN(n,t,s+h,{headers:c,noResolveJson:r==null?void 0:r.noResolveJson},{},r==null?void 0:r.body);return r!=null&&r.xform?r==null?void 0:r.xform(m):{data:Object.assign({},m),error:null}}async function vN(n,t,s,r,l,c){const u=gN(t,r,l,c);let h;try{h=await n(s,Object.assign({},u))}catch(m){throw console.error(m),new af(Qi(m),0)}if(h.ok||await ey(h),r!=null&&r.noResolveJson)return h;try{return await h.json()}catch(m){await ey(m)}}function bi(n){var t;let s=null;wN(n)&&(s=Object.assign({},n),n.expires_at||(s.expires_at=eN(n.expires_in)));const r=(t=n.user)!==null&&t!==void 0?t:n;return{data:{session:s,user:r},error:null}}function ty(n){const t=bi(n);return!t.error&&n.weak_password&&typeof n.weak_password=="object"&&Array.isArray(n.weak_password.reasons)&&n.weak_password.reasons.length&&n.weak_password.message&&typeof n.weak_password.message=="string"&&n.weak_password.reasons.reduce((s,r)=>s&&typeof r=="string",!0)&&(t.data.weak_password=n.weak_password),t}function wi(n){var t;return{data:{user:(t=n.user)!==null&&t!==void 0?t:n},error:null}}function yN(n){return{data:n,error:null}}function bN(n){const{action_link:t,email_otp:s,hashed_token:r,redirect_to:l,verification_type:c}=n,u=mN(n,["action_link","email_otp","hashed_token","redirect_to","verification_type"]),h={action_link:t,email_otp:s,hashed_token:r,redirect_to:l,verification_type:c},m=Object.assign({},u);return{data:{properties:h,user:m},error:null}}function xN(n){return n}function wN(n){return n.access_token&&n.refresh_token&&n.expires_in}var SN=function(n,t){var s={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&t.indexOf(r)<0&&(s[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,r=Object.getOwnPropertySymbols(n);l<r.length;l++)t.indexOf(r[l])<0&&Object.prototype.propertyIsEnumerable.call(n,r[l])&&(s[r[l]]=n[r[l]
77]);return s};class _N{constructor({url:t="",headers:s={},fetch:r}){this.url=t,this.headers=s,this.fetch=Rb(r),this.mfa={listFactors:this._listFactors.bind(this),deleteFactor:this._deleteFactor.bind(this)}}async signOut(t,s="global"){try{return await xe(this.fetch,"POST",`${this.url}/logout?scope=${s}`,{headers:this.headers,jwt:t,noResolveJson:!0}),{data:null,error:null}}catch(r){if(pe(r))return{data:null,error:r};throw r}}async inviteUserByEmail(t,s={}){try{return await xe(this.fetch,"POST",`${this.url}/invite`,{body:{email:t,data:s.data},headers:this.headers,redirectTo:s.redirectTo,xform:wi})}catch(r){if(pe(r))return{data:{user:null},error:r};throw r}}async generateLink(t){try{const{options:s}=t,r=SN(t,["options"]),l=Object.assign(Object.assign({},r),s);return"newEmail"in r&&(l.new_email=r==null?void 0:r.newEmail,delete l.newEmail),await xe(this.fetch,"POST",`${this.url}/admin/generate_link`,{body:l,headers:this.headers,xform:bN,redirectTo:s==null?void 0:s.redirectTo})}catch(s){if(pe(s))return{data:{properties:null,user:null},error:s};throw s}}async createUser(t){try{return await xe(this.fetch,"POST",`${this.url}/admin/users`,{body:t,headers:this.headers,xform:wi})}catch(s){if(pe(s))return{data:{user:null},error:s};throw s}}async listUsers(t){var s,r,l,c,u,h,m;try{const g={nextPage:null,lastPage:0,total:0},v=await xe(this.fetch,"GET",`${this.url}/admin/users`,{headers:this.headers,noResolveJson:!0,query:{page:(r=(s=t==null?void 0:t.page)===null||s===void 0?void 0:s.toString())!==null&&r!==void 0?r:"",per_page:(c=(l=t==null?void 0:t.perPage)===null||l===void 0?void 0:l.toString())!==null&&c!==void 0?c:""},xform:xN});if(v.error)throw v.error;const b=await v.json(),x=(u=v.headers.get("x-total-count"))!==null&&u!==void 0?u:0,S=(m=(h=v.headers.get("link"))===null||h===void 0?void 0:h.split(","))!==null&&m!==void 0?m:[];return S.length>0&&(S.forEach(T=>{const C=parseInt(T.split(";")[0].split("=")[1].substring(0,1)),j=JSON.parse(T.split(";")[1].split("=")[1]);g[`${j}Page`]=C}),g.total=parseInt(x)),{data:Object.assign(Object.assign({},b),g),error:null}}catch(g){if(pe(g))return{data:{users:[]},error:g};throw g}}async getUserById(t){try{return await xe(this.fetch,"GET",`${this.url}/admin/users/${t}`,{headers:this.headers,xform:wi})}catch(s){if(pe(s))return{data:{user:null},error:s};throw s}}async updateUserById(t,s){try{return await xe(this.fetch,"PUT",`${this.url}/admin/users/${t}`,{body:s,headers:this.headers,xform:wi})}catch(r){if(pe(r))return{data:{user:null},error:r};throw r}}async deleteUser(t,s=!1){try{return await xe(this.fetch,"DELETE",`${this.url}/admin/users/${t}`,{headers:this.headers,body:{should_soft_delete:s},xform:wi})}catch(r){if(pe(r))return{data:{user:null},error:r};throw r}}async _listFactors(t){try{const{data:s,error:r}=await xe(this.fetch,"GET",`${this.url}/admin/users/${t.userId}/factors`,{headers:this.headers,xform:l=>({data:{factors:l},error:null})});return{data:s,error:r}}catch(s){if(pe(s))return{data:null,error:s};throw s}}async _deleteFactor(t){try{return{data:await xe(this.fetch,"DELETE",`${this.url}/admin/users/${t.userId}/factors/${t.id}`,{headers:this.headers}),error:null}}catch(s){if(pe(s))return{data:null,error:s};throw s}}}const TN={getItem:n=>Or()?globalThis.localStorage.getItem(n):null,setItem:(n,t)=>{Or()&&globalThis.localStorage.setItem(n,t)},removeItem:n=>{Or()&&globalThis.localStorage.removeItem(n)}};function ny(n={}){return{getItem:t=>n[t]||null,setItem:(t,s)=>{n[t]=s},removeItem:t=>{delete n[t]}}}function EN(){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)}}const Is={debug:!!(globalThis&&Or()&&globalThis.localStorage&&globalThis.localStorage.getItem("supabase.gotrue-js.locks.debug")==="true")};class Nb extends Error{constructor(t){super(t),this.isAcquireTimeout=!0}}class jN extends Nb{}async function AN(n,t,s){Is.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquire lock",n,t);const r=new globalThis.AbortController;return t>0&&setTimeout(()=>{r.abort(),Is.debug&&console.log("@supabase/gotrue-js: navigatorLock acquire timed out",n
vendor: 15,449 bytes, line 77
77)},t),await Promise.resolve().then(()=>globalThis.navigator.locks.request(n,t===0?{mode:"exclusive",ifAvailable:!0}:{mode:"exclusive",signal:r.signal},async l=>{if(l){Is.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquired",n,l.name);try{return await s()}finally{Is.debug&&console.log("@supabase/gotrue-js: navigatorLock: released",n,l.name)}}else{if(t===0)throw Is.debug&&console.log("@supabase/gotrue-js: navigatorLock: not immediately available",n),new jN(`Acquiring an exclusive Navigator LockManager lock "${n}" immediately failed`);if(Is.debug)try{const c=await globalThis.navigator.locks.query();console.log("@supabase/gotrue-js: Navigator LockManager state",JSON.stringify(c,null," "))}catch(c){console.warn("@supabase/gotrue-js: Error when querying Navigator LockManager state",c)}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 s()}}))}EN();const RN={url:zC,storageKey:BC,autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,headers:HC,flowType:"implicit",debug:!1,hasCustomAuthorizationHeader:!1};async function iy(n,t,s){return await s()}class Hr{constructor(t){var s,r;this.memoryStorage=null,this.stateChangeEmitters=new Map,this.autoRefreshTicker=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,this.instanceID=Hr.nextInstanceID,Hr.nextInstanceID+=1,this.instanceID>0&&mn()&&console.warn("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.");const l=Object.assign(Object.assign({},RN),t);if(this.logDebugMessages=!!l.debug,typeof l.debug=="function"&&(this.logger=l.debug),this.persistSession=l.persistSession,this.storageKey=l.storageKey,this.autoRefreshToken=l.autoRefreshToken,this.admin=new _N({url:l.url,headers:l.headers,fetch:l.fetch}),this.url=l.url,this.headers=l.headers,this.fetch=Rb(l.fetch),this.lock=l.lock||iy,this.detectSessionInUrl=l.detectSessionInUrl,this.flowType=l.flowType,this.hasCustomAuthorizationHeader=l.hasCustomAuthorizationHeader,l.lock?this.lock=l.lock:mn()&&(!((s=globalThis==null?void 0:globalThis.navigator)===null||s===void 0)&&s.locks)?this.lock=AN:this.lock=iy,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)},this.persistSession?l.storage?this.storage=l.storage:Or()?this.storage=TN:(this.memoryStorage={},this.storage=ny(this.memoryStorage)):(this.memoryStorage={},this.storage=ny(this.memoryStorage)),mn()&&globalThis.BroadcastChannel&&this.persistSession&&this.storageKey){try{this.broadcastChannel=new globalThis.BroadcastChannel(this.storageKey)}catch(c){console.error("Failed to create a new BroadcastChannel, multi-tab state changes will not be available",c)}(r=this.broadcastChannel)===null||r===void 0||r.addEventListener("message",async c=>{this._debug("received broadcast notification from other tab or client",c),await this._notifyAllSubscribers(c.data.event,c.data.session,!1)})}this.initialize()}_debug(...t){return this.logDebugMessages&&this.logger(`GoTrueClient@${this.instanceID} (${Tb}) ${new Date().toISOString()}`,...t),this}async initialize(){return this.initializePromise?await this.initializePromise:(this.initializePromise=(async()=>await this._acquireLock(-1,async()=>await this._initialize()))(),await this.initializePromise)}async _initialize(){var t;try{const s=nN(window.location.href);let r="none";if(this._isImplicitGrantCallback(s)?r="implicit":await this._isPKCECallback(s)&&(r="pkce"),mn()&&this.detectSessionInUrl&&r!=="none"){const{data:l,error:c}=await this._getSessionFromURL(s,r);if(c){if(this._debug("#_initialize()","error detecting session from URL",c),FC(c)){const m=(t=c.details)===null||t===void 0?void 0:t.code;if(m==="identity_already_exists"||m==="identity_not_found"||m==="single_identity_not_deletable")return{error:c}}return await this._removeSession(),{error:c}}const{session:u,redirectType:h}=l;return this._debug("#_initialize()","detected session in URL",u,"redirect type",h),await this._saveSession(u),setTimeout(async()=>{h==="recovery"?await this._notifyAllSubscribers("PASSWORD_RECOVERY",u):await this._notifyAllSubscribers("SIGNED_IN",u)},0),{error:null}}return await this._recoverAndRefresh(),{error:null}}catch(s){return pe(s)?{error:s}:{error:new jb("Unexpected error during initialization",s)}}finally{await this._handleVisibilityChange(),this._debug("#_initialize()","end")}}async signInAnonymously(t){var s,r,l;try{const c=await xe(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{data:(r=(s=t==null?void 0:t.options)===null||s===void 0?void 0:s.data)!==null&&r!==void 0?r:{},gotrue_meta_security:{captcha_token:(l=t==null?void 0:t.options)===null||l===void 0?void 0:l.captchaToken}},xform:bi}),{data:u,error:h}=c;if(h||!u)return{data:{user:null,session:null},error:h};const m=u.session,g=u.user;return u.session&&(await this._saveSession(u.session),await this._notifyAllSubscribers("SIGNED_IN",m)),{data:{user:g,session:m},error:null}}catch(c){if(pe(c))return{data:{user:null,session:null},error:c};throw c}}async signUp(t){var s,r,l;try{let c;if("email"in t){const{email:v,password:b,options:x}=t;let S=null,T=null;this.flowType==="pkce"&&([S,T]=await Fs(this.storage,this.storageKey)),c=await xe(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,redirectTo:x==null?void 0:x.emailRedirectTo,body:{email:v,password:b,data:(s=x==null?void 0:x.data)!==null&&s!==void 0?s:{},gotrue_meta_security:{captcha_token:x==null?void 0:x.captchaToken},code_challenge:S,code_challenge_method:T},xform:bi})}else if("phone"in t){const{phone:v,password:b,options:x}=t;c=await xe(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{phone:v,password:b,data:(r=x==null?void 0:x.data)!==null&&r!==void 0?r:{},channel:(l=x==null?void 0:x.channel)!==null&&l!==void 0?l:"sms",gotrue_meta_security:{captcha_token:x==null?void 0:x.captchaToken}},xform:bi})}else throw new vo("You must provide either an email or phone number and a password");const{data:u,error:h}=c;if(h||!u)return{data:{user:null,session:null},error:h};const m=u.session,g=u.user;return u.session&&(await this._saveSession(u.session),await this._notifyAllSubscribers("SIGNED_IN",m)),{data:{user:g,session:m},error:null}}catch(c){if(pe(c))return{data:{user:null,session:null},error:c};throw c}}async signInWithPassword(t){try{let s;if("email"in t){const{email:c,password:u,options:h}=t;s=await xe(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{email:c,password:u,gotrue_meta_security:{captcha_token:h==null?void 0:h.captchaToken}},xform:ty})}else if("phone"in t){const{phone:c,password:u,options:h}=t;s=await xe(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{phone:c,password:u,gotrue_meta_security:{captcha_token:h==null?void 0:h.captchaToken}},xform:ty})}else throw new vo("You must provide either an email or phone number and a password");const{data:r,error:l}=s;return l?{data:{user:null,session:null},error:l}:!r||!r.session||!r.user?{data:{user:null,session:null},error:new Ad}:(r.session&&(await this._saveSession(r.session),await this._notifyAllSubscribers("SIGNED_IN",r.session)),{data:Object.assign({user:r.user,session:r.session},r.weak_password?{weakPassword:r.weak_password}:null),error:l})}catch(s){if(pe(s))return{data:{user:null,session:null},error:s};throw s}}async signInWithOAuth(t){var s,r,l,c;return await this._handleProviderSignIn(t.provider,{redirectTo:(s=t.options)===null||s===void 0?void 0:s.redirectTo,scopes:(r=t.options)===null||r===void 0?void 0:r.scopes,queryParams:(l=t.options)===null||l===void 0?void 0:l.queryParams,skipBrowserRedirect:(c=t.options)===null||c===void 0?void 0:c.skipBrowserRedirect})}async exchangeCodeForSession(t){return await this.initializePromise,this._acquireLock(-1,async()=>this._exchangeCodeForSession(t))}async _exchangeCodeForSession(t){const s=await bo(this.storage,`${this.storageKey}-code-verifier`),[r,l]=(s??"").split("/");try{const{data:c,error:u}=await xe(this.fetch,"POST",`${this.url}/token?grant_type=pkce`,{headers:this.headers,body:{auth_code:t,code_verifier:r},xform:bi});if(await xo(this.storage,`${this.storageKey}-code-verifier`),u)throw u;return!c||!c.session||!c.user?{data:{user:null,session:null,redirectType:null},error:new Ad}:(c.session&&(await this._saveSession(c.session),await this._notifyAllSubscribers("SIGNED_IN",c.session)),{data:Object.assign(Object.assign({},c),{redirectType:l??null}),error:u})}catch(c){if(pe(c))return{data:{user:null,session:null,redirectType:null},error:c};throw c}}async signInWithIdToken(t){try{const{options:s,provider:r,token:l,access_token:c,nonce:u}=t,h=await xe(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,body:{provider:r,id_token:l,access_token:c,nonce:u,gotrue_meta_security:{captcha_token:s==null?void 0:s.captchaToken}},xform:bi}),{data:m,error:g}=h;return g?{data:{user:null,session:null},error:g}:!m||!m.session||!m.user?{data:{user:null,session:null},error:new Ad}:(m.session&&(await this._saveSession(m.session),await this._notifyAllSubscribers("SIGNED_IN",m.session)),{data:m,error:g})}catch(s){if(pe(s))return{data:{user:null,session:null},error:s};throw s}}async signInWithOtp(t){var s,r,l,c,u;try{if("email"in t){const{email:h,options:m}=t;let g=null,v=null;this.flowType==="pkce"&&([g,v]=await Fs(this.storage,this.storageKey));const{error:b}=await xe(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{email:h,data:(s=m==null?void 0:m.data)!==null&&s!==void 0?s:{},create_user:(r=m==null?void 0:m.shouldCreateUser)!==null&&r!==void 0?r:!0,gotrue_meta_security:{captcha_token:m==null?void 0:m.captchaToken},code_challenge:g,code_challenge_method:v},redirectTo:m==null?void 0:m.emailRedirectTo});return{data:{user:null,session:null},error:b}}if("phone"in t){const{phone:h,options:m}=t,{data:g,error:v}=await xe(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{phone:h,data:(l=m==null?void 0:m.data)!==null&&l!==void 0?l:{},create_user:(c=m==null?void 0:m.shouldCreateUser)!==null&&c!==void 0?c:!0,gotrue_meta_security:{captcha_token:m==null?void 0:m.captchaToken},channel:(u=m==null?void 0:m.channel)!==null&&u!==void 0?u:"sms"}});return{data:{user:null,session:null,messageId:g==null?void 0:g.message_id},error:v}}throw new vo("You must provide either an email or phone number.")}catch(h){if(pe(h))return{data:{user:null,session:null},error:h};throw h}}async verifyOtp(t){var s,r;try{let l,c;"options"in t&&(l=(s=t.options)===null||s===void 0?void 0:s.redirectTo,c=(r=t.options)===null||r===void 0?void 0:r.captchaToken);const{data:u,error:h}=await xe(this.fetch,"POST",`${this.url}/verify`,{headers:this.headers,body:Object.assign(Object.assign({},t),{gotrue_meta_security:{captcha_token:c}}),redirectTo:l,xform:bi});if(h)throw h;if(!u)throw new Error("An error occurred on token verification.");const m=u.session,g=u.user;return m!=null&&m.access_token&&(await this._saveSession(m),await this._notifyAllSubscribers(t.type=="recovery"?"PASSWORD_RECOVERY":"SIGNED_IN",m)),{data:{user:g,session:m},error:null}}catch(l){if(pe(l))return{data:{user:null,session:null},error:l};throw l}}async signInWithSSO(t){var s,r,l;try{let c=null,u=null;return this.flowType==="pkce"&&([c,u]=await Fs(this.storage,this.storageKey)),await xe(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=(s=t.options)===null||s===void 0?void 0:s.redirectTo)!==null&&r!==void 0?r:void 0}),!((l=t==null?void 0:t.options)===null||l===void 0)&&l.captchaToken?{gotrue_meta_security:{captcha_token:t.options.captchaToken}}:null),{skip_http_redirect:!0,code_challenge:c,code_challenge_method:u}),headers:this.headers,xform:yN})}catch(c){if(pe(c))return{data:null,error:c};throw c}}async reauthenticate(){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._reauthenticate())}async _reauthenticate(){try{return await this._useSession(async t=>{const{data:{session:s},error:r}=t;if(r)throw r;if(!s)throw new yi;const{error:l}=await xe(this.fetch,"GET",`${this.url}/reauthenticate`,{headers:this.headers,jwt:s.access_token});return{data:{user:null,session:null},error:l}})}catch(t){if(pe(t))return{data:{user:null,session:null},error:t};throw t}}async resend(t){try{const s=`${this.url}/resend`;if("email"in t){const{email:r,type:l,options:c}=t,{error:u}=await xe(this.fetch,"POST",s,{headers:this.headers,body:{email:r,type:l,gotrue_meta_security:{captcha_token:c==null?void 0:c.captchaToken}},redirectTo:c==null?void 0:c.emailRedirectTo});return{data:{user:null,session:null},error:u}}else if("phone"in t){const{phone:r,type:l,options:c}=t,{data:u,error:h}=await xe(this.fetch,"POST",s,{headers:this.headers,body:{phone:r,type:l,gotrue_meta_security:{captcha_token:c==null?void 0:c.captchaToken}}});return{data:{user:null,session:null,messageId:u==null?void 0:u.message_id},error:h}}throw new vo("You must provide either an email or phone number and a type")}catch(s){if(pe(s))return{data:{user:null,session:null},error:s};throw s}}async getSession(){return await this.initializePromise,await this._acquireLock(-1,async()=>this._useSession(async s=>s))}async _acquireLock(t,s){this._debug("#_acquireLock","begin",t);try{if(this.lockAcquired){const r=this.pendingInLock.length?this.pendingInLock[this.pendingInLock.length-1]:Promise.resolve(),l=(async()=>(await r,await s()))();return this.pendingInLock.push((async()=>{try{await l}catch{}})()),l}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=s();for(this.pendingInLock.push((async()=>{try{await r}catch{}})()),await r;this.pendingInLock.length;){const l=[...this.pendingInLock];await Promise.all(l),this.pendingInLock.splice(0,l.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 s=await this.__loadSession();return await t(s)}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 s=await bo(this.storage,this.storageKey);if(this._debug("#getSession()","session from storage",s),s!==null&&(this._isValidSession(s)?t=s:(this._debug("#getSession()","session from storage is not val
77id"),await this._removeSession())),!t)return{data:{session:null},error:null};const r=t.expires_at?t.expires_at*1e3-Date.now()<jd:!1;if(this._debug("#__loadSession()",`session has${r?"":" not"} expired`,"expires_at",t.expires_at),!r){if(this.storage.isServer){let u=this.suppressGetSessionWarning;t=new Proxy(t,{get:(m,g,v)=>(!u&&g==="user"&&(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."),u=!0,this.suppressGetSessionWarning=!0),Reflect.get(m,g,v))})}return{data:{session:t},error:null}}const{session:l,error:c}=await this._callRefreshToken(t.refresh_token);return c?{data:{session:null},error:c}:{data:{session:l},error:null}}finally{this._debug("#__loadSession()","end")}}async getUser(t){return t?await this._getUser(t):(await this.initializePromise,await this._acquireLock(-1,async()=>await this._getUser()))}async _getUser(t){try{return t?await xe(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:t,xform:wi}):await this._useSession(async s=>{var r,l,c;const{data:u,error:h}=s;if(h)throw h;return!(!((r=u.session)===null||r===void 0)&&r.access_token)&&!this.hasCustomAuthorizationHeader?{data:{user:null},error:new yi}:await xe(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:(c=(l=u.session)===null||l===void 0?void 0:l.access_token)!==null&&c!==void 0?c:void 0,xform:wi})})}catch(s){if(pe(s))return XC(s)&&(await this._removeSession(),await xo(this.storage,`${this.storageKey}-code-verifier`)),{data:{user:null},error:s};throw s}}async updateUser(t,s={}){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._updateUser(t,s))}async _updateUser(t,s={}){try{return await this._useSession(async r=>{const{data:l,error:c}=r;if(c)throw c;if(!l.session)throw new yi;const u=l.session;let h=null,m=null;this.flowType==="pkce"&&t.email!=null&&([h,m]=await Fs(this.storage,this.storageKey));const{data:g,error:v}=await xe(this.fetch,"PUT",`${this.url}/user`,{headers:this.headers,redirectTo:s==null?void 0:s.emailRedirectTo,body:Object.assign(Object.assign({},t),{code_challenge:h,code_challenge_method:m}),jwt:u.access_token,xform:wi});if(v)throw v;return u.user=g.user,await this._saveSession(u),await this._notifyAllSubscribers("USER_UPDATED",u),{data:{user:u.user},error:null}})}catch(r){if(pe(r))return{data:{user:null},error:r};throw r}}async setSession(t){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._setSession(t))}async _setSession(t){try{if(!t.access_token||!t.refresh_token)throw new yi;const s=Date.now()/1e3;let r=s,l=!0,c=null;const{payload:u}=Cd(t.access_token);if(u.exp&&(r=u.exp,l=r<=s),l){const{session:h,error:m}=await this._callRefreshToken(t.refresh_token);if(m)return{data:{user:null,session:null},error:m};if(!h)return{data:{user:null,session:null},error:null};c=h}else{const{data:h,error:m}=await this._getUser(t.access_token);if(m)throw m;c={access_token:t.access_token,refresh_token:t.refresh_token,user:h.user,token_type:"bearer",expires_in:r-s,expires_at:r},await this._saveSession(c),await this._notifyAllSubscribers("SIGNED_IN",c)}return{data:{user:c.user,session:c},error:null}}catch(s){if(pe(s))return{data:{session:null,user:null},error:s};throw s}}async refreshSession(t){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._refreshSession(t))}async _refreshSession(t){try{return await this._useSession(async s=>{var r;if(!t){const{data:u,error:h}=s;if(h)throw h;t=(r=u.session)!==null&&r!==void 0?r:void 0}if(!(t!=null&&t.refresh_token))throw new yi;const{session:l,error:c}=await this._callRefreshToken(t.refresh_token);return c?{data:{user:null,session:null},error:c}:l?{data:{user:l.user,session:l},error:null}:{data:{user:null,session:null},error:null}})}catch(s){if(pe(s))return{data:{user:null,session:null},error:s};throw s}}async _getSessionFromURL(t,s){try{if(!mn())throw new yo("No browser detected.");
77if(t.error||t.error_description||t.error_code)throw new yo(t.error_description||"Error in URL with unspecified error_description",{error:t.error||"unspecified_error",code:t.error_code||"unspecified_code"});switch(s){case"implicit":if(this.flowType==="pkce")throw new Kv("Not a valid PKCE flow url.");break;case"pkce":if(this.flowType==="implicit")throw new yo("Not a valid implicit grant flow url.");break;default:}if(s==="pkce"){if(this._debug("#_initialize()","begin","is PKCE flow",!0),!t.code)throw new Kv("No code detected.");const{data:M,error:D}=await this._exchangeCodeForSession(t.code);if(D)throw D;const B=new URL(window.location.href);return B.searchParams.delete("code"),window.history.replaceState(window.history.state,"",B.toString()),{data:{session:M.session,redirectType:null},error:null}}const{provider_token:r,provider_refresh_token:l,access_token:c,refresh_token:u,expires_in:h,expires_at:m,token_type:g}=t;if(!c||!h||!u||!g)throw new yo("No session defined in URL");const v=Math.round(Date.now()/1e3),b=parseInt(h);let x=v+b;m&&(x=parseInt(m));const S=x-v;S*1e3<=Ks&&console.warn(`@supabase/gotrue-js: Session as retrieved from URL expires in ${S}s, should have been closer to ${b}s`);const T=x-b;v-T>=120?console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued over 120s ago, URL could be stale",T,x,v):v-T<0&&console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued in the future? Check the device clock for skew",T,x,v);const{data:C,error:j}=await this._getUser(c);if(j)throw j;const A={provider_token:r,provider_refresh_token:l,access_token:c,expires_in:b,expires_at:x,refresh_token:u,token_type:g,user:C.user};return window.location.hash="",this._debug("#_getSessionFromURL()","clearing window.location.hash"),{data:{session:A,redirectType:t.type},error:null}}catch(r){if(pe(r))return{data:{session:null,redirectType:null},error:r};throw r}}_isImplicitGrantCallback(t){return!!(t.access_token||t.error_description)}async _isPKCECallback(t){const s=await bo(this.storage,`${this.storageKey}-code-verifier`);return!!(t.code&&s)}async signOut(t={scope:"global"}){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._signOut(t))}async _signOut({scope:t}={scope:"global"}){return await this._useSession(async s=>{var r;const{data:l,error:c}=s;if(c)return{error:c};const u=(r=l.session)===null||r===void 0?void 0:r.access_token;if(u){const{error:h}=await this.admin.signOut(u,t);if(h&&!(YC(h)&&(h.status===404||h.status===401||h.status===403)))return{error:h}}return t!=="others"&&(await this._removeSession(),await xo(this.storage,`${this.storageKey}-code-verifier`)),{error:null}})}onAuthStateChange(t){const s=tN(),r={id:s,callback:t,unsubscribe:()=>{this._debug("#unsubscribe()","state change callback with id removed",s),this.stateChangeEmitters.delete(s)}};return this._debug("#onAuthStateChange()","registered callback with id",s),this.stateChangeEmitters.set(s,r),(async()=>(await this.initializePromise,await this._acquireLock(-1,async()=>{this._emitInitialSession(s)})))(),{data:{subscription:r}}}async _emitInitialSession(t){return await this._useSession(async s=>{var r,l;try{const{data:{session:c},error:u}=s;if(u)throw u;await((r=this.stateChangeEmitters.get(t))===null||r===void 0?void 0:r.callback("INITIAL_SESSION",c)),this._debug("INITIAL_SESSION","callback id",t,"session",c)}catch(c){await((l=this.stateChangeEmitters.get(t))===null||l===void 0?void 0:l.callback("INITIAL_SESSION",null)),this._debug("INITIAL_SESSION","callback id",t,"error",c),console.error(c)}})}async resetPasswordForEmail(t,s={}){let r=null,l=null;this.flowType==="pkce"&&([r,l]=await Fs(this.storage,this.storageKey,!0));try{return await xe(this.fetch,"POST",`${this.url}/recover`,{body:{email:t,code_challenge:r,code_challenge_method:l,gotrue_meta_security:{captcha_token:s.captchaToken}},headers:this.headers,redirectTo:s.redirectTo})}catch(c){if(pe(c))return{data:null,error:c};throw c}}async getUserIdentities(){var t;try{const{data:s,error:r}=await this.getUser();if(r)throw r;return{data:{identities:(t=s.user.identities)!==null&&t!==void 0?t:[]},error:null}}catch(s){if(pe(s))return{data:null,error:s};throw s}}async linkIdentity(t){var s;try{const{data:r,error:l}=await this._useSession(async c=>{var u,h,m,g,v;const{data:b,error:x}=c;if(x)throw x;const S=await this._getUrlForProvider(`${this.url}/user/identities/authorize`,t.provider,{redirectTo:(u=t.options)===null||u===void 0?void 0:u.redirectTo,scopes:(h=t.options)===null||h===void 0?void 0:h.scopes,queryParams:(m=t.options)===null||m===void 0?void 0:m.queryParams,skipBrowserRedirect:!0});return await xe(this.fetch,"GET",S,{headers:this.headers,jwt:(v=(g=b.session)===null||g===void 0?void 0:g.access_token)!==null&&v!==void 0?v:void 0})});if(l)throw l;return mn()&&!(!((s=t.options)===null||s===void 0)&&s.skipBrowserRedirect)&&window.location.assign(r==null?void 0:r.url),{data:{provider:t.provider,url:r==null?void 0:r.url},error:null}}catch(r){if(pe(r))return{data:{provider:t.provider,url:null},error:r};throw r}}async unlinkIdentity(t){try{return await this._useSession(async s=>{var r,l;const{data:c,error:u}=s;if(u)throw u;
77return await xe(this.fetch,"DELETE",`${this.url}/user/identities/${t.identity_id}`,{headers:this.headers,jwt:(l=(r=c.session)===null||r===void 0?void 0:r.access_token)!==null&&l!==void 0?l:void 0})})}catch(s){if(pe(s))return{data:null,error:s};throw s}}async _refreshAccessToken(t){const s=`#_refreshAccessToken(${t.substring(0,5)}...)`;this._debug(s,"begin");try{const r=Date.now();return await aN(async l=>(l>0&&await sN(200*Math.pow(2,l-1)),this._debug(s,"refreshing attempt",l),await xe(this.fetch,"POST",`${this.url}/token?grant_type=refresh_token`,{body:{refresh_token:t},headers:this.headers,xform:bi})),(l,c)=>{const u=200*Math.pow(2,l);return c&&Rd(c)&&Date.now()+u-r<Ks})}catch(r){if(this._debug(s,"error",r),pe(r))return{data:{session:null,user:null},error:r};throw r}finally{this._debug(s,"end")}}_isValidSession(t){return typeof t=="object"&&t!==null&&"access_token"in t&&"refresh_token"in t&&"expires_at"in t}async _handleProviderSignIn(t,s){const r=await this._getUrlForProvider(`${this.url}/authorize`,t,{redirectTo:s.redirectTo,scopes:s.scopes,queryParams:s.queryParams});return this._debug("#_handleProviderSignIn()","provider",t,"options",s,"url",r),mn()&&!s.skipBrowserRedirect&&window.location.assign(r),{data:{provider:t,url:r},error:null}}async _recoverAndRefresh(){var t;const s="#_recoverAndRefresh()";this._debug(s,"begin");try{const r=await bo(this.storage,this.storageKey);if(this._debug(s,"session from storage",r),!this._isValidSession(r)){this._debug(s,"session is not valid"),r!==null&&await this._removeSession();return}const l=((t=r.expires_at)!==null&&t!==void 0?t:1/0)*1e3-Date.now()<jd;if(this._debug(s,`session has${l?"":" not"} expired with margin of ${jd}s`),l){if(this.autoRefreshToken&&r.refresh_token){const{error:c}=await this._callRefreshToken(r.refresh_token);c&&(console.error(c),Rd(c)||(this._debug(s,"refresh failed with a non-retryable error, removing the session",c),await this._removeSession()))}}else await this._notifyAllSubscribers("SIGNED_IN",r)}catch(r){this._debug(s,"error",r),console.error(r);return}finally{this._debug(s,"end")}}async _callRefreshToken(t){var s,r;if(!t)throw new yi;if(this.refreshingDeferred)return this.refreshingDeferred.promise;const l=`#_callRefreshToken(${t.substring(0,5)}...)`;this._debug(l,"begin");try{this.refreshingDeferred=new Xo;const{data:c,error:u}=await this._refreshAccessToken(t);if(u)throw u;if(!c.session)throw new yi;await this._saveSession(c.session),await this._notifyAllSubscribers("TOKEN_REFRESHED",c.session);const h={session:c.session,error:null};return this.refreshingDeferred.resolve(h),h}catch(c){if(this._debug(l,"error",c),pe(c)){const u={session:null,error:c};return Rd(c)||await this._removeSession(),(s=this.refreshingDeferred)===null||s===void 0||s.resolve(u),u}throw(r=this.refreshingDeferred)===null||r===void 0||r.reject(c),c}finally{this.refreshingDeferred=null,this._debug(l,"end")}}async _notifyAllSubscribers(t,s,r=!0){const l=`#_notifyAllSubscribers(${t})`;this._debug(l,"begin",s,`broadcast = ${r}`);try{this.broadcastChannel&&r&&this.broadcastChannel.postMessage({event:t,session:s});const c=[],u=Array.from(this.stateChangeEmitters.values()).map(async h=>{try{await h.callback(t,s)}catch(m){c.push(m)}});if(await Promise.all(u),c.length>0){for(let h=0;h<c.length;h+=1)console.error(c[h]);throw c[0]}}finally{this._debug(l,"end")}}async _saveSession(t){this._debug("#_saveSession()",t),this.suppressGetSessionWarning=!0,await Cb(this.storage,this.storageKey,t)}async _removeSession(){this._debug("#_removeSession()"),await xo(this.storage,this.storageKey),await this._notifyAllSubscribers("SIGNED_OUT",null)}_removeVisibilityChangedCallback(){this._debug("#_removeVisibilityChangedCallback()");const t=this.visibilityChangedCallback;this.visibilityChangedCallback=null;try{t&&mn()&&(window!=null&&window.removeEventListener)&&window.removeEventListener("visibilitychange",t)}catch(s){console.error("removing visibilitychange callback failed",s)}}async _startAutoRefresh(){await this._stopAutoRefresh(),this._debug("#_startAutoRefresh()");const t=setInterval(()=>this._autoRefreshTokenTick(),Ks);this.autoRefreshTicker=t,t&&typeof t=="object"&&typeof t.unref=="function"?t.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(t),setTimeout(async()=>{await this.initializePromise,await this._autoRefreshTokenTick()},0)}async _stopAutoRefresh(){this._debug("#_stopAutoRefresh()");const t=this.autoRefreshTicker;this.autoRefreshTicker=null,t&&clearInterval(t)}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 s=>{const{data:{session:r}}=s;if(!r||!r.refresh_token||!r.expires_at){this._debug("#_autoRefreshTokenTick()","no session");return}const l=Math.floor((r.expires_at*1e3-t)/Ks);this._debug("#_autoRefreshTokenTick()",`access token expires in ${l} ticks, a tick lasts ${Ks}ms, refresh threshold is ${nf} ticks`),l<=nf&&await this._callRefreshToken(r.refresh_token)})}catch(s){console.error("Auto refresh tick failed with error. This is likely a transient error.",s
77)}}finally{this._debug("#_autoRefreshTokenTick()","end")}})}catch(t){if(t.isAcquireTimeout||t instanceof Nb)this._debug("auto refresh token tick lock not available");else throw t}}async _handleVisibilityChange(){if(this._debug("#_handleVisibilityChange()"),!mn()||!(window!=null&&window.addEventListener))return this.autoRefreshToken&&this.startAutoRefresh(),!1;try{this.visibilityChangedCallback=async()=>await this._onVisibilityChanged(!1),window==null||window.addEventListener("visibilitychange",this.visibilityChangedCallback),await this._onVisibilityChanged(!0)}catch(t){console.error("_handleVisibilityChange",t)}}async _onVisibilityChanged(t){const s=`#_onVisibilityChanged(${t})`;this._debug(s,"visibilityState",document.visibilityState),document.visibilityState==="visible"?(this.autoRefreshToken&&this._startAutoRefresh(),t||(await this.initializePromise,await this._acquireLock(-1,async()=>{if(document.visibilityState!=="visible"){this._debug(s,"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,s,r){const l=[`provider=${encodeURIComponent(s)}`];if(r!=null&&r.redirectTo&&l.push(`redirect_to=${encodeURIComponent(r.redirectTo)}`),r!=null&&r.scopes&&l.push(`scopes=${encodeURIComponent(r.scopes)}`),this.flowType==="pkce"){const[c,u]=await Fs(this.storage,this.storageKey),h=new URLSearchParams({code_challenge:`${encodeURIComponent(c)}`,code_challenge_method:`${encodeURIComponent(u)}`});l.push(h.toString())}if(r!=null&&r.queryParams){const c=new URLSearchParams(r.queryParams);l.push(c.toString())}return r!=null&&r.skipBrowserRedirect&&l.push(`skip_http_redirect=${r.skipBrowserRedirect}`),`${t}?${l.join("&")}`}async _unenroll(t){try{return await this._useSession(async s=>{var r;const{data:l,error:c}=s;return c?{data:null,error:c}:await xe(this.fetch,"DELETE",`${this.url}/factors/${t.factorId}`,{headers:this.headers,jwt:(r=l==null?void 0:l.session)===null||r===void 0?void 0:r.access_token})})}catch(s){if(pe(s))return{data:null,error:s};throw s}}async _enroll(t){try{return await this._useSession(async s=>{var r,l;const{data:c,error:u}=s;if(u)return{data:null,error:u};const h=Object.assign({friendly_name:t.friendlyName,factor_type:t.factorType},t.factorType==="phone"?{phone:t.phone}:{issuer:t.issuer}),{data:m,error:g}=await xe(this.fetch,"POST",`${this.url}/factors`,{body:h,headers:this.headers,jwt:(r=c==null?void 0:c.session)===null||r===void 0?void 0:r.access_token});return g?{data:null,error:g}:(t.factorType==="totp"&&(!((l=m==null?void 0:m.totp)===null||l===void 0)&&l.qr_code)&&(m.totp.qr_code=`data:image/svg+xml;utf-8,${m.totp.qr_code}`),{data:m,error:null})})}catch(s){if(pe(s))return{data:null,error:s};throw s}}async _verify(t){return this._acquireLock(-1,async()=>{try{return await this._useSession(async s=>{var r;const{data:l,error:c}=s;if(c)return{data:null,error:c};const{data:u,error:h}=await xe(this.fetch,"POST",`${this.url}/factors/${t.factorId}/verify`,{body:{code:t.code,challenge_id:t.challengeId},headers:this.headers,jwt:(r=l==null?void 0:l.session)===null||r===void 0?void 0:r.access_token});return h?{data:null,error:h}:(await this._saveSession(Object.assign({expires_at:Math.round(Date.now()/1e3)+u.expires_in},u)),await this._notifyAllSubscribers("MFA_CHALLENGE_VERIFIED",u),{data:u,error:h})})}catch(s){if(pe(s))return{data:null,error:s};throw s}})}async _challenge(t){return this._acquireLock(-1,async()=>{try{return await this._useSession(async s=>{var r;const{data:l,error:c}=s;return c?{data:null,error:c}:await xe(this.fetch,"POST",`${this.url}/factors/${t.factorId}/challenge`,{body:{channel:t.channel},headers:this.headers,jwt:(r=l==null?void 0:l.session)===null||r===void 0?void 0:r.access_token})})}catch(s){if(pe(s))return{data:null,error:s};throw s}})}async _challengeAndVerify(t){const{data:s,error:r}=await this._challenge({factorId:t.factorId});return r?{data:null,error:r}:await this._verify({factorId:t.factorId,challengeId:s.id,code:t.code})}async _listFactors(){const{data:{user:t},error:s}=await this.getUser();if(s)return{data:null,error:s};const r=(t==null?void 0:t.factors)||[],l=r.filter(u=>u.factor_type==="totp"&&u.status==="verified"),c=r.filter(u=>u.factor_type==="phone"&&u.status==="verified");return{data:{all:r,totp:l,phone:c},error:null}}async _getAuthenticatorAssuranceLevel(){return this._acquireLock(-1,async()=>await this._useSession(async t=>{var s,r;const{data:{session:l},error:c}=t;if(c)return{data:null,error:c};if(!l)return{data:{currentLevel:null,nextLevel:null,currentAuthenticationMethods:[]},error:null};const{payload:u}=Cd(l.access_token);let h=null;u.aal&&(h=u.aal);let m=h;((r=(s=l.user.factors)===null||s===void 0?void 0:s.filter(b=>b.status==="verified"))!==null&&r!==void 0?r:[]).length>0&&(m="aal2");const v=u.amr||[];return{data:{currentLevel:h,nextLevel:m,currentAuthenticationMethods:v},error:null}}))}async fetchJwk(t,s={keys:[]}){let r=s.keys.find(u=>u.kid===t);if(r||(r=this.jwks.keys.find(u=>u.kid===t),r&&this.jwks_cached_at+$C>Date.now()))return r;const{data:l,error:c}=await xe(this.fetch,"GET",`${this.url}/.well-known/jwks.json`,{headers:this.headers});if(c)throw c;if(!l.keys||l.keys.length===0)throw new Nr("JWKS is empty");if(this.jwks=l,this.jwks_cached_at=Date.now(),r=l.keys.find(u=>u.kid===t),!r)throw new Nr("No matching signing key found in JWKS");return r}async getClaims(t,s={keys:[]}){try{let r=t;if(!r){const{data:S,error:T}
77=await this.getSession();if(T||!S.session)return{data:null,error:T};r=S.session.access_token}const{header:l,payload:c,signature:u,raw:{header:h,payload:m}}=Cd(r);if(fN(c.exp),!l.kid||l.alg==="HS256"||!("crypto"in globalThis&&"subtle"in globalThis.crypto)){const{error:S}=await this.getUser(r);if(S)throw S;return{data:{claims:c,header:l,signature:u},error:null}}const g=hN(l.alg),v=await this.fetchJwk(l.kid,s),b=await crypto.subtle.importKey("jwk",v,g,!0,["verify"]);if(!await crypto.subtle.verify(g,b,u,JC(`${h}.${m}`)))throw new Nr("Invalid JWT signature");return{data:{claims:c,header:l,signature:u},error:null}}catch(r){if(pe(r))return{data:null,error:r};throw r}}}Hr.nextInstanceID=0;const CN=Hr;class NN extends CN{constructor(t){super(t)}}var ON=function(n,t,s,r){function l(c){return c instanceof s?c:new s(function(u){u(c)})}return new(s||(s=Promise))(function(c,u){function h(v){try{g(r.next(v))}catch(b){u(b)}}function m(v){try{g(r.throw(v))}catch(b){u(b)}}function g(v){v.done?c(v.value):l(v.value).then(h,m)}g((r=r.apply(n,t||[])).next())})};class DN{constructor(t,s,r){var l,c,u;if(this.supabaseUrl=t,this.supabaseKey=s,!t)throw new Error("supabaseUrl is required.");if(!s)throw new Error("supabaseKey is required.");const h=UC(t);this.realtimeUrl=`${h}/realtime/v1`.replace(/^http/i,"ws"),this.authUrl=`${h}/auth/v1`,this.storageUrl=`${h}/storage/v1`,this.functionsUrl=`${h}/functions/v1`;const m=`sb-${new URL(this.authUrl).hostname.split(".")[0]}-auth-token`,g={db:CC,realtime:OC,auth:Object.assign(Object.assign({},NC),{storageKey:m}),global:RC},v=VC(r??{},g);this.storageKey=(l=v.auth.storageKey)!==null&&l!==void 0?l:"",this.headers=(c=v.global.headers)!==null&&c!==void 0?c:{},v.accessToken?(this.accessToken=v.accessToken,this.auth=new Proxy({},{get:(b,x)=>{throw new Error(`@supabase/supabase-js: Supabase Client is configured with the accessToken option, accessing supabase.auth.${String(x)} is not possible`)}})):this.auth=this._initSupabaseAuthClient((u=v.auth)!==null&&u!==void 0?u:{},this.headers,v.global.fetch),this.fetch=LC(s,this._getAccessToken.bind(this),v.global.fetch),this.realtime=this._initRealtimeClient(Object.assign({headers:this.headers,accessToken:this._getAccessToken.bind(this)},v.realtime)),this.rest=new ZR(`${h}/rest/v1`,{headers:this.headers,schema:v.db.schema,fetch:this.fetch}),v.accessToken||this._listenForAuthEvents()}get functions(){return new VR(this.functionsUrl,{headers:this.headers,customFetch:this.fetch})}get storage(){return new EC(this.storageUrl,this.headers,this.fetch)}from(t){return this.rest.from(t)}schema(t){return this.rest.schema(t)}rpc(t,s={},r={}){return this.rest.rpc(t,s,r)}channel(t,s={config:{}}){return this.realtime.channel(t,s)}getChannels(){return this.realtime.getChannels()}removeChannel(t){return this.realtime.removeChannel(t)}removeAllChannels(){return this.realtime.removeAllChannels()}_getAccessToken(){var t,s;return ON(this,void 0,void 0,function*(){if(this.accessToken)return yield this.accessToken();const{data:r}=yield this.auth.getSession();return(s=(t=r.session)===null||t===void 0?void 0:t.access_token)!==null&&s!==void 0?s:null})}_initSupabaseAuthClient({autoRefreshToken:t,persistSession:s,detectSessionInUrl:r,storage:l,storageKey:c,flowType:u,lock:h,debug:m},g,v){const b={Authorization:`Bearer ${this.supabaseKey}`,apikey:`${this.supabaseKey}`};return new NN({url:this.authUrl,headers:Object.assign(Object.assign({},b),g),storageKey:c,autoRefreshToken:t,persistSession:s,detectSessionInUrl:r,storage:l,flowType:u,lock:h,debug:m,fetch:v,hasCustomAuthorizationHeader:"Authorization"in this.headers})}_initRealtimeClient(t){return new dC(this.realtimeUrl,Object.assign(Object.assign({},t),{params:Object.assign({apikey:this.supabaseKey},t==null?void 0:t.params)}))}_listenForAuthEvents(){return this.auth.onAuthStateChange((s,r)=>{this._handleTokenChanged(s,"CLIENT",r==null?void 0:r.access_token)})}_handleTokenChanged(t,s,r){(t==="TOKEN_REFRESHED"||t==="SIGNED_IN")&&this.changedAccessToken!==r?this.changedAccessToken=r:t==="SIGNED_OUT"&&(this.realtime.setAuth(),s=="STORAGE"&&this.auth.signOut(),this.changedAccessToken=void 0)}}const Ob=(n,t,s)=>new DN(n,t,s),Db="https://nbwjhphgijylfxxvexxe.supabase.co",MN="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6Im5id2pocGhnaWp5bGZ4eHZleHhlIiwicm9sZSI6ImFub24iLCJpYXQiOjE3NDYyMTI5MjYsImV4cCI6MjA2MTc4ODkyNn0.CtHnOXjFLX43TcIYMStOnxU15-2LFTe4ov7bxdYUzM4",kN="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6Im5id2pocGhnaWp5bGZ4eHZleHhlIiwicm9sZSI6InNlcnZpY2Vfcm9sZSIsImlhdCI6MTc0NjIxMjkyNiwiZXhwIjoyMDYxNzg4OTI2fQ.FfjEHooiKk09aAmfIWKT4MrpKpK-Lg0H_cEZxu6irao",ht=Ob(Db,MN),sy=Ob(Db,kN,{auth:{autoRefreshToken:!1,persistSession:!1}});function LN(){const[n,t]=_.useState(null),[s,r]=_.useState(""),[l,c]=_.useState(""),[u,h]=_.useState([]),[m,g]=_.useState([]),[v,b]=_.useState(""),[x,S]=_.useState("posts"),[T,C]=_.useState(!1),[j,A]=_.useState(!0),[M,D]=_.useState(null),B=_.useRef(!0),U=_.useRef(null),I=_.useRef(!1),[Q,K]=_.useState({title:"",description:"",fullDescription:"",imageUrl:""}),[$,W]=_.useState({email:"",firstName:"",lastName:""}),oe=()=>{const z="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!@#$%^&*";let Y="";for(let ee=0;ee<12;ee++)Y+=z.charAt(Math.floor(Math.random()*z.length));return Y},we=m.filter(z=>{const Y=`${z.first_name||""} ${z.last_name||""}`.toLowerCase(),ee=z.email.toLowerCase(),ae=v.toLowerCase();return Y.includes(ae)||ee.includes(ae)});async function ce(z){try{console.log("Checking admin role for user ID:",z);const{data:Y,error:ee}=await ht.from("user_roles").select("role").eq("user_id",z).eq("role","admin").maybeSingle();if(ee)return console.error("Role check error:",ee),!1;const ae=(Y==null?void 0:Y.role)==="admin";return console.log("Admin check result:",ae),ae}catch(Y){return console.error("Admin check failed:",Y),!1}}const ye=async()=>
77{if(!I.current){I.current=!0;try{console.log("Initializing admin..."),A(!0),D(null);const{data:{session:z},error:Y}=await ht.auth.getSession();if(Y){console.error("Session error:",Y),D("Failed to get session"),A(!1);return}if(!(z!=null&&z.user)){console.log("No session found"),t(null),C(!1),A(!1);return}if(!B.current)return;console.log("Session found for user:",z.user.email),t(z.user);const ee=await ce(z.user.id);if(!B.current)return;C(ee),ee?(console.log("User is admin, fetching data..."),await Promise.all([J(),R()])):console.log("User is not admin"),A(!1)}catch(z){console.error("Admin initialization error:",z),B.current&&(D("Initialization failed"),A(!1))}}};_.useEffect(()=>{B.current=!0,I.current=!1,U.current&&U.current.unsubscribe(),ye();const{data:{subscription:z}}=ht.auth.onAuthStateChange(async(Y,ee)=>{var ae;if(B.current){if(console.log(`Admin auth event: ${Y}`,((ae=ee==null?void 0:ee.user)==null?void 0:ae.email)||"no user"),Y==="SIGNED_OUT"||!ee){t(null),C(!1),h([]),g([]),A(!1),D(null),I.current=!1;return}Y==="SIGNED_IN"&&!I.current&&(console.log("New sign in detected, reinitializing..."),await ye())}});return U.current=z,()=>{B.current=!1,U.current&&U.current.unsubscribe()}},[]);async function Ce(z){z.preventDefault(),A(!0),D(null),I.current=!1;const{error:Y}=await ht.auth.signInWithPassword({email:s,password:l});Y?(D("Login failed: "+Y.message),A(!1)):(r(""),c(""))}async function Z(){A(!0),I.current=!1,await ht.auth.signOut(),r(""),c("")}async function J(){if(B.current)try{const{data:z,error:Y}=await ht.from("posts").select("*").order("created_at",{ascending:!1});Y?console.error("Fetch posts error:",Y):B.current&&h(z||[])}catch(z){console.error("Fetch posts failed:",z)}}async function ie(){var ee,ae,He,Ee;if(!((ee=Q.title)!=null&&ee.trim())||!((ae=Q.description)!=null&&ae.trim())){alert("Please fill in title and description");return}const z={title:Q.title.trim().slice(0,255),description:Q.description.trim().slice(0,1e3),full_description:((He=Q.fullDescription)==null?void 0:He.trim().slice(0,5e3))||Q.description.trim(),image_url:(Ee=Q.imageUrl)==null?void 0:Ee.trim().slice(0,500)},{error:Y}=await ht.from("posts").insert([z]);Y?(console.error("Create error:",Y),alert("Create failed: "+Y.message)):(K({title:"",description:"",fullDescription:"",imageUrl:""}),await J(),alert("Post created successfully!"))}async function je(z){const{error:Y}=await ht.from("posts").delete().eq("id",z);Y?alert("Delete failed: "+Y.message):await J()}async function R(){if(B.current)try{const{data:z,error:Y}=await ht.from("team_users").select("*").order("created_at",{ascending:!1});Y?console.error("Error fetching users:",Y):B.current&&g(z||[])}catch(z){console.error("Fetch users error:",z)}}async function F(){var Y;if(!((Y=$.email)!=null&&Y.trim())){alert("Please fill in email address");return}const z=oe();try{const{data:ee,error:ae}=await sy.auth.admin.createUser({email:$.email.trim(),password:z,email_confirm:!0,user_metadata:{first_name:$.firstName.trim(),last_name:$.lastName.trim()}});if(ae){alert("User creation failed: "+ae.message);return}const{error:He}=await ht.from("team_users").insert([{user_id:ee.user.id,email:$.email.trim(),first_name:$.firstName.trim(),last_name:$.lastName.trim(),temp_password:z,status:"active"}]);if(He){console.error("Database insert error:",He),alert("User created in auth but database entry failed: "+He.message);return}W({email:"",firstName:"",lastName:""}),await R(),alert(`Team member added successfully! 78 79Email: ${$.email} 80Temporary Password: ${z} 81 82Please share these credentials securely with the user.`)}catch(ee){console.error("Create user error:",ee),alert("User creation failed: "+ee.message)}}async function ue(z,Y){if(confirm(`Are you sure you want to delete ${Y}?`))try{const{error:ee}=await sy.auth.admin.deleteUser(z);if(ee){console.error("Auth delete error:",ee),alert("Failed to delete user from authentication: "+ee.message);return}const{error:ae}=await ht.from("team_users").delete().eq("user_id",z);ae&&console.error("Database delete error:",ae),await R(),alert("Team member deleted successfully!")}catch(ee){console.error("Delete user error:",ee),alert("Delete failed: "+ee.message)}}return j?f.jsx(ct,{children:f.jsx("div",{className:"admin-wrapper",children:f.jsx("div",{className:"admin-login",children:f.jsx("h2",{style:{fontWeight:"thin"},children:"Loading..."})})})}):M?f.jsx(ct,{children:f.jsx("div",{className:"admin-wrapper",children:f.jsxs("div",{className:"admin-login",children:[f.jsx("h2",{children:"Error"}),f.jsx("p",{children:M}),f.jsx("button",{onClick:()=>window.location.reload(),children:"Retry"})]})})}):!n||!T?f.jsx(ct,{children:f.jsx("div",{className:"admin-wrapper",children:n?f.jsxs("div",{className:"admin-login",children:[f.jsx("h2",{children:"Access Denied"}),f.jsx("p",{children:"You don't have admin privileges."}),f.jsx("button",{onClick:Z,children:"Sign Out"})]}):f.jsxs("form",{className:"admin-login",onSubmit:Ce,children:[f.jsx("h2",{children:"Admin Login"}),f.jsx("input",{type:"email",placeholder:"Email",value:s,onChange:z=>r(z.target.value),required:!0}),f.jsx("input",{type:"password",placeholder:"Password",value:l,onCh
82ange:z=>c(z.target.value),required:!0}),f.jsx("button",{type:"submit",disabled:j,children:j?"Logging in...":"Login"})]})})}):f.jsx(ct,{children:f.jsx("div",{className:"admin-wrapper",children:f.jsxs("div",{className:"admin-panel",children:[f.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[f.jsxs("div",{className:"admin-tabs",children:[f.jsx("button",{className:`tab-button ${x==="posts"?"active":""}`,onClick:()=>S("posts"),children:"Forum Posts"}),f.jsx("button",{className:`tab-button ${x==="users"?"active":""}`,onClick:()=>S("users"),children:"Team Management"})]}),f.jsx("button",{className:"logout-button",onClick:Z,children:"Logout"})]}),x==="posts"&&f.jsxs("div",{className:"admin-section",children:[f.jsx("h2",{children:"Create Forum Post"}),f.jsxs("div",{className:"form-container",children:[f.jsx("input",{className:"admin-input-title",placeholder:"Post Title",value:Q.title,onChange:z=>K({...Q,title:z.target.value})}),f.jsx("input",{className:"admin-input-title",placeholder:"Image URL (optional)",value:Q.imageUrl,onChange:z=>K({...Q,imageUrl:z.target.value})}),f.jsx("textarea",{className:"admin-input",placeholder:"Short Description (for preview)",value:Q.description,onChange:z=>K({...Q,description:z.target.value}),rows:"3",style:{whiteSpace:"pre-wrap",fontFamily:"inherit",resize:"vertical"}}),f.jsx("textarea",{className:"admin-input",placeholder:"Full Description (detailed content)",value:Q.fullDescription,onChange:z=>K({...Q,fullDescription:z.target.value}),rows:"6",style:{whiteSpace:"pre-wrap",fontFamily:"inherit",resize:"vertical"}}),f.jsx("button",{className:"admin-button",onClick:ie,children:"Create Post"})]}),f.jsxs("div",{className:"posts-section",children:[f.jsx("h3",{children:"Current Forum Posts"}),f.jsx("div",{className:"posts-container",children:u.length===0?f.jsxs("div",{className:"no-posts-message",children:[f.jsx("p",{children:"No posts have been created yet."}),f.jsx("span",{children:"Create your first post using the form above!"})]}):f.jsx(rn,{children:u.map(z=>f.jsxs(P.div,{className:"post-card",initial:{opacity:0,y:20},animate:{opacity:1,y:0},exit:{opacity:0,y:-20},transition:{duration:.3},children:[f.jsxs("div",{className:"post-card-content",children:[f.jsx("strong",{children:z.title}),f.jsx("p",{className:"post-date",children:new Date(z.created_at).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"})}),f.jsx("p",{className:"post-description",children:z.description}),z.image_url&&f.jsx("img",{src:z.image_url,alt:z.title,className:"post-preview-image"})]}),f.jsx("button",{className:"delete-button",onClick:()=>je(z.id),children:"Delete"})]},z.id))})})]})]}),x==="users"&&f.jsxs("div",{className:"admin-section",children:[f.jsx("h2",{children:"Add Team Member"}),f.jsxs("div",{className:"form-container",children:[f.jsx("input",{className:"admin-input-title",placeholder:"First Name",value:$.firstName,onChange:z=>W({...$,firstName:z.target.value})}),f.jsx("input",{className:"admin-input-title",placeholder:"Last Name",value:$.lastName,onChange:z=>W({...$,lastName:z.target.value})}),f.jsx("input",{className:"admin-input-title",type:"email",placeholder:"Email Address",value:$.email,onChange:z=>W({...$,email:z.target.value})}),f.jsx("div",{className:"password-info",children:f.jsx("p",{children:"A secure password will be generated automatically"})}),f.jsx("button",{className:"admin-button",onClick:F,children:"Add Team Member"})]}),f.jsxs("div",{className:"posts-section",children:[f.jsxs("div",{className:"section-header",children:[f.jsx("h3",{children:"Current Team Members"}),m.length>0&&f.jsxs("div",{className:"search-container",children:[f.jsx("input",{className:"search-input",type:"text",placeholder:"Search by name or email...",value:v,onChange:z=>b(z.target.value)}),v&&f.jsx("button",{className:"search-clear",onClick:()=>b(""),children:"â"})]})]}),f.jsx("div",{className:"posts-container",children:m.length===0?f.jsxs("div",{className:"no-posts-message",children:[f.jsx("p",{children:"No team members have been added yet."}),f.jsx("span",{children:"Add your first team member using the form above!"})]}):we.length===0?f.jsxs("div",{className:"no-posts-message",children:[f.jsx("p",{children:"No team members match your search."}),f.jsx("span",{children:"Try a different search term or clear the search."})]}):f.jsx(rn,{children:we.map(z=>f.jsxs(P.div,{className:"user-card",initial:{opacity:0,y:20}
82,animate:{opacity:1,y:0},exit:{opacity:0,y:-20},transition:{duration:.3},children:[f.jsxs("div",{className:"user-card-content",children:[f.jsxs("div",{className:"user-main-info",children:[f.jsxs("strong",{children:[z.first_name," ",z.last_name]}),f.jsx("p",{className:"user-email",children:z.email})]}),f.jsxs("div",{className:"user-meta",children:[f.jsxs("p",{className:"user-date",children:["Added:"," ",new Date(z.created_at).toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"})]}),f.jsxs("p",{className:"user-status",children:["Status:"," ",f.jsx("span",{className:`status-${z.status}`,children:z.status})]}),z.temp_password&&f.jsxs("p",{className:"temp-password",children:["Password:"," ",f.jsx("code",{children:z.temp_password})]})]})]}),f.jsx("button",{className:"delete-button",onClick:()=>ue(z.user_id,z.email),children:"Delete"})]},z.user_id))})}),m.length>0&&f.jsx("div",{className:"search-results",children:v?f.jsxs("p",{children:["Showing ",we.length," of ",m.length," team members",v&&` matching "${v}"`]}):f.jsxs("p",{children:["Total: ",m.length," team members"]})})]})]})]})})})}function PN(){return f.jsx(ct,{children:f.jsxs("main",{children:[f.jsxs(P.div,{className:"career-job-list",children:[f.jsx(P.h1,{initial:{opacity:0,y:100},animate:{opacity:1,y:0,transition:{delay:.5,duration:1.2,ease:[.25,1,.5,1]}},children:"Careers"}),f.jsx(P.p,{className:"career-job-list-sub",initial:{opacity:0,y:100},animate:{opacity:1,y:0,transition:{delay:.5,duration:1.2,ease:[.25,1,.5,1]}},children:"Join a world-class team of visionary engineers, artisans, and innovators, crafting iconic aquatic environments. Elevate your career while shaping the standards of industry excellence."}),f.jsx(P.div,{initial:{scaleX:0},animate:{scaleX:1,transition:{duration:1,delay:.8,ease:[.25,1,.5,1]}},exit:{scaleX:0,transition:{duration:1,ease:[.25,1,.5,1]}},style:{width:"100%",height:"1px",background:"grey",margin:"5rem 0",transformOrigin:"left"}}),f.jsx(P.div,{className:"career-apply-section",initial:{opacity:0,y:100},animate:{opacity:1,y:0,transition:{delay:1.2,duration:1.2,ease:[.25,1,.5,1]}},children:f.jsxs(P.div,{className:"career-apply-content",initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1,transition:{delay:1.4,duration:.8,ease:[.25,1,.5,1]}},children:[f.jsx("p",{className:"career-apply-description",children:"Be part of the visionâapply today and help craft world-class aquatic destinations."}),f.jsxs(P.a,{href:"https://workforcenow.adp.com/mascsr/default/mdf/recruitment/recruitment.html?cid=d9630cc7-f084-48f4-ab2d-4c7ac71fb18d&ccId=19000101_000001&lang=en_CA&selectedMenuKey=CurrentOpenings",target:"_blank",rel:"noopener noreferrer",className:"career-apply-button",whileHover:{scale:1.02,backgroundColor:"#ffffff",color:"#000000",transition:{duration:.3}},whileTap:{scale:.98},children:[f.jsx("span",{className:"career-apply-button-text",children:"Apply Now"}),f.jsx("span",{className:"career-apply-button-arrow",children:"â"})]})]})})]}),f.jsx(Br,{img:"/images/Home/bottom.webp",text:"",hidden:!0})]})})}function ay(){return f.jsx("div",{style:{border:"4px solid #f3f3f3",borderTop:"4px solid black",borderRadius:"50%",width:"30px",height:"30px",animation:"spin 1s linear infinite",margin:"auto"}})}function UN(){var I;const{id:n}=KS(),t=Vo(),[s,r]=_.useState(null),[l,c]=_.useState(!0),[u,h]=_.useState({visible:!1,type:""}),[m,g]=_.useState(!1),[v,b]=_.useState(!1),[x,S]=_.useState(""),[T,C]=_.useState(""),[j,A]=_.useState(""),[M,D]=_.useState([]);_.useEffect(()=>{(async()=>{try{const{data:K,error:$}=await ht.from("jobs").select("*").eq("id",n).single();$||!K?(console.error("Error fetching job:",$),t("/careers")):r(K)}catch(K){console.error("Unexpected error:",K),t("/careers")}finally{c(!1)}})()},[n,t]);const B=Q=>{D(Array.from(Q.target.files))},U=async Q=>{Q.preventDefault(),b(!0);try{const K=new FormData;K.append("name",x),K.append("email",T),K.append("coverLetter",j),K.append("jobTitle",(s==null?void 0:s.job_title)||""),M.forEach(W=>K.append("files",W));const $=await fetch("/api/apply",{method:"POST",body:K});if($.ok){const W=await $.json();console.log("Application submitted:",W),g(!1),h({visible:!0,type:"success"}),S(""),C(""),A(""),D([])}else{const W=await $.text();console.error("Failed to submit:",W),g(!1),h({visible:!0,type:"error"})}}catch(K){console.error("Error:",K),g(!1),h({visible:!0,type:"error"})}finally{b(!1)}};return f.jsx(ct,{children:f.jsx("main",{className:"job-detail-page",children:l?f.jsx(ay,{}):s?f.jsxs(f.Fragment,{children:[f.jsx("h1",{children:s.job_title}),f.jsxs("p",{children:[f.jsx("strong",{children:"Date Posted:"})," ",(I=s.created_at)==null?void 0:I.slice(0,10)]}),f.jsxs("p",{children:[f.jsx("strong",{children:"Location:"})," ",s.job_location]}),f.jsxs("p",{children:[f.jsx("strong",{children:"Salary:"})," ",s.job_salary]}),f.jsxs("p",{children:[f.jsx("strong",{children:"Type:"})," ",s.job_type]}),f.jsx("p",{children:f.jsx("strong",{children:"Description:"})}),f.jsx("div",{className:"job-description",children:s.job_description}),f.jsx("button",{className:"apply-button",onClick:()=>g(!0),children:"Apply"}),f.jsx(rn,{children:m&&f.jsx(P.div,{className:"modal-overlay",initial:{opacity:0}
82,animate:{opacity:1},exit:{opacity:0},transition:{duration:.2,ease:"easeOut"},children:f.jsxs(P.div,{className:"modal-content",initial:{y:60,opacity:0},animate:{y:0,opacity:1},exit:{y:40,opacity:0},transition:{type:"spring",damping:20,stiffness:180},layout:!0,children:[f.jsx("button",{className:"modal-close",onClick:()=>g(!1),"aria-label":"Close",children:"X"}),f.jsxs("form",{onSubmit:U,className:"apply-form",children:[f.jsxs("h2",{children:["Apply for ",s==null?void 0:s.job_title]}),f.jsx("input",{type:"text",placeholder:"Your Name",value:x,onChange:Q=>S(Q.target.value),disabled:v,required:!0}),f.jsx("input",{type:"email",placeholder:"Your Email",value:T,onChange:Q=>C(Q.target.value),disabled:v,required:!0}),f.jsx("textarea",{placeholder:"Cover Letter",value:j,onChange:Q=>A(Q.target.value),disabled:v,required:!0}),f.jsxs("div",{className:"file-upload",children:[f.jsx("label",{htmlFor:"fileUpload",children:"Attach Resume"}),f.jsx("input",{id:"fileUpload",type:"file",multiple:!0,accept:".pdf,.doc,.docx",onChange:B,disabled:v})]}),f.jsx("button",{type:"submit",disabled:v,children:v?f.jsx(ay,{}):"Submit Application"})]})]})})}),f.jsx(rb,{visible:u.visible,type:u.type,onClose:()=>h({visible:!1,type:""})})]}):f.jsx("p",{children:"Job not found."})})})}function VN(){return f.jsx(ct,{children:f.jsxs(P.main,{className:"policies-container",initial:{opacity:0,y:100},animate:{opacity:1,y:0,transition:{duration:1.2,delay:.6,ease:[.25,1,.5,1]}},exit:{opacity:0},children:[f.jsx("h1",{className:"policies-title",children:"Our Policies"}),f.jsxs("section",{className:"policy-section",children:[f.jsx("h2",{className:"policy-heading",children:"Confidentiality Statement"}),f.jsx("p",{className:"policy-text",children:"CONFIDENTIAL: All SPA e-mails and any files transmitted with them are confidential and are intended solely for the use of the individual or entity to which they are addressed. This communication may contain material protected by the attorney-client privilege. If you are not the intended recipient or the person responsible for delivering the E-mail to the intended recipient, be advised that you have received this E-mail in error and that any use, dissemination, forwarding, printing, or copying of this E-mail is strictly prohibited. If you have received this E-mail in error, please immediately notify us by telephone at (905) 569-7899. You will be reimbursed for reasonable costs incurred in notifying us."})]}),f.jsxs("section",{className:"policy-section",children:[f.jsx("h2",{className:"policy-heading",children:"Statement of Commitment"}),f.jsx("p",{className:"policy-text",children:"Service Plus Aquatics Inc. (SPA Inc.) is committed to providing a respectful, welcoming, accessible, and inclusive environment for all persons with disabilities in a way that is respectful of the dignity and independence of people with disabilities and in a manner which takes into account the person's disability and embodies the principles of integration and equal opportunity. Service Plus Aquatics Inc. is committed to becoming a barrier-free environment, and meeting the requirements of all existing legislation and its own policies and goals related to identifying, removing and preventing barriers to people with disabilities that might interfere with their ability to interact with our Firm. Service Plus Aquatics Inc. ensures that all persons within its community are aware of their rights and responsibilities to foster an accessible and inclusive environment with and for persons with disabilities. Service Plus Aquatics Inc. is committed to, and will strive to ensure that, the Accessibility for Ontarians with Disabilities Act (AODA), 2005, its regulations, standards and all other relevant legislation concerning accessibility, are rigorously observed in a timely fashion."})]})]})})}const zN={initial:{y:"-100%"},animate:n=>({y:0,transition:{duration:1.2,delay:.2+n*.04,ease:[.25,1,.5,1]}}),exit:n=>({y:"-100%",transition:{duration:1,delay:n*.02,ease:[.25,1,.5,1]}})};function BN({to:n,text:t,idx:s,toggleMenu:r}){const l=Wf(),c=_.useRef(),u=Ut(),h=Vo(),m=b=>
82{const x=c.current.getBoundingClientRect(),S=b.clientY<x.top+x.height/2;l.set({top:S?"-100%":"100%"}),l.start({top:0,transition:{duration:.2,ease:"easeOut"}})},g=b=>{const x=c.current.getBoundingClientRect(),S=b.clientY<x.top+x.height/2;l.start({top:S?"-100%":"100%",transition:{duration:.2,ease:"easeOut"}})},v=async b=>{if(b.preventDefault(),n===u.pathname){r(),await l.start({top:"-100%",transition:{duration:.2,ease:"easeOut"}});return}h(n),await l.start({top:"-100%",transition:{duration:.2,ease:"easeOut"}})};return f.jsxs(P.div,{className:"hover-wrapper",ref:c,onMouseEnter:m,onMouseLeave:g,children:[f.jsx(P.div,{className:"hover-bg",animate:l}),f.jsx("a",{href:n,className:"nav-link",onClick:v,children:f.jsx("div",{className:"nav-link-content",children:t.split(" ").map((b,x)=>f.jsx(P.span,{style:{display:"inline-block"},variants:zN,initial:"initial",animate:"animate",exit:"exit",custom:s+x,children:b},x))})})]})}const HN={initial:{y:"-100%"},animate:n=>({y:0,transition:{duration:1.2,delay:.2+n*.3,ease:[.25,1,.5,1]}}),exit:n=>({y:"-100%",transition:{duration:1,delay:n*.02,ease:[.25,1,.5,1]}})},qN={Instagram:"https://www.instagram.com/serviceplusaquatics/?hl=en",LinkedIn:"https://www.linkedin.com/in/service-plus-aquatics-inc-5b51b037a/",Facebook:"https://www.facebook.com/people/Service-Plus-Aquatics-Inc/61579281876303/",Email:"mailto:[email protected]"};function wo({text:n,idx:t,fontSize:s="clamp(1rem, 2vw, 30px)",link:r="Instagram"}){const l=()=>{const c=qN[r];c&&(r==="Email"?window.location.href=c:window.open(c,"_blank","noopener,noreferrer"))};return f.jsx("div",{className:"nav-mini-link",style:{fontSize:s,cursor:"pointer"},onClick:l,children:n.split(" ").map((c,u)=>f.jsx(P.span,{style:{display:"inline-block",marginRight:u<n.split(" ").length-1?"0.5ch":"0"},variants:HN,initial:"initial",animate:"animate",exit:"exit",custom:t,children:c},`${t}-${u}`))})}function $N(){const[n,t]=_.useState(!1),[s,r]=_.useState(!1),[l,c]=_.useState(!0),u=Ut();_.useEffect(()=>{t(!1)},[u.pathname]),_.useEffect(()=>{const T=()=>{r(window.scrollY>10)};return T(),window.addEventListener("scroll",T),()=>window.removeEventListener("scroll",T)},[]),_.useEffect(()=>{if(n)c(!1);else{const T=setTimeout(()=>{c(!0)},650);return()=>clearTimeout(T)}},[n]);const h=()=>{t(T=>!T)},m={initial:{y:20,opacity:0},animate:T=>({y:0,opacity:1,transition:{duration:1.2,delay:T*.1+.8,ease:[.76,0,.24,1]}})},b=!(u.pathname==="/home")||!!s||n||!l,x=b?"#000000":"#FFFFFF";if(u.pathname==="/")return null;let S="rgba(255,255,255,1)";return b?S="rgba(255,255,255,1)":S="rgba(255,255,255,0)",f.jsxs(P.div,{className:"navbar",initial:!1,animate:{backgroundColor:S,boxShadow:b?"0px 2px 5px rgba(0, 0, 0, 0.1)":"0px 0px 0px rgba(0, 0, 0, 0)"},transition:{duration:.4,ease:[.76,0,.24,1]},children:[f.jsx(P.div,{initial:{opacity:1},animate:{opacity:n?0:1,transition:{duration:.65}},style:{pointerEvents:n?"none":"auto"},children:f.jsx(P.div,{className:"navbar-brand",initial:"initial",animate:"animate",exit:"exit",variants:m,custom:.1,children:f.jsx(yt,{to:"/home",className:"nav-link",style:{color:x},children:f.jsx("img",{src:ib,alt:"logo",className:"nav-logo",style:{filter:x==="#FFFFFF"?"brightness(0) invert(1)":"brightness(0)",width:"100px",height:"100px"}})})})}),f.jsxs(P.div,{className:"navbar-menu",onClick:h,initial:"initial",animate:"animate",exit:"exit",variants:m,custom:.5,children:[f.jsx(P.div,{className:"menu-title",style:{color:x},children:"MENU"}),f.jsxs("div",{className:`hamburger ${n?"open":""}`,children:[f.jsx("span",{style:{backgroundColor:x}}),f.jsx("span",{style:{backgroundColor:x}})]})]}),f.jsxs(P.div,{className:"navbar-links",initial:{opacity:1},animate:{opacity:n?0:1,transition:{duration:.75}},style:{pointerEvents:n?"none":"auto"},children:[f.jsx(P.div,{className:"about-nav-link",variants:m,initial:"initial",animate:"animate",custom:1,children:f.jsx(yt,{to:"/about",className:"nav-link",style:{color:x},children:"About"})}),f.jsx(P.div,{variants:m,initial:"initial",animate:"animate",custom:2,children:f.jsx(yt,{to:"/contact",className:"nav-link",style:{color:x},children:"Contact"})})]}),f.jsx(rn,{mode:"wait",children:n&&f.jsx(GN,{onExitStart:()=>c(!1),toggleMenu:h})})]})}const GN=({onExitStart:n,toggleMenu:t})=>{const s=[{to:"/home",text:"HOME",imageKey:"HOME"},{to:"/about",text:"ABOUT",imageKey:"ABOUT"},{to:"/products",text:"Products",imageKey:"GALLERY"},{to:"/services",text:"SERVICES",imageKey:"SERVICES"},{to:"/contact",text:"CONTACT",imageKey:"CONTACT"},{to:"/careers",text:"CAREERS",imageKey:"CAREERS"}],r={HOME:"/images/NavBar/home.webp",ABOUT:"/images/NavBar/about.webp",CONTACT:"/images/NavBar/contact.webp",GALLERY:"/images/NavBar/gallery.webp",SERVICES:"/images/NavBar/services.webp",CAREERS:"/images/NavBar/careers.webp"},l=Wf();return _.useEffect(()=>{(async()=>{await l.start({y:["-100%","0%"],transition:{duration:1.2,delay:.2,ease:[.25,1,.5,1]}}),l.start({x:["0%","-50%"],transition:{duration:10,ease:"linear",repeat:1/0,repeatType:"loop"}})})()},[l]),f.jsx(P.div,{className:"dropdown",initial:{height:0},animate:{height:"100dvh"},exit:{height:0},onAnimationStart:c=>{c==="exit"&&n()},transition:{duration:.75,ease:[.76,0,.24,1]},style:{overflow:"hidden"},children:f.jsxs("div",{className:"dropdown-content",children:[f.jsx("div",{className:"scrolling-name-container",children:f.jsx(P.div,{className:"scrolling-name-wrapper",initial:{y:"-100%"},animate:{y:0,transition:{duration:1.2,delay:.2,ease:[.25,1,.5,1]}},exit:{y:"-100%",transition:{duration:1,ease:[.25,1,.5,1]}},children:f.jsx("h1",{className:"scrolling-name",children:"SERVICE PLUS AQUATICSâ¢"})})}),f.jsxs("div",{className:"dropdown-links-footer",children:[f.jsx("div",{className:"dropdown-links",children:s.map((c,u)=>f.jsx(BN,{to:c.to,text:c.text,onMouseEnter:()=>updateImage(r[c.imageKey]),idx:u,toggleMenu:t},u))}),f.jsx("div",{className:"dropdown-bottom",children:f.jsxs("div",{className:"dropdown-bottom-sections ",children:[f.jsxs("div",{className:"dropdown-bottom-left",children:[f.jsx(P.div,{initial:{scaleX:0},animate:{scaleX:1,transition:{duration:1,delay:.5,ease:[.25,1,.5,1]}},exit:{scaleX:0,transition:{duration:1,ease:[.25,1,.5,1]}},style:{width:"45%",height:"1px",background:"black",margin:"16px 0",transformOrigin:"left"}}),f.jsx(wo,{text:"[email protected]",idx:1.3,link:"Email",fontSize:"clamp(1rem, 2vw, 3rem)"}),f.jsx(wo,{text:"[email protected]",idx:1.45,link:"Facebook",fontSize:"clamp(1rem, 2vw, 3rem)"})]}),f.jsxs("div",{className:"dropdown-bottom-right",children:[f.jsx(P.div,{initial:{scaleX:0},animate:{scaleX:1,transition:{duration:1,delay:.5,ease:[.25,1,.5,1]}},exit:{scaleX:0,transition:{duration:1,ease:[.25,1,.5,1]}},style:{width:"45%",height:"1px",background:"black",margin:"16px 0",transformOrigin:"right"}}),f.jsx(wo,{text:"[email protected]",idx:1.75,fontSize:"clamp(1rem, 2vw, 3rem)",link:"Instagram"}),f.jsx(wo,{text:"[email protected]",idx:1.8,fontSize:"clamp(1rem, 2vw, 3rem)",link:"LinkedIn"})]})]})})]})]})},"dropdown")};function YN(){return Ut().pathname==="/"?null:f.jsxs("footer",{className:"footer",children:[f.jsxs("div",{className:"footer-columns",children:[f.jsxs("div",{className:"footer-section",children:[f.jsx("h4",{children:"Explore"}),f.jsxs("ul",{children:[f.jsx("li",{children:f.jsx(yt,{to:"/contact",children:"Make a Connection"})}),f.jsx("li",{children:f.jsx(yt,{to:"/about",children:"About us"})}),f.jsx("li",{children:f.jsx(yt,{to:"/products",children:"Products"})}),f.jsx("li",{children:f.jsx(yt,{to:"/services",children:"Services"})}),f.jsx("li",{children:f.jsx(yt,{to:"/careers",children:"Careers"})}),f.jsx("li",{children:f.jsx(yt,{to:"/policies",children:"Policies"})}),f.jsx("li",{children:f.jsx(yt,{to:"/portal",className:"portal-link",title:"Team Portal","aria-label":"Team Portal",children:"Team Portal"})})]})]}),f.jsxs("div",{className:"footer-section",children:[f.jsx("h4",{children:"Follow Us"}),f.jsxs("ul",{children:[f.jsx("li",{children:f.jsx("a",{href:"https://www.instagram.com/serviceplusaquatics/?hl=en",target:"_blank",rel:"noopener noreferrer",children:"Instagram"})}),f.jsx("li",{children:f.jsx("a",{href:"https://www.facebook.com/people/Service-Plus-Aquatics-Inc/61579281876303/",target:"_blank",rel:"noopener noreferrer",children:"Facebook"})}),f.jsx("li",{children:f.jsx("a",{href:"https://www.linkedin.com/company/service-plus-aquatics-inc/posts/?feedView=all",target:"_blank",rel:"noopener noreferrer",children:"LinkedIn"})})]})]}),f.jsxs("div",{className:"footer-section",children:[f.jsx("h4",{children:"Contact Us"}),f.jsxs("ul",{children:[f.jsx("li",{children:f.jsx("a",{href:"mailto:[email protected]",children:"[email protected]"})}),f.jsx("li",{children:f.jsx("a",{href:"tel:9055697899",children:"1-905-569-7899"})})]})]})]}),f.jsxs("div",{className:"footer-branding",children:[f.jsx("h2",{className:"brand",children:"SPA"}),f.jsx("p",{children:"Where Visionary Engineering Meets Aquatic Elegance."}),f.jsx("p",{children:"Luxury aquatic environments crafted with passion and precision."})]}),f.jsxs("div",{className:"footer-bottom",children:[f.jsx("p",{children:"© 2025 SPA, All Rights Reserved"}),f.jsx("div",{className:"footer-links-bottom",children:f.jsx("a",{children:"Website By: Justin Parisio"})})]})]})}const XN=(n,t,s)=>{let r=0;const l=n.length+t.length,c=()=>{r++,s(Math.round(r/l*100))},u=n.map(g=>new Promise(v=>{const b=new Image;b.src=g,b.onload=b.onerror=()=>{c(),v()}})),h=(g,v=3e3)=>Promise.race([document.fonts.load(g),new Promise(b=>setTimeout(b,v))]),m=t.map(g=>h(g).then(()=>c()).catch(()=>c()));return Promise.all([...u,...m])};function FN(){const[n,t]=_.useState(0),[s,r]=_.useState(0),[l,c]=_.useState(!1),[u,h]=_.useState(!1),m=Vo(),g=zr(0),v=na(g,{damping:20,stiffness:100,mass:1,restDelta:.1,ease:[.76,0,.24,1]});return HA(()=>{r(v.get())}),_.useEffect(()=>{XN(["/images/Products/product1.webp","/images/Products/product2.webp","/images/Products/product3.webp","/images/Products/product4.webp","/images/Products/product5.webp","/images/Products/product6.webp","/images/Products/product7.webp","/images/Products/product8.webp","/images/Products/product9.webp","/images/Products/product10.webp","/images/Products/product11.webp","/images/Products/product12.webp","/images/Products/product13.webp","/images/Products/product14.webp","/images/Products/product15.webp","/images/Products/product16.webp","/images/Home/HomeBg.webp","/images/Home/blueprint.webp","/images/Install/install1.webp","/images/Install/install2.webp","/images/NavBar/about.webp","/images/NavBar/home.webp","/images/NavBar/careers.webp","/images/NavBar/services.webp","/images/NavBar/contact.webp","/images/NavBar/gallery.webp","/images/About/office.webp","/images/About/complete.webp","/images/About/girl.
82webp","/images/About/headshot.webp","/images/Services/reno.webp","/images/Services/manu.webp","/images/Services/consult.webp","/images/Services/oper.webp","/images/Services/supply.webp","/images/Services/dist.webp","/images/Services/repair.webp","/images/Portal/portal.webp"],['normal 300 1em "PP Mori"','normal 400 1em "PP Mori"','normal 700 1em "PP Mori"','italic 300 1em "PP Editorial New"','italic 400 1em "PP Editorial New"','italic 700 1em "PP Editorial New"'],S=>{t(S),g.set(S)}).then(()=>{c(!0),setTimeout(()=>m("/home"),2e3),setTimeout(()=>h(!0),2e3)})},[m,g]),f.jsx(ct,{children:f.jsx(rn,{mode:"sync",children:f.jsx(P.div,{className:"loader",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},children:f.jsx(rn,{children:l?!u&&f.jsx(P.h2,{className:"loader-header",initial:{opacity:0,y:100},animate:{opacity:1,y:0,transition:{duration:1.2,ease:[.76,0,.24,1],delay:.2}},exit:{opacity:0,y:-200,transition:{duration:.75,ease:[.76,0,.24,1]}},children:"Welcome to SPA"}):f.jsxs(P.h2,{className:"loader-header",initial:{y:100,opacity:0},animate:{y:0,opacity:1,transition:{duration:1.2,delay:.2,ease:[.76,0,.24,1]}},exit:{opacity:0,y:-100},children:[Math.round(s),"%"]})})},l?"welcome":"progress")})})}const ry=["https://images.unsplash.com/photo-1618606338706-fc3bad33dbe6?q=80&w=3087&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D","https://images.unsplash.com/photo-1576504446184-d4ce8e6f2adf?q=80&w=3100&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D"],sh=()=>ry[Math.floor(Math.random()*ry.length)],Mb=n=>!n||n.trim()===""?sh():n,kb=of.memo(({post:n,onClose:t})=>f.jsx(P.div,{className:"post-overlay",initial:{opacity:0}
82,animate:{opacity:1},exit:{opacity:0},transition:{duration:.3},onClick:t,children:f.jsxs(P.div,{className:"post-overlay-content",initial:{y:50},animate:{y:0},exit:{y:50},transition:{duration:.4,ease:[.25,1,.5,1]},onClick:s=>s.stopPropagation(),children:[f.jsx(P.button,{className:"post-overlay-close",onClick:t,whileHover:{scale:1.1,backgroundColor:"rgba(0, 0, 0, 0.2)",transition:{duration:.2}},whileTap:{scale:.95},children:"Ã"}),f.jsx("div",{className:"post-overlay-image",children:f.jsx("img",{src:Mb(n.image),alt:n.title,onError:s=>{s.target.src=sh()}})}),f.jsxs("div",{className:"post-overlay-text","data-lenis-prevent":!0,children:[f.jsx("h2",{children:n.title}),f.jsx("p",{className:"post-overlay-date",children:new Date(n.created_at||n.date).toLocaleDateString("en-US",{weekday:"long",year:"numeric",month:"long",day:"numeric"})}),f.jsx("p",{className:"post-overlay-description",children:n.fullDescription})]})]})}));kb.displayName="PostOverlay";const Lb=of.memo(({post:n,index:t,onClick:s})=>{const r=_.useCallback(u=>{u.target.src=sh()},[]),l=_.useMemo(()=>new Date(n.created_at).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"}),[n.created_at]),c=_.useMemo(()=>n.description?n.description.length>50?`${n.description.slice(0,100)}...`:n.description:"",[n.description]);return f.jsxs(P.div,{className:"post-card",whileHover:{y:-8,scale:1.02,boxShadow:"0 12px 30px rgba(0, 0, 0, 0.15)"},whileTap:{scale:.98},transition:{duration:.3,ease:"easeOut"},onClick:()=>s(n),variants:{hidden:{opacity:0,y:30},visible:{opacity:1,y:0,transition:{duration:.5,ease:"easeOut"}}},children:[f.jsx("div",{className:"post-number",children:String(t+1).padStart(2,"0")}),f.jsxs("div",{className:"post-image-container",children:[f.jsx(P.img,{src:Mb(n.image_url),alt:n.title,className:"post-image",variants:{hover:{scale:1.05}},onError:r}),f.jsx("div",{className:"image-overlay"})]}),f.jsxs("div",{className:"post-content",children:[f.jsx("div",{className:"post-meta",children:f.jsx("span",{className:"post-date",children:l})}),f.jsx("h3",{className:"post-title",children:n.title}),f.jsx("p",{className:"post-description",children:c}),f.jsxs("div",{className:"read-more",children:[f.jsx("span",{children:"Read More"}),f.jsx(P.svg,{width:"16",height:"16",viewBox:"0 0 16 16",variants:{hover:{x:4,opacity:1}},style:{opacity:.8},children:f.jsx("path",{d:"M8 0L6.59 1.41L12.17 7H0V9H12.17L6.59 14.59L8 16L16 8L8 0Z",fill:"currentColor"})})]})]})]})});Lb.displayName="PostCard";const Pb=of.memo(()=>{const n=_.useMemo(()=>[{title:"Team Updates",subtitle:"Latest news",path:"M12 2L13.09 8.26L19 9L13.09 9.74L12 16L10.91 9.74L5 9L10.91 8.26L12 2ZM19.5 9.5L20.68 12.32L23.5 13.5L20.68 14.68L19.5 17.5L18.32 14.68L15.5 13.5L18.32 12.32L19.5 9.5ZM4.5 10.5L5.18 12.32L7 13L5.18 13.68L4.5 15.5L3.82 13.68L2 13L3.82 12.32L4.5 10.5Z"},{title:"Projects",subtitle:"Current builds",path:"M19 3H5C3.9 3 3 3.9 3 5V19C3 20.1 3.9 21 5 21H19C20.1 21 21 20.1 21 19V5C21 3.9 20.1 3 19 3ZM19 19H5V8H19V19ZM19 6H5V5H19V6ZM7 10H17V12H7V10ZM7 14H14V16H7V14Z"},{title:"Spotlight",subtitle:"Employee highlights",path:"M16 4C18.2 4 20 5.8 20 8C20 10.2 18.2 12 16 12C13.8 12 12 10.2 12 8C12 5.8 13.8 4 16 4ZM16 6C14.9 6 14 6.9 14 8C14 9.1 14.9 10 16 10C17.1 10 18 9.1 18 8C18 6.9 17.1 6 16 6ZM8 6C9.66 6 11 7.34 11 9C11 10.66 9.66 12 8 12C6.34 12 5 10.66 5 9C5 7.34 6.34 6 8 6ZM8 13C10.67 13 16 14.33 16 17V20H0V17C0 14.33 5.33 13 8 13ZM12.51 15.54C13.56 14.58 15.23 14 16.99 14C19.67 14 24 15.34 24 18V20H18.5V17.5C18.5 16.4 17.39 15.69 16.04 15.54H12.51Z"}],[]);return f.jsxs(P.div,{className:"portal-hero",initial:{opacity:0}
82,animate:{opacity:1},transition:{duration:1.2,ease:[.25,1,.5,1]},children:[f.jsxs("div",{className:"hero-backdrop",children:[f.jsx("div",{className:"hero-image-overlay"}),f.jsx("img",{src:"/images/Portal/portal.webp",alt:"Pool design backdrop",className:"hero-bg-image"})]}),f.jsxs("div",{className:"hero-content",children:[f.jsx(P.div,{className:"hero-text",initial:{y:100,opacity:0},animate:{y:0,opacity:1},transition:{duration:1,delay:.3,ease:[.25,1,.5,1]},children:f.jsxs("h1",{className:"hero-portal-title",children:["Welcome ",f.jsx("span",{className:"hero-portal-title-spa",children:"SPA Employees"})]})}),f.jsx(P.div,{className:"team-images-grid",initial:{y:50,opacity:0},animate:{y:0,opacity:1},transition:{duration:.8,delay:.6,ease:[.25,1,.5,1]},children:n.map((t,s)=>f.jsxs(P.div,{className:"info-icon-card",whileHover:{scale:1.1,y:-5,transition:{duration:.3,ease:"easeOut"}},children:[f.jsxs(P.div,{className:"info-icon",whileHover:{backgroundColor:"rgba(255, 255, 255, 0.25)",borderColor:"rgba(255, 255, 255, 0.4)",scale:1.05,boxShadow:"0 8px 25px rgba(0,0,0,0.15)",transition:{duration:.3}},children:[f.jsx(P.div,{className:"info-icon-overlay",style:{position:"absolute",top:0,left:0,width:"100%",height:"100%",background:"linear-gradient(135deg, rgba(96, 165, 250, 0.2), rgba(52, 211, 153, 0.2))",opacity:0},whileHover:{opacity:1,transition:{duration:.3}}}),f.jsx("svg",{width:"32",height:"32",viewBox:"0 0 24 24",fill:"currentColor",style:{pointerEvents:"none"},children:f.jsx("path",{d:t.path})})]}),f.jsxs("div",{className:"info-text",children:[f.jsx("span",{className:"info-title",children:t.title}),f.jsx("span",{className:"info-subtitle",children:t.subtitle})]})]},s))})]})]})});Pb.displayName="PortalHero";function IN(){const[n,t]=_.useState(null),[s,r]=_.useState(""),[l,c]=_.useState(""),[u,h]=_.useState(null),[m,g]=_.useState([]),[v,b]=_.useState(!0),[x,S]=_.useState(null),[T,C]=_.useState(null),[j,A]=_.useState(!1),M=_.useRef(!0),D=_.useRef(null),B=_.useRef(!1),U=ub();_.useEffect(()=>(u&&U?(U.stop(),document.body.style.overflow="hidden"):!u&&U&&(U.start(),document.body.style.overflow="auto"),()=>{U&&U.start(),document.body.style.overflow="auto"}),[u,U]);const I=_.useCallback(async()=>{if(M.current)try{const{data:ce,error:ye}=await ht.from("posts").select("*").order("created_at",{ascending:!1});ye?console.error("Error fetching posts:",ye):M.current&&g(ce||[])}catch(ce){console.error("Fetch posts error:",ce)}},[]),Q=async()=>{if(!B.current){B.current=!0;try{console.log("Initializing portal..."),b(!0),S(null);const{data:{session:ce},error:ye}=await ht.auth.getSession();if(ye){console.error("Portal session error:",ye),S("Failed to get session"),b(!1);return}if(!M.current)return;ce!=null&&ce.user?(console.log("Portal session found for user:",ce.user.email),t(ce.user),await I()):(console.log("No portal session found"),t(null),g([])),b(!1)}catch(ce){console.error("Portal initialization error:",ce),M.current&&(S("Initialization failed"),b(!1))}}};_.useEffect(()=>{M.current=!0,B.current=!1,D.current&&D.current.unsubscribe(),Q();const{data:{subscription:ce}}=ht.auth.onAuthStateChange(async(ye,Ce)=>{var Z;if(M.current){if(console.log(`Portal auth event: ${ye}`,((Z=Ce==null?void 0:Ce.user)==null?void 0:Z.email)||"no user"),ye==="SIGNED_OUT"||!Ce){t(null),g([]),b(!1),S(null),B.current=!1;return}ye==="SIGNED_IN"&&!B.current&&(console.log("New portal sign in detected, reinitializing..."),await Q())}});return D.current=ce,()=>{M.current=!1,D.current&&D.current.unsubscribe()}},[]);const K=_.useCallback(async ce=>{ce.preventDefault(),A(!0),C(null),B.current=!1;const{error:ye}=await ht.auth.signInWithPassword({email:s,password:l});ye?(C("Invalid email or password. Please try again."),A(!1)):(r(""),c(""))},[s,l]),$=_.useCallback(()=>{window.location.href="https://workforcenow.adp.com"},[]),W=_.useCallback(async()=>{b(!0),B.current=!1,await ht.auth.signOut(),t(null),g([]),r(""),c(""),C(null),b(!1)},[]),oe=_.useCallback(ce=>{h({...ce,image:ce.image_url,fullDescription:ce.full_description})},[]),we=_.useCallback(()=>{h(null)},[]);return v?f.jsx(ct,{children:f.jsx("div",{className:"portal-login-wrapper",children:f.jsx("div",{className:"portal-login-form",style:{textAlign:"center"},children:f.jsx("h2",{children:"Loading..."})})})}):x?f.jsx(ct,{children:f.jsx("div",{className:"portal-login-wrapper",children:f.jsxs("div",{className:"portal-login-form",style:{textAlign:"center"},children:[f.jsx("h2",{children:"Something went wrong"}),f.jsx("p",{style:{color:"#666",marginBottom:"1.5rem"},children:x}),f.jsx("button",{onClick:()=>window.location.reload(),style:{width:"100%",padding:"1rem",background:"black",color:"white",border:"none",borderRadius:"12px",fontSize:"1rem",cursor:"pointer"},children:"Retry"})]})})}):n?f.jsx(ct,{children:f.jsxs("div",{className:"portal-wrapper",children:[f.jsx(Pb,{}),f.jsxs(P.div,{className:"portal-content",children:[f.jsxs("div",{className:"portal-header",children:[f.jsxs("div",{className:"portal-title-section",children:[f.jsx("h2",{className:"portal-main-title",children:"Team Updates"}),f.jsx("p",{className:"portal-subtitle",children:"Latest from the team that builds dreams"})]}),f.jsxs("div",{className:"portal-actions",children:[f.jsx(P.button,{className:"adp-button",onClick:$,whileHover:{scale:1.05},whileTap:{scale:.95},transition:{duration:.2}
82,children:f.jsx("span",{children:"ADP Workspace"})}),f.jsx(P.button,{className:"logout-button",onClick:W,whileHover:{scale:1.05},whileTap:{scale:.95},transition:{duration:.2},children:"Logout"})]})]}),f.jsx("div",{className:"posts-section",children:m.length===0?f.jsxs(P.div,{className:"no-posts",children:[f.jsx("h3",{children:"Building something amazing..."}),f.jsx("p",{children:"Check back soon for team updates"})]}):f.jsx(P.div,{className:"posts-grid",children:m.map((ce,ye)=>f.jsx(Lb,{post:ce,index:ye,onClick:oe},ce.id))})})]}),f.jsx(rn,{children:u&&f.jsx(kb,{post:u,onClose:we})})]})}):f.jsx(ct,{children:f.jsx("div",{className:"portal-login-wrapper",children:f.jsxs(P.form,{className:"portal-login-form",onSubmit:K,initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5,ease:"easeOut"},children:[f.jsx("h2",{children:"Team Portal"}),f.jsx("div",{className:"login-subtitle",children:"Where passion meets precision"}),T&&f.jsx("div",{className:"login-error",children:T}),f.jsx(P.input,{type:"email",placeholder:"Email",value:s,onChange:ce=>{r(ce.target.value),T&&C(null)},required:!0,disabled:j,whileFocus:{borderColor:"#60a5fa",y:-2,boxShadow:"0 4px 10px rgba(96, 165, 250, 0.15)",transition:{duration:.2}}}),f.jsx(P.input,{type:"password",placeholder:"Password",value:l,onChange:ce=>{c(ce.target.value),T&&C(null)},required:!0,disabled:j,whileFocus:{borderColor:"#60a5fa",y:-2,boxShadow:"0 4px 10px rgba(96, 165, 250, 0.15)",transition:{duration:.2}}}),f.jsx(P.button,{type:"submit",disabled:j,whileHover:j?{}:{scale:1.03},whileTap:j?{}:{scale:.97},transition:{duration:.2},children:j?"Entering...":"Enter Portal"})]})})})}function KN(){return f.jsx(ct,{children:f.jsxs(P.main,{className:"nf","aria-labelledby":"nf-title",children:[f.jsx("div",{className:"nf__texture","aria-hidden":"true"}),f.jsxs("section",{className:"nf__wrap",children:[f.jsx("p",{className:"nf__eyebrow",children:"Error"}),f.jsxs("h1",{id:"nf-title",className:"nf__title","aria-label":"404 Page Not Found",children:[f.jsx("span",{children:"4"}),f.jsx("span",{children:"0"}),f.jsx("span",{children:"4"})]}),f.jsx("p",{className:"nf__dek",children:"The page youâre after isnât here. Think of it as a missing spread."}),f.jsxs("nav",{className:"nf__actions","aria-label":"Primary actions",children:[f.jsx(yt,{to:"/home",className:"nf__link",children:"Return Home"}),f.jsx(yt,{to:"/contact",className:"nf__link nf__link--ghost",children:"Contact"})]})]}),f.jsxs("aside",{className:"nf__credit","aria-hidden":"true",children:[f.jsx("span",{children:"©"})," ",new Date().getFullYear()]})]})})}function ZN(){const{pathname:n}=Ut();return _.useEffect(()=>{const t=setTimeout(()=>{window.scrollTo(0,0)},500);return()=>clearTimeout(t)},[n]),null}var ly={},QN="@vercel/analytics",WN="1.5.0",JN=()=>{window.va||(window.va=function(...t){(window.vaq=window.vaq||[]).push(t)})};function Ub(){return typeof window<"u"}function Vb(){try{const n="production"}catch{}return"production"}function e3(n="auto"){if(n==="auto"){window.vam=Vb();return}window.vam=n}function t3(){return(Ub()?window.vam:Vb())||"production"}function rf(){return t3()==="development"}function n3(n){return n.scriptSrc?n.scriptSrc:rf()?"https://va.vercel-scripts.com/v1/script.debug.js":n.basePath?`${n.basePath}/insights/script.js`:"/_vercel/insights/script.js"}function i3(n={debug:!0}){var t;if(!Ub())return;e3(n.mode),JN(),n.beforeSend&&((t=window.va)==null||t.call(window,"beforeSend",n.beforeSend));const s=n3(n);if(document.head.querySelector(`script[src*="${s}"]`))return;const r=document.createElement("script");r.src=s,r.defer=!0,r.dataset.sdkn=QN+(n.framework?`/${n.framework}`:""),r.dataset.sdkv=WN,n.disableAutoTrack&&(r.dataset.disableAutoTrack="1"),n.endpoint?r.dataset.endpoint=n.endpoint:n.basePath&&(r.dataset.endpoint=`${n.basePath}/insights`),n.dsn&&(r.dataset.dsn=n.dsn),r.onerror=()=>{const l=rf()?"Please check if any ad blockers are enabled and try again.":"Be sure to enable Web Analytics for your project and deploy again. See https://vercel.com/docs/analytics/quickstart for more information.";console.log(`[Vercel Web Analytics] Failed to load script from ${s}. ${l}`)},rf()&&n.debug===!1&&(r.dataset.debug="false"),document.head.appendChild(r)}function s3({route:n,path:t}){var s;(s=window.va)==null||s.call(window,"pageview",{route:n,path:t})}function a3(){if(!(typeof process>"u"||typeof ly>"u"))return ly.REACT_APP_VERCEL_OBSERVABILITY_BASEPATH}function r3(n){return _.useEffect(()=>{var t;n.beforeSend&&((t=window.va)==null||t.call(window,"beforeSend",n.beforeSend))},[n.beforeSend]),_.useEffect(()=>{i3({framework:n.framework||"react",basePath:n.basePath??a3(),...n.route!==void 0&&{disableAutoTrack:!0},...n})},[]),_.useEffect(()=>{n.route&&n.path&&s3({route:n.route,path:n.path})},[n.route,n.path]),null}function l3(){return f.jsx(k2,{children:f.jsxs(TR,{children:[f.jsx(ZN,{}),f.jsx($N,{}),f.jsx(o3,{}),f.jsx(YN,{}),f.jsx(r3,{})]})})}function o3(){const n=Ut();return f.jsx(rn,{mode:"wait",children:f.jsxs(u2,{location:n,children:[f.jsx(Lt,{path:"/",element:f.jsx(FN,{})}),f.jsx(Lt,{path:"/home",element:f.jsx(lR,{})}),f.jsx(Lt,{path:"/about",element:f.jsx(dR,{})}),f.jsx(Lt,{path:"/contact",element:f.jsx(mR,{})}),f.jsx(Lt,{path:"/products",element:f.jsx(AR,{})}),f.jsx(Lt,{path:"/services",element:f.jsx(NR,{})}),f.jsx(Lt,{path:"/spaAdminServices",element:f.jsx(LN,{})}),f.jsx(Lt,{path:"/careers",element:f.jsx(PN,{})}),f.jsx(Lt,{path:"/careers/:id",element:f.jsx(UN,{})}),f.jsx(Lt,{path:"/policies",element:f.jsx(VN,{})}),f.jsx(Lt,{path:"/portal",element:f.jsx(IN,{})}),f.jsx(Lt,{path:"*",element:f.jsx(KN,{})})]},n.pathname)})}bS.createRoot(document.getElementById("root")).render(f.jsx(_.StrictMode,{children:f.jsx(l3,{})}));export{oy as g};
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.